1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.69 for xtrap 1.0.3. 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='xtrap' 583 PACKAGE_TARNAME='xtrap' 584 PACKAGE_VERSION='1.0.3' 585 PACKAGE_STRING='xtrap 1.0.3' 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 XTRAP_APP_LIBS 631 XTRAP_APP_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_LIBDIR 657 PKG_CONFIG_PATH 658 PKG_CONFIG 659 CHANGELOG_CMD 660 STRICT_CFLAGS 661 CWARNFLAGS 662 BASE_CFLAGS 663 EGREP 664 GREP 665 CPP 666 am__fastdepCC_FALSE 667 am__fastdepCC_TRUE 668 CCDEPMODE 669 am__nodep 670 AMDEPBACKSLASH 671 AMDEP_FALSE 672 AMDEP_TRUE 673 am__quote 674 am__include 675 DEPDIR 676 OBJEXT 677 EXEEXT 678 ac_ct_CC 679 CPPFLAGS 680 LDFLAGS 681 CFLAGS 682 CC 683 AM_BACKSLASH 684 AM_DEFAULT_VERBOSITY 685 AM_DEFAULT_V 686 AM_V 687 am__untar 688 am__tar 689 AMTAR 690 am__leading_dot 691 SET_MAKE 692 AWK 693 mkdir_p 694 MKDIR_P 695 INSTALL_STRIP_PROGRAM 696 STRIP 697 install_sh 698 MAKEINFO 699 AUTOHEADER 700 AUTOMAKE 701 AUTOCONF 702 ACLOCAL 703 VERSION 704 PACKAGE 705 CYGPATH_W 706 am__isrc 707 INSTALL_DATA 708 INSTALL_SCRIPT 709 INSTALL_PROGRAM 710 target_alias 711 host_alias 712 build_alias 713 LIBS 714 ECHO_T 715 ECHO_N 716 ECHO_C 717 DEFS 718 mandir 719 localedir 720 libdir 721 psdir 722 pdfdir 723 dvidir 724 htmldir 725 infodir 726 docdir 727 oldincludedir 728 includedir 729 localstatedir 730 sharedstatedir 731 sysconfdir 732 datadir 733 datarootdir 734 libexecdir 735 sbindir 736 bindir 737 program_transform_name 738 prefix 739 exec_prefix 740 PACKAGE_URL 741 PACKAGE_BUGREPORT 742 PACKAGE_STRING 743 PACKAGE_VERSION 744 PACKAGE_TARNAME 745 PACKAGE_NAME 746 PATH_SEPARATOR 747 SHELL' 748 ac_subst_files='' 749 ac_user_opts=' 750 enable_option_checking 751 enable_silent_rules 752 enable_dependency_tracking 753 enable_selective_werror 754 enable_strict_compilation 755 ' 756 ac_precious_vars='build_alias 757 host_alias 758 target_alias 759 CC 760 CFLAGS 761 LDFLAGS 762 LIBS 763 CPPFLAGS 764 CPP 765 PKG_CONFIG 766 PKG_CONFIG_PATH 767 PKG_CONFIG_LIBDIR 768 XTRAP_APP_CFLAGS 769 XTRAP_APP_LIBS' 770 771 772 # Initialize some variables set by options. 773 ac_init_help= 774 ac_init_version=false 775 ac_unrecognized_opts= 776 ac_unrecognized_sep= 777 # The variables have the same names as the options, with 778 # dashes changed to underlines. 779 cache_file=/dev/null 780 exec_prefix=NONE 781 no_create= 782 no_recursion= 783 prefix=NONE 784 program_prefix=NONE 785 program_suffix=NONE 786 program_transform_name=s,x,x, 787 silent= 788 site= 789 srcdir= 790 verbose= 791 x_includes=NONE 792 x_libraries=NONE 793 794 # Installation directory options. 795 # These are left unexpanded so users can "make install exec_prefix=/foo" 796 # and all the variables that are supposed to be based on exec_prefix 797 # by default will actually change. 798 # Use braces instead of parens because sh, perl, etc. also accept them. 799 # (The list follows the same order as the GNU Coding Standards.) 800 bindir='${exec_prefix}/bin' 801 sbindir='${exec_prefix}/sbin' 802 libexecdir='${exec_prefix}/libexec' 803 datarootdir='${prefix}/share' 804 datadir='${datarootdir}' 805 sysconfdir='${prefix}/etc' 806 sharedstatedir='${prefix}/com' 807 localstatedir='${prefix}/var' 808 includedir='${prefix}/include' 809 oldincludedir='/usr/include' 810 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 811 infodir='${datarootdir}/info' 812 htmldir='${docdir}' 813 dvidir='${docdir}' 814 pdfdir='${docdir}' 815 psdir='${docdir}' 816 libdir='${exec_prefix}/lib' 817 localedir='${datarootdir}/locale' 818 mandir='${datarootdir}/man' 819 820 ac_prev= 821 ac_dashdash= 822 for ac_option 823 do 824 # If the previous option needs an argument, assign it. 825 if test -n "$ac_prev"; then 826 eval $ac_prev=\$ac_option 827 ac_prev= 828 continue 829 fi 830 831 case $ac_option in 832 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 833 *=) ac_optarg= ;; 834 *) ac_optarg=yes ;; 835 esac 836 837 # Accept the important Cygnus configure options, so we can diagnose typos. 838 839 case $ac_dashdash$ac_option in 840 --) 841 ac_dashdash=yes ;; 842 843 -bindir | --bindir | --bindi | --bind | --bin | --bi) 844 ac_prev=bindir ;; 845 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 846 bindir=$ac_optarg ;; 847 848 -build | --build | --buil | --bui | --bu) 849 ac_prev=build_alias ;; 850 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 851 build_alias=$ac_optarg ;; 852 853 -cache-file | --cache-file | --cache-fil | --cache-fi \ 854 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 855 ac_prev=cache_file ;; 856 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 857 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 858 cache_file=$ac_optarg ;; 859 860 --config-cache | -C) 861 cache_file=config.cache ;; 862 863 -datadir | --datadir | --datadi | --datad) 864 ac_prev=datadir ;; 865 -datadir=* | --datadir=* | --datadi=* | --datad=*) 866 datadir=$ac_optarg ;; 867 868 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 869 | --dataroo | --dataro | --datar) 870 ac_prev=datarootdir ;; 871 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 872 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 873 datarootdir=$ac_optarg ;; 874 875 -disable-* | --disable-*) 876 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 877 # Reject names that are not valid shell variable names. 878 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 879 as_fn_error $? "invalid feature name: $ac_useropt" 880 ac_useropt_orig=$ac_useropt 881 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 882 case $ac_user_opts in 883 *" 884 "enable_$ac_useropt" 885 "*) ;; 886 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 887 ac_unrecognized_sep=', ';; 888 esac 889 eval enable_$ac_useropt=no ;; 890 891 -docdir | --docdir | --docdi | --doc | --do) 892 ac_prev=docdir ;; 893 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 894 docdir=$ac_optarg ;; 895 896 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 897 ac_prev=dvidir ;; 898 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 899 dvidir=$ac_optarg ;; 900 901 -enable-* | --enable-*) 902 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 903 # Reject names that are not valid shell variable names. 904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 905 as_fn_error $? "invalid feature name: $ac_useropt" 906 ac_useropt_orig=$ac_useropt 907 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 908 case $ac_user_opts in 909 *" 910 "enable_$ac_useropt" 911 "*) ;; 912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 913 ac_unrecognized_sep=', ';; 914 esac 915 eval enable_$ac_useropt=\$ac_optarg ;; 916 917 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 918 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 919 | --exec | --exe | --ex) 920 ac_prev=exec_prefix ;; 921 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 922 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 923 | --exec=* | --exe=* | --ex=*) 924 exec_prefix=$ac_optarg ;; 925 926 -gas | --gas | --ga | --g) 927 # Obsolete; use --with-gas. 928 with_gas=yes ;; 929 930 -help | --help | --hel | --he | -h) 931 ac_init_help=long ;; 932 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 933 ac_init_help=recursive ;; 934 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 935 ac_init_help=short ;; 936 937 -host | --host | --hos | --ho) 938 ac_prev=host_alias ;; 939 -host=* | --host=* | --hos=* | --ho=*) 940 host_alias=$ac_optarg ;; 941 942 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 943 ac_prev=htmldir ;; 944 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 945 | --ht=*) 946 htmldir=$ac_optarg ;; 947 948 -includedir | --includedir | --includedi | --included | --include \ 949 | --includ | --inclu | --incl | --inc) 950 ac_prev=includedir ;; 951 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 952 | --includ=* | --inclu=* | --incl=* | --inc=*) 953 includedir=$ac_optarg ;; 954 955 -infodir | --infodir | --infodi | --infod | --info | --inf) 956 ac_prev=infodir ;; 957 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 958 infodir=$ac_optarg ;; 959 960 -libdir | --libdir | --libdi | --libd) 961 ac_prev=libdir ;; 962 -libdir=* | --libdir=* | --libdi=* | --libd=*) 963 libdir=$ac_optarg ;; 964 965 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 966 | --libexe | --libex | --libe) 967 ac_prev=libexecdir ;; 968 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 969 | --libexe=* | --libex=* | --libe=*) 970 libexecdir=$ac_optarg ;; 971 972 -localedir | --localedir | --localedi | --localed | --locale) 973 ac_prev=localedir ;; 974 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 975 localedir=$ac_optarg ;; 976 977 -localstatedir | --localstatedir | --localstatedi | --localstated \ 978 | --localstate | --localstat | --localsta | --localst | --locals) 979 ac_prev=localstatedir ;; 980 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 981 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 982 localstatedir=$ac_optarg ;; 983 984 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 985 ac_prev=mandir ;; 986 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 987 mandir=$ac_optarg ;; 988 989 -nfp | --nfp | --nf) 990 # Obsolete; use --without-fp. 991 with_fp=no ;; 992 993 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 994 | --no-cr | --no-c | -n) 995 no_create=yes ;; 996 997 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 998 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 999 no_recursion=yes ;; 1000 1001 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1002 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1003 | --oldin | --oldi | --old | --ol | --o) 1004 ac_prev=oldincludedir ;; 1005 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1006 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1007 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1008 oldincludedir=$ac_optarg ;; 1009 1010 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1011 ac_prev=prefix ;; 1012 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1013 prefix=$ac_optarg ;; 1014 1015 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1016 | --program-pre | --program-pr | --program-p) 1017 ac_prev=program_prefix ;; 1018 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1019 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1020 program_prefix=$ac_optarg ;; 1021 1022 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1023 | --program-suf | --program-su | --program-s) 1024 ac_prev=program_suffix ;; 1025 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1026 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1027 program_suffix=$ac_optarg ;; 1028 1029 -program-transform-name | --program-transform-name \ 1030 | --program-transform-nam | --program-transform-na \ 1031 | --program-transform-n | --program-transform- \ 1032 | --program-transform | --program-transfor \ 1033 | --program-transfo | --program-transf \ 1034 | --program-trans | --program-tran \ 1035 | --progr-tra | --program-tr | --program-t) 1036 ac_prev=program_transform_name ;; 1037 -program-transform-name=* | --program-transform-name=* \ 1038 | --program-transform-nam=* | --program-transform-na=* \ 1039 | --program-transform-n=* | --program-transform-=* \ 1040 | --program-transform=* | --program-transfor=* \ 1041 | --program-transfo=* | --program-transf=* \ 1042 | --program-trans=* | --program-tran=* \ 1043 | --progr-tra=* | --program-tr=* | --program-t=*) 1044 program_transform_name=$ac_optarg ;; 1045 1046 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1047 ac_prev=pdfdir ;; 1048 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1049 pdfdir=$ac_optarg ;; 1050 1051 -psdir | --psdir | --psdi | --psd | --ps) 1052 ac_prev=psdir ;; 1053 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1054 psdir=$ac_optarg ;; 1055 1056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1057 | -silent | --silent | --silen | --sile | --sil) 1058 silent=yes ;; 1059 1060 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1061 ac_prev=sbindir ;; 1062 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1063 | --sbi=* | --sb=*) 1064 sbindir=$ac_optarg ;; 1065 1066 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1067 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1068 | --sharedst | --shareds | --shared | --share | --shar \ 1069 | --sha | --sh) 1070 ac_prev=sharedstatedir ;; 1071 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1072 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1073 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1074 | --sha=* | --sh=*) 1075 sharedstatedir=$ac_optarg ;; 1076 1077 -site | --site | --sit) 1078 ac_prev=site ;; 1079 -site=* | --site=* | --sit=*) 1080 site=$ac_optarg ;; 1081 1082 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1083 ac_prev=srcdir ;; 1084 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1085 srcdir=$ac_optarg ;; 1086 1087 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1088 | --syscon | --sysco | --sysc | --sys | --sy) 1089 ac_prev=sysconfdir ;; 1090 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1091 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1092 sysconfdir=$ac_optarg ;; 1093 1094 -target | --target | --targe | --targ | --tar | --ta | --t) 1095 ac_prev=target_alias ;; 1096 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1097 target_alias=$ac_optarg ;; 1098 1099 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1100 verbose=yes ;; 1101 1102 -version | --version | --versio | --versi | --vers | -V) 1103 ac_init_version=: ;; 1104 1105 -with-* | --with-*) 1106 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1107 # Reject names that are not valid shell variable names. 1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1109 as_fn_error $? "invalid package name: $ac_useropt" 1110 ac_useropt_orig=$ac_useropt 1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1112 case $ac_user_opts in 1113 *" 1114 "with_$ac_useropt" 1115 "*) ;; 1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1117 ac_unrecognized_sep=', ';; 1118 esac 1119 eval with_$ac_useropt=\$ac_optarg ;; 1120 1121 -without-* | --without-*) 1122 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1123 # Reject names that are not valid shell variable names. 1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1125 as_fn_error $? "invalid package name: $ac_useropt" 1126 ac_useropt_orig=$ac_useropt 1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1128 case $ac_user_opts in 1129 *" 1130 "with_$ac_useropt" 1131 "*) ;; 1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1133 ac_unrecognized_sep=', ';; 1134 esac 1135 eval with_$ac_useropt=no ;; 1136 1137 --x) 1138 # Obsolete; use --with-x. 1139 with_x=yes ;; 1140 1141 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1142 | --x-incl | --x-inc | --x-in | --x-i) 1143 ac_prev=x_includes ;; 1144 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1145 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1146 x_includes=$ac_optarg ;; 1147 1148 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1149 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1150 ac_prev=x_libraries ;; 1151 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1152 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1153 x_libraries=$ac_optarg ;; 1154 1155 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1156 Try \`$0 --help' for more information" 1157 ;; 1158 1159 *=*) 1160 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1161 # Reject names that are not valid shell variable names. 1162 case $ac_envvar in #( 1163 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1164 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1165 esac 1166 eval $ac_envvar=\$ac_optarg 1167 export $ac_envvar ;; 1168 1169 *) 1170 # FIXME: should be removed in autoconf 3.0. 1171 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1172 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1173 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1174 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1175 ;; 1176 1177 esac 1178 done 1179 1180 if test -n "$ac_prev"; then 1181 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1182 as_fn_error $? "missing argument to $ac_option" 1183 fi 1184 1185 if test -n "$ac_unrecognized_opts"; then 1186 case $enable_option_checking in 1187 no) ;; 1188 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1189 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1190 esac 1191 fi 1192 1193 # Check all directory arguments for consistency. 1194 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1195 datadir sysconfdir sharedstatedir localstatedir includedir \ 1196 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1197 libdir localedir mandir 1198 do 1199 eval ac_val=\$$ac_var 1200 # Remove trailing slashes. 1201 case $ac_val in 1202 */ ) 1203 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1204 eval $ac_var=\$ac_val;; 1205 esac 1206 # Be sure to have absolute directory names. 1207 case $ac_val in 1208 [\\/$]* | ?:[\\/]* ) continue;; 1209 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1210 esac 1211 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1212 done 1213 1214 # There might be people who depend on the old broken behavior: `$host' 1215 # used to hold the argument of --host etc. 1216 # FIXME: To remove some day. 1217 build=$build_alias 1218 host=$host_alias 1219 target=$target_alias 1220 1221 # FIXME: To remove some day. 1222 if test "x$host_alias" != x; then 1223 if test "x$build_alias" = x; then 1224 cross_compiling=maybe 1225 elif test "x$build_alias" != "x$host_alias"; then 1226 cross_compiling=yes 1227 fi 1228 fi 1229 1230 ac_tool_prefix= 1231 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1232 1233 test "$silent" = yes && exec 6>/dev/null 1234 1235 1236 ac_pwd=`pwd` && test -n "$ac_pwd" && 1237 ac_ls_di=`ls -di .` && 1238 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1239 as_fn_error $? "working directory cannot be determined" 1240 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1241 as_fn_error $? "pwd does not report name of working directory" 1242 1243 1244 # Find the source files, if location was not specified. 1245 if test -z "$srcdir"; then 1246 ac_srcdir_defaulted=yes 1247 # Try the directory containing this script, then the parent directory. 1248 ac_confdir=`$as_dirname -- "$as_myself" || 1249 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1250 X"$as_myself" : 'X\(//\)[^/]' \| \ 1251 X"$as_myself" : 'X\(//\)$' \| \ 1252 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1253 $as_echo X"$as_myself" | 1254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1255 s//\1/ 1256 q 1257 } 1258 /^X\(\/\/\)[^/].*/{ 1259 s//\1/ 1260 q 1261 } 1262 /^X\(\/\/\)$/{ 1263 s//\1/ 1264 q 1265 } 1266 /^X\(\/\).*/{ 1267 s//\1/ 1268 q 1269 } 1270 s/.*/./; q'` 1271 srcdir=$ac_confdir 1272 if test ! -r "$srcdir/$ac_unique_file"; then 1273 srcdir=.. 1274 fi 1275 else 1276 ac_srcdir_defaulted=no 1277 fi 1278 if test ! -r "$srcdir/$ac_unique_file"; then 1279 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1280 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1281 fi 1282 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1283 ac_abs_confdir=`( 1284 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1285 pwd)` 1286 # When building in place, set srcdir=. 1287 if test "$ac_abs_confdir" = "$ac_pwd"; then 1288 srcdir=. 1289 fi 1290 # Remove unnecessary trailing slashes from srcdir. 1291 # Double slashes in file names in object file debugging info 1292 # mess up M-x gdb in Emacs. 1293 case $srcdir in 1294 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1295 esac 1296 for ac_var in $ac_precious_vars; do 1297 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1298 eval ac_env_${ac_var}_value=\$${ac_var} 1299 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1300 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1301 done 1302 1303 # 1304 # Report the --help message. 1305 # 1306 if test "$ac_init_help" = "long"; then 1307 # Omit some internal or obsolete options to make the list less imposing. 1308 # This message is too long to be a string in the A/UX 3.1 sh. 1309 cat <<_ACEOF 1310 \`configure' configures xtrap 1.0.3 to adapt to many kinds of systems. 1311 1312 Usage: $0 [OPTION]... [VAR=VALUE]... 1313 1314 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1315 VAR=VALUE. See below for descriptions of some of the useful variables. 1316 1317 Defaults for the options are specified in brackets. 1318 1319 Configuration: 1320 -h, --help display this help and exit 1321 --help=short display options specific to this package 1322 --help=recursive display the short help of all the included packages 1323 -V, --version display version information and exit 1324 -q, --quiet, --silent do not print \`checking ...' messages 1325 --cache-file=FILE cache test results in FILE [disabled] 1326 -C, --config-cache alias for \`--cache-file=config.cache' 1327 -n, --no-create do not create output files 1328 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1329 1330 Installation directories: 1331 --prefix=PREFIX install architecture-independent files in PREFIX 1332 [$ac_default_prefix] 1333 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1334 [PREFIX] 1335 1336 By default, \`make install' will install all the files in 1337 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1338 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1339 for instance \`--prefix=\$HOME'. 1340 1341 For better control, use the options below. 1342 1343 Fine tuning of the installation directories: 1344 --bindir=DIR user executables [EPREFIX/bin] 1345 --sbindir=DIR system admin executables [EPREFIX/sbin] 1346 --libexecdir=DIR program executables [EPREFIX/libexec] 1347 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1348 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1349 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1350 --libdir=DIR object code libraries [EPREFIX/lib] 1351 --includedir=DIR C header files [PREFIX/include] 1352 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1353 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1354 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1355 --infodir=DIR info documentation [DATAROOTDIR/info] 1356 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1357 --mandir=DIR man documentation [DATAROOTDIR/man] 1358 --docdir=DIR documentation root [DATAROOTDIR/doc/xtrap] 1359 --htmldir=DIR html documentation [DOCDIR] 1360 --dvidir=DIR dvi documentation [DOCDIR] 1361 --pdfdir=DIR pdf documentation [DOCDIR] 1362 --psdir=DIR ps documentation [DOCDIR] 1363 _ACEOF 1364 1365 cat <<\_ACEOF 1366 1367 Program names: 1368 --program-prefix=PREFIX prepend PREFIX to installed program names 1369 --program-suffix=SUFFIX append SUFFIX to installed program names 1370 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1371 1372 System types: 1373 --build=BUILD configure for building on BUILD [guessed] 1374 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1375 _ACEOF 1376 fi 1377 1378 if test -n "$ac_init_help"; then 1379 case $ac_init_help in 1380 short | recursive ) echo "Configuration of xtrap 1.0.3:";; 1381 esac 1382 cat <<\_ACEOF 1383 1384 Optional Features: 1385 --disable-option-checking ignore unrecognized --enable/--with options 1386 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1387 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1388 --enable-silent-rules less verbose build output (undo: "make V=1") 1389 --disable-silent-rules verbose build output (undo: "make V=0") 1390 --enable-dependency-tracking 1391 do not reject slow dependency extractors 1392 --disable-dependency-tracking 1393 speeds up one-time build 1394 --disable-selective-werror 1395 Turn off selective compiler errors. (default: 1396 enabled) 1397 --enable-strict-compilation 1398 Enable all warnings from compiler and make them 1399 errors (default: disabled) 1400 1401 Some influential environment variables: 1402 CC C compiler command 1403 CFLAGS C compiler flags 1404 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1405 nonstandard directory <lib dir> 1406 LIBS libraries to pass to the linker, e.g. -l<library> 1407 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1408 you have headers in a nonstandard directory <include dir> 1409 CPP C preprocessor 1410 PKG_CONFIG path to pkg-config utility 1411 PKG_CONFIG_PATH 1412 directories to add to pkg-config's search path 1413 PKG_CONFIG_LIBDIR 1414 path overriding pkg-config's built-in search path 1415 XTRAP_APP_CFLAGS 1416 C compiler flags for XTRAP_APP, overriding pkg-config 1417 XTRAP_APP_LIBS 1418 linker flags for XTRAP_APP, overriding pkg-config 1419 1420 Use these variables to override the choices made by `configure' or to help 1421 it to find libraries and programs with nonstandard names/locations. 1422 1423 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1424 _ACEOF 1425 ac_status=$? 1426 fi 1427 1428 if test "$ac_init_help" = "recursive"; then 1429 # If there are subdirs, report their specific --help. 1430 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1431 test -d "$ac_dir" || 1432 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1433 continue 1434 ac_builddir=. 1435 1436 case "$ac_dir" in 1437 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1438 *) 1439 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1440 # A ".." for each directory in $ac_dir_suffix. 1441 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1442 case $ac_top_builddir_sub in 1443 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1444 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1445 esac ;; 1446 esac 1447 ac_abs_top_builddir=$ac_pwd 1448 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1449 # for backward compatibility: 1450 ac_top_builddir=$ac_top_build_prefix 1451 1452 case $srcdir in 1453 .) # We are building in place. 1454 ac_srcdir=. 1455 ac_top_srcdir=$ac_top_builddir_sub 1456 ac_abs_top_srcdir=$ac_pwd ;; 1457 [\\/]* | ?:[\\/]* ) # Absolute name. 1458 ac_srcdir=$srcdir$ac_dir_suffix; 1459 ac_top_srcdir=$srcdir 1460 ac_abs_top_srcdir=$srcdir ;; 1461 *) # Relative name. 1462 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1463 ac_top_srcdir=$ac_top_build_prefix$srcdir 1464 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1465 esac 1466 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1467 1468 cd "$ac_dir" || { ac_status=$?; continue; } 1469 # Check for guested configure. 1470 if test -f "$ac_srcdir/configure.gnu"; then 1471 echo && 1472 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1473 elif test -f "$ac_srcdir/configure"; then 1474 echo && 1475 $SHELL "$ac_srcdir/configure" --help=recursive 1476 else 1477 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1478 fi || ac_status=$? 1479 cd "$ac_pwd" || { ac_status=$?; break; } 1480 done 1481 fi 1482 1483 test -n "$ac_init_help" && exit $ac_status 1484 if $ac_init_version; then 1485 cat <<\_ACEOF 1486 xtrap configure 1.0.3 1487 generated by GNU Autoconf 2.69 1488 1489 Copyright (C) 2012 Free Software Foundation, Inc. 1490 This configure script is free software; the Free Software Foundation 1491 gives unlimited permission to copy, distribute and modify it. 1492 _ACEOF 1493 exit 1494 fi 1495 1496 ## ------------------------ ## 1497 ## Autoconf initialization. ## 1498 ## ------------------------ ## 1499 1500 # ac_fn_c_try_compile LINENO 1501 # -------------------------- 1502 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1503 ac_fn_c_try_compile () 1504 { 1505 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1506 rm -f conftest.$ac_objext 1507 if { { ac_try="$ac_compile" 1508 case "(($ac_try" in 1509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1510 *) ac_try_echo=$ac_try;; 1511 esac 1512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1513 $as_echo "$ac_try_echo"; } >&5 1514 (eval "$ac_compile") 2>conftest.err 1515 ac_status=$? 1516 if test -s conftest.err; then 1517 grep -v '^ *+' conftest.err >conftest.er1 1518 cat conftest.er1 >&5 1519 mv -f conftest.er1 conftest.err 1520 fi 1521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1522 test $ac_status = 0; } && { 1523 test -z "$ac_c_werror_flag" || 1524 test ! -s conftest.err 1525 } && test -s conftest.$ac_objext; then : 1526 ac_retval=0 1527 else 1528 $as_echo "$as_me: failed program was:" >&5 1529 sed 's/^/| /' conftest.$ac_ext >&5 1530 1531 ac_retval=1 1532 fi 1533 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1534 as_fn_set_status $ac_retval 1535 1536 } # ac_fn_c_try_compile 1537 1538 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1539 # --------------------------------------------- 1540 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1541 # accordingly. 1542 ac_fn_c_check_decl () 1543 { 1544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1545 as_decl_name=`echo $2|sed 's/ *(.*//'` 1546 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1548 $as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1549 if eval \${$3+:} false; then : 1550 $as_echo_n "(cached) " >&6 1551 else 1552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1553 /* end confdefs.h. */ 1554 $4 1555 int 1556 main () 1557 { 1558 #ifndef $as_decl_name 1559 #ifdef __cplusplus 1560 (void) $as_decl_use; 1561 #else 1562 (void) $as_decl_name; 1563 #endif 1564 #endif 1565 1566 ; 1567 return 0; 1568 } 1569 _ACEOF 1570 if ac_fn_c_try_compile "$LINENO"; then : 1571 eval "$3=yes" 1572 else 1573 eval "$3=no" 1574 fi 1575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1576 fi 1577 eval ac_res=\$$3 1578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1579 $as_echo "$ac_res" >&6; } 1580 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1581 1582 } # ac_fn_c_check_decl 1583 1584 # ac_fn_c_try_cpp LINENO 1585 # ---------------------- 1586 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1587 ac_fn_c_try_cpp () 1588 { 1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1590 if { { ac_try="$ac_cpp conftest.$ac_ext" 1591 case "(($ac_try" in 1592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1593 *) ac_try_echo=$ac_try;; 1594 esac 1595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1596 $as_echo "$ac_try_echo"; } >&5 1597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1598 ac_status=$? 1599 if test -s conftest.err; then 1600 grep -v '^ *+' conftest.err >conftest.er1 1601 cat conftest.er1 >&5 1602 mv -f conftest.er1 conftest.err 1603 fi 1604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1605 test $ac_status = 0; } > conftest.i && { 1606 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1607 test ! -s conftest.err 1608 }; then : 1609 ac_retval=0 1610 else 1611 $as_echo "$as_me: failed program was:" >&5 1612 sed 's/^/| /' conftest.$ac_ext >&5 1613 1614 ac_retval=1 1615 fi 1616 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1617 as_fn_set_status $ac_retval 1618 1619 } # ac_fn_c_try_cpp 1620 1621 # ac_fn_c_try_run LINENO 1622 # ---------------------- 1623 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1624 # that executables *can* be run. 1625 ac_fn_c_try_run () 1626 { 1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1628 if { { ac_try="$ac_link" 1629 case "(($ac_try" in 1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1631 *) ac_try_echo=$ac_try;; 1632 esac 1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1634 $as_echo "$ac_try_echo"; } >&5 1635 (eval "$ac_link") 2>&5 1636 ac_status=$? 1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1638 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1639 { { case "(($ac_try" in 1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1641 *) ac_try_echo=$ac_try;; 1642 esac 1643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1644 $as_echo "$ac_try_echo"; } >&5 1645 (eval "$ac_try") 2>&5 1646 ac_status=$? 1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1648 test $ac_status = 0; }; }; then : 1649 ac_retval=0 1650 else 1651 $as_echo "$as_me: program exited with status $ac_status" >&5 1652 $as_echo "$as_me: failed program was:" >&5 1653 sed 's/^/| /' conftest.$ac_ext >&5 1654 1655 ac_retval=$ac_status 1656 fi 1657 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1659 as_fn_set_status $ac_retval 1660 1661 } # ac_fn_c_try_run 1662 1663 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1664 # ------------------------------------------------------- 1665 # Tests whether HEADER exists and can be compiled using the include files in 1666 # INCLUDES, setting the cache variable VAR accordingly. 1667 ac_fn_c_check_header_compile () 1668 { 1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1671 $as_echo_n "checking for $2... " >&6; } 1672 if eval \${$3+:} false; then : 1673 $as_echo_n "(cached) " >&6 1674 else 1675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1676 /* end confdefs.h. */ 1677 $4 1678 #include <$2> 1679 _ACEOF 1680 if ac_fn_c_try_compile "$LINENO"; then : 1681 eval "$3=yes" 1682 else 1683 eval "$3=no" 1684 fi 1685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1686 fi 1687 eval ac_res=\$$3 1688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1689 $as_echo "$ac_res" >&6; } 1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1691 1692 } # ac_fn_c_check_header_compile 1693 1694 # ac_fn_c_try_link LINENO 1695 # ----------------------- 1696 # Try to link conftest.$ac_ext, and return whether this succeeded. 1697 ac_fn_c_try_link () 1698 { 1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1700 rm -f conftest.$ac_objext conftest$ac_exeext 1701 if { { ac_try="$ac_link" 1702 case "(($ac_try" in 1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1704 *) ac_try_echo=$ac_try;; 1705 esac 1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1707 $as_echo "$ac_try_echo"; } >&5 1708 (eval "$ac_link") 2>conftest.err 1709 ac_status=$? 1710 if test -s conftest.err; then 1711 grep -v '^ *+' conftest.err >conftest.er1 1712 cat conftest.er1 >&5 1713 mv -f conftest.er1 conftest.err 1714 fi 1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1716 test $ac_status = 0; } && { 1717 test -z "$ac_c_werror_flag" || 1718 test ! -s conftest.err 1719 } && test -s conftest$ac_exeext && { 1720 test "$cross_compiling" = yes || 1721 test -x conftest$ac_exeext 1722 }; then : 1723 ac_retval=0 1724 else 1725 $as_echo "$as_me: failed program was:" >&5 1726 sed 's/^/| /' conftest.$ac_ext >&5 1727 1728 ac_retval=1 1729 fi 1730 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1731 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1732 # interfere with the next link command; also delete a directory that is 1733 # left behind by Apple's compiler. We do this before executing the actions. 1734 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1736 as_fn_set_status $ac_retval 1737 1738 } # ac_fn_c_try_link 1739 cat >config.log <<_ACEOF 1740 This file contains any messages produced by compilers while 1741 running configure, to aid debugging if configure makes a mistake. 1742 1743 It was created by xtrap $as_me 1.0.3, which was 1744 generated by GNU Autoconf 2.69. Invocation command line was 1745 1746 $ $0 $@ 1747 1748 _ACEOF 1749 exec 5>>config.log 1750 { 1751 cat <<_ASUNAME 1752 ## --------- ## 1753 ## Platform. ## 1754 ## --------- ## 1755 1756 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1757 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1758 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1759 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1760 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1761 1762 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1763 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1764 1765 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1766 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1767 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1768 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1769 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1770 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1771 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1772 1773 _ASUNAME 1774 1775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1776 for as_dir in $PATH 1777 do 1778 IFS=$as_save_IFS 1779 test -z "$as_dir" && as_dir=. 1780 $as_echo "PATH: $as_dir" 1781 done 1782 IFS=$as_save_IFS 1783 1784 } >&5 1785 1786 cat >&5 <<_ACEOF 1787 1788 1789 ## ----------- ## 1790 ## Core tests. ## 1791 ## ----------- ## 1792 1793 _ACEOF 1794 1795 1796 # Keep a trace of the command line. 1797 # Strip out --no-create and --no-recursion so they do not pile up. 1798 # Strip out --silent because we don't want to record it for future runs. 1799 # Also quote any args containing shell meta-characters. 1800 # Make two passes to allow for proper duplicate-argument suppression. 1801 ac_configure_args= 1802 ac_configure_args0= 1803 ac_configure_args1= 1804 ac_must_keep_next=false 1805 for ac_pass in 1 2 1806 do 1807 for ac_arg 1808 do 1809 case $ac_arg in 1810 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1811 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1812 | -silent | --silent | --silen | --sile | --sil) 1813 continue ;; 1814 *\'*) 1815 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1816 esac 1817 case $ac_pass in 1818 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1819 2) 1820 as_fn_append ac_configure_args1 " '$ac_arg'" 1821 if test $ac_must_keep_next = true; then 1822 ac_must_keep_next=false # Got value, back to normal. 1823 else 1824 case $ac_arg in 1825 *=* | --config-cache | -C | -disable-* | --disable-* \ 1826 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1827 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1828 | -with-* | --with-* | -without-* | --without-* | --x) 1829 case "$ac_configure_args0 " in 1830 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1831 esac 1832 ;; 1833 -* ) ac_must_keep_next=true ;; 1834 esac 1835 fi 1836 as_fn_append ac_configure_args " '$ac_arg'" 1837 ;; 1838 esac 1839 done 1840 done 1841 { ac_configure_args0=; unset ac_configure_args0;} 1842 { ac_configure_args1=; unset ac_configure_args1;} 1843 1844 # When interrupted or exit'd, cleanup temporary files, and complete 1845 # config.log. We remove comments because anyway the quotes in there 1846 # would cause problems or look ugly. 1847 # WARNING: Use '\'' to represent an apostrophe within the trap. 1848 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1849 trap 'exit_status=$? 1850 # Save into config.log some information that might help in debugging. 1851 { 1852 echo 1853 1854 $as_echo "## ---------------- ## 1855 ## Cache variables. ## 1856 ## ---------------- ##" 1857 echo 1858 # The following way of writing the cache mishandles newlines in values, 1859 ( 1860 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1861 eval ac_val=\$$ac_var 1862 case $ac_val in #( 1863 *${as_nl}*) 1864 case $ac_var in #( 1865 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1866 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1867 esac 1868 case $ac_var in #( 1869 _ | IFS | as_nl) ;; #( 1870 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1871 *) { eval $ac_var=; unset $ac_var;} ;; 1872 esac ;; 1873 esac 1874 done 1875 (set) 2>&1 | 1876 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1877 *${as_nl}ac_space=\ *) 1878 sed -n \ 1879 "s/'\''/'\''\\\\'\'''\''/g; 1880 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1881 ;; #( 1882 *) 1883 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1884 ;; 1885 esac | 1886 sort 1887 ) 1888 echo 1889 1890 $as_echo "## ----------------- ## 1891 ## Output variables. ## 1892 ## ----------------- ##" 1893 echo 1894 for ac_var in $ac_subst_vars 1895 do 1896 eval ac_val=\$$ac_var 1897 case $ac_val in 1898 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1899 esac 1900 $as_echo "$ac_var='\''$ac_val'\''" 1901 done | sort 1902 echo 1903 1904 if test -n "$ac_subst_files"; then 1905 $as_echo "## ------------------- ## 1906 ## File substitutions. ## 1907 ## ------------------- ##" 1908 echo 1909 for ac_var in $ac_subst_files 1910 do 1911 eval ac_val=\$$ac_var 1912 case $ac_val in 1913 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1914 esac 1915 $as_echo "$ac_var='\''$ac_val'\''" 1916 done | sort 1917 echo 1918 fi 1919 1920 if test -s confdefs.h; then 1921 $as_echo "## ----------- ## 1922 ## confdefs.h. ## 1923 ## ----------- ##" 1924 echo 1925 cat confdefs.h 1926 echo 1927 fi 1928 test "$ac_signal" != 0 && 1929 $as_echo "$as_me: caught signal $ac_signal" 1930 $as_echo "$as_me: exit $exit_status" 1931 } >&5 1932 rm -f core *.core core.conftest.* && 1933 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1934 exit $exit_status 1935 ' 0 1936 for ac_signal in 1 2 13 15; do 1937 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1938 done 1939 ac_signal=0 1940 1941 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1942 rm -f -r conftest* confdefs.h 1943 1944 $as_echo "/* confdefs.h */" > confdefs.h 1945 1946 # Predefined preprocessor variables. 1947 1948 cat >>confdefs.h <<_ACEOF 1949 #define PACKAGE_NAME "$PACKAGE_NAME" 1950 _ACEOF 1951 1952 cat >>confdefs.h <<_ACEOF 1953 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1954 _ACEOF 1955 1956 cat >>confdefs.h <<_ACEOF 1957 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1958 _ACEOF 1959 1960 cat >>confdefs.h <<_ACEOF 1961 #define PACKAGE_STRING "$PACKAGE_STRING" 1962 _ACEOF 1963 1964 cat >>confdefs.h <<_ACEOF 1965 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1966 _ACEOF 1967 1968 cat >>confdefs.h <<_ACEOF 1969 #define PACKAGE_URL "$PACKAGE_URL" 1970 _ACEOF 1971 1972 1973 # Let the site file select an alternate cache file if it wants to. 1974 # Prefer an explicitly selected file to automatically selected ones. 1975 ac_site_file1=NONE 1976 ac_site_file2=NONE 1977 if test -n "$CONFIG_SITE"; then 1978 # We do not want a PATH search for config.site. 1979 case $CONFIG_SITE in #(( 1980 -*) ac_site_file1=./$CONFIG_SITE;; 1981 */*) ac_site_file1=$CONFIG_SITE;; 1982 *) ac_site_file1=./$CONFIG_SITE;; 1983 esac 1984 elif test "x$prefix" != xNONE; then 1985 ac_site_file1=$prefix/share/config.site 1986 ac_site_file2=$prefix/etc/config.site 1987 else 1988 ac_site_file1=$ac_default_prefix/share/config.site 1989 ac_site_file2=$ac_default_prefix/etc/config.site 1990 fi 1991 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1992 do 1993 test "x$ac_site_file" = xNONE && continue 1994 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 1995 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1996 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 1997 sed 's/^/| /' "$ac_site_file" >&5 1998 . "$ac_site_file" \ 1999 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2001 as_fn_error $? "failed to load site script $ac_site_file 2002 See \`config.log' for more details" "$LINENO" 5; } 2003 fi 2004 done 2005 2006 if test -r "$cache_file"; then 2007 # Some versions of bash will fail to source /dev/null (special files 2008 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2009 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2010 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2011 $as_echo "$as_me: loading cache $cache_file" >&6;} 2012 case $cache_file in 2013 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2014 *) . "./$cache_file";; 2015 esac 2016 fi 2017 else 2018 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2019 $as_echo "$as_me: creating cache $cache_file" >&6;} 2020 >$cache_file 2021 fi 2022 2023 # Check that the precious variables saved in the cache have kept the same 2024 # value. 2025 ac_cache_corrupted=false 2026 for ac_var in $ac_precious_vars; do 2027 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2028 eval ac_new_set=\$ac_env_${ac_var}_set 2029 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2030 eval ac_new_val=\$ac_env_${ac_var}_value 2031 case $ac_old_set,$ac_new_set in 2032 set,) 2033 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2034 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2035 ac_cache_corrupted=: ;; 2036 ,set) 2037 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2038 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2039 ac_cache_corrupted=: ;; 2040 ,);; 2041 *) 2042 if test "x$ac_old_val" != "x$ac_new_val"; then 2043 # differences in whitespace do not lead to failure. 2044 ac_old_val_w=`echo x $ac_old_val` 2045 ac_new_val_w=`echo x $ac_new_val` 2046 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2047 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2048 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2049 ac_cache_corrupted=: 2050 else 2051 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2052 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2053 eval $ac_var=\$ac_old_val 2054 fi 2055 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2056 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2057 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2058 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2059 fi;; 2060 esac 2061 # Pass precious variables to config.status. 2062 if test "$ac_new_set" = set; then 2063 case $ac_new_val in 2064 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2065 *) ac_arg=$ac_var=$ac_new_val ;; 2066 esac 2067 case " $ac_configure_args " in 2068 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2069 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2070 esac 2071 fi 2072 done 2073 if $ac_cache_corrupted; then 2074 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2076 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2077 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2078 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2079 fi 2080 ## -------------------- ## 2081 ## Main body of script. ## 2082 ## -------------------- ## 2083 2084 ac_ext=c 2085 ac_cpp='$CPP $CPPFLAGS' 2086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2088 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2089 2090 2091 2092 ac_config_headers="$ac_config_headers config.h" 2093 2094 2095 # Initialize Automake 2096 am__api_version='1.15' 2097 2098 ac_aux_dir= 2099 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2100 if test -f "$ac_dir/install-sh"; then 2101 ac_aux_dir=$ac_dir 2102 ac_install_sh="$ac_aux_dir/install-sh -c" 2103 break 2104 elif test -f "$ac_dir/install.sh"; then 2105 ac_aux_dir=$ac_dir 2106 ac_install_sh="$ac_aux_dir/install.sh -c" 2107 break 2108 elif test -f "$ac_dir/shtool"; then 2109 ac_aux_dir=$ac_dir 2110 ac_install_sh="$ac_aux_dir/shtool install -c" 2111 break 2112 fi 2113 done 2114 if test -z "$ac_aux_dir"; then 2115 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2116 fi 2117 2118 # These three variables are undocumented and unsupported, 2119 # and are intended to be withdrawn in a future Autoconf release. 2120 # They can cause serious problems if a builder's source tree is in a directory 2121 # whose full name contains unusual characters. 2122 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2123 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2124 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2125 2126 2127 # Find a good install program. We prefer a C program (faster), 2128 # so one script is as good as another. But avoid the broken or 2129 # incompatible versions: 2130 # SysV /etc/install, /usr/sbin/install 2131 # SunOS /usr/etc/install 2132 # IRIX /sbin/install 2133 # AIX /bin/install 2134 # AmigaOS /C/install, which installs bootblocks on floppy discs 2135 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2136 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2137 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2138 # OS/2's system install, which has a completely different semantic 2139 # ./install, which can be erroneously created by make from ./install.sh. 2140 # Reject install programs that cannot install multiple files. 2141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2142 $as_echo_n "checking for a BSD-compatible install... " >&6; } 2143 if test -z "$INSTALL"; then 2144 if ${ac_cv_path_install+:} false; then : 2145 $as_echo_n "(cached) " >&6 2146 else 2147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2148 for as_dir in $PATH 2149 do 2150 IFS=$as_save_IFS 2151 test -z "$as_dir" && as_dir=. 2152 # Account for people who put trailing slashes in PATH elements. 2153 case $as_dir/ in #(( 2154 ./ | .// | /[cC]/* | \ 2155 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2156 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2157 /usr/ucb/* ) ;; 2158 *) 2159 # OSF1 and SCO ODT 3.0 have their own names for install. 2160 # Don't use installbsd from OSF since it installs stuff as root 2161 # by default. 2162 for ac_prog in ginstall scoinst install; do 2163 for ac_exec_ext in '' $ac_executable_extensions; do 2164 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2165 if test $ac_prog = install && 2166 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2167 # AIX install. It has an incompatible calling convention. 2168 : 2169 elif test $ac_prog = install && 2170 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2171 # program-specific install script used by HP pwplus--don't use. 2172 : 2173 else 2174 rm -rf conftest.one conftest.two conftest.dir 2175 echo one > conftest.one 2176 echo two > conftest.two 2177 mkdir conftest.dir 2178 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2179 test -s conftest.one && test -s conftest.two && 2180 test -s conftest.dir/conftest.one && 2181 test -s conftest.dir/conftest.two 2182 then 2183 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2184 break 3 2185 fi 2186 fi 2187 fi 2188 done 2189 done 2190 ;; 2191 esac 2192 2193 done 2194 IFS=$as_save_IFS 2195 2196 rm -rf conftest.one conftest.two conftest.dir 2197 2198 fi 2199 if test "${ac_cv_path_install+set}" = set; then 2200 INSTALL=$ac_cv_path_install 2201 else 2202 # As a last resort, use the slow shell script. Don't cache a 2203 # value for INSTALL within a source directory, because that will 2204 # break other packages using the cache if that directory is 2205 # removed, or if the value is a relative name. 2206 INSTALL=$ac_install_sh 2207 fi 2208 fi 2209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2210 $as_echo "$INSTALL" >&6; } 2211 2212 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2213 # It thinks the first close brace ends the variable substitution. 2214 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2215 2216 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2217 2218 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2219 2220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2221 $as_echo_n "checking whether build environment is sane... " >&6; } 2222 # Reject unsafe characters in $srcdir or the absolute working directory 2223 # name. Accept space and tab only in the latter. 2224 am_lf=' 2225 ' 2226 case `pwd` in 2227 *[\\\"\#\$\&\'\`$am_lf]*) 2228 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2229 esac 2230 case $srcdir in 2231 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2232 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2233 esac 2234 2235 # Do 'set' in a subshell so we don't clobber the current shell's 2236 # arguments. Must try -L first in case configure is actually a 2237 # symlink; some systems play weird games with the mod time of symlinks 2238 # (eg FreeBSD returns the mod time of the symlink's containing 2239 # directory). 2240 if ( 2241 am_has_slept=no 2242 for am_try in 1 2; do 2243 echo "timestamp, slept: $am_has_slept" > conftest.file 2244 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2245 if test "$*" = "X"; then 2246 # -L didn't work. 2247 set X `ls -t "$srcdir/configure" conftest.file` 2248 fi 2249 if test "$*" != "X $srcdir/configure conftest.file" \ 2250 && test "$*" != "X conftest.file $srcdir/configure"; then 2251 2252 # If neither matched, then we have a broken ls. This can happen 2253 # if, for instance, CONFIG_SHELL is bash and it inherits a 2254 # broken ls alias from the environment. This has actually 2255 # happened. Such a system could not be considered "sane". 2256 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2257 alias in your environment" "$LINENO" 5 2258 fi 2259 if test "$2" = conftest.file || test $am_try -eq 2; then 2260 break 2261 fi 2262 # Just in case. 2263 sleep 1 2264 am_has_slept=yes 2265 done 2266 test "$2" = conftest.file 2267 ) 2268 then 2269 # Ok. 2270 : 2271 else 2272 as_fn_error $? "newly created file is older than distributed files! 2273 Check your system clock" "$LINENO" 5 2274 fi 2275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2276 $as_echo "yes" >&6; } 2277 # If we didn't sleep, we still need to ensure time stamps of config.status and 2278 # generated files are strictly newer. 2279 am_sleep_pid= 2280 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2281 ( sleep 1 ) & 2282 am_sleep_pid=$! 2283 fi 2284 2285 rm -f conftest.file 2286 2287 test "$program_prefix" != NONE && 2288 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2289 # Use a double $ so make ignores it. 2290 test "$program_suffix" != NONE && 2291 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2292 # Double any \ or $. 2293 # By default was `s,x,x', remove it if useless. 2294 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2295 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2296 2297 # Expand $ac_aux_dir to an absolute path. 2298 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2299 2300 if test x"${MISSING+set}" != xset; then 2301 case $am_aux_dir in 2302 *\ * | *\ *) 2303 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2304 *) 2305 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2306 esac 2307 fi 2308 # Use eval to expand $SHELL 2309 if eval "$MISSING --is-lightweight"; then 2310 am_missing_run="$MISSING " 2311 else 2312 am_missing_run= 2313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2314 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2315 fi 2316 2317 if test x"${install_sh+set}" != xset; then 2318 case $am_aux_dir in 2319 *\ * | *\ *) 2320 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2321 *) 2322 install_sh="\${SHELL} $am_aux_dir/install-sh" 2323 esac 2324 fi 2325 2326 # Installed binaries are usually stripped using 'strip' when the user 2327 # run "make install-strip". However 'strip' might not be the right 2328 # tool to use in cross-compilation environments, therefore Automake 2329 # will honor the 'STRIP' environment variable to overrule this program. 2330 if test "$cross_compiling" != no; then 2331 if test -n "$ac_tool_prefix"; then 2332 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2333 set dummy ${ac_tool_prefix}strip; ac_word=$2 2334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2335 $as_echo_n "checking for $ac_word... " >&6; } 2336 if ${ac_cv_prog_STRIP+:} false; then : 2337 $as_echo_n "(cached) " >&6 2338 else 2339 if test -n "$STRIP"; then 2340 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2341 else 2342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2343 for as_dir in $PATH 2344 do 2345 IFS=$as_save_IFS 2346 test -z "$as_dir" && as_dir=. 2347 for ac_exec_ext in '' $ac_executable_extensions; do 2348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2349 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2351 break 2 2352 fi 2353 done 2354 done 2355 IFS=$as_save_IFS 2356 2357 fi 2358 fi 2359 STRIP=$ac_cv_prog_STRIP 2360 if test -n "$STRIP"; then 2361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2362 $as_echo "$STRIP" >&6; } 2363 else 2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2365 $as_echo "no" >&6; } 2366 fi 2367 2368 2369 fi 2370 if test -z "$ac_cv_prog_STRIP"; then 2371 ac_ct_STRIP=$STRIP 2372 # Extract the first word of "strip", so it can be a program name with args. 2373 set dummy strip; ac_word=$2 2374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2375 $as_echo_n "checking for $ac_word... " >&6; } 2376 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2377 $as_echo_n "(cached) " >&6 2378 else 2379 if test -n "$ac_ct_STRIP"; then 2380 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2381 else 2382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2383 for as_dir in $PATH 2384 do 2385 IFS=$as_save_IFS 2386 test -z "$as_dir" && as_dir=. 2387 for ac_exec_ext in '' $ac_executable_extensions; do 2388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2389 ac_cv_prog_ac_ct_STRIP="strip" 2390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2391 break 2 2392 fi 2393 done 2394 done 2395 IFS=$as_save_IFS 2396 2397 fi 2398 fi 2399 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2400 if test -n "$ac_ct_STRIP"; then 2401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2402 $as_echo "$ac_ct_STRIP" >&6; } 2403 else 2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2405 $as_echo "no" >&6; } 2406 fi 2407 2408 if test "x$ac_ct_STRIP" = x; then 2409 STRIP=":" 2410 else 2411 case $cross_compiling:$ac_tool_warned in 2412 yes:) 2413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2415 ac_tool_warned=yes ;; 2416 esac 2417 STRIP=$ac_ct_STRIP 2418 fi 2419 else 2420 STRIP="$ac_cv_prog_STRIP" 2421 fi 2422 2423 fi 2424 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2425 2426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2427 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2428 if test -z "$MKDIR_P"; then 2429 if ${ac_cv_path_mkdir+:} false; then : 2430 $as_echo_n "(cached) " >&6 2431 else 2432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2433 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2434 do 2435 IFS=$as_save_IFS 2436 test -z "$as_dir" && as_dir=. 2437 for ac_prog in mkdir gmkdir; do 2438 for ac_exec_ext in '' $ac_executable_extensions; do 2439 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2440 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2441 'mkdir (GNU coreutils) '* | \ 2442 'mkdir (coreutils) '* | \ 2443 'mkdir (fileutils) '4.1*) 2444 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2445 break 3;; 2446 esac 2447 done 2448 done 2449 done 2450 IFS=$as_save_IFS 2451 2452 fi 2453 2454 test -d ./--version && rmdir ./--version 2455 if test "${ac_cv_path_mkdir+set}" = set; then 2456 MKDIR_P="$ac_cv_path_mkdir -p" 2457 else 2458 # As a last resort, use the slow shell script. Don't cache a 2459 # value for MKDIR_P within a source directory, because that will 2460 # break other packages using the cache if that directory is 2461 # removed, or if the value is a relative name. 2462 MKDIR_P="$ac_install_sh -d" 2463 fi 2464 fi 2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2466 $as_echo "$MKDIR_P" >&6; } 2467 2468 for ac_prog in gawk mawk nawk awk 2469 do 2470 # Extract the first word of "$ac_prog", so it can be a program name with args. 2471 set dummy $ac_prog; ac_word=$2 2472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2473 $as_echo_n "checking for $ac_word... " >&6; } 2474 if ${ac_cv_prog_AWK+:} false; then : 2475 $as_echo_n "(cached) " >&6 2476 else 2477 if test -n "$AWK"; then 2478 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2479 else 2480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2481 for as_dir in $PATH 2482 do 2483 IFS=$as_save_IFS 2484 test -z "$as_dir" && as_dir=. 2485 for ac_exec_ext in '' $ac_executable_extensions; do 2486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2487 ac_cv_prog_AWK="$ac_prog" 2488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2489 break 2 2490 fi 2491 done 2492 done 2493 IFS=$as_save_IFS 2494 2495 fi 2496 fi 2497 AWK=$ac_cv_prog_AWK 2498 if test -n "$AWK"; then 2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2500 $as_echo "$AWK" >&6; } 2501 else 2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2503 $as_echo "no" >&6; } 2504 fi 2505 2506 2507 test -n "$AWK" && break 2508 done 2509 2510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2511 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2512 set x ${MAKE-make} 2513 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2514 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2515 $as_echo_n "(cached) " >&6 2516 else 2517 cat >conftest.make <<\_ACEOF 2518 SHELL = /bin/sh 2519 all: 2520 @echo '@@@%%%=$(MAKE)=@@@%%%' 2521 _ACEOF 2522 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2523 case `${MAKE-make} -f conftest.make 2>/dev/null` in 2524 *@@@%%%=?*=@@@%%%*) 2525 eval ac_cv_prog_make_${ac_make}_set=yes;; 2526 *) 2527 eval ac_cv_prog_make_${ac_make}_set=no;; 2528 esac 2529 rm -f conftest.make 2530 fi 2531 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2533 $as_echo "yes" >&6; } 2534 SET_MAKE= 2535 else 2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2537 $as_echo "no" >&6; } 2538 SET_MAKE="MAKE=${MAKE-make}" 2539 fi 2540 2541 rm -rf .tst 2>/dev/null 2542 mkdir .tst 2>/dev/null 2543 if test -d .tst; then 2544 am__leading_dot=. 2545 else 2546 am__leading_dot=_ 2547 fi 2548 rmdir .tst 2>/dev/null 2549 2550 # Check whether --enable-silent-rules was given. 2551 if test "${enable_silent_rules+set}" = set; then : 2552 enableval=$enable_silent_rules; 2553 fi 2554 2555 case $enable_silent_rules in # ((( 2556 yes) AM_DEFAULT_VERBOSITY=0;; 2557 no) AM_DEFAULT_VERBOSITY=1;; 2558 *) AM_DEFAULT_VERBOSITY=1;; 2559 esac 2560 am_make=${MAKE-make} 2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2562 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2563 if ${am_cv_make_support_nested_variables+:} false; then : 2564 $as_echo_n "(cached) " >&6 2565 else 2566 if $as_echo 'TRUE=$(BAR$(V)) 2567 BAR0=false 2568 BAR1=true 2569 V=1 2570 am__doit: 2571 @$(TRUE) 2572 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2573 am_cv_make_support_nested_variables=yes 2574 else 2575 am_cv_make_support_nested_variables=no 2576 fi 2577 fi 2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2579 $as_echo "$am_cv_make_support_nested_variables" >&6; } 2580 if test $am_cv_make_support_nested_variables = yes; then 2581 AM_V='$(V)' 2582 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2583 else 2584 AM_V=$AM_DEFAULT_VERBOSITY 2585 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2586 fi 2587 AM_BACKSLASH='\' 2588 2589 if test "`cd $srcdir && pwd`" != "`pwd`"; then 2590 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2591 # is not polluted with repeated "-I." 2592 am__isrc=' -I$(srcdir)' 2593 # test to see if srcdir already configured 2594 if test -f $srcdir/config.status; then 2595 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2596 fi 2597 fi 2598 2599 # test whether we have cygpath 2600 if test -z "$CYGPATH_W"; then 2601 if (cygpath --version) >/dev/null 2>/dev/null; then 2602 CYGPATH_W='cygpath -w' 2603 else 2604 CYGPATH_W=echo 2605 fi 2606 fi 2607 2608 2609 # Define the identity of the package. 2610 PACKAGE='xtrap' 2611 VERSION='1.0.3' 2612 2613 2614 cat >>confdefs.h <<_ACEOF 2615 #define PACKAGE "$PACKAGE" 2616 _ACEOF 2617 2618 2619 cat >>confdefs.h <<_ACEOF 2620 #define VERSION "$VERSION" 2621 _ACEOF 2622 2623 # Some tools Automake needs. 2624 2625 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2626 2627 2628 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2629 2630 2631 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2632 2633 2634 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2635 2636 2637 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2638 2639 # For better backward compatibility. To be removed once Automake 1.9.x 2640 # dies out for good. For more background, see: 2641 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2642 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2643 mkdir_p='$(MKDIR_P)' 2644 2645 # We need awk for the "check" target (and possibly the TAP driver). The 2646 # system "awk" is bad on some platforms. 2647 # Always define AMTAR for backward compatibility. Yes, it's still used 2648 # in the wild :-( We should find a proper way to deprecate it ... 2649 AMTAR='$${TAR-tar}' 2650 2651 2652 # We'll loop over all known methods to create a tar archive until one works. 2653 _am_tools='gnutar pax cpio none' 2654 2655 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2656 2657 2658 2659 2660 2661 2662 # POSIX will say in a future version that running "rm -f" with no argument 2663 # is OK; and we want to be able to make that assumption in our Makefile 2664 # recipes. So use an aggressive probe to check that the usage we want is 2665 # actually supported "in the wild" to an acceptable degree. 2666 # See automake bug#10828. 2667 # To make any issue more visible, cause the running configure to be aborted 2668 # by default if the 'rm' program in use doesn't match our expectations; the 2669 # user can still override this though. 2670 if rm -f && rm -fr && rm -rf; then : OK; else 2671 cat >&2 <<'END' 2672 Oops! 2673 2674 Your 'rm' program seems unable to run without file operands specified 2675 on the command line, even when the '-f' option is present. This is contrary 2676 to the behaviour of most rm programs out there, and not conforming with 2677 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2678 2679 Please tell bug-automake@gnu.org about your system, including the value 2680 of your $PATH and any error possibly output before this message. This 2681 can help us improve future automake versions. 2682 2683 END 2684 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2685 echo 'Configuration will proceed anyway, since you have set the' >&2 2686 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2687 echo >&2 2688 else 2689 cat >&2 <<'END' 2690 Aborting the configuration process, to ensure you take notice of the issue. 2691 2692 You can download and install GNU coreutils to get an 'rm' implementation 2693 that behaves properly: <http://www.gnu.org/software/coreutils/>. 2694 2695 If you want to complete the configuration process using your problematic 2696 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2697 to "yes", and re-run configure. 2698 2699 END 2700 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2701 fi 2702 fi 2703 2704 DEPDIR="${am__leading_dot}deps" 2705 2706 ac_config_commands="$ac_config_commands depfiles" 2707 2708 2709 am_make=${MAKE-make} 2710 cat > confinc << 'END' 2711 am__doit: 2712 @echo this is the am__doit target 2713 .PHONY: am__doit 2714 END 2715 # If we don't find an include directive, just comment out the code. 2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2717 $as_echo_n "checking for style of include used by $am_make... " >&6; } 2718 am__include="#" 2719 am__quote= 2720 _am_result=none 2721 # First try GNU make style include. 2722 echo "include confinc" > confmf 2723 # Ignore all kinds of additional output from 'make'. 2724 case `$am_make -s -f confmf 2> /dev/null` in #( 2725 *the\ am__doit\ target*) 2726 am__include=include 2727 am__quote= 2728 _am_result=GNU 2729 ;; 2730 esac 2731 # Now try BSD make style include. 2732 if test "$am__include" = "#"; then 2733 echo '.include "confinc"' > confmf 2734 case `$am_make -s -f confmf 2> /dev/null` in #( 2735 *the\ am__doit\ target*) 2736 am__include=.include 2737 am__quote="\"" 2738 _am_result=BSD 2739 ;; 2740 esac 2741 fi 2742 2743 2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2745 $as_echo "$_am_result" >&6; } 2746 rm -f confinc confmf 2747 2748 # Check whether --enable-dependency-tracking was given. 2749 if test "${enable_dependency_tracking+set}" = set; then : 2750 enableval=$enable_dependency_tracking; 2751 fi 2752 2753 if test "x$enable_dependency_tracking" != xno; then 2754 am_depcomp="$ac_aux_dir/depcomp" 2755 AMDEPBACKSLASH='\' 2756 am__nodep='_no' 2757 fi 2758 if test "x$enable_dependency_tracking" != xno; then 2759 AMDEP_TRUE= 2760 AMDEP_FALSE='#' 2761 else 2762 AMDEP_TRUE='#' 2763 AMDEP_FALSE= 2764 fi 2765 2766 2767 ac_ext=c 2768 ac_cpp='$CPP $CPPFLAGS' 2769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2771 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2772 if test -n "$ac_tool_prefix"; then 2773 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2774 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2776 $as_echo_n "checking for $ac_word... " >&6; } 2777 if ${ac_cv_prog_CC+:} false; then : 2778 $as_echo_n "(cached) " >&6 2779 else 2780 if test -n "$CC"; then 2781 ac_cv_prog_CC="$CC" # Let the user override the test. 2782 else 2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2784 for as_dir in $PATH 2785 do 2786 IFS=$as_save_IFS 2787 test -z "$as_dir" && as_dir=. 2788 for ac_exec_ext in '' $ac_executable_extensions; do 2789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2790 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2792 break 2 2793 fi 2794 done 2795 done 2796 IFS=$as_save_IFS 2797 2798 fi 2799 fi 2800 CC=$ac_cv_prog_CC 2801 if test -n "$CC"; then 2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2803 $as_echo "$CC" >&6; } 2804 else 2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2806 $as_echo "no" >&6; } 2807 fi 2808 2809 2810 fi 2811 if test -z "$ac_cv_prog_CC"; then 2812 ac_ct_CC=$CC 2813 # Extract the first word of "gcc", so it can be a program name with args. 2814 set dummy gcc; ac_word=$2 2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2816 $as_echo_n "checking for $ac_word... " >&6; } 2817 if ${ac_cv_prog_ac_ct_CC+:} false; then : 2818 $as_echo_n "(cached) " >&6 2819 else 2820 if test -n "$ac_ct_CC"; then 2821 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2822 else 2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2824 for as_dir in $PATH 2825 do 2826 IFS=$as_save_IFS 2827 test -z "$as_dir" && as_dir=. 2828 for ac_exec_ext in '' $ac_executable_extensions; do 2829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2830 ac_cv_prog_ac_ct_CC="gcc" 2831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2832 break 2 2833 fi 2834 done 2835 done 2836 IFS=$as_save_IFS 2837 2838 fi 2839 fi 2840 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2841 if test -n "$ac_ct_CC"; then 2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2843 $as_echo "$ac_ct_CC" >&6; } 2844 else 2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2846 $as_echo "no" >&6; } 2847 fi 2848 2849 if test "x$ac_ct_CC" = x; then 2850 CC="" 2851 else 2852 case $cross_compiling:$ac_tool_warned in 2853 yes:) 2854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2856 ac_tool_warned=yes ;; 2857 esac 2858 CC=$ac_ct_CC 2859 fi 2860 else 2861 CC="$ac_cv_prog_CC" 2862 fi 2863 2864 if test -z "$CC"; then 2865 if test -n "$ac_tool_prefix"; then 2866 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2867 set dummy ${ac_tool_prefix}cc; ac_word=$2 2868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2869 $as_echo_n "checking for $ac_word... " >&6; } 2870 if ${ac_cv_prog_CC+:} false; then : 2871 $as_echo_n "(cached) " >&6 2872 else 2873 if test -n "$CC"; then 2874 ac_cv_prog_CC="$CC" # Let the user override the test. 2875 else 2876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2877 for as_dir in $PATH 2878 do 2879 IFS=$as_save_IFS 2880 test -z "$as_dir" && as_dir=. 2881 for ac_exec_ext in '' $ac_executable_extensions; do 2882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2883 ac_cv_prog_CC="${ac_tool_prefix}cc" 2884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2885 break 2 2886 fi 2887 done 2888 done 2889 IFS=$as_save_IFS 2890 2891 fi 2892 fi 2893 CC=$ac_cv_prog_CC 2894 if test -n "$CC"; then 2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2896 $as_echo "$CC" >&6; } 2897 else 2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2899 $as_echo "no" >&6; } 2900 fi 2901 2902 2903 fi 2904 fi 2905 if test -z "$CC"; then 2906 # Extract the first word of "cc", so it can be a program name with args. 2907 set dummy cc; ac_word=$2 2908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2909 $as_echo_n "checking for $ac_word... " >&6; } 2910 if ${ac_cv_prog_CC+:} false; then : 2911 $as_echo_n "(cached) " >&6 2912 else 2913 if test -n "$CC"; then 2914 ac_cv_prog_CC="$CC" # Let the user override the test. 2915 else 2916 ac_prog_rejected=no 2917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2918 for as_dir in $PATH 2919 do 2920 IFS=$as_save_IFS 2921 test -z "$as_dir" && as_dir=. 2922 for ac_exec_ext in '' $ac_executable_extensions; do 2923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2924 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2925 ac_prog_rejected=yes 2926 continue 2927 fi 2928 ac_cv_prog_CC="cc" 2929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2930 break 2 2931 fi 2932 done 2933 done 2934 IFS=$as_save_IFS 2935 2936 if test $ac_prog_rejected = yes; then 2937 # We found a bogon in the path, so make sure we never use it. 2938 set dummy $ac_cv_prog_CC 2939 shift 2940 if test $# != 0; then 2941 # We chose a different compiler from the bogus one. 2942 # However, it has the same basename, so the bogon will be chosen 2943 # first if we set CC to just the basename; use the full file name. 2944 shift 2945 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2946 fi 2947 fi 2948 fi 2949 fi 2950 CC=$ac_cv_prog_CC 2951 if test -n "$CC"; then 2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2953 $as_echo "$CC" >&6; } 2954 else 2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2956 $as_echo "no" >&6; } 2957 fi 2958 2959 2960 fi 2961 if test -z "$CC"; then 2962 if test -n "$ac_tool_prefix"; then 2963 for ac_prog in cl.exe 2964 do 2965 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2966 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2968 $as_echo_n "checking for $ac_word... " >&6; } 2969 if ${ac_cv_prog_CC+:} false; then : 2970 $as_echo_n "(cached) " >&6 2971 else 2972 if test -n "$CC"; then 2973 ac_cv_prog_CC="$CC" # Let the user override the test. 2974 else 2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2976 for as_dir in $PATH 2977 do 2978 IFS=$as_save_IFS 2979 test -z "$as_dir" && as_dir=. 2980 for ac_exec_ext in '' $ac_executable_extensions; do 2981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2982 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2984 break 2 2985 fi 2986 done 2987 done 2988 IFS=$as_save_IFS 2989 2990 fi 2991 fi 2992 CC=$ac_cv_prog_CC 2993 if test -n "$CC"; then 2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2995 $as_echo "$CC" >&6; } 2996 else 2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2998 $as_echo "no" >&6; } 2999 fi 3000 3001 3002 test -n "$CC" && break 3003 done 3004 fi 3005 if test -z "$CC"; then 3006 ac_ct_CC=$CC 3007 for ac_prog in cl.exe 3008 do 3009 # Extract the first word of "$ac_prog", so it can be a program name with args. 3010 set dummy $ac_prog; ac_word=$2 3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3012 $as_echo_n "checking for $ac_word... " >&6; } 3013 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3014 $as_echo_n "(cached) " >&6 3015 else 3016 if test -n "$ac_ct_CC"; then 3017 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3018 else 3019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3020 for as_dir in $PATH 3021 do 3022 IFS=$as_save_IFS 3023 test -z "$as_dir" && as_dir=. 3024 for ac_exec_ext in '' $ac_executable_extensions; do 3025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3026 ac_cv_prog_ac_ct_CC="$ac_prog" 3027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3028 break 2 3029 fi 3030 done 3031 done 3032 IFS=$as_save_IFS 3033 3034 fi 3035 fi 3036 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3037 if test -n "$ac_ct_CC"; then 3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3039 $as_echo "$ac_ct_CC" >&6; } 3040 else 3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3042 $as_echo "no" >&6; } 3043 fi 3044 3045 3046 test -n "$ac_ct_CC" && break 3047 done 3048 3049 if test "x$ac_ct_CC" = x; then 3050 CC="" 3051 else 3052 case $cross_compiling:$ac_tool_warned in 3053 yes:) 3054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3056 ac_tool_warned=yes ;; 3057 esac 3058 CC=$ac_ct_CC 3059 fi 3060 fi 3061 3062 fi 3063 3064 3065 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3067 as_fn_error $? "no acceptable C compiler found in \$PATH 3068 See \`config.log' for more details" "$LINENO" 5; } 3069 3070 # Provide some information about the compiler. 3071 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3072 set X $ac_compile 3073 ac_compiler=$2 3074 for ac_option in --version -v -V -qversion; do 3075 { { ac_try="$ac_compiler $ac_option >&5" 3076 case "(($ac_try" in 3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3078 *) ac_try_echo=$ac_try;; 3079 esac 3080 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3081 $as_echo "$ac_try_echo"; } >&5 3082 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3083 ac_status=$? 3084 if test -s conftest.err; then 3085 sed '10a\ 3086 ... rest of stderr output deleted ... 3087 10q' conftest.err >conftest.er1 3088 cat conftest.er1 >&5 3089 fi 3090 rm -f conftest.er1 conftest.err 3091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3092 test $ac_status = 0; } 3093 done 3094 3095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3096 /* end confdefs.h. */ 3097 3098 int 3099 main () 3100 { 3101 3102 ; 3103 return 0; 3104 } 3105 _ACEOF 3106 ac_clean_files_save=$ac_clean_files 3107 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3108 # Try to create an executable without -o first, disregard a.out. 3109 # It will help us diagnose broken compilers, and finding out an intuition 3110 # of exeext. 3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3112 $as_echo_n "checking whether the C compiler works... " >&6; } 3113 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3114 3115 # The possible output files: 3116 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3117 3118 ac_rmfiles= 3119 for ac_file in $ac_files 3120 do 3121 case $ac_file in 3122 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3123 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3124 esac 3125 done 3126 rm -f $ac_rmfiles 3127 3128 if { { ac_try="$ac_link_default" 3129 case "(($ac_try" in 3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3131 *) ac_try_echo=$ac_try;; 3132 esac 3133 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3134 $as_echo "$ac_try_echo"; } >&5 3135 (eval "$ac_link_default") 2>&5 3136 ac_status=$? 3137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3138 test $ac_status = 0; }; then : 3139 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3140 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3141 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3142 # so that the user can short-circuit this test for compilers unknown to 3143 # Autoconf. 3144 for ac_file in $ac_files '' 3145 do 3146 test -f "$ac_file" || continue 3147 case $ac_file in 3148 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3149 ;; 3150 [ab].out ) 3151 # We found the default executable, but exeext='' is most 3152 # certainly right. 3153 break;; 3154 *.* ) 3155 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3156 then :; else 3157 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3158 fi 3159 # We set ac_cv_exeext here because the later test for it is not 3160 # safe: cross compilers may not add the suffix if given an `-o' 3161 # argument, so we may need to know it at that point already. 3162 # Even if this section looks crufty: it has the advantage of 3163 # actually working. 3164 break;; 3165 * ) 3166 break;; 3167 esac 3168 done 3169 test "$ac_cv_exeext" = no && ac_cv_exeext= 3170 3171 else 3172 ac_file='' 3173 fi 3174 if test -z "$ac_file"; then : 3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3176 $as_echo "no" >&6; } 3177 $as_echo "$as_me: failed program was:" >&5 3178 sed 's/^/| /' conftest.$ac_ext >&5 3179 3180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3182 as_fn_error 77 "C compiler cannot create executables 3183 See \`config.log' for more details" "$LINENO" 5; } 3184 else 3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3186 $as_echo "yes" >&6; } 3187 fi 3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3189 $as_echo_n "checking for C compiler default output file name... " >&6; } 3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3191 $as_echo "$ac_file" >&6; } 3192 ac_exeext=$ac_cv_exeext 3193 3194 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3195 ac_clean_files=$ac_clean_files_save 3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3197 $as_echo_n "checking for suffix of executables... " >&6; } 3198 if { { ac_try="$ac_link" 3199 case "(($ac_try" in 3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3201 *) ac_try_echo=$ac_try;; 3202 esac 3203 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3204 $as_echo "$ac_try_echo"; } >&5 3205 (eval "$ac_link") 2>&5 3206 ac_status=$? 3207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3208 test $ac_status = 0; }; then : 3209 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3210 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3211 # work properly (i.e., refer to `conftest.exe'), while it won't with 3212 # `rm'. 3213 for ac_file in conftest.exe conftest conftest.*; do 3214 test -f "$ac_file" || continue 3215 case $ac_file in 3216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3217 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3218 break;; 3219 * ) break;; 3220 esac 3221 done 3222 else 3223 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3225 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3226 See \`config.log' for more details" "$LINENO" 5; } 3227 fi 3228 rm -f conftest conftest$ac_cv_exeext 3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3230 $as_echo "$ac_cv_exeext" >&6; } 3231 3232 rm -f conftest.$ac_ext 3233 EXEEXT=$ac_cv_exeext 3234 ac_exeext=$EXEEXT 3235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3236 /* end confdefs.h. */ 3237 #include <stdio.h> 3238 int 3239 main () 3240 { 3241 FILE *f = fopen ("conftest.out", "w"); 3242 return ferror (f) || fclose (f) != 0; 3243 3244 ; 3245 return 0; 3246 } 3247 _ACEOF 3248 ac_clean_files="$ac_clean_files conftest.out" 3249 # Check that the compiler produces executables we can run. If not, either 3250 # the compiler is broken, or we cross compile. 3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3252 $as_echo_n "checking whether we are cross compiling... " >&6; } 3253 if test "$cross_compiling" != yes; then 3254 { { ac_try="$ac_link" 3255 case "(($ac_try" in 3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3257 *) ac_try_echo=$ac_try;; 3258 esac 3259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3260 $as_echo "$ac_try_echo"; } >&5 3261 (eval "$ac_link") 2>&5 3262 ac_status=$? 3263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3264 test $ac_status = 0; } 3265 if { ac_try='./conftest$ac_cv_exeext' 3266 { { case "(($ac_try" in 3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3268 *) ac_try_echo=$ac_try;; 3269 esac 3270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3271 $as_echo "$ac_try_echo"; } >&5 3272 (eval "$ac_try") 2>&5 3273 ac_status=$? 3274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3275 test $ac_status = 0; }; }; then 3276 cross_compiling=no 3277 else 3278 if test "$cross_compiling" = maybe; then 3279 cross_compiling=yes 3280 else 3281 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3283 as_fn_error $? "cannot run C compiled programs. 3284 If you meant to cross compile, use \`--host'. 3285 See \`config.log' for more details" "$LINENO" 5; } 3286 fi 3287 fi 3288 fi 3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3290 $as_echo "$cross_compiling" >&6; } 3291 3292 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3293 ac_clean_files=$ac_clean_files_save 3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3295 $as_echo_n "checking for suffix of object files... " >&6; } 3296 if ${ac_cv_objext+:} false; then : 3297 $as_echo_n "(cached) " >&6 3298 else 3299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3300 /* end confdefs.h. */ 3301 3302 int 3303 main () 3304 { 3305 3306 ; 3307 return 0; 3308 } 3309 _ACEOF 3310 rm -f conftest.o conftest.obj 3311 if { { ac_try="$ac_compile" 3312 case "(($ac_try" in 3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3314 *) ac_try_echo=$ac_try;; 3315 esac 3316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3317 $as_echo "$ac_try_echo"; } >&5 3318 (eval "$ac_compile") 2>&5 3319 ac_status=$? 3320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3321 test $ac_status = 0; }; then : 3322 for ac_file in conftest.o conftest.obj conftest.*; do 3323 test -f "$ac_file" || continue; 3324 case $ac_file in 3325 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3326 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3327 break;; 3328 esac 3329 done 3330 else 3331 $as_echo "$as_me: failed program was:" >&5 3332 sed 's/^/| /' conftest.$ac_ext >&5 3333 3334 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3335 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3336 as_fn_error $? "cannot compute suffix of object files: cannot compile 3337 See \`config.log' for more details" "$LINENO" 5; } 3338 fi 3339 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3340 fi 3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3342 $as_echo "$ac_cv_objext" >&6; } 3343 OBJEXT=$ac_cv_objext 3344 ac_objext=$OBJEXT 3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3346 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3347 if ${ac_cv_c_compiler_gnu+:} false; then : 3348 $as_echo_n "(cached) " >&6 3349 else 3350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3351 /* end confdefs.h. */ 3352 3353 int 3354 main () 3355 { 3356 #ifndef __GNUC__ 3357 choke me 3358 #endif 3359 3360 ; 3361 return 0; 3362 } 3363 _ACEOF 3364 if ac_fn_c_try_compile "$LINENO"; then : 3365 ac_compiler_gnu=yes 3366 else 3367 ac_compiler_gnu=no 3368 fi 3369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3370 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3371 3372 fi 3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3374 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3375 if test $ac_compiler_gnu = yes; then 3376 GCC=yes 3377 else 3378 GCC= 3379 fi 3380 ac_test_CFLAGS=${CFLAGS+set} 3381 ac_save_CFLAGS=$CFLAGS 3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3383 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3384 if ${ac_cv_prog_cc_g+:} false; then : 3385 $as_echo_n "(cached) " >&6 3386 else 3387 ac_save_c_werror_flag=$ac_c_werror_flag 3388 ac_c_werror_flag=yes 3389 ac_cv_prog_cc_g=no 3390 CFLAGS="-g" 3391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3392 /* end confdefs.h. */ 3393 3394 int 3395 main () 3396 { 3397 3398 ; 3399 return 0; 3400 } 3401 _ACEOF 3402 if ac_fn_c_try_compile "$LINENO"; then : 3403 ac_cv_prog_cc_g=yes 3404 else 3405 CFLAGS="" 3406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3407 /* end confdefs.h. */ 3408 3409 int 3410 main () 3411 { 3412 3413 ; 3414 return 0; 3415 } 3416 _ACEOF 3417 if ac_fn_c_try_compile "$LINENO"; then : 3418 3419 else 3420 ac_c_werror_flag=$ac_save_c_werror_flag 3421 CFLAGS="-g" 3422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3423 /* end confdefs.h. */ 3424 3425 int 3426 main () 3427 { 3428 3429 ; 3430 return 0; 3431 } 3432 _ACEOF 3433 if ac_fn_c_try_compile "$LINENO"; then : 3434 ac_cv_prog_cc_g=yes 3435 fi 3436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3437 fi 3438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3439 fi 3440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3441 ac_c_werror_flag=$ac_save_c_werror_flag 3442 fi 3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3444 $as_echo "$ac_cv_prog_cc_g" >&6; } 3445 if test "$ac_test_CFLAGS" = set; then 3446 CFLAGS=$ac_save_CFLAGS 3447 elif test $ac_cv_prog_cc_g = yes; then 3448 if test "$GCC" = yes; then 3449 CFLAGS="-g -O2" 3450 else 3451 CFLAGS="-g" 3452 fi 3453 else 3454 if test "$GCC" = yes; then 3455 CFLAGS="-O2" 3456 else 3457 CFLAGS= 3458 fi 3459 fi 3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3461 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3462 if ${ac_cv_prog_cc_c89+:} false; then : 3463 $as_echo_n "(cached) " >&6 3464 else 3465 ac_cv_prog_cc_c89=no 3466 ac_save_CC=$CC 3467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3468 /* end confdefs.h. */ 3469 #include <stdarg.h> 3470 #include <stdio.h> 3471 struct stat; 3472 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3473 struct buf { int x; }; 3474 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3475 static char *e (p, i) 3476 char **p; 3477 int i; 3478 { 3479 return p[i]; 3480 } 3481 static char *f (char * (*g) (char **, int), char **p, ...) 3482 { 3483 char *s; 3484 va_list v; 3485 va_start (v,p); 3486 s = g (p, va_arg (v,int)); 3487 va_end (v); 3488 return s; 3489 } 3490 3491 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3492 function prototypes and stuff, but not '\xHH' hex character constants. 3493 These don't provoke an error unfortunately, instead are silently treated 3494 as 'x'. The following induces an error, until -std is added to get 3495 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3496 array size at least. It's necessary to write '\x00'==0 to get something 3497 that's true only with -std. */ 3498 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3499 3500 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3501 inside strings and character constants. */ 3502 #define FOO(x) 'x' 3503 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3504 3505 int test (int i, double x); 3506 struct s1 {int (*f) (int a);}; 3507 struct s2 {int (*f) (double a);}; 3508 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3509 int argc; 3510 char **argv; 3511 int 3512 main () 3513 { 3514 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3515 ; 3516 return 0; 3517 } 3518 _ACEOF 3519 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3520 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3521 do 3522 CC="$ac_save_CC $ac_arg" 3523 if ac_fn_c_try_compile "$LINENO"; then : 3524 ac_cv_prog_cc_c89=$ac_arg 3525 fi 3526 rm -f core conftest.err conftest.$ac_objext 3527 test "x$ac_cv_prog_cc_c89" != "xno" && break 3528 done 3529 rm -f conftest.$ac_ext 3530 CC=$ac_save_CC 3531 3532 fi 3533 # AC_CACHE_VAL 3534 case "x$ac_cv_prog_cc_c89" in 3535 x) 3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3537 $as_echo "none needed" >&6; } ;; 3538 xno) 3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3540 $as_echo "unsupported" >&6; } ;; 3541 *) 3542 CC="$CC $ac_cv_prog_cc_c89" 3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3544 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3545 esac 3546 if test "x$ac_cv_prog_cc_c89" != xno; then : 3547 3548 fi 3549 3550 ac_ext=c 3551 ac_cpp='$CPP $CPPFLAGS' 3552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3554 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3555 3556 ac_ext=c 3557 ac_cpp='$CPP $CPPFLAGS' 3558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3560 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3562 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3563 if ${am_cv_prog_cc_c_o+:} false; then : 3564 $as_echo_n "(cached) " >&6 3565 else 3566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3567 /* end confdefs.h. */ 3568 3569 int 3570 main () 3571 { 3572 3573 ; 3574 return 0; 3575 } 3576 _ACEOF 3577 # Make sure it works both with $CC and with simple cc. 3578 # Following AC_PROG_CC_C_O, we do the test twice because some 3579 # compilers refuse to overwrite an existing .o file with -o, 3580 # though they will create one. 3581 am_cv_prog_cc_c_o=yes 3582 for am_i in 1 2; do 3583 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3584 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3585 ac_status=$? 3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3587 (exit $ac_status); } \ 3588 && test -f conftest2.$ac_objext; then 3589 : OK 3590 else 3591 am_cv_prog_cc_c_o=no 3592 break 3593 fi 3594 done 3595 rm -f core conftest* 3596 unset am_i 3597 fi 3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3599 $as_echo "$am_cv_prog_cc_c_o" >&6; } 3600 if test "$am_cv_prog_cc_c_o" != yes; then 3601 # Losing compiler, so override with the script. 3602 # FIXME: It is wrong to rewrite CC. 3603 # But if we don't then we get into trouble of one sort or another. 3604 # A longer-term fix would be to have automake use am__CC in this case, 3605 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3606 CC="$am_aux_dir/compile $CC" 3607 fi 3608 ac_ext=c 3609 ac_cpp='$CPP $CPPFLAGS' 3610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3612 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3613 3614 3615 depcc="$CC" am_compiler_list= 3616 3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3618 $as_echo_n "checking dependency style of $depcc... " >&6; } 3619 if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3620 $as_echo_n "(cached) " >&6 3621 else 3622 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3623 # We make a subdir and do the tests there. Otherwise we can end up 3624 # making bogus files that we don't know about and never remove. For 3625 # instance it was reported that on HP-UX the gcc test will end up 3626 # making a dummy file named 'D' -- because '-MD' means "put the output 3627 # in D". 3628 rm -rf conftest.dir 3629 mkdir conftest.dir 3630 # Copy depcomp to subdir because otherwise we won't find it if we're 3631 # using a relative directory. 3632 cp "$am_depcomp" conftest.dir 3633 cd conftest.dir 3634 # We will build objects and dependencies in a subdirectory because 3635 # it helps to detect inapplicable dependency modes. For instance 3636 # both Tru64's cc and ICC support -MD to output dependencies as a 3637 # side effect of compilation, but ICC will put the dependencies in 3638 # the current directory while Tru64 will put them in the object 3639 # directory. 3640 mkdir sub 3641 3642 am_cv_CC_dependencies_compiler_type=none 3643 if test "$am_compiler_list" = ""; then 3644 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3645 fi 3646 am__universal=false 3647 case " $depcc " in #( 3648 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3649 esac 3650 3651 for depmode in $am_compiler_list; do 3652 # Setup a source with many dependencies, because some compilers 3653 # like to wrap large dependency lists on column 80 (with \), and 3654 # we should not choose a depcomp mode which is confused by this. 3655 # 3656 # We need to recreate these files for each test, as the compiler may 3657 # overwrite some of them when testing with obscure command lines. 3658 # This happens at least with the AIX C compiler. 3659 : > sub/conftest.c 3660 for i in 1 2 3 4 5 6; do 3661 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3662 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3663 # Solaris 10 /bin/sh. 3664 echo '/* dummy */' > sub/conftst$i.h 3665 done 3666 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3667 3668 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3669 # mode. It turns out that the SunPro C++ compiler does not properly 3670 # handle '-M -o', and we need to detect this. Also, some Intel 3671 # versions had trouble with output in subdirs. 3672 am__obj=sub/conftest.${OBJEXT-o} 3673 am__minus_obj="-o $am__obj" 3674 case $depmode in 3675 gcc) 3676 # This depmode causes a compiler race in universal mode. 3677 test "$am__universal" = false || continue 3678 ;; 3679 nosideeffect) 3680 # After this tag, mechanisms are not by side-effect, so they'll 3681 # only be used when explicitly requested. 3682 if test "x$enable_dependency_tracking" = xyes; then 3683 continue 3684 else 3685 break 3686 fi 3687 ;; 3688 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3689 # This compiler won't grok '-c -o', but also, the minuso test has 3690 # not run yet. These depmodes are late enough in the game, and 3691 # so weak that their functioning should not be impacted. 3692 am__obj=conftest.${OBJEXT-o} 3693 am__minus_obj= 3694 ;; 3695 none) break ;; 3696 esac 3697 if depmode=$depmode \ 3698 source=sub/conftest.c object=$am__obj \ 3699 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3700 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3701 >/dev/null 2>conftest.err && 3702 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3703 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3704 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3705 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3706 # icc doesn't choke on unknown options, it will just issue warnings 3707 # or remarks (even with -Werror). So we grep stderr for any message 3708 # that says an option was ignored or not supported. 3709 # When given -MP, icc 7.0 and 7.1 complain thusly: 3710 # icc: Command line warning: ignoring option '-M'; no argument required 3711 # The diagnosis changed in icc 8.0: 3712 # icc: Command line remark: option '-MP' not supported 3713 if (grep 'ignoring option' conftest.err || 3714 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3715 am_cv_CC_dependencies_compiler_type=$depmode 3716 break 3717 fi 3718 fi 3719 done 3720 3721 cd .. 3722 rm -rf conftest.dir 3723 else 3724 am_cv_CC_dependencies_compiler_type=none 3725 fi 3726 3727 fi 3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3729 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3730 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3731 3732 if 3733 test "x$enable_dependency_tracking" != xno \ 3734 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3735 am__fastdepCC_TRUE= 3736 am__fastdepCC_FALSE='#' 3737 else 3738 am__fastdepCC_TRUE='#' 3739 am__fastdepCC_FALSE= 3740 fi 3741 3742 3743 3744 3745 # Require xorg-macros 1.3 or later: XORG_DEFAULT_OPTIONS 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3758 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3759 if ${ac_cv_prog_cc_c99+:} false; then : 3760 $as_echo_n "(cached) " >&6 3761 else 3762 ac_cv_prog_cc_c99=no 3763 ac_save_CC=$CC 3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3765 /* end confdefs.h. */ 3766 #include <stdarg.h> 3767 #include <stdbool.h> 3768 #include <stdlib.h> 3769 #include <wchar.h> 3770 #include <stdio.h> 3771 3772 // Check varargs macros. These examples are taken from C99 6.10.3.5. 3773 #define debug(...) fprintf (stderr, __VA_ARGS__) 3774 #define showlist(...) puts (#__VA_ARGS__) 3775 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3776 static void 3777 test_varargs_macros (void) 3778 { 3779 int x = 1234; 3780 int y = 5678; 3781 debug ("Flag"); 3782 debug ("X = %d\n", x); 3783 showlist (The first, second, and third items.); 3784 report (x>y, "x is %d but y is %d", x, y); 3785 } 3786 3787 // Check long long types. 3788 #define BIG64 18446744073709551615ull 3789 #define BIG32 4294967295ul 3790 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3791 #if !BIG_OK 3792 your preprocessor is broken; 3793 #endif 3794 #if BIG_OK 3795 #else 3796 your preprocessor is broken; 3797 #endif 3798 static long long int bignum = -9223372036854775807LL; 3799 static unsigned long long int ubignum = BIG64; 3800 3801 struct incomplete_array 3802 { 3803 int datasize; 3804 double data[]; 3805 }; 3806 3807 struct named_init { 3808 int number; 3809 const wchar_t *name; 3810 double average; 3811 }; 3812 3813 typedef const char *ccp; 3814 3815 static inline int 3816 test_restrict (ccp restrict text) 3817 { 3818 // See if C++-style comments work. 3819 // Iterate through items via the restricted pointer. 3820 // Also check for declarations in for loops. 3821 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3822 continue; 3823 return 0; 3824 } 3825 3826 // Check varargs and va_copy. 3827 static void 3828 test_varargs (const char *format, ...) 3829 { 3830 va_list args; 3831 va_start (args, format); 3832 va_list args_copy; 3833 va_copy (args_copy, args); 3834 3835 const char *str; 3836 int number; 3837 float fnumber; 3838 3839 while (*format) 3840 { 3841 switch (*format++) 3842 { 3843 case 's': // string 3844 str = va_arg (args_copy, const char *); 3845 break; 3846 case 'd': // int 3847 number = va_arg (args_copy, int); 3848 break; 3849 case 'f': // float 3850 fnumber = va_arg (args_copy, double); 3851 break; 3852 default: 3853 break; 3854 } 3855 } 3856 va_end (args_copy); 3857 va_end (args); 3858 } 3859 3860 int 3861 main () 3862 { 3863 3864 // Check bool. 3865 _Bool success = false; 3866 3867 // Check restrict. 3868 if (test_restrict ("String literal") == 0) 3869 success = true; 3870 char *restrict newvar = "Another string"; 3871 3872 // Check varargs. 3873 test_varargs ("s, d' f .", "string", 65, 34.234); 3874 test_varargs_macros (); 3875 3876 // Check flexible array members. 3877 struct incomplete_array *ia = 3878 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3879 ia->datasize = 10; 3880 for (int i = 0; i < ia->datasize; ++i) 3881 ia->data[i] = i * 1.234; 3882 3883 // Check named initializers. 3884 struct named_init ni = { 3885 .number = 34, 3886 .name = L"Test wide string", 3887 .average = 543.34343, 3888 }; 3889 3890 ni.number = 58; 3891 3892 int dynamic_array[ni.number]; 3893 dynamic_array[ni.number - 1] = 543; 3894 3895 // work around unused variable warnings 3896 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3897 || dynamic_array[ni.number - 1] != 543); 3898 3899 ; 3900 return 0; 3901 } 3902 _ACEOF 3903 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 3904 do 3905 CC="$ac_save_CC $ac_arg" 3906 if ac_fn_c_try_compile "$LINENO"; then : 3907 ac_cv_prog_cc_c99=$ac_arg 3908 fi 3909 rm -f core conftest.err conftest.$ac_objext 3910 test "x$ac_cv_prog_cc_c99" != "xno" && break 3911 done 3912 rm -f conftest.$ac_ext 3913 CC=$ac_save_CC 3914 3915 fi 3916 # AC_CACHE_VAL 3917 case "x$ac_cv_prog_cc_c99" in 3918 x) 3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3920 $as_echo "none needed" >&6; } ;; 3921 xno) 3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3923 $as_echo "unsupported" >&6; } ;; 3924 *) 3925 CC="$CC $ac_cv_prog_cc_c99" 3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3927 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3928 esac 3929 if test "x$ac_cv_prog_cc_c99" != xno; then : 3930 3931 fi 3932 3933 3934 3935 ac_ext=c 3936 ac_cpp='$CPP $CPPFLAGS' 3937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3939 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3941 $as_echo_n "checking how to run the C preprocessor... " >&6; } 3942 # On Suns, sometimes $CPP names a directory. 3943 if test -n "$CPP" && test -d "$CPP"; then 3944 CPP= 3945 fi 3946 if test -z "$CPP"; then 3947 if ${ac_cv_prog_CPP+:} false; then : 3948 $as_echo_n "(cached) " >&6 3949 else 3950 # Double quotes because CPP needs to be expanded 3951 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3952 do 3953 ac_preproc_ok=false 3954 for ac_c_preproc_warn_flag in '' yes 3955 do 3956 # Use a header file that comes with gcc, so configuring glibc 3957 # with a fresh cross-compiler works. 3958 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3959 # <limits.h> exists even on freestanding compilers. 3960 # On the NeXT, cc -E runs the code through the compiler's parser, 3961 # not just through cpp. "Syntax error" is here to catch this case. 3962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3963 /* end confdefs.h. */ 3964 #ifdef __STDC__ 3965 # include <limits.h> 3966 #else 3967 # include <assert.h> 3968 #endif 3969 Syntax error 3970 _ACEOF 3971 if ac_fn_c_try_cpp "$LINENO"; then : 3972 3973 else 3974 # Broken: fails on valid input. 3975 continue 3976 fi 3977 rm -f conftest.err conftest.i conftest.$ac_ext 3978 3979 # OK, works on sane cases. Now check whether nonexistent headers 3980 # can be detected and how. 3981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3982 /* end confdefs.h. */ 3983 #include <ac_nonexistent.h> 3984 _ACEOF 3985 if ac_fn_c_try_cpp "$LINENO"; then : 3986 # Broken: success on invalid input. 3987 continue 3988 else 3989 # Passes both tests. 3990 ac_preproc_ok=: 3991 break 3992 fi 3993 rm -f conftest.err conftest.i conftest.$ac_ext 3994 3995 done 3996 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3997 rm -f conftest.i conftest.err conftest.$ac_ext 3998 if $ac_preproc_ok; then : 3999 break 4000 fi 4001 4002 done 4003 ac_cv_prog_CPP=$CPP 4004 4005 fi 4006 CPP=$ac_cv_prog_CPP 4007 else 4008 ac_cv_prog_CPP=$CPP 4009 fi 4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4011 $as_echo "$CPP" >&6; } 4012 ac_preproc_ok=false 4013 for ac_c_preproc_warn_flag in '' yes 4014 do 4015 # Use a header file that comes with gcc, so configuring glibc 4016 # with a fresh cross-compiler works. 4017 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4018 # <limits.h> exists even on freestanding compilers. 4019 # On the NeXT, cc -E runs the code through the compiler's parser, 4020 # not just through cpp. "Syntax error" is here to catch this case. 4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4022 /* end confdefs.h. */ 4023 #ifdef __STDC__ 4024 # include <limits.h> 4025 #else 4026 # include <assert.h> 4027 #endif 4028 Syntax error 4029 _ACEOF 4030 if ac_fn_c_try_cpp "$LINENO"; then : 4031 4032 else 4033 # Broken: fails on valid input. 4034 continue 4035 fi 4036 rm -f conftest.err conftest.i conftest.$ac_ext 4037 4038 # OK, works on sane cases. Now check whether nonexistent headers 4039 # can be detected and how. 4040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4041 /* end confdefs.h. */ 4042 #include <ac_nonexistent.h> 4043 _ACEOF 4044 if ac_fn_c_try_cpp "$LINENO"; then : 4045 # Broken: success on invalid input. 4046 continue 4047 else 4048 # Passes both tests. 4049 ac_preproc_ok=: 4050 break 4051 fi 4052 rm -f conftest.err conftest.i conftest.$ac_ext 4053 4054 done 4055 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4056 rm -f conftest.i conftest.err conftest.$ac_ext 4057 if $ac_preproc_ok; then : 4058 4059 else 4060 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4062 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4063 See \`config.log' for more details" "$LINENO" 5; } 4064 fi 4065 4066 ac_ext=c 4067 ac_cpp='$CPP $CPPFLAGS' 4068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4070 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4071 4072 4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4074 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4075 if ${ac_cv_path_GREP+:} false; then : 4076 $as_echo_n "(cached) " >&6 4077 else 4078 if test -z "$GREP"; then 4079 ac_path_GREP_found=false 4080 # Loop through the user's path and test for each of PROGNAME-LIST 4081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4082 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4083 do 4084 IFS=$as_save_IFS 4085 test -z "$as_dir" && as_dir=. 4086 for ac_prog in grep ggrep; do 4087 for ac_exec_ext in '' $ac_executable_extensions; do 4088 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4089 as_fn_executable_p "$ac_path_GREP" || continue 4090 # Check for GNU ac_path_GREP and select it if it is found. 4091 # Check for GNU $ac_path_GREP 4092 case `"$ac_path_GREP" --version 2>&1` in 4093 *GNU*) 4094 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4095 *) 4096 ac_count=0 4097 $as_echo_n 0123456789 >"conftest.in" 4098 while : 4099 do 4100 cat "conftest.in" "conftest.in" >"conftest.tmp" 4101 mv "conftest.tmp" "conftest.in" 4102 cp "conftest.in" "conftest.nl" 4103 $as_echo 'GREP' >> "conftest.nl" 4104 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4105 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4106 as_fn_arith $ac_count + 1 && ac_count=$as_val 4107 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4108 # Best one so far, save it but keep looking for a better one 4109 ac_cv_path_GREP="$ac_path_GREP" 4110 ac_path_GREP_max=$ac_count 4111 fi 4112 # 10*(2^10) chars as input seems more than enough 4113 test $ac_count -gt 10 && break 4114 done 4115 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4116 esac 4117 4118 $ac_path_GREP_found && break 3 4119 done 4120 done 4121 done 4122 IFS=$as_save_IFS 4123 if test -z "$ac_cv_path_GREP"; then 4124 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4125 fi 4126 else 4127 ac_cv_path_GREP=$GREP 4128 fi 4129 4130 fi 4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4132 $as_echo "$ac_cv_path_GREP" >&6; } 4133 GREP="$ac_cv_path_GREP" 4134 4135 4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4137 $as_echo_n "checking for egrep... " >&6; } 4138 if ${ac_cv_path_EGREP+:} false; then : 4139 $as_echo_n "(cached) " >&6 4140 else 4141 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4142 then ac_cv_path_EGREP="$GREP -E" 4143 else 4144 if test -z "$EGREP"; then 4145 ac_path_EGREP_found=false 4146 # Loop through the user's path and test for each of PROGNAME-LIST 4147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4148 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4149 do 4150 IFS=$as_save_IFS 4151 test -z "$as_dir" && as_dir=. 4152 for ac_prog in egrep; do 4153 for ac_exec_ext in '' $ac_executable_extensions; do 4154 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4155 as_fn_executable_p "$ac_path_EGREP" || continue 4156 # Check for GNU ac_path_EGREP and select it if it is found. 4157 # Check for GNU $ac_path_EGREP 4158 case `"$ac_path_EGREP" --version 2>&1` in 4159 *GNU*) 4160 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4161 *) 4162 ac_count=0 4163 $as_echo_n 0123456789 >"conftest.in" 4164 while : 4165 do 4166 cat "conftest.in" "conftest.in" >"conftest.tmp" 4167 mv "conftest.tmp" "conftest.in" 4168 cp "conftest.in" "conftest.nl" 4169 $as_echo 'EGREP' >> "conftest.nl" 4170 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4171 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4172 as_fn_arith $ac_count + 1 && ac_count=$as_val 4173 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4174 # Best one so far, save it but keep looking for a better one 4175 ac_cv_path_EGREP="$ac_path_EGREP" 4176 ac_path_EGREP_max=$ac_count 4177 fi 4178 # 10*(2^10) chars as input seems more than enough 4179 test $ac_count -gt 10 && break 4180 done 4181 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4182 esac 4183 4184 $ac_path_EGREP_found && break 3 4185 done 4186 done 4187 done 4188 IFS=$as_save_IFS 4189 if test -z "$ac_cv_path_EGREP"; then 4190 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4191 fi 4192 else 4193 ac_cv_path_EGREP=$EGREP 4194 fi 4195 4196 fi 4197 fi 4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4199 $as_echo "$ac_cv_path_EGREP" >&6; } 4200 EGREP="$ac_cv_path_EGREP" 4201 4202 4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4204 $as_echo_n "checking for ANSI C header files... " >&6; } 4205 if ${ac_cv_header_stdc+:} false; then : 4206 $as_echo_n "(cached) " >&6 4207 else 4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4209 /* end confdefs.h. */ 4210 #include <stdlib.h> 4211 #include <stdarg.h> 4212 #include <string.h> 4213 #include <float.h> 4214 4215 int 4216 main () 4217 { 4218 4219 ; 4220 return 0; 4221 } 4222 _ACEOF 4223 if ac_fn_c_try_compile "$LINENO"; then : 4224 ac_cv_header_stdc=yes 4225 else 4226 ac_cv_header_stdc=no 4227 fi 4228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4229 4230 if test $ac_cv_header_stdc = yes; then 4231 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4233 /* end confdefs.h. */ 4234 #include <string.h> 4235 4236 _ACEOF 4237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4238 $EGREP "memchr" >/dev/null 2>&1; then : 4239 4240 else 4241 ac_cv_header_stdc=no 4242 fi 4243 rm -f conftest* 4244 4245 fi 4246 4247 if test $ac_cv_header_stdc = yes; then 4248 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4250 /* end confdefs.h. */ 4251 #include <stdlib.h> 4252 4253 _ACEOF 4254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4255 $EGREP "free" >/dev/null 2>&1; then : 4256 4257 else 4258 ac_cv_header_stdc=no 4259 fi 4260 rm -f conftest* 4261 4262 fi 4263 4264 if test $ac_cv_header_stdc = yes; then 4265 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4266 if test "$cross_compiling" = yes; then : 4267 : 4268 else 4269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4270 /* end confdefs.h. */ 4271 #include <ctype.h> 4272 #include <stdlib.h> 4273 #if ((' ' & 0x0FF) == 0x020) 4274 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4275 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4276 #else 4277 # define ISLOWER(c) \ 4278 (('a' <= (c) && (c) <= 'i') \ 4279 || ('j' <= (c) && (c) <= 'r') \ 4280 || ('s' <= (c) && (c) <= 'z')) 4281 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4282 #endif 4283 4284 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4285 int 4286 main () 4287 { 4288 int i; 4289 for (i = 0; i < 256; i++) 4290 if (XOR (islower (i), ISLOWER (i)) 4291 || toupper (i) != TOUPPER (i)) 4292 return 2; 4293 return 0; 4294 } 4295 _ACEOF 4296 if ac_fn_c_try_run "$LINENO"; then : 4297 4298 else 4299 ac_cv_header_stdc=no 4300 fi 4301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4302 conftest.$ac_objext conftest.beam conftest.$ac_ext 4303 fi 4304 4305 fi 4306 fi 4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4308 $as_echo "$ac_cv_header_stdc" >&6; } 4309 if test $ac_cv_header_stdc = yes; then 4310 4311 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 4312 4313 fi 4314 4315 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4316 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4317 inttypes.h stdint.h unistd.h 4318 do : 4319 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4320 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4321 " 4322 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4323 cat >>confdefs.h <<_ACEOF 4324 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4325 _ACEOF 4326 4327 fi 4328 4329 done 4330 4331 4332 4333 4334 4335 4336 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4337 if test "x$ac_cv_have_decl___clang__" = xyes; then : 4338 CLANGCC="yes" 4339 else 4340 CLANGCC="no" 4341 fi 4342 4343 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4344 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4345 INTELCC="yes" 4346 else 4347 INTELCC="no" 4348 fi 4349 4350 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4351 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4352 SUNCC="yes" 4353 else 4354 SUNCC="no" 4355 fi 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4366 if test -n "$ac_tool_prefix"; then 4367 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4368 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4370 $as_echo_n "checking for $ac_word... " >&6; } 4371 if ${ac_cv_path_PKG_CONFIG+:} false; then : 4372 $as_echo_n "(cached) " >&6 4373 else 4374 case $PKG_CONFIG in 4375 [\\/]* | ?:[\\/]*) 4376 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4377 ;; 4378 *) 4379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4380 for as_dir in $PATH 4381 do 4382 IFS=$as_save_IFS 4383 test -z "$as_dir" && as_dir=. 4384 for ac_exec_ext in '' $ac_executable_extensions; do 4385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4386 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4388 break 2 4389 fi 4390 done 4391 done 4392 IFS=$as_save_IFS 4393 4394 ;; 4395 esac 4396 fi 4397 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4398 if test -n "$PKG_CONFIG"; then 4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4400 $as_echo "$PKG_CONFIG" >&6; } 4401 else 4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4403 $as_echo "no" >&6; } 4404 fi 4405 4406 4407 fi 4408 if test -z "$ac_cv_path_PKG_CONFIG"; then 4409 ac_pt_PKG_CONFIG=$PKG_CONFIG 4410 # Extract the first word of "pkg-config", so it can be a program name with args. 4411 set dummy pkg-config; ac_word=$2 4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4413 $as_echo_n "checking for $ac_word... " >&6; } 4414 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4415 $as_echo_n "(cached) " >&6 4416 else 4417 case $ac_pt_PKG_CONFIG in 4418 [\\/]* | ?:[\\/]*) 4419 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4420 ;; 4421 *) 4422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4423 for as_dir in $PATH 4424 do 4425 IFS=$as_save_IFS 4426 test -z "$as_dir" && as_dir=. 4427 for ac_exec_ext in '' $ac_executable_extensions; do 4428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4429 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4431 break 2 4432 fi 4433 done 4434 done 4435 IFS=$as_save_IFS 4436 4437 ;; 4438 esac 4439 fi 4440 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4441 if test -n "$ac_pt_PKG_CONFIG"; then 4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4443 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 4444 else 4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4446 $as_echo "no" >&6; } 4447 fi 4448 4449 if test "x$ac_pt_PKG_CONFIG" = x; then 4450 PKG_CONFIG="" 4451 else 4452 case $cross_compiling:$ac_tool_warned in 4453 yes:) 4454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4455 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4456 ac_tool_warned=yes ;; 4457 esac 4458 PKG_CONFIG=$ac_pt_PKG_CONFIG 4459 fi 4460 else 4461 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4462 fi 4463 4464 fi 4465 if test -n "$PKG_CONFIG"; then 4466 _pkg_min_version=0.9.0 4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4468 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4469 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4471 $as_echo "yes" >&6; } 4472 else 4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4474 $as_echo "no" >&6; } 4475 PKG_CONFIG="" 4476 fi 4477 fi 4478 # Make sure we can run config.sub. 4479 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4480 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4481 4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4483 $as_echo_n "checking build system type... " >&6; } 4484 if ${ac_cv_build+:} false; then : 4485 $as_echo_n "(cached) " >&6 4486 else 4487 ac_build_alias=$build_alias 4488 test "x$ac_build_alias" = x && 4489 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4490 test "x$ac_build_alias" = x && 4491 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4492 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4493 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4494 4495 fi 4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4497 $as_echo "$ac_cv_build" >&6; } 4498 case $ac_cv_build in 4499 *-*-*) ;; 4500 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4501 esac 4502 build=$ac_cv_build 4503 ac_save_IFS=$IFS; IFS='-' 4504 set x $ac_cv_build 4505 shift 4506 build_cpu=$1 4507 build_vendor=$2 4508 shift; shift 4509 # Remember, the first character of IFS is used to create $*, 4510 # except with old shells: 4511 build_os=$* 4512 IFS=$ac_save_IFS 4513 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4514 4515 4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4517 $as_echo_n "checking host system type... " >&6; } 4518 if ${ac_cv_host+:} false; then : 4519 $as_echo_n "(cached) " >&6 4520 else 4521 if test "x$host_alias" = x; then 4522 ac_cv_host=$ac_cv_build 4523 else 4524 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4525 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4526 fi 4527 4528 fi 4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4530 $as_echo "$ac_cv_host" >&6; } 4531 case $ac_cv_host in 4532 *-*-*) ;; 4533 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4534 esac 4535 host=$ac_cv_host 4536 ac_save_IFS=$IFS; IFS='-' 4537 set x $ac_cv_host 4538 shift 4539 host_cpu=$1 4540 host_vendor=$2 4541 shift; shift 4542 # Remember, the first character of IFS is used to create $*, 4543 # except with old shells: 4544 host_os=$* 4545 IFS=$ac_save_IFS 4546 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4547 4548 4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4550 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 4551 if ${ac_cv_path_SED+:} false; then : 4552 $as_echo_n "(cached) " >&6 4553 else 4554 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4555 for ac_i in 1 2 3 4 5 6 7; do 4556 ac_script="$ac_script$as_nl$ac_script" 4557 done 4558 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4559 { ac_script=; unset ac_script;} 4560 if test -z "$SED"; then 4561 ac_path_SED_found=false 4562 # Loop through the user's path and test for each of PROGNAME-LIST 4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4564 for as_dir in $PATH 4565 do 4566 IFS=$as_save_IFS 4567 test -z "$as_dir" && as_dir=. 4568 for ac_prog in sed gsed; do 4569 for ac_exec_ext in '' $ac_executable_extensions; do 4570 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4571 as_fn_executable_p "$ac_path_SED" || continue 4572 # Check for GNU ac_path_SED and select it if it is found. 4573 # Check for GNU $ac_path_SED 4574 case `"$ac_path_SED" --version 2>&1` in 4575 *GNU*) 4576 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4577 *) 4578 ac_count=0 4579 $as_echo_n 0123456789 >"conftest.in" 4580 while : 4581 do 4582 cat "conftest.in" "conftest.in" >"conftest.tmp" 4583 mv "conftest.tmp" "conftest.in" 4584 cp "conftest.in" "conftest.nl" 4585 $as_echo '' >> "conftest.nl" 4586 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4587 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4588 as_fn_arith $ac_count + 1 && ac_count=$as_val 4589 if test $ac_count -gt ${ac_path_SED_max-0}; then 4590 # Best one so far, save it but keep looking for a better one 4591 ac_cv_path_SED="$ac_path_SED" 4592 ac_path_SED_max=$ac_count 4593 fi 4594 # 10*(2^10) chars as input seems more than enough 4595 test $ac_count -gt 10 && break 4596 done 4597 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4598 esac 4599 4600 $ac_path_SED_found && break 3 4601 done 4602 done 4603 done 4604 IFS=$as_save_IFS 4605 if test -z "$ac_cv_path_SED"; then 4606 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4607 fi 4608 else 4609 ac_cv_path_SED=$SED 4610 fi 4611 4612 fi 4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4614 $as_echo "$ac_cv_path_SED" >&6; } 4615 SED="$ac_cv_path_SED" 4616 rm -f conftest.sed 4617 4618 4619 4620 4621 4622 4623 # Check whether --enable-selective-werror was given. 4624 if test "${enable_selective_werror+set}" = set; then : 4625 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4626 else 4627 SELECTIVE_WERROR=yes 4628 fi 4629 4630 4631 4632 4633 4634 # -v is too short to test reliably with XORG_TESTSET_CFLAG 4635 if test "x$SUNCC" = "xyes"; then 4636 BASE_CFLAGS="-v" 4637 else 4638 BASE_CFLAGS="" 4639 fi 4640 4641 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 xorg_testset_save_CFLAGS="$CFLAGS" 4656 4657 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4658 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4660 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4661 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4662 $as_echo_n "(cached) " >&6 4663 else 4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4665 /* end confdefs.h. */ 4666 int i; 4667 _ACEOF 4668 if ac_fn_c_try_compile "$LINENO"; then : 4669 xorg_cv_cc_flag_unknown_warning_option=yes 4670 else 4671 xorg_cv_cc_flag_unknown_warning_option=no 4672 fi 4673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4674 fi 4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4676 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4677 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4678 CFLAGS="$xorg_testset_save_CFLAGS" 4679 fi 4680 4681 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4682 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4684 fi 4685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4687 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4688 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4689 $as_echo_n "(cached) " >&6 4690 else 4691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4692 /* end confdefs.h. */ 4693 int i; 4694 _ACEOF 4695 if ac_fn_c_try_compile "$LINENO"; then : 4696 xorg_cv_cc_flag_unused_command_line_argument=yes 4697 else 4698 xorg_cv_cc_flag_unused_command_line_argument=no 4699 fi 4700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4701 fi 4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4703 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4704 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4705 CFLAGS="$xorg_testset_save_CFLAGS" 4706 fi 4707 4708 found="no" 4709 4710 if test $found = "no" ; then 4711 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4712 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4713 fi 4714 4715 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4717 fi 4718 4719 CFLAGS="$CFLAGS -Wall" 4720 4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4722 $as_echo_n "checking if $CC supports -Wall... " >&6; } 4723 cacheid=xorg_cv_cc_flag__Wall 4724 if eval \${$cacheid+:} false; then : 4725 $as_echo_n "(cached) " >&6 4726 else 4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4728 /* end confdefs.h. */ 4729 int i; 4730 int 4731 main () 4732 { 4733 4734 ; 4735 return 0; 4736 } 4737 _ACEOF 4738 if ac_fn_c_try_link "$LINENO"; then : 4739 eval $cacheid=yes 4740 else 4741 eval $cacheid=no 4742 fi 4743 rm -f core conftest.err conftest.$ac_objext \ 4744 conftest$ac_exeext conftest.$ac_ext 4745 fi 4746 4747 4748 CFLAGS="$xorg_testset_save_CFLAGS" 4749 4750 eval supported=\$$cacheid 4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4752 $as_echo "$supported" >&6; } 4753 if test "$supported" = "yes" ; then 4754 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4755 found="yes" 4756 fi 4757 fi 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 xorg_testset_save_CFLAGS="$CFLAGS" 4774 4775 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4778 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4779 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4780 $as_echo_n "(cached) " >&6 4781 else 4782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4783 /* end confdefs.h. */ 4784 int i; 4785 _ACEOF 4786 if ac_fn_c_try_compile "$LINENO"; then : 4787 xorg_cv_cc_flag_unknown_warning_option=yes 4788 else 4789 xorg_cv_cc_flag_unknown_warning_option=no 4790 fi 4791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4792 fi 4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4794 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4795 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4796 CFLAGS="$xorg_testset_save_CFLAGS" 4797 fi 4798 4799 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4801 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4802 fi 4803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4805 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4806 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4807 $as_echo_n "(cached) " >&6 4808 else 4809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4810 /* end confdefs.h. */ 4811 int i; 4812 _ACEOF 4813 if ac_fn_c_try_compile "$LINENO"; then : 4814 xorg_cv_cc_flag_unused_command_line_argument=yes 4815 else 4816 xorg_cv_cc_flag_unused_command_line_argument=no 4817 fi 4818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4819 fi 4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4821 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4822 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4823 CFLAGS="$xorg_testset_save_CFLAGS" 4824 fi 4825 4826 found="no" 4827 4828 if test $found = "no" ; then 4829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4831 fi 4832 4833 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4835 fi 4836 4837 CFLAGS="$CFLAGS -Wpointer-arith" 4838 4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4840 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4841 cacheid=xorg_cv_cc_flag__Wpointer_arith 4842 if eval \${$cacheid+:} false; then : 4843 $as_echo_n "(cached) " >&6 4844 else 4845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4846 /* end confdefs.h. */ 4847 int i; 4848 int 4849 main () 4850 { 4851 4852 ; 4853 return 0; 4854 } 4855 _ACEOF 4856 if ac_fn_c_try_link "$LINENO"; then : 4857 eval $cacheid=yes 4858 else 4859 eval $cacheid=no 4860 fi 4861 rm -f core conftest.err conftest.$ac_objext \ 4862 conftest$ac_exeext conftest.$ac_ext 4863 fi 4864 4865 4866 CFLAGS="$xorg_testset_save_CFLAGS" 4867 4868 eval supported=\$$cacheid 4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4870 $as_echo "$supported" >&6; } 4871 if test "$supported" = "yes" ; then 4872 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4873 found="yes" 4874 fi 4875 fi 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 xorg_testset_save_CFLAGS="$CFLAGS" 4892 4893 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4894 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4896 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4897 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4898 $as_echo_n "(cached) " >&6 4899 else 4900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4901 /* end confdefs.h. */ 4902 int i; 4903 _ACEOF 4904 if ac_fn_c_try_compile "$LINENO"; then : 4905 xorg_cv_cc_flag_unknown_warning_option=yes 4906 else 4907 xorg_cv_cc_flag_unknown_warning_option=no 4908 fi 4909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4910 fi 4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4912 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4913 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4914 CFLAGS="$xorg_testset_save_CFLAGS" 4915 fi 4916 4917 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4918 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4919 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4920 fi 4921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4923 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4924 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4925 $as_echo_n "(cached) " >&6 4926 else 4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4928 /* end confdefs.h. */ 4929 int i; 4930 _ACEOF 4931 if ac_fn_c_try_compile "$LINENO"; then : 4932 xorg_cv_cc_flag_unused_command_line_argument=yes 4933 else 4934 xorg_cv_cc_flag_unused_command_line_argument=no 4935 fi 4936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4937 fi 4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4939 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4940 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4941 CFLAGS="$xorg_testset_save_CFLAGS" 4942 fi 4943 4944 found="no" 4945 4946 if test $found = "no" ; then 4947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4949 fi 4950 4951 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4953 fi 4954 4955 CFLAGS="$CFLAGS -Wmissing-declarations" 4956 4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 4958 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 4959 cacheid=xorg_cv_cc_flag__Wmissing_declarations 4960 if eval \${$cacheid+:} false; then : 4961 $as_echo_n "(cached) " >&6 4962 else 4963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4964 /* end confdefs.h. */ 4965 int i; 4966 int 4967 main () 4968 { 4969 4970 ; 4971 return 0; 4972 } 4973 _ACEOF 4974 if ac_fn_c_try_link "$LINENO"; then : 4975 eval $cacheid=yes 4976 else 4977 eval $cacheid=no 4978 fi 4979 rm -f core conftest.err conftest.$ac_objext \ 4980 conftest$ac_exeext conftest.$ac_ext 4981 fi 4982 4983 4984 CFLAGS="$xorg_testset_save_CFLAGS" 4985 4986 eval supported=\$$cacheid 4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4988 $as_echo "$supported" >&6; } 4989 if test "$supported" = "yes" ; then 4990 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 4991 found="yes" 4992 fi 4993 fi 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 xorg_testset_save_CFLAGS="$CFLAGS" 5010 5011 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5012 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5014 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5015 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5016 $as_echo_n "(cached) " >&6 5017 else 5018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5019 /* end confdefs.h. */ 5020 int i; 5021 _ACEOF 5022 if ac_fn_c_try_compile "$LINENO"; then : 5023 xorg_cv_cc_flag_unknown_warning_option=yes 5024 else 5025 xorg_cv_cc_flag_unknown_warning_option=no 5026 fi 5027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5028 fi 5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5030 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5031 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5032 CFLAGS="$xorg_testset_save_CFLAGS" 5033 fi 5034 5035 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5037 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5038 fi 5039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5041 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5042 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5043 $as_echo_n "(cached) " >&6 5044 else 5045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5046 /* end confdefs.h. */ 5047 int i; 5048 _ACEOF 5049 if ac_fn_c_try_compile "$LINENO"; then : 5050 xorg_cv_cc_flag_unused_command_line_argument=yes 5051 else 5052 xorg_cv_cc_flag_unused_command_line_argument=no 5053 fi 5054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5055 fi 5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5057 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5058 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5059 CFLAGS="$xorg_testset_save_CFLAGS" 5060 fi 5061 5062 found="no" 5063 5064 if test $found = "no" ; then 5065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5067 fi 5068 5069 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5071 fi 5072 5073 CFLAGS="$CFLAGS -Wformat=2" 5074 5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5076 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5077 cacheid=xorg_cv_cc_flag__Wformat_2 5078 if eval \${$cacheid+:} false; then : 5079 $as_echo_n "(cached) " >&6 5080 else 5081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5082 /* end confdefs.h. */ 5083 int i; 5084 int 5085 main () 5086 { 5087 5088 ; 5089 return 0; 5090 } 5091 _ACEOF 5092 if ac_fn_c_try_link "$LINENO"; then : 5093 eval $cacheid=yes 5094 else 5095 eval $cacheid=no 5096 fi 5097 rm -f core conftest.err conftest.$ac_objext \ 5098 conftest$ac_exeext conftest.$ac_ext 5099 fi 5100 5101 5102 CFLAGS="$xorg_testset_save_CFLAGS" 5103 5104 eval supported=\$$cacheid 5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5106 $as_echo "$supported" >&6; } 5107 if test "$supported" = "yes" ; then 5108 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5109 found="yes" 5110 fi 5111 fi 5112 5113 if test $found = "no" ; then 5114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5115 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5116 fi 5117 5118 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5120 fi 5121 5122 CFLAGS="$CFLAGS -Wformat" 5123 5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5125 $as_echo_n "checking if $CC supports -Wformat... " >&6; } 5126 cacheid=xorg_cv_cc_flag__Wformat 5127 if eval \${$cacheid+:} false; then : 5128 $as_echo_n "(cached) " >&6 5129 else 5130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5131 /* end confdefs.h. */ 5132 int i; 5133 int 5134 main () 5135 { 5136 5137 ; 5138 return 0; 5139 } 5140 _ACEOF 5141 if ac_fn_c_try_link "$LINENO"; then : 5142 eval $cacheid=yes 5143 else 5144 eval $cacheid=no 5145 fi 5146 rm -f core conftest.err conftest.$ac_objext \ 5147 conftest$ac_exeext conftest.$ac_ext 5148 fi 5149 5150 5151 CFLAGS="$xorg_testset_save_CFLAGS" 5152 5153 eval supported=\$$cacheid 5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5155 $as_echo "$supported" >&6; } 5156 if test "$supported" = "yes" ; then 5157 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5158 found="yes" 5159 fi 5160 fi 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 xorg_testset_save_CFLAGS="$CFLAGS" 5179 5180 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5183 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5184 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5185 $as_echo_n "(cached) " >&6 5186 else 5187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5188 /* end confdefs.h. */ 5189 int i; 5190 _ACEOF 5191 if ac_fn_c_try_compile "$LINENO"; then : 5192 xorg_cv_cc_flag_unknown_warning_option=yes 5193 else 5194 xorg_cv_cc_flag_unknown_warning_option=no 5195 fi 5196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5197 fi 5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5199 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5200 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5201 CFLAGS="$xorg_testset_save_CFLAGS" 5202 fi 5203 5204 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5207 fi 5208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5210 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5211 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5212 $as_echo_n "(cached) " >&6 5213 else 5214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5215 /* end confdefs.h. */ 5216 int i; 5217 _ACEOF 5218 if ac_fn_c_try_compile "$LINENO"; then : 5219 xorg_cv_cc_flag_unused_command_line_argument=yes 5220 else 5221 xorg_cv_cc_flag_unused_command_line_argument=no 5222 fi 5223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5224 fi 5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5226 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5227 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5228 CFLAGS="$xorg_testset_save_CFLAGS" 5229 fi 5230 5231 found="no" 5232 5233 if test $found = "no" ; then 5234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5236 fi 5237 5238 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5240 fi 5241 5242 CFLAGS="$CFLAGS -Wstrict-prototypes" 5243 5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5245 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5246 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5247 if eval \${$cacheid+:} false; then : 5248 $as_echo_n "(cached) " >&6 5249 else 5250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5251 /* end confdefs.h. */ 5252 int i; 5253 int 5254 main () 5255 { 5256 5257 ; 5258 return 0; 5259 } 5260 _ACEOF 5261 if ac_fn_c_try_link "$LINENO"; then : 5262 eval $cacheid=yes 5263 else 5264 eval $cacheid=no 5265 fi 5266 rm -f core conftest.err conftest.$ac_objext \ 5267 conftest$ac_exeext conftest.$ac_ext 5268 fi 5269 5270 5271 CFLAGS="$xorg_testset_save_CFLAGS" 5272 5273 eval supported=\$$cacheid 5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5275 $as_echo "$supported" >&6; } 5276 if test "$supported" = "yes" ; then 5277 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5278 found="yes" 5279 fi 5280 fi 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 xorg_testset_save_CFLAGS="$CFLAGS" 5297 5298 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5301 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5302 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5303 $as_echo_n "(cached) " >&6 5304 else 5305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5306 /* end confdefs.h. */ 5307 int i; 5308 _ACEOF 5309 if ac_fn_c_try_compile "$LINENO"; then : 5310 xorg_cv_cc_flag_unknown_warning_option=yes 5311 else 5312 xorg_cv_cc_flag_unknown_warning_option=no 5313 fi 5314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5315 fi 5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5317 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5318 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5319 CFLAGS="$xorg_testset_save_CFLAGS" 5320 fi 5321 5322 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5324 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5325 fi 5326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5328 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5329 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5330 $as_echo_n "(cached) " >&6 5331 else 5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5333 /* end confdefs.h. */ 5334 int i; 5335 _ACEOF 5336 if ac_fn_c_try_compile "$LINENO"; then : 5337 xorg_cv_cc_flag_unused_command_line_argument=yes 5338 else 5339 xorg_cv_cc_flag_unused_command_line_argument=no 5340 fi 5341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5342 fi 5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5344 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5345 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5346 CFLAGS="$xorg_testset_save_CFLAGS" 5347 fi 5348 5349 found="no" 5350 5351 if test $found = "no" ; then 5352 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5353 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5354 fi 5355 5356 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5358 fi 5359 5360 CFLAGS="$CFLAGS -Wmissing-prototypes" 5361 5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5363 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5364 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5365 if eval \${$cacheid+:} false; then : 5366 $as_echo_n "(cached) " >&6 5367 else 5368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5369 /* end confdefs.h. */ 5370 int i; 5371 int 5372 main () 5373 { 5374 5375 ; 5376 return 0; 5377 } 5378 _ACEOF 5379 if ac_fn_c_try_link "$LINENO"; then : 5380 eval $cacheid=yes 5381 else 5382 eval $cacheid=no 5383 fi 5384 rm -f core conftest.err conftest.$ac_objext \ 5385 conftest$ac_exeext conftest.$ac_ext 5386 fi 5387 5388 5389 CFLAGS="$xorg_testset_save_CFLAGS" 5390 5391 eval supported=\$$cacheid 5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5393 $as_echo "$supported" >&6; } 5394 if test "$supported" = "yes" ; then 5395 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5396 found="yes" 5397 fi 5398 fi 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 xorg_testset_save_CFLAGS="$CFLAGS" 5415 5416 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5419 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5420 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5421 $as_echo_n "(cached) " >&6 5422 else 5423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5424 /* end confdefs.h. */ 5425 int i; 5426 _ACEOF 5427 if ac_fn_c_try_compile "$LINENO"; then : 5428 xorg_cv_cc_flag_unknown_warning_option=yes 5429 else 5430 xorg_cv_cc_flag_unknown_warning_option=no 5431 fi 5432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5433 fi 5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5435 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5436 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5437 CFLAGS="$xorg_testset_save_CFLAGS" 5438 fi 5439 5440 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5442 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5443 fi 5444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5446 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5447 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5448 $as_echo_n "(cached) " >&6 5449 else 5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5451 /* end confdefs.h. */ 5452 int i; 5453 _ACEOF 5454 if ac_fn_c_try_compile "$LINENO"; then : 5455 xorg_cv_cc_flag_unused_command_line_argument=yes 5456 else 5457 xorg_cv_cc_flag_unused_command_line_argument=no 5458 fi 5459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5460 fi 5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5462 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5463 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5464 CFLAGS="$xorg_testset_save_CFLAGS" 5465 fi 5466 5467 found="no" 5468 5469 if test $found = "no" ; then 5470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5471 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5472 fi 5473 5474 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5476 fi 5477 5478 CFLAGS="$CFLAGS -Wnested-externs" 5479 5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5481 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5482 cacheid=xorg_cv_cc_flag__Wnested_externs 5483 if eval \${$cacheid+:} false; then : 5484 $as_echo_n "(cached) " >&6 5485 else 5486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5487 /* end confdefs.h. */ 5488 int i; 5489 int 5490 main () 5491 { 5492 5493 ; 5494 return 0; 5495 } 5496 _ACEOF 5497 if ac_fn_c_try_link "$LINENO"; then : 5498 eval $cacheid=yes 5499 else 5500 eval $cacheid=no 5501 fi 5502 rm -f core conftest.err conftest.$ac_objext \ 5503 conftest$ac_exeext conftest.$ac_ext 5504 fi 5505 5506 5507 CFLAGS="$xorg_testset_save_CFLAGS" 5508 5509 eval supported=\$$cacheid 5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5511 $as_echo "$supported" >&6; } 5512 if test "$supported" = "yes" ; then 5513 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5514 found="yes" 5515 fi 5516 fi 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 xorg_testset_save_CFLAGS="$CFLAGS" 5533 5534 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5537 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5538 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5539 $as_echo_n "(cached) " >&6 5540 else 5541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5542 /* end confdefs.h. */ 5543 int i; 5544 _ACEOF 5545 if ac_fn_c_try_compile "$LINENO"; then : 5546 xorg_cv_cc_flag_unknown_warning_option=yes 5547 else 5548 xorg_cv_cc_flag_unknown_warning_option=no 5549 fi 5550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5551 fi 5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5553 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5554 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5555 CFLAGS="$xorg_testset_save_CFLAGS" 5556 fi 5557 5558 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5561 fi 5562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5564 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5565 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5566 $as_echo_n "(cached) " >&6 5567 else 5568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5569 /* end confdefs.h. */ 5570 int i; 5571 _ACEOF 5572 if ac_fn_c_try_compile "$LINENO"; then : 5573 xorg_cv_cc_flag_unused_command_line_argument=yes 5574 else 5575 xorg_cv_cc_flag_unused_command_line_argument=no 5576 fi 5577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5578 fi 5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5580 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5581 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5582 CFLAGS="$xorg_testset_save_CFLAGS" 5583 fi 5584 5585 found="no" 5586 5587 if test $found = "no" ; then 5588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5590 fi 5591 5592 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5594 fi 5595 5596 CFLAGS="$CFLAGS -Wbad-function-cast" 5597 5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5599 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5600 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5601 if eval \${$cacheid+:} false; then : 5602 $as_echo_n "(cached) " >&6 5603 else 5604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5605 /* end confdefs.h. */ 5606 int i; 5607 int 5608 main () 5609 { 5610 5611 ; 5612 return 0; 5613 } 5614 _ACEOF 5615 if ac_fn_c_try_link "$LINENO"; then : 5616 eval $cacheid=yes 5617 else 5618 eval $cacheid=no 5619 fi 5620 rm -f core conftest.err conftest.$ac_objext \ 5621 conftest$ac_exeext conftest.$ac_ext 5622 fi 5623 5624 5625 CFLAGS="$xorg_testset_save_CFLAGS" 5626 5627 eval supported=\$$cacheid 5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5629 $as_echo "$supported" >&6; } 5630 if test "$supported" = "yes" ; then 5631 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5632 found="yes" 5633 fi 5634 fi 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 xorg_testset_save_CFLAGS="$CFLAGS" 5651 5652 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5655 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5656 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5657 $as_echo_n "(cached) " >&6 5658 else 5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5660 /* end confdefs.h. */ 5661 int i; 5662 _ACEOF 5663 if ac_fn_c_try_compile "$LINENO"; then : 5664 xorg_cv_cc_flag_unknown_warning_option=yes 5665 else 5666 xorg_cv_cc_flag_unknown_warning_option=no 5667 fi 5668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5669 fi 5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5671 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5672 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5673 CFLAGS="$xorg_testset_save_CFLAGS" 5674 fi 5675 5676 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5679 fi 5680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5682 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5683 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5684 $as_echo_n "(cached) " >&6 5685 else 5686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5687 /* end confdefs.h. */ 5688 int i; 5689 _ACEOF 5690 if ac_fn_c_try_compile "$LINENO"; then : 5691 xorg_cv_cc_flag_unused_command_line_argument=yes 5692 else 5693 xorg_cv_cc_flag_unused_command_line_argument=no 5694 fi 5695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5696 fi 5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5698 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5699 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5700 CFLAGS="$xorg_testset_save_CFLAGS" 5701 fi 5702 5703 found="no" 5704 5705 if test $found = "no" ; then 5706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5708 fi 5709 5710 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5712 fi 5713 5714 CFLAGS="$CFLAGS -Wold-style-definition" 5715 5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5717 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5718 cacheid=xorg_cv_cc_flag__Wold_style_definition 5719 if eval \${$cacheid+:} false; then : 5720 $as_echo_n "(cached) " >&6 5721 else 5722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5723 /* end confdefs.h. */ 5724 int i; 5725 int 5726 main () 5727 { 5728 5729 ; 5730 return 0; 5731 } 5732 _ACEOF 5733 if ac_fn_c_try_link "$LINENO"; then : 5734 eval $cacheid=yes 5735 else 5736 eval $cacheid=no 5737 fi 5738 rm -f core conftest.err conftest.$ac_objext \ 5739 conftest$ac_exeext conftest.$ac_ext 5740 fi 5741 5742 5743 CFLAGS="$xorg_testset_save_CFLAGS" 5744 5745 eval supported=\$$cacheid 5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5747 $as_echo "$supported" >&6; } 5748 if test "$supported" = "yes" ; then 5749 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5750 found="yes" 5751 fi 5752 fi 5753 5754 if test $found = "no" ; then 5755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5757 fi 5758 5759 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5761 fi 5762 5763 CFLAGS="$CFLAGS -fd" 5764 5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5766 $as_echo_n "checking if $CC supports -fd... " >&6; } 5767 cacheid=xorg_cv_cc_flag__fd 5768 if eval \${$cacheid+:} false; then : 5769 $as_echo_n "(cached) " >&6 5770 else 5771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5772 /* end confdefs.h. */ 5773 int i; 5774 int 5775 main () 5776 { 5777 5778 ; 5779 return 0; 5780 } 5781 _ACEOF 5782 if ac_fn_c_try_link "$LINENO"; then : 5783 eval $cacheid=yes 5784 else 5785 eval $cacheid=no 5786 fi 5787 rm -f core conftest.err conftest.$ac_objext \ 5788 conftest$ac_exeext conftest.$ac_ext 5789 fi 5790 5791 5792 CFLAGS="$xorg_testset_save_CFLAGS" 5793 5794 eval supported=\$$cacheid 5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5796 $as_echo "$supported" >&6; } 5797 if test "$supported" = "yes" ; then 5798 BASE_CFLAGS="$BASE_CFLAGS -fd" 5799 found="yes" 5800 fi 5801 fi 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 xorg_testset_save_CFLAGS="$CFLAGS" 5818 5819 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5822 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5823 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5824 $as_echo_n "(cached) " >&6 5825 else 5826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5827 /* end confdefs.h. */ 5828 int i; 5829 _ACEOF 5830 if ac_fn_c_try_compile "$LINENO"; then : 5831 xorg_cv_cc_flag_unknown_warning_option=yes 5832 else 5833 xorg_cv_cc_flag_unknown_warning_option=no 5834 fi 5835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5836 fi 5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5838 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5839 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5840 CFLAGS="$xorg_testset_save_CFLAGS" 5841 fi 5842 5843 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5846 fi 5847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5849 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5850 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5851 $as_echo_n "(cached) " >&6 5852 else 5853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5854 /* end confdefs.h. */ 5855 int i; 5856 _ACEOF 5857 if ac_fn_c_try_compile "$LINENO"; then : 5858 xorg_cv_cc_flag_unused_command_line_argument=yes 5859 else 5860 xorg_cv_cc_flag_unused_command_line_argument=no 5861 fi 5862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5863 fi 5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5865 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5866 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5867 CFLAGS="$xorg_testset_save_CFLAGS" 5868 fi 5869 5870 found="no" 5871 5872 if test $found = "no" ; then 5873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5875 fi 5876 5877 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5879 fi 5880 5881 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5882 5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5884 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5885 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5886 if eval \${$cacheid+:} false; then : 5887 $as_echo_n "(cached) " >&6 5888 else 5889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5890 /* end confdefs.h. */ 5891 int i; 5892 int 5893 main () 5894 { 5895 5896 ; 5897 return 0; 5898 } 5899 _ACEOF 5900 if ac_fn_c_try_link "$LINENO"; then : 5901 eval $cacheid=yes 5902 else 5903 eval $cacheid=no 5904 fi 5905 rm -f core conftest.err conftest.$ac_objext \ 5906 conftest$ac_exeext conftest.$ac_ext 5907 fi 5908 5909 5910 CFLAGS="$xorg_testset_save_CFLAGS" 5911 5912 eval supported=\$$cacheid 5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5914 $as_echo "$supported" >&6; } 5915 if test "$supported" = "yes" ; then 5916 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5917 found="yes" 5918 fi 5919 fi 5920 5921 5922 5923 5924 5925 # This chunk adds additional warnings that could catch undesired effects. 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 xorg_testset_save_CFLAGS="$CFLAGS" 5940 5941 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5944 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5945 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5946 $as_echo_n "(cached) " >&6 5947 else 5948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5949 /* end confdefs.h. */ 5950 int i; 5951 _ACEOF 5952 if ac_fn_c_try_compile "$LINENO"; then : 5953 xorg_cv_cc_flag_unknown_warning_option=yes 5954 else 5955 xorg_cv_cc_flag_unknown_warning_option=no 5956 fi 5957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5958 fi 5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5960 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5961 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5962 CFLAGS="$xorg_testset_save_CFLAGS" 5963 fi 5964 5965 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5968 fi 5969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5971 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5972 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5973 $as_echo_n "(cached) " >&6 5974 else 5975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5976 /* end confdefs.h. */ 5977 int i; 5978 _ACEOF 5979 if ac_fn_c_try_compile "$LINENO"; then : 5980 xorg_cv_cc_flag_unused_command_line_argument=yes 5981 else 5982 xorg_cv_cc_flag_unused_command_line_argument=no 5983 fi 5984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5985 fi 5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5987 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5988 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5989 CFLAGS="$xorg_testset_save_CFLAGS" 5990 fi 5991 5992 found="no" 5993 5994 if test $found = "no" ; then 5995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5996 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5997 fi 5998 5999 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6001 fi 6002 6003 CFLAGS="$CFLAGS -Wunused" 6004 6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6006 $as_echo_n "checking if $CC supports -Wunused... " >&6; } 6007 cacheid=xorg_cv_cc_flag__Wunused 6008 if eval \${$cacheid+:} false; then : 6009 $as_echo_n "(cached) " >&6 6010 else 6011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6012 /* end confdefs.h. */ 6013 int i; 6014 int 6015 main () 6016 { 6017 6018 ; 6019 return 0; 6020 } 6021 _ACEOF 6022 if ac_fn_c_try_link "$LINENO"; then : 6023 eval $cacheid=yes 6024 else 6025 eval $cacheid=no 6026 fi 6027 rm -f core conftest.err conftest.$ac_objext \ 6028 conftest$ac_exeext conftest.$ac_ext 6029 fi 6030 6031 6032 CFLAGS="$xorg_testset_save_CFLAGS" 6033 6034 eval supported=\$$cacheid 6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6036 $as_echo "$supported" >&6; } 6037 if test "$supported" = "yes" ; then 6038 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6039 found="yes" 6040 fi 6041 fi 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 xorg_testset_save_CFLAGS="$CFLAGS" 6058 6059 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6060 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6062 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6063 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6064 $as_echo_n "(cached) " >&6 6065 else 6066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6067 /* end confdefs.h. */ 6068 int i; 6069 _ACEOF 6070 if ac_fn_c_try_compile "$LINENO"; then : 6071 xorg_cv_cc_flag_unknown_warning_option=yes 6072 else 6073 xorg_cv_cc_flag_unknown_warning_option=no 6074 fi 6075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6076 fi 6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6078 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6079 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6080 CFLAGS="$xorg_testset_save_CFLAGS" 6081 fi 6082 6083 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6084 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6086 fi 6087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6089 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6090 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6091 $as_echo_n "(cached) " >&6 6092 else 6093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6094 /* end confdefs.h. */ 6095 int i; 6096 _ACEOF 6097 if ac_fn_c_try_compile "$LINENO"; then : 6098 xorg_cv_cc_flag_unused_command_line_argument=yes 6099 else 6100 xorg_cv_cc_flag_unused_command_line_argument=no 6101 fi 6102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6103 fi 6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6105 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6106 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6107 CFLAGS="$xorg_testset_save_CFLAGS" 6108 fi 6109 6110 found="no" 6111 6112 if test $found = "no" ; then 6113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6114 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6115 fi 6116 6117 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6119 fi 6120 6121 CFLAGS="$CFLAGS -Wuninitialized" 6122 6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6124 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6125 cacheid=xorg_cv_cc_flag__Wuninitialized 6126 if eval \${$cacheid+:} false; then : 6127 $as_echo_n "(cached) " >&6 6128 else 6129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6130 /* end confdefs.h. */ 6131 int i; 6132 int 6133 main () 6134 { 6135 6136 ; 6137 return 0; 6138 } 6139 _ACEOF 6140 if ac_fn_c_try_link "$LINENO"; then : 6141 eval $cacheid=yes 6142 else 6143 eval $cacheid=no 6144 fi 6145 rm -f core conftest.err conftest.$ac_objext \ 6146 conftest$ac_exeext conftest.$ac_ext 6147 fi 6148 6149 6150 CFLAGS="$xorg_testset_save_CFLAGS" 6151 6152 eval supported=\$$cacheid 6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6154 $as_echo "$supported" >&6; } 6155 if test "$supported" = "yes" ; then 6156 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6157 found="yes" 6158 fi 6159 fi 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 xorg_testset_save_CFLAGS="$CFLAGS" 6176 6177 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6178 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6180 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6181 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6182 $as_echo_n "(cached) " >&6 6183 else 6184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6185 /* end confdefs.h. */ 6186 int i; 6187 _ACEOF 6188 if ac_fn_c_try_compile "$LINENO"; then : 6189 xorg_cv_cc_flag_unknown_warning_option=yes 6190 else 6191 xorg_cv_cc_flag_unknown_warning_option=no 6192 fi 6193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6194 fi 6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6196 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6197 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6198 CFLAGS="$xorg_testset_save_CFLAGS" 6199 fi 6200 6201 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6204 fi 6205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6207 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6208 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6209 $as_echo_n "(cached) " >&6 6210 else 6211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6212 /* end confdefs.h. */ 6213 int i; 6214 _ACEOF 6215 if ac_fn_c_try_compile "$LINENO"; then : 6216 xorg_cv_cc_flag_unused_command_line_argument=yes 6217 else 6218 xorg_cv_cc_flag_unused_command_line_argument=no 6219 fi 6220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6221 fi 6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6223 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6224 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6225 CFLAGS="$xorg_testset_save_CFLAGS" 6226 fi 6227 6228 found="no" 6229 6230 if test $found = "no" ; then 6231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6232 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6233 fi 6234 6235 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6237 fi 6238 6239 CFLAGS="$CFLAGS -Wshadow" 6240 6241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6242 $as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6243 cacheid=xorg_cv_cc_flag__Wshadow 6244 if eval \${$cacheid+:} false; then : 6245 $as_echo_n "(cached) " >&6 6246 else 6247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6248 /* end confdefs.h. */ 6249 int i; 6250 int 6251 main () 6252 { 6253 6254 ; 6255 return 0; 6256 } 6257 _ACEOF 6258 if ac_fn_c_try_link "$LINENO"; then : 6259 eval $cacheid=yes 6260 else 6261 eval $cacheid=no 6262 fi 6263 rm -f core conftest.err conftest.$ac_objext \ 6264 conftest$ac_exeext conftest.$ac_ext 6265 fi 6266 6267 6268 CFLAGS="$xorg_testset_save_CFLAGS" 6269 6270 eval supported=\$$cacheid 6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6272 $as_echo "$supported" >&6; } 6273 if test "$supported" = "yes" ; then 6274 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6275 found="yes" 6276 fi 6277 fi 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 xorg_testset_save_CFLAGS="$CFLAGS" 6294 6295 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6298 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6299 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6300 $as_echo_n "(cached) " >&6 6301 else 6302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6303 /* end confdefs.h. */ 6304 int i; 6305 _ACEOF 6306 if ac_fn_c_try_compile "$LINENO"; then : 6307 xorg_cv_cc_flag_unknown_warning_option=yes 6308 else 6309 xorg_cv_cc_flag_unknown_warning_option=no 6310 fi 6311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6312 fi 6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6314 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6315 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6316 CFLAGS="$xorg_testset_save_CFLAGS" 6317 fi 6318 6319 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6320 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6322 fi 6323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6325 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6326 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6327 $as_echo_n "(cached) " >&6 6328 else 6329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6330 /* end confdefs.h. */ 6331 int i; 6332 _ACEOF 6333 if ac_fn_c_try_compile "$LINENO"; then : 6334 xorg_cv_cc_flag_unused_command_line_argument=yes 6335 else 6336 xorg_cv_cc_flag_unused_command_line_argument=no 6337 fi 6338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6339 fi 6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6341 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6342 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6343 CFLAGS="$xorg_testset_save_CFLAGS" 6344 fi 6345 6346 found="no" 6347 6348 if test $found = "no" ; then 6349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6351 fi 6352 6353 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6355 fi 6356 6357 CFLAGS="$CFLAGS -Wmissing-noreturn" 6358 6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6360 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6361 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6362 if eval \${$cacheid+:} false; then : 6363 $as_echo_n "(cached) " >&6 6364 else 6365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6366 /* end confdefs.h. */ 6367 int i; 6368 int 6369 main () 6370 { 6371 6372 ; 6373 return 0; 6374 } 6375 _ACEOF 6376 if ac_fn_c_try_link "$LINENO"; then : 6377 eval $cacheid=yes 6378 else 6379 eval $cacheid=no 6380 fi 6381 rm -f core conftest.err conftest.$ac_objext \ 6382 conftest$ac_exeext conftest.$ac_ext 6383 fi 6384 6385 6386 CFLAGS="$xorg_testset_save_CFLAGS" 6387 6388 eval supported=\$$cacheid 6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6390 $as_echo "$supported" >&6; } 6391 if test "$supported" = "yes" ; then 6392 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6393 found="yes" 6394 fi 6395 fi 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 xorg_testset_save_CFLAGS="$CFLAGS" 6412 6413 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6414 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6416 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6417 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6418 $as_echo_n "(cached) " >&6 6419 else 6420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6421 /* end confdefs.h. */ 6422 int i; 6423 _ACEOF 6424 if ac_fn_c_try_compile "$LINENO"; then : 6425 xorg_cv_cc_flag_unknown_warning_option=yes 6426 else 6427 xorg_cv_cc_flag_unknown_warning_option=no 6428 fi 6429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6430 fi 6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6432 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6433 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6434 CFLAGS="$xorg_testset_save_CFLAGS" 6435 fi 6436 6437 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6440 fi 6441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6443 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6444 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6445 $as_echo_n "(cached) " >&6 6446 else 6447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6448 /* end confdefs.h. */ 6449 int i; 6450 _ACEOF 6451 if ac_fn_c_try_compile "$LINENO"; then : 6452 xorg_cv_cc_flag_unused_command_line_argument=yes 6453 else 6454 xorg_cv_cc_flag_unused_command_line_argument=no 6455 fi 6456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6457 fi 6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6459 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6460 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6461 CFLAGS="$xorg_testset_save_CFLAGS" 6462 fi 6463 6464 found="no" 6465 6466 if test $found = "no" ; then 6467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6469 fi 6470 6471 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6473 fi 6474 6475 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6476 6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6478 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6479 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6480 if eval \${$cacheid+:} false; then : 6481 $as_echo_n "(cached) " >&6 6482 else 6483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6484 /* end confdefs.h. */ 6485 int i; 6486 int 6487 main () 6488 { 6489 6490 ; 6491 return 0; 6492 } 6493 _ACEOF 6494 if ac_fn_c_try_link "$LINENO"; then : 6495 eval $cacheid=yes 6496 else 6497 eval $cacheid=no 6498 fi 6499 rm -f core conftest.err conftest.$ac_objext \ 6500 conftest$ac_exeext conftest.$ac_ext 6501 fi 6502 6503 6504 CFLAGS="$xorg_testset_save_CFLAGS" 6505 6506 eval supported=\$$cacheid 6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6508 $as_echo "$supported" >&6; } 6509 if test "$supported" = "yes" ; then 6510 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6511 found="yes" 6512 fi 6513 fi 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 xorg_testset_save_CFLAGS="$CFLAGS" 6530 6531 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6534 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6535 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6536 $as_echo_n "(cached) " >&6 6537 else 6538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6539 /* end confdefs.h. */ 6540 int i; 6541 _ACEOF 6542 if ac_fn_c_try_compile "$LINENO"; then : 6543 xorg_cv_cc_flag_unknown_warning_option=yes 6544 else 6545 xorg_cv_cc_flag_unknown_warning_option=no 6546 fi 6547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6548 fi 6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6550 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6551 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6552 CFLAGS="$xorg_testset_save_CFLAGS" 6553 fi 6554 6555 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6556 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6558 fi 6559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6561 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6562 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6563 $as_echo_n "(cached) " >&6 6564 else 6565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6566 /* end confdefs.h. */ 6567 int i; 6568 _ACEOF 6569 if ac_fn_c_try_compile "$LINENO"; then : 6570 xorg_cv_cc_flag_unused_command_line_argument=yes 6571 else 6572 xorg_cv_cc_flag_unused_command_line_argument=no 6573 fi 6574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6575 fi 6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6577 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6578 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6579 CFLAGS="$xorg_testset_save_CFLAGS" 6580 fi 6581 6582 found="no" 6583 6584 if test $found = "no" ; then 6585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6586 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6587 fi 6588 6589 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6591 fi 6592 6593 CFLAGS="$CFLAGS -Wredundant-decls" 6594 6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6596 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6597 cacheid=xorg_cv_cc_flag__Wredundant_decls 6598 if eval \${$cacheid+:} false; then : 6599 $as_echo_n "(cached) " >&6 6600 else 6601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6602 /* end confdefs.h. */ 6603 int i; 6604 int 6605 main () 6606 { 6607 6608 ; 6609 return 0; 6610 } 6611 _ACEOF 6612 if ac_fn_c_try_link "$LINENO"; then : 6613 eval $cacheid=yes 6614 else 6615 eval $cacheid=no 6616 fi 6617 rm -f core conftest.err conftest.$ac_objext \ 6618 conftest$ac_exeext conftest.$ac_ext 6619 fi 6620 6621 6622 CFLAGS="$xorg_testset_save_CFLAGS" 6623 6624 eval supported=\$$cacheid 6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6626 $as_echo "$supported" >&6; } 6627 if test "$supported" = "yes" ; then 6628 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6629 found="yes" 6630 fi 6631 fi 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 xorg_testset_save_CFLAGS="$CFLAGS" 6648 6649 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6650 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6652 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6653 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6654 $as_echo_n "(cached) " >&6 6655 else 6656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6657 /* end confdefs.h. */ 6658 int i; 6659 _ACEOF 6660 if ac_fn_c_try_compile "$LINENO"; then : 6661 xorg_cv_cc_flag_unknown_warning_option=yes 6662 else 6663 xorg_cv_cc_flag_unknown_warning_option=no 6664 fi 6665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6666 fi 6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6668 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6669 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6670 CFLAGS="$xorg_testset_save_CFLAGS" 6671 fi 6672 6673 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6676 fi 6677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6679 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6680 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6681 $as_echo_n "(cached) " >&6 6682 else 6683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6684 /* end confdefs.h. */ 6685 int i; 6686 _ACEOF 6687 if ac_fn_c_try_compile "$LINENO"; then : 6688 xorg_cv_cc_flag_unused_command_line_argument=yes 6689 else 6690 xorg_cv_cc_flag_unused_command_line_argument=no 6691 fi 6692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6693 fi 6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6695 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6696 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6697 CFLAGS="$xorg_testset_save_CFLAGS" 6698 fi 6699 6700 found="no" 6701 6702 if test $found = "no" ; then 6703 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6704 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6705 fi 6706 6707 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6709 fi 6710 6711 CFLAGS="$CFLAGS -Wlogical-op" 6712 6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6714 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6715 cacheid=xorg_cv_cc_flag__Wlogical_op 6716 if eval \${$cacheid+:} false; then : 6717 $as_echo_n "(cached) " >&6 6718 else 6719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6720 /* end confdefs.h. */ 6721 int i; 6722 int 6723 main () 6724 { 6725 6726 ; 6727 return 0; 6728 } 6729 _ACEOF 6730 if ac_fn_c_try_link "$LINENO"; then : 6731 eval $cacheid=yes 6732 else 6733 eval $cacheid=no 6734 fi 6735 rm -f core conftest.err conftest.$ac_objext \ 6736 conftest$ac_exeext conftest.$ac_ext 6737 fi 6738 6739 6740 CFLAGS="$xorg_testset_save_CFLAGS" 6741 6742 eval supported=\$$cacheid 6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6744 $as_echo "$supported" >&6; } 6745 if test "$supported" = "yes" ; then 6746 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6747 found="yes" 6748 fi 6749 fi 6750 6751 6752 6753 # These are currently disabled because they are noisy. They will be enabled 6754 # in the future once the codebase is sufficiently modernized to silence 6755 # them. For now, I don't want them to drown out the other warnings. 6756 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6757 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6758 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6759 6760 # Turn some warnings into errors, so we don't accidently get successful builds 6761 # when there are problems that should be fixed. 6762 6763 if test "x$SELECTIVE_WERROR" = "xyes" ; then 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 xorg_testset_save_CFLAGS="$CFLAGS" 6778 6779 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6780 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6782 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6783 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6784 $as_echo_n "(cached) " >&6 6785 else 6786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6787 /* end confdefs.h. */ 6788 int i; 6789 _ACEOF 6790 if ac_fn_c_try_compile "$LINENO"; then : 6791 xorg_cv_cc_flag_unknown_warning_option=yes 6792 else 6793 xorg_cv_cc_flag_unknown_warning_option=no 6794 fi 6795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6796 fi 6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6798 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6799 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6800 CFLAGS="$xorg_testset_save_CFLAGS" 6801 fi 6802 6803 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6805 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6806 fi 6807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6809 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6810 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6811 $as_echo_n "(cached) " >&6 6812 else 6813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6814 /* end confdefs.h. */ 6815 int i; 6816 _ACEOF 6817 if ac_fn_c_try_compile "$LINENO"; then : 6818 xorg_cv_cc_flag_unused_command_line_argument=yes 6819 else 6820 xorg_cv_cc_flag_unused_command_line_argument=no 6821 fi 6822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6823 fi 6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6825 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6826 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6827 CFLAGS="$xorg_testset_save_CFLAGS" 6828 fi 6829 6830 found="no" 6831 6832 if test $found = "no" ; then 6833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6835 fi 6836 6837 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6839 fi 6840 6841 CFLAGS="$CFLAGS -Werror=implicit" 6842 6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6844 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6845 cacheid=xorg_cv_cc_flag__Werror_implicit 6846 if eval \${$cacheid+:} false; then : 6847 $as_echo_n "(cached) " >&6 6848 else 6849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6850 /* end confdefs.h. */ 6851 int i; 6852 int 6853 main () 6854 { 6855 6856 ; 6857 return 0; 6858 } 6859 _ACEOF 6860 if ac_fn_c_try_link "$LINENO"; then : 6861 eval $cacheid=yes 6862 else 6863 eval $cacheid=no 6864 fi 6865 rm -f core conftest.err conftest.$ac_objext \ 6866 conftest$ac_exeext conftest.$ac_ext 6867 fi 6868 6869 6870 CFLAGS="$xorg_testset_save_CFLAGS" 6871 6872 eval supported=\$$cacheid 6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6874 $as_echo "$supported" >&6; } 6875 if test "$supported" = "yes" ; then 6876 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6877 found="yes" 6878 fi 6879 fi 6880 6881 if test $found = "no" ; then 6882 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6883 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6884 fi 6885 6886 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6888 fi 6889 6890 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6891 6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6893 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6894 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 6895 if eval \${$cacheid+:} false; then : 6896 $as_echo_n "(cached) " >&6 6897 else 6898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6899 /* end confdefs.h. */ 6900 int i; 6901 int 6902 main () 6903 { 6904 6905 ; 6906 return 0; 6907 } 6908 _ACEOF 6909 if ac_fn_c_try_link "$LINENO"; then : 6910 eval $cacheid=yes 6911 else 6912 eval $cacheid=no 6913 fi 6914 rm -f core conftest.err conftest.$ac_objext \ 6915 conftest$ac_exeext conftest.$ac_ext 6916 fi 6917 6918 6919 CFLAGS="$xorg_testset_save_CFLAGS" 6920 6921 eval supported=\$$cacheid 6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6923 $as_echo "$supported" >&6; } 6924 if test "$supported" = "yes" ; then 6925 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6926 found="yes" 6927 fi 6928 fi 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 xorg_testset_save_CFLAGS="$CFLAGS" 6945 6946 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6947 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6949 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6950 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6951 $as_echo_n "(cached) " >&6 6952 else 6953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6954 /* end confdefs.h. */ 6955 int i; 6956 _ACEOF 6957 if ac_fn_c_try_compile "$LINENO"; then : 6958 xorg_cv_cc_flag_unknown_warning_option=yes 6959 else 6960 xorg_cv_cc_flag_unknown_warning_option=no 6961 fi 6962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6963 fi 6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6965 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6966 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6967 CFLAGS="$xorg_testset_save_CFLAGS" 6968 fi 6969 6970 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6971 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6972 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6973 fi 6974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6976 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6977 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6978 $as_echo_n "(cached) " >&6 6979 else 6980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6981 /* end confdefs.h. */ 6982 int i; 6983 _ACEOF 6984 if ac_fn_c_try_compile "$LINENO"; then : 6985 xorg_cv_cc_flag_unused_command_line_argument=yes 6986 else 6987 xorg_cv_cc_flag_unused_command_line_argument=no 6988 fi 6989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6990 fi 6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6992 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6993 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6994 CFLAGS="$xorg_testset_save_CFLAGS" 6995 fi 6996 6997 found="no" 6998 6999 if test $found = "no" ; then 7000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7002 fi 7003 7004 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7006 fi 7007 7008 CFLAGS="$CFLAGS -Werror=nonnull" 7009 7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7011 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7012 cacheid=xorg_cv_cc_flag__Werror_nonnull 7013 if eval \${$cacheid+:} false; then : 7014 $as_echo_n "(cached) " >&6 7015 else 7016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7017 /* end confdefs.h. */ 7018 int i; 7019 int 7020 main () 7021 { 7022 7023 ; 7024 return 0; 7025 } 7026 _ACEOF 7027 if ac_fn_c_try_link "$LINENO"; then : 7028 eval $cacheid=yes 7029 else 7030 eval $cacheid=no 7031 fi 7032 rm -f core conftest.err conftest.$ac_objext \ 7033 conftest$ac_exeext conftest.$ac_ext 7034 fi 7035 7036 7037 CFLAGS="$xorg_testset_save_CFLAGS" 7038 7039 eval supported=\$$cacheid 7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7041 $as_echo "$supported" >&6; } 7042 if test "$supported" = "yes" ; then 7043 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7044 found="yes" 7045 fi 7046 fi 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 xorg_testset_save_CFLAGS="$CFLAGS" 7063 7064 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7065 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7067 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7068 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7069 $as_echo_n "(cached) " >&6 7070 else 7071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7072 /* end confdefs.h. */ 7073 int i; 7074 _ACEOF 7075 if ac_fn_c_try_compile "$LINENO"; then : 7076 xorg_cv_cc_flag_unknown_warning_option=yes 7077 else 7078 xorg_cv_cc_flag_unknown_warning_option=no 7079 fi 7080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7081 fi 7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7083 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7084 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7085 CFLAGS="$xorg_testset_save_CFLAGS" 7086 fi 7087 7088 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7091 fi 7092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7094 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7095 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7096 $as_echo_n "(cached) " >&6 7097 else 7098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7099 /* end confdefs.h. */ 7100 int i; 7101 _ACEOF 7102 if ac_fn_c_try_compile "$LINENO"; then : 7103 xorg_cv_cc_flag_unused_command_line_argument=yes 7104 else 7105 xorg_cv_cc_flag_unused_command_line_argument=no 7106 fi 7107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7108 fi 7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7110 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7111 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7112 CFLAGS="$xorg_testset_save_CFLAGS" 7113 fi 7114 7115 found="no" 7116 7117 if test $found = "no" ; then 7118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7119 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7120 fi 7121 7122 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7124 fi 7125 7126 CFLAGS="$CFLAGS -Werror=init-self" 7127 7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7129 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7130 cacheid=xorg_cv_cc_flag__Werror_init_self 7131 if eval \${$cacheid+:} false; then : 7132 $as_echo_n "(cached) " >&6 7133 else 7134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7135 /* end confdefs.h. */ 7136 int i; 7137 int 7138 main () 7139 { 7140 7141 ; 7142 return 0; 7143 } 7144 _ACEOF 7145 if ac_fn_c_try_link "$LINENO"; then : 7146 eval $cacheid=yes 7147 else 7148 eval $cacheid=no 7149 fi 7150 rm -f core conftest.err conftest.$ac_objext \ 7151 conftest$ac_exeext conftest.$ac_ext 7152 fi 7153 7154 7155 CFLAGS="$xorg_testset_save_CFLAGS" 7156 7157 eval supported=\$$cacheid 7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7159 $as_echo "$supported" >&6; } 7160 if test "$supported" = "yes" ; then 7161 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7162 found="yes" 7163 fi 7164 fi 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 xorg_testset_save_CFLAGS="$CFLAGS" 7181 7182 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7183 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7185 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7186 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7187 $as_echo_n "(cached) " >&6 7188 else 7189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7190 /* end confdefs.h. */ 7191 int i; 7192 _ACEOF 7193 if ac_fn_c_try_compile "$LINENO"; then : 7194 xorg_cv_cc_flag_unknown_warning_option=yes 7195 else 7196 xorg_cv_cc_flag_unknown_warning_option=no 7197 fi 7198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7199 fi 7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7201 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7202 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7203 CFLAGS="$xorg_testset_save_CFLAGS" 7204 fi 7205 7206 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7208 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7209 fi 7210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7212 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7213 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7214 $as_echo_n "(cached) " >&6 7215 else 7216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7217 /* end confdefs.h. */ 7218 int i; 7219 _ACEOF 7220 if ac_fn_c_try_compile "$LINENO"; then : 7221 xorg_cv_cc_flag_unused_command_line_argument=yes 7222 else 7223 xorg_cv_cc_flag_unused_command_line_argument=no 7224 fi 7225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7226 fi 7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7228 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7229 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7230 CFLAGS="$xorg_testset_save_CFLAGS" 7231 fi 7232 7233 found="no" 7234 7235 if test $found = "no" ; then 7236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7238 fi 7239 7240 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7242 fi 7243 7244 CFLAGS="$CFLAGS -Werror=main" 7245 7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7247 $as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7248 cacheid=xorg_cv_cc_flag__Werror_main 7249 if eval \${$cacheid+:} false; then : 7250 $as_echo_n "(cached) " >&6 7251 else 7252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7253 /* end confdefs.h. */ 7254 int i; 7255 int 7256 main () 7257 { 7258 7259 ; 7260 return 0; 7261 } 7262 _ACEOF 7263 if ac_fn_c_try_link "$LINENO"; then : 7264 eval $cacheid=yes 7265 else 7266 eval $cacheid=no 7267 fi 7268 rm -f core conftest.err conftest.$ac_objext \ 7269 conftest$ac_exeext conftest.$ac_ext 7270 fi 7271 7272 7273 CFLAGS="$xorg_testset_save_CFLAGS" 7274 7275 eval supported=\$$cacheid 7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7277 $as_echo "$supported" >&6; } 7278 if test "$supported" = "yes" ; then 7279 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7280 found="yes" 7281 fi 7282 fi 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 xorg_testset_save_CFLAGS="$CFLAGS" 7299 7300 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7301 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7303 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7304 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7305 $as_echo_n "(cached) " >&6 7306 else 7307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7308 /* end confdefs.h. */ 7309 int i; 7310 _ACEOF 7311 if ac_fn_c_try_compile "$LINENO"; then : 7312 xorg_cv_cc_flag_unknown_warning_option=yes 7313 else 7314 xorg_cv_cc_flag_unknown_warning_option=no 7315 fi 7316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7317 fi 7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7319 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7320 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7321 CFLAGS="$xorg_testset_save_CFLAGS" 7322 fi 7323 7324 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7327 fi 7328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7330 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7331 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7332 $as_echo_n "(cached) " >&6 7333 else 7334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7335 /* end confdefs.h. */ 7336 int i; 7337 _ACEOF 7338 if ac_fn_c_try_compile "$LINENO"; then : 7339 xorg_cv_cc_flag_unused_command_line_argument=yes 7340 else 7341 xorg_cv_cc_flag_unused_command_line_argument=no 7342 fi 7343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7344 fi 7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7346 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7347 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7348 CFLAGS="$xorg_testset_save_CFLAGS" 7349 fi 7350 7351 found="no" 7352 7353 if test $found = "no" ; then 7354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7356 fi 7357 7358 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7360 fi 7361 7362 CFLAGS="$CFLAGS -Werror=missing-braces" 7363 7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7365 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7366 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7367 if eval \${$cacheid+:} false; then : 7368 $as_echo_n "(cached) " >&6 7369 else 7370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7371 /* end confdefs.h. */ 7372 int i; 7373 int 7374 main () 7375 { 7376 7377 ; 7378 return 0; 7379 } 7380 _ACEOF 7381 if ac_fn_c_try_link "$LINENO"; then : 7382 eval $cacheid=yes 7383 else 7384 eval $cacheid=no 7385 fi 7386 rm -f core conftest.err conftest.$ac_objext \ 7387 conftest$ac_exeext conftest.$ac_ext 7388 fi 7389 7390 7391 CFLAGS="$xorg_testset_save_CFLAGS" 7392 7393 eval supported=\$$cacheid 7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7395 $as_echo "$supported" >&6; } 7396 if test "$supported" = "yes" ; then 7397 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7398 found="yes" 7399 fi 7400 fi 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 xorg_testset_save_CFLAGS="$CFLAGS" 7417 7418 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7419 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7421 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7422 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7423 $as_echo_n "(cached) " >&6 7424 else 7425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7426 /* end confdefs.h. */ 7427 int i; 7428 _ACEOF 7429 if ac_fn_c_try_compile "$LINENO"; then : 7430 xorg_cv_cc_flag_unknown_warning_option=yes 7431 else 7432 xorg_cv_cc_flag_unknown_warning_option=no 7433 fi 7434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7435 fi 7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7437 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7438 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7439 CFLAGS="$xorg_testset_save_CFLAGS" 7440 fi 7441 7442 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7444 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7445 fi 7446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7448 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7449 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7450 $as_echo_n "(cached) " >&6 7451 else 7452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7453 /* end confdefs.h. */ 7454 int i; 7455 _ACEOF 7456 if ac_fn_c_try_compile "$LINENO"; then : 7457 xorg_cv_cc_flag_unused_command_line_argument=yes 7458 else 7459 xorg_cv_cc_flag_unused_command_line_argument=no 7460 fi 7461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7462 fi 7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7464 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7465 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7466 CFLAGS="$xorg_testset_save_CFLAGS" 7467 fi 7468 7469 found="no" 7470 7471 if test $found = "no" ; then 7472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7473 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7474 fi 7475 7476 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7478 fi 7479 7480 CFLAGS="$CFLAGS -Werror=sequence-point" 7481 7482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7483 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7484 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7485 if eval \${$cacheid+:} false; then : 7486 $as_echo_n "(cached) " >&6 7487 else 7488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7489 /* end confdefs.h. */ 7490 int i; 7491 int 7492 main () 7493 { 7494 7495 ; 7496 return 0; 7497 } 7498 _ACEOF 7499 if ac_fn_c_try_link "$LINENO"; then : 7500 eval $cacheid=yes 7501 else 7502 eval $cacheid=no 7503 fi 7504 rm -f core conftest.err conftest.$ac_objext \ 7505 conftest$ac_exeext conftest.$ac_ext 7506 fi 7507 7508 7509 CFLAGS="$xorg_testset_save_CFLAGS" 7510 7511 eval supported=\$$cacheid 7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7513 $as_echo "$supported" >&6; } 7514 if test "$supported" = "yes" ; then 7515 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7516 found="yes" 7517 fi 7518 fi 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 xorg_testset_save_CFLAGS="$CFLAGS" 7535 7536 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7537 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7539 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7540 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7541 $as_echo_n "(cached) " >&6 7542 else 7543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7544 /* end confdefs.h. */ 7545 int i; 7546 _ACEOF 7547 if ac_fn_c_try_compile "$LINENO"; then : 7548 xorg_cv_cc_flag_unknown_warning_option=yes 7549 else 7550 xorg_cv_cc_flag_unknown_warning_option=no 7551 fi 7552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7553 fi 7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7555 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7556 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7557 CFLAGS="$xorg_testset_save_CFLAGS" 7558 fi 7559 7560 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7563 fi 7564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7566 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7567 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7568 $as_echo_n "(cached) " >&6 7569 else 7570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7571 /* end confdefs.h. */ 7572 int i; 7573 _ACEOF 7574 if ac_fn_c_try_compile "$LINENO"; then : 7575 xorg_cv_cc_flag_unused_command_line_argument=yes 7576 else 7577 xorg_cv_cc_flag_unused_command_line_argument=no 7578 fi 7579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7580 fi 7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7582 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7583 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7584 CFLAGS="$xorg_testset_save_CFLAGS" 7585 fi 7586 7587 found="no" 7588 7589 if test $found = "no" ; then 7590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7592 fi 7593 7594 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7596 fi 7597 7598 CFLAGS="$CFLAGS -Werror=return-type" 7599 7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7601 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7602 cacheid=xorg_cv_cc_flag__Werror_return_type 7603 if eval \${$cacheid+:} false; then : 7604 $as_echo_n "(cached) " >&6 7605 else 7606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7607 /* end confdefs.h. */ 7608 int i; 7609 int 7610 main () 7611 { 7612 7613 ; 7614 return 0; 7615 } 7616 _ACEOF 7617 if ac_fn_c_try_link "$LINENO"; then : 7618 eval $cacheid=yes 7619 else 7620 eval $cacheid=no 7621 fi 7622 rm -f core conftest.err conftest.$ac_objext \ 7623 conftest$ac_exeext conftest.$ac_ext 7624 fi 7625 7626 7627 CFLAGS="$xorg_testset_save_CFLAGS" 7628 7629 eval supported=\$$cacheid 7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7631 $as_echo "$supported" >&6; } 7632 if test "$supported" = "yes" ; then 7633 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7634 found="yes" 7635 fi 7636 fi 7637 7638 if test $found = "no" ; then 7639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7640 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7641 fi 7642 7643 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7645 fi 7646 7647 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7648 7649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7650 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7651 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7652 if eval \${$cacheid+:} false; then : 7653 $as_echo_n "(cached) " >&6 7654 else 7655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7656 /* end confdefs.h. */ 7657 int i; 7658 int 7659 main () 7660 { 7661 7662 ; 7663 return 0; 7664 } 7665 _ACEOF 7666 if ac_fn_c_try_link "$LINENO"; then : 7667 eval $cacheid=yes 7668 else 7669 eval $cacheid=no 7670 fi 7671 rm -f core conftest.err conftest.$ac_objext \ 7672 conftest$ac_exeext conftest.$ac_ext 7673 fi 7674 7675 7676 CFLAGS="$xorg_testset_save_CFLAGS" 7677 7678 eval supported=\$$cacheid 7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7680 $as_echo "$supported" >&6; } 7681 if test "$supported" = "yes" ; then 7682 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7683 found="yes" 7684 fi 7685 fi 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 xorg_testset_save_CFLAGS="$CFLAGS" 7702 7703 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7704 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7706 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7707 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7708 $as_echo_n "(cached) " >&6 7709 else 7710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7711 /* end confdefs.h. */ 7712 int i; 7713 _ACEOF 7714 if ac_fn_c_try_compile "$LINENO"; then : 7715 xorg_cv_cc_flag_unknown_warning_option=yes 7716 else 7717 xorg_cv_cc_flag_unknown_warning_option=no 7718 fi 7719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7720 fi 7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7722 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7723 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7724 CFLAGS="$xorg_testset_save_CFLAGS" 7725 fi 7726 7727 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7728 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7730 fi 7731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7733 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7734 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7735 $as_echo_n "(cached) " >&6 7736 else 7737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7738 /* end confdefs.h. */ 7739 int i; 7740 _ACEOF 7741 if ac_fn_c_try_compile "$LINENO"; then : 7742 xorg_cv_cc_flag_unused_command_line_argument=yes 7743 else 7744 xorg_cv_cc_flag_unused_command_line_argument=no 7745 fi 7746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7747 fi 7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7749 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7750 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7751 CFLAGS="$xorg_testset_save_CFLAGS" 7752 fi 7753 7754 found="no" 7755 7756 if test $found = "no" ; then 7757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7758 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7759 fi 7760 7761 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7763 fi 7764 7765 CFLAGS="$CFLAGS -Werror=trigraphs" 7766 7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7768 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7769 cacheid=xorg_cv_cc_flag__Werror_trigraphs 7770 if eval \${$cacheid+:} false; then : 7771 $as_echo_n "(cached) " >&6 7772 else 7773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7774 /* end confdefs.h. */ 7775 int i; 7776 int 7777 main () 7778 { 7779 7780 ; 7781 return 0; 7782 } 7783 _ACEOF 7784 if ac_fn_c_try_link "$LINENO"; then : 7785 eval $cacheid=yes 7786 else 7787 eval $cacheid=no 7788 fi 7789 rm -f core conftest.err conftest.$ac_objext \ 7790 conftest$ac_exeext conftest.$ac_ext 7791 fi 7792 7793 7794 CFLAGS="$xorg_testset_save_CFLAGS" 7795 7796 eval supported=\$$cacheid 7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7798 $as_echo "$supported" >&6; } 7799 if test "$supported" = "yes" ; then 7800 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7801 found="yes" 7802 fi 7803 fi 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 xorg_testset_save_CFLAGS="$CFLAGS" 7820 7821 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7822 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7824 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7825 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7826 $as_echo_n "(cached) " >&6 7827 else 7828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7829 /* end confdefs.h. */ 7830 int i; 7831 _ACEOF 7832 if ac_fn_c_try_compile "$LINENO"; then : 7833 xorg_cv_cc_flag_unknown_warning_option=yes 7834 else 7835 xorg_cv_cc_flag_unknown_warning_option=no 7836 fi 7837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7838 fi 7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7840 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7841 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7842 CFLAGS="$xorg_testset_save_CFLAGS" 7843 fi 7844 7845 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7846 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7847 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7848 fi 7849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7851 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7852 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7853 $as_echo_n "(cached) " >&6 7854 else 7855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7856 /* end confdefs.h. */ 7857 int i; 7858 _ACEOF 7859 if ac_fn_c_try_compile "$LINENO"; then : 7860 xorg_cv_cc_flag_unused_command_line_argument=yes 7861 else 7862 xorg_cv_cc_flag_unused_command_line_argument=no 7863 fi 7864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7865 fi 7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7867 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7868 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7869 CFLAGS="$xorg_testset_save_CFLAGS" 7870 fi 7871 7872 found="no" 7873 7874 if test $found = "no" ; then 7875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7877 fi 7878 7879 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7881 fi 7882 7883 CFLAGS="$CFLAGS -Werror=array-bounds" 7884 7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7886 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7887 cacheid=xorg_cv_cc_flag__Werror_array_bounds 7888 if eval \${$cacheid+:} false; then : 7889 $as_echo_n "(cached) " >&6 7890 else 7891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7892 /* end confdefs.h. */ 7893 int i; 7894 int 7895 main () 7896 { 7897 7898 ; 7899 return 0; 7900 } 7901 _ACEOF 7902 if ac_fn_c_try_link "$LINENO"; then : 7903 eval $cacheid=yes 7904 else 7905 eval $cacheid=no 7906 fi 7907 rm -f core conftest.err conftest.$ac_objext \ 7908 conftest$ac_exeext conftest.$ac_ext 7909 fi 7910 7911 7912 CFLAGS="$xorg_testset_save_CFLAGS" 7913 7914 eval supported=\$$cacheid 7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7916 $as_echo "$supported" >&6; } 7917 if test "$supported" = "yes" ; then 7918 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7919 found="yes" 7920 fi 7921 fi 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 xorg_testset_save_CFLAGS="$CFLAGS" 7938 7939 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7942 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7943 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7944 $as_echo_n "(cached) " >&6 7945 else 7946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7947 /* end confdefs.h. */ 7948 int i; 7949 _ACEOF 7950 if ac_fn_c_try_compile "$LINENO"; then : 7951 xorg_cv_cc_flag_unknown_warning_option=yes 7952 else 7953 xorg_cv_cc_flag_unknown_warning_option=no 7954 fi 7955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7956 fi 7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7958 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7959 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7960 CFLAGS="$xorg_testset_save_CFLAGS" 7961 fi 7962 7963 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7966 fi 7967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7969 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7970 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7971 $as_echo_n "(cached) " >&6 7972 else 7973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7974 /* end confdefs.h. */ 7975 int i; 7976 _ACEOF 7977 if ac_fn_c_try_compile "$LINENO"; then : 7978 xorg_cv_cc_flag_unused_command_line_argument=yes 7979 else 7980 xorg_cv_cc_flag_unused_command_line_argument=no 7981 fi 7982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7983 fi 7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7985 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7986 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7987 CFLAGS="$xorg_testset_save_CFLAGS" 7988 fi 7989 7990 found="no" 7991 7992 if test $found = "no" ; then 7993 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7994 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7995 fi 7996 7997 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7999 fi 8000 8001 CFLAGS="$CFLAGS -Werror=write-strings" 8002 8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8004 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8005 cacheid=xorg_cv_cc_flag__Werror_write_strings 8006 if eval \${$cacheid+:} false; then : 8007 $as_echo_n "(cached) " >&6 8008 else 8009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8010 /* end confdefs.h. */ 8011 int i; 8012 int 8013 main () 8014 { 8015 8016 ; 8017 return 0; 8018 } 8019 _ACEOF 8020 if ac_fn_c_try_link "$LINENO"; then : 8021 eval $cacheid=yes 8022 else 8023 eval $cacheid=no 8024 fi 8025 rm -f core conftest.err conftest.$ac_objext \ 8026 conftest$ac_exeext conftest.$ac_ext 8027 fi 8028 8029 8030 CFLAGS="$xorg_testset_save_CFLAGS" 8031 8032 eval supported=\$$cacheid 8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8034 $as_echo "$supported" >&6; } 8035 if test "$supported" = "yes" ; then 8036 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8037 found="yes" 8038 fi 8039 fi 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 xorg_testset_save_CFLAGS="$CFLAGS" 8056 8057 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8058 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8060 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8061 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8062 $as_echo_n "(cached) " >&6 8063 else 8064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8065 /* end confdefs.h. */ 8066 int i; 8067 _ACEOF 8068 if ac_fn_c_try_compile "$LINENO"; then : 8069 xorg_cv_cc_flag_unknown_warning_option=yes 8070 else 8071 xorg_cv_cc_flag_unknown_warning_option=no 8072 fi 8073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8074 fi 8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8076 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8077 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8078 CFLAGS="$xorg_testset_save_CFLAGS" 8079 fi 8080 8081 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8083 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8084 fi 8085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8087 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8088 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8089 $as_echo_n "(cached) " >&6 8090 else 8091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8092 /* end confdefs.h. */ 8093 int i; 8094 _ACEOF 8095 if ac_fn_c_try_compile "$LINENO"; then : 8096 xorg_cv_cc_flag_unused_command_line_argument=yes 8097 else 8098 xorg_cv_cc_flag_unused_command_line_argument=no 8099 fi 8100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8101 fi 8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8103 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8104 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8105 CFLAGS="$xorg_testset_save_CFLAGS" 8106 fi 8107 8108 found="no" 8109 8110 if test $found = "no" ; then 8111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8113 fi 8114 8115 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8117 fi 8118 8119 CFLAGS="$CFLAGS -Werror=address" 8120 8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8122 $as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8123 cacheid=xorg_cv_cc_flag__Werror_address 8124 if eval \${$cacheid+:} false; then : 8125 $as_echo_n "(cached) " >&6 8126 else 8127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8128 /* end confdefs.h. */ 8129 int i; 8130 int 8131 main () 8132 { 8133 8134 ; 8135 return 0; 8136 } 8137 _ACEOF 8138 if ac_fn_c_try_link "$LINENO"; then : 8139 eval $cacheid=yes 8140 else 8141 eval $cacheid=no 8142 fi 8143 rm -f core conftest.err conftest.$ac_objext \ 8144 conftest$ac_exeext conftest.$ac_ext 8145 fi 8146 8147 8148 CFLAGS="$xorg_testset_save_CFLAGS" 8149 8150 eval supported=\$$cacheid 8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8152 $as_echo "$supported" >&6; } 8153 if test "$supported" = "yes" ; then 8154 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8155 found="yes" 8156 fi 8157 fi 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 xorg_testset_save_CFLAGS="$CFLAGS" 8174 8175 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8178 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8179 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8180 $as_echo_n "(cached) " >&6 8181 else 8182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8183 /* end confdefs.h. */ 8184 int i; 8185 _ACEOF 8186 if ac_fn_c_try_compile "$LINENO"; then : 8187 xorg_cv_cc_flag_unknown_warning_option=yes 8188 else 8189 xorg_cv_cc_flag_unknown_warning_option=no 8190 fi 8191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8192 fi 8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8194 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8195 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8196 CFLAGS="$xorg_testset_save_CFLAGS" 8197 fi 8198 8199 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8202 fi 8203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8205 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8206 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8207 $as_echo_n "(cached) " >&6 8208 else 8209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8210 /* end confdefs.h. */ 8211 int i; 8212 _ACEOF 8213 if ac_fn_c_try_compile "$LINENO"; then : 8214 xorg_cv_cc_flag_unused_command_line_argument=yes 8215 else 8216 xorg_cv_cc_flag_unused_command_line_argument=no 8217 fi 8218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8219 fi 8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8221 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8222 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8223 CFLAGS="$xorg_testset_save_CFLAGS" 8224 fi 8225 8226 found="no" 8227 8228 if test $found = "no" ; then 8229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8231 fi 8232 8233 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8235 fi 8236 8237 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8238 8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8240 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8241 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8242 if eval \${$cacheid+:} false; then : 8243 $as_echo_n "(cached) " >&6 8244 else 8245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8246 /* end confdefs.h. */ 8247 int i; 8248 int 8249 main () 8250 { 8251 8252 ; 8253 return 0; 8254 } 8255 _ACEOF 8256 if ac_fn_c_try_link "$LINENO"; then : 8257 eval $cacheid=yes 8258 else 8259 eval $cacheid=no 8260 fi 8261 rm -f core conftest.err conftest.$ac_objext \ 8262 conftest$ac_exeext conftest.$ac_ext 8263 fi 8264 8265 8266 CFLAGS="$xorg_testset_save_CFLAGS" 8267 8268 eval supported=\$$cacheid 8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8270 $as_echo "$supported" >&6; } 8271 if test "$supported" = "yes" ; then 8272 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8273 found="yes" 8274 fi 8275 fi 8276 8277 if test $found = "no" ; then 8278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8279 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8280 fi 8281 8282 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8284 fi 8285 8286 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8287 8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8289 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8290 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8291 if eval \${$cacheid+:} false; then : 8292 $as_echo_n "(cached) " >&6 8293 else 8294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8295 /* end confdefs.h. */ 8296 int i; 8297 int 8298 main () 8299 { 8300 8301 ; 8302 return 0; 8303 } 8304 _ACEOF 8305 if ac_fn_c_try_link "$LINENO"; then : 8306 eval $cacheid=yes 8307 else 8308 eval $cacheid=no 8309 fi 8310 rm -f core conftest.err conftest.$ac_objext \ 8311 conftest$ac_exeext conftest.$ac_ext 8312 fi 8313 8314 8315 CFLAGS="$xorg_testset_save_CFLAGS" 8316 8317 eval supported=\$$cacheid 8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8319 $as_echo "$supported" >&6; } 8320 if test "$supported" = "yes" ; then 8321 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8322 found="yes" 8323 fi 8324 fi 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 xorg_testset_save_CFLAGS="$CFLAGS" 8341 8342 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8343 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8345 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8346 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8347 $as_echo_n "(cached) " >&6 8348 else 8349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8350 /* end confdefs.h. */ 8351 int i; 8352 _ACEOF 8353 if ac_fn_c_try_compile "$LINENO"; then : 8354 xorg_cv_cc_flag_unknown_warning_option=yes 8355 else 8356 xorg_cv_cc_flag_unknown_warning_option=no 8357 fi 8358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8359 fi 8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8361 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8362 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8363 CFLAGS="$xorg_testset_save_CFLAGS" 8364 fi 8365 8366 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8367 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8368 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8369 fi 8370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8372 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8373 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8374 $as_echo_n "(cached) " >&6 8375 else 8376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8377 /* end confdefs.h. */ 8378 int i; 8379 _ACEOF 8380 if ac_fn_c_try_compile "$LINENO"; then : 8381 xorg_cv_cc_flag_unused_command_line_argument=yes 8382 else 8383 xorg_cv_cc_flag_unused_command_line_argument=no 8384 fi 8385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8386 fi 8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8388 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8389 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8390 CFLAGS="$xorg_testset_save_CFLAGS" 8391 fi 8392 8393 found="no" 8394 8395 if test $found = "no" ; then 8396 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8397 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8398 fi 8399 8400 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8402 fi 8403 8404 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8405 8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8407 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8408 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8409 if eval \${$cacheid+:} false; then : 8410 $as_echo_n "(cached) " >&6 8411 else 8412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8413 /* end confdefs.h. */ 8414 int i; 8415 int 8416 main () 8417 { 8418 8419 ; 8420 return 0; 8421 } 8422 _ACEOF 8423 if ac_fn_c_try_link "$LINENO"; then : 8424 eval $cacheid=yes 8425 else 8426 eval $cacheid=no 8427 fi 8428 rm -f core conftest.err conftest.$ac_objext \ 8429 conftest$ac_exeext conftest.$ac_ext 8430 fi 8431 8432 8433 CFLAGS="$xorg_testset_save_CFLAGS" 8434 8435 eval supported=\$$cacheid 8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8437 $as_echo "$supported" >&6; } 8438 if test "$supported" = "yes" ; then 8439 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8440 found="yes" 8441 fi 8442 fi 8443 8444 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8445 else 8446 { $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 8447 $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;} 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 xorg_testset_save_CFLAGS="$CFLAGS" 8462 8463 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8466 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8467 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8468 $as_echo_n "(cached) " >&6 8469 else 8470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8471 /* end confdefs.h. */ 8472 int i; 8473 _ACEOF 8474 if ac_fn_c_try_compile "$LINENO"; then : 8475 xorg_cv_cc_flag_unknown_warning_option=yes 8476 else 8477 xorg_cv_cc_flag_unknown_warning_option=no 8478 fi 8479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8480 fi 8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8482 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8483 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8484 CFLAGS="$xorg_testset_save_CFLAGS" 8485 fi 8486 8487 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8490 fi 8491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8493 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8494 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8495 $as_echo_n "(cached) " >&6 8496 else 8497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8498 /* end confdefs.h. */ 8499 int i; 8500 _ACEOF 8501 if ac_fn_c_try_compile "$LINENO"; then : 8502 xorg_cv_cc_flag_unused_command_line_argument=yes 8503 else 8504 xorg_cv_cc_flag_unused_command_line_argument=no 8505 fi 8506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8507 fi 8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8509 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8510 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8511 CFLAGS="$xorg_testset_save_CFLAGS" 8512 fi 8513 8514 found="no" 8515 8516 if test $found = "no" ; then 8517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8518 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8519 fi 8520 8521 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8523 fi 8524 8525 CFLAGS="$CFLAGS -Wimplicit" 8526 8527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8528 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8529 cacheid=xorg_cv_cc_flag__Wimplicit 8530 if eval \${$cacheid+:} false; then : 8531 $as_echo_n "(cached) " >&6 8532 else 8533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8534 /* end confdefs.h. */ 8535 int i; 8536 int 8537 main () 8538 { 8539 8540 ; 8541 return 0; 8542 } 8543 _ACEOF 8544 if ac_fn_c_try_link "$LINENO"; then : 8545 eval $cacheid=yes 8546 else 8547 eval $cacheid=no 8548 fi 8549 rm -f core conftest.err conftest.$ac_objext \ 8550 conftest$ac_exeext conftest.$ac_ext 8551 fi 8552 8553 8554 CFLAGS="$xorg_testset_save_CFLAGS" 8555 8556 eval supported=\$$cacheid 8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8558 $as_echo "$supported" >&6; } 8559 if test "$supported" = "yes" ; then 8560 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8561 found="yes" 8562 fi 8563 fi 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 xorg_testset_save_CFLAGS="$CFLAGS" 8580 8581 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8584 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8585 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8586 $as_echo_n "(cached) " >&6 8587 else 8588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8589 /* end confdefs.h. */ 8590 int i; 8591 _ACEOF 8592 if ac_fn_c_try_compile "$LINENO"; then : 8593 xorg_cv_cc_flag_unknown_warning_option=yes 8594 else 8595 xorg_cv_cc_flag_unknown_warning_option=no 8596 fi 8597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8598 fi 8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8600 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8601 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8602 CFLAGS="$xorg_testset_save_CFLAGS" 8603 fi 8604 8605 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8607 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8608 fi 8609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8611 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8612 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8613 $as_echo_n "(cached) " >&6 8614 else 8615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8616 /* end confdefs.h. */ 8617 int i; 8618 _ACEOF 8619 if ac_fn_c_try_compile "$LINENO"; then : 8620 xorg_cv_cc_flag_unused_command_line_argument=yes 8621 else 8622 xorg_cv_cc_flag_unused_command_line_argument=no 8623 fi 8624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8625 fi 8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8627 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8628 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8629 CFLAGS="$xorg_testset_save_CFLAGS" 8630 fi 8631 8632 found="no" 8633 8634 if test $found = "no" ; then 8635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8636 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8637 fi 8638 8639 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8641 fi 8642 8643 CFLAGS="$CFLAGS -Wnonnull" 8644 8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8646 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8647 cacheid=xorg_cv_cc_flag__Wnonnull 8648 if eval \${$cacheid+:} false; then : 8649 $as_echo_n "(cached) " >&6 8650 else 8651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8652 /* end confdefs.h. */ 8653 int i; 8654 int 8655 main () 8656 { 8657 8658 ; 8659 return 0; 8660 } 8661 _ACEOF 8662 if ac_fn_c_try_link "$LINENO"; then : 8663 eval $cacheid=yes 8664 else 8665 eval $cacheid=no 8666 fi 8667 rm -f core conftest.err conftest.$ac_objext \ 8668 conftest$ac_exeext conftest.$ac_ext 8669 fi 8670 8671 8672 CFLAGS="$xorg_testset_save_CFLAGS" 8673 8674 eval supported=\$$cacheid 8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8676 $as_echo "$supported" >&6; } 8677 if test "$supported" = "yes" ; then 8678 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8679 found="yes" 8680 fi 8681 fi 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 xorg_testset_save_CFLAGS="$CFLAGS" 8698 8699 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8702 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8703 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8704 $as_echo_n "(cached) " >&6 8705 else 8706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8707 /* end confdefs.h. */ 8708 int i; 8709 _ACEOF 8710 if ac_fn_c_try_compile "$LINENO"; then : 8711 xorg_cv_cc_flag_unknown_warning_option=yes 8712 else 8713 xorg_cv_cc_flag_unknown_warning_option=no 8714 fi 8715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8716 fi 8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8718 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8719 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8720 CFLAGS="$xorg_testset_save_CFLAGS" 8721 fi 8722 8723 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8726 fi 8727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8729 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8730 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8731 $as_echo_n "(cached) " >&6 8732 else 8733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8734 /* end confdefs.h. */ 8735 int i; 8736 _ACEOF 8737 if ac_fn_c_try_compile "$LINENO"; then : 8738 xorg_cv_cc_flag_unused_command_line_argument=yes 8739 else 8740 xorg_cv_cc_flag_unused_command_line_argument=no 8741 fi 8742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8743 fi 8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8745 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8746 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8747 CFLAGS="$xorg_testset_save_CFLAGS" 8748 fi 8749 8750 found="no" 8751 8752 if test $found = "no" ; then 8753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8754 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8755 fi 8756 8757 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8759 fi 8760 8761 CFLAGS="$CFLAGS -Winit-self" 8762 8763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8764 $as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8765 cacheid=xorg_cv_cc_flag__Winit_self 8766 if eval \${$cacheid+:} false; then : 8767 $as_echo_n "(cached) " >&6 8768 else 8769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8770 /* end confdefs.h. */ 8771 int i; 8772 int 8773 main () 8774 { 8775 8776 ; 8777 return 0; 8778 } 8779 _ACEOF 8780 if ac_fn_c_try_link "$LINENO"; then : 8781 eval $cacheid=yes 8782 else 8783 eval $cacheid=no 8784 fi 8785 rm -f core conftest.err conftest.$ac_objext \ 8786 conftest$ac_exeext conftest.$ac_ext 8787 fi 8788 8789 8790 CFLAGS="$xorg_testset_save_CFLAGS" 8791 8792 eval supported=\$$cacheid 8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8794 $as_echo "$supported" >&6; } 8795 if test "$supported" = "yes" ; then 8796 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8797 found="yes" 8798 fi 8799 fi 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 xorg_testset_save_CFLAGS="$CFLAGS" 8816 8817 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8820 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8821 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8822 $as_echo_n "(cached) " >&6 8823 else 8824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8825 /* end confdefs.h. */ 8826 int i; 8827 _ACEOF 8828 if ac_fn_c_try_compile "$LINENO"; then : 8829 xorg_cv_cc_flag_unknown_warning_option=yes 8830 else 8831 xorg_cv_cc_flag_unknown_warning_option=no 8832 fi 8833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8834 fi 8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8836 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8837 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8838 CFLAGS="$xorg_testset_save_CFLAGS" 8839 fi 8840 8841 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8843 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8844 fi 8845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8847 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8848 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8849 $as_echo_n "(cached) " >&6 8850 else 8851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8852 /* end confdefs.h. */ 8853 int i; 8854 _ACEOF 8855 if ac_fn_c_try_compile "$LINENO"; then : 8856 xorg_cv_cc_flag_unused_command_line_argument=yes 8857 else 8858 xorg_cv_cc_flag_unused_command_line_argument=no 8859 fi 8860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8861 fi 8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8863 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8864 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8865 CFLAGS="$xorg_testset_save_CFLAGS" 8866 fi 8867 8868 found="no" 8869 8870 if test $found = "no" ; then 8871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8873 fi 8874 8875 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8877 fi 8878 8879 CFLAGS="$CFLAGS -Wmain" 8880 8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8882 $as_echo_n "checking if $CC supports -Wmain... " >&6; } 8883 cacheid=xorg_cv_cc_flag__Wmain 8884 if eval \${$cacheid+:} false; then : 8885 $as_echo_n "(cached) " >&6 8886 else 8887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8888 /* end confdefs.h. */ 8889 int i; 8890 int 8891 main () 8892 { 8893 8894 ; 8895 return 0; 8896 } 8897 _ACEOF 8898 if ac_fn_c_try_link "$LINENO"; then : 8899 eval $cacheid=yes 8900 else 8901 eval $cacheid=no 8902 fi 8903 rm -f core conftest.err conftest.$ac_objext \ 8904 conftest$ac_exeext conftest.$ac_ext 8905 fi 8906 8907 8908 CFLAGS="$xorg_testset_save_CFLAGS" 8909 8910 eval supported=\$$cacheid 8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8912 $as_echo "$supported" >&6; } 8913 if test "$supported" = "yes" ; then 8914 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8915 found="yes" 8916 fi 8917 fi 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 xorg_testset_save_CFLAGS="$CFLAGS" 8934 8935 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8936 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8938 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8939 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8940 $as_echo_n "(cached) " >&6 8941 else 8942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8943 /* end confdefs.h. */ 8944 int i; 8945 _ACEOF 8946 if ac_fn_c_try_compile "$LINENO"; then : 8947 xorg_cv_cc_flag_unknown_warning_option=yes 8948 else 8949 xorg_cv_cc_flag_unknown_warning_option=no 8950 fi 8951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8952 fi 8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8954 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8955 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8956 CFLAGS="$xorg_testset_save_CFLAGS" 8957 fi 8958 8959 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8961 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8962 fi 8963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8965 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8966 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8967 $as_echo_n "(cached) " >&6 8968 else 8969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8970 /* end confdefs.h. */ 8971 int i; 8972 _ACEOF 8973 if ac_fn_c_try_compile "$LINENO"; then : 8974 xorg_cv_cc_flag_unused_command_line_argument=yes 8975 else 8976 xorg_cv_cc_flag_unused_command_line_argument=no 8977 fi 8978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8979 fi 8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8981 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8982 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8983 CFLAGS="$xorg_testset_save_CFLAGS" 8984 fi 8985 8986 found="no" 8987 8988 if test $found = "no" ; then 8989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8991 fi 8992 8993 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8995 fi 8996 8997 CFLAGS="$CFLAGS -Wmissing-braces" 8998 8999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9000 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9001 cacheid=xorg_cv_cc_flag__Wmissing_braces 9002 if eval \${$cacheid+:} false; then : 9003 $as_echo_n "(cached) " >&6 9004 else 9005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9006 /* end confdefs.h. */ 9007 int i; 9008 int 9009 main () 9010 { 9011 9012 ; 9013 return 0; 9014 } 9015 _ACEOF 9016 if ac_fn_c_try_link "$LINENO"; then : 9017 eval $cacheid=yes 9018 else 9019 eval $cacheid=no 9020 fi 9021 rm -f core conftest.err conftest.$ac_objext \ 9022 conftest$ac_exeext conftest.$ac_ext 9023 fi 9024 9025 9026 CFLAGS="$xorg_testset_save_CFLAGS" 9027 9028 eval supported=\$$cacheid 9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9030 $as_echo "$supported" >&6; } 9031 if test "$supported" = "yes" ; then 9032 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9033 found="yes" 9034 fi 9035 fi 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 xorg_testset_save_CFLAGS="$CFLAGS" 9052 9053 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9054 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9056 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9057 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9058 $as_echo_n "(cached) " >&6 9059 else 9060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9061 /* end confdefs.h. */ 9062 int i; 9063 _ACEOF 9064 if ac_fn_c_try_compile "$LINENO"; then : 9065 xorg_cv_cc_flag_unknown_warning_option=yes 9066 else 9067 xorg_cv_cc_flag_unknown_warning_option=no 9068 fi 9069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9070 fi 9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9072 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9073 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9074 CFLAGS="$xorg_testset_save_CFLAGS" 9075 fi 9076 9077 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9080 fi 9081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9083 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9084 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9085 $as_echo_n "(cached) " >&6 9086 else 9087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9088 /* end confdefs.h. */ 9089 int i; 9090 _ACEOF 9091 if ac_fn_c_try_compile "$LINENO"; then : 9092 xorg_cv_cc_flag_unused_command_line_argument=yes 9093 else 9094 xorg_cv_cc_flag_unused_command_line_argument=no 9095 fi 9096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9097 fi 9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9099 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9100 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9101 CFLAGS="$xorg_testset_save_CFLAGS" 9102 fi 9103 9104 found="no" 9105 9106 if test $found = "no" ; then 9107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9108 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9109 fi 9110 9111 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9113 fi 9114 9115 CFLAGS="$CFLAGS -Wsequence-point" 9116 9117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9118 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9119 cacheid=xorg_cv_cc_flag__Wsequence_point 9120 if eval \${$cacheid+:} false; then : 9121 $as_echo_n "(cached) " >&6 9122 else 9123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9124 /* end confdefs.h. */ 9125 int i; 9126 int 9127 main () 9128 { 9129 9130 ; 9131 return 0; 9132 } 9133 _ACEOF 9134 if ac_fn_c_try_link "$LINENO"; then : 9135 eval $cacheid=yes 9136 else 9137 eval $cacheid=no 9138 fi 9139 rm -f core conftest.err conftest.$ac_objext \ 9140 conftest$ac_exeext conftest.$ac_ext 9141 fi 9142 9143 9144 CFLAGS="$xorg_testset_save_CFLAGS" 9145 9146 eval supported=\$$cacheid 9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9148 $as_echo "$supported" >&6; } 9149 if test "$supported" = "yes" ; then 9150 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9151 found="yes" 9152 fi 9153 fi 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 xorg_testset_save_CFLAGS="$CFLAGS" 9170 9171 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9172 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9174 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9175 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9176 $as_echo_n "(cached) " >&6 9177 else 9178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9179 /* end confdefs.h. */ 9180 int i; 9181 _ACEOF 9182 if ac_fn_c_try_compile "$LINENO"; then : 9183 xorg_cv_cc_flag_unknown_warning_option=yes 9184 else 9185 xorg_cv_cc_flag_unknown_warning_option=no 9186 fi 9187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9188 fi 9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9190 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9191 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9192 CFLAGS="$xorg_testset_save_CFLAGS" 9193 fi 9194 9195 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9198 fi 9199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9201 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9202 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9203 $as_echo_n "(cached) " >&6 9204 else 9205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9206 /* end confdefs.h. */ 9207 int i; 9208 _ACEOF 9209 if ac_fn_c_try_compile "$LINENO"; then : 9210 xorg_cv_cc_flag_unused_command_line_argument=yes 9211 else 9212 xorg_cv_cc_flag_unused_command_line_argument=no 9213 fi 9214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9215 fi 9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9217 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9218 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9219 CFLAGS="$xorg_testset_save_CFLAGS" 9220 fi 9221 9222 found="no" 9223 9224 if test $found = "no" ; then 9225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9226 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9227 fi 9228 9229 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9231 fi 9232 9233 CFLAGS="$CFLAGS -Wreturn-type" 9234 9235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9236 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9237 cacheid=xorg_cv_cc_flag__Wreturn_type 9238 if eval \${$cacheid+:} false; then : 9239 $as_echo_n "(cached) " >&6 9240 else 9241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9242 /* end confdefs.h. */ 9243 int i; 9244 int 9245 main () 9246 { 9247 9248 ; 9249 return 0; 9250 } 9251 _ACEOF 9252 if ac_fn_c_try_link "$LINENO"; then : 9253 eval $cacheid=yes 9254 else 9255 eval $cacheid=no 9256 fi 9257 rm -f core conftest.err conftest.$ac_objext \ 9258 conftest$ac_exeext conftest.$ac_ext 9259 fi 9260 9261 9262 CFLAGS="$xorg_testset_save_CFLAGS" 9263 9264 eval supported=\$$cacheid 9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9266 $as_echo "$supported" >&6; } 9267 if test "$supported" = "yes" ; then 9268 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9269 found="yes" 9270 fi 9271 fi 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 xorg_testset_save_CFLAGS="$CFLAGS" 9288 9289 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9290 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9292 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9293 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9294 $as_echo_n "(cached) " >&6 9295 else 9296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9297 /* end confdefs.h. */ 9298 int i; 9299 _ACEOF 9300 if ac_fn_c_try_compile "$LINENO"; then : 9301 xorg_cv_cc_flag_unknown_warning_option=yes 9302 else 9303 xorg_cv_cc_flag_unknown_warning_option=no 9304 fi 9305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9306 fi 9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9308 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9309 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9310 CFLAGS="$xorg_testset_save_CFLAGS" 9311 fi 9312 9313 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9316 fi 9317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9319 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9320 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9321 $as_echo_n "(cached) " >&6 9322 else 9323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9324 /* end confdefs.h. */ 9325 int i; 9326 _ACEOF 9327 if ac_fn_c_try_compile "$LINENO"; then : 9328 xorg_cv_cc_flag_unused_command_line_argument=yes 9329 else 9330 xorg_cv_cc_flag_unused_command_line_argument=no 9331 fi 9332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9333 fi 9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9335 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9336 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9337 CFLAGS="$xorg_testset_save_CFLAGS" 9338 fi 9339 9340 found="no" 9341 9342 if test $found = "no" ; then 9343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9344 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9345 fi 9346 9347 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9349 fi 9350 9351 CFLAGS="$CFLAGS -Wtrigraphs" 9352 9353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9354 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9355 cacheid=xorg_cv_cc_flag__Wtrigraphs 9356 if eval \${$cacheid+:} false; then : 9357 $as_echo_n "(cached) " >&6 9358 else 9359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9360 /* end confdefs.h. */ 9361 int i; 9362 int 9363 main () 9364 { 9365 9366 ; 9367 return 0; 9368 } 9369 _ACEOF 9370 if ac_fn_c_try_link "$LINENO"; then : 9371 eval $cacheid=yes 9372 else 9373 eval $cacheid=no 9374 fi 9375 rm -f core conftest.err conftest.$ac_objext \ 9376 conftest$ac_exeext conftest.$ac_ext 9377 fi 9378 9379 9380 CFLAGS="$xorg_testset_save_CFLAGS" 9381 9382 eval supported=\$$cacheid 9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9384 $as_echo "$supported" >&6; } 9385 if test "$supported" = "yes" ; then 9386 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9387 found="yes" 9388 fi 9389 fi 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 xorg_testset_save_CFLAGS="$CFLAGS" 9406 9407 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9408 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9410 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9411 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9412 $as_echo_n "(cached) " >&6 9413 else 9414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9415 /* end confdefs.h. */ 9416 int i; 9417 _ACEOF 9418 if ac_fn_c_try_compile "$LINENO"; then : 9419 xorg_cv_cc_flag_unknown_warning_option=yes 9420 else 9421 xorg_cv_cc_flag_unknown_warning_option=no 9422 fi 9423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9424 fi 9425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9426 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9427 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9428 CFLAGS="$xorg_testset_save_CFLAGS" 9429 fi 9430 9431 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9433 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9434 fi 9435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9437 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9438 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9439 $as_echo_n "(cached) " >&6 9440 else 9441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9442 /* end confdefs.h. */ 9443 int i; 9444 _ACEOF 9445 if ac_fn_c_try_compile "$LINENO"; then : 9446 xorg_cv_cc_flag_unused_command_line_argument=yes 9447 else 9448 xorg_cv_cc_flag_unused_command_line_argument=no 9449 fi 9450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9451 fi 9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9453 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9454 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9455 CFLAGS="$xorg_testset_save_CFLAGS" 9456 fi 9457 9458 found="no" 9459 9460 if test $found = "no" ; then 9461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9463 fi 9464 9465 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9467 fi 9468 9469 CFLAGS="$CFLAGS -Warray-bounds" 9470 9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9472 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9473 cacheid=xorg_cv_cc_flag__Warray_bounds 9474 if eval \${$cacheid+:} false; then : 9475 $as_echo_n "(cached) " >&6 9476 else 9477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9478 /* end confdefs.h. */ 9479 int i; 9480 int 9481 main () 9482 { 9483 9484 ; 9485 return 0; 9486 } 9487 _ACEOF 9488 if ac_fn_c_try_link "$LINENO"; then : 9489 eval $cacheid=yes 9490 else 9491 eval $cacheid=no 9492 fi 9493 rm -f core conftest.err conftest.$ac_objext \ 9494 conftest$ac_exeext conftest.$ac_ext 9495 fi 9496 9497 9498 CFLAGS="$xorg_testset_save_CFLAGS" 9499 9500 eval supported=\$$cacheid 9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9502 $as_echo "$supported" >&6; } 9503 if test "$supported" = "yes" ; then 9504 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9505 found="yes" 9506 fi 9507 fi 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 xorg_testset_save_CFLAGS="$CFLAGS" 9524 9525 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9526 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9528 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9529 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9530 $as_echo_n "(cached) " >&6 9531 else 9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9533 /* end confdefs.h. */ 9534 int i; 9535 _ACEOF 9536 if ac_fn_c_try_compile "$LINENO"; then : 9537 xorg_cv_cc_flag_unknown_warning_option=yes 9538 else 9539 xorg_cv_cc_flag_unknown_warning_option=no 9540 fi 9541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9542 fi 9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9544 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9545 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9546 CFLAGS="$xorg_testset_save_CFLAGS" 9547 fi 9548 9549 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9552 fi 9553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9555 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9556 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9557 $as_echo_n "(cached) " >&6 9558 else 9559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9560 /* end confdefs.h. */ 9561 int i; 9562 _ACEOF 9563 if ac_fn_c_try_compile "$LINENO"; then : 9564 xorg_cv_cc_flag_unused_command_line_argument=yes 9565 else 9566 xorg_cv_cc_flag_unused_command_line_argument=no 9567 fi 9568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9569 fi 9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9571 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9572 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9573 CFLAGS="$xorg_testset_save_CFLAGS" 9574 fi 9575 9576 found="no" 9577 9578 if test $found = "no" ; then 9579 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9580 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9581 fi 9582 9583 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9585 fi 9586 9587 CFLAGS="$CFLAGS -Wwrite-strings" 9588 9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9590 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9591 cacheid=xorg_cv_cc_flag__Wwrite_strings 9592 if eval \${$cacheid+:} false; then : 9593 $as_echo_n "(cached) " >&6 9594 else 9595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9596 /* end confdefs.h. */ 9597 int i; 9598 int 9599 main () 9600 { 9601 9602 ; 9603 return 0; 9604 } 9605 _ACEOF 9606 if ac_fn_c_try_link "$LINENO"; then : 9607 eval $cacheid=yes 9608 else 9609 eval $cacheid=no 9610 fi 9611 rm -f core conftest.err conftest.$ac_objext \ 9612 conftest$ac_exeext conftest.$ac_ext 9613 fi 9614 9615 9616 CFLAGS="$xorg_testset_save_CFLAGS" 9617 9618 eval supported=\$$cacheid 9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9620 $as_echo "$supported" >&6; } 9621 if test "$supported" = "yes" ; then 9622 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9623 found="yes" 9624 fi 9625 fi 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 xorg_testset_save_CFLAGS="$CFLAGS" 9642 9643 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9644 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9646 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9647 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9648 $as_echo_n "(cached) " >&6 9649 else 9650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9651 /* end confdefs.h. */ 9652 int i; 9653 _ACEOF 9654 if ac_fn_c_try_compile "$LINENO"; then : 9655 xorg_cv_cc_flag_unknown_warning_option=yes 9656 else 9657 xorg_cv_cc_flag_unknown_warning_option=no 9658 fi 9659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9660 fi 9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9662 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9663 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9664 CFLAGS="$xorg_testset_save_CFLAGS" 9665 fi 9666 9667 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9669 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9670 fi 9671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9673 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9674 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9675 $as_echo_n "(cached) " >&6 9676 else 9677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9678 /* end confdefs.h. */ 9679 int i; 9680 _ACEOF 9681 if ac_fn_c_try_compile "$LINENO"; then : 9682 xorg_cv_cc_flag_unused_command_line_argument=yes 9683 else 9684 xorg_cv_cc_flag_unused_command_line_argument=no 9685 fi 9686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9687 fi 9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9689 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9690 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9691 CFLAGS="$xorg_testset_save_CFLAGS" 9692 fi 9693 9694 found="no" 9695 9696 if test $found = "no" ; then 9697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9698 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9699 fi 9700 9701 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9703 fi 9704 9705 CFLAGS="$CFLAGS -Waddress" 9706 9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9708 $as_echo_n "checking if $CC supports -Waddress... " >&6; } 9709 cacheid=xorg_cv_cc_flag__Waddress 9710 if eval \${$cacheid+:} false; then : 9711 $as_echo_n "(cached) " >&6 9712 else 9713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9714 /* end confdefs.h. */ 9715 int i; 9716 int 9717 main () 9718 { 9719 9720 ; 9721 return 0; 9722 } 9723 _ACEOF 9724 if ac_fn_c_try_link "$LINENO"; then : 9725 eval $cacheid=yes 9726 else 9727 eval $cacheid=no 9728 fi 9729 rm -f core conftest.err conftest.$ac_objext \ 9730 conftest$ac_exeext conftest.$ac_ext 9731 fi 9732 9733 9734 CFLAGS="$xorg_testset_save_CFLAGS" 9735 9736 eval supported=\$$cacheid 9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9738 $as_echo "$supported" >&6; } 9739 if test "$supported" = "yes" ; then 9740 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9741 found="yes" 9742 fi 9743 fi 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 xorg_testset_save_CFLAGS="$CFLAGS" 9760 9761 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9764 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9765 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9766 $as_echo_n "(cached) " >&6 9767 else 9768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9769 /* end confdefs.h. */ 9770 int i; 9771 _ACEOF 9772 if ac_fn_c_try_compile "$LINENO"; then : 9773 xorg_cv_cc_flag_unknown_warning_option=yes 9774 else 9775 xorg_cv_cc_flag_unknown_warning_option=no 9776 fi 9777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9778 fi 9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9780 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9781 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9782 CFLAGS="$xorg_testset_save_CFLAGS" 9783 fi 9784 9785 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9788 fi 9789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9791 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9792 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9793 $as_echo_n "(cached) " >&6 9794 else 9795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9796 /* end confdefs.h. */ 9797 int i; 9798 _ACEOF 9799 if ac_fn_c_try_compile "$LINENO"; then : 9800 xorg_cv_cc_flag_unused_command_line_argument=yes 9801 else 9802 xorg_cv_cc_flag_unused_command_line_argument=no 9803 fi 9804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9805 fi 9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9807 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9808 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9809 CFLAGS="$xorg_testset_save_CFLAGS" 9810 fi 9811 9812 found="no" 9813 9814 if test $found = "no" ; then 9815 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9816 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9817 fi 9818 9819 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9821 fi 9822 9823 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9824 9825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9826 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9827 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9828 if eval \${$cacheid+:} false; then : 9829 $as_echo_n "(cached) " >&6 9830 else 9831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9832 /* end confdefs.h. */ 9833 int i; 9834 int 9835 main () 9836 { 9837 9838 ; 9839 return 0; 9840 } 9841 _ACEOF 9842 if ac_fn_c_try_link "$LINENO"; then : 9843 eval $cacheid=yes 9844 else 9845 eval $cacheid=no 9846 fi 9847 rm -f core conftest.err conftest.$ac_objext \ 9848 conftest$ac_exeext conftest.$ac_ext 9849 fi 9850 9851 9852 CFLAGS="$xorg_testset_save_CFLAGS" 9853 9854 eval supported=\$$cacheid 9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9856 $as_echo "$supported" >&6; } 9857 if test "$supported" = "yes" ; then 9858 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9859 found="yes" 9860 fi 9861 fi 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 xorg_testset_save_CFLAGS="$CFLAGS" 9878 9879 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9882 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9883 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9884 $as_echo_n "(cached) " >&6 9885 else 9886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9887 /* end confdefs.h. */ 9888 int i; 9889 _ACEOF 9890 if ac_fn_c_try_compile "$LINENO"; then : 9891 xorg_cv_cc_flag_unknown_warning_option=yes 9892 else 9893 xorg_cv_cc_flag_unknown_warning_option=no 9894 fi 9895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9896 fi 9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9898 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9899 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9900 CFLAGS="$xorg_testset_save_CFLAGS" 9901 fi 9902 9903 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9904 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9905 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9906 fi 9907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9909 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9910 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9911 $as_echo_n "(cached) " >&6 9912 else 9913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9914 /* end confdefs.h. */ 9915 int i; 9916 _ACEOF 9917 if ac_fn_c_try_compile "$LINENO"; then : 9918 xorg_cv_cc_flag_unused_command_line_argument=yes 9919 else 9920 xorg_cv_cc_flag_unused_command_line_argument=no 9921 fi 9922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9923 fi 9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9925 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9926 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9927 CFLAGS="$xorg_testset_save_CFLAGS" 9928 fi 9929 9930 found="no" 9931 9932 if test $found = "no" ; then 9933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9935 fi 9936 9937 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9939 fi 9940 9941 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9942 9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 9944 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 9945 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 9946 if eval \${$cacheid+:} false; then : 9947 $as_echo_n "(cached) " >&6 9948 else 9949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9950 /* end confdefs.h. */ 9951 int i; 9952 int 9953 main () 9954 { 9955 9956 ; 9957 return 0; 9958 } 9959 _ACEOF 9960 if ac_fn_c_try_link "$LINENO"; then : 9961 eval $cacheid=yes 9962 else 9963 eval $cacheid=no 9964 fi 9965 rm -f core conftest.err conftest.$ac_objext \ 9966 conftest$ac_exeext conftest.$ac_ext 9967 fi 9968 9969 9970 CFLAGS="$xorg_testset_save_CFLAGS" 9971 9972 eval supported=\$$cacheid 9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9974 $as_echo "$supported" >&6; } 9975 if test "$supported" = "yes" ; then 9976 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 9977 found="yes" 9978 fi 9979 fi 9980 9981 9982 fi 9983 9984 9985 9986 9987 9988 9989 9990 CWARNFLAGS="$BASE_CFLAGS" 9991 if test "x$GCC" = xyes ; then 9992 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 9993 fi 9994 9995 9996 9997 9998 9999 10000 10001 10002 # Check whether --enable-strict-compilation was given. 10003 if test "${enable_strict_compilation+set}" = set; then : 10004 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10005 else 10006 STRICT_COMPILE=no 10007 fi 10008 10009 10010 10011 10012 10013 10014 STRICT_CFLAGS="" 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 xorg_testset_save_CFLAGS="$CFLAGS" 10029 10030 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10031 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10033 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10034 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10035 $as_echo_n "(cached) " >&6 10036 else 10037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10038 /* end confdefs.h. */ 10039 int i; 10040 _ACEOF 10041 if ac_fn_c_try_compile "$LINENO"; then : 10042 xorg_cv_cc_flag_unknown_warning_option=yes 10043 else 10044 xorg_cv_cc_flag_unknown_warning_option=no 10045 fi 10046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10047 fi 10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10049 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10050 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10051 CFLAGS="$xorg_testset_save_CFLAGS" 10052 fi 10053 10054 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10057 fi 10058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10060 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10061 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10062 $as_echo_n "(cached) " >&6 10063 else 10064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10065 /* end confdefs.h. */ 10066 int i; 10067 _ACEOF 10068 if ac_fn_c_try_compile "$LINENO"; then : 10069 xorg_cv_cc_flag_unused_command_line_argument=yes 10070 else 10071 xorg_cv_cc_flag_unused_command_line_argument=no 10072 fi 10073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10074 fi 10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10076 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10077 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10078 CFLAGS="$xorg_testset_save_CFLAGS" 10079 fi 10080 10081 found="no" 10082 10083 if test $found = "no" ; then 10084 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10086 fi 10087 10088 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10090 fi 10091 10092 CFLAGS="$CFLAGS -pedantic" 10093 10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10095 $as_echo_n "checking if $CC supports -pedantic... " >&6; } 10096 cacheid=xorg_cv_cc_flag__pedantic 10097 if eval \${$cacheid+:} false; then : 10098 $as_echo_n "(cached) " >&6 10099 else 10100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10101 /* end confdefs.h. */ 10102 int i; 10103 int 10104 main () 10105 { 10106 10107 ; 10108 return 0; 10109 } 10110 _ACEOF 10111 if ac_fn_c_try_link "$LINENO"; then : 10112 eval $cacheid=yes 10113 else 10114 eval $cacheid=no 10115 fi 10116 rm -f core conftest.err conftest.$ac_objext \ 10117 conftest$ac_exeext conftest.$ac_ext 10118 fi 10119 10120 10121 CFLAGS="$xorg_testset_save_CFLAGS" 10122 10123 eval supported=\$$cacheid 10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10125 $as_echo "$supported" >&6; } 10126 if test "$supported" = "yes" ; then 10127 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10128 found="yes" 10129 fi 10130 fi 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 xorg_testset_save_CFLAGS="$CFLAGS" 10147 10148 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10149 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10151 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10152 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10153 $as_echo_n "(cached) " >&6 10154 else 10155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10156 /* end confdefs.h. */ 10157 int i; 10158 _ACEOF 10159 if ac_fn_c_try_compile "$LINENO"; then : 10160 xorg_cv_cc_flag_unknown_warning_option=yes 10161 else 10162 xorg_cv_cc_flag_unknown_warning_option=no 10163 fi 10164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10165 fi 10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10167 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10168 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10169 CFLAGS="$xorg_testset_save_CFLAGS" 10170 fi 10171 10172 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10175 fi 10176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10178 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10179 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10180 $as_echo_n "(cached) " >&6 10181 else 10182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10183 /* end confdefs.h. */ 10184 int i; 10185 _ACEOF 10186 if ac_fn_c_try_compile "$LINENO"; then : 10187 xorg_cv_cc_flag_unused_command_line_argument=yes 10188 else 10189 xorg_cv_cc_flag_unused_command_line_argument=no 10190 fi 10191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10192 fi 10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10194 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10195 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10196 CFLAGS="$xorg_testset_save_CFLAGS" 10197 fi 10198 10199 found="no" 10200 10201 if test $found = "no" ; then 10202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10204 fi 10205 10206 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10208 fi 10209 10210 CFLAGS="$CFLAGS -Werror" 10211 10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10213 $as_echo_n "checking if $CC supports -Werror... " >&6; } 10214 cacheid=xorg_cv_cc_flag__Werror 10215 if eval \${$cacheid+:} false; then : 10216 $as_echo_n "(cached) " >&6 10217 else 10218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10219 /* end confdefs.h. */ 10220 int i; 10221 int 10222 main () 10223 { 10224 10225 ; 10226 return 0; 10227 } 10228 _ACEOF 10229 if ac_fn_c_try_link "$LINENO"; then : 10230 eval $cacheid=yes 10231 else 10232 eval $cacheid=no 10233 fi 10234 rm -f core conftest.err conftest.$ac_objext \ 10235 conftest$ac_exeext conftest.$ac_ext 10236 fi 10237 10238 10239 CFLAGS="$xorg_testset_save_CFLAGS" 10240 10241 eval supported=\$$cacheid 10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10243 $as_echo "$supported" >&6; } 10244 if test "$supported" = "yes" ; then 10245 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10246 found="yes" 10247 fi 10248 fi 10249 10250 if test $found = "no" ; then 10251 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10253 fi 10254 10255 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10257 fi 10258 10259 CFLAGS="$CFLAGS -errwarn" 10260 10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10262 $as_echo_n "checking if $CC supports -errwarn... " >&6; } 10263 cacheid=xorg_cv_cc_flag__errwarn 10264 if eval \${$cacheid+:} false; then : 10265 $as_echo_n "(cached) " >&6 10266 else 10267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10268 /* end confdefs.h. */ 10269 int i; 10270 int 10271 main () 10272 { 10273 10274 ; 10275 return 0; 10276 } 10277 _ACEOF 10278 if ac_fn_c_try_link "$LINENO"; then : 10279 eval $cacheid=yes 10280 else 10281 eval $cacheid=no 10282 fi 10283 rm -f core conftest.err conftest.$ac_objext \ 10284 conftest$ac_exeext conftest.$ac_ext 10285 fi 10286 10287 10288 CFLAGS="$xorg_testset_save_CFLAGS" 10289 10290 eval supported=\$$cacheid 10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10292 $as_echo "$supported" >&6; } 10293 if test "$supported" = "yes" ; then 10294 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10295 found="yes" 10296 fi 10297 fi 10298 10299 10300 10301 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10302 # activate it with -Werror, so we add it here explicitly. 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 xorg_testset_save_CFLAGS="$CFLAGS" 10317 10318 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10321 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10322 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10323 $as_echo_n "(cached) " >&6 10324 else 10325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10326 /* end confdefs.h. */ 10327 int i; 10328 _ACEOF 10329 if ac_fn_c_try_compile "$LINENO"; then : 10330 xorg_cv_cc_flag_unknown_warning_option=yes 10331 else 10332 xorg_cv_cc_flag_unknown_warning_option=no 10333 fi 10334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10335 fi 10336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10337 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10338 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10339 CFLAGS="$xorg_testset_save_CFLAGS" 10340 fi 10341 10342 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10344 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10345 fi 10346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10348 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10349 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10350 $as_echo_n "(cached) " >&6 10351 else 10352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10353 /* end confdefs.h. */ 10354 int i; 10355 _ACEOF 10356 if ac_fn_c_try_compile "$LINENO"; then : 10357 xorg_cv_cc_flag_unused_command_line_argument=yes 10358 else 10359 xorg_cv_cc_flag_unused_command_line_argument=no 10360 fi 10361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10362 fi 10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10364 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10365 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10366 CFLAGS="$xorg_testset_save_CFLAGS" 10367 fi 10368 10369 found="no" 10370 10371 if test $found = "no" ; then 10372 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10373 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10374 fi 10375 10376 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10378 fi 10379 10380 CFLAGS="$CFLAGS -Werror=attributes" 10381 10382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10383 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10384 cacheid=xorg_cv_cc_flag__Werror_attributes 10385 if eval \${$cacheid+:} false; then : 10386 $as_echo_n "(cached) " >&6 10387 else 10388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10389 /* end confdefs.h. */ 10390 int i; 10391 int 10392 main () 10393 { 10394 10395 ; 10396 return 0; 10397 } 10398 _ACEOF 10399 if ac_fn_c_try_link "$LINENO"; then : 10400 eval $cacheid=yes 10401 else 10402 eval $cacheid=no 10403 fi 10404 rm -f core conftest.err conftest.$ac_objext \ 10405 conftest$ac_exeext conftest.$ac_ext 10406 fi 10407 10408 10409 CFLAGS="$xorg_testset_save_CFLAGS" 10410 10411 eval supported=\$$cacheid 10412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10413 $as_echo "$supported" >&6; } 10414 if test "$supported" = "yes" ; then 10415 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10416 found="yes" 10417 fi 10418 fi 10419 10420 10421 10422 if test "x$STRICT_COMPILE" = "xyes"; then 10423 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10424 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10425 fi 10426 10427 10428 10429 10430 10431 10432 cat >>confdefs.h <<_ACEOF 10433 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10434 _ACEOF 10435 10436 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10437 if test "x$PVM" = "x"; then 10438 PVM="0" 10439 fi 10440 10441 cat >>confdefs.h <<_ACEOF 10442 #define PACKAGE_VERSION_MINOR $PVM 10443 _ACEOF 10444 10445 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10446 if test "x$PVP" = "x"; then 10447 PVP="0" 10448 fi 10449 10450 cat >>confdefs.h <<_ACEOF 10451 #define PACKAGE_VERSION_PATCHLEVEL $PVP 10452 _ACEOF 10453 10454 10455 10456 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 10457 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10458 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 10459 touch \$(top_srcdir)/ChangeLog; \ 10460 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 10461 10462 10463 10464 10465 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10466 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10467 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10468 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 10469 touch \$(top_srcdir)/INSTALL; \ 10470 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 10471 10472 10473 10474 10475 10476 10477 case $host_os in 10478 solaris*) 10479 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 10480 # check for a man page file found in later versions that use 10481 # traditional section numbers instead 10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 10483 $as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; } 10484 if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then : 10485 $as_echo_n "(cached) " >&6 10486 else 10487 test "$cross_compiling" = yes && 10488 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 10489 if test -r "/usr/share/man/man7/attributes.7"; then 10490 ac_cv_file__usr_share_man_man7_attributes_7=yes 10491 else 10492 ac_cv_file__usr_share_man_man7_attributes_7=no 10493 fi 10494 fi 10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 10496 $as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 10497 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then : 10498 SYSV_MAN_SECTIONS=false 10499 else 10500 SYSV_MAN_SECTIONS=true 10501 fi 10502 10503 ;; 10504 *) SYSV_MAN_SECTIONS=false ;; 10505 esac 10506 10507 if test x$APP_MAN_SUFFIX = x ; then 10508 APP_MAN_SUFFIX=1 10509 fi 10510 if test x$APP_MAN_DIR = x ; then 10511 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10512 fi 10513 10514 if test x$LIB_MAN_SUFFIX = x ; then 10515 LIB_MAN_SUFFIX=3 10516 fi 10517 if test x$LIB_MAN_DIR = x ; then 10518 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10519 fi 10520 10521 if test x$FILE_MAN_SUFFIX = x ; then 10522 case $SYSV_MAN_SECTIONS in 10523 true) FILE_MAN_SUFFIX=4 ;; 10524 *) FILE_MAN_SUFFIX=5 ;; 10525 esac 10526 fi 10527 if test x$FILE_MAN_DIR = x ; then 10528 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10529 fi 10530 10531 if test x$MISC_MAN_SUFFIX = x ; then 10532 case $SYSV_MAN_SECTIONS in 10533 true) MISC_MAN_SUFFIX=5 ;; 10534 *) MISC_MAN_SUFFIX=7 ;; 10535 esac 10536 fi 10537 if test x$MISC_MAN_DIR = x ; then 10538 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10539 fi 10540 10541 if test x$DRIVER_MAN_SUFFIX = x ; then 10542 case $SYSV_MAN_SECTIONS in 10543 true) DRIVER_MAN_SUFFIX=7 ;; 10544 *) DRIVER_MAN_SUFFIX=4 ;; 10545 esac 10546 fi 10547 if test x$DRIVER_MAN_DIR = x ; then 10548 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10549 fi 10550 10551 if test x$ADMIN_MAN_SUFFIX = x ; then 10552 case $SYSV_MAN_SECTIONS in 10553 true) ADMIN_MAN_SUFFIX=1m ;; 10554 *) ADMIN_MAN_SUFFIX=8 ;; 10555 esac 10556 fi 10557 if test x$ADMIN_MAN_DIR = x ; then 10558 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10559 fi 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 XORG_MAN_PAGE="X Version 11" 10576 10577 MAN_SUBSTS="\ 10578 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10579 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10580 -e 's|__xservername__|Xorg|g' \ 10581 -e 's|__xconfigfile__|xorg.conf|g' \ 10582 -e 's|__projectroot__|\$(prefix)|g' \ 10583 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10584 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10585 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10586 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10587 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10588 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10589 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10590 10591 10592 10593 # Check whether --enable-silent-rules was given. 10594 if test "${enable_silent_rules+set}" = set; then : 10595 enableval=$enable_silent_rules; 10596 fi 10597 10598 case $enable_silent_rules in # ((( 10599 yes) AM_DEFAULT_VERBOSITY=0;; 10600 no) AM_DEFAULT_VERBOSITY=1;; 10601 *) AM_DEFAULT_VERBOSITY=0;; 10602 esac 10603 am_make=${MAKE-make} 10604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10605 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10606 if ${am_cv_make_support_nested_variables+:} false; then : 10607 $as_echo_n "(cached) " >&6 10608 else 10609 if $as_echo 'TRUE=$(BAR$(V)) 10610 BAR0=false 10611 BAR1=true 10612 V=1 10613 am__doit: 10614 @$(TRUE) 10615 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10616 am_cv_make_support_nested_variables=yes 10617 else 10618 am_cv_make_support_nested_variables=no 10619 fi 10620 fi 10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10622 $as_echo "$am_cv_make_support_nested_variables" >&6; } 10623 if test $am_cv_make_support_nested_variables = yes; then 10624 AM_V='$(V)' 10625 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10626 else 10627 AM_V=$AM_DEFAULT_VERBOSITY 10628 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10629 fi 10630 AM_BACKSLASH='\' 10631 10632 10633 10634 # Checks for pkg-config packages 10635 10636 pkg_failed=no 10637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x11 xtrap xt" >&5 10638 $as_echo_n "checking for x11 xtrap xt... " >&6; } 10639 10640 if test -n "$XTRAP_APP_CFLAGS"; then 10641 pkg_cv_XTRAP_APP_CFLAGS="$XTRAP_APP_CFLAGS" 10642 elif test -n "$PKG_CONFIG"; then 10643 if test -n "$PKG_CONFIG" && \ 10644 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xtrap xt\""; } >&5 10645 ($PKG_CONFIG --exists --print-errors "x11 xtrap xt") 2>&5 10646 ac_status=$? 10647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10648 test $ac_status = 0; }; then 10649 pkg_cv_XTRAP_APP_CFLAGS=`$PKG_CONFIG --cflags "x11 xtrap xt" 2>/dev/null` 10650 test "x$?" != "x0" && pkg_failed=yes 10651 else 10652 pkg_failed=yes 10653 fi 10654 else 10655 pkg_failed=untried 10656 fi 10657 if test -n "$XTRAP_APP_LIBS"; then 10658 pkg_cv_XTRAP_APP_LIBS="$XTRAP_APP_LIBS" 10659 elif test -n "$PKG_CONFIG"; then 10660 if test -n "$PKG_CONFIG" && \ 10661 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xtrap xt\""; } >&5 10662 ($PKG_CONFIG --exists --print-errors "x11 xtrap xt") 2>&5 10663 ac_status=$? 10664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10665 test $ac_status = 0; }; then 10666 pkg_cv_XTRAP_APP_LIBS=`$PKG_CONFIG --libs "x11 xtrap xt" 2>/dev/null` 10667 test "x$?" != "x0" && pkg_failed=yes 10668 else 10669 pkg_failed=yes 10670 fi 10671 else 10672 pkg_failed=untried 10673 fi 10674 10675 10676 10677 if test $pkg_failed = yes; then 10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10679 $as_echo "no" >&6; } 10680 10681 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10682 _pkg_short_errors_supported=yes 10683 else 10684 _pkg_short_errors_supported=no 10685 fi 10686 if test $_pkg_short_errors_supported = yes; then 10687 XTRAP_APP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xtrap xt" 2>&1` 10688 else 10689 XTRAP_APP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xtrap xt" 2>&1` 10690 fi 10691 # Put the nasty error message in config.log where it belongs 10692 echo "$XTRAP_APP_PKG_ERRORS" >&5 10693 10694 as_fn_error $? "Package requirements (x11 xtrap xt) were not met: 10695 10696 $XTRAP_APP_PKG_ERRORS 10697 10698 Consider adjusting the PKG_CONFIG_PATH environment variable if you 10699 installed software in a non-standard prefix. 10700 10701 Alternatively, you may set the environment variables XTRAP_APP_CFLAGS 10702 and XTRAP_APP_LIBS to avoid the need to call pkg-config. 10703 See the pkg-config man page for more details." "$LINENO" 5 10704 elif test $pkg_failed = untried; then 10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10706 $as_echo "no" >&6; } 10707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10709 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10710 is in your PATH or set the PKG_CONFIG environment variable to the full 10711 path to pkg-config. 10712 10713 Alternatively, you may set the environment variables XTRAP_APP_CFLAGS 10714 and XTRAP_APP_LIBS to avoid the need to call pkg-config. 10715 See the pkg-config man page for more details. 10716 10717 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10718 See \`config.log' for more details" "$LINENO" 5; } 10719 else 10720 XTRAP_APP_CFLAGS=$pkg_cv_XTRAP_APP_CFLAGS 10721 XTRAP_APP_LIBS=$pkg_cv_XTRAP_APP_LIBS 10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10723 $as_echo "yes" >&6; } 10724 10725 fi 10726 10727 ac_config_files="$ac_config_files Makefile" 10728 10729 cat >confcache <<\_ACEOF 10730 # This file is a shell script that caches the results of configure 10731 # tests run on this system so they can be shared between configure 10732 # scripts and configure runs, see configure's option --config-cache. 10733 # It is not useful on other systems. If it contains results you don't 10734 # want to keep, you may remove or edit it. 10735 # 10736 # config.status only pays attention to the cache file if you give it 10737 # the --recheck option to rerun configure. 10738 # 10739 # `ac_cv_env_foo' variables (set or unset) will be overridden when 10740 # loading this file, other *unset* `ac_cv_foo' will be assigned the 10741 # following values. 10742 10743 _ACEOF 10744 10745 # The following way of writing the cache mishandles newlines in values, 10746 # but we know of no workaround that is simple, portable, and efficient. 10747 # So, we kill variables containing newlines. 10748 # Ultrix sh set writes to stderr and can't be redirected directly, 10749 # and sets the high bit in the cache file unless we assign to the vars. 10750 ( 10751 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10752 eval ac_val=\$$ac_var 10753 case $ac_val in #( 10754 *${as_nl}*) 10755 case $ac_var in #( 10756 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10757 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10758 esac 10759 case $ac_var in #( 10760 _ | IFS | as_nl) ;; #( 10761 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10762 *) { eval $ac_var=; unset $ac_var;} ;; 10763 esac ;; 10764 esac 10765 done 10766 10767 (set) 2>&1 | 10768 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10769 *${as_nl}ac_space=\ *) 10770 # `set' does not quote correctly, so add quotes: double-quote 10771 # substitution turns \\\\ into \\, and sed turns \\ into \. 10772 sed -n \ 10773 "s/'/'\\\\''/g; 10774 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10775 ;; #( 10776 *) 10777 # `set' quotes correctly as required by POSIX, so do not add quotes. 10778 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10779 ;; 10780 esac | 10781 sort 10782 ) | 10783 sed ' 10784 /^ac_cv_env_/b end 10785 t clear 10786 :clear 10787 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10788 t end 10789 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10790 :end' >>confcache 10791 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10792 if test -w "$cache_file"; then 10793 if test "x$cache_file" != "x/dev/null"; then 10794 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10795 $as_echo "$as_me: updating cache $cache_file" >&6;} 10796 if test ! -f "$cache_file" || test -h "$cache_file"; then 10797 cat confcache >"$cache_file" 10798 else 10799 case $cache_file in #( 10800 */* | ?:*) 10801 mv -f confcache "$cache_file"$$ && 10802 mv -f "$cache_file"$$ "$cache_file" ;; #( 10803 *) 10804 mv -f confcache "$cache_file" ;; 10805 esac 10806 fi 10807 fi 10808 else 10809 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10810 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10811 fi 10812 fi 10813 rm -f confcache 10814 10815 test "x$prefix" = xNONE && prefix=$ac_default_prefix 10816 # Let make expand exec_prefix. 10817 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10818 10819 DEFS=-DHAVE_CONFIG_H 10820 10821 ac_libobjs= 10822 ac_ltlibobjs= 10823 U= 10824 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10825 # 1. Remove the extension, and $U if already installed. 10826 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10827 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 10828 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10829 # will be set to the directory where LIBOBJS objects are built. 10830 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10831 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 10832 done 10833 LIBOBJS=$ac_libobjs 10834 10835 LTLIBOBJS=$ac_ltlibobjs 10836 10837 10838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 10839 $as_echo_n "checking that generated files are newer than configure... " >&6; } 10840 if test -n "$am_sleep_pid"; then 10841 # Hide warnings about reused PIDs. 10842 wait $am_sleep_pid 2>/dev/null 10843 fi 10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 10845 $as_echo "done" >&6; } 10846 if test -n "$EXEEXT"; then 10847 am__EXEEXT_TRUE= 10848 am__EXEEXT_FALSE='#' 10849 else 10850 am__EXEEXT_TRUE='#' 10851 am__EXEEXT_FALSE= 10852 fi 10853 10854 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 10855 as_fn_error $? "conditional \"AMDEP\" was never defined. 10856 Usually this means the macro was only invoked conditionally." "$LINENO" 5 10857 fi 10858 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 10859 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 10860 Usually this means the macro was only invoked conditionally." "$LINENO" 5 10861 fi 10862 10863 : "${CONFIG_STATUS=./config.status}" 10864 ac_write_fail=0 10865 ac_clean_files_save=$ac_clean_files 10866 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10867 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 10868 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 10869 as_write_fail=0 10870 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 10871 #! $SHELL 10872 # Generated by $as_me. 10873 # Run this file to recreate the current configuration. 10874 # Compiler output produced by configure, useful for debugging 10875 # configure, is in config.log if it exists. 10876 10877 debug=false 10878 ac_cs_recheck=false 10879 ac_cs_silent=false 10880 10881 SHELL=\${CONFIG_SHELL-$SHELL} 10882 export SHELL 10883 _ASEOF 10884 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 10885 ## -------------------- ## 10886 ## M4sh Initialization. ## 10887 ## -------------------- ## 10888 10889 # Be more Bourne compatible 10890 DUALCASE=1; export DUALCASE # for MKS sh 10891 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 10892 emulate sh 10893 NULLCMD=: 10894 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 10895 # is contrary to our usage. Disable this feature. 10896 alias -g '${1+"$@"}'='"$@"' 10897 setopt NO_GLOB_SUBST 10898 else 10899 case `(set -o) 2>/dev/null` in #( 10900 *posix*) : 10901 set -o posix ;; #( 10902 *) : 10903 ;; 10904 esac 10905 fi 10906 10907 10908 as_nl=' 10909 ' 10910 export as_nl 10911 # Printing a long string crashes Solaris 7 /usr/bin/printf. 10912 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10913 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 10914 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 10915 # Prefer a ksh shell builtin over an external printf program on Solaris, 10916 # but without wasting forks for bash or zsh. 10917 if test -z "$BASH_VERSION$ZSH_VERSION" \ 10918 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 10919 as_echo='print -r --' 10920 as_echo_n='print -rn --' 10921 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 10922 as_echo='printf %s\n' 10923 as_echo_n='printf %s' 10924 else 10925 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 10926 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 10927 as_echo_n='/usr/ucb/echo -n' 10928 else 10929 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 10930 as_echo_n_body='eval 10931 arg=$1; 10932 case $arg in #( 10933 *"$as_nl"*) 10934 expr "X$arg" : "X\\(.*\\)$as_nl"; 10935 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 10936 esac; 10937 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 10938 ' 10939 export as_echo_n_body 10940 as_echo_n='sh -c $as_echo_n_body as_echo' 10941 fi 10942 export as_echo_body 10943 as_echo='sh -c $as_echo_body as_echo' 10944 fi 10945 10946 # The user is always right. 10947 if test "${PATH_SEPARATOR+set}" != set; then 10948 PATH_SEPARATOR=: 10949 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 10950 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 10951 PATH_SEPARATOR=';' 10952 } 10953 fi 10954 10955 10956 # IFS 10957 # We need space, tab and new line, in precisely that order. Quoting is 10958 # there to prevent editors from complaining about space-tab. 10959 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 10960 # splitting by setting IFS to empty value.) 10961 IFS=" "" $as_nl" 10962 10963 # Find who we are. Look in the path if we contain no directory separator. 10964 as_myself= 10965 case $0 in #(( 10966 *[\\/]* ) as_myself=$0 ;; 10967 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10968 for as_dir in $PATH 10969 do 10970 IFS=$as_save_IFS 10971 test -z "$as_dir" && as_dir=. 10972 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10973 done 10974 IFS=$as_save_IFS 10975 10976 ;; 10977 esac 10978 # We did not find ourselves, most probably we were run as `sh COMMAND' 10979 # in which case we are not to be found in the path. 10980 if test "x$as_myself" = x; then 10981 as_myself=$0 10982 fi 10983 if test ! -f "$as_myself"; then 10984 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10985 exit 1 10986 fi 10987 10988 # Unset variables that we do not need and which cause bugs (e.g. in 10989 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 10990 # suppresses any "Segmentation fault" message there. '((' could 10991 # trigger a bug in pdksh 5.2.14. 10992 for as_var in BASH_ENV ENV MAIL MAILPATH 10993 do eval test x\${$as_var+set} = xset \ 10994 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 10995 done 10996 PS1='$ ' 10997 PS2='> ' 10998 PS4='+ ' 10999 11000 # NLS nuisances. 11001 LC_ALL=C 11002 export LC_ALL 11003 LANGUAGE=C 11004 export LANGUAGE 11005 11006 # CDPATH. 11007 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11008 11009 11010 # as_fn_error STATUS ERROR [LINENO LOG_FD] 11011 # ---------------------------------------- 11012 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11013 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11014 # script with STATUS, using 1 if that was 0. 11015 as_fn_error () 11016 { 11017 as_status=$1; test $as_status -eq 0 && as_status=1 11018 if test "$4"; then 11019 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11020 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11021 fi 11022 $as_echo "$as_me: error: $2" >&2 11023 as_fn_exit $as_status 11024 } # as_fn_error 11025 11026 11027 # as_fn_set_status STATUS 11028 # ----------------------- 11029 # Set $? to STATUS, without forking. 11030 as_fn_set_status () 11031 { 11032 return $1 11033 } # as_fn_set_status 11034 11035 # as_fn_exit STATUS 11036 # ----------------- 11037 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11038 as_fn_exit () 11039 { 11040 set +e 11041 as_fn_set_status $1 11042 exit $1 11043 } # as_fn_exit 11044 11045 # as_fn_unset VAR 11046 # --------------- 11047 # Portably unset VAR. 11048 as_fn_unset () 11049 { 11050 { eval $1=; unset $1;} 11051 } 11052 as_unset=as_fn_unset 11053 # as_fn_append VAR VALUE 11054 # ---------------------- 11055 # Append the text in VALUE to the end of the definition contained in VAR. Take 11056 # advantage of any shell optimizations that allow amortized linear growth over 11057 # repeated appends, instead of the typical quadratic growth present in naive 11058 # implementations. 11059 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11060 eval 'as_fn_append () 11061 { 11062 eval $1+=\$2 11063 }' 11064 else 11065 as_fn_append () 11066 { 11067 eval $1=\$$1\$2 11068 } 11069 fi # as_fn_append 11070 11071 # as_fn_arith ARG... 11072 # ------------------ 11073 # Perform arithmetic evaluation on the ARGs, and store the result in the 11074 # global $as_val. Take advantage of shells that can avoid forks. The arguments 11075 # must be portable across $(()) and expr. 11076 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11077 eval 'as_fn_arith () 11078 { 11079 as_val=$(( $* )) 11080 }' 11081 else 11082 as_fn_arith () 11083 { 11084 as_val=`expr "$@" || test $? -eq 1` 11085 } 11086 fi # as_fn_arith 11087 11088 11089 if expr a : '\(a\)' >/dev/null 2>&1 && 11090 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11091 as_expr=expr 11092 else 11093 as_expr=false 11094 fi 11095 11096 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11097 as_basename=basename 11098 else 11099 as_basename=false 11100 fi 11101 11102 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11103 as_dirname=dirname 11104 else 11105 as_dirname=false 11106 fi 11107 11108 as_me=`$as_basename -- "$0" || 11109 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11110 X"$0" : 'X\(//\)$' \| \ 11111 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11112 $as_echo X/"$0" | 11113 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11114 s//\1/ 11115 q 11116 } 11117 /^X\/\(\/\/\)$/{ 11118 s//\1/ 11119 q 11120 } 11121 /^X\/\(\/\).*/{ 11122 s//\1/ 11123 q 11124 } 11125 s/.*/./; q'` 11126 11127 # Avoid depending upon Character Ranges. 11128 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11129 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11130 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11131 as_cr_digits='0123456789' 11132 as_cr_alnum=$as_cr_Letters$as_cr_digits 11133 11134 ECHO_C= ECHO_N= ECHO_T= 11135 case `echo -n x` in #((((( 11136 -n*) 11137 case `echo 'xy\c'` in 11138 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11139 xy) ECHO_C='\c';; 11140 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11141 ECHO_T=' ';; 11142 esac;; 11143 *) 11144 ECHO_N='-n';; 11145 esac 11146 11147 rm -f conf$$ conf$$.exe conf$$.file 11148 if test -d conf$$.dir; then 11149 rm -f conf$$.dir/conf$$.file 11150 else 11151 rm -f conf$$.dir 11152 mkdir conf$$.dir 2>/dev/null 11153 fi 11154 if (echo >conf$$.file) 2>/dev/null; then 11155 if ln -s conf$$.file conf$$ 2>/dev/null; then 11156 as_ln_s='ln -s' 11157 # ... but there are two gotchas: 11158 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11159 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11160 # In both cases, we have to default to `cp -pR'. 11161 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11162 as_ln_s='cp -pR' 11163 elif ln conf$$.file conf$$ 2>/dev/null; then 11164 as_ln_s=ln 11165 else 11166 as_ln_s='cp -pR' 11167 fi 11168 else 11169 as_ln_s='cp -pR' 11170 fi 11171 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11172 rmdir conf$$.dir 2>/dev/null 11173 11174 11175 # as_fn_mkdir_p 11176 # ------------- 11177 # Create "$as_dir" as a directory, including parents if necessary. 11178 as_fn_mkdir_p () 11179 { 11180 11181 case $as_dir in #( 11182 -*) as_dir=./$as_dir;; 11183 esac 11184 test -d "$as_dir" || eval $as_mkdir_p || { 11185 as_dirs= 11186 while :; do 11187 case $as_dir in #( 11188 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11189 *) as_qdir=$as_dir;; 11190 esac 11191 as_dirs="'$as_qdir' $as_dirs" 11192 as_dir=`$as_dirname -- "$as_dir" || 11193 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11194 X"$as_dir" : 'X\(//\)[^/]' \| \ 11195 X"$as_dir" : 'X\(//\)$' \| \ 11196 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11197 $as_echo X"$as_dir" | 11198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11199 s//\1/ 11200 q 11201 } 11202 /^X\(\/\/\)[^/].*/{ 11203 s//\1/ 11204 q 11205 } 11206 /^X\(\/\/\)$/{ 11207 s//\1/ 11208 q 11209 } 11210 /^X\(\/\).*/{ 11211 s//\1/ 11212 q 11213 } 11214 s/.*/./; q'` 11215 test -d "$as_dir" && break 11216 done 11217 test -z "$as_dirs" || eval "mkdir $as_dirs" 11218 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11219 11220 11221 } # as_fn_mkdir_p 11222 if mkdir -p . 2>/dev/null; then 11223 as_mkdir_p='mkdir -p "$as_dir"' 11224 else 11225 test -d ./-p && rmdir ./-p 11226 as_mkdir_p=false 11227 fi 11228 11229 11230 # as_fn_executable_p FILE 11231 # ----------------------- 11232 # Test if FILE is an executable regular file. 11233 as_fn_executable_p () 11234 { 11235 test -f "$1" && test -x "$1" 11236 } # as_fn_executable_p 11237 as_test_x='test -x' 11238 as_executable_p=as_fn_executable_p 11239 11240 # Sed expression to map a string onto a valid CPP name. 11241 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11242 11243 # Sed expression to map a string onto a valid variable name. 11244 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11245 11246 11247 exec 6>&1 11248 ## ----------------------------------- ## 11249 ## Main body of $CONFIG_STATUS script. ## 11250 ## ----------------------------------- ## 11251 _ASEOF 11252 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11253 11254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11255 # Save the log message, to keep $0 and so on meaningful, and to 11256 # report actual input values of CONFIG_FILES etc. instead of their 11257 # values after options handling. 11258 ac_log=" 11259 This file was extended by xtrap $as_me 1.0.3, which was 11260 generated by GNU Autoconf 2.69. Invocation command line was 11261 11262 CONFIG_FILES = $CONFIG_FILES 11263 CONFIG_HEADERS = $CONFIG_HEADERS 11264 CONFIG_LINKS = $CONFIG_LINKS 11265 CONFIG_COMMANDS = $CONFIG_COMMANDS 11266 $ $0 $@ 11267 11268 on `(hostname || uname -n) 2>/dev/null | sed 1q` 11269 " 11270 11271 _ACEOF 11272 11273 case $ac_config_files in *" 11274 "*) set x $ac_config_files; shift; ac_config_files=$*;; 11275 esac 11276 11277 case $ac_config_headers in *" 11278 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11279 esac 11280 11281 11282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11283 # Files that config.status was made for. 11284 config_files="$ac_config_files" 11285 config_headers="$ac_config_headers" 11286 config_commands="$ac_config_commands" 11287 11288 _ACEOF 11289 11290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11291 ac_cs_usage="\ 11292 \`$as_me' instantiates files and other configuration actions 11293 from templates according to the current configuration. Unless the files 11294 and actions are specified as TAGs, all are instantiated by default. 11295 11296 Usage: $0 [OPTION]... [TAG]... 11297 11298 -h, --help print this help, then exit 11299 -V, --version print version number and configuration settings, then exit 11300 --config print configuration, then exit 11301 -q, --quiet, --silent 11302 do not print progress messages 11303 -d, --debug don't remove temporary files 11304 --recheck update $as_me by reconfiguring in the same conditions 11305 --file=FILE[:TEMPLATE] 11306 instantiate the configuration file FILE 11307 --header=FILE[:TEMPLATE] 11308 instantiate the configuration header FILE 11309 11310 Configuration files: 11311 $config_files 11312 11313 Configuration headers: 11314 $config_headers 11315 11316 Configuration commands: 11317 $config_commands 11318 11319 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11320 11321 _ACEOF 11322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11323 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11324 ac_cs_version="\\ 11325 xtrap config.status 1.0.3 11326 configured by $0, generated by GNU Autoconf 2.69, 11327 with options \\"\$ac_cs_config\\" 11328 11329 Copyright (C) 2012 Free Software Foundation, Inc. 11330 This config.status script is free software; the Free Software Foundation 11331 gives unlimited permission to copy, distribute and modify it." 11332 11333 ac_pwd='$ac_pwd' 11334 srcdir='$srcdir' 11335 INSTALL='$INSTALL' 11336 MKDIR_P='$MKDIR_P' 11337 AWK='$AWK' 11338 test -n "\$AWK" || AWK=awk 11339 _ACEOF 11340 11341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11342 # The default lists apply if the user does not specify any file. 11343 ac_need_defaults=: 11344 while test $# != 0 11345 do 11346 case $1 in 11347 --*=?*) 11348 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11349 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11350 ac_shift=: 11351 ;; 11352 --*=) 11353 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11354 ac_optarg= 11355 ac_shift=: 11356 ;; 11357 *) 11358 ac_option=$1 11359 ac_optarg=$2 11360 ac_shift=shift 11361 ;; 11362 esac 11363 11364 case $ac_option in 11365 # Handling of the options. 11366 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11367 ac_cs_recheck=: ;; 11368 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11369 $as_echo "$ac_cs_version"; exit ;; 11370 --config | --confi | --conf | --con | --co | --c ) 11371 $as_echo "$ac_cs_config"; exit ;; 11372 --debug | --debu | --deb | --de | --d | -d ) 11373 debug=: ;; 11374 --file | --fil | --fi | --f ) 11375 $ac_shift 11376 case $ac_optarg in 11377 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11378 '') as_fn_error $? "missing file argument" ;; 11379 esac 11380 as_fn_append CONFIG_FILES " '$ac_optarg'" 11381 ac_need_defaults=false;; 11382 --header | --heade | --head | --hea ) 11383 $ac_shift 11384 case $ac_optarg in 11385 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11386 esac 11387 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11388 ac_need_defaults=false;; 11389 --he | --h) 11390 # Conflict between --help and --header 11391 as_fn_error $? "ambiguous option: \`$1' 11392 Try \`$0 --help' for more information.";; 11393 --help | --hel | -h ) 11394 $as_echo "$ac_cs_usage"; exit ;; 11395 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11396 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11397 ac_cs_silent=: ;; 11398 11399 # This is an error. 11400 -*) as_fn_error $? "unrecognized option: \`$1' 11401 Try \`$0 --help' for more information." ;; 11402 11403 *) as_fn_append ac_config_targets " $1" 11404 ac_need_defaults=false ;; 11405 11406 esac 11407 shift 11408 done 11409 11410 ac_configure_extra_args= 11411 11412 if $ac_cs_silent; then 11413 exec 6>/dev/null 11414 ac_configure_extra_args="$ac_configure_extra_args --silent" 11415 fi 11416 11417 _ACEOF 11418 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11419 if \$ac_cs_recheck; then 11420 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11421 shift 11422 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11423 CONFIG_SHELL='$SHELL' 11424 export CONFIG_SHELL 11425 exec "\$@" 11426 fi 11427 11428 _ACEOF 11429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11430 exec 5>>config.log 11431 { 11432 echo 11433 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11434 ## Running $as_me. ## 11435 _ASBOX 11436 $as_echo "$ac_log" 11437 } >&5 11438 11439 _ACEOF 11440 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11441 # 11442 # INIT-COMMANDS 11443 # 11444 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11445 11446 _ACEOF 11447 11448 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11449 11450 # Handling of arguments. 11451 for ac_config_target in $ac_config_targets 11452 do 11453 case $ac_config_target in 11454 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11455 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11456 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11457 11458 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11459 esac 11460 done 11461 11462 11463 # If the user did not use the arguments to specify the items to instantiate, 11464 # then the envvar interface is used. Set only those that are not. 11465 # We use the long form for the default assignment because of an extremely 11466 # bizarre bug on SunOS 4.1.3. 11467 if $ac_need_defaults; then 11468 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11469 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11470 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11471 fi 11472 11473 # Have a temporary directory for convenience. Make it in the build tree 11474 # simply because there is no reason against having it here, and in addition, 11475 # creating and moving files from /tmp can sometimes cause problems. 11476 # Hook for its removal unless debugging. 11477 # Note that there is a small window in which the directory will not be cleaned: 11478 # after its creation but before its name has been assigned to `$tmp'. 11479 $debug || 11480 { 11481 tmp= ac_tmp= 11482 trap 'exit_status=$? 11483 : "${ac_tmp:=$tmp}" 11484 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11485 ' 0 11486 trap 'as_fn_exit 1' 1 2 13 15 11487 } 11488 # Create a (secure) tmp directory for tmp files. 11489 11490 { 11491 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11492 test -d "$tmp" 11493 } || 11494 { 11495 tmp=./conf$$-$RANDOM 11496 (umask 077 && mkdir "$tmp") 11497 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11498 ac_tmp=$tmp 11499 11500 # Set up the scripts for CONFIG_FILES section. 11501 # No need to generate them if there are no CONFIG_FILES. 11502 # This happens for instance with `./config.status config.h'. 11503 if test -n "$CONFIG_FILES"; then 11504 11505 11506 ac_cr=`echo X | tr X '\015'` 11507 # On cygwin, bash can eat \r inside `` if the user requested igncr. 11508 # But we know of no other shell where ac_cr would be empty at this 11509 # point, so we can use a bashism as a fallback. 11510 if test "x$ac_cr" = x; then 11511 eval ac_cr=\$\'\\r\' 11512 fi 11513 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11514 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11515 ac_cs_awk_cr='\\r' 11516 else 11517 ac_cs_awk_cr=$ac_cr 11518 fi 11519 11520 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11521 _ACEOF 11522 11523 11524 { 11525 echo "cat >conf$$subs.awk <<_ACEOF" && 11526 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11527 echo "_ACEOF" 11528 } >conf$$subs.sh || 11529 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11530 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11531 ac_delim='%!_!# ' 11532 for ac_last_try in false false false false false :; do 11533 . ./conf$$subs.sh || 11534 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11535 11536 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11537 if test $ac_delim_n = $ac_delim_num; then 11538 break 11539 elif $ac_last_try; then 11540 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11541 else 11542 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11543 fi 11544 done 11545 rm -f conf$$subs.sh 11546 11547 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11548 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11549 _ACEOF 11550 sed -n ' 11551 h 11552 s/^/S["/; s/!.*/"]=/ 11553 p 11554 g 11555 s/^[^!]*!// 11556 :repl 11557 t repl 11558 s/'"$ac_delim"'$// 11559 t delim 11560 :nl 11561 h 11562 s/\(.\{148\}\)..*/\1/ 11563 t more1 11564 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11565 p 11566 n 11567 b repl 11568 :more1 11569 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11570 p 11571 g 11572 s/.\{148\}// 11573 t nl 11574 :delim 11575 h 11576 s/\(.\{148\}\)..*/\1/ 11577 t more2 11578 s/["\\]/\\&/g; s/^/"/; s/$/"/ 11579 p 11580 b 11581 :more2 11582 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11583 p 11584 g 11585 s/.\{148\}// 11586 t delim 11587 ' <conf$$subs.awk | sed ' 11588 /^[^""]/{ 11589 N 11590 s/\n// 11591 } 11592 ' >>$CONFIG_STATUS || ac_write_fail=1 11593 rm -f conf$$subs.awk 11594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11595 _ACAWK 11596 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11597 for (key in S) S_is_set[key] = 1 11598 FS = "" 11599 11600 } 11601 { 11602 line = $ 0 11603 nfields = split(line, field, "@") 11604 substed = 0 11605 len = length(field[1]) 11606 for (i = 2; i < nfields; i++) { 11607 key = field[i] 11608 keylen = length(key) 11609 if (S_is_set[key]) { 11610 value = S[key] 11611 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11612 len += length(value) + length(field[++i]) 11613 substed = 1 11614 } else 11615 len += 1 + keylen 11616 } 11617 11618 print line 11619 } 11620 11621 _ACAWK 11622 _ACEOF 11623 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11624 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11625 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11626 else 11627 cat 11628 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11629 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11630 _ACEOF 11631 11632 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11633 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11634 # trailing colons and then remove the whole line if VPATH becomes empty 11635 # (actually we leave an empty line to preserve line numbers). 11636 if test "x$srcdir" = x.; then 11637 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11638 h 11639 s/// 11640 s/^/:/ 11641 s/[ ]*$/:/ 11642 s/:\$(srcdir):/:/g 11643 s/:\${srcdir}:/:/g 11644 s/:@srcdir@:/:/g 11645 s/^:*// 11646 s/:*$// 11647 x 11648 s/\(=[ ]*\).*/\1/ 11649 G 11650 s/\n// 11651 s/^[^=]*=[ ]*$// 11652 }' 11653 fi 11654 11655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11656 fi # test -n "$CONFIG_FILES" 11657 11658 # Set up the scripts for CONFIG_HEADERS section. 11659 # No need to generate them if there are no CONFIG_HEADERS. 11660 # This happens for instance with `./config.status Makefile'. 11661 if test -n "$CONFIG_HEADERS"; then 11662 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11663 BEGIN { 11664 _ACEOF 11665 11666 # Transform confdefs.h into an awk script `defines.awk', embedded as 11667 # here-document in config.status, that substitutes the proper values into 11668 # config.h.in to produce config.h. 11669 11670 # Create a delimiter string that does not exist in confdefs.h, to ease 11671 # handling of long lines. 11672 ac_delim='%!_!# ' 11673 for ac_last_try in false false :; do 11674 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11675 if test -z "$ac_tt"; then 11676 break 11677 elif $ac_last_try; then 11678 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11679 else 11680 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11681 fi 11682 done 11683 11684 # For the awk script, D is an array of macro values keyed by name, 11685 # likewise P contains macro parameters if any. Preserve backslash 11686 # newline sequences. 11687 11688 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11689 sed -n ' 11690 s/.\{148\}/&'"$ac_delim"'/g 11691 t rset 11692 :rset 11693 s/^[ ]*#[ ]*define[ ][ ]*/ / 11694 t def 11695 d 11696 :def 11697 s/\\$// 11698 t bsnl 11699 s/["\\]/\\&/g 11700 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11701 D["\1"]=" \3"/p 11702 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11703 d 11704 :bsnl 11705 s/["\\]/\\&/g 11706 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11707 D["\1"]=" \3\\\\\\n"\\/p 11708 t cont 11709 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11710 t cont 11711 d 11712 :cont 11713 n 11714 s/.\{148\}/&'"$ac_delim"'/g 11715 t clear 11716 :clear 11717 s/\\$// 11718 t bsnlc 11719 s/["\\]/\\&/g; s/^/"/; s/$/"/p 11720 d 11721 :bsnlc 11722 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11723 b cont 11724 ' <confdefs.h | sed ' 11725 s/'"$ac_delim"'/"\\\ 11726 "/g' >>$CONFIG_STATUS || ac_write_fail=1 11727 11728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11729 for (key in D) D_is_set[key] = 1 11730 FS = "" 11731 } 11732 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11733 line = \$ 0 11734 split(line, arg, " ") 11735 if (arg[1] == "#") { 11736 defundef = arg[2] 11737 mac1 = arg[3] 11738 } else { 11739 defundef = substr(arg[1], 2) 11740 mac1 = arg[2] 11741 } 11742 split(mac1, mac2, "(") #) 11743 macro = mac2[1] 11744 prefix = substr(line, 1, index(line, defundef) - 1) 11745 if (D_is_set[macro]) { 11746 # Preserve the white space surrounding the "#". 11747 print prefix "define", macro P[macro] D[macro] 11748 next 11749 } else { 11750 # Replace #undef with comments. This is necessary, for example, 11751 # in the case of _POSIX_SOURCE, which is predefined and required 11752 # on some systems where configure will not decide to define it. 11753 if (defundef == "undef") { 11754 print "/*", prefix defundef, macro, "*/" 11755 next 11756 } 11757 } 11758 } 11759 { print } 11760 _ACAWK 11761 _ACEOF 11762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11763 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 11764 fi # test -n "$CONFIG_HEADERS" 11765 11766 11767 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 11768 shift 11769 for ac_tag 11770 do 11771 case $ac_tag in 11772 :[FHLC]) ac_mode=$ac_tag; continue;; 11773 esac 11774 case $ac_mode$ac_tag in 11775 :[FHL]*:*);; 11776 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 11777 :[FH]-) ac_tag=-:-;; 11778 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11779 esac 11780 ac_save_IFS=$IFS 11781 IFS=: 11782 set x $ac_tag 11783 IFS=$ac_save_IFS 11784 shift 11785 ac_file=$1 11786 shift 11787 11788 case $ac_mode in 11789 :L) ac_source=$1;; 11790 :[FH]) 11791 ac_file_inputs= 11792 for ac_f 11793 do 11794 case $ac_f in 11795 -) ac_f="$ac_tmp/stdin";; 11796 *) # Look for the file first in the build tree, then in the source tree 11797 # (if the path is not absolute). The absolute path cannot be DOS-style, 11798 # because $ac_f cannot contain `:'. 11799 test -f "$ac_f" || 11800 case $ac_f in 11801 [\\/$]*) false;; 11802 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11803 esac || 11804 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11805 esac 11806 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11807 as_fn_append ac_file_inputs " '$ac_f'" 11808 done 11809 11810 # Let's still pretend it is `configure' which instantiates (i.e., don't 11811 # use $as_me), people would be surprised to read: 11812 # /* config.h. Generated by config.status. */ 11813 configure_input='Generated from '` 11814 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11815 `' by configure.' 11816 if test x"$ac_file" != x-; then 11817 configure_input="$ac_file. $configure_input" 11818 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 11819 $as_echo "$as_me: creating $ac_file" >&6;} 11820 fi 11821 # Neutralize special characters interpreted by sed in replacement strings. 11822 case $configure_input in #( 11823 *\&* | *\|* | *\\* ) 11824 ac_sed_conf_input=`$as_echo "$configure_input" | 11825 sed 's/[\\\\&|]/\\\\&/g'`;; #( 11826 *) ac_sed_conf_input=$configure_input;; 11827 esac 11828 11829 case $ac_tag in 11830 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 11831 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 11832 esac 11833 ;; 11834 esac 11835 11836 ac_dir=`$as_dirname -- "$ac_file" || 11837 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11838 X"$ac_file" : 'X\(//\)[^/]' \| \ 11839 X"$ac_file" : 'X\(//\)$' \| \ 11840 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11841 $as_echo X"$ac_file" | 11842 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11843 s//\1/ 11844 q 11845 } 11846 /^X\(\/\/\)[^/].*/{ 11847 s//\1/ 11848 q 11849 } 11850 /^X\(\/\/\)$/{ 11851 s//\1/ 11852 q 11853 } 11854 /^X\(\/\).*/{ 11855 s//\1/ 11856 q 11857 } 11858 s/.*/./; q'` 11859 as_dir="$ac_dir"; as_fn_mkdir_p 11860 ac_builddir=. 11861 11862 case "$ac_dir" in 11863 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11864 *) 11865 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 11866 # A ".." for each directory in $ac_dir_suffix. 11867 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 11868 case $ac_top_builddir_sub in 11869 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11870 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11871 esac ;; 11872 esac 11873 ac_abs_top_builddir=$ac_pwd 11874 ac_abs_builddir=$ac_pwd$ac_dir_suffix 11875 # for backward compatibility: 11876 ac_top_builddir=$ac_top_build_prefix 11877 11878 case $srcdir in 11879 .) # We are building in place. 11880 ac_srcdir=. 11881 ac_top_srcdir=$ac_top_builddir_sub 11882 ac_abs_top_srcdir=$ac_pwd ;; 11883 [\\/]* | ?:[\\/]* ) # Absolute name. 11884 ac_srcdir=$srcdir$ac_dir_suffix; 11885 ac_top_srcdir=$srcdir 11886 ac_abs_top_srcdir=$srcdir ;; 11887 *) # Relative name. 11888 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11889 ac_top_srcdir=$ac_top_build_prefix$srcdir 11890 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11891 esac 11892 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11893 11894 11895 case $ac_mode in 11896 :F) 11897 # 11898 # CONFIG_FILE 11899 # 11900 11901 case $INSTALL in 11902 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11903 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11904 esac 11905 ac_MKDIR_P=$MKDIR_P 11906 case $MKDIR_P in 11907 [\\/$]* | ?:[\\/]* ) ;; 11908 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 11909 esac 11910 _ACEOF 11911 11912 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11913 # If the template does not know about datarootdir, expand it. 11914 # FIXME: This hack should be removed a few years after 2.60. 11915 ac_datarootdir_hack=; ac_datarootdir_seen= 11916 ac_sed_dataroot=' 11917 /datarootdir/ { 11918 p 11919 q 11920 } 11921 /@datadir@/p 11922 /@docdir@/p 11923 /@infodir@/p 11924 /@localedir@/p 11925 /@mandir@/p' 11926 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 11927 *datarootdir*) ac_datarootdir_seen=yes;; 11928 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11930 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11931 _ACEOF 11932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11933 ac_datarootdir_hack=' 11934 s&@datadir@&$datadir&g 11935 s&@docdir@&$docdir&g 11936 s&@infodir@&$infodir&g 11937 s&@localedir@&$localedir&g 11938 s&@mandir@&$mandir&g 11939 s&\\\${datarootdir}&$datarootdir&g' ;; 11940 esac 11941 _ACEOF 11942 11943 # Neutralize VPATH when `$srcdir' = `.'. 11944 # Shell code in configure.ac might set extrasub. 11945 # FIXME: do we really want to maintain this feature? 11946 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11947 ac_sed_extra="$ac_vpsub 11948 $extrasub 11949 _ACEOF 11950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11951 :t 11952 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11953 s|@configure_input@|$ac_sed_conf_input|;t t 11954 s&@top_builddir@&$ac_top_builddir_sub&;t t 11955 s&@top_build_prefix@&$ac_top_build_prefix&;t t 11956 s&@srcdir@&$ac_srcdir&;t t 11957 s&@abs_srcdir@&$ac_abs_srcdir&;t t 11958 s&@top_srcdir@&$ac_top_srcdir&;t t 11959 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11960 s&@builddir@&$ac_builddir&;t t 11961 s&@abs_builddir@&$ac_abs_builddir&;t t 11962 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11963 s&@INSTALL@&$ac_INSTALL&;t t 11964 s&@MKDIR_P@&$ac_MKDIR_P&;t t 11965 $ac_datarootdir_hack 11966 " 11967 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 11968 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11969 11970 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11971 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 11972 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 11973 "$ac_tmp/out"`; test -z "$ac_out"; } && 11974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11975 which seems to be undefined. Please make sure it is defined" >&5 11976 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11977 which seems to be undefined. Please make sure it is defined" >&2;} 11978 11979 rm -f "$ac_tmp/stdin" 11980 case $ac_file in 11981 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 11982 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 11983 esac \ 11984 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11985 ;; 11986 :H) 11987 # 11988 # CONFIG_HEADER 11989 # 11990 if test x"$ac_file" != x-; then 11991 { 11992 $as_echo "/* $configure_input */" \ 11993 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 11994 } >"$ac_tmp/config.h" \ 11995 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11996 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 11997 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 11998 $as_echo "$as_me: $ac_file is unchanged" >&6;} 11999 else 12000 rm -f "$ac_file" 12001 mv "$ac_tmp/config.h" "$ac_file" \ 12002 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12003 fi 12004 else 12005 $as_echo "/* $configure_input */" \ 12006 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12007 || as_fn_error $? "could not create -" "$LINENO" 5 12008 fi 12009 # Compute "$ac_file"'s index in $config_headers. 12010 _am_arg="$ac_file" 12011 _am_stamp_count=1 12012 for _am_header in $config_headers :; do 12013 case $_am_header in 12014 $_am_arg | $_am_arg:* ) 12015 break ;; 12016 * ) 12017 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12018 esac 12019 done 12020 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12021 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12022 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12023 X"$_am_arg" : 'X\(//\)$' \| \ 12024 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12025 $as_echo X"$_am_arg" | 12026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12027 s//\1/ 12028 q 12029 } 12030 /^X\(\/\/\)[^/].*/{ 12031 s//\1/ 12032 q 12033 } 12034 /^X\(\/\/\)$/{ 12035 s//\1/ 12036 q 12037 } 12038 /^X\(\/\).*/{ 12039 s//\1/ 12040 q 12041 } 12042 s/.*/./; q'`/stamp-h$_am_stamp_count 12043 ;; 12044 12045 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12046 $as_echo "$as_me: executing $ac_file commands" >&6;} 12047 ;; 12048 esac 12049 12050 12051 case $ac_file$ac_mode in 12052 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12053 # Older Autoconf quotes --file arguments for eval, but not when files 12054 # are listed without --file. Let's play safe and only enable the eval 12055 # if we detect the quoting. 12056 case $CONFIG_FILES in 12057 *\'*) eval set x "$CONFIG_FILES" ;; 12058 *) set x $CONFIG_FILES ;; 12059 esac 12060 shift 12061 for mf 12062 do 12063 # Strip MF so we end up with the name of the file. 12064 mf=`echo "$mf" | sed -e 's/:.*$//'` 12065 # Check whether this is an Automake generated Makefile or not. 12066 # We used to match only the files named 'Makefile.in', but 12067 # some people rename them; so instead we look at the file content. 12068 # Grep'ing the first line is not enough: some people post-process 12069 # each Makefile.in and add a new line on top of each file to say so. 12070 # Grep'ing the whole file is not good either: AIX grep has a line 12071 # limit of 2048, but all sed's we know have understand at least 4000. 12072 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12073 dirpart=`$as_dirname -- "$mf" || 12074 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12075 X"$mf" : 'X\(//\)[^/]' \| \ 12076 X"$mf" : 'X\(//\)$' \| \ 12077 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12078 $as_echo X"$mf" | 12079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12080 s//\1/ 12081 q 12082 } 12083 /^X\(\/\/\)[^/].*/{ 12084 s//\1/ 12085 q 12086 } 12087 /^X\(\/\/\)$/{ 12088 s//\1/ 12089 q 12090 } 12091 /^X\(\/\).*/{ 12092 s//\1/ 12093 q 12094 } 12095 s/.*/./; q'` 12096 else 12097 continue 12098 fi 12099 # Extract the definition of DEPDIR, am__include, and am__quote 12100 # from the Makefile without running 'make'. 12101 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12102 test -z "$DEPDIR" && continue 12103 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12104 test -z "$am__include" && continue 12105 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12106 # Find all dependency output files, they are included files with 12107 # $(DEPDIR) in their names. We invoke sed twice because it is the 12108 # simplest approach to changing $(DEPDIR) to its actual value in the 12109 # expansion. 12110 for file in `sed -n " 12111 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12112 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12113 # Make sure the directory exists. 12114 test -f "$dirpart/$file" && continue 12115 fdir=`$as_dirname -- "$file" || 12116 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12117 X"$file" : 'X\(//\)[^/]' \| \ 12118 X"$file" : 'X\(//\)$' \| \ 12119 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12120 $as_echo X"$file" | 12121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12122 s//\1/ 12123 q 12124 } 12125 /^X\(\/\/\)[^/].*/{ 12126 s//\1/ 12127 q 12128 } 12129 /^X\(\/\/\)$/{ 12130 s//\1/ 12131 q 12132 } 12133 /^X\(\/\).*/{ 12134 s//\1/ 12135 q 12136 } 12137 s/.*/./; q'` 12138 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12139 # echo "creating $dirpart/$file" 12140 echo '# dummy' > "$dirpart/$file" 12141 done 12142 done 12143 } 12144 ;; 12145 12146 esac 12147 done # for ac_tag 12148 12149 12150 as_fn_exit 0 12151 _ACEOF 12152 ac_clean_files=$ac_clean_files_save 12153 12154 test $ac_write_fail = 0 || 12155 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12156 12157 12158 # configure is writing to config.log, and then calls config.status. 12159 # config.status does its own redirection, appending to config.log. 12160 # Unfortunately, on DOS this fails, as config.log is still kept open 12161 # by configure, so config.status won't be able to write to it; its 12162 # output is simply discarded. So we exec the FD to /dev/null, 12163 # effectively closing config.log, so it can be properly (re)opened and 12164 # appended to by config.status. When coming back to configure, we 12165 # need to make the FD available again. 12166 if test "$no_create" != yes; then 12167 ac_cs_success=: 12168 ac_config_status_args= 12169 test "$silent" = yes && 12170 ac_config_status_args="$ac_config_status_args --quiet" 12171 exec 5>/dev/null 12172 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12173 exec 5>>config.log 12174 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12175 # would make configure fail if this is the last instruction. 12176 $ac_cs_success || as_fn_exit 1 12177 fi 12178 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12180 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12181 fi 12182 12183