1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.72 for bitmap 1.1.1. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/bitmap/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else case e in #( 29 e) case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 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. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed 'exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 144then : 145 emulate sh 146 NULLCMD=: 147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 148 # is contrary to our usage. Disable this feature. 149 alias -g '\${1+\"\$@\"}'='\"\$@\"' 150 setopt NO_GLOB_SUBST 151else case e in #( 152 e) case \`(set -o) 2>/dev/null\` in #( 153 *posix*) : 154 set -o posix ;; #( 155 *) : 156 ;; 157esac ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else case e in #( 176 e) exitcode=1; echo positional parameters were not saved. ;; 177esac 178fi 179test x\$exitcode = x0 || exit 1 180blah=\$(echo \$(echo blah)) 181test x\"\$blah\" = xblah || exit 1 182test -x / || exit 1" 183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 187test \$(( 1 + 1 )) = 2 || exit 1" 188 if (eval "$as_required") 2>/dev/null 189then : 190 as_have_required=yes 191else case e in #( 192 e) as_have_required=no ;; 193esac 194fi 195 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 196then : 197 198else case e in #( 199 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 200as_found=false 201for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 202do 203 IFS=$as_save_IFS 204 case $as_dir in #((( 205 '') as_dir=./ ;; 206 */) ;; 207 *) as_dir=$as_dir/ ;; 208 esac 209 as_found=: 210 case $as_dir in #( 211 /*) 212 for as_base in sh bash ksh sh5; do 213 # Try only shells that exist, to save several forks. 214 as_shell=$as_dir$as_base 215 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 216 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 217then : 218 CONFIG_SHELL=$as_shell as_have_required=yes 219 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 220then : 221 break 2 222fi 223fi 224 done;; 225 esac 226 as_found=false 227done 228IFS=$as_save_IFS 229if $as_found 230then : 231 232else case e in #( 233 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 235then : 236 CONFIG_SHELL=$SHELL as_have_required=yes 237fi ;; 238esac 239fi 240 241 242 if test "x$CONFIG_SHELL" != x 243then : 244 export CONFIG_SHELL 245 # We cannot yet assume a decent shell, so we have to provide a 246# neutralization value for shells without unset; and this also 247# works around shells that cannot unset nonexistent variables. 248# Preserve -v and -x to the replacement shell. 249BASH_ENV=/dev/null 250ENV=/dev/null 251(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 252case $- in # (((( 253 *v*x* | *x*v* ) as_opts=-vx ;; 254 *v* ) as_opts=-v ;; 255 *x* ) as_opts=-x ;; 256 * ) as_opts= ;; 257esac 258exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 259# Admittedly, this is quite paranoid, since all the known shells bail 260# out after a failed 'exec'. 261printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 262exit 255 263fi 264 265 if test x$as_have_required = xno 266then : 267 printf "%s\n" "$0: This script requires a shell more modern than all" 268 printf "%s\n" "$0: the shells that I found on your system." 269 if test ${ZSH_VERSION+y} ; then 270 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 271 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 272 else 273 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 274$0: https://gitlab.freedesktop.org/xorg/app/bitmap/issues 275$0: about your system, including any error possibly output 276$0: before this message. Then install a modern shell, or 277$0: manually run the script under such a shell if you do 278$0: have one." 279 fi 280 exit 1 281fi ;; 282esac 283fi 284fi 285SHELL=${CONFIG_SHELL-/bin/sh} 286export SHELL 287# Unset more variables known to interfere with behavior of common tools. 288CLICOLOR_FORCE= GREP_OPTIONS= 289unset CLICOLOR_FORCE GREP_OPTIONS 290 291## --------------------- ## 292## M4sh Shell Functions. ## 293## --------------------- ## 294# as_fn_unset VAR 295# --------------- 296# Portably unset VAR. 297as_fn_unset () 298{ 299 { eval $1=; unset $1;} 300} 301as_unset=as_fn_unset 302 303 304# as_fn_set_status STATUS 305# ----------------------- 306# Set $? to STATUS, without forking. 307as_fn_set_status () 308{ 309 return $1 310} # as_fn_set_status 311 312# as_fn_exit STATUS 313# ----------------- 314# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 315as_fn_exit () 316{ 317 set +e 318 as_fn_set_status $1 319 exit $1 320} # as_fn_exit 321 322# as_fn_mkdir_p 323# ------------- 324# Create "$as_dir" as a directory, including parents if necessary. 325as_fn_mkdir_p () 326{ 327 328 case $as_dir in #( 329 -*) as_dir=./$as_dir;; 330 esac 331 test -d "$as_dir" || eval $as_mkdir_p || { 332 as_dirs= 333 while :; do 334 case $as_dir in #( 335 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 336 *) as_qdir=$as_dir;; 337 esac 338 as_dirs="'$as_qdir' $as_dirs" 339 as_dir=`$as_dirname -- "$as_dir" || 340$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 341 X"$as_dir" : 'X\(//\)[^/]' \| \ 342 X"$as_dir" : 'X\(//\)$' \| \ 343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 344printf "%s\n" X"$as_dir" | 345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 346 s//\1/ 347 q 348 } 349 /^X\(\/\/\)[^/].*/{ 350 s//\1/ 351 q 352 } 353 /^X\(\/\/\)$/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\).*/{ 358 s//\1/ 359 q 360 } 361 s/.*/./; q'` 362 test -d "$as_dir" && break 363 done 364 test -z "$as_dirs" || eval "mkdir $as_dirs" 365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 366 367 368} # as_fn_mkdir_p 369 370# as_fn_executable_p FILE 371# ----------------------- 372# Test if FILE is an executable regular file. 373as_fn_executable_p () 374{ 375 test -f "$1" && test -x "$1" 376} # as_fn_executable_p 377# as_fn_append VAR VALUE 378# ---------------------- 379# Append the text in VALUE to the end of the definition contained in VAR. Take 380# advantage of any shell optimizations that allow amortized linear growth over 381# repeated appends, instead of the typical quadratic growth present in naive 382# implementations. 383if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 384then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else case e in #( 390 e) as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } ;; 394esac 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 403then : 404 eval 'as_fn_arith () 405 { 406 as_val=$(( $* )) 407 }' 408else case e in #( 409 e) as_fn_arith () 410 { 411 as_val=`expr "$@" || test $? -eq 1` 412 } ;; 413esac 414fi # as_fn_arith 415 416 417# as_fn_error STATUS ERROR [LINENO LOG_FD] 418# ---------------------------------------- 419# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 420# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 421# script with STATUS, using 1 if that was 0. 422as_fn_error () 423{ 424 as_status=$1; test $as_status -eq 0 && as_status=1 425 if test "$4"; then 426 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 428 fi 429 printf "%s\n" "$as_me: error: $2" >&2 430 as_fn_exit $as_status 431} # as_fn_error 432 433if expr a : '\(a\)' >/dev/null 2>&1 && 434 test "X`expr 00001 : '.*\(...\)'`" = X001; then 435 as_expr=expr 436else 437 as_expr=false 438fi 439 440if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 441 as_basename=basename 442else 443 as_basename=false 444fi 445 446if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 447 as_dirname=dirname 448else 449 as_dirname=false 450fi 451 452as_me=`$as_basename -- "$0" || 453$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 454 X"$0" : 'X\(//\)$' \| \ 455 X"$0" : 'X\(/\)' \| . 2>/dev/null || 456printf "%s\n" X/"$0" | 457 sed '/^.*\/\([^/][^/]*\)\/*$/{ 458 s//\1/ 459 q 460 } 461 /^X\/\(\/\/\)$/{ 462 s//\1/ 463 q 464 } 465 /^X\/\(\/\).*/{ 466 s//\1/ 467 q 468 } 469 s/.*/./; q'` 470 471# Avoid depending upon Character Ranges. 472as_cr_letters='abcdefghijklmnopqrstuvwxyz' 473as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 474as_cr_Letters=$as_cr_letters$as_cr_LETTERS 475as_cr_digits='0123456789' 476as_cr_alnum=$as_cr_Letters$as_cr_digits 477 478 479 as_lineno_1=$LINENO as_lineno_1a=$LINENO 480 as_lineno_2=$LINENO as_lineno_2a=$LINENO 481 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 482 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 483 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 484 sed -n ' 485 p 486 /[$]LINENO/= 487 ' <$as_myself | 488 sed ' 489 t clear 490 :clear 491 s/[$]LINENO.*/&-/ 492 t lineno 493 b 494 :lineno 495 N 496 :loop 497 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 498 t loop 499 s/-\n.*// 500 ' >$as_me.lineno && 501 chmod +x "$as_me.lineno" || 502 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 503 504 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 505 # already done that, so ensure we don't try to do so again and fall 506 # in an infinite loop. This has already happened in practice. 507 _as_can_reexec=no; export _as_can_reexec 508 # Don't try to exec as it changes $[0], causing all sort of problems 509 # (the dirname of $[0] is not the place where we might find the 510 # original and so on. Autoconf is especially sensitive to this). 511 . "./$as_me.lineno" 512 # Exit status is that of the last command. 513 exit 514} 515 516 517# Determine whether it's possible to make 'echo' print without a newline. 518# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 519# for compatibility with existing Makefiles. 520ECHO_C= ECHO_N= ECHO_T= 521case `echo -n x` in #((((( 522-n*) 523 case `echo 'xy\c'` in 524 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 525 xy) ECHO_C='\c';; 526 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 527 ECHO_T=' ';; 528 esac;; 529*) 530 ECHO_N='-n';; 531esac 532 533# For backward compatibility with old third-party macros, we provide 534# the shell variables $as_echo and $as_echo_n. New code should use 535# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 536as_echo='printf %s\n' 537as_echo_n='printf %s' 538 539rm -f conf$$ conf$$.exe conf$$.file 540if test -d conf$$.dir; then 541 rm -f conf$$.dir/conf$$.file 542else 543 rm -f conf$$.dir 544 mkdir conf$$.dir 2>/dev/null 545fi 546if (echo >conf$$.file) 2>/dev/null; then 547 if ln -s conf$$.file conf$$ 2>/dev/null; then 548 as_ln_s='ln -s' 549 # ... but there are two gotchas: 550 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 551 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 552 # In both cases, we have to default to 'cp -pR'. 553 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 554 as_ln_s='cp -pR' 555 elif ln conf$$.file conf$$ 2>/dev/null; then 556 as_ln_s=ln 557 else 558 as_ln_s='cp -pR' 559 fi 560else 561 as_ln_s='cp -pR' 562fi 563rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 564rmdir conf$$.dir 2>/dev/null 565 566if mkdir -p . 2>/dev/null; then 567 as_mkdir_p='mkdir -p "$as_dir"' 568else 569 test -d ./-p && rmdir ./-p 570 as_mkdir_p=false 571fi 572 573as_test_x='test -x' 574as_executable_p=as_fn_executable_p 575 576# Sed expression to map a string onto a valid CPP name. 577as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 578as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 579 580# Sed expression to map a string onto a valid variable name. 581as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 582as_tr_sh="eval sed '$as_sed_sh'" # deprecated 583 584 585test -n "$DJDIR" || exec 7<&0 </dev/null 586exec 6>&1 587 588# Name of the host. 589# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 590# so uname gets run too. 591ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 592 593# 594# Initializations. 595# 596ac_default_prefix=/usr/local 597ac_clean_files= 598ac_config_libobj_dir=. 599LIBOBJS= 600cross_compiling=no 601subdirs= 602MFLAGS= 603MAKEFLAGS= 604 605# Identity of this package. 606PACKAGE_NAME='bitmap' 607PACKAGE_TARNAME='bitmap' 608PACKAGE_VERSION='1.1.1' 609PACKAGE_STRING='bitmap 1.1.1' 610PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/bitmap/issues' 611PACKAGE_URL='' 612 613ac_unique_file="Makefile.am" 614# Factoring default headers for most tests. 615ac_includes_default="\ 616#include <stddef.h> 617#ifdef HAVE_STDIO_H 618# include <stdio.h> 619#endif 620#ifdef HAVE_STDLIB_H 621# include <stdlib.h> 622#endif 623#ifdef HAVE_STRING_H 624# include <string.h> 625#endif 626#ifdef HAVE_INTTYPES_H 627# include <inttypes.h> 628#endif 629#ifdef HAVE_STDINT_H 630# include <stdint.h> 631#endif 632#ifdef HAVE_STRINGS_H 633# include <strings.h> 634#endif 635#ifdef HAVE_SYS_TYPES_H 636# include <sys/types.h> 637#endif 638#ifdef HAVE_SYS_STAT_H 639# include <sys/stat.h> 640#endif 641#ifdef HAVE_UNISTD_H 642# include <unistd.h> 643#endif" 644 645ac_header_c_list= 646enable_year2038=no 647ac_subst_vars='am__EXEEXT_FALSE 648am__EXEEXT_TRUE 649LTLIBOBJS 650LIBOBJS 651appdefaultdir 652APPDEFS_LIBS 653APPDEFS_CFLAGS 654BITMAP_LIBS 655BITMAP_CFLAGS 656ATOBM_LIBS 657ATOBM_CFLAGS 658BMTOA_LIBS 659BMTOA_CFLAGS 660MATH_LIBS 661MAN_SUBSTS 662XORG_MAN_PAGE 663ADMIN_MAN_DIR 664DRIVER_MAN_DIR 665MISC_MAN_DIR 666FILE_MAN_DIR 667LIB_MAN_DIR 668APP_MAN_DIR 669ADMIN_MAN_SUFFIX 670DRIVER_MAN_SUFFIX 671MISC_MAN_SUFFIX 672FILE_MAN_SUFFIX 673LIB_MAN_SUFFIX 674APP_MAN_SUFFIX 675SED 676host_os 677host_vendor 678host_cpu 679host 680build_os 681build_vendor 682build_cpu 683build 684INSTALL_CMD 685PKG_CONFIG_LIBDIR 686PKG_CONFIG_PATH 687PKG_CONFIG 688CHANGELOG_CMD 689STRICT_CFLAGS 690CWARNFLAGS 691BASE_CFLAGS 692am__fastdepCC_FALSE 693am__fastdepCC_TRUE 694CCDEPMODE 695am__nodep 696AMDEPBACKSLASH 697AMDEP_FALSE 698AMDEP_TRUE 699am__include 700DEPDIR 701OBJEXT 702EXEEXT 703ac_ct_CC 704CPPFLAGS 705LDFLAGS 706CFLAGS 707CC 708AM_BACKSLASH 709AM_DEFAULT_VERBOSITY 710AM_DEFAULT_V 711AM_V 712CSCOPE 713ETAGS 714CTAGS 715am__untar 716am__tar 717AMTAR 718am__leading_dot 719SET_MAKE 720AWK 721mkdir_p 722MKDIR_P 723INSTALL_STRIP_PROGRAM 724STRIP 725install_sh 726MAKEINFO 727AUTOHEADER 728AUTOMAKE 729AUTOCONF 730ACLOCAL 731VERSION 732PACKAGE 733CYGPATH_W 734am__isrc 735INSTALL_DATA 736INSTALL_SCRIPT 737INSTALL_PROGRAM 738target_alias 739host_alias 740build_alias 741LIBS 742ECHO_T 743ECHO_N 744ECHO_C 745DEFS 746mandir 747localedir 748libdir 749psdir 750pdfdir 751dvidir 752htmldir 753infodir 754docdir 755oldincludedir 756includedir 757runstatedir 758localstatedir 759sharedstatedir 760sysconfdir 761datadir 762datarootdir 763libexecdir 764sbindir 765bindir 766program_transform_name 767prefix 768exec_prefix 769PACKAGE_URL 770PACKAGE_BUGREPORT 771PACKAGE_STRING 772PACKAGE_VERSION 773PACKAGE_TARNAME 774PACKAGE_NAME 775PATH_SEPARATOR 776SHELL 777am__quote' 778ac_subst_files='' 779ac_user_opts=' 780enable_option_checking 781enable_silent_rules 782enable_dependency_tracking 783enable_selective_werror 784enable_strict_compilation 785enable_largefile 786with_appdefaultdir 787enable_year2038 788' 789 ac_precious_vars='build_alias 790host_alias 791target_alias 792CC 793CFLAGS 794LDFLAGS 795LIBS 796CPPFLAGS 797PKG_CONFIG 798PKG_CONFIG_PATH 799PKG_CONFIG_LIBDIR 800BMTOA_CFLAGS 801BMTOA_LIBS 802ATOBM_CFLAGS 803ATOBM_LIBS 804BITMAP_CFLAGS 805BITMAP_LIBS 806APPDEFS_CFLAGS 807APPDEFS_LIBS' 808 809 810# Initialize some variables set by options. 811ac_init_help= 812ac_init_version=false 813ac_unrecognized_opts= 814ac_unrecognized_sep= 815# The variables have the same names as the options, with 816# dashes changed to underlines. 817cache_file=/dev/null 818exec_prefix=NONE 819no_create= 820no_recursion= 821prefix=NONE 822program_prefix=NONE 823program_suffix=NONE 824program_transform_name=s,x,x, 825silent= 826site= 827srcdir= 828verbose= 829x_includes=NONE 830x_libraries=NONE 831 832# Installation directory options. 833# These are left unexpanded so users can "make install exec_prefix=/foo" 834# and all the variables that are supposed to be based on exec_prefix 835# by default will actually change. 836# Use braces instead of parens because sh, perl, etc. also accept them. 837# (The list follows the same order as the GNU Coding Standards.) 838bindir='${exec_prefix}/bin' 839sbindir='${exec_prefix}/sbin' 840libexecdir='${exec_prefix}/libexec' 841datarootdir='${prefix}/share' 842datadir='${datarootdir}' 843sysconfdir='${prefix}/etc' 844sharedstatedir='${prefix}/com' 845localstatedir='${prefix}/var' 846runstatedir='${localstatedir}/run' 847includedir='${prefix}/include' 848oldincludedir='/usr/include' 849docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 850infodir='${datarootdir}/info' 851htmldir='${docdir}' 852dvidir='${docdir}' 853pdfdir='${docdir}' 854psdir='${docdir}' 855libdir='${exec_prefix}/lib' 856localedir='${datarootdir}/locale' 857mandir='${datarootdir}/man' 858 859ac_prev= 860ac_dashdash= 861for ac_option 862do 863 # If the previous option needs an argument, assign it. 864 if test -n "$ac_prev"; then 865 eval $ac_prev=\$ac_option 866 ac_prev= 867 continue 868 fi 869 870 case $ac_option in 871 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 872 *=) ac_optarg= ;; 873 *) ac_optarg=yes ;; 874 esac 875 876 case $ac_dashdash$ac_option in 877 --) 878 ac_dashdash=yes ;; 879 880 -bindir | --bindir | --bindi | --bind | --bin | --bi) 881 ac_prev=bindir ;; 882 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 883 bindir=$ac_optarg ;; 884 885 -build | --build | --buil | --bui | --bu) 886 ac_prev=build_alias ;; 887 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 888 build_alias=$ac_optarg ;; 889 890 -cache-file | --cache-file | --cache-fil | --cache-fi \ 891 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 892 ac_prev=cache_file ;; 893 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 894 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 895 cache_file=$ac_optarg ;; 896 897 --config-cache | -C) 898 cache_file=config.cache ;; 899 900 -datadir | --datadir | --datadi | --datad) 901 ac_prev=datadir ;; 902 -datadir=* | --datadir=* | --datadi=* | --datad=*) 903 datadir=$ac_optarg ;; 904 905 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 906 | --dataroo | --dataro | --datar) 907 ac_prev=datarootdir ;; 908 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 909 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 910 datarootdir=$ac_optarg ;; 911 912 -disable-* | --disable-*) 913 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 914 # Reject names that are not valid shell variable names. 915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 916 as_fn_error $? "invalid feature name: '$ac_useropt'" 917 ac_useropt_orig=$ac_useropt 918 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 919 case $ac_user_opts in 920 *" 921"enable_$ac_useropt" 922"*) ;; 923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 924 ac_unrecognized_sep=', ';; 925 esac 926 eval enable_$ac_useropt=no ;; 927 928 -docdir | --docdir | --docdi | --doc | --do) 929 ac_prev=docdir ;; 930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 931 docdir=$ac_optarg ;; 932 933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 934 ac_prev=dvidir ;; 935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 936 dvidir=$ac_optarg ;; 937 938 -enable-* | --enable-*) 939 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 940 # Reject names that are not valid shell variable names. 941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 942 as_fn_error $? "invalid feature name: '$ac_useropt'" 943 ac_useropt_orig=$ac_useropt 944 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 945 case $ac_user_opts in 946 *" 947"enable_$ac_useropt" 948"*) ;; 949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 950 ac_unrecognized_sep=', ';; 951 esac 952 eval enable_$ac_useropt=\$ac_optarg ;; 953 954 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 955 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 956 | --exec | --exe | --ex) 957 ac_prev=exec_prefix ;; 958 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 959 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 960 | --exec=* | --exe=* | --ex=*) 961 exec_prefix=$ac_optarg ;; 962 963 -gas | --gas | --ga | --g) 964 # Obsolete; use --with-gas. 965 with_gas=yes ;; 966 967 -help | --help | --hel | --he | -h) 968 ac_init_help=long ;; 969 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 970 ac_init_help=recursive ;; 971 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 972 ac_init_help=short ;; 973 974 -host | --host | --hos | --ho) 975 ac_prev=host_alias ;; 976 -host=* | --host=* | --hos=* | --ho=*) 977 host_alias=$ac_optarg ;; 978 979 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 980 ac_prev=htmldir ;; 981 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 982 | --ht=*) 983 htmldir=$ac_optarg ;; 984 985 -includedir | --includedir | --includedi | --included | --include \ 986 | --includ | --inclu | --incl | --inc) 987 ac_prev=includedir ;; 988 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 989 | --includ=* | --inclu=* | --incl=* | --inc=*) 990 includedir=$ac_optarg ;; 991 992 -infodir | --infodir | --infodi | --infod | --info | --inf) 993 ac_prev=infodir ;; 994 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 995 infodir=$ac_optarg ;; 996 997 -libdir | --libdir | --libdi | --libd) 998 ac_prev=libdir ;; 999 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1000 libdir=$ac_optarg ;; 1001 1002 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1003 | --libexe | --libex | --libe) 1004 ac_prev=libexecdir ;; 1005 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1006 | --libexe=* | --libex=* | --libe=*) 1007 libexecdir=$ac_optarg ;; 1008 1009 -localedir | --localedir | --localedi | --localed | --locale) 1010 ac_prev=localedir ;; 1011 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1012 localedir=$ac_optarg ;; 1013 1014 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1015 | --localstate | --localstat | --localsta | --localst | --locals) 1016 ac_prev=localstatedir ;; 1017 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1018 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1019 localstatedir=$ac_optarg ;; 1020 1021 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1022 ac_prev=mandir ;; 1023 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1024 mandir=$ac_optarg ;; 1025 1026 -nfp | --nfp | --nf) 1027 # Obsolete; use --without-fp. 1028 with_fp=no ;; 1029 1030 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1031 | --no-cr | --no-c | -n) 1032 no_create=yes ;; 1033 1034 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1035 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1036 no_recursion=yes ;; 1037 1038 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1039 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1040 | --oldin | --oldi | --old | --ol | --o) 1041 ac_prev=oldincludedir ;; 1042 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1043 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1044 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1045 oldincludedir=$ac_optarg ;; 1046 1047 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1048 ac_prev=prefix ;; 1049 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1050 prefix=$ac_optarg ;; 1051 1052 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1053 | --program-pre | --program-pr | --program-p) 1054 ac_prev=program_prefix ;; 1055 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1056 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1057 program_prefix=$ac_optarg ;; 1058 1059 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1060 | --program-suf | --program-su | --program-s) 1061 ac_prev=program_suffix ;; 1062 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1063 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1064 program_suffix=$ac_optarg ;; 1065 1066 -program-transform-name | --program-transform-name \ 1067 | --program-transform-nam | --program-transform-na \ 1068 | --program-transform-n | --program-transform- \ 1069 | --program-transform | --program-transfor \ 1070 | --program-transfo | --program-transf \ 1071 | --program-trans | --program-tran \ 1072 | --progr-tra | --program-tr | --program-t) 1073 ac_prev=program_transform_name ;; 1074 -program-transform-name=* | --program-transform-name=* \ 1075 | --program-transform-nam=* | --program-transform-na=* \ 1076 | --program-transform-n=* | --program-transform-=* \ 1077 | --program-transform=* | --program-transfor=* \ 1078 | --program-transfo=* | --program-transf=* \ 1079 | --program-trans=* | --program-tran=* \ 1080 | --progr-tra=* | --program-tr=* | --program-t=*) 1081 program_transform_name=$ac_optarg ;; 1082 1083 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1084 ac_prev=pdfdir ;; 1085 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1086 pdfdir=$ac_optarg ;; 1087 1088 -psdir | --psdir | --psdi | --psd | --ps) 1089 ac_prev=psdir ;; 1090 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1091 psdir=$ac_optarg ;; 1092 1093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1094 | -silent | --silent | --silen | --sile | --sil) 1095 silent=yes ;; 1096 1097 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1098 | --runstate | --runstat | --runsta | --runst | --runs \ 1099 | --run | --ru | --r) 1100 ac_prev=runstatedir ;; 1101 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1102 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1103 | --run=* | --ru=* | --r=*) 1104 runstatedir=$ac_optarg ;; 1105 1106 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1107 ac_prev=sbindir ;; 1108 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1109 | --sbi=* | --sb=*) 1110 sbindir=$ac_optarg ;; 1111 1112 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1113 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1114 | --sharedst | --shareds | --shared | --share | --shar \ 1115 | --sha | --sh) 1116 ac_prev=sharedstatedir ;; 1117 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1118 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1119 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1120 | --sha=* | --sh=*) 1121 sharedstatedir=$ac_optarg ;; 1122 1123 -site | --site | --sit) 1124 ac_prev=site ;; 1125 -site=* | --site=* | --sit=*) 1126 site=$ac_optarg ;; 1127 1128 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1129 ac_prev=srcdir ;; 1130 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1131 srcdir=$ac_optarg ;; 1132 1133 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1134 | --syscon | --sysco | --sysc | --sys | --sy) 1135 ac_prev=sysconfdir ;; 1136 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1137 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1138 sysconfdir=$ac_optarg ;; 1139 1140 -target | --target | --targe | --targ | --tar | --ta | --t) 1141 ac_prev=target_alias ;; 1142 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1143 target_alias=$ac_optarg ;; 1144 1145 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1146 verbose=yes ;; 1147 1148 -version | --version | --versio | --versi | --vers | -V) 1149 ac_init_version=: ;; 1150 1151 -with-* | --with-*) 1152 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1153 # Reject names that are not valid shell variable names. 1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1155 as_fn_error $? "invalid package name: '$ac_useropt'" 1156 ac_useropt_orig=$ac_useropt 1157 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1158 case $ac_user_opts in 1159 *" 1160"with_$ac_useropt" 1161"*) ;; 1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1163 ac_unrecognized_sep=', ';; 1164 esac 1165 eval with_$ac_useropt=\$ac_optarg ;; 1166 1167 -without-* | --without-*) 1168 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1169 # Reject names that are not valid shell variable names. 1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1171 as_fn_error $? "invalid package name: '$ac_useropt'" 1172 ac_useropt_orig=$ac_useropt 1173 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1174 case $ac_user_opts in 1175 *" 1176"with_$ac_useropt" 1177"*) ;; 1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1179 ac_unrecognized_sep=', ';; 1180 esac 1181 eval with_$ac_useropt=no ;; 1182 1183 --x) 1184 # Obsolete; use --with-x. 1185 with_x=yes ;; 1186 1187 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1188 | --x-incl | --x-inc | --x-in | --x-i) 1189 ac_prev=x_includes ;; 1190 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1191 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1192 x_includes=$ac_optarg ;; 1193 1194 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1195 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1196 ac_prev=x_libraries ;; 1197 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1198 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1199 x_libraries=$ac_optarg ;; 1200 1201 -*) as_fn_error $? "unrecognized option: '$ac_option' 1202Try '$0 --help' for more information" 1203 ;; 1204 1205 *=*) 1206 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1207 # Reject names that are not valid shell variable names. 1208 case $ac_envvar in #( 1209 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1210 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1211 esac 1212 eval $ac_envvar=\$ac_optarg 1213 export $ac_envvar ;; 1214 1215 *) 1216 # FIXME: should be removed in autoconf 3.0. 1217 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1218 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1219 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1220 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1221 ;; 1222 1223 esac 1224done 1225 1226if test -n "$ac_prev"; then 1227 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1228 as_fn_error $? "missing argument to $ac_option" 1229fi 1230 1231if test -n "$ac_unrecognized_opts"; then 1232 case $enable_option_checking in 1233 no) ;; 1234 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1235 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1236 esac 1237fi 1238 1239# Check all directory arguments for consistency. 1240for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1241 datadir sysconfdir sharedstatedir localstatedir includedir \ 1242 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1243 libdir localedir mandir runstatedir 1244do 1245 eval ac_val=\$$ac_var 1246 # Remove trailing slashes. 1247 case $ac_val in 1248 */ ) 1249 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1250 eval $ac_var=\$ac_val;; 1251 esac 1252 # Be sure to have absolute directory names. 1253 case $ac_val in 1254 [\\/$]* | ?:[\\/]* ) continue;; 1255 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1256 esac 1257 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1258done 1259 1260# There might be people who depend on the old broken behavior: '$host' 1261# used to hold the argument of --host etc. 1262# FIXME: To remove some day. 1263build=$build_alias 1264host=$host_alias 1265target=$target_alias 1266 1267# FIXME: To remove some day. 1268if test "x$host_alias" != x; then 1269 if test "x$build_alias" = x; then 1270 cross_compiling=maybe 1271 elif test "x$build_alias" != "x$host_alias"; then 1272 cross_compiling=yes 1273 fi 1274fi 1275 1276ac_tool_prefix= 1277test -n "$host_alias" && ac_tool_prefix=$host_alias- 1278 1279test "$silent" = yes && exec 6>/dev/null 1280 1281 1282ac_pwd=`pwd` && test -n "$ac_pwd" && 1283ac_ls_di=`ls -di .` && 1284ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1285 as_fn_error $? "working directory cannot be determined" 1286test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1287 as_fn_error $? "pwd does not report name of working directory" 1288 1289 1290# Find the source files, if location was not specified. 1291if test -z "$srcdir"; then 1292 ac_srcdir_defaulted=yes 1293 # Try the directory containing this script, then the parent directory. 1294 ac_confdir=`$as_dirname -- "$as_myself" || 1295$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1296 X"$as_myself" : 'X\(//\)[^/]' \| \ 1297 X"$as_myself" : 'X\(//\)$' \| \ 1298 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1299printf "%s\n" X"$as_myself" | 1300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1301 s//\1/ 1302 q 1303 } 1304 /^X\(\/\/\)[^/].*/{ 1305 s//\1/ 1306 q 1307 } 1308 /^X\(\/\/\)$/{ 1309 s//\1/ 1310 q 1311 } 1312 /^X\(\/\).*/{ 1313 s//\1/ 1314 q 1315 } 1316 s/.*/./; q'` 1317 srcdir=$ac_confdir 1318 if test ! -r "$srcdir/$ac_unique_file"; then 1319 srcdir=.. 1320 fi 1321else 1322 ac_srcdir_defaulted=no 1323fi 1324if test ! -r "$srcdir/$ac_unique_file"; then 1325 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1326 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1327fi 1328ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1329ac_abs_confdir=`( 1330 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1331 pwd)` 1332# When building in place, set srcdir=. 1333if test "$ac_abs_confdir" = "$ac_pwd"; then 1334 srcdir=. 1335fi 1336# Remove unnecessary trailing slashes from srcdir. 1337# Double slashes in file names in object file debugging info 1338# mess up M-x gdb in Emacs. 1339case $srcdir in 1340*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1341esac 1342for ac_var in $ac_precious_vars; do 1343 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1344 eval ac_env_${ac_var}_value=\$${ac_var} 1345 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1346 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1347done 1348 1349# 1350# Report the --help message. 1351# 1352if test "$ac_init_help" = "long"; then 1353 # Omit some internal or obsolete options to make the list less imposing. 1354 # This message is too long to be a string in the A/UX 3.1 sh. 1355 cat <<_ACEOF 1356'configure' configures bitmap 1.1.1 to adapt to many kinds of systems. 1357 1358Usage: $0 [OPTION]... [VAR=VALUE]... 1359 1360To assign environment variables (e.g., CC, CFLAGS...), specify them as 1361VAR=VALUE. See below for descriptions of some of the useful variables. 1362 1363Defaults for the options are specified in brackets. 1364 1365Configuration: 1366 -h, --help display this help and exit 1367 --help=short display options specific to this package 1368 --help=recursive display the short help of all the included packages 1369 -V, --version display version information and exit 1370 -q, --quiet, --silent do not print 'checking ...' messages 1371 --cache-file=FILE cache test results in FILE [disabled] 1372 -C, --config-cache alias for '--cache-file=config.cache' 1373 -n, --no-create do not create output files 1374 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1375 1376Installation directories: 1377 --prefix=PREFIX install architecture-independent files in PREFIX 1378 [$ac_default_prefix] 1379 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1380 [PREFIX] 1381 1382By default, 'make install' will install all the files in 1383'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1384an installation prefix other than '$ac_default_prefix' using '--prefix', 1385for instance '--prefix=\$HOME'. 1386 1387For better control, use the options below. 1388 1389Fine tuning of the installation directories: 1390 --bindir=DIR user executables [EPREFIX/bin] 1391 --sbindir=DIR system admin executables [EPREFIX/sbin] 1392 --libexecdir=DIR program executables [EPREFIX/libexec] 1393 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1394 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1395 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1396 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1397 --libdir=DIR object code libraries [EPREFIX/lib] 1398 --includedir=DIR C header files [PREFIX/include] 1399 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1400 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1401 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1402 --infodir=DIR info documentation [DATAROOTDIR/info] 1403 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1404 --mandir=DIR man documentation [DATAROOTDIR/man] 1405 --docdir=DIR documentation root [DATAROOTDIR/doc/bitmap] 1406 --htmldir=DIR html documentation [DOCDIR] 1407 --dvidir=DIR dvi documentation [DOCDIR] 1408 --pdfdir=DIR pdf documentation [DOCDIR] 1409 --psdir=DIR ps documentation [DOCDIR] 1410_ACEOF 1411 1412 cat <<\_ACEOF 1413 1414Program names: 1415 --program-prefix=PREFIX prepend PREFIX to installed program names 1416 --program-suffix=SUFFIX append SUFFIX to installed program names 1417 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1418 1419System types: 1420 --build=BUILD configure for building on BUILD [guessed] 1421 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1422_ACEOF 1423fi 1424 1425if test -n "$ac_init_help"; then 1426 case $ac_init_help in 1427 short | recursive ) echo "Configuration of bitmap 1.1.1:";; 1428 esac 1429 cat <<\_ACEOF 1430 1431Optional Features: 1432 --disable-option-checking ignore unrecognized --enable/--with options 1433 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1434 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1435 --enable-silent-rules less verbose build output (undo: "make V=1") 1436 --disable-silent-rules verbose build output (undo: "make V=0") 1437 --enable-dependency-tracking 1438 do not reject slow dependency extractors 1439 --disable-dependency-tracking 1440 speeds up one-time build 1441 --disable-selective-werror 1442 Turn off selective compiler errors. (default: 1443 enabled) 1444 --enable-strict-compilation 1445 Enable all warnings from compiler and make them 1446 errors (default: disabled) 1447 --disable-largefile omit support for large files 1448 --enable-year2038 support timestamps after 2038 1449 1450Optional Packages: 1451 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1452 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1453 --with-appdefaultdir=<pathname> 1454 specify directory for app-defaults files (default is 1455 autodetected) 1456 1457Some influential environment variables: 1458 CC C compiler command 1459 CFLAGS C compiler flags 1460 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1461 nonstandard directory <lib dir> 1462 LIBS libraries to pass to the linker, e.g. -l<library> 1463 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1464 you have headers in a nonstandard directory <include dir> 1465 PKG_CONFIG path to pkg-config utility 1466 PKG_CONFIG_PATH 1467 directories to add to pkg-config's search path 1468 PKG_CONFIG_LIBDIR 1469 path overriding pkg-config's built-in search path 1470 BMTOA_CFLAGS 1471 C compiler flags for BMTOA, overriding pkg-config 1472 BMTOA_LIBS linker flags for BMTOA, overriding pkg-config 1473 ATOBM_CFLAGS 1474 C compiler flags for ATOBM, overriding pkg-config 1475 ATOBM_LIBS linker flags for ATOBM, overriding pkg-config 1476 BITMAP_CFLAGS 1477 C compiler flags for BITMAP, overriding pkg-config 1478 BITMAP_LIBS linker flags for BITMAP, overriding pkg-config 1479 APPDEFS_CFLAGS 1480 C compiler flags for APPDEFS, overriding pkg-config 1481 APPDEFS_LIBS 1482 linker flags for APPDEFS, overriding pkg-config 1483 1484Use these variables to override the choices made by 'configure' or to help 1485it to find libraries and programs with nonstandard names/locations. 1486 1487Report bugs to <https://gitlab.freedesktop.org/xorg/app/bitmap/issues>. 1488_ACEOF 1489ac_status=$? 1490fi 1491 1492if test "$ac_init_help" = "recursive"; then 1493 # If there are subdirs, report their specific --help. 1494 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1495 test -d "$ac_dir" || 1496 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1497 continue 1498 ac_builddir=. 1499 1500case "$ac_dir" in 1501.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1502*) 1503 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1504 # A ".." for each directory in $ac_dir_suffix. 1505 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1506 case $ac_top_builddir_sub in 1507 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1508 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1509 esac ;; 1510esac 1511ac_abs_top_builddir=$ac_pwd 1512ac_abs_builddir=$ac_pwd$ac_dir_suffix 1513# for backward compatibility: 1514ac_top_builddir=$ac_top_build_prefix 1515 1516case $srcdir in 1517 .) # We are building in place. 1518 ac_srcdir=. 1519 ac_top_srcdir=$ac_top_builddir_sub 1520 ac_abs_top_srcdir=$ac_pwd ;; 1521 [\\/]* | ?:[\\/]* ) # Absolute name. 1522 ac_srcdir=$srcdir$ac_dir_suffix; 1523 ac_top_srcdir=$srcdir 1524 ac_abs_top_srcdir=$srcdir ;; 1525 *) # Relative name. 1526 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1527 ac_top_srcdir=$ac_top_build_prefix$srcdir 1528 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1529esac 1530ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1531 1532 cd "$ac_dir" || { ac_status=$?; continue; } 1533 # Check for configure.gnu first; this name is used for a wrapper for 1534 # Metaconfig's "Configure" on case-insensitive file systems. 1535 if test -f "$ac_srcdir/configure.gnu"; then 1536 echo && 1537 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1538 elif test -f "$ac_srcdir/configure"; then 1539 echo && 1540 $SHELL "$ac_srcdir/configure" --help=recursive 1541 else 1542 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1543 fi || ac_status=$? 1544 cd "$ac_pwd" || { ac_status=$?; break; } 1545 done 1546fi 1547 1548test -n "$ac_init_help" && exit $ac_status 1549if $ac_init_version; then 1550 cat <<\_ACEOF 1551bitmap configure 1.1.1 1552generated by GNU Autoconf 2.72 1553 1554Copyright (C) 2023 Free Software Foundation, Inc. 1555This configure script is free software; the Free Software Foundation 1556gives unlimited permission to copy, distribute and modify it. 1557_ACEOF 1558 exit 1559fi 1560 1561## ------------------------ ## 1562## Autoconf initialization. ## 1563## ------------------------ ## 1564 1565# ac_fn_c_try_compile LINENO 1566# -------------------------- 1567# Try to compile conftest.$ac_ext, and return whether this succeeded. 1568ac_fn_c_try_compile () 1569{ 1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1571 rm -f conftest.$ac_objext conftest.beam 1572 if { { ac_try="$ac_compile" 1573case "(($ac_try" in 1574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1575 *) ac_try_echo=$ac_try;; 1576esac 1577eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1578printf "%s\n" "$ac_try_echo"; } >&5 1579 (eval "$ac_compile") 2>conftest.err 1580 ac_status=$? 1581 if test -s conftest.err; then 1582 grep -v '^ *+' conftest.err >conftest.er1 1583 cat conftest.er1 >&5 1584 mv -f conftest.er1 conftest.err 1585 fi 1586 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1587 test $ac_status = 0; } && { 1588 test -z "$ac_c_werror_flag" || 1589 test ! -s conftest.err 1590 } && test -s conftest.$ac_objext 1591then : 1592 ac_retval=0 1593else case e in #( 1594 e) printf "%s\n" "$as_me: failed program was:" >&5 1595sed 's/^/| /' conftest.$ac_ext >&5 1596 1597 ac_retval=1 ;; 1598esac 1599fi 1600 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1601 as_fn_set_status $ac_retval 1602 1603} # ac_fn_c_try_compile 1604 1605# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1606# ------------------------------------------------------------------ 1607# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1608# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1609ac_fn_check_decl () 1610{ 1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1612 as_decl_name=`echo $2|sed 's/ *(.*//'` 1613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1614printf %s "checking whether $as_decl_name is declared... " >&6; } 1615if eval test \${$3+y} 1616then : 1617 printf %s "(cached) " >&6 1618else case e in #( 1619 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1620 eval ac_save_FLAGS=\$$6 1621 as_fn_append $6 " $5" 1622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1623/* end confdefs.h. */ 1624$4 1625int 1626main (void) 1627{ 1628#ifndef $as_decl_name 1629#ifdef __cplusplus 1630 (void) $as_decl_use; 1631#else 1632 (void) $as_decl_name; 1633#endif 1634#endif 1635 1636 ; 1637 return 0; 1638} 1639_ACEOF 1640if ac_fn_c_try_compile "$LINENO" 1641then : 1642 eval "$3=yes" 1643else case e in #( 1644 e) eval "$3=no" ;; 1645esac 1646fi 1647rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1648 eval $6=\$ac_save_FLAGS 1649 ;; 1650esac 1651fi 1652eval ac_res=\$$3 1653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1654printf "%s\n" "$ac_res" >&6; } 1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1656 1657} # ac_fn_check_decl 1658 1659# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1660# ------------------------------------------------------- 1661# Tests whether HEADER exists and can be compiled using the include files in 1662# INCLUDES, setting the cache variable VAR accordingly. 1663ac_fn_c_check_header_compile () 1664{ 1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1667printf %s "checking for $2... " >&6; } 1668if eval test \${$3+y} 1669then : 1670 printf %s "(cached) " >&6 1671else case e in #( 1672 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1673/* end confdefs.h. */ 1674$4 1675#include <$2> 1676_ACEOF 1677if ac_fn_c_try_compile "$LINENO" 1678then : 1679 eval "$3=yes" 1680else case e in #( 1681 e) eval "$3=no" ;; 1682esac 1683fi 1684rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1685esac 1686fi 1687eval ac_res=\$$3 1688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1689printf "%s\n" "$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. 1697ac_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.beam conftest$ac_exeext 1701 if { { ac_try="$ac_link" 1702case "(($ac_try" in 1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1704 *) ac_try_echo=$ac_try;; 1705esac 1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1707printf "%s\n" "$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 printf "%s\n" "$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 } 1723then : 1724 ac_retval=0 1725else case e in #( 1726 e) printf "%s\n" "$as_me: failed program was:" >&5 1727sed 's/^/| /' conftest.$ac_ext >&5 1728 1729 ac_retval=1 ;; 1730esac 1731fi 1732 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1733 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1734 # interfere with the next link command; also delete a directory that is 1735 # left behind by Apple's compiler. We do this before executing the actions. 1736 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1738 as_fn_set_status $ac_retval 1739 1740} # ac_fn_c_try_link 1741 1742# ac_fn_c_check_func LINENO FUNC VAR 1743# ---------------------------------- 1744# Tests whether FUNC exists, setting the cache variable VAR accordingly 1745ac_fn_c_check_func () 1746{ 1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1749printf %s "checking for $2... " >&6; } 1750if eval test \${$3+y} 1751then : 1752 printf %s "(cached) " >&6 1753else case e in #( 1754 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1755/* end confdefs.h. */ 1756/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1757 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1758#define $2 innocuous_$2 1759 1760/* System header to define __stub macros and hopefully few prototypes, 1761 which can conflict with char $2 (void); below. */ 1762 1763#include <limits.h> 1764#undef $2 1765 1766/* Override any GCC internal prototype to avoid an error. 1767 Use char because int might match the return type of a GCC 1768 builtin and then its argument prototype would still apply. */ 1769#ifdef __cplusplus 1770extern "C" 1771#endif 1772char $2 (void); 1773/* The GNU C library defines this for functions which it implements 1774 to always fail with ENOSYS. Some functions are actually named 1775 something starting with __ and the normal name is an alias. */ 1776#if defined __stub_$2 || defined __stub___$2 1777choke me 1778#endif 1779 1780int 1781main (void) 1782{ 1783return $2 (); 1784 ; 1785 return 0; 1786} 1787_ACEOF 1788if ac_fn_c_try_link "$LINENO" 1789then : 1790 eval "$3=yes" 1791else case e in #( 1792 e) eval "$3=no" ;; 1793esac 1794fi 1795rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1796 conftest$ac_exeext conftest.$ac_ext ;; 1797esac 1798fi 1799eval ac_res=\$$3 1800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1801printf "%s\n" "$ac_res" >&6; } 1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1803 1804} # ac_fn_c_check_func 1805ac_configure_args_raw= 1806for ac_arg 1807do 1808 case $ac_arg in 1809 *\'*) 1810 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1811 esac 1812 as_fn_append ac_configure_args_raw " '$ac_arg'" 1813done 1814 1815case $ac_configure_args_raw in 1816 *$as_nl*) 1817 ac_safe_unquote= ;; 1818 *) 1819 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1820 ac_unsafe_a="$ac_unsafe_z#~" 1821 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1822 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1823esac 1824 1825cat >config.log <<_ACEOF 1826This file contains any messages produced by compilers while 1827running configure, to aid debugging if configure makes a mistake. 1828 1829It was created by bitmap $as_me 1.1.1, which was 1830generated by GNU Autoconf 2.72. Invocation command line was 1831 1832 $ $0$ac_configure_args_raw 1833 1834_ACEOF 1835exec 5>>config.log 1836{ 1837cat <<_ASUNAME 1838## --------- ## 1839## Platform. ## 1840## --------- ## 1841 1842hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1843uname -m = `(uname -m) 2>/dev/null || echo unknown` 1844uname -r = `(uname -r) 2>/dev/null || echo unknown` 1845uname -s = `(uname -s) 2>/dev/null || echo unknown` 1846uname -v = `(uname -v) 2>/dev/null || echo unknown` 1847 1848/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1849/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1850 1851/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1852/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1853/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1854/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1855/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1856/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1857/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1858 1859_ASUNAME 1860 1861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1862for as_dir in $PATH 1863do 1864 IFS=$as_save_IFS 1865 case $as_dir in #((( 1866 '') as_dir=./ ;; 1867 */) ;; 1868 *) as_dir=$as_dir/ ;; 1869 esac 1870 printf "%s\n" "PATH: $as_dir" 1871 done 1872IFS=$as_save_IFS 1873 1874} >&5 1875 1876cat >&5 <<_ACEOF 1877 1878 1879## ----------- ## 1880## Core tests. ## 1881## ----------- ## 1882 1883_ACEOF 1884 1885 1886# Keep a trace of the command line. 1887# Strip out --no-create and --no-recursion so they do not pile up. 1888# Strip out --silent because we don't want to record it for future runs. 1889# Also quote any args containing shell meta-characters. 1890# Make two passes to allow for proper duplicate-argument suppression. 1891ac_configure_args= 1892ac_configure_args0= 1893ac_configure_args1= 1894ac_must_keep_next=false 1895for ac_pass in 1 2 1896do 1897 for ac_arg 1898 do 1899 case $ac_arg in 1900 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1901 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1902 | -silent | --silent | --silen | --sile | --sil) 1903 continue ;; 1904 *\'*) 1905 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1906 esac 1907 case $ac_pass in 1908 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1909 2) 1910 as_fn_append ac_configure_args1 " '$ac_arg'" 1911 if test $ac_must_keep_next = true; then 1912 ac_must_keep_next=false # Got value, back to normal. 1913 else 1914 case $ac_arg in 1915 *=* | --config-cache | -C | -disable-* | --disable-* \ 1916 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1917 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1918 | -with-* | --with-* | -without-* | --without-* | --x) 1919 case "$ac_configure_args0 " in 1920 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1921 esac 1922 ;; 1923 -* ) ac_must_keep_next=true ;; 1924 esac 1925 fi 1926 as_fn_append ac_configure_args " '$ac_arg'" 1927 ;; 1928 esac 1929 done 1930done 1931{ ac_configure_args0=; unset ac_configure_args0;} 1932{ ac_configure_args1=; unset ac_configure_args1;} 1933 1934# When interrupted or exit'd, cleanup temporary files, and complete 1935# config.log. We remove comments because anyway the quotes in there 1936# would cause problems or look ugly. 1937# WARNING: Use '\'' to represent an apostrophe within the trap. 1938# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1939trap 'exit_status=$? 1940 # Sanitize IFS. 1941 IFS=" "" $as_nl" 1942 # Save into config.log some information that might help in debugging. 1943 { 1944 echo 1945 1946 printf "%s\n" "## ---------------- ## 1947## Cache variables. ## 1948## ---------------- ##" 1949 echo 1950 # The following way of writing the cache mishandles newlines in values, 1951( 1952 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1953 eval ac_val=\$$ac_var 1954 case $ac_val in #( 1955 *${as_nl}*) 1956 case $ac_var in #( 1957 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1958printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1959 esac 1960 case $ac_var in #( 1961 _ | IFS | as_nl) ;; #( 1962 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1963 *) { eval $ac_var=; unset $ac_var;} ;; 1964 esac ;; 1965 esac 1966 done 1967 (set) 2>&1 | 1968 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1969 *${as_nl}ac_space=\ *) 1970 sed -n \ 1971 "s/'\''/'\''\\\\'\'''\''/g; 1972 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1973 ;; #( 1974 *) 1975 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1976 ;; 1977 esac | 1978 sort 1979) 1980 echo 1981 1982 printf "%s\n" "## ----------------- ## 1983## Output variables. ## 1984## ----------------- ##" 1985 echo 1986 for ac_var in $ac_subst_vars 1987 do 1988 eval ac_val=\$$ac_var 1989 case $ac_val in 1990 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1991 esac 1992 printf "%s\n" "$ac_var='\''$ac_val'\''" 1993 done | sort 1994 echo 1995 1996 if test -n "$ac_subst_files"; then 1997 printf "%s\n" "## ------------------- ## 1998## File substitutions. ## 1999## ------------------- ##" 2000 echo 2001 for ac_var in $ac_subst_files 2002 do 2003 eval ac_val=\$$ac_var 2004 case $ac_val in 2005 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2006 esac 2007 printf "%s\n" "$ac_var='\''$ac_val'\''" 2008 done | sort 2009 echo 2010 fi 2011 2012 if test -s confdefs.h; then 2013 printf "%s\n" "## ----------- ## 2014## confdefs.h. ## 2015## ----------- ##" 2016 echo 2017 cat confdefs.h 2018 echo 2019 fi 2020 test "$ac_signal" != 0 && 2021 printf "%s\n" "$as_me: caught signal $ac_signal" 2022 printf "%s\n" "$as_me: exit $exit_status" 2023 } >&5 2024 rm -f core *.core core.conftest.* && 2025 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2026 exit $exit_status 2027' 0 2028for ac_signal in 1 2 13 15; do 2029 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2030done 2031ac_signal=0 2032 2033# confdefs.h avoids OS command line length limits that DEFS can exceed. 2034rm -f -r conftest* confdefs.h 2035 2036printf "%s\n" "/* confdefs.h */" > confdefs.h 2037 2038# Predefined preprocessor variables. 2039 2040printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2041 2042printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2043 2044printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2045 2046printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2047 2048printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2049 2050printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2051 2052 2053# Let the site file select an alternate cache file if it wants to. 2054# Prefer an explicitly selected file to automatically selected ones. 2055if test -n "$CONFIG_SITE"; then 2056 ac_site_files="$CONFIG_SITE" 2057elif test "x$prefix" != xNONE; then 2058 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2059else 2060 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2061fi 2062 2063for ac_site_file in $ac_site_files 2064do 2065 case $ac_site_file in #( 2066 */*) : 2067 ;; #( 2068 *) : 2069 ac_site_file=./$ac_site_file ;; 2070esac 2071 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2073printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2074 sed 's/^/| /' "$ac_site_file" >&5 2075 . "$ac_site_file" \ 2076 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2077printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2078as_fn_error $? "failed to load site script $ac_site_file 2079See 'config.log' for more details" "$LINENO" 5; } 2080 fi 2081done 2082 2083if test -r "$cache_file"; then 2084 # Some versions of bash will fail to source /dev/null (special files 2085 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2086 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2088printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2089 case $cache_file in 2090 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2091 *) . "./$cache_file";; 2092 esac 2093 fi 2094else 2095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2096printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2097 >$cache_file 2098fi 2099 2100# Test code for whether the C compiler supports C89 (global declarations) 2101ac_c_conftest_c89_globals=' 2102/* Does the compiler advertise C89 conformance? 2103 Do not test the value of __STDC__, because some compilers set it to 0 2104 while being otherwise adequately conformant. */ 2105#if !defined __STDC__ 2106# error "Compiler does not advertise C89 conformance" 2107#endif 2108 2109#include <stddef.h> 2110#include <stdarg.h> 2111struct stat; 2112/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2113struct buf { int x; }; 2114struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2115static char *e (char **p, int i) 2116{ 2117 return p[i]; 2118} 2119static char *f (char * (*g) (char **, int), char **p, ...) 2120{ 2121 char *s; 2122 va_list v; 2123 va_start (v,p); 2124 s = g (p, va_arg (v,int)); 2125 va_end (v); 2126 return s; 2127} 2128 2129/* C89 style stringification. */ 2130#define noexpand_stringify(a) #a 2131const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2132 2133/* C89 style token pasting. Exercises some of the corner cases that 2134 e.g. old MSVC gets wrong, but not very hard. */ 2135#define noexpand_concat(a,b) a##b 2136#define expand_concat(a,b) noexpand_concat(a,b) 2137extern int vA; 2138extern int vbee; 2139#define aye A 2140#define bee B 2141int *pvA = &expand_concat(v,aye); 2142int *pvbee = &noexpand_concat(v,bee); 2143 2144/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2145 function prototypes and stuff, but not \xHH hex character constants. 2146 These do not provoke an error unfortunately, instead are silently treated 2147 as an "x". The following induces an error, until -std is added to get 2148 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2149 array size at least. It is necessary to write \x00 == 0 to get something 2150 that is true only with -std. */ 2151int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2152 2153/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2154 inside strings and character constants. */ 2155#define FOO(x) '\''x'\'' 2156int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2157 2158int test (int i, double x); 2159struct s1 {int (*f) (int a);}; 2160struct s2 {int (*f) (double a);}; 2161int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2162 int, int);' 2163 2164# Test code for whether the C compiler supports C89 (body of main). 2165ac_c_conftest_c89_main=' 2166ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2167' 2168 2169# Test code for whether the C compiler supports C99 (global declarations) 2170ac_c_conftest_c99_globals=' 2171/* Does the compiler advertise C99 conformance? */ 2172#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2173# error "Compiler does not advertise C99 conformance" 2174#endif 2175 2176// See if C++-style comments work. 2177 2178#include <stdbool.h> 2179extern int puts (const char *); 2180extern int printf (const char *, ...); 2181extern int dprintf (int, const char *, ...); 2182extern void *malloc (size_t); 2183extern void free (void *); 2184 2185// Check varargs macros. These examples are taken from C99 6.10.3.5. 2186// dprintf is used instead of fprintf to avoid needing to declare 2187// FILE and stderr. 2188#define debug(...) dprintf (2, __VA_ARGS__) 2189#define showlist(...) puts (#__VA_ARGS__) 2190#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2191static void 2192test_varargs_macros (void) 2193{ 2194 int x = 1234; 2195 int y = 5678; 2196 debug ("Flag"); 2197 debug ("X = %d\n", x); 2198 showlist (The first, second, and third items.); 2199 report (x>y, "x is %d but y is %d", x, y); 2200} 2201 2202// Check long long types. 2203#define BIG64 18446744073709551615ull 2204#define BIG32 4294967295ul 2205#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2206#if !BIG_OK 2207 #error "your preprocessor is broken" 2208#endif 2209#if BIG_OK 2210#else 2211 #error "your preprocessor is broken" 2212#endif 2213static long long int bignum = -9223372036854775807LL; 2214static unsigned long long int ubignum = BIG64; 2215 2216struct incomplete_array 2217{ 2218 int datasize; 2219 double data[]; 2220}; 2221 2222struct named_init { 2223 int number; 2224 const wchar_t *name; 2225 double average; 2226}; 2227 2228typedef const char *ccp; 2229 2230static inline int 2231test_restrict (ccp restrict text) 2232{ 2233 // Iterate through items via the restricted pointer. 2234 // Also check for declarations in for loops. 2235 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2236 continue; 2237 return 0; 2238} 2239 2240// Check varargs and va_copy. 2241static bool 2242test_varargs (const char *format, ...) 2243{ 2244 va_list args; 2245 va_start (args, format); 2246 va_list args_copy; 2247 va_copy (args_copy, args); 2248 2249 const char *str = ""; 2250 int number = 0; 2251 float fnumber = 0; 2252 2253 while (*format) 2254 { 2255 switch (*format++) 2256 { 2257 case '\''s'\'': // string 2258 str = va_arg (args_copy, const char *); 2259 break; 2260 case '\''d'\'': // int 2261 number = va_arg (args_copy, int); 2262 break; 2263 case '\''f'\'': // float 2264 fnumber = va_arg (args_copy, double); 2265 break; 2266 default: 2267 break; 2268 } 2269 } 2270 va_end (args_copy); 2271 va_end (args); 2272 2273 return *str && number && fnumber; 2274} 2275' 2276 2277# Test code for whether the C compiler supports C99 (body of main). 2278ac_c_conftest_c99_main=' 2279 // Check bool. 2280 _Bool success = false; 2281 success |= (argc != 0); 2282 2283 // Check restrict. 2284 if (test_restrict ("String literal") == 0) 2285 success = true; 2286 char *restrict newvar = "Another string"; 2287 2288 // Check varargs. 2289 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2290 test_varargs_macros (); 2291 2292 // Check flexible array members. 2293 struct incomplete_array *ia = 2294 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2295 ia->datasize = 10; 2296 for (int i = 0; i < ia->datasize; ++i) 2297 ia->data[i] = i * 1.234; 2298 // Work around memory leak warnings. 2299 free (ia); 2300 2301 // Check named initializers. 2302 struct named_init ni = { 2303 .number = 34, 2304 .name = L"Test wide string", 2305 .average = 543.34343, 2306 }; 2307 2308 ni.number = 58; 2309 2310 int dynamic_array[ni.number]; 2311 dynamic_array[0] = argv[0][0]; 2312 dynamic_array[ni.number - 1] = 543; 2313 2314 // work around unused variable warnings 2315 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2316 || dynamic_array[ni.number - 1] != 543); 2317' 2318 2319# Test code for whether the C compiler supports C11 (global declarations) 2320ac_c_conftest_c11_globals=' 2321/* Does the compiler advertise C11 conformance? */ 2322#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2323# error "Compiler does not advertise C11 conformance" 2324#endif 2325 2326// Check _Alignas. 2327char _Alignas (double) aligned_as_double; 2328char _Alignas (0) no_special_alignment; 2329extern char aligned_as_int; 2330char _Alignas (0) _Alignas (int) aligned_as_int; 2331 2332// Check _Alignof. 2333enum 2334{ 2335 int_alignment = _Alignof (int), 2336 int_array_alignment = _Alignof (int[100]), 2337 char_alignment = _Alignof (char) 2338}; 2339_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2340 2341// Check _Noreturn. 2342int _Noreturn does_not_return (void) { for (;;) continue; } 2343 2344// Check _Static_assert. 2345struct test_static_assert 2346{ 2347 int x; 2348 _Static_assert (sizeof (int) <= sizeof (long int), 2349 "_Static_assert does not work in struct"); 2350 long int y; 2351}; 2352 2353// Check UTF-8 literals. 2354#define u8 syntax error! 2355char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2356 2357// Check duplicate typedefs. 2358typedef long *long_ptr; 2359typedef long int *long_ptr; 2360typedef long_ptr long_ptr; 2361 2362// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2363struct anonymous 2364{ 2365 union { 2366 struct { int i; int j; }; 2367 struct { int k; long int l; } w; 2368 }; 2369 int m; 2370} v1; 2371' 2372 2373# Test code for whether the C compiler supports C11 (body of main). 2374ac_c_conftest_c11_main=' 2375 _Static_assert ((offsetof (struct anonymous, i) 2376 == offsetof (struct anonymous, w.k)), 2377 "Anonymous union alignment botch"); 2378 v1.i = 2; 2379 v1.w.k = 5; 2380 ok |= v1.i != 5; 2381' 2382 2383# Test code for whether the C compiler supports C11 (complete). 2384ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2385${ac_c_conftest_c99_globals} 2386${ac_c_conftest_c11_globals} 2387 2388int 2389main (int argc, char **argv) 2390{ 2391 int ok = 0; 2392 ${ac_c_conftest_c89_main} 2393 ${ac_c_conftest_c99_main} 2394 ${ac_c_conftest_c11_main} 2395 return ok; 2396} 2397" 2398 2399# Test code for whether the C compiler supports C99 (complete). 2400ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2401${ac_c_conftest_c99_globals} 2402 2403int 2404main (int argc, char **argv) 2405{ 2406 int ok = 0; 2407 ${ac_c_conftest_c89_main} 2408 ${ac_c_conftest_c99_main} 2409 return ok; 2410} 2411" 2412 2413# Test code for whether the C compiler supports C89 (complete). 2414ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2415 2416int 2417main (int argc, char **argv) 2418{ 2419 int ok = 0; 2420 ${ac_c_conftest_c89_main} 2421 return ok; 2422} 2423" 2424 2425as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2426as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2427as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2428as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2429as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2430as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2431as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2432as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2433as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2434 2435# Auxiliary files required by this configure script. 2436ac_aux_files="config.guess config.sub compile missing install-sh" 2437 2438# Locations in which to look for auxiliary files. 2439ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2440 2441# Search for a directory containing all of the required auxiliary files, 2442# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2443# If we don't find one directory that contains all the files we need, 2444# we report the set of missing files from the *first* directory in 2445# $ac_aux_dir_candidates and give up. 2446ac_missing_aux_files="" 2447ac_first_candidate=: 2448printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2450as_found=false 2451for as_dir in $ac_aux_dir_candidates 2452do 2453 IFS=$as_save_IFS 2454 case $as_dir in #((( 2455 '') as_dir=./ ;; 2456 */) ;; 2457 *) as_dir=$as_dir/ ;; 2458 esac 2459 as_found=: 2460 2461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2462 ac_aux_dir_found=yes 2463 ac_install_sh= 2464 for ac_aux in $ac_aux_files 2465 do 2466 # As a special case, if "install-sh" is required, that requirement 2467 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2468 # and $ac_install_sh is set appropriately for whichever one is found. 2469 if test x"$ac_aux" = x"install-sh" 2470 then 2471 if test -f "${as_dir}install-sh"; then 2472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2473 ac_install_sh="${as_dir}install-sh -c" 2474 elif test -f "${as_dir}install.sh"; then 2475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2476 ac_install_sh="${as_dir}install.sh -c" 2477 elif test -f "${as_dir}shtool"; then 2478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2479 ac_install_sh="${as_dir}shtool install -c" 2480 else 2481 ac_aux_dir_found=no 2482 if $ac_first_candidate; then 2483 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2484 else 2485 break 2486 fi 2487 fi 2488 else 2489 if test -f "${as_dir}${ac_aux}"; then 2490 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2491 else 2492 ac_aux_dir_found=no 2493 if $ac_first_candidate; then 2494 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2495 else 2496 break 2497 fi 2498 fi 2499 fi 2500 done 2501 if test "$ac_aux_dir_found" = yes; then 2502 ac_aux_dir="$as_dir" 2503 break 2504 fi 2505 ac_first_candidate=false 2506 2507 as_found=false 2508done 2509IFS=$as_save_IFS 2510if $as_found 2511then : 2512 2513else case e in #( 2514 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2515esac 2516fi 2517 2518 2519# These three variables are undocumented and unsupported, 2520# and are intended to be withdrawn in a future Autoconf release. 2521# They can cause serious problems if a builder's source tree is in a directory 2522# whose full name contains unusual characters. 2523if test -f "${ac_aux_dir}config.guess"; then 2524 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2525fi 2526if test -f "${ac_aux_dir}config.sub"; then 2527 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2528fi 2529if test -f "$ac_aux_dir/configure"; then 2530 ac_configure="$SHELL ${ac_aux_dir}configure" 2531fi 2532 2533# Check that the precious variables saved in the cache have kept the same 2534# value. 2535ac_cache_corrupted=false 2536for ac_var in $ac_precious_vars; do 2537 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2538 eval ac_new_set=\$ac_env_${ac_var}_set 2539 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2540 eval ac_new_val=\$ac_env_${ac_var}_value 2541 case $ac_old_set,$ac_new_set in 2542 set,) 2543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2544printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2545 ac_cache_corrupted=: ;; 2546 ,set) 2547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2548printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2549 ac_cache_corrupted=: ;; 2550 ,);; 2551 *) 2552 if test "x$ac_old_val" != "x$ac_new_val"; then 2553 # differences in whitespace do not lead to failure. 2554 ac_old_val_w=`echo x $ac_old_val` 2555 ac_new_val_w=`echo x $ac_new_val` 2556 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2558printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2559 ac_cache_corrupted=: 2560 else 2561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2562printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2563 eval $ac_var=\$ac_old_val 2564 fi 2565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2566printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2568printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2569 fi;; 2570 esac 2571 # Pass precious variables to config.status. 2572 if test "$ac_new_set" = set; then 2573 case $ac_new_val in 2574 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2575 *) ac_arg=$ac_var=$ac_new_val ;; 2576 esac 2577 case " $ac_configure_args " in 2578 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2579 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2580 esac 2581 fi 2582done 2583if $ac_cache_corrupted; then 2584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2585printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2587printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2588 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2589 and start over" "$LINENO" 5 2590fi 2591## -------------------- ## 2592## Main body of script. ## 2593## -------------------- ## 2594 2595ac_ext=c 2596ac_cpp='$CPP $CPPFLAGS' 2597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2599ac_compiler_gnu=$ac_cv_c_compiler_gnu 2600 2601 2602 2603ac_config_headers="$ac_config_headers config.h" 2604 2605 2606# Initialize Automake 2607am__api_version='1.16' 2608 2609 2610 2611 # Find a good install program. We prefer a C program (faster), 2612# so one script is as good as another. But avoid the broken or 2613# incompatible versions: 2614# SysV /etc/install, /usr/sbin/install 2615# SunOS /usr/etc/install 2616# IRIX /sbin/install 2617# AIX /bin/install 2618# AmigaOS /C/install, which installs bootblocks on floppy discs 2619# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2620# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2621# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2622# OS/2's system install, which has a completely different semantic 2623# ./install, which can be erroneously created by make from ./install.sh. 2624# Reject install programs that cannot install multiple files. 2625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2626printf %s "checking for a BSD-compatible install... " >&6; } 2627if test -z "$INSTALL"; then 2628if test ${ac_cv_path_install+y} 2629then : 2630 printf %s "(cached) " >&6 2631else case e in #( 2632 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2633for as_dir in $PATH 2634do 2635 IFS=$as_save_IFS 2636 case $as_dir in #((( 2637 '') as_dir=./ ;; 2638 */) ;; 2639 *) as_dir=$as_dir/ ;; 2640 esac 2641 # Account for fact that we put trailing slashes in our PATH walk. 2642case $as_dir in #(( 2643 ./ | /[cC]/* | \ 2644 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2645 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2646 /usr/ucb/* ) ;; 2647 *) 2648 # OSF1 and SCO ODT 3.0 have their own names for install. 2649 # Don't use installbsd from OSF since it installs stuff as root 2650 # by default. 2651 for ac_prog in ginstall scoinst install; do 2652 for ac_exec_ext in '' $ac_executable_extensions; do 2653 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2654 if test $ac_prog = install && 2655 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2656 # AIX install. It has an incompatible calling convention. 2657 : 2658 elif test $ac_prog = install && 2659 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2660 # program-specific install script used by HP pwplus--don't use. 2661 : 2662 else 2663 rm -rf conftest.one conftest.two conftest.dir 2664 echo one > conftest.one 2665 echo two > conftest.two 2666 mkdir conftest.dir 2667 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2668 test -s conftest.one && test -s conftest.two && 2669 test -s conftest.dir/conftest.one && 2670 test -s conftest.dir/conftest.two 2671 then 2672 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2673 break 3 2674 fi 2675 fi 2676 fi 2677 done 2678 done 2679 ;; 2680esac 2681 2682 done 2683IFS=$as_save_IFS 2684 2685rm -rf conftest.one conftest.two conftest.dir 2686 ;; 2687esac 2688fi 2689 if test ${ac_cv_path_install+y}; then 2690 INSTALL=$ac_cv_path_install 2691 else 2692 # As a last resort, use the slow shell script. Don't cache a 2693 # value for INSTALL within a source directory, because that will 2694 # break other packages using the cache if that directory is 2695 # removed, or if the value is a relative name. 2696 INSTALL=$ac_install_sh 2697 fi 2698fi 2699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2700printf "%s\n" "$INSTALL" >&6; } 2701 2702# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2703# It thinks the first close brace ends the variable substitution. 2704test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2705 2706test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2707 2708test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2709 2710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2711printf %s "checking whether build environment is sane... " >&6; } 2712# Reject unsafe characters in $srcdir or the absolute working directory 2713# name. Accept space and tab only in the latter. 2714am_lf=' 2715' 2716case `pwd` in 2717 *[\\\"\#\$\&\'\`$am_lf]*) 2718 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2719esac 2720case $srcdir in 2721 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2722 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2723esac 2724 2725# Do 'set' in a subshell so we don't clobber the current shell's 2726# arguments. Must try -L first in case configure is actually a 2727# symlink; some systems play weird games with the mod time of symlinks 2728# (eg FreeBSD returns the mod time of the symlink's containing 2729# directory). 2730if ( 2731 am_has_slept=no 2732 for am_try in 1 2; do 2733 echo "timestamp, slept: $am_has_slept" > conftest.file 2734 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2735 if test "$*" = "X"; then 2736 # -L didn't work. 2737 set X `ls -t "$srcdir/configure" conftest.file` 2738 fi 2739 if test "$*" != "X $srcdir/configure conftest.file" \ 2740 && test "$*" != "X conftest.file $srcdir/configure"; then 2741 2742 # If neither matched, then we have a broken ls. This can happen 2743 # if, for instance, CONFIG_SHELL is bash and it inherits a 2744 # broken ls alias from the environment. This has actually 2745 # happened. Such a system could not be considered "sane". 2746 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2747 alias in your environment" "$LINENO" 5 2748 fi 2749 if test "$2" = conftest.file || test $am_try -eq 2; then 2750 break 2751 fi 2752 # Just in case. 2753 sleep 1 2754 am_has_slept=yes 2755 done 2756 test "$2" = conftest.file 2757 ) 2758then 2759 # Ok. 2760 : 2761else 2762 as_fn_error $? "newly created file is older than distributed files! 2763Check your system clock" "$LINENO" 5 2764fi 2765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2766printf "%s\n" "yes" >&6; } 2767# If we didn't sleep, we still need to ensure time stamps of config.status and 2768# generated files are strictly newer. 2769am_sleep_pid= 2770if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2771 ( sleep 1 ) & 2772 am_sleep_pid=$! 2773fi 2774 2775rm -f conftest.file 2776 2777test "$program_prefix" != NONE && 2778 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2779# Use a double $ so make ignores it. 2780test "$program_suffix" != NONE && 2781 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2782# Double any \ or $. 2783# By default was 's,x,x', remove it if useless. 2784ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2785program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2786 2787 2788# Expand $ac_aux_dir to an absolute path. 2789am_aux_dir=`cd "$ac_aux_dir" && pwd` 2790 2791 2792 if test x"${MISSING+set}" != xset; then 2793 MISSING="\${SHELL} '$am_aux_dir/missing'" 2794fi 2795# Use eval to expand $SHELL 2796if eval "$MISSING --is-lightweight"; then 2797 am_missing_run="$MISSING " 2798else 2799 am_missing_run= 2800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2801printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2802fi 2803 2804if test x"${install_sh+set}" != xset; then 2805 case $am_aux_dir in 2806 *\ * | *\ *) 2807 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2808 *) 2809 install_sh="\${SHELL} $am_aux_dir/install-sh" 2810 esac 2811fi 2812 2813# Installed binaries are usually stripped using 'strip' when the user 2814# run "make install-strip". However 'strip' might not be the right 2815# tool to use in cross-compilation environments, therefore Automake 2816# will honor the 'STRIP' environment variable to overrule this program. 2817if test "$cross_compiling" != no; then 2818 if test -n "$ac_tool_prefix"; then 2819 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2820set dummy ${ac_tool_prefix}strip; ac_word=$2 2821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2822printf %s "checking for $ac_word... " >&6; } 2823if test ${ac_cv_prog_STRIP+y} 2824then : 2825 printf %s "(cached) " >&6 2826else case e in #( 2827 e) if test -n "$STRIP"; then 2828 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2829else 2830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2831for as_dir in $PATH 2832do 2833 IFS=$as_save_IFS 2834 case $as_dir in #((( 2835 '') as_dir=./ ;; 2836 */) ;; 2837 *) as_dir=$as_dir/ ;; 2838 esac 2839 for ac_exec_ext in '' $ac_executable_extensions; do 2840 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2841 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2842 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2843 break 2 2844 fi 2845done 2846 done 2847IFS=$as_save_IFS 2848 2849fi ;; 2850esac 2851fi 2852STRIP=$ac_cv_prog_STRIP 2853if test -n "$STRIP"; then 2854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2855printf "%s\n" "$STRIP" >&6; } 2856else 2857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2858printf "%s\n" "no" >&6; } 2859fi 2860 2861 2862fi 2863if test -z "$ac_cv_prog_STRIP"; then 2864 ac_ct_STRIP=$STRIP 2865 # Extract the first word of "strip", so it can be a program name with args. 2866set dummy strip; ac_word=$2 2867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2868printf %s "checking for $ac_word... " >&6; } 2869if test ${ac_cv_prog_ac_ct_STRIP+y} 2870then : 2871 printf %s "(cached) " >&6 2872else case e in #( 2873 e) if test -n "$ac_ct_STRIP"; then 2874 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2875else 2876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2877for as_dir in $PATH 2878do 2879 IFS=$as_save_IFS 2880 case $as_dir in #((( 2881 '') as_dir=./ ;; 2882 */) ;; 2883 *) as_dir=$as_dir/ ;; 2884 esac 2885 for ac_exec_ext in '' $ac_executable_extensions; do 2886 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2887 ac_cv_prog_ac_ct_STRIP="strip" 2888 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2889 break 2 2890 fi 2891done 2892 done 2893IFS=$as_save_IFS 2894 2895fi ;; 2896esac 2897fi 2898ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2899if test -n "$ac_ct_STRIP"; then 2900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2901printf "%s\n" "$ac_ct_STRIP" >&6; } 2902else 2903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2904printf "%s\n" "no" >&6; } 2905fi 2906 2907 if test "x$ac_ct_STRIP" = x; then 2908 STRIP=":" 2909 else 2910 case $cross_compiling:$ac_tool_warned in 2911yes:) 2912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2913printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2914ac_tool_warned=yes ;; 2915esac 2916 STRIP=$ac_ct_STRIP 2917 fi 2918else 2919 STRIP="$ac_cv_prog_STRIP" 2920fi 2921 2922fi 2923INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2924 2925 2926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2927printf %s "checking for a race-free mkdir -p... " >&6; } 2928if test -z "$MKDIR_P"; then 2929 if test ${ac_cv_path_mkdir+y} 2930then : 2931 printf %s "(cached) " >&6 2932else case e in #( 2933 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2934for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2935do 2936 IFS=$as_save_IFS 2937 case $as_dir in #((( 2938 '') as_dir=./ ;; 2939 */) ;; 2940 *) as_dir=$as_dir/ ;; 2941 esac 2942 for ac_prog in mkdir gmkdir; do 2943 for ac_exec_ext in '' $ac_executable_extensions; do 2944 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2945 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2946 'mkdir ('*'coreutils) '* | \ 2947 *'BusyBox '* | \ 2948 'mkdir (fileutils) '4.1*) 2949 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2950 break 3;; 2951 esac 2952 done 2953 done 2954 done 2955IFS=$as_save_IFS 2956 ;; 2957esac 2958fi 2959 2960 test -d ./--version && rmdir ./--version 2961 if test ${ac_cv_path_mkdir+y}; then 2962 MKDIR_P="$ac_cv_path_mkdir -p" 2963 else 2964 # As a last resort, use plain mkdir -p, 2965 # in the hope it doesn't have the bugs of ancient mkdir. 2966 MKDIR_P='mkdir -p' 2967 fi 2968fi 2969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2970printf "%s\n" "$MKDIR_P" >&6; } 2971 2972for ac_prog in gawk mawk nawk awk 2973do 2974 # Extract the first word of "$ac_prog", so it can be a program name with args. 2975set dummy $ac_prog; ac_word=$2 2976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2977printf %s "checking for $ac_word... " >&6; } 2978if test ${ac_cv_prog_AWK+y} 2979then : 2980 printf %s "(cached) " >&6 2981else case e in #( 2982 e) if test -n "$AWK"; then 2983 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2984else 2985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2986for as_dir in $PATH 2987do 2988 IFS=$as_save_IFS 2989 case $as_dir in #((( 2990 '') as_dir=./ ;; 2991 */) ;; 2992 *) as_dir=$as_dir/ ;; 2993 esac 2994 for ac_exec_ext in '' $ac_executable_extensions; do 2995 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2996 ac_cv_prog_AWK="$ac_prog" 2997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2998 break 2 2999 fi 3000done 3001 done 3002IFS=$as_save_IFS 3003 3004fi ;; 3005esac 3006fi 3007AWK=$ac_cv_prog_AWK 3008if test -n "$AWK"; then 3009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3010printf "%s\n" "$AWK" >&6; } 3011else 3012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3013printf "%s\n" "no" >&6; } 3014fi 3015 3016 3017 test -n "$AWK" && break 3018done 3019 3020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3021printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3022set x ${MAKE-make} 3023ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3024if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3025then : 3026 printf %s "(cached) " >&6 3027else case e in #( 3028 e) cat >conftest.make <<\_ACEOF 3029SHELL = /bin/sh 3030all: 3031 @echo '@@@%%%=$(MAKE)=@@@%%%' 3032_ACEOF 3033# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3034case `${MAKE-make} -f conftest.make 2>/dev/null` in 3035 *@@@%%%=?*=@@@%%%*) 3036 eval ac_cv_prog_make_${ac_make}_set=yes;; 3037 *) 3038 eval ac_cv_prog_make_${ac_make}_set=no;; 3039esac 3040rm -f conftest.make ;; 3041esac 3042fi 3043if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3045printf "%s\n" "yes" >&6; } 3046 SET_MAKE= 3047else 3048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3049printf "%s\n" "no" >&6; } 3050 SET_MAKE="MAKE=${MAKE-make}" 3051fi 3052 3053rm -rf .tst 2>/dev/null 3054mkdir .tst 2>/dev/null 3055if test -d .tst; then 3056 am__leading_dot=. 3057else 3058 am__leading_dot=_ 3059fi 3060rmdir .tst 2>/dev/null 3061 3062# Check whether --enable-silent-rules was given. 3063if test ${enable_silent_rules+y} 3064then : 3065 enableval=$enable_silent_rules; 3066fi 3067 3068case $enable_silent_rules in # ((( 3069 yes) AM_DEFAULT_VERBOSITY=0;; 3070 no) AM_DEFAULT_VERBOSITY=1;; 3071 *) AM_DEFAULT_VERBOSITY=1;; 3072esac 3073am_make=${MAKE-make} 3074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3075printf %s "checking whether $am_make supports nested variables... " >&6; } 3076if test ${am_cv_make_support_nested_variables+y} 3077then : 3078 printf %s "(cached) " >&6 3079else case e in #( 3080 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 3081BAR0=false 3082BAR1=true 3083V=1 3084am__doit: 3085 @$(TRUE) 3086.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3087 am_cv_make_support_nested_variables=yes 3088else 3089 am_cv_make_support_nested_variables=no 3090fi ;; 3091esac 3092fi 3093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3094printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3095if test $am_cv_make_support_nested_variables = yes; then 3096 AM_V='$(V)' 3097 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3098else 3099 AM_V=$AM_DEFAULT_VERBOSITY 3100 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3101fi 3102AM_BACKSLASH='\' 3103 3104if test "`cd $srcdir && pwd`" != "`pwd`"; then 3105 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3106 # is not polluted with repeated "-I." 3107 am__isrc=' -I$(srcdir)' 3108 # test to see if srcdir already configured 3109 if test -f $srcdir/config.status; then 3110 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3111 fi 3112fi 3113 3114# test whether we have cygpath 3115if test -z "$CYGPATH_W"; then 3116 if (cygpath --version) >/dev/null 2>/dev/null; then 3117 CYGPATH_W='cygpath -w' 3118 else 3119 CYGPATH_W=echo 3120 fi 3121fi 3122 3123 3124# Define the identity of the package. 3125 PACKAGE='bitmap' 3126 VERSION='1.1.1' 3127 3128 3129printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3130 3131 3132printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3133 3134# Some tools Automake needs. 3135 3136ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3137 3138 3139AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3140 3141 3142AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3143 3144 3145AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3146 3147 3148MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3149 3150# For better backward compatibility. To be removed once Automake 1.9.x 3151# dies out for good. For more background, see: 3152# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3153# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3154mkdir_p='$(MKDIR_P)' 3155 3156# We need awk for the "check" target (and possibly the TAP driver). The 3157# system "awk" is bad on some platforms. 3158# Always define AMTAR for backward compatibility. Yes, it's still used 3159# in the wild :-( We should find a proper way to deprecate it ... 3160AMTAR='$${TAR-tar}' 3161 3162 3163# We'll loop over all known methods to create a tar archive until one works. 3164_am_tools='gnutar pax cpio none' 3165 3166am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3167 3168 3169 3170 3171 3172# Variables for tags utilities; see am/tags.am 3173if test -z "$CTAGS"; then 3174 CTAGS=ctags 3175fi 3176 3177if test -z "$ETAGS"; then 3178 ETAGS=etags 3179fi 3180 3181if test -z "$CSCOPE"; then 3182 CSCOPE=cscope 3183fi 3184 3185 3186 3187# POSIX will say in a future version that running "rm -f" with no argument 3188# is OK; and we want to be able to make that assumption in our Makefile 3189# recipes. So use an aggressive probe to check that the usage we want is 3190# actually supported "in the wild" to an acceptable degree. 3191# See automake bug#10828. 3192# To make any issue more visible, cause the running configure to be aborted 3193# by default if the 'rm' program in use doesn't match our expectations; the 3194# user can still override this though. 3195if rm -f && rm -fr && rm -rf; then : OK; else 3196 cat >&2 <<'END' 3197Oops! 3198 3199Your 'rm' program seems unable to run without file operands specified 3200on the command line, even when the '-f' option is present. This is contrary 3201to the behaviour of most rm programs out there, and not conforming with 3202the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3203 3204Please tell bug-automake@gnu.org about your system, including the value 3205of your $PATH and any error possibly output before this message. This 3206can help us improve future automake versions. 3207 3208END 3209 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3210 echo 'Configuration will proceed anyway, since you have set the' >&2 3211 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3212 echo >&2 3213 else 3214 cat >&2 <<'END' 3215Aborting the configuration process, to ensure you take notice of the issue. 3216 3217You can download and install GNU coreutils to get an 'rm' implementation 3218that behaves properly: <https://www.gnu.org/software/coreutils/>. 3219 3220If you want to complete the configuration process using your problematic 3221'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3222to "yes", and re-run configure. 3223 3224END 3225 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3226 fi 3227fi 3228 3229 3230# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251DEPDIR="${am__leading_dot}deps" 3252 3253ac_config_commands="$ac_config_commands depfiles" 3254 3255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3256printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3257cat > confinc.mk << 'END' 3258am__doit: 3259 @echo this is the am__doit target >confinc.out 3260.PHONY: am__doit 3261END 3262am__include="#" 3263am__quote= 3264# BSD make does it like this. 3265echo '.include "confinc.mk" # ignored' > confmf.BSD 3266# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3267echo 'include confinc.mk # ignored' > confmf.GNU 3268_am_result=no 3269for s in GNU BSD; do 3270 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3271 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3272 ac_status=$? 3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3274 (exit $ac_status); } 3275 case $?:`cat confinc.out 2>/dev/null` in #( 3276 '0:this is the am__doit target') : 3277 case $s in #( 3278 BSD) : 3279 am__include='.include' am__quote='"' ;; #( 3280 *) : 3281 am__include='include' am__quote='' ;; 3282esac ;; #( 3283 *) : 3284 ;; 3285esac 3286 if test "$am__include" != "#"; then 3287 _am_result="yes ($s style)" 3288 break 3289 fi 3290done 3291rm -f confinc.* confmf.* 3292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3293printf "%s\n" "${_am_result}" >&6; } 3294 3295# Check whether --enable-dependency-tracking was given. 3296if test ${enable_dependency_tracking+y} 3297then : 3298 enableval=$enable_dependency_tracking; 3299fi 3300 3301if test "x$enable_dependency_tracking" != xno; then 3302 am_depcomp="$ac_aux_dir/depcomp" 3303 AMDEPBACKSLASH='\' 3304 am__nodep='_no' 3305fi 3306 if test "x$enable_dependency_tracking" != xno; then 3307 AMDEP_TRUE= 3308 AMDEP_FALSE='#' 3309else 3310 AMDEP_TRUE='#' 3311 AMDEP_FALSE= 3312fi 3313 3314 3315ac_ext=c 3316ac_cpp='$CPP $CPPFLAGS' 3317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3319ac_compiler_gnu=$ac_cv_c_compiler_gnu 3320if test -n "$ac_tool_prefix"; then 3321 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3322set dummy ${ac_tool_prefix}gcc; ac_word=$2 3323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3324printf %s "checking for $ac_word... " >&6; } 3325if test ${ac_cv_prog_CC+y} 3326then : 3327 printf %s "(cached) " >&6 3328else case e in #( 3329 e) if test -n "$CC"; then 3330 ac_cv_prog_CC="$CC" # Let the user override the test. 3331else 3332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3333for as_dir in $PATH 3334do 3335 IFS=$as_save_IFS 3336 case $as_dir in #((( 3337 '') as_dir=./ ;; 3338 */) ;; 3339 *) as_dir=$as_dir/ ;; 3340 esac 3341 for ac_exec_ext in '' $ac_executable_extensions; do 3342 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3343 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3344 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3345 break 2 3346 fi 3347done 3348 done 3349IFS=$as_save_IFS 3350 3351fi ;; 3352esac 3353fi 3354CC=$ac_cv_prog_CC 3355if test -n "$CC"; then 3356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3357printf "%s\n" "$CC" >&6; } 3358else 3359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3360printf "%s\n" "no" >&6; } 3361fi 3362 3363 3364fi 3365if test -z "$ac_cv_prog_CC"; then 3366 ac_ct_CC=$CC 3367 # Extract the first word of "gcc", so it can be a program name with args. 3368set dummy gcc; ac_word=$2 3369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3370printf %s "checking for $ac_word... " >&6; } 3371if test ${ac_cv_prog_ac_ct_CC+y} 3372then : 3373 printf %s "(cached) " >&6 3374else case e in #( 3375 e) if test -n "$ac_ct_CC"; then 3376 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3377else 3378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3379for as_dir in $PATH 3380do 3381 IFS=$as_save_IFS 3382 case $as_dir in #((( 3383 '') as_dir=./ ;; 3384 */) ;; 3385 *) as_dir=$as_dir/ ;; 3386 esac 3387 for ac_exec_ext in '' $ac_executable_extensions; do 3388 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3389 ac_cv_prog_ac_ct_CC="gcc" 3390 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3391 break 2 3392 fi 3393done 3394 done 3395IFS=$as_save_IFS 3396 3397fi ;; 3398esac 3399fi 3400ac_ct_CC=$ac_cv_prog_ac_ct_CC 3401if test -n "$ac_ct_CC"; then 3402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3403printf "%s\n" "$ac_ct_CC" >&6; } 3404else 3405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3406printf "%s\n" "no" >&6; } 3407fi 3408 3409 if test "x$ac_ct_CC" = x; then 3410 CC="" 3411 else 3412 case $cross_compiling:$ac_tool_warned in 3413yes:) 3414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3415printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3416ac_tool_warned=yes ;; 3417esac 3418 CC=$ac_ct_CC 3419 fi 3420else 3421 CC="$ac_cv_prog_CC" 3422fi 3423 3424if test -z "$CC"; then 3425 if test -n "$ac_tool_prefix"; then 3426 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3427set dummy ${ac_tool_prefix}cc; ac_word=$2 3428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3429printf %s "checking for $ac_word... " >&6; } 3430if test ${ac_cv_prog_CC+y} 3431then : 3432 printf %s "(cached) " >&6 3433else case e in #( 3434 e) if test -n "$CC"; then 3435 ac_cv_prog_CC="$CC" # Let the user override the test. 3436else 3437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3438for as_dir in $PATH 3439do 3440 IFS=$as_save_IFS 3441 case $as_dir in #((( 3442 '') as_dir=./ ;; 3443 */) ;; 3444 *) as_dir=$as_dir/ ;; 3445 esac 3446 for ac_exec_ext in '' $ac_executable_extensions; do 3447 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3448 ac_cv_prog_CC="${ac_tool_prefix}cc" 3449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3450 break 2 3451 fi 3452done 3453 done 3454IFS=$as_save_IFS 3455 3456fi ;; 3457esac 3458fi 3459CC=$ac_cv_prog_CC 3460if test -n "$CC"; then 3461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3462printf "%s\n" "$CC" >&6; } 3463else 3464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3465printf "%s\n" "no" >&6; } 3466fi 3467 3468 3469 fi 3470fi 3471if test -z "$CC"; then 3472 # Extract the first word of "cc", so it can be a program name with args. 3473set dummy cc; ac_word=$2 3474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3475printf %s "checking for $ac_word... " >&6; } 3476if test ${ac_cv_prog_CC+y} 3477then : 3478 printf %s "(cached) " >&6 3479else case e in #( 3480 e) if test -n "$CC"; then 3481 ac_cv_prog_CC="$CC" # Let the user override the test. 3482else 3483 ac_prog_rejected=no 3484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3485for as_dir in $PATH 3486do 3487 IFS=$as_save_IFS 3488 case $as_dir in #((( 3489 '') as_dir=./ ;; 3490 */) ;; 3491 *) as_dir=$as_dir/ ;; 3492 esac 3493 for ac_exec_ext in '' $ac_executable_extensions; do 3494 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3495 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3496 ac_prog_rejected=yes 3497 continue 3498 fi 3499 ac_cv_prog_CC="cc" 3500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3501 break 2 3502 fi 3503done 3504 done 3505IFS=$as_save_IFS 3506 3507if test $ac_prog_rejected = yes; then 3508 # We found a bogon in the path, so make sure we never use it. 3509 set dummy $ac_cv_prog_CC 3510 shift 3511 if test $# != 0; then 3512 # We chose a different compiler from the bogus one. 3513 # However, it has the same basename, so the bogon will be chosen 3514 # first if we set CC to just the basename; use the full file name. 3515 shift 3516 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3517 fi 3518fi 3519fi ;; 3520esac 3521fi 3522CC=$ac_cv_prog_CC 3523if test -n "$CC"; then 3524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3525printf "%s\n" "$CC" >&6; } 3526else 3527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3528printf "%s\n" "no" >&6; } 3529fi 3530 3531 3532fi 3533if test -z "$CC"; then 3534 if test -n "$ac_tool_prefix"; then 3535 for ac_prog in cl.exe 3536 do 3537 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3538set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3540printf %s "checking for $ac_word... " >&6; } 3541if test ${ac_cv_prog_CC+y} 3542then : 3543 printf %s "(cached) " >&6 3544else case e in #( 3545 e) if test -n "$CC"; then 3546 ac_cv_prog_CC="$CC" # Let the user override the test. 3547else 3548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3549for as_dir in $PATH 3550do 3551 IFS=$as_save_IFS 3552 case $as_dir in #((( 3553 '') as_dir=./ ;; 3554 */) ;; 3555 *) as_dir=$as_dir/ ;; 3556 esac 3557 for ac_exec_ext in '' $ac_executable_extensions; do 3558 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3559 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3561 break 2 3562 fi 3563done 3564 done 3565IFS=$as_save_IFS 3566 3567fi ;; 3568esac 3569fi 3570CC=$ac_cv_prog_CC 3571if test -n "$CC"; then 3572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3573printf "%s\n" "$CC" >&6; } 3574else 3575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3576printf "%s\n" "no" >&6; } 3577fi 3578 3579 3580 test -n "$CC" && break 3581 done 3582fi 3583if test -z "$CC"; then 3584 ac_ct_CC=$CC 3585 for ac_prog in cl.exe 3586do 3587 # Extract the first word of "$ac_prog", so it can be a program name with args. 3588set dummy $ac_prog; ac_word=$2 3589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3590printf %s "checking for $ac_word... " >&6; } 3591if test ${ac_cv_prog_ac_ct_CC+y} 3592then : 3593 printf %s "(cached) " >&6 3594else case e in #( 3595 e) if test -n "$ac_ct_CC"; then 3596 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3597else 3598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3599for as_dir in $PATH 3600do 3601 IFS=$as_save_IFS 3602 case $as_dir in #((( 3603 '') as_dir=./ ;; 3604 */) ;; 3605 *) as_dir=$as_dir/ ;; 3606 esac 3607 for ac_exec_ext in '' $ac_executable_extensions; do 3608 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3609 ac_cv_prog_ac_ct_CC="$ac_prog" 3610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3611 break 2 3612 fi 3613done 3614 done 3615IFS=$as_save_IFS 3616 3617fi ;; 3618esac 3619fi 3620ac_ct_CC=$ac_cv_prog_ac_ct_CC 3621if test -n "$ac_ct_CC"; then 3622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3623printf "%s\n" "$ac_ct_CC" >&6; } 3624else 3625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3626printf "%s\n" "no" >&6; } 3627fi 3628 3629 3630 test -n "$ac_ct_CC" && break 3631done 3632 3633 if test "x$ac_ct_CC" = x; then 3634 CC="" 3635 else 3636 case $cross_compiling:$ac_tool_warned in 3637yes:) 3638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3639printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3640ac_tool_warned=yes ;; 3641esac 3642 CC=$ac_ct_CC 3643 fi 3644fi 3645 3646fi 3647if test -z "$CC"; then 3648 if test -n "$ac_tool_prefix"; then 3649 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3650set dummy ${ac_tool_prefix}clang; ac_word=$2 3651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3652printf %s "checking for $ac_word... " >&6; } 3653if test ${ac_cv_prog_CC+y} 3654then : 3655 printf %s "(cached) " >&6 3656else case e in #( 3657 e) if test -n "$CC"; then 3658 ac_cv_prog_CC="$CC" # Let the user override the test. 3659else 3660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3661for as_dir in $PATH 3662do 3663 IFS=$as_save_IFS 3664 case $as_dir in #((( 3665 '') as_dir=./ ;; 3666 */) ;; 3667 *) as_dir=$as_dir/ ;; 3668 esac 3669 for ac_exec_ext in '' $ac_executable_extensions; do 3670 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3671 ac_cv_prog_CC="${ac_tool_prefix}clang" 3672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3673 break 2 3674 fi 3675done 3676 done 3677IFS=$as_save_IFS 3678 3679fi ;; 3680esac 3681fi 3682CC=$ac_cv_prog_CC 3683if test -n "$CC"; then 3684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3685printf "%s\n" "$CC" >&6; } 3686else 3687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3688printf "%s\n" "no" >&6; } 3689fi 3690 3691 3692fi 3693if test -z "$ac_cv_prog_CC"; then 3694 ac_ct_CC=$CC 3695 # Extract the first word of "clang", so it can be a program name with args. 3696set dummy clang; ac_word=$2 3697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3698printf %s "checking for $ac_word... " >&6; } 3699if test ${ac_cv_prog_ac_ct_CC+y} 3700then : 3701 printf %s "(cached) " >&6 3702else case e in #( 3703 e) if test -n "$ac_ct_CC"; then 3704 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3705else 3706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3707for as_dir in $PATH 3708do 3709 IFS=$as_save_IFS 3710 case $as_dir in #((( 3711 '') as_dir=./ ;; 3712 */) ;; 3713 *) as_dir=$as_dir/ ;; 3714 esac 3715 for ac_exec_ext in '' $ac_executable_extensions; do 3716 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3717 ac_cv_prog_ac_ct_CC="clang" 3718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3719 break 2 3720 fi 3721done 3722 done 3723IFS=$as_save_IFS 3724 3725fi ;; 3726esac 3727fi 3728ac_ct_CC=$ac_cv_prog_ac_ct_CC 3729if test -n "$ac_ct_CC"; then 3730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3731printf "%s\n" "$ac_ct_CC" >&6; } 3732else 3733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3734printf "%s\n" "no" >&6; } 3735fi 3736 3737 if test "x$ac_ct_CC" = x; then 3738 CC="" 3739 else 3740 case $cross_compiling:$ac_tool_warned in 3741yes:) 3742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3743printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3744ac_tool_warned=yes ;; 3745esac 3746 CC=$ac_ct_CC 3747 fi 3748else 3749 CC="$ac_cv_prog_CC" 3750fi 3751 3752fi 3753 3754 3755test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3756printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3757as_fn_error $? "no acceptable C compiler found in \$PATH 3758See 'config.log' for more details" "$LINENO" 5; } 3759 3760# Provide some information about the compiler. 3761printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3762set X $ac_compile 3763ac_compiler=$2 3764for ac_option in --version -v -V -qversion -version; do 3765 { { ac_try="$ac_compiler $ac_option >&5" 3766case "(($ac_try" in 3767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3768 *) ac_try_echo=$ac_try;; 3769esac 3770eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3771printf "%s\n" "$ac_try_echo"; } >&5 3772 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3773 ac_status=$? 3774 if test -s conftest.err; then 3775 sed '10a\ 3776... rest of stderr output deleted ... 3777 10q' conftest.err >conftest.er1 3778 cat conftest.er1 >&5 3779 fi 3780 rm -f conftest.er1 conftest.err 3781 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3782 test $ac_status = 0; } 3783done 3784 3785cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3786/* end confdefs.h. */ 3787 3788int 3789main (void) 3790{ 3791 3792 ; 3793 return 0; 3794} 3795_ACEOF 3796ac_clean_files_save=$ac_clean_files 3797ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3798# Try to create an executable without -o first, disregard a.out. 3799# It will help us diagnose broken compilers, and finding out an intuition 3800# of exeext. 3801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3802printf %s "checking whether the C compiler works... " >&6; } 3803ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3804 3805# The possible output files: 3806ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3807 3808ac_rmfiles= 3809for ac_file in $ac_files 3810do 3811 case $ac_file in 3812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3813 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3814 esac 3815done 3816rm -f $ac_rmfiles 3817 3818if { { ac_try="$ac_link_default" 3819case "(($ac_try" in 3820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3821 *) ac_try_echo=$ac_try;; 3822esac 3823eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3824printf "%s\n" "$ac_try_echo"; } >&5 3825 (eval "$ac_link_default") 2>&5 3826 ac_status=$? 3827 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3828 test $ac_status = 0; } 3829then : 3830 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3831# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3832# in a Makefile. We should not override ac_cv_exeext if it was cached, 3833# so that the user can short-circuit this test for compilers unknown to 3834# Autoconf. 3835for ac_file in $ac_files '' 3836do 3837 test -f "$ac_file" || continue 3838 case $ac_file in 3839 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3840 ;; 3841 [ab].out ) 3842 # We found the default executable, but exeext='' is most 3843 # certainly right. 3844 break;; 3845 *.* ) 3846 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3847 then :; else 3848 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3849 fi 3850 # We set ac_cv_exeext here because the later test for it is not 3851 # safe: cross compilers may not add the suffix if given an '-o' 3852 # argument, so we may need to know it at that point already. 3853 # Even if this section looks crufty: it has the advantage of 3854 # actually working. 3855 break;; 3856 * ) 3857 break;; 3858 esac 3859done 3860test "$ac_cv_exeext" = no && ac_cv_exeext= 3861 3862else case e in #( 3863 e) ac_file='' ;; 3864esac 3865fi 3866if test -z "$ac_file" 3867then : 3868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3869printf "%s\n" "no" >&6; } 3870printf "%s\n" "$as_me: failed program was:" >&5 3871sed 's/^/| /' conftest.$ac_ext >&5 3872 3873{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3874printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3875as_fn_error 77 "C compiler cannot create executables 3876See 'config.log' for more details" "$LINENO" 5; } 3877else case e in #( 3878 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3879printf "%s\n" "yes" >&6; } ;; 3880esac 3881fi 3882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3883printf %s "checking for C compiler default output file name... " >&6; } 3884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3885printf "%s\n" "$ac_file" >&6; } 3886ac_exeext=$ac_cv_exeext 3887 3888rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3889ac_clean_files=$ac_clean_files_save 3890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3891printf %s "checking for suffix of executables... " >&6; } 3892if { { ac_try="$ac_link" 3893case "(($ac_try" in 3894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3895 *) ac_try_echo=$ac_try;; 3896esac 3897eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3898printf "%s\n" "$ac_try_echo"; } >&5 3899 (eval "$ac_link") 2>&5 3900 ac_status=$? 3901 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3902 test $ac_status = 0; } 3903then : 3904 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3905# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3906# work properly (i.e., refer to 'conftest.exe'), while it won't with 3907# 'rm'. 3908for ac_file in conftest.exe conftest conftest.*; do 3909 test -f "$ac_file" || continue 3910 case $ac_file in 3911 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3912 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3913 break;; 3914 * ) break;; 3915 esac 3916done 3917else case e in #( 3918 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3919printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3920as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3921See 'config.log' for more details" "$LINENO" 5; } ;; 3922esac 3923fi 3924rm -f conftest conftest$ac_cv_exeext 3925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3926printf "%s\n" "$ac_cv_exeext" >&6; } 3927 3928rm -f conftest.$ac_ext 3929EXEEXT=$ac_cv_exeext 3930ac_exeext=$EXEEXT 3931cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3932/* end confdefs.h. */ 3933#include <stdio.h> 3934int 3935main (void) 3936{ 3937FILE *f = fopen ("conftest.out", "w"); 3938 if (!f) 3939 return 1; 3940 return ferror (f) || fclose (f) != 0; 3941 3942 ; 3943 return 0; 3944} 3945_ACEOF 3946ac_clean_files="$ac_clean_files conftest.out" 3947# Check that the compiler produces executables we can run. If not, either 3948# the compiler is broken, or we cross compile. 3949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3950printf %s "checking whether we are cross compiling... " >&6; } 3951if test "$cross_compiling" != yes; then 3952 { { ac_try="$ac_link" 3953case "(($ac_try" in 3954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3955 *) ac_try_echo=$ac_try;; 3956esac 3957eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3958printf "%s\n" "$ac_try_echo"; } >&5 3959 (eval "$ac_link") 2>&5 3960 ac_status=$? 3961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3962 test $ac_status = 0; } 3963 if { ac_try='./conftest$ac_cv_exeext' 3964 { { case "(($ac_try" in 3965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3966 *) ac_try_echo=$ac_try;; 3967esac 3968eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3969printf "%s\n" "$ac_try_echo"; } >&5 3970 (eval "$ac_try") 2>&5 3971 ac_status=$? 3972 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3973 test $ac_status = 0; }; }; then 3974 cross_compiling=no 3975 else 3976 if test "$cross_compiling" = maybe; then 3977 cross_compiling=yes 3978 else 3979 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3980printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3981as_fn_error 77 "cannot run C compiled programs. 3982If you meant to cross compile, use '--host'. 3983See 'config.log' for more details" "$LINENO" 5; } 3984 fi 3985 fi 3986fi 3987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3988printf "%s\n" "$cross_compiling" >&6; } 3989 3990rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 3991 conftest.o conftest.obj conftest.out 3992ac_clean_files=$ac_clean_files_save 3993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3994printf %s "checking for suffix of object files... " >&6; } 3995if test ${ac_cv_objext+y} 3996then : 3997 printf %s "(cached) " >&6 3998else case e in #( 3999 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4000/* end confdefs.h. */ 4001 4002int 4003main (void) 4004{ 4005 4006 ; 4007 return 0; 4008} 4009_ACEOF 4010rm -f conftest.o conftest.obj 4011if { { ac_try="$ac_compile" 4012case "(($ac_try" in 4013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4014 *) ac_try_echo=$ac_try;; 4015esac 4016eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4017printf "%s\n" "$ac_try_echo"; } >&5 4018 (eval "$ac_compile") 2>&5 4019 ac_status=$? 4020 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4021 test $ac_status = 0; } 4022then : 4023 for ac_file in conftest.o conftest.obj conftest.*; do 4024 test -f "$ac_file" || continue; 4025 case $ac_file in 4026 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4027 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4028 break;; 4029 esac 4030done 4031else case e in #( 4032 e) printf "%s\n" "$as_me: failed program was:" >&5 4033sed 's/^/| /' conftest.$ac_ext >&5 4034 4035{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4036printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4037as_fn_error $? "cannot compute suffix of object files: cannot compile 4038See 'config.log' for more details" "$LINENO" 5; } ;; 4039esac 4040fi 4041rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4042esac 4043fi 4044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4045printf "%s\n" "$ac_cv_objext" >&6; } 4046OBJEXT=$ac_cv_objext 4047ac_objext=$OBJEXT 4048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4049printf %s "checking whether the compiler supports GNU C... " >&6; } 4050if test ${ac_cv_c_compiler_gnu+y} 4051then : 4052 printf %s "(cached) " >&6 4053else case e in #( 4054 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4055/* end confdefs.h. */ 4056 4057int 4058main (void) 4059{ 4060#ifndef __GNUC__ 4061 choke me 4062#endif 4063 4064 ; 4065 return 0; 4066} 4067_ACEOF 4068if ac_fn_c_try_compile "$LINENO" 4069then : 4070 ac_compiler_gnu=yes 4071else case e in #( 4072 e) ac_compiler_gnu=no ;; 4073esac 4074fi 4075rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4076ac_cv_c_compiler_gnu=$ac_compiler_gnu 4077 ;; 4078esac 4079fi 4080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4081printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4082ac_compiler_gnu=$ac_cv_c_compiler_gnu 4083 4084if test $ac_compiler_gnu = yes; then 4085 GCC=yes 4086else 4087 GCC= 4088fi 4089ac_test_CFLAGS=${CFLAGS+y} 4090ac_save_CFLAGS=$CFLAGS 4091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4092printf %s "checking whether $CC accepts -g... " >&6; } 4093if test ${ac_cv_prog_cc_g+y} 4094then : 4095 printf %s "(cached) " >&6 4096else case e in #( 4097 e) ac_save_c_werror_flag=$ac_c_werror_flag 4098 ac_c_werror_flag=yes 4099 ac_cv_prog_cc_g=no 4100 CFLAGS="-g" 4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4102/* end confdefs.h. */ 4103 4104int 4105main (void) 4106{ 4107 4108 ; 4109 return 0; 4110} 4111_ACEOF 4112if ac_fn_c_try_compile "$LINENO" 4113then : 4114 ac_cv_prog_cc_g=yes 4115else case e in #( 4116 e) CFLAGS="" 4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4118/* end confdefs.h. */ 4119 4120int 4121main (void) 4122{ 4123 4124 ; 4125 return 0; 4126} 4127_ACEOF 4128if ac_fn_c_try_compile "$LINENO" 4129then : 4130 4131else case e in #( 4132 e) ac_c_werror_flag=$ac_save_c_werror_flag 4133 CFLAGS="-g" 4134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4135/* end confdefs.h. */ 4136 4137int 4138main (void) 4139{ 4140 4141 ; 4142 return 0; 4143} 4144_ACEOF 4145if ac_fn_c_try_compile "$LINENO" 4146then : 4147 ac_cv_prog_cc_g=yes 4148fi 4149rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4150esac 4151fi 4152rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4153esac 4154fi 4155rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4156 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4157esac 4158fi 4159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4160printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4161if test $ac_test_CFLAGS; then 4162 CFLAGS=$ac_save_CFLAGS 4163elif test $ac_cv_prog_cc_g = yes; then 4164 if test "$GCC" = yes; then 4165 CFLAGS="-g -O2" 4166 else 4167 CFLAGS="-g" 4168 fi 4169else 4170 if test "$GCC" = yes; then 4171 CFLAGS="-O2" 4172 else 4173 CFLAGS= 4174 fi 4175fi 4176ac_prog_cc_stdc=no 4177if test x$ac_prog_cc_stdc = xno 4178then : 4179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4180printf %s "checking for $CC option to enable C11 features... " >&6; } 4181if test ${ac_cv_prog_cc_c11+y} 4182then : 4183 printf %s "(cached) " >&6 4184else case e in #( 4185 e) ac_cv_prog_cc_c11=no 4186ac_save_CC=$CC 4187cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4188/* end confdefs.h. */ 4189$ac_c_conftest_c11_program 4190_ACEOF 4191for ac_arg in '' -std=gnu11 4192do 4193 CC="$ac_save_CC $ac_arg" 4194 if ac_fn_c_try_compile "$LINENO" 4195then : 4196 ac_cv_prog_cc_c11=$ac_arg 4197fi 4198rm -f core conftest.err conftest.$ac_objext conftest.beam 4199 test "x$ac_cv_prog_cc_c11" != "xno" && break 4200done 4201rm -f conftest.$ac_ext 4202CC=$ac_save_CC ;; 4203esac 4204fi 4205 4206if test "x$ac_cv_prog_cc_c11" = xno 4207then : 4208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4209printf "%s\n" "unsupported" >&6; } 4210else case e in #( 4211 e) if test "x$ac_cv_prog_cc_c11" = x 4212then : 4213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4214printf "%s\n" "none needed" >&6; } 4215else case e in #( 4216 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4217printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4218 CC="$CC $ac_cv_prog_cc_c11" ;; 4219esac 4220fi 4221 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4222 ac_prog_cc_stdc=c11 ;; 4223esac 4224fi 4225fi 4226if test x$ac_prog_cc_stdc = xno 4227then : 4228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4229printf %s "checking for $CC option to enable C99 features... " >&6; } 4230if test ${ac_cv_prog_cc_c99+y} 4231then : 4232 printf %s "(cached) " >&6 4233else case e in #( 4234 e) ac_cv_prog_cc_c99=no 4235ac_save_CC=$CC 4236cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4237/* end confdefs.h. */ 4238$ac_c_conftest_c99_program 4239_ACEOF 4240for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4241do 4242 CC="$ac_save_CC $ac_arg" 4243 if ac_fn_c_try_compile "$LINENO" 4244then : 4245 ac_cv_prog_cc_c99=$ac_arg 4246fi 4247rm -f core conftest.err conftest.$ac_objext conftest.beam 4248 test "x$ac_cv_prog_cc_c99" != "xno" && break 4249done 4250rm -f conftest.$ac_ext 4251CC=$ac_save_CC ;; 4252esac 4253fi 4254 4255if test "x$ac_cv_prog_cc_c99" = xno 4256then : 4257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4258printf "%s\n" "unsupported" >&6; } 4259else case e in #( 4260 e) if test "x$ac_cv_prog_cc_c99" = x 4261then : 4262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4263printf "%s\n" "none needed" >&6; } 4264else case e in #( 4265 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4266printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4267 CC="$CC $ac_cv_prog_cc_c99" ;; 4268esac 4269fi 4270 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4271 ac_prog_cc_stdc=c99 ;; 4272esac 4273fi 4274fi 4275if test x$ac_prog_cc_stdc = xno 4276then : 4277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4278printf %s "checking for $CC option to enable C89 features... " >&6; } 4279if test ${ac_cv_prog_cc_c89+y} 4280then : 4281 printf %s "(cached) " >&6 4282else case e in #( 4283 e) ac_cv_prog_cc_c89=no 4284ac_save_CC=$CC 4285cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4286/* end confdefs.h. */ 4287$ac_c_conftest_c89_program 4288_ACEOF 4289for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4290do 4291 CC="$ac_save_CC $ac_arg" 4292 if ac_fn_c_try_compile "$LINENO" 4293then : 4294 ac_cv_prog_cc_c89=$ac_arg 4295fi 4296rm -f core conftest.err conftest.$ac_objext conftest.beam 4297 test "x$ac_cv_prog_cc_c89" != "xno" && break 4298done 4299rm -f conftest.$ac_ext 4300CC=$ac_save_CC ;; 4301esac 4302fi 4303 4304if test "x$ac_cv_prog_cc_c89" = xno 4305then : 4306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4307printf "%s\n" "unsupported" >&6; } 4308else case e in #( 4309 e) if test "x$ac_cv_prog_cc_c89" = x 4310then : 4311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4312printf "%s\n" "none needed" >&6; } 4313else case e in #( 4314 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4315printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4316 CC="$CC $ac_cv_prog_cc_c89" ;; 4317esac 4318fi 4319 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4320 ac_prog_cc_stdc=c89 ;; 4321esac 4322fi 4323fi 4324 4325ac_ext=c 4326ac_cpp='$CPP $CPPFLAGS' 4327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4329ac_compiler_gnu=$ac_cv_c_compiler_gnu 4330 4331 4332 ac_ext=c 4333ac_cpp='$CPP $CPPFLAGS' 4334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4336ac_compiler_gnu=$ac_cv_c_compiler_gnu 4337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4338printf %s "checking whether $CC understands -c and -o together... " >&6; } 4339if test ${am_cv_prog_cc_c_o+y} 4340then : 4341 printf %s "(cached) " >&6 4342else case e in #( 4343 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4344/* end confdefs.h. */ 4345 4346int 4347main (void) 4348{ 4349 4350 ; 4351 return 0; 4352} 4353_ACEOF 4354 # Make sure it works both with $CC and with simple cc. 4355 # Following AC_PROG_CC_C_O, we do the test twice because some 4356 # compilers refuse to overwrite an existing .o file with -o, 4357 # though they will create one. 4358 am_cv_prog_cc_c_o=yes 4359 for am_i in 1 2; do 4360 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4361 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4362 ac_status=$? 4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4364 (exit $ac_status); } \ 4365 && test -f conftest2.$ac_objext; then 4366 : OK 4367 else 4368 am_cv_prog_cc_c_o=no 4369 break 4370 fi 4371 done 4372 rm -f core conftest* 4373 unset am_i ;; 4374esac 4375fi 4376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4377printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4378if test "$am_cv_prog_cc_c_o" != yes; then 4379 # Losing compiler, so override with the script. 4380 # FIXME: It is wrong to rewrite CC. 4381 # But if we don't then we get into trouble of one sort or another. 4382 # A longer-term fix would be to have automake use am__CC in this case, 4383 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4384 CC="$am_aux_dir/compile $CC" 4385fi 4386ac_ext=c 4387ac_cpp='$CPP $CPPFLAGS' 4388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4390ac_compiler_gnu=$ac_cv_c_compiler_gnu 4391 4392 4393depcc="$CC" am_compiler_list= 4394 4395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4396printf %s "checking dependency style of $depcc... " >&6; } 4397if test ${am_cv_CC_dependencies_compiler_type+y} 4398then : 4399 printf %s "(cached) " >&6 4400else case e in #( 4401 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4402 # We make a subdir and do the tests there. Otherwise we can end up 4403 # making bogus files that we don't know about and never remove. For 4404 # instance it was reported that on HP-UX the gcc test will end up 4405 # making a dummy file named 'D' -- because '-MD' means "put the output 4406 # in D". 4407 rm -rf conftest.dir 4408 mkdir conftest.dir 4409 # Copy depcomp to subdir because otherwise we won't find it if we're 4410 # using a relative directory. 4411 cp "$am_depcomp" conftest.dir 4412 cd conftest.dir 4413 # We will build objects and dependencies in a subdirectory because 4414 # it helps to detect inapplicable dependency modes. For instance 4415 # both Tru64's cc and ICC support -MD to output dependencies as a 4416 # side effect of compilation, but ICC will put the dependencies in 4417 # the current directory while Tru64 will put them in the object 4418 # directory. 4419 mkdir sub 4420 4421 am_cv_CC_dependencies_compiler_type=none 4422 if test "$am_compiler_list" = ""; then 4423 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4424 fi 4425 am__universal=false 4426 case " $depcc " in #( 4427 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4428 esac 4429 4430 for depmode in $am_compiler_list; do 4431 # Setup a source with many dependencies, because some compilers 4432 # like to wrap large dependency lists on column 80 (with \), and 4433 # we should not choose a depcomp mode which is confused by this. 4434 # 4435 # We need to recreate these files for each test, as the compiler may 4436 # overwrite some of them when testing with obscure command lines. 4437 # This happens at least with the AIX C compiler. 4438 : > sub/conftest.c 4439 for i in 1 2 3 4 5 6; do 4440 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4441 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4442 # Solaris 10 /bin/sh. 4443 echo '/* dummy */' > sub/conftst$i.h 4444 done 4445 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4446 4447 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4448 # mode. It turns out that the SunPro C++ compiler does not properly 4449 # handle '-M -o', and we need to detect this. Also, some Intel 4450 # versions had trouble with output in subdirs. 4451 am__obj=sub/conftest.${OBJEXT-o} 4452 am__minus_obj="-o $am__obj" 4453 case $depmode in 4454 gcc) 4455 # This depmode causes a compiler race in universal mode. 4456 test "$am__universal" = false || continue 4457 ;; 4458 nosideeffect) 4459 # After this tag, mechanisms are not by side-effect, so they'll 4460 # only be used when explicitly requested. 4461 if test "x$enable_dependency_tracking" = xyes; then 4462 continue 4463 else 4464 break 4465 fi 4466 ;; 4467 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4468 # This compiler won't grok '-c -o', but also, the minuso test has 4469 # not run yet. These depmodes are late enough in the game, and 4470 # so weak that their functioning should not be impacted. 4471 am__obj=conftest.${OBJEXT-o} 4472 am__minus_obj= 4473 ;; 4474 none) break ;; 4475 esac 4476 if depmode=$depmode \ 4477 source=sub/conftest.c object=$am__obj \ 4478 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4479 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4480 >/dev/null 2>conftest.err && 4481 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4482 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4483 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4484 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4485 # icc doesn't choke on unknown options, it will just issue warnings 4486 # or remarks (even with -Werror). So we grep stderr for any message 4487 # that says an option was ignored or not supported. 4488 # When given -MP, icc 7.0 and 7.1 complain thusly: 4489 # icc: Command line warning: ignoring option '-M'; no argument required 4490 # The diagnosis changed in icc 8.0: 4491 # icc: Command line remark: option '-MP' not supported 4492 if (grep 'ignoring option' conftest.err || 4493 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4494 am_cv_CC_dependencies_compiler_type=$depmode 4495 break 4496 fi 4497 fi 4498 done 4499 4500 cd .. 4501 rm -rf conftest.dir 4502else 4503 am_cv_CC_dependencies_compiler_type=none 4504fi 4505 ;; 4506esac 4507fi 4508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4509printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4510CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4511 4512 if 4513 test "x$enable_dependency_tracking" != xno \ 4514 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4515 am__fastdepCC_TRUE= 4516 am__fastdepCC_FALSE='#' 4517else 4518 am__fastdepCC_TRUE='#' 4519 am__fastdepCC_FALSE= 4520fi 4521 4522 4523 4524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4525printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4526if test ${ac_cv_c_undeclared_builtin_options+y} 4527then : 4528 printf %s "(cached) " >&6 4529else case e in #( 4530 e) ac_save_CFLAGS=$CFLAGS 4531 ac_cv_c_undeclared_builtin_options='cannot detect' 4532 for ac_arg in '' -fno-builtin; do 4533 CFLAGS="$ac_save_CFLAGS $ac_arg" 4534 # This test program should *not* compile successfully. 4535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4536/* end confdefs.h. */ 4537 4538int 4539main (void) 4540{ 4541(void) strchr; 4542 ; 4543 return 0; 4544} 4545_ACEOF 4546if ac_fn_c_try_compile "$LINENO" 4547then : 4548 4549else case e in #( 4550 e) # This test program should compile successfully. 4551 # No library function is consistently available on 4552 # freestanding implementations, so test against a dummy 4553 # declaration. Include always-available headers on the 4554 # off chance that they somehow elicit warnings. 4555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4556/* end confdefs.h. */ 4557#include <float.h> 4558#include <limits.h> 4559#include <stdarg.h> 4560#include <stddef.h> 4561extern void ac_decl (int, char *); 4562 4563int 4564main (void) 4565{ 4566(void) ac_decl (0, (char *) 0); 4567 (void) ac_decl; 4568 4569 ; 4570 return 0; 4571} 4572_ACEOF 4573if ac_fn_c_try_compile "$LINENO" 4574then : 4575 if test x"$ac_arg" = x 4576then : 4577 ac_cv_c_undeclared_builtin_options='none needed' 4578else case e in #( 4579 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 4580esac 4581fi 4582 break 4583fi 4584rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4585esac 4586fi 4587rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4588 done 4589 CFLAGS=$ac_save_CFLAGS 4590 ;; 4591esac 4592fi 4593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4594printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4595 case $ac_cv_c_undeclared_builtin_options in #( 4596 'cannot detect') : 4597 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4598printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4599as_fn_error $? "cannot make $CC report undeclared builtins 4600See 'config.log' for more details" "$LINENO" 5; } ;; #( 4601 'none needed') : 4602 ac_c_undeclared_builtin_options='' ;; #( 4603 *) : 4604 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4605esac 4606 4607ac_header= ac_cache= 4608for ac_item in $ac_header_c_list 4609do 4610 if test $ac_cache; then 4611 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4612 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4613 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4614 fi 4615 ac_header= ac_cache= 4616 elif test $ac_header; then 4617 ac_cache=$ac_item 4618 else 4619 ac_header=$ac_item 4620 fi 4621done 4622 4623 4624 4625 4626 4627 4628 4629 4630if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4631then : 4632 4633printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4634 4635fi 4636 4637 4638 4639 4640ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4641if test "x$ac_cv_have_decl___clang__" = xyes 4642then : 4643 CLANGCC="yes" 4644else case e in #( 4645 e) CLANGCC="no" ;; 4646esac 4647fi 4648ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4649if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4650then : 4651 INTELCC="yes" 4652else case e in #( 4653 e) INTELCC="no" ;; 4654esac 4655fi 4656ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4657if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4658then : 4659 SUNCC="yes" 4660else case e in #( 4661 e) SUNCC="no" ;; 4662esac 4663fi 4664 4665 4666 4667 4668 4669 4670 4671 4672if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4673 if test -n "$ac_tool_prefix"; then 4674 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4675set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4677printf %s "checking for $ac_word... " >&6; } 4678if test ${ac_cv_path_PKG_CONFIG+y} 4679then : 4680 printf %s "(cached) " >&6 4681else case e in #( 4682 e) case $PKG_CONFIG in 4683 [\\/]* | ?:[\\/]*) 4684 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4685 ;; 4686 *) 4687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4688for as_dir in $PATH 4689do 4690 IFS=$as_save_IFS 4691 case $as_dir in #((( 4692 '') as_dir=./ ;; 4693 */) ;; 4694 *) as_dir=$as_dir/ ;; 4695 esac 4696 for ac_exec_ext in '' $ac_executable_extensions; do 4697 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4698 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4700 break 2 4701 fi 4702done 4703 done 4704IFS=$as_save_IFS 4705 4706 ;; 4707esac ;; 4708esac 4709fi 4710PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4711if test -n "$PKG_CONFIG"; then 4712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4713printf "%s\n" "$PKG_CONFIG" >&6; } 4714else 4715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4716printf "%s\n" "no" >&6; } 4717fi 4718 4719 4720fi 4721if test -z "$ac_cv_path_PKG_CONFIG"; then 4722 ac_pt_PKG_CONFIG=$PKG_CONFIG 4723 # Extract the first word of "pkg-config", so it can be a program name with args. 4724set dummy pkg-config; ac_word=$2 4725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4726printf %s "checking for $ac_word... " >&6; } 4727if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4728then : 4729 printf %s "(cached) " >&6 4730else case e in #( 4731 e) case $ac_pt_PKG_CONFIG in 4732 [\\/]* | ?:[\\/]*) 4733 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4734 ;; 4735 *) 4736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4737for as_dir in $PATH 4738do 4739 IFS=$as_save_IFS 4740 case $as_dir in #((( 4741 '') as_dir=./ ;; 4742 */) ;; 4743 *) as_dir=$as_dir/ ;; 4744 esac 4745 for ac_exec_ext in '' $ac_executable_extensions; do 4746 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4747 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4748 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4749 break 2 4750 fi 4751done 4752 done 4753IFS=$as_save_IFS 4754 4755 ;; 4756esac ;; 4757esac 4758fi 4759ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4760if test -n "$ac_pt_PKG_CONFIG"; then 4761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4762printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4763else 4764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4765printf "%s\n" "no" >&6; } 4766fi 4767 4768 if test "x$ac_pt_PKG_CONFIG" = x; then 4769 PKG_CONFIG="" 4770 else 4771 case $cross_compiling:$ac_tool_warned in 4772yes:) 4773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4774printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4775ac_tool_warned=yes ;; 4776esac 4777 PKG_CONFIG=$ac_pt_PKG_CONFIG 4778 fi 4779else 4780 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4781fi 4782 4783fi 4784if test -n "$PKG_CONFIG"; then 4785 _pkg_min_version=0.9.0 4786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4787printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4788 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4790printf "%s\n" "yes" >&6; } 4791 else 4792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4793printf "%s\n" "no" >&6; } 4794 PKG_CONFIG="" 4795 fi 4796fi 4797 4798 4799 # Make sure we can run config.sub. 4800$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4801 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4802 4803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4804printf %s "checking build system type... " >&6; } 4805if test ${ac_cv_build+y} 4806then : 4807 printf %s "(cached) " >&6 4808else case e in #( 4809 e) ac_build_alias=$build_alias 4810test "x$ac_build_alias" = x && 4811 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4812test "x$ac_build_alias" = x && 4813 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4814ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4815 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4816 ;; 4817esac 4818fi 4819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4820printf "%s\n" "$ac_cv_build" >&6; } 4821case $ac_cv_build in 4822*-*-*) ;; 4823*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4824esac 4825build=$ac_cv_build 4826ac_save_IFS=$IFS; IFS='-' 4827set x $ac_cv_build 4828shift 4829build_cpu=$1 4830build_vendor=$2 4831shift; shift 4832# Remember, the first character of IFS is used to create $*, 4833# except with old shells: 4834build_os=$* 4835IFS=$ac_save_IFS 4836case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4837 4838 4839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4840printf %s "checking host system type... " >&6; } 4841if test ${ac_cv_host+y} 4842then : 4843 printf %s "(cached) " >&6 4844else case e in #( 4845 e) if test "x$host_alias" = x; then 4846 ac_cv_host=$ac_cv_build 4847else 4848 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4849 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4850fi 4851 ;; 4852esac 4853fi 4854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4855printf "%s\n" "$ac_cv_host" >&6; } 4856case $ac_cv_host in 4857*-*-*) ;; 4858*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4859esac 4860host=$ac_cv_host 4861ac_save_IFS=$IFS; IFS='-' 4862set x $ac_cv_host 4863shift 4864host_cpu=$1 4865host_vendor=$2 4866shift; shift 4867# Remember, the first character of IFS is used to create $*, 4868# except with old shells: 4869host_os=$* 4870IFS=$ac_save_IFS 4871case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4872 4873 4874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4875printf %s "checking for a sed that does not truncate output... " >&6; } 4876if test ${ac_cv_path_SED+y} 4877then : 4878 printf %s "(cached) " >&6 4879else case e in #( 4880 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4881 for ac_i in 1 2 3 4 5 6 7; do 4882 ac_script="$ac_script$as_nl$ac_script" 4883 done 4884 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4885 { ac_script=; unset ac_script;} 4886 if test -z "$SED"; then 4887 ac_path_SED_found=false 4888 # Loop through the user's path and test for each of PROGNAME-LIST 4889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4890for as_dir in $PATH 4891do 4892 IFS=$as_save_IFS 4893 case $as_dir in #((( 4894 '') as_dir=./ ;; 4895 */) ;; 4896 *) as_dir=$as_dir/ ;; 4897 esac 4898 for ac_prog in sed gsed 4899 do 4900 for ac_exec_ext in '' $ac_executable_extensions; do 4901 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4902 as_fn_executable_p "$ac_path_SED" || continue 4903# Check for GNU ac_path_SED and select it if it is found. 4904 # Check for GNU $ac_path_SED 4905case `"$ac_path_SED" --version 2>&1` in #( 4906*GNU*) 4907 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4908#( 4909*) 4910 ac_count=0 4911 printf %s 0123456789 >"conftest.in" 4912 while : 4913 do 4914 cat "conftest.in" "conftest.in" >"conftest.tmp" 4915 mv "conftest.tmp" "conftest.in" 4916 cp "conftest.in" "conftest.nl" 4917 printf "%s\n" '' >> "conftest.nl" 4918 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4919 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4920 as_fn_arith $ac_count + 1 && ac_count=$as_val 4921 if test $ac_count -gt ${ac_path_SED_max-0}; then 4922 # Best one so far, save it but keep looking for a better one 4923 ac_cv_path_SED="$ac_path_SED" 4924 ac_path_SED_max=$ac_count 4925 fi 4926 # 10*(2^10) chars as input seems more than enough 4927 test $ac_count -gt 10 && break 4928 done 4929 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4930esac 4931 4932 $ac_path_SED_found && break 3 4933 done 4934 done 4935 done 4936IFS=$as_save_IFS 4937 if test -z "$ac_cv_path_SED"; then 4938 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4939 fi 4940else 4941 ac_cv_path_SED=$SED 4942fi 4943 ;; 4944esac 4945fi 4946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4947printf "%s\n" "$ac_cv_path_SED" >&6; } 4948 SED="$ac_cv_path_SED" 4949 rm -f conftest.sed 4950 4951 4952 4953 4954 4955 4956# Check whether --enable-selective-werror was given. 4957if test ${enable_selective_werror+y} 4958then : 4959 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4960else case e in #( 4961 e) SELECTIVE_WERROR=yes ;; 4962esac 4963fi 4964 4965 4966 4967 4968 4969# -v is too short to test reliably with XORG_TESTSET_CFLAG 4970if test "x$SUNCC" = "xyes"; then 4971 BASE_CFLAGS="-v" 4972else 4973 BASE_CFLAGS="" 4974fi 4975 4976# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990xorg_testset_save_CFLAGS="$CFLAGS" 4991 4992if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4995printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4996if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4997then : 4998 printf %s "(cached) " >&6 4999else case e in #( 5000 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5001/* end confdefs.h. */ 5002int i; 5003_ACEOF 5004if ac_fn_c_try_compile "$LINENO" 5005then : 5006 xorg_cv_cc_flag_unknown_warning_option=yes 5007else case e in #( 5008 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5009esac 5010fi 5011rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5012esac 5013fi 5014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5015printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5016 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5017 CFLAGS="$xorg_testset_save_CFLAGS" 5018fi 5019 5020if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5021 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5022 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5023 fi 5024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5026printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5027if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5028then : 5029 printf %s "(cached) " >&6 5030else case e in #( 5031 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5032/* end confdefs.h. */ 5033int i; 5034_ACEOF 5035if ac_fn_c_try_compile "$LINENO" 5036then : 5037 xorg_cv_cc_flag_unused_command_line_argument=yes 5038else case e in #( 5039 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5040esac 5041fi 5042rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5043esac 5044fi 5045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5046printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5047 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5048 CFLAGS="$xorg_testset_save_CFLAGS" 5049fi 5050 5051found="no" 5052 5053 if test $found = "no" ; then 5054 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5055 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5056 fi 5057 5058 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5060 fi 5061 5062 CFLAGS="$CFLAGS -Wall" 5063 5064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5065printf %s "checking if $CC supports -Wall... " >&6; } 5066 cacheid=xorg_cv_cc_flag__Wall 5067 if eval test \${$cacheid+y} 5068then : 5069 printf %s "(cached) " >&6 5070else case e in #( 5071 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5072/* end confdefs.h. */ 5073int i; 5074int 5075main (void) 5076{ 5077 5078 ; 5079 return 0; 5080} 5081_ACEOF 5082if ac_fn_c_try_link "$LINENO" 5083then : 5084 eval $cacheid=yes 5085else case e in #( 5086 e) eval $cacheid=no ;; 5087esac 5088fi 5089rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5090 conftest$ac_exeext conftest.$ac_ext ;; 5091esac 5092fi 5093 5094 5095 CFLAGS="$xorg_testset_save_CFLAGS" 5096 5097 eval supported=\$$cacheid 5098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5099printf "%s\n" "$supported" >&6; } 5100 if test "$supported" = "yes" ; then 5101 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5102 found="yes" 5103 fi 5104 fi 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120xorg_testset_save_CFLAGS="$CFLAGS" 5121 5122if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5123 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5125printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5126if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5127then : 5128 printf %s "(cached) " >&6 5129else case e in #( 5130 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5131/* end confdefs.h. */ 5132int i; 5133_ACEOF 5134if ac_fn_c_try_compile "$LINENO" 5135then : 5136 xorg_cv_cc_flag_unknown_warning_option=yes 5137else case e in #( 5138 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5139esac 5140fi 5141rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5142esac 5143fi 5144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5145printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5146 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5147 CFLAGS="$xorg_testset_save_CFLAGS" 5148fi 5149 5150if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5153 fi 5154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5156printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5157if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5158then : 5159 printf %s "(cached) " >&6 5160else case e in #( 5161 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5162/* end confdefs.h. */ 5163int i; 5164_ACEOF 5165if ac_fn_c_try_compile "$LINENO" 5166then : 5167 xorg_cv_cc_flag_unused_command_line_argument=yes 5168else case e in #( 5169 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5170esac 5171fi 5172rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5173esac 5174fi 5175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5176printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5177 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5178 CFLAGS="$xorg_testset_save_CFLAGS" 5179fi 5180 5181found="no" 5182 5183 if test $found = "no" ; then 5184 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5185 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5186 fi 5187 5188 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5190 fi 5191 5192 CFLAGS="$CFLAGS -Wpointer-arith" 5193 5194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5195printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5196 cacheid=xorg_cv_cc_flag__Wpointer_arith 5197 if eval test \${$cacheid+y} 5198then : 5199 printf %s "(cached) " >&6 5200else case e in #( 5201 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5202/* end confdefs.h. */ 5203int i; 5204int 5205main (void) 5206{ 5207 5208 ; 5209 return 0; 5210} 5211_ACEOF 5212if ac_fn_c_try_link "$LINENO" 5213then : 5214 eval $cacheid=yes 5215else case e in #( 5216 e) eval $cacheid=no ;; 5217esac 5218fi 5219rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5220 conftest$ac_exeext conftest.$ac_ext ;; 5221esac 5222fi 5223 5224 5225 CFLAGS="$xorg_testset_save_CFLAGS" 5226 5227 eval supported=\$$cacheid 5228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5229printf "%s\n" "$supported" >&6; } 5230 if test "$supported" = "yes" ; then 5231 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5232 found="yes" 5233 fi 5234 fi 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250xorg_testset_save_CFLAGS="$CFLAGS" 5251 5252if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5255printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5256if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5257then : 5258 printf %s "(cached) " >&6 5259else case e in #( 5260 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5261/* end confdefs.h. */ 5262int i; 5263_ACEOF 5264if ac_fn_c_try_compile "$LINENO" 5265then : 5266 xorg_cv_cc_flag_unknown_warning_option=yes 5267else case e in #( 5268 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5269esac 5270fi 5271rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5272esac 5273fi 5274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5275printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5276 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5277 CFLAGS="$xorg_testset_save_CFLAGS" 5278fi 5279 5280if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5282 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5283 fi 5284 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5286printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5287if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5288then : 5289 printf %s "(cached) " >&6 5290else case e in #( 5291 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5292/* end confdefs.h. */ 5293int i; 5294_ACEOF 5295if ac_fn_c_try_compile "$LINENO" 5296then : 5297 xorg_cv_cc_flag_unused_command_line_argument=yes 5298else case e in #( 5299 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5300esac 5301fi 5302rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5303esac 5304fi 5305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5306printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5307 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5308 CFLAGS="$xorg_testset_save_CFLAGS" 5309fi 5310 5311found="no" 5312 5313 if test $found = "no" ; then 5314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5316 fi 5317 5318 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5320 fi 5321 5322 CFLAGS="$CFLAGS -Wmissing-declarations" 5323 5324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5325printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5326 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5327 if eval test \${$cacheid+y} 5328then : 5329 printf %s "(cached) " >&6 5330else case e in #( 5331 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5332/* end confdefs.h. */ 5333int i; 5334int 5335main (void) 5336{ 5337 5338 ; 5339 return 0; 5340} 5341_ACEOF 5342if ac_fn_c_try_link "$LINENO" 5343then : 5344 eval $cacheid=yes 5345else case e in #( 5346 e) eval $cacheid=no ;; 5347esac 5348fi 5349rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5350 conftest$ac_exeext conftest.$ac_ext ;; 5351esac 5352fi 5353 5354 5355 CFLAGS="$xorg_testset_save_CFLAGS" 5356 5357 eval supported=\$$cacheid 5358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5359printf "%s\n" "$supported" >&6; } 5360 if test "$supported" = "yes" ; then 5361 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5362 found="yes" 5363 fi 5364 fi 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380xorg_testset_save_CFLAGS="$CFLAGS" 5381 5382if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5383 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5385printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5386if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5387then : 5388 printf %s "(cached) " >&6 5389else case e in #( 5390 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5391/* end confdefs.h. */ 5392int i; 5393_ACEOF 5394if ac_fn_c_try_compile "$LINENO" 5395then : 5396 xorg_cv_cc_flag_unknown_warning_option=yes 5397else case e in #( 5398 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5399esac 5400fi 5401rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5402esac 5403fi 5404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5405printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5406 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5407 CFLAGS="$xorg_testset_save_CFLAGS" 5408fi 5409 5410if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5413 fi 5414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5416printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5417if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5418then : 5419 printf %s "(cached) " >&6 5420else case e in #( 5421 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5422/* end confdefs.h. */ 5423int i; 5424_ACEOF 5425if ac_fn_c_try_compile "$LINENO" 5426then : 5427 xorg_cv_cc_flag_unused_command_line_argument=yes 5428else case e in #( 5429 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5430esac 5431fi 5432rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5433esac 5434fi 5435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5436printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5437 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5438 CFLAGS="$xorg_testset_save_CFLAGS" 5439fi 5440 5441found="no" 5442 5443 if test $found = "no" ; then 5444 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5445 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5446 fi 5447 5448 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5450 fi 5451 5452 CFLAGS="$CFLAGS -Wformat=2" 5453 5454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5455printf %s "checking if $CC supports -Wformat=2... " >&6; } 5456 cacheid=xorg_cv_cc_flag__Wformat_2 5457 if eval test \${$cacheid+y} 5458then : 5459 printf %s "(cached) " >&6 5460else case e in #( 5461 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5462/* end confdefs.h. */ 5463int i; 5464int 5465main (void) 5466{ 5467 5468 ; 5469 return 0; 5470} 5471_ACEOF 5472if ac_fn_c_try_link "$LINENO" 5473then : 5474 eval $cacheid=yes 5475else case e in #( 5476 e) eval $cacheid=no ;; 5477esac 5478fi 5479rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5480 conftest$ac_exeext conftest.$ac_ext ;; 5481esac 5482fi 5483 5484 5485 CFLAGS="$xorg_testset_save_CFLAGS" 5486 5487 eval supported=\$$cacheid 5488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5489printf "%s\n" "$supported" >&6; } 5490 if test "$supported" = "yes" ; then 5491 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5492 found="yes" 5493 fi 5494 fi 5495 5496 if test $found = "no" ; then 5497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5498 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5499 fi 5500 5501 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5503 fi 5504 5505 CFLAGS="$CFLAGS -Wformat" 5506 5507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5508printf %s "checking if $CC supports -Wformat... " >&6; } 5509 cacheid=xorg_cv_cc_flag__Wformat 5510 if eval test \${$cacheid+y} 5511then : 5512 printf %s "(cached) " >&6 5513else case e in #( 5514 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5515/* end confdefs.h. */ 5516int i; 5517int 5518main (void) 5519{ 5520 5521 ; 5522 return 0; 5523} 5524_ACEOF 5525if ac_fn_c_try_link "$LINENO" 5526then : 5527 eval $cacheid=yes 5528else case e in #( 5529 e) eval $cacheid=no ;; 5530esac 5531fi 5532rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5533 conftest$ac_exeext conftest.$ac_ext ;; 5534esac 5535fi 5536 5537 5538 CFLAGS="$xorg_testset_save_CFLAGS" 5539 5540 eval supported=\$$cacheid 5541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5542printf "%s\n" "$supported" >&6; } 5543 if test "$supported" = "yes" ; then 5544 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5545 found="yes" 5546 fi 5547 fi 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565xorg_testset_save_CFLAGS="$CFLAGS" 5566 5567if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5568 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5570printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5571if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5572then : 5573 printf %s "(cached) " >&6 5574else case e in #( 5575 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5576/* end confdefs.h. */ 5577int i; 5578_ACEOF 5579if ac_fn_c_try_compile "$LINENO" 5580then : 5581 xorg_cv_cc_flag_unknown_warning_option=yes 5582else case e in #( 5583 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5584esac 5585fi 5586rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5587esac 5588fi 5589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5590printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5591 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5592 CFLAGS="$xorg_testset_save_CFLAGS" 5593fi 5594 5595if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5597 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5598 fi 5599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5601printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5602if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5603then : 5604 printf %s "(cached) " >&6 5605else case e in #( 5606 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5607/* end confdefs.h. */ 5608int i; 5609_ACEOF 5610if ac_fn_c_try_compile "$LINENO" 5611then : 5612 xorg_cv_cc_flag_unused_command_line_argument=yes 5613else case e in #( 5614 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5615esac 5616fi 5617rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5618esac 5619fi 5620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5621printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5622 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5623 CFLAGS="$xorg_testset_save_CFLAGS" 5624fi 5625 5626found="no" 5627 5628 if test $found = "no" ; then 5629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5630 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5631 fi 5632 5633 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5635 fi 5636 5637 CFLAGS="$CFLAGS -Wstrict-prototypes" 5638 5639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5640printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5641 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5642 if eval test \${$cacheid+y} 5643then : 5644 printf %s "(cached) " >&6 5645else case e in #( 5646 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5647/* end confdefs.h. */ 5648int i; 5649int 5650main (void) 5651{ 5652 5653 ; 5654 return 0; 5655} 5656_ACEOF 5657if ac_fn_c_try_link "$LINENO" 5658then : 5659 eval $cacheid=yes 5660else case e in #( 5661 e) eval $cacheid=no ;; 5662esac 5663fi 5664rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5665 conftest$ac_exeext conftest.$ac_ext ;; 5666esac 5667fi 5668 5669 5670 CFLAGS="$xorg_testset_save_CFLAGS" 5671 5672 eval supported=\$$cacheid 5673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5674printf "%s\n" "$supported" >&6; } 5675 if test "$supported" = "yes" ; then 5676 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5677 found="yes" 5678 fi 5679 fi 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695xorg_testset_save_CFLAGS="$CFLAGS" 5696 5697if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5698 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5700printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5701if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5702then : 5703 printf %s "(cached) " >&6 5704else case e in #( 5705 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5706/* end confdefs.h. */ 5707int i; 5708_ACEOF 5709if ac_fn_c_try_compile "$LINENO" 5710then : 5711 xorg_cv_cc_flag_unknown_warning_option=yes 5712else case e in #( 5713 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5714esac 5715fi 5716rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5717esac 5718fi 5719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5720printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5721 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5722 CFLAGS="$xorg_testset_save_CFLAGS" 5723fi 5724 5725if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5727 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5728 fi 5729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5731printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5732if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5733then : 5734 printf %s "(cached) " >&6 5735else case e in #( 5736 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5737/* end confdefs.h. */ 5738int i; 5739_ACEOF 5740if ac_fn_c_try_compile "$LINENO" 5741then : 5742 xorg_cv_cc_flag_unused_command_line_argument=yes 5743else case e in #( 5744 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5745esac 5746fi 5747rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5748esac 5749fi 5750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5751printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5752 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5753 CFLAGS="$xorg_testset_save_CFLAGS" 5754fi 5755 5756found="no" 5757 5758 if test $found = "no" ; then 5759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5760 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5761 fi 5762 5763 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5765 fi 5766 5767 CFLAGS="$CFLAGS -Wmissing-prototypes" 5768 5769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5770printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5771 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5772 if eval test \${$cacheid+y} 5773then : 5774 printf %s "(cached) " >&6 5775else case e in #( 5776 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5777/* end confdefs.h. */ 5778int i; 5779int 5780main (void) 5781{ 5782 5783 ; 5784 return 0; 5785} 5786_ACEOF 5787if ac_fn_c_try_link "$LINENO" 5788then : 5789 eval $cacheid=yes 5790else case e in #( 5791 e) eval $cacheid=no ;; 5792esac 5793fi 5794rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5795 conftest$ac_exeext conftest.$ac_ext ;; 5796esac 5797fi 5798 5799 5800 CFLAGS="$xorg_testset_save_CFLAGS" 5801 5802 eval supported=\$$cacheid 5803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5804printf "%s\n" "$supported" >&6; } 5805 if test "$supported" = "yes" ; then 5806 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5807 found="yes" 5808 fi 5809 fi 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825xorg_testset_save_CFLAGS="$CFLAGS" 5826 5827if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5828 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5830printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5831if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5832then : 5833 printf %s "(cached) " >&6 5834else case e in #( 5835 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5836/* end confdefs.h. */ 5837int i; 5838_ACEOF 5839if ac_fn_c_try_compile "$LINENO" 5840then : 5841 xorg_cv_cc_flag_unknown_warning_option=yes 5842else case e in #( 5843 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5844esac 5845fi 5846rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5847esac 5848fi 5849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5850printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5851 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5852 CFLAGS="$xorg_testset_save_CFLAGS" 5853fi 5854 5855if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5857 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5858 fi 5859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5861printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5862if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5863then : 5864 printf %s "(cached) " >&6 5865else case e in #( 5866 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5867/* end confdefs.h. */ 5868int i; 5869_ACEOF 5870if ac_fn_c_try_compile "$LINENO" 5871then : 5872 xorg_cv_cc_flag_unused_command_line_argument=yes 5873else case e in #( 5874 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5875esac 5876fi 5877rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5878esac 5879fi 5880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5881printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5882 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5883 CFLAGS="$xorg_testset_save_CFLAGS" 5884fi 5885 5886found="no" 5887 5888 if test $found = "no" ; then 5889 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5890 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5891 fi 5892 5893 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5895 fi 5896 5897 CFLAGS="$CFLAGS -Wnested-externs" 5898 5899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5900printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5901 cacheid=xorg_cv_cc_flag__Wnested_externs 5902 if eval test \${$cacheid+y} 5903then : 5904 printf %s "(cached) " >&6 5905else case e in #( 5906 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5907/* end confdefs.h. */ 5908int i; 5909int 5910main (void) 5911{ 5912 5913 ; 5914 return 0; 5915} 5916_ACEOF 5917if ac_fn_c_try_link "$LINENO" 5918then : 5919 eval $cacheid=yes 5920else case e in #( 5921 e) eval $cacheid=no ;; 5922esac 5923fi 5924rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5925 conftest$ac_exeext conftest.$ac_ext ;; 5926esac 5927fi 5928 5929 5930 CFLAGS="$xorg_testset_save_CFLAGS" 5931 5932 eval supported=\$$cacheid 5933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5934printf "%s\n" "$supported" >&6; } 5935 if test "$supported" = "yes" ; then 5936 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5937 found="yes" 5938 fi 5939 fi 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955xorg_testset_save_CFLAGS="$CFLAGS" 5956 5957if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5958 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5960printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5961if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5962then : 5963 printf %s "(cached) " >&6 5964else case e in #( 5965 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5966/* end confdefs.h. */ 5967int i; 5968_ACEOF 5969if ac_fn_c_try_compile "$LINENO" 5970then : 5971 xorg_cv_cc_flag_unknown_warning_option=yes 5972else case e in #( 5973 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5974esac 5975fi 5976rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5977esac 5978fi 5979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5980printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5981 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5982 CFLAGS="$xorg_testset_save_CFLAGS" 5983fi 5984 5985if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5987 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5988 fi 5989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5991printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5992if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5993then : 5994 printf %s "(cached) " >&6 5995else case e in #( 5996 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5997/* end confdefs.h. */ 5998int i; 5999_ACEOF 6000if ac_fn_c_try_compile "$LINENO" 6001then : 6002 xorg_cv_cc_flag_unused_command_line_argument=yes 6003else case e in #( 6004 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6005esac 6006fi 6007rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6008esac 6009fi 6010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6011printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6012 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6013 CFLAGS="$xorg_testset_save_CFLAGS" 6014fi 6015 6016found="no" 6017 6018 if test $found = "no" ; then 6019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6021 fi 6022 6023 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6025 fi 6026 6027 CFLAGS="$CFLAGS -Wbad-function-cast" 6028 6029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6030printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6031 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6032 if eval test \${$cacheid+y} 6033then : 6034 printf %s "(cached) " >&6 6035else case e in #( 6036 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6037/* end confdefs.h. */ 6038int i; 6039int 6040main (void) 6041{ 6042 6043 ; 6044 return 0; 6045} 6046_ACEOF 6047if ac_fn_c_try_link "$LINENO" 6048then : 6049 eval $cacheid=yes 6050else case e in #( 6051 e) eval $cacheid=no ;; 6052esac 6053fi 6054rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6055 conftest$ac_exeext conftest.$ac_ext ;; 6056esac 6057fi 6058 6059 6060 CFLAGS="$xorg_testset_save_CFLAGS" 6061 6062 eval supported=\$$cacheid 6063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6064printf "%s\n" "$supported" >&6; } 6065 if test "$supported" = "yes" ; then 6066 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6067 found="yes" 6068 fi 6069 fi 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085xorg_testset_save_CFLAGS="$CFLAGS" 6086 6087if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6088 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6090printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6091if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6092then : 6093 printf %s "(cached) " >&6 6094else case e in #( 6095 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6096/* end confdefs.h. */ 6097int i; 6098_ACEOF 6099if ac_fn_c_try_compile "$LINENO" 6100then : 6101 xorg_cv_cc_flag_unknown_warning_option=yes 6102else case e in #( 6103 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6104esac 6105fi 6106rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6107esac 6108fi 6109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6110printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6111 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6112 CFLAGS="$xorg_testset_save_CFLAGS" 6113fi 6114 6115if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6118 fi 6119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6121printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6122if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6123then : 6124 printf %s "(cached) " >&6 6125else case e in #( 6126 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6127/* end confdefs.h. */ 6128int i; 6129_ACEOF 6130if ac_fn_c_try_compile "$LINENO" 6131then : 6132 xorg_cv_cc_flag_unused_command_line_argument=yes 6133else case e in #( 6134 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6135esac 6136fi 6137rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6138esac 6139fi 6140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6141printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6142 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6143 CFLAGS="$xorg_testset_save_CFLAGS" 6144fi 6145 6146found="no" 6147 6148 if test $found = "no" ; then 6149 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6150 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6151 fi 6152 6153 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6155 fi 6156 6157 CFLAGS="$CFLAGS -Wold-style-definition" 6158 6159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6160printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6161 cacheid=xorg_cv_cc_flag__Wold_style_definition 6162 if eval test \${$cacheid+y} 6163then : 6164 printf %s "(cached) " >&6 6165else case e in #( 6166 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6167/* end confdefs.h. */ 6168int i; 6169int 6170main (void) 6171{ 6172 6173 ; 6174 return 0; 6175} 6176_ACEOF 6177if ac_fn_c_try_link "$LINENO" 6178then : 6179 eval $cacheid=yes 6180else case e in #( 6181 e) eval $cacheid=no ;; 6182esac 6183fi 6184rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6185 conftest$ac_exeext conftest.$ac_ext ;; 6186esac 6187fi 6188 6189 6190 CFLAGS="$xorg_testset_save_CFLAGS" 6191 6192 eval supported=\$$cacheid 6193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6194printf "%s\n" "$supported" >&6; } 6195 if test "$supported" = "yes" ; then 6196 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6197 found="yes" 6198 fi 6199 fi 6200 6201 if test $found = "no" ; then 6202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6204 fi 6205 6206 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6208 fi 6209 6210 CFLAGS="$CFLAGS -fd" 6211 6212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6213printf %s "checking if $CC supports -fd... " >&6; } 6214 cacheid=xorg_cv_cc_flag__fd 6215 if eval test \${$cacheid+y} 6216then : 6217 printf %s "(cached) " >&6 6218else case e in #( 6219 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6220/* end confdefs.h. */ 6221int i; 6222int 6223main (void) 6224{ 6225 6226 ; 6227 return 0; 6228} 6229_ACEOF 6230if ac_fn_c_try_link "$LINENO" 6231then : 6232 eval $cacheid=yes 6233else case e in #( 6234 e) eval $cacheid=no ;; 6235esac 6236fi 6237rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6238 conftest$ac_exeext conftest.$ac_ext ;; 6239esac 6240fi 6241 6242 6243 CFLAGS="$xorg_testset_save_CFLAGS" 6244 6245 eval supported=\$$cacheid 6246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6247printf "%s\n" "$supported" >&6; } 6248 if test "$supported" = "yes" ; then 6249 BASE_CFLAGS="$BASE_CFLAGS -fd" 6250 found="yes" 6251 fi 6252 fi 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268xorg_testset_save_CFLAGS="$CFLAGS" 6269 6270if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6273printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6274if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6275then : 6276 printf %s "(cached) " >&6 6277else case e in #( 6278 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6279/* end confdefs.h. */ 6280int i; 6281_ACEOF 6282if ac_fn_c_try_compile "$LINENO" 6283then : 6284 xorg_cv_cc_flag_unknown_warning_option=yes 6285else case e in #( 6286 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6287esac 6288fi 6289rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6290esac 6291fi 6292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6293printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6294 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6295 CFLAGS="$xorg_testset_save_CFLAGS" 6296fi 6297 6298if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6301 fi 6302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6304printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6305if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6306then : 6307 printf %s "(cached) " >&6 6308else case e in #( 6309 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6310/* end confdefs.h. */ 6311int i; 6312_ACEOF 6313if ac_fn_c_try_compile "$LINENO" 6314then : 6315 xorg_cv_cc_flag_unused_command_line_argument=yes 6316else case e in #( 6317 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6318esac 6319fi 6320rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6321esac 6322fi 6323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6324printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6325 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6326 CFLAGS="$xorg_testset_save_CFLAGS" 6327fi 6328 6329found="no" 6330 6331 if test $found = "no" ; then 6332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6333 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6334 fi 6335 6336 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6338 fi 6339 6340 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6341 6342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6343printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6344 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6345 if eval test \${$cacheid+y} 6346then : 6347 printf %s "(cached) " >&6 6348else case e in #( 6349 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6350/* end confdefs.h. */ 6351int i; 6352int 6353main (void) 6354{ 6355 6356 ; 6357 return 0; 6358} 6359_ACEOF 6360if ac_fn_c_try_link "$LINENO" 6361then : 6362 eval $cacheid=yes 6363else case e in #( 6364 e) eval $cacheid=no ;; 6365esac 6366fi 6367rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6368 conftest$ac_exeext conftest.$ac_ext ;; 6369esac 6370fi 6371 6372 6373 CFLAGS="$xorg_testset_save_CFLAGS" 6374 6375 eval supported=\$$cacheid 6376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6377printf "%s\n" "$supported" >&6; } 6378 if test "$supported" = "yes" ; then 6379 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6380 found="yes" 6381 fi 6382 fi 6383 6384 6385 6386 6387 6388# This chunk adds additional warnings that could catch undesired effects. 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402xorg_testset_save_CFLAGS="$CFLAGS" 6403 6404if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6407printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6408if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6409then : 6410 printf %s "(cached) " >&6 6411else case e in #( 6412 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6413/* end confdefs.h. */ 6414int i; 6415_ACEOF 6416if ac_fn_c_try_compile "$LINENO" 6417then : 6418 xorg_cv_cc_flag_unknown_warning_option=yes 6419else case e in #( 6420 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6421esac 6422fi 6423rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6424esac 6425fi 6426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6427printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6428 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6429 CFLAGS="$xorg_testset_save_CFLAGS" 6430fi 6431 6432if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6435 fi 6436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6438printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6439if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6440then : 6441 printf %s "(cached) " >&6 6442else case e in #( 6443 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6444/* end confdefs.h. */ 6445int i; 6446_ACEOF 6447if ac_fn_c_try_compile "$LINENO" 6448then : 6449 xorg_cv_cc_flag_unused_command_line_argument=yes 6450else case e in #( 6451 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6452esac 6453fi 6454rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6455esac 6456fi 6457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6458printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6459 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6460 CFLAGS="$xorg_testset_save_CFLAGS" 6461fi 6462 6463found="no" 6464 6465 if test $found = "no" ; then 6466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6468 fi 6469 6470 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6472 fi 6473 6474 CFLAGS="$CFLAGS -Wunused" 6475 6476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6477printf %s "checking if $CC supports -Wunused... " >&6; } 6478 cacheid=xorg_cv_cc_flag__Wunused 6479 if eval test \${$cacheid+y} 6480then : 6481 printf %s "(cached) " >&6 6482else case e in #( 6483 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6484/* end confdefs.h. */ 6485int i; 6486int 6487main (void) 6488{ 6489 6490 ; 6491 return 0; 6492} 6493_ACEOF 6494if ac_fn_c_try_link "$LINENO" 6495then : 6496 eval $cacheid=yes 6497else case e in #( 6498 e) eval $cacheid=no ;; 6499esac 6500fi 6501rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6502 conftest$ac_exeext conftest.$ac_ext ;; 6503esac 6504fi 6505 6506 6507 CFLAGS="$xorg_testset_save_CFLAGS" 6508 6509 eval supported=\$$cacheid 6510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6511printf "%s\n" "$supported" >&6; } 6512 if test "$supported" = "yes" ; then 6513 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6514 found="yes" 6515 fi 6516 fi 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532xorg_testset_save_CFLAGS="$CFLAGS" 6533 6534if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6537printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6538if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6539then : 6540 printf %s "(cached) " >&6 6541else case e in #( 6542 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6543/* end confdefs.h. */ 6544int i; 6545_ACEOF 6546if ac_fn_c_try_compile "$LINENO" 6547then : 6548 xorg_cv_cc_flag_unknown_warning_option=yes 6549else case e in #( 6550 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6551esac 6552fi 6553rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6554esac 6555fi 6556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6557printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6558 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6559 CFLAGS="$xorg_testset_save_CFLAGS" 6560fi 6561 6562if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6564 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6565 fi 6566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6568printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6569if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6570then : 6571 printf %s "(cached) " >&6 6572else case e in #( 6573 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6574/* end confdefs.h. */ 6575int i; 6576_ACEOF 6577if ac_fn_c_try_compile "$LINENO" 6578then : 6579 xorg_cv_cc_flag_unused_command_line_argument=yes 6580else case e in #( 6581 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6582esac 6583fi 6584rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6585esac 6586fi 6587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6588printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6589 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6590 CFLAGS="$xorg_testset_save_CFLAGS" 6591fi 6592 6593found="no" 6594 6595 if test $found = "no" ; then 6596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6597 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6598 fi 6599 6600 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6602 fi 6603 6604 CFLAGS="$CFLAGS -Wuninitialized" 6605 6606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6607printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6608 cacheid=xorg_cv_cc_flag__Wuninitialized 6609 if eval test \${$cacheid+y} 6610then : 6611 printf %s "(cached) " >&6 6612else case e in #( 6613 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6614/* end confdefs.h. */ 6615int i; 6616int 6617main (void) 6618{ 6619 6620 ; 6621 return 0; 6622} 6623_ACEOF 6624if ac_fn_c_try_link "$LINENO" 6625then : 6626 eval $cacheid=yes 6627else case e in #( 6628 e) eval $cacheid=no ;; 6629esac 6630fi 6631rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6632 conftest$ac_exeext conftest.$ac_ext ;; 6633esac 6634fi 6635 6636 6637 CFLAGS="$xorg_testset_save_CFLAGS" 6638 6639 eval supported=\$$cacheid 6640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6641printf "%s\n" "$supported" >&6; } 6642 if test "$supported" = "yes" ; then 6643 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6644 found="yes" 6645 fi 6646 fi 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662xorg_testset_save_CFLAGS="$CFLAGS" 6663 6664if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6667printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6668if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6669then : 6670 printf %s "(cached) " >&6 6671else case e in #( 6672 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6673/* end confdefs.h. */ 6674int i; 6675_ACEOF 6676if ac_fn_c_try_compile "$LINENO" 6677then : 6678 xorg_cv_cc_flag_unknown_warning_option=yes 6679else case e in #( 6680 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6681esac 6682fi 6683rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6684esac 6685fi 6686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6687printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6688 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6689 CFLAGS="$xorg_testset_save_CFLAGS" 6690fi 6691 6692if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6695 fi 6696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6698printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6699if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6700then : 6701 printf %s "(cached) " >&6 6702else case e in #( 6703 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6704/* end confdefs.h. */ 6705int i; 6706_ACEOF 6707if ac_fn_c_try_compile "$LINENO" 6708then : 6709 xorg_cv_cc_flag_unused_command_line_argument=yes 6710else case e in #( 6711 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6712esac 6713fi 6714rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6715esac 6716fi 6717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6718printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6719 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6720 CFLAGS="$xorg_testset_save_CFLAGS" 6721fi 6722 6723found="no" 6724 6725 if test $found = "no" ; then 6726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6727 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6728 fi 6729 6730 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6732 fi 6733 6734 CFLAGS="$CFLAGS -Wshadow" 6735 6736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6737printf %s "checking if $CC supports -Wshadow... " >&6; } 6738 cacheid=xorg_cv_cc_flag__Wshadow 6739 if eval test \${$cacheid+y} 6740then : 6741 printf %s "(cached) " >&6 6742else case e in #( 6743 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6744/* end confdefs.h. */ 6745int i; 6746int 6747main (void) 6748{ 6749 6750 ; 6751 return 0; 6752} 6753_ACEOF 6754if ac_fn_c_try_link "$LINENO" 6755then : 6756 eval $cacheid=yes 6757else case e in #( 6758 e) eval $cacheid=no ;; 6759esac 6760fi 6761rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6762 conftest$ac_exeext conftest.$ac_ext ;; 6763esac 6764fi 6765 6766 6767 CFLAGS="$xorg_testset_save_CFLAGS" 6768 6769 eval supported=\$$cacheid 6770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6771printf "%s\n" "$supported" >&6; } 6772 if test "$supported" = "yes" ; then 6773 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6774 found="yes" 6775 fi 6776 fi 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792xorg_testset_save_CFLAGS="$CFLAGS" 6793 6794if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6797printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6798if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6799then : 6800 printf %s "(cached) " >&6 6801else case e in #( 6802 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6803/* end confdefs.h. */ 6804int i; 6805_ACEOF 6806if ac_fn_c_try_compile "$LINENO" 6807then : 6808 xorg_cv_cc_flag_unknown_warning_option=yes 6809else case e in #( 6810 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6811esac 6812fi 6813rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6814esac 6815fi 6816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6817printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6818 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6819 CFLAGS="$xorg_testset_save_CFLAGS" 6820fi 6821 6822if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6825 fi 6826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6828printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6829if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6830then : 6831 printf %s "(cached) " >&6 6832else case e in #( 6833 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6834/* end confdefs.h. */ 6835int i; 6836_ACEOF 6837if ac_fn_c_try_compile "$LINENO" 6838then : 6839 xorg_cv_cc_flag_unused_command_line_argument=yes 6840else case e in #( 6841 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6842esac 6843fi 6844rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6845esac 6846fi 6847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6848printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6849 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6850 CFLAGS="$xorg_testset_save_CFLAGS" 6851fi 6852 6853found="no" 6854 6855 if test $found = "no" ; then 6856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6857 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6858 fi 6859 6860 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6862 fi 6863 6864 CFLAGS="$CFLAGS -Wmissing-noreturn" 6865 6866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6867printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6868 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6869 if eval test \${$cacheid+y} 6870then : 6871 printf %s "(cached) " >&6 6872else case e in #( 6873 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6874/* end confdefs.h. */ 6875int i; 6876int 6877main (void) 6878{ 6879 6880 ; 6881 return 0; 6882} 6883_ACEOF 6884if ac_fn_c_try_link "$LINENO" 6885then : 6886 eval $cacheid=yes 6887else case e in #( 6888 e) eval $cacheid=no ;; 6889esac 6890fi 6891rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6892 conftest$ac_exeext conftest.$ac_ext ;; 6893esac 6894fi 6895 6896 6897 CFLAGS="$xorg_testset_save_CFLAGS" 6898 6899 eval supported=\$$cacheid 6900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6901printf "%s\n" "$supported" >&6; } 6902 if test "$supported" = "yes" ; then 6903 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6904 found="yes" 6905 fi 6906 fi 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922xorg_testset_save_CFLAGS="$CFLAGS" 6923 6924if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6925 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6927printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6928if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6929then : 6930 printf %s "(cached) " >&6 6931else case e in #( 6932 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6933/* end confdefs.h. */ 6934int i; 6935_ACEOF 6936if ac_fn_c_try_compile "$LINENO" 6937then : 6938 xorg_cv_cc_flag_unknown_warning_option=yes 6939else case e in #( 6940 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6941esac 6942fi 6943rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6944esac 6945fi 6946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6947printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6948 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6949 CFLAGS="$xorg_testset_save_CFLAGS" 6950fi 6951 6952if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6955 fi 6956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6958printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6959if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6960then : 6961 printf %s "(cached) " >&6 6962else case e in #( 6963 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6964/* end confdefs.h. */ 6965int i; 6966_ACEOF 6967if ac_fn_c_try_compile "$LINENO" 6968then : 6969 xorg_cv_cc_flag_unused_command_line_argument=yes 6970else case e in #( 6971 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6972esac 6973fi 6974rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6975esac 6976fi 6977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6978printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6979 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6980 CFLAGS="$xorg_testset_save_CFLAGS" 6981fi 6982 6983found="no" 6984 6985 if test $found = "no" ; then 6986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6987 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6988 fi 6989 6990 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6992 fi 6993 6994 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6995 6996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6997printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6998 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6999 if eval test \${$cacheid+y} 7000then : 7001 printf %s "(cached) " >&6 7002else case e in #( 7003 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7004/* end confdefs.h. */ 7005int i; 7006int 7007main (void) 7008{ 7009 7010 ; 7011 return 0; 7012} 7013_ACEOF 7014if ac_fn_c_try_link "$LINENO" 7015then : 7016 eval $cacheid=yes 7017else case e in #( 7018 e) eval $cacheid=no ;; 7019esac 7020fi 7021rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7022 conftest$ac_exeext conftest.$ac_ext ;; 7023esac 7024fi 7025 7026 7027 CFLAGS="$xorg_testset_save_CFLAGS" 7028 7029 eval supported=\$$cacheid 7030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7031printf "%s\n" "$supported" >&6; } 7032 if test "$supported" = "yes" ; then 7033 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7034 found="yes" 7035 fi 7036 fi 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052xorg_testset_save_CFLAGS="$CFLAGS" 7053 7054if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7055 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7057printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7058if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7059then : 7060 printf %s "(cached) " >&6 7061else case e in #( 7062 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7063/* end confdefs.h. */ 7064int i; 7065_ACEOF 7066if ac_fn_c_try_compile "$LINENO" 7067then : 7068 xorg_cv_cc_flag_unknown_warning_option=yes 7069else case e in #( 7070 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7071esac 7072fi 7073rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7074esac 7075fi 7076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7077printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7078 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7079 CFLAGS="$xorg_testset_save_CFLAGS" 7080fi 7081 7082if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7084 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7085 fi 7086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7088printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7089if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7090then : 7091 printf %s "(cached) " >&6 7092else case e in #( 7093 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7094/* end confdefs.h. */ 7095int i; 7096_ACEOF 7097if ac_fn_c_try_compile "$LINENO" 7098then : 7099 xorg_cv_cc_flag_unused_command_line_argument=yes 7100else case e in #( 7101 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7102esac 7103fi 7104rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7105esac 7106fi 7107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7108printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7109 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7110 CFLAGS="$xorg_testset_save_CFLAGS" 7111fi 7112 7113found="no" 7114 7115 if test $found = "no" ; then 7116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7118 fi 7119 7120 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7122 fi 7123 7124 CFLAGS="$CFLAGS -Wredundant-decls" 7125 7126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7127printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7128 cacheid=xorg_cv_cc_flag__Wredundant_decls 7129 if eval test \${$cacheid+y} 7130then : 7131 printf %s "(cached) " >&6 7132else case e in #( 7133 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7134/* end confdefs.h. */ 7135int i; 7136int 7137main (void) 7138{ 7139 7140 ; 7141 return 0; 7142} 7143_ACEOF 7144if ac_fn_c_try_link "$LINENO" 7145then : 7146 eval $cacheid=yes 7147else case e in #( 7148 e) eval $cacheid=no ;; 7149esac 7150fi 7151rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7152 conftest$ac_exeext conftest.$ac_ext ;; 7153esac 7154fi 7155 7156 7157 CFLAGS="$xorg_testset_save_CFLAGS" 7158 7159 eval supported=\$$cacheid 7160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7161printf "%s\n" "$supported" >&6; } 7162 if test "$supported" = "yes" ; then 7163 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7164 found="yes" 7165 fi 7166 fi 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182xorg_testset_save_CFLAGS="$CFLAGS" 7183 7184if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7185 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7187printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7188if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7189then : 7190 printf %s "(cached) " >&6 7191else case e in #( 7192 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7193/* end confdefs.h. */ 7194int i; 7195_ACEOF 7196if ac_fn_c_try_compile "$LINENO" 7197then : 7198 xorg_cv_cc_flag_unknown_warning_option=yes 7199else case e in #( 7200 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7201esac 7202fi 7203rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7204esac 7205fi 7206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7207printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7208 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7209 CFLAGS="$xorg_testset_save_CFLAGS" 7210fi 7211 7212if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7213 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7214 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7215 fi 7216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7218printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7219if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7220then : 7221 printf %s "(cached) " >&6 7222else case e in #( 7223 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7224/* end confdefs.h. */ 7225int i; 7226_ACEOF 7227if ac_fn_c_try_compile "$LINENO" 7228then : 7229 xorg_cv_cc_flag_unused_command_line_argument=yes 7230else case e in #( 7231 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7232esac 7233fi 7234rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7235esac 7236fi 7237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7238printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7239 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7240 CFLAGS="$xorg_testset_save_CFLAGS" 7241fi 7242 7243found="no" 7244 7245 if test $found = "no" ; then 7246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7247 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7248 fi 7249 7250 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7252 fi 7253 7254 CFLAGS="$CFLAGS -Wlogical-op" 7255 7256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7257printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7258 cacheid=xorg_cv_cc_flag__Wlogical_op 7259 if eval test \${$cacheid+y} 7260then : 7261 printf %s "(cached) " >&6 7262else case e in #( 7263 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7264/* end confdefs.h. */ 7265int i; 7266int 7267main (void) 7268{ 7269 7270 ; 7271 return 0; 7272} 7273_ACEOF 7274if ac_fn_c_try_link "$LINENO" 7275then : 7276 eval $cacheid=yes 7277else case e in #( 7278 e) eval $cacheid=no ;; 7279esac 7280fi 7281rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7282 conftest$ac_exeext conftest.$ac_ext ;; 7283esac 7284fi 7285 7286 7287 CFLAGS="$xorg_testset_save_CFLAGS" 7288 7289 eval supported=\$$cacheid 7290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7291printf "%s\n" "$supported" >&6; } 7292 if test "$supported" = "yes" ; then 7293 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7294 found="yes" 7295 fi 7296 fi 7297 7298 7299 7300# These are currently disabled because they are noisy. They will be enabled 7301# in the future once the codebase is sufficiently modernized to silence 7302# them. For now, I don't want them to drown out the other warnings. 7303# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7304# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7305# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7306 7307# Turn some warnings into errors, so we don't accidentally get successful builds 7308# when there are problems that should be fixed. 7309 7310if test "x$SELECTIVE_WERROR" = "xyes" ; then 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324xorg_testset_save_CFLAGS="$CFLAGS" 7325 7326if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7329printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7330if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7331then : 7332 printf %s "(cached) " >&6 7333else case e in #( 7334 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7335/* end confdefs.h. */ 7336int i; 7337_ACEOF 7338if ac_fn_c_try_compile "$LINENO" 7339then : 7340 xorg_cv_cc_flag_unknown_warning_option=yes 7341else case e in #( 7342 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7343esac 7344fi 7345rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7346esac 7347fi 7348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7349printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7350 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7351 CFLAGS="$xorg_testset_save_CFLAGS" 7352fi 7353 7354if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7356 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7357 fi 7358 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7360printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7361if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7362then : 7363 printf %s "(cached) " >&6 7364else case e in #( 7365 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7366/* end confdefs.h. */ 7367int i; 7368_ACEOF 7369if ac_fn_c_try_compile "$LINENO" 7370then : 7371 xorg_cv_cc_flag_unused_command_line_argument=yes 7372else case e in #( 7373 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7374esac 7375fi 7376rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7377esac 7378fi 7379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7380printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7381 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7382 CFLAGS="$xorg_testset_save_CFLAGS" 7383fi 7384 7385found="no" 7386 7387 if test $found = "no" ; then 7388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7390 fi 7391 7392 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7394 fi 7395 7396 CFLAGS="$CFLAGS -Werror=implicit" 7397 7398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7399printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7400 cacheid=xorg_cv_cc_flag__Werror_implicit 7401 if eval test \${$cacheid+y} 7402then : 7403 printf %s "(cached) " >&6 7404else case e in #( 7405 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7406/* end confdefs.h. */ 7407int i; 7408int 7409main (void) 7410{ 7411 7412 ; 7413 return 0; 7414} 7415_ACEOF 7416if ac_fn_c_try_link "$LINENO" 7417then : 7418 eval $cacheid=yes 7419else case e in #( 7420 e) eval $cacheid=no ;; 7421esac 7422fi 7423rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7424 conftest$ac_exeext conftest.$ac_ext ;; 7425esac 7426fi 7427 7428 7429 CFLAGS="$xorg_testset_save_CFLAGS" 7430 7431 eval supported=\$$cacheid 7432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7433printf "%s\n" "$supported" >&6; } 7434 if test "$supported" = "yes" ; then 7435 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7436 found="yes" 7437 fi 7438 fi 7439 7440 if test $found = "no" ; then 7441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7442 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7443 fi 7444 7445 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7447 fi 7448 7449 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7450 7451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7452printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7453 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7454 if eval test \${$cacheid+y} 7455then : 7456 printf %s "(cached) " >&6 7457else case e in #( 7458 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7459/* end confdefs.h. */ 7460int i; 7461int 7462main (void) 7463{ 7464 7465 ; 7466 return 0; 7467} 7468_ACEOF 7469if ac_fn_c_try_link "$LINENO" 7470then : 7471 eval $cacheid=yes 7472else case e in #( 7473 e) eval $cacheid=no ;; 7474esac 7475fi 7476rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7477 conftest$ac_exeext conftest.$ac_ext ;; 7478esac 7479fi 7480 7481 7482 CFLAGS="$xorg_testset_save_CFLAGS" 7483 7484 eval supported=\$$cacheid 7485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7486printf "%s\n" "$supported" >&6; } 7487 if test "$supported" = "yes" ; then 7488 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7489 found="yes" 7490 fi 7491 fi 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507xorg_testset_save_CFLAGS="$CFLAGS" 7508 7509if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7510 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7512printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7513if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7514then : 7515 printf %s "(cached) " >&6 7516else case e in #( 7517 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7518/* end confdefs.h. */ 7519int i; 7520_ACEOF 7521if ac_fn_c_try_compile "$LINENO" 7522then : 7523 xorg_cv_cc_flag_unknown_warning_option=yes 7524else case e in #( 7525 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7526esac 7527fi 7528rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7529esac 7530fi 7531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7532printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7533 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7534 CFLAGS="$xorg_testset_save_CFLAGS" 7535fi 7536 7537if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7540 fi 7541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7543printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7544if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7545then : 7546 printf %s "(cached) " >&6 7547else case e in #( 7548 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7549/* end confdefs.h. */ 7550int i; 7551_ACEOF 7552if ac_fn_c_try_compile "$LINENO" 7553then : 7554 xorg_cv_cc_flag_unused_command_line_argument=yes 7555else case e in #( 7556 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7557esac 7558fi 7559rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7560esac 7561fi 7562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7563printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7564 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7565 CFLAGS="$xorg_testset_save_CFLAGS" 7566fi 7567 7568found="no" 7569 7570 if test $found = "no" ; then 7571 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7572 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7573 fi 7574 7575 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7576 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7577 fi 7578 7579 CFLAGS="$CFLAGS -Werror=nonnull" 7580 7581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7582printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7583 cacheid=xorg_cv_cc_flag__Werror_nonnull 7584 if eval test \${$cacheid+y} 7585then : 7586 printf %s "(cached) " >&6 7587else case e in #( 7588 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7589/* end confdefs.h. */ 7590int i; 7591int 7592main (void) 7593{ 7594 7595 ; 7596 return 0; 7597} 7598_ACEOF 7599if ac_fn_c_try_link "$LINENO" 7600then : 7601 eval $cacheid=yes 7602else case e in #( 7603 e) eval $cacheid=no ;; 7604esac 7605fi 7606rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7607 conftest$ac_exeext conftest.$ac_ext ;; 7608esac 7609fi 7610 7611 7612 CFLAGS="$xorg_testset_save_CFLAGS" 7613 7614 eval supported=\$$cacheid 7615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7616printf "%s\n" "$supported" >&6; } 7617 if test "$supported" = "yes" ; then 7618 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7619 found="yes" 7620 fi 7621 fi 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637xorg_testset_save_CFLAGS="$CFLAGS" 7638 7639if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7640 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7642printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7643if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7644then : 7645 printf %s "(cached) " >&6 7646else case e in #( 7647 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7648/* end confdefs.h. */ 7649int i; 7650_ACEOF 7651if ac_fn_c_try_compile "$LINENO" 7652then : 7653 xorg_cv_cc_flag_unknown_warning_option=yes 7654else case e in #( 7655 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7656esac 7657fi 7658rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7659esac 7660fi 7661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7662printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7663 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7664 CFLAGS="$xorg_testset_save_CFLAGS" 7665fi 7666 7667if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7669 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7670 fi 7671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7673printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7674if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7675then : 7676 printf %s "(cached) " >&6 7677else case e in #( 7678 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7679/* end confdefs.h. */ 7680int i; 7681_ACEOF 7682if ac_fn_c_try_compile "$LINENO" 7683then : 7684 xorg_cv_cc_flag_unused_command_line_argument=yes 7685else case e in #( 7686 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7687esac 7688fi 7689rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7690esac 7691fi 7692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7693printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7694 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7695 CFLAGS="$xorg_testset_save_CFLAGS" 7696fi 7697 7698found="no" 7699 7700 if test $found = "no" ; then 7701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7703 fi 7704 7705 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7706 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7707 fi 7708 7709 CFLAGS="$CFLAGS -Werror=init-self" 7710 7711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7712printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7713 cacheid=xorg_cv_cc_flag__Werror_init_self 7714 if eval test \${$cacheid+y} 7715then : 7716 printf %s "(cached) " >&6 7717else case e in #( 7718 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7719/* end confdefs.h. */ 7720int i; 7721int 7722main (void) 7723{ 7724 7725 ; 7726 return 0; 7727} 7728_ACEOF 7729if ac_fn_c_try_link "$LINENO" 7730then : 7731 eval $cacheid=yes 7732else case e in #( 7733 e) eval $cacheid=no ;; 7734esac 7735fi 7736rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7737 conftest$ac_exeext conftest.$ac_ext ;; 7738esac 7739fi 7740 7741 7742 CFLAGS="$xorg_testset_save_CFLAGS" 7743 7744 eval supported=\$$cacheid 7745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7746printf "%s\n" "$supported" >&6; } 7747 if test "$supported" = "yes" ; then 7748 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7749 found="yes" 7750 fi 7751 fi 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767xorg_testset_save_CFLAGS="$CFLAGS" 7768 7769if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7770 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7772printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7773if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7774then : 7775 printf %s "(cached) " >&6 7776else case e in #( 7777 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7778/* end confdefs.h. */ 7779int i; 7780_ACEOF 7781if ac_fn_c_try_compile "$LINENO" 7782then : 7783 xorg_cv_cc_flag_unknown_warning_option=yes 7784else case e in #( 7785 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7786esac 7787fi 7788rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7789esac 7790fi 7791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7792printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7793 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7794 CFLAGS="$xorg_testset_save_CFLAGS" 7795fi 7796 7797if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7800 fi 7801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7803printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7804if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7805then : 7806 printf %s "(cached) " >&6 7807else case e in #( 7808 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7809/* end confdefs.h. */ 7810int i; 7811_ACEOF 7812if ac_fn_c_try_compile "$LINENO" 7813then : 7814 xorg_cv_cc_flag_unused_command_line_argument=yes 7815else case e in #( 7816 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7817esac 7818fi 7819rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7820esac 7821fi 7822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7823printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7824 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7825 CFLAGS="$xorg_testset_save_CFLAGS" 7826fi 7827 7828found="no" 7829 7830 if test $found = "no" ; then 7831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7833 fi 7834 7835 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7837 fi 7838 7839 CFLAGS="$CFLAGS -Werror=main" 7840 7841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7842printf %s "checking if $CC supports -Werror=main... " >&6; } 7843 cacheid=xorg_cv_cc_flag__Werror_main 7844 if eval test \${$cacheid+y} 7845then : 7846 printf %s "(cached) " >&6 7847else case e in #( 7848 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7849/* end confdefs.h. */ 7850int i; 7851int 7852main (void) 7853{ 7854 7855 ; 7856 return 0; 7857} 7858_ACEOF 7859if ac_fn_c_try_link "$LINENO" 7860then : 7861 eval $cacheid=yes 7862else case e in #( 7863 e) eval $cacheid=no ;; 7864esac 7865fi 7866rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7867 conftest$ac_exeext conftest.$ac_ext ;; 7868esac 7869fi 7870 7871 7872 CFLAGS="$xorg_testset_save_CFLAGS" 7873 7874 eval supported=\$$cacheid 7875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7876printf "%s\n" "$supported" >&6; } 7877 if test "$supported" = "yes" ; then 7878 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7879 found="yes" 7880 fi 7881 fi 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897xorg_testset_save_CFLAGS="$CFLAGS" 7898 7899if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7900 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7902printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7903if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7904then : 7905 printf %s "(cached) " >&6 7906else case e in #( 7907 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7908/* end confdefs.h. */ 7909int i; 7910_ACEOF 7911if ac_fn_c_try_compile "$LINENO" 7912then : 7913 xorg_cv_cc_flag_unknown_warning_option=yes 7914else case e in #( 7915 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7916esac 7917fi 7918rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7919esac 7920fi 7921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7922printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7923 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7924 CFLAGS="$xorg_testset_save_CFLAGS" 7925fi 7926 7927if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7928 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7929 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7930 fi 7931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7933printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7934if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7935then : 7936 printf %s "(cached) " >&6 7937else case e in #( 7938 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7939/* end confdefs.h. */ 7940int i; 7941_ACEOF 7942if ac_fn_c_try_compile "$LINENO" 7943then : 7944 xorg_cv_cc_flag_unused_command_line_argument=yes 7945else case e in #( 7946 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7947esac 7948fi 7949rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7950esac 7951fi 7952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7953printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7954 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7955 CFLAGS="$xorg_testset_save_CFLAGS" 7956fi 7957 7958found="no" 7959 7960 if test $found = "no" ; then 7961 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7962 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7963 fi 7964 7965 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7966 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7967 fi 7968 7969 CFLAGS="$CFLAGS -Werror=missing-braces" 7970 7971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7972printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7973 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7974 if eval test \${$cacheid+y} 7975then : 7976 printf %s "(cached) " >&6 7977else case e in #( 7978 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7979/* end confdefs.h. */ 7980int i; 7981int 7982main (void) 7983{ 7984 7985 ; 7986 return 0; 7987} 7988_ACEOF 7989if ac_fn_c_try_link "$LINENO" 7990then : 7991 eval $cacheid=yes 7992else case e in #( 7993 e) eval $cacheid=no ;; 7994esac 7995fi 7996rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7997 conftest$ac_exeext conftest.$ac_ext ;; 7998esac 7999fi 8000 8001 8002 CFLAGS="$xorg_testset_save_CFLAGS" 8003 8004 eval supported=\$$cacheid 8005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8006printf "%s\n" "$supported" >&6; } 8007 if test "$supported" = "yes" ; then 8008 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 8009 found="yes" 8010 fi 8011 fi 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027xorg_testset_save_CFLAGS="$CFLAGS" 8028 8029if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8030 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8032printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8033if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8034then : 8035 printf %s "(cached) " >&6 8036else case e in #( 8037 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8038/* end confdefs.h. */ 8039int i; 8040_ACEOF 8041if ac_fn_c_try_compile "$LINENO" 8042then : 8043 xorg_cv_cc_flag_unknown_warning_option=yes 8044else case e in #( 8045 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8046esac 8047fi 8048rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8049esac 8050fi 8051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8052printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8053 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8054 CFLAGS="$xorg_testset_save_CFLAGS" 8055fi 8056 8057if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8058 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8059 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8060 fi 8061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8063printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8064if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8065then : 8066 printf %s "(cached) " >&6 8067else case e in #( 8068 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8069/* end confdefs.h. */ 8070int i; 8071_ACEOF 8072if ac_fn_c_try_compile "$LINENO" 8073then : 8074 xorg_cv_cc_flag_unused_command_line_argument=yes 8075else case e in #( 8076 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8077esac 8078fi 8079rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8080esac 8081fi 8082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8083printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8084 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8085 CFLAGS="$xorg_testset_save_CFLAGS" 8086fi 8087 8088found="no" 8089 8090 if test $found = "no" ; then 8091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8093 fi 8094 8095 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8096 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8097 fi 8098 8099 CFLAGS="$CFLAGS -Werror=sequence-point" 8100 8101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8102printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8103 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8104 if eval test \${$cacheid+y} 8105then : 8106 printf %s "(cached) " >&6 8107else case e in #( 8108 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8109/* end confdefs.h. */ 8110int i; 8111int 8112main (void) 8113{ 8114 8115 ; 8116 return 0; 8117} 8118_ACEOF 8119if ac_fn_c_try_link "$LINENO" 8120then : 8121 eval $cacheid=yes 8122else case e in #( 8123 e) eval $cacheid=no ;; 8124esac 8125fi 8126rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8127 conftest$ac_exeext conftest.$ac_ext ;; 8128esac 8129fi 8130 8131 8132 CFLAGS="$xorg_testset_save_CFLAGS" 8133 8134 eval supported=\$$cacheid 8135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8136printf "%s\n" "$supported" >&6; } 8137 if test "$supported" = "yes" ; then 8138 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8139 found="yes" 8140 fi 8141 fi 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157xorg_testset_save_CFLAGS="$CFLAGS" 8158 8159if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8160 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8162printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8163if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8164then : 8165 printf %s "(cached) " >&6 8166else case e in #( 8167 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8168/* end confdefs.h. */ 8169int i; 8170_ACEOF 8171if ac_fn_c_try_compile "$LINENO" 8172then : 8173 xorg_cv_cc_flag_unknown_warning_option=yes 8174else case e in #( 8175 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8176esac 8177fi 8178rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8179esac 8180fi 8181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8182printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8183 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8184 CFLAGS="$xorg_testset_save_CFLAGS" 8185fi 8186 8187if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8190 fi 8191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8193printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8194if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8195then : 8196 printf %s "(cached) " >&6 8197else case e in #( 8198 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8199/* end confdefs.h. */ 8200int i; 8201_ACEOF 8202if ac_fn_c_try_compile "$LINENO" 8203then : 8204 xorg_cv_cc_flag_unused_command_line_argument=yes 8205else case e in #( 8206 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8207esac 8208fi 8209rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8210esac 8211fi 8212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8213printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8214 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8215 CFLAGS="$xorg_testset_save_CFLAGS" 8216fi 8217 8218found="no" 8219 8220 if test $found = "no" ; then 8221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8223 fi 8224 8225 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8227 fi 8228 8229 CFLAGS="$CFLAGS -Werror=return-type" 8230 8231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8232printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8233 cacheid=xorg_cv_cc_flag__Werror_return_type 8234 if eval test \${$cacheid+y} 8235then : 8236 printf %s "(cached) " >&6 8237else case e in #( 8238 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8239/* end confdefs.h. */ 8240int i; 8241int 8242main (void) 8243{ 8244 8245 ; 8246 return 0; 8247} 8248_ACEOF 8249if ac_fn_c_try_link "$LINENO" 8250then : 8251 eval $cacheid=yes 8252else case e in #( 8253 e) eval $cacheid=no ;; 8254esac 8255fi 8256rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8257 conftest$ac_exeext conftest.$ac_ext ;; 8258esac 8259fi 8260 8261 8262 CFLAGS="$xorg_testset_save_CFLAGS" 8263 8264 eval supported=\$$cacheid 8265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8266printf "%s\n" "$supported" >&6; } 8267 if test "$supported" = "yes" ; then 8268 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8269 found="yes" 8270 fi 8271 fi 8272 8273 if test $found = "no" ; then 8274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8275 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8276 fi 8277 8278 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8280 fi 8281 8282 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8283 8284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8285printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8286 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8287 if eval test \${$cacheid+y} 8288then : 8289 printf %s "(cached) " >&6 8290else case e in #( 8291 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8292/* end confdefs.h. */ 8293int i; 8294int 8295main (void) 8296{ 8297 8298 ; 8299 return 0; 8300} 8301_ACEOF 8302if ac_fn_c_try_link "$LINENO" 8303then : 8304 eval $cacheid=yes 8305else case e in #( 8306 e) eval $cacheid=no ;; 8307esac 8308fi 8309rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8310 conftest$ac_exeext conftest.$ac_ext ;; 8311esac 8312fi 8313 8314 8315 CFLAGS="$xorg_testset_save_CFLAGS" 8316 8317 eval supported=\$$cacheid 8318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8319printf "%s\n" "$supported" >&6; } 8320 if test "$supported" = "yes" ; then 8321 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8322 found="yes" 8323 fi 8324 fi 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340xorg_testset_save_CFLAGS="$CFLAGS" 8341 8342if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8343 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8345printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8346if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8347then : 8348 printf %s "(cached) " >&6 8349else case e in #( 8350 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8351/* end confdefs.h. */ 8352int i; 8353_ACEOF 8354if ac_fn_c_try_compile "$LINENO" 8355then : 8356 xorg_cv_cc_flag_unknown_warning_option=yes 8357else case e in #( 8358 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8359esac 8360fi 8361rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8362esac 8363fi 8364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8365printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8366 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8367 CFLAGS="$xorg_testset_save_CFLAGS" 8368fi 8369 8370if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8373 fi 8374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8376printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8377if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8378then : 8379 printf %s "(cached) " >&6 8380else case e in #( 8381 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8382/* end confdefs.h. */ 8383int i; 8384_ACEOF 8385if ac_fn_c_try_compile "$LINENO" 8386then : 8387 xorg_cv_cc_flag_unused_command_line_argument=yes 8388else case e in #( 8389 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8390esac 8391fi 8392rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8393esac 8394fi 8395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8396printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8397 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8398 CFLAGS="$xorg_testset_save_CFLAGS" 8399fi 8400 8401found="no" 8402 8403 if test $found = "no" ; then 8404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8406 fi 8407 8408 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8410 fi 8411 8412 CFLAGS="$CFLAGS -Werror=trigraphs" 8413 8414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8415printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8416 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8417 if eval test \${$cacheid+y} 8418then : 8419 printf %s "(cached) " >&6 8420else case e in #( 8421 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8422/* end confdefs.h. */ 8423int i; 8424int 8425main (void) 8426{ 8427 8428 ; 8429 return 0; 8430} 8431_ACEOF 8432if ac_fn_c_try_link "$LINENO" 8433then : 8434 eval $cacheid=yes 8435else case e in #( 8436 e) eval $cacheid=no ;; 8437esac 8438fi 8439rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8440 conftest$ac_exeext conftest.$ac_ext ;; 8441esac 8442fi 8443 8444 8445 CFLAGS="$xorg_testset_save_CFLAGS" 8446 8447 eval supported=\$$cacheid 8448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8449printf "%s\n" "$supported" >&6; } 8450 if test "$supported" = "yes" ; then 8451 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8452 found="yes" 8453 fi 8454 fi 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470xorg_testset_save_CFLAGS="$CFLAGS" 8471 8472if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8473 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8475printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8476if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8477then : 8478 printf %s "(cached) " >&6 8479else case e in #( 8480 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8481/* end confdefs.h. */ 8482int i; 8483_ACEOF 8484if ac_fn_c_try_compile "$LINENO" 8485then : 8486 xorg_cv_cc_flag_unknown_warning_option=yes 8487else case e in #( 8488 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8489esac 8490fi 8491rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8492esac 8493fi 8494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8495printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8496 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8497 CFLAGS="$xorg_testset_save_CFLAGS" 8498fi 8499 8500if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8503 fi 8504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8506printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8507if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8508then : 8509 printf %s "(cached) " >&6 8510else case e in #( 8511 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8512/* end confdefs.h. */ 8513int i; 8514_ACEOF 8515if ac_fn_c_try_compile "$LINENO" 8516then : 8517 xorg_cv_cc_flag_unused_command_line_argument=yes 8518else case e in #( 8519 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8520esac 8521fi 8522rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8523esac 8524fi 8525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8526printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8527 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8528 CFLAGS="$xorg_testset_save_CFLAGS" 8529fi 8530 8531found="no" 8532 8533 if test $found = "no" ; then 8534 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8536 fi 8537 8538 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8540 fi 8541 8542 CFLAGS="$CFLAGS -Werror=array-bounds" 8543 8544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8545printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8546 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8547 if eval test \${$cacheid+y} 8548then : 8549 printf %s "(cached) " >&6 8550else case e in #( 8551 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8552/* end confdefs.h. */ 8553int i; 8554int 8555main (void) 8556{ 8557 8558 ; 8559 return 0; 8560} 8561_ACEOF 8562if ac_fn_c_try_link "$LINENO" 8563then : 8564 eval $cacheid=yes 8565else case e in #( 8566 e) eval $cacheid=no ;; 8567esac 8568fi 8569rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8570 conftest$ac_exeext conftest.$ac_ext ;; 8571esac 8572fi 8573 8574 8575 CFLAGS="$xorg_testset_save_CFLAGS" 8576 8577 eval supported=\$$cacheid 8578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8579printf "%s\n" "$supported" >&6; } 8580 if test "$supported" = "yes" ; then 8581 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8582 found="yes" 8583 fi 8584 fi 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600xorg_testset_save_CFLAGS="$CFLAGS" 8601 8602if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8603 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8605printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8606if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8607then : 8608 printf %s "(cached) " >&6 8609else case e in #( 8610 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8611/* end confdefs.h. */ 8612int i; 8613_ACEOF 8614if ac_fn_c_try_compile "$LINENO" 8615then : 8616 xorg_cv_cc_flag_unknown_warning_option=yes 8617else case e in #( 8618 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8619esac 8620fi 8621rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8622esac 8623fi 8624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8625printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8626 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8627 CFLAGS="$xorg_testset_save_CFLAGS" 8628fi 8629 8630if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8633 fi 8634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8636printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8637if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8638then : 8639 printf %s "(cached) " >&6 8640else case e in #( 8641 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8642/* end confdefs.h. */ 8643int i; 8644_ACEOF 8645if ac_fn_c_try_compile "$LINENO" 8646then : 8647 xorg_cv_cc_flag_unused_command_line_argument=yes 8648else case e in #( 8649 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8650esac 8651fi 8652rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8653esac 8654fi 8655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8656printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8657 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8658 CFLAGS="$xorg_testset_save_CFLAGS" 8659fi 8660 8661found="no" 8662 8663 if test $found = "no" ; then 8664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8666 fi 8667 8668 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8670 fi 8671 8672 CFLAGS="$CFLAGS -Werror=write-strings" 8673 8674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8675printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8676 cacheid=xorg_cv_cc_flag__Werror_write_strings 8677 if eval test \${$cacheid+y} 8678then : 8679 printf %s "(cached) " >&6 8680else case e in #( 8681 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8682/* end confdefs.h. */ 8683int i; 8684int 8685main (void) 8686{ 8687 8688 ; 8689 return 0; 8690} 8691_ACEOF 8692if ac_fn_c_try_link "$LINENO" 8693then : 8694 eval $cacheid=yes 8695else case e in #( 8696 e) eval $cacheid=no ;; 8697esac 8698fi 8699rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8700 conftest$ac_exeext conftest.$ac_ext ;; 8701esac 8702fi 8703 8704 8705 CFLAGS="$xorg_testset_save_CFLAGS" 8706 8707 eval supported=\$$cacheid 8708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8709printf "%s\n" "$supported" >&6; } 8710 if test "$supported" = "yes" ; then 8711 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8712 found="yes" 8713 fi 8714 fi 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730xorg_testset_save_CFLAGS="$CFLAGS" 8731 8732if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8735printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8736if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8737then : 8738 printf %s "(cached) " >&6 8739else case e in #( 8740 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8741/* end confdefs.h. */ 8742int i; 8743_ACEOF 8744if ac_fn_c_try_compile "$LINENO" 8745then : 8746 xorg_cv_cc_flag_unknown_warning_option=yes 8747else case e in #( 8748 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8749esac 8750fi 8751rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8752esac 8753fi 8754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8755printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8756 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8757 CFLAGS="$xorg_testset_save_CFLAGS" 8758fi 8759 8760if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8761 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8763 fi 8764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8766printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8767if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8768then : 8769 printf %s "(cached) " >&6 8770else case e in #( 8771 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8772/* end confdefs.h. */ 8773int i; 8774_ACEOF 8775if ac_fn_c_try_compile "$LINENO" 8776then : 8777 xorg_cv_cc_flag_unused_command_line_argument=yes 8778else case e in #( 8779 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8780esac 8781fi 8782rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8783esac 8784fi 8785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8786printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8787 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8788 CFLAGS="$xorg_testset_save_CFLAGS" 8789fi 8790 8791found="no" 8792 8793 if test $found = "no" ; then 8794 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8796 fi 8797 8798 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8800 fi 8801 8802 CFLAGS="$CFLAGS -Werror=address" 8803 8804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8805printf %s "checking if $CC supports -Werror=address... " >&6; } 8806 cacheid=xorg_cv_cc_flag__Werror_address 8807 if eval test \${$cacheid+y} 8808then : 8809 printf %s "(cached) " >&6 8810else case e in #( 8811 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8812/* end confdefs.h. */ 8813int i; 8814int 8815main (void) 8816{ 8817 8818 ; 8819 return 0; 8820} 8821_ACEOF 8822if ac_fn_c_try_link "$LINENO" 8823then : 8824 eval $cacheid=yes 8825else case e in #( 8826 e) eval $cacheid=no ;; 8827esac 8828fi 8829rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8830 conftest$ac_exeext conftest.$ac_ext ;; 8831esac 8832fi 8833 8834 8835 CFLAGS="$xorg_testset_save_CFLAGS" 8836 8837 eval supported=\$$cacheid 8838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8839printf "%s\n" "$supported" >&6; } 8840 if test "$supported" = "yes" ; then 8841 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8842 found="yes" 8843 fi 8844 fi 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860xorg_testset_save_CFLAGS="$CFLAGS" 8861 8862if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8865printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8866if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8867then : 8868 printf %s "(cached) " >&6 8869else case e in #( 8870 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8871/* end confdefs.h. */ 8872int i; 8873_ACEOF 8874if ac_fn_c_try_compile "$LINENO" 8875then : 8876 xorg_cv_cc_flag_unknown_warning_option=yes 8877else case e in #( 8878 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8879esac 8880fi 8881rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8882esac 8883fi 8884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8885printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8886 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8887 CFLAGS="$xorg_testset_save_CFLAGS" 8888fi 8889 8890if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8893 fi 8894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8896printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8897if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8898then : 8899 printf %s "(cached) " >&6 8900else case e in #( 8901 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8902/* end confdefs.h. */ 8903int i; 8904_ACEOF 8905if ac_fn_c_try_compile "$LINENO" 8906then : 8907 xorg_cv_cc_flag_unused_command_line_argument=yes 8908else case e in #( 8909 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8910esac 8911fi 8912rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8913esac 8914fi 8915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8916printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8917 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8918 CFLAGS="$xorg_testset_save_CFLAGS" 8919fi 8920 8921found="no" 8922 8923 if test $found = "no" ; then 8924 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8925 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8926 fi 8927 8928 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8930 fi 8931 8932 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8933 8934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8935printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8936 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8937 if eval test \${$cacheid+y} 8938then : 8939 printf %s "(cached) " >&6 8940else case e in #( 8941 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8942/* end confdefs.h. */ 8943int i; 8944int 8945main (void) 8946{ 8947 8948 ; 8949 return 0; 8950} 8951_ACEOF 8952if ac_fn_c_try_link "$LINENO" 8953then : 8954 eval $cacheid=yes 8955else case e in #( 8956 e) eval $cacheid=no ;; 8957esac 8958fi 8959rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8960 conftest$ac_exeext conftest.$ac_ext ;; 8961esac 8962fi 8963 8964 8965 CFLAGS="$xorg_testset_save_CFLAGS" 8966 8967 eval supported=\$$cacheid 8968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8969printf "%s\n" "$supported" >&6; } 8970 if test "$supported" = "yes" ; then 8971 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8972 found="yes" 8973 fi 8974 fi 8975 8976 if test $found = "no" ; then 8977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8978 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8979 fi 8980 8981 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8983 fi 8984 8985 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8986 8987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8988printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8989 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8990 if eval test \${$cacheid+y} 8991then : 8992 printf %s "(cached) " >&6 8993else case e in #( 8994 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8995/* end confdefs.h. */ 8996int i; 8997int 8998main (void) 8999{ 9000 9001 ; 9002 return 0; 9003} 9004_ACEOF 9005if ac_fn_c_try_link "$LINENO" 9006then : 9007 eval $cacheid=yes 9008else case e in #( 9009 e) eval $cacheid=no ;; 9010esac 9011fi 9012rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9013 conftest$ac_exeext conftest.$ac_ext ;; 9014esac 9015fi 9016 9017 9018 CFLAGS="$xorg_testset_save_CFLAGS" 9019 9020 eval supported=\$$cacheid 9021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9022printf "%s\n" "$supported" >&6; } 9023 if test "$supported" = "yes" ; then 9024 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9025 found="yes" 9026 fi 9027 fi 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043xorg_testset_save_CFLAGS="$CFLAGS" 9044 9045if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9048printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9049if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9050then : 9051 printf %s "(cached) " >&6 9052else case e in #( 9053 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9054/* end confdefs.h. */ 9055int i; 9056_ACEOF 9057if ac_fn_c_try_compile "$LINENO" 9058then : 9059 xorg_cv_cc_flag_unknown_warning_option=yes 9060else case e in #( 9061 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9062esac 9063fi 9064rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9065esac 9066fi 9067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9068printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9069 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9070 CFLAGS="$xorg_testset_save_CFLAGS" 9071fi 9072 9073if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9075 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9076 fi 9077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9079printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9080if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9081then : 9082 printf %s "(cached) " >&6 9083else case e in #( 9084 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9085/* end confdefs.h. */ 9086int i; 9087_ACEOF 9088if ac_fn_c_try_compile "$LINENO" 9089then : 9090 xorg_cv_cc_flag_unused_command_line_argument=yes 9091else case e in #( 9092 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9093esac 9094fi 9095rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9096esac 9097fi 9098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9099printf "%s\n" "$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" 9102fi 9103 9104found="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 -Werror=pointer-to-int-cast" 9116 9117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9118printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9119 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9120 if eval test \${$cacheid+y} 9121then : 9122 printf %s "(cached) " >&6 9123else case e in #( 9124 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9125/* end confdefs.h. */ 9126int i; 9127int 9128main (void) 9129{ 9130 9131 ; 9132 return 0; 9133} 9134_ACEOF 9135if ac_fn_c_try_link "$LINENO" 9136then : 9137 eval $cacheid=yes 9138else case e in #( 9139 e) eval $cacheid=no ;; 9140esac 9141fi 9142rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9143 conftest$ac_exeext conftest.$ac_ext ;; 9144esac 9145fi 9146 9147 9148 CFLAGS="$xorg_testset_save_CFLAGS" 9149 9150 eval supported=\$$cacheid 9151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9152printf "%s\n" "$supported" >&6; } 9153 if test "$supported" = "yes" ; then 9154 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9155 found="yes" 9156 fi 9157 fi 9158 9159 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9160else 9161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5 9162printf "%s\n" "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;} 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176xorg_testset_save_CFLAGS="$CFLAGS" 9177 9178if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9181printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9182if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9183then : 9184 printf %s "(cached) " >&6 9185else case e in #( 9186 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9187/* end confdefs.h. */ 9188int i; 9189_ACEOF 9190if ac_fn_c_try_compile "$LINENO" 9191then : 9192 xorg_cv_cc_flag_unknown_warning_option=yes 9193else case e in #( 9194 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9195esac 9196fi 9197rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9198esac 9199fi 9200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9201printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9202 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9203 CFLAGS="$xorg_testset_save_CFLAGS" 9204fi 9205 9206if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9208 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9209 fi 9210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9212printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9213if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9214then : 9215 printf %s "(cached) " >&6 9216else case e in #( 9217 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9218/* end confdefs.h. */ 9219int i; 9220_ACEOF 9221if ac_fn_c_try_compile "$LINENO" 9222then : 9223 xorg_cv_cc_flag_unused_command_line_argument=yes 9224else case e in #( 9225 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9226esac 9227fi 9228rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9229esac 9230fi 9231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9232printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9233 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9234 CFLAGS="$xorg_testset_save_CFLAGS" 9235fi 9236 9237found="no" 9238 9239 if test $found = "no" ; then 9240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9242 fi 9243 9244 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9246 fi 9247 9248 CFLAGS="$CFLAGS -Wimplicit" 9249 9250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9251printf %s "checking if $CC supports -Wimplicit... " >&6; } 9252 cacheid=xorg_cv_cc_flag__Wimplicit 9253 if eval test \${$cacheid+y} 9254then : 9255 printf %s "(cached) " >&6 9256else case e in #( 9257 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9258/* end confdefs.h. */ 9259int i; 9260int 9261main (void) 9262{ 9263 9264 ; 9265 return 0; 9266} 9267_ACEOF 9268if ac_fn_c_try_link "$LINENO" 9269then : 9270 eval $cacheid=yes 9271else case e in #( 9272 e) eval $cacheid=no ;; 9273esac 9274fi 9275rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9276 conftest$ac_exeext conftest.$ac_ext ;; 9277esac 9278fi 9279 9280 9281 CFLAGS="$xorg_testset_save_CFLAGS" 9282 9283 eval supported=\$$cacheid 9284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9285printf "%s\n" "$supported" >&6; } 9286 if test "$supported" = "yes" ; then 9287 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9288 found="yes" 9289 fi 9290 fi 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306xorg_testset_save_CFLAGS="$CFLAGS" 9307 9308if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9309 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9311printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9312if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9313then : 9314 printf %s "(cached) " >&6 9315else case e in #( 9316 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9317/* end confdefs.h. */ 9318int i; 9319_ACEOF 9320if ac_fn_c_try_compile "$LINENO" 9321then : 9322 xorg_cv_cc_flag_unknown_warning_option=yes 9323else case e in #( 9324 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9325esac 9326fi 9327rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9328esac 9329fi 9330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9331printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9332 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9333 CFLAGS="$xorg_testset_save_CFLAGS" 9334fi 9335 9336if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9338 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9339 fi 9340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9342printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9343if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9344then : 9345 printf %s "(cached) " >&6 9346else case e in #( 9347 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9348/* end confdefs.h. */ 9349int i; 9350_ACEOF 9351if ac_fn_c_try_compile "$LINENO" 9352then : 9353 xorg_cv_cc_flag_unused_command_line_argument=yes 9354else case e in #( 9355 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9356esac 9357fi 9358rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9359esac 9360fi 9361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9362printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9363 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9364 CFLAGS="$xorg_testset_save_CFLAGS" 9365fi 9366 9367found="no" 9368 9369 if test $found = "no" ; then 9370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9372 fi 9373 9374 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9376 fi 9377 9378 CFLAGS="$CFLAGS -Wnonnull" 9379 9380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9381printf %s "checking if $CC supports -Wnonnull... " >&6; } 9382 cacheid=xorg_cv_cc_flag__Wnonnull 9383 if eval test \${$cacheid+y} 9384then : 9385 printf %s "(cached) " >&6 9386else case e in #( 9387 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9388/* end confdefs.h. */ 9389int i; 9390int 9391main (void) 9392{ 9393 9394 ; 9395 return 0; 9396} 9397_ACEOF 9398if ac_fn_c_try_link "$LINENO" 9399then : 9400 eval $cacheid=yes 9401else case e in #( 9402 e) eval $cacheid=no ;; 9403esac 9404fi 9405rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9406 conftest$ac_exeext conftest.$ac_ext ;; 9407esac 9408fi 9409 9410 9411 CFLAGS="$xorg_testset_save_CFLAGS" 9412 9413 eval supported=\$$cacheid 9414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9415printf "%s\n" "$supported" >&6; } 9416 if test "$supported" = "yes" ; then 9417 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9418 found="yes" 9419 fi 9420 fi 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436xorg_testset_save_CFLAGS="$CFLAGS" 9437 9438if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9441printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9442if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9443then : 9444 printf %s "(cached) " >&6 9445else case e in #( 9446 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9447/* end confdefs.h. */ 9448int i; 9449_ACEOF 9450if ac_fn_c_try_compile "$LINENO" 9451then : 9452 xorg_cv_cc_flag_unknown_warning_option=yes 9453else case e in #( 9454 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9455esac 9456fi 9457rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9458esac 9459fi 9460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9461printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9462 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9463 CFLAGS="$xorg_testset_save_CFLAGS" 9464fi 9465 9466if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9469 fi 9470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9472printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9473if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9474then : 9475 printf %s "(cached) " >&6 9476else case e in #( 9477 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9478/* end confdefs.h. */ 9479int i; 9480_ACEOF 9481if ac_fn_c_try_compile "$LINENO" 9482then : 9483 xorg_cv_cc_flag_unused_command_line_argument=yes 9484else case e in #( 9485 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9486esac 9487fi 9488rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9489esac 9490fi 9491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9492printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9493 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9494 CFLAGS="$xorg_testset_save_CFLAGS" 9495fi 9496 9497found="no" 9498 9499 if test $found = "no" ; then 9500 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9501 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9502 fi 9503 9504 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9506 fi 9507 9508 CFLAGS="$CFLAGS -Winit-self" 9509 9510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9511printf %s "checking if $CC supports -Winit-self... " >&6; } 9512 cacheid=xorg_cv_cc_flag__Winit_self 9513 if eval test \${$cacheid+y} 9514then : 9515 printf %s "(cached) " >&6 9516else case e in #( 9517 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9518/* end confdefs.h. */ 9519int i; 9520int 9521main (void) 9522{ 9523 9524 ; 9525 return 0; 9526} 9527_ACEOF 9528if ac_fn_c_try_link "$LINENO" 9529then : 9530 eval $cacheid=yes 9531else case e in #( 9532 e) eval $cacheid=no ;; 9533esac 9534fi 9535rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9536 conftest$ac_exeext conftest.$ac_ext ;; 9537esac 9538fi 9539 9540 9541 CFLAGS="$xorg_testset_save_CFLAGS" 9542 9543 eval supported=\$$cacheid 9544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9545printf "%s\n" "$supported" >&6; } 9546 if test "$supported" = "yes" ; then 9547 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9548 found="yes" 9549 fi 9550 fi 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566xorg_testset_save_CFLAGS="$CFLAGS" 9567 9568if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9569 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9571printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9572if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9573then : 9574 printf %s "(cached) " >&6 9575else case e in #( 9576 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9577/* end confdefs.h. */ 9578int i; 9579_ACEOF 9580if ac_fn_c_try_compile "$LINENO" 9581then : 9582 xorg_cv_cc_flag_unknown_warning_option=yes 9583else case e in #( 9584 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9585esac 9586fi 9587rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9588esac 9589fi 9590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9591printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9592 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9593 CFLAGS="$xorg_testset_save_CFLAGS" 9594fi 9595 9596if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9599 fi 9600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9602printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9603if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9604then : 9605 printf %s "(cached) " >&6 9606else case e in #( 9607 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9608/* end confdefs.h. */ 9609int i; 9610_ACEOF 9611if ac_fn_c_try_compile "$LINENO" 9612then : 9613 xorg_cv_cc_flag_unused_command_line_argument=yes 9614else case e in #( 9615 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9616esac 9617fi 9618rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9619esac 9620fi 9621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9622printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9623 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9624 CFLAGS="$xorg_testset_save_CFLAGS" 9625fi 9626 9627found="no" 9628 9629 if test $found = "no" ; then 9630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9632 fi 9633 9634 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9636 fi 9637 9638 CFLAGS="$CFLAGS -Wmain" 9639 9640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9641printf %s "checking if $CC supports -Wmain... " >&6; } 9642 cacheid=xorg_cv_cc_flag__Wmain 9643 if eval test \${$cacheid+y} 9644then : 9645 printf %s "(cached) " >&6 9646else case e in #( 9647 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9648/* end confdefs.h. */ 9649int i; 9650int 9651main (void) 9652{ 9653 9654 ; 9655 return 0; 9656} 9657_ACEOF 9658if ac_fn_c_try_link "$LINENO" 9659then : 9660 eval $cacheid=yes 9661else case e in #( 9662 e) eval $cacheid=no ;; 9663esac 9664fi 9665rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9666 conftest$ac_exeext conftest.$ac_ext ;; 9667esac 9668fi 9669 9670 9671 CFLAGS="$xorg_testset_save_CFLAGS" 9672 9673 eval supported=\$$cacheid 9674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9675printf "%s\n" "$supported" >&6; } 9676 if test "$supported" = "yes" ; then 9677 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9678 found="yes" 9679 fi 9680 fi 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696xorg_testset_save_CFLAGS="$CFLAGS" 9697 9698if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9699 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9701printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9702if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9703then : 9704 printf %s "(cached) " >&6 9705else case e in #( 9706 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9707/* end confdefs.h. */ 9708int i; 9709_ACEOF 9710if ac_fn_c_try_compile "$LINENO" 9711then : 9712 xorg_cv_cc_flag_unknown_warning_option=yes 9713else case e in #( 9714 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9715esac 9716fi 9717rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9718esac 9719fi 9720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9721printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9722 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9723 CFLAGS="$xorg_testset_save_CFLAGS" 9724fi 9725 9726if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9729 fi 9730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9732printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9733if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9734then : 9735 printf %s "(cached) " >&6 9736else case e in #( 9737 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9738/* end confdefs.h. */ 9739int i; 9740_ACEOF 9741if ac_fn_c_try_compile "$LINENO" 9742then : 9743 xorg_cv_cc_flag_unused_command_line_argument=yes 9744else case e in #( 9745 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9746esac 9747fi 9748rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9749esac 9750fi 9751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9752printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9753 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9754 CFLAGS="$xorg_testset_save_CFLAGS" 9755fi 9756 9757found="no" 9758 9759 if test $found = "no" ; then 9760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9761 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9762 fi 9763 9764 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9766 fi 9767 9768 CFLAGS="$CFLAGS -Wmissing-braces" 9769 9770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9771printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9772 cacheid=xorg_cv_cc_flag__Wmissing_braces 9773 if eval test \${$cacheid+y} 9774then : 9775 printf %s "(cached) " >&6 9776else case e in #( 9777 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9778/* end confdefs.h. */ 9779int i; 9780int 9781main (void) 9782{ 9783 9784 ; 9785 return 0; 9786} 9787_ACEOF 9788if ac_fn_c_try_link "$LINENO" 9789then : 9790 eval $cacheid=yes 9791else case e in #( 9792 e) eval $cacheid=no ;; 9793esac 9794fi 9795rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9796 conftest$ac_exeext conftest.$ac_ext ;; 9797esac 9798fi 9799 9800 9801 CFLAGS="$xorg_testset_save_CFLAGS" 9802 9803 eval supported=\$$cacheid 9804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9805printf "%s\n" "$supported" >&6; } 9806 if test "$supported" = "yes" ; then 9807 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9808 found="yes" 9809 fi 9810 fi 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826xorg_testset_save_CFLAGS="$CFLAGS" 9827 9828if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9829 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9831printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9832if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9833then : 9834 printf %s "(cached) " >&6 9835else case e in #( 9836 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9837/* end confdefs.h. */ 9838int i; 9839_ACEOF 9840if ac_fn_c_try_compile "$LINENO" 9841then : 9842 xorg_cv_cc_flag_unknown_warning_option=yes 9843else case e in #( 9844 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9845esac 9846fi 9847rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9848esac 9849fi 9850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9851printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9852 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9853 CFLAGS="$xorg_testset_save_CFLAGS" 9854fi 9855 9856if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9859 fi 9860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9862printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9863if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9864then : 9865 printf %s "(cached) " >&6 9866else case e in #( 9867 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9868/* end confdefs.h. */ 9869int i; 9870_ACEOF 9871if ac_fn_c_try_compile "$LINENO" 9872then : 9873 xorg_cv_cc_flag_unused_command_line_argument=yes 9874else case e in #( 9875 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9876esac 9877fi 9878rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9879esac 9880fi 9881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9882printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9883 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9884 CFLAGS="$xorg_testset_save_CFLAGS" 9885fi 9886 9887found="no" 9888 9889 if test $found = "no" ; then 9890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9892 fi 9893 9894 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9896 fi 9897 9898 CFLAGS="$CFLAGS -Wsequence-point" 9899 9900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9901printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9902 cacheid=xorg_cv_cc_flag__Wsequence_point 9903 if eval test \${$cacheid+y} 9904then : 9905 printf %s "(cached) " >&6 9906else case e in #( 9907 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9908/* end confdefs.h. */ 9909int i; 9910int 9911main (void) 9912{ 9913 9914 ; 9915 return 0; 9916} 9917_ACEOF 9918if ac_fn_c_try_link "$LINENO" 9919then : 9920 eval $cacheid=yes 9921else case e in #( 9922 e) eval $cacheid=no ;; 9923esac 9924fi 9925rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9926 conftest$ac_exeext conftest.$ac_ext ;; 9927esac 9928fi 9929 9930 9931 CFLAGS="$xorg_testset_save_CFLAGS" 9932 9933 eval supported=\$$cacheid 9934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9935printf "%s\n" "$supported" >&6; } 9936 if test "$supported" = "yes" ; then 9937 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9938 found="yes" 9939 fi 9940 fi 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956xorg_testset_save_CFLAGS="$CFLAGS" 9957 9958if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9961printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9962if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9963then : 9964 printf %s "(cached) " >&6 9965else case e in #( 9966 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9967/* end confdefs.h. */ 9968int i; 9969_ACEOF 9970if ac_fn_c_try_compile "$LINENO" 9971then : 9972 xorg_cv_cc_flag_unknown_warning_option=yes 9973else case e in #( 9974 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9975esac 9976fi 9977rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9978esac 9979fi 9980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9981printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9982 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9983 CFLAGS="$xorg_testset_save_CFLAGS" 9984fi 9985 9986if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9989 fi 9990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9992printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9993if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9994then : 9995 printf %s "(cached) " >&6 9996else case e in #( 9997 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9998/* end confdefs.h. */ 9999int i; 10000_ACEOF 10001if ac_fn_c_try_compile "$LINENO" 10002then : 10003 xorg_cv_cc_flag_unused_command_line_argument=yes 10004else case e in #( 10005 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10006esac 10007fi 10008rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10009esac 10010fi 10011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10012printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10013 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10014 CFLAGS="$xorg_testset_save_CFLAGS" 10015fi 10016 10017found="no" 10018 10019 if test $found = "no" ; then 10020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10022 fi 10023 10024 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10026 fi 10027 10028 CFLAGS="$CFLAGS -Wreturn-type" 10029 10030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 10031printf %s "checking if $CC supports -Wreturn-type... " >&6; } 10032 cacheid=xorg_cv_cc_flag__Wreturn_type 10033 if eval test \${$cacheid+y} 10034then : 10035 printf %s "(cached) " >&6 10036else case e in #( 10037 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10038/* end confdefs.h. */ 10039int i; 10040int 10041main (void) 10042{ 10043 10044 ; 10045 return 0; 10046} 10047_ACEOF 10048if ac_fn_c_try_link "$LINENO" 10049then : 10050 eval $cacheid=yes 10051else case e in #( 10052 e) eval $cacheid=no ;; 10053esac 10054fi 10055rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10056 conftest$ac_exeext conftest.$ac_ext ;; 10057esac 10058fi 10059 10060 10061 CFLAGS="$xorg_testset_save_CFLAGS" 10062 10063 eval supported=\$$cacheid 10064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10065printf "%s\n" "$supported" >&6; } 10066 if test "$supported" = "yes" ; then 10067 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 10068 found="yes" 10069 fi 10070 fi 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086xorg_testset_save_CFLAGS="$CFLAGS" 10087 10088if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10091printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10092if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10093then : 10094 printf %s "(cached) " >&6 10095else case e in #( 10096 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10097/* end confdefs.h. */ 10098int i; 10099_ACEOF 10100if ac_fn_c_try_compile "$LINENO" 10101then : 10102 xorg_cv_cc_flag_unknown_warning_option=yes 10103else case e in #( 10104 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10105esac 10106fi 10107rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10108esac 10109fi 10110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10111printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10112 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10113 CFLAGS="$xorg_testset_save_CFLAGS" 10114fi 10115 10116if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10119 fi 10120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10122printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10123if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10124then : 10125 printf %s "(cached) " >&6 10126else case e in #( 10127 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10128/* end confdefs.h. */ 10129int i; 10130_ACEOF 10131if ac_fn_c_try_compile "$LINENO" 10132then : 10133 xorg_cv_cc_flag_unused_command_line_argument=yes 10134else case e in #( 10135 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10136esac 10137fi 10138rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10139esac 10140fi 10141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10142printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10143 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10144 CFLAGS="$xorg_testset_save_CFLAGS" 10145fi 10146 10147found="no" 10148 10149 if test $found = "no" ; then 10150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10152 fi 10153 10154 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10156 fi 10157 10158 CFLAGS="$CFLAGS -Wtrigraphs" 10159 10160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10161printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10162 cacheid=xorg_cv_cc_flag__Wtrigraphs 10163 if eval test \${$cacheid+y} 10164then : 10165 printf %s "(cached) " >&6 10166else case e in #( 10167 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10168/* end confdefs.h. */ 10169int i; 10170int 10171main (void) 10172{ 10173 10174 ; 10175 return 0; 10176} 10177_ACEOF 10178if ac_fn_c_try_link "$LINENO" 10179then : 10180 eval $cacheid=yes 10181else case e in #( 10182 e) eval $cacheid=no ;; 10183esac 10184fi 10185rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10186 conftest$ac_exeext conftest.$ac_ext ;; 10187esac 10188fi 10189 10190 10191 CFLAGS="$xorg_testset_save_CFLAGS" 10192 10193 eval supported=\$$cacheid 10194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10195printf "%s\n" "$supported" >&6; } 10196 if test "$supported" = "yes" ; then 10197 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10198 found="yes" 10199 fi 10200 fi 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216xorg_testset_save_CFLAGS="$CFLAGS" 10217 10218if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10221printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10222if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10223then : 10224 printf %s "(cached) " >&6 10225else case e in #( 10226 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10227/* end confdefs.h. */ 10228int i; 10229_ACEOF 10230if ac_fn_c_try_compile "$LINENO" 10231then : 10232 xorg_cv_cc_flag_unknown_warning_option=yes 10233else case e in #( 10234 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10235esac 10236fi 10237rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10238esac 10239fi 10240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10241printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10242 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10243 CFLAGS="$xorg_testset_save_CFLAGS" 10244fi 10245 10246if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10249 fi 10250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10252printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10253if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10254then : 10255 printf %s "(cached) " >&6 10256else case e in #( 10257 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10258/* end confdefs.h. */ 10259int i; 10260_ACEOF 10261if ac_fn_c_try_compile "$LINENO" 10262then : 10263 xorg_cv_cc_flag_unused_command_line_argument=yes 10264else case e in #( 10265 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10266esac 10267fi 10268rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10269esac 10270fi 10271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10272printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10273 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10274 CFLAGS="$xorg_testset_save_CFLAGS" 10275fi 10276 10277found="no" 10278 10279 if test $found = "no" ; then 10280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10281 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10282 fi 10283 10284 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10286 fi 10287 10288 CFLAGS="$CFLAGS -Warray-bounds" 10289 10290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10291printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10292 cacheid=xorg_cv_cc_flag__Warray_bounds 10293 if eval test \${$cacheid+y} 10294then : 10295 printf %s "(cached) " >&6 10296else case e in #( 10297 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10298/* end confdefs.h. */ 10299int i; 10300int 10301main (void) 10302{ 10303 10304 ; 10305 return 0; 10306} 10307_ACEOF 10308if ac_fn_c_try_link "$LINENO" 10309then : 10310 eval $cacheid=yes 10311else case e in #( 10312 e) eval $cacheid=no ;; 10313esac 10314fi 10315rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10316 conftest$ac_exeext conftest.$ac_ext ;; 10317esac 10318fi 10319 10320 10321 CFLAGS="$xorg_testset_save_CFLAGS" 10322 10323 eval supported=\$$cacheid 10324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10325printf "%s\n" "$supported" >&6; } 10326 if test "$supported" = "yes" ; then 10327 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10328 found="yes" 10329 fi 10330 fi 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346xorg_testset_save_CFLAGS="$CFLAGS" 10347 10348if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10351printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10352if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10353then : 10354 printf %s "(cached) " >&6 10355else case e in #( 10356 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10357/* end confdefs.h. */ 10358int i; 10359_ACEOF 10360if ac_fn_c_try_compile "$LINENO" 10361then : 10362 xorg_cv_cc_flag_unknown_warning_option=yes 10363else case e in #( 10364 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10365esac 10366fi 10367rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10368esac 10369fi 10370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10371printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10372 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10373 CFLAGS="$xorg_testset_save_CFLAGS" 10374fi 10375 10376if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10377 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10379 fi 10380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10382printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10383if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10384then : 10385 printf %s "(cached) " >&6 10386else case e in #( 10387 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10388/* end confdefs.h. */ 10389int i; 10390_ACEOF 10391if ac_fn_c_try_compile "$LINENO" 10392then : 10393 xorg_cv_cc_flag_unused_command_line_argument=yes 10394else case e in #( 10395 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10396esac 10397fi 10398rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10399esac 10400fi 10401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10402printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10403 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10404 CFLAGS="$xorg_testset_save_CFLAGS" 10405fi 10406 10407found="no" 10408 10409 if test $found = "no" ; then 10410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10411 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10412 fi 10413 10414 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10416 fi 10417 10418 CFLAGS="$CFLAGS -Wwrite-strings" 10419 10420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10421printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10422 cacheid=xorg_cv_cc_flag__Wwrite_strings 10423 if eval test \${$cacheid+y} 10424then : 10425 printf %s "(cached) " >&6 10426else case e in #( 10427 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10428/* end confdefs.h. */ 10429int i; 10430int 10431main (void) 10432{ 10433 10434 ; 10435 return 0; 10436} 10437_ACEOF 10438if ac_fn_c_try_link "$LINENO" 10439then : 10440 eval $cacheid=yes 10441else case e in #( 10442 e) eval $cacheid=no ;; 10443esac 10444fi 10445rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10446 conftest$ac_exeext conftest.$ac_ext ;; 10447esac 10448fi 10449 10450 10451 CFLAGS="$xorg_testset_save_CFLAGS" 10452 10453 eval supported=\$$cacheid 10454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10455printf "%s\n" "$supported" >&6; } 10456 if test "$supported" = "yes" ; then 10457 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10458 found="yes" 10459 fi 10460 fi 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476xorg_testset_save_CFLAGS="$CFLAGS" 10477 10478if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10479 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10481printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10482if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10483then : 10484 printf %s "(cached) " >&6 10485else case e in #( 10486 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10487/* end confdefs.h. */ 10488int i; 10489_ACEOF 10490if ac_fn_c_try_compile "$LINENO" 10491then : 10492 xorg_cv_cc_flag_unknown_warning_option=yes 10493else case e in #( 10494 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10495esac 10496fi 10497rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10498esac 10499fi 10500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10501printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10502 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10503 CFLAGS="$xorg_testset_save_CFLAGS" 10504fi 10505 10506if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10508 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10509 fi 10510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10512printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10513if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10514then : 10515 printf %s "(cached) " >&6 10516else case e in #( 10517 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10518/* end confdefs.h. */ 10519int i; 10520_ACEOF 10521if ac_fn_c_try_compile "$LINENO" 10522then : 10523 xorg_cv_cc_flag_unused_command_line_argument=yes 10524else case e in #( 10525 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10526esac 10527fi 10528rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10529esac 10530fi 10531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10532printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10533 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10534 CFLAGS="$xorg_testset_save_CFLAGS" 10535fi 10536 10537found="no" 10538 10539 if test $found = "no" ; then 10540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10541 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10542 fi 10543 10544 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10546 fi 10547 10548 CFLAGS="$CFLAGS -Waddress" 10549 10550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10551printf %s "checking if $CC supports -Waddress... " >&6; } 10552 cacheid=xorg_cv_cc_flag__Waddress 10553 if eval test \${$cacheid+y} 10554then : 10555 printf %s "(cached) " >&6 10556else case e in #( 10557 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10558/* end confdefs.h. */ 10559int i; 10560int 10561main (void) 10562{ 10563 10564 ; 10565 return 0; 10566} 10567_ACEOF 10568if ac_fn_c_try_link "$LINENO" 10569then : 10570 eval $cacheid=yes 10571else case e in #( 10572 e) eval $cacheid=no ;; 10573esac 10574fi 10575rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10576 conftest$ac_exeext conftest.$ac_ext ;; 10577esac 10578fi 10579 10580 10581 CFLAGS="$xorg_testset_save_CFLAGS" 10582 10583 eval supported=\$$cacheid 10584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10585printf "%s\n" "$supported" >&6; } 10586 if test "$supported" = "yes" ; then 10587 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10588 found="yes" 10589 fi 10590 fi 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606xorg_testset_save_CFLAGS="$CFLAGS" 10607 10608if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10611printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10612if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10613then : 10614 printf %s "(cached) " >&6 10615else case e in #( 10616 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10617/* end confdefs.h. */ 10618int i; 10619_ACEOF 10620if ac_fn_c_try_compile "$LINENO" 10621then : 10622 xorg_cv_cc_flag_unknown_warning_option=yes 10623else case e in #( 10624 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10625esac 10626fi 10627rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10628esac 10629fi 10630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10631printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10632 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10633 CFLAGS="$xorg_testset_save_CFLAGS" 10634fi 10635 10636if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10638 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10639 fi 10640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10642printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10643if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10644then : 10645 printf %s "(cached) " >&6 10646else case e in #( 10647 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10648/* end confdefs.h. */ 10649int i; 10650_ACEOF 10651if ac_fn_c_try_compile "$LINENO" 10652then : 10653 xorg_cv_cc_flag_unused_command_line_argument=yes 10654else case e in #( 10655 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10656esac 10657fi 10658rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10659esac 10660fi 10661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10662printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10663 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10664 CFLAGS="$xorg_testset_save_CFLAGS" 10665fi 10666 10667found="no" 10668 10669 if test $found = "no" ; then 10670 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10671 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10672 fi 10673 10674 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10676 fi 10677 10678 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10679 10680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10681printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10682 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10683 if eval test \${$cacheid+y} 10684then : 10685 printf %s "(cached) " >&6 10686else case e in #( 10687 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10688/* end confdefs.h. */ 10689int i; 10690int 10691main (void) 10692{ 10693 10694 ; 10695 return 0; 10696} 10697_ACEOF 10698if ac_fn_c_try_link "$LINENO" 10699then : 10700 eval $cacheid=yes 10701else case e in #( 10702 e) eval $cacheid=no ;; 10703esac 10704fi 10705rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10706 conftest$ac_exeext conftest.$ac_ext ;; 10707esac 10708fi 10709 10710 10711 CFLAGS="$xorg_testset_save_CFLAGS" 10712 10713 eval supported=\$$cacheid 10714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10715printf "%s\n" "$supported" >&6; } 10716 if test "$supported" = "yes" ; then 10717 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10718 found="yes" 10719 fi 10720 fi 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736xorg_testset_save_CFLAGS="$CFLAGS" 10737 10738if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10739 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10741printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10742if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10743then : 10744 printf %s "(cached) " >&6 10745else case e in #( 10746 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10747/* end confdefs.h. */ 10748int i; 10749_ACEOF 10750if ac_fn_c_try_compile "$LINENO" 10751then : 10752 xorg_cv_cc_flag_unknown_warning_option=yes 10753else case e in #( 10754 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10755esac 10756fi 10757rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10758esac 10759fi 10760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10761printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10762 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10763 CFLAGS="$xorg_testset_save_CFLAGS" 10764fi 10765 10766if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10768 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10769 fi 10770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10772printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10773if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10774then : 10775 printf %s "(cached) " >&6 10776else case e in #( 10777 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10778/* end confdefs.h. */ 10779int i; 10780_ACEOF 10781if ac_fn_c_try_compile "$LINENO" 10782then : 10783 xorg_cv_cc_flag_unused_command_line_argument=yes 10784else case e in #( 10785 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10786esac 10787fi 10788rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10789esac 10790fi 10791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10792printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10793 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10794 CFLAGS="$xorg_testset_save_CFLAGS" 10795fi 10796 10797found="no" 10798 10799 if test $found = "no" ; then 10800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10801 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10802 fi 10803 10804 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10806 fi 10807 10808 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10809 10810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10811printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10812 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10813 if eval test \${$cacheid+y} 10814then : 10815 printf %s "(cached) " >&6 10816else case e in #( 10817 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10818/* end confdefs.h. */ 10819int i; 10820int 10821main (void) 10822{ 10823 10824 ; 10825 return 0; 10826} 10827_ACEOF 10828if ac_fn_c_try_link "$LINENO" 10829then : 10830 eval $cacheid=yes 10831else case e in #( 10832 e) eval $cacheid=no ;; 10833esac 10834fi 10835rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10836 conftest$ac_exeext conftest.$ac_ext ;; 10837esac 10838fi 10839 10840 10841 CFLAGS="$xorg_testset_save_CFLAGS" 10842 10843 eval supported=\$$cacheid 10844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10845printf "%s\n" "$supported" >&6; } 10846 if test "$supported" = "yes" ; then 10847 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10848 found="yes" 10849 fi 10850 fi 10851 10852 10853fi 10854 10855 10856 10857 10858 10859 10860 10861 CWARNFLAGS="$BASE_CFLAGS" 10862 if test "x$GCC" = xyes ; then 10863 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10864 fi 10865 10866 10867 10868 10869 10870 10871 10872 10873# Check whether --enable-strict-compilation was given. 10874if test ${enable_strict_compilation+y} 10875then : 10876 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10877else case e in #( 10878 e) STRICT_COMPILE=no ;; 10879esac 10880fi 10881 10882 10883 10884 10885 10886 10887STRICT_CFLAGS="" 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901xorg_testset_save_CFLAGS="$CFLAGS" 10902 10903if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10906printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10907if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10908then : 10909 printf %s "(cached) " >&6 10910else case e in #( 10911 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10912/* end confdefs.h. */ 10913int i; 10914_ACEOF 10915if ac_fn_c_try_compile "$LINENO" 10916then : 10917 xorg_cv_cc_flag_unknown_warning_option=yes 10918else case e in #( 10919 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10920esac 10921fi 10922rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10923esac 10924fi 10925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10926printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10927 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10928 CFLAGS="$xorg_testset_save_CFLAGS" 10929fi 10930 10931if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10933 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10934 fi 10935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10937printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10938if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10939then : 10940 printf %s "(cached) " >&6 10941else case e in #( 10942 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10943/* end confdefs.h. */ 10944int i; 10945_ACEOF 10946if ac_fn_c_try_compile "$LINENO" 10947then : 10948 xorg_cv_cc_flag_unused_command_line_argument=yes 10949else case e in #( 10950 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10951esac 10952fi 10953rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10954esac 10955fi 10956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10957printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10958 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10959 CFLAGS="$xorg_testset_save_CFLAGS" 10960fi 10961 10962found="no" 10963 10964 if test $found = "no" ; then 10965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10966 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10967 fi 10968 10969 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10971 fi 10972 10973 CFLAGS="$CFLAGS -pedantic" 10974 10975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10976printf %s "checking if $CC supports -pedantic... " >&6; } 10977 cacheid=xorg_cv_cc_flag__pedantic 10978 if eval test \${$cacheid+y} 10979then : 10980 printf %s "(cached) " >&6 10981else case e in #( 10982 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10983/* end confdefs.h. */ 10984int i; 10985int 10986main (void) 10987{ 10988 10989 ; 10990 return 0; 10991} 10992_ACEOF 10993if ac_fn_c_try_link "$LINENO" 10994then : 10995 eval $cacheid=yes 10996else case e in #( 10997 e) eval $cacheid=no ;; 10998esac 10999fi 11000rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11001 conftest$ac_exeext conftest.$ac_ext ;; 11002esac 11003fi 11004 11005 11006 CFLAGS="$xorg_testset_save_CFLAGS" 11007 11008 eval supported=\$$cacheid 11009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11010printf "%s\n" "$supported" >&6; } 11011 if test "$supported" = "yes" ; then 11012 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 11013 found="yes" 11014 fi 11015 fi 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031xorg_testset_save_CFLAGS="$CFLAGS" 11032 11033if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11036printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11037if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11038then : 11039 printf %s "(cached) " >&6 11040else case e in #( 11041 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11042/* end confdefs.h. */ 11043int i; 11044_ACEOF 11045if ac_fn_c_try_compile "$LINENO" 11046then : 11047 xorg_cv_cc_flag_unknown_warning_option=yes 11048else case e in #( 11049 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11050esac 11051fi 11052rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11053esac 11054fi 11055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11056printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11057 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11058 CFLAGS="$xorg_testset_save_CFLAGS" 11059fi 11060 11061if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11064 fi 11065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11067printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11068if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11069then : 11070 printf %s "(cached) " >&6 11071else case e in #( 11072 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11073/* end confdefs.h. */ 11074int i; 11075_ACEOF 11076if ac_fn_c_try_compile "$LINENO" 11077then : 11078 xorg_cv_cc_flag_unused_command_line_argument=yes 11079else case e in #( 11080 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11081esac 11082fi 11083rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11084esac 11085fi 11086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11087printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11088 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11089 CFLAGS="$xorg_testset_save_CFLAGS" 11090fi 11091 11092found="no" 11093 11094 if test $found = "no" ; then 11095 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11096 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11097 fi 11098 11099 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11101 fi 11102 11103 CFLAGS="$CFLAGS -Werror" 11104 11105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11106printf %s "checking if $CC supports -Werror... " >&6; } 11107 cacheid=xorg_cv_cc_flag__Werror 11108 if eval test \${$cacheid+y} 11109then : 11110 printf %s "(cached) " >&6 11111else case e in #( 11112 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11113/* end confdefs.h. */ 11114int i; 11115int 11116main (void) 11117{ 11118 11119 ; 11120 return 0; 11121} 11122_ACEOF 11123if ac_fn_c_try_link "$LINENO" 11124then : 11125 eval $cacheid=yes 11126else case e in #( 11127 e) eval $cacheid=no ;; 11128esac 11129fi 11130rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11131 conftest$ac_exeext conftest.$ac_ext ;; 11132esac 11133fi 11134 11135 11136 CFLAGS="$xorg_testset_save_CFLAGS" 11137 11138 eval supported=\$$cacheid 11139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11140printf "%s\n" "$supported" >&6; } 11141 if test "$supported" = "yes" ; then 11142 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11143 found="yes" 11144 fi 11145 fi 11146 11147 if test $found = "no" ; then 11148 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11149 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11150 fi 11151 11152 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11154 fi 11155 11156 CFLAGS="$CFLAGS -errwarn" 11157 11158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11159printf %s "checking if $CC supports -errwarn... " >&6; } 11160 cacheid=xorg_cv_cc_flag__errwarn 11161 if eval test \${$cacheid+y} 11162then : 11163 printf %s "(cached) " >&6 11164else case e in #( 11165 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11166/* end confdefs.h. */ 11167int i; 11168int 11169main (void) 11170{ 11171 11172 ; 11173 return 0; 11174} 11175_ACEOF 11176if ac_fn_c_try_link "$LINENO" 11177then : 11178 eval $cacheid=yes 11179else case e in #( 11180 e) eval $cacheid=no ;; 11181esac 11182fi 11183rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11184 conftest$ac_exeext conftest.$ac_ext ;; 11185esac 11186fi 11187 11188 11189 CFLAGS="$xorg_testset_save_CFLAGS" 11190 11191 eval supported=\$$cacheid 11192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11193printf "%s\n" "$supported" >&6; } 11194 if test "$supported" = "yes" ; then 11195 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11196 found="yes" 11197 fi 11198 fi 11199 11200 11201 11202# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11203# activate it with -Werror, so we add it here explicitly. 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217xorg_testset_save_CFLAGS="$CFLAGS" 11218 11219if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11220 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11222printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11223if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11224then : 11225 printf %s "(cached) " >&6 11226else case e in #( 11227 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11228/* end confdefs.h. */ 11229int i; 11230_ACEOF 11231if ac_fn_c_try_compile "$LINENO" 11232then : 11233 xorg_cv_cc_flag_unknown_warning_option=yes 11234else case e in #( 11235 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11236esac 11237fi 11238rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11239esac 11240fi 11241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11242printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11243 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11244 CFLAGS="$xorg_testset_save_CFLAGS" 11245fi 11246 11247if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11249 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11250 fi 11251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11253printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11254if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11255then : 11256 printf %s "(cached) " >&6 11257else case e in #( 11258 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11259/* end confdefs.h. */ 11260int i; 11261_ACEOF 11262if ac_fn_c_try_compile "$LINENO" 11263then : 11264 xorg_cv_cc_flag_unused_command_line_argument=yes 11265else case e in #( 11266 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11267esac 11268fi 11269rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11270esac 11271fi 11272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11273printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11274 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11275 CFLAGS="$xorg_testset_save_CFLAGS" 11276fi 11277 11278found="no" 11279 11280 if test $found = "no" ; then 11281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11282 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11283 fi 11284 11285 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11287 fi 11288 11289 CFLAGS="$CFLAGS -Werror=attributes" 11290 11291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11292printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11293 cacheid=xorg_cv_cc_flag__Werror_attributes 11294 if eval test \${$cacheid+y} 11295then : 11296 printf %s "(cached) " >&6 11297else case e in #( 11298 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11299/* end confdefs.h. */ 11300int i; 11301int 11302main (void) 11303{ 11304 11305 ; 11306 return 0; 11307} 11308_ACEOF 11309if ac_fn_c_try_link "$LINENO" 11310then : 11311 eval $cacheid=yes 11312else case e in #( 11313 e) eval $cacheid=no ;; 11314esac 11315fi 11316rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11317 conftest$ac_exeext conftest.$ac_ext ;; 11318esac 11319fi 11320 11321 11322 CFLAGS="$xorg_testset_save_CFLAGS" 11323 11324 eval supported=\$$cacheid 11325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11326printf "%s\n" "$supported" >&6; } 11327 if test "$supported" = "yes" ; then 11328 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11329 found="yes" 11330 fi 11331 fi 11332 11333 11334 11335if test "x$STRICT_COMPILE" = "xyes"; then 11336 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11337 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11338fi 11339 11340 11341 11342 11343 11344 11345 11346 11347cat >>confdefs.h <<_ACEOF 11348#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11349_ACEOF 11350 11351 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11352 if test "x$PVM" = "x"; then 11353 PVM="0" 11354 fi 11355 11356printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11357 11358 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11359 if test "x$PVP" = "x"; then 11360 PVP="0" 11361 fi 11362 11363printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11364 11365 11366 11367CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11368mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11369|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11370touch \$(top_srcdir)/ChangeLog; \ 11371echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11372 11373 11374 11375 11376macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11377INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11378mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11379|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11380touch \$(top_srcdir)/INSTALL; \ 11381echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11382 11383 11384 11385 11386 11387 11388case $host_os in 11389 solaris*) 11390 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11391 # check for a man page file found in later versions that use 11392 # traditional section numbers instead 11393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11394printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11395if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11396then : 11397 printf %s "(cached) " >&6 11398else case e in #( 11399 e) test "$cross_compiling" = yes && 11400 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11401if test -r "/usr/share/man/man7/attributes.7"; then 11402 ac_cv_file__usr_share_man_man7_attributes_7=yes 11403else 11404 ac_cv_file__usr_share_man_man7_attributes_7=no 11405fi ;; 11406esac 11407fi 11408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11409printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11410if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11411then : 11412 SYSV_MAN_SECTIONS=false 11413else case e in #( 11414 e) SYSV_MAN_SECTIONS=true ;; 11415esac 11416fi 11417 11418 ;; 11419 *) SYSV_MAN_SECTIONS=false ;; 11420esac 11421 11422if test x$APP_MAN_SUFFIX = x ; then 11423 APP_MAN_SUFFIX=1 11424fi 11425if test x$APP_MAN_DIR = x ; then 11426 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11427fi 11428 11429if test x$LIB_MAN_SUFFIX = x ; then 11430 LIB_MAN_SUFFIX=3 11431fi 11432if test x$LIB_MAN_DIR = x ; then 11433 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11434fi 11435 11436if test x$FILE_MAN_SUFFIX = x ; then 11437 case $SYSV_MAN_SECTIONS in 11438 true) FILE_MAN_SUFFIX=4 ;; 11439 *) FILE_MAN_SUFFIX=5 ;; 11440 esac 11441fi 11442if test x$FILE_MAN_DIR = x ; then 11443 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11444fi 11445 11446if test x$MISC_MAN_SUFFIX = x ; then 11447 case $SYSV_MAN_SECTIONS in 11448 true) MISC_MAN_SUFFIX=5 ;; 11449 *) MISC_MAN_SUFFIX=7 ;; 11450 esac 11451fi 11452if test x$MISC_MAN_DIR = x ; then 11453 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11454fi 11455 11456if test x$DRIVER_MAN_SUFFIX = x ; then 11457 case $SYSV_MAN_SECTIONS in 11458 true) DRIVER_MAN_SUFFIX=7 ;; 11459 *) DRIVER_MAN_SUFFIX=4 ;; 11460 esac 11461fi 11462if test x$DRIVER_MAN_DIR = x ; then 11463 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11464fi 11465 11466if test x$ADMIN_MAN_SUFFIX = x ; then 11467 case $SYSV_MAN_SECTIONS in 11468 true) ADMIN_MAN_SUFFIX=1m ;; 11469 *) ADMIN_MAN_SUFFIX=8 ;; 11470 esac 11471fi 11472if test x$ADMIN_MAN_DIR = x ; then 11473 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11474fi 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490XORG_MAN_PAGE="X Version 11" 11491 11492MAN_SUBSTS="\ 11493 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11494 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11495 -e 's|__xservername__|Xorg|g' \ 11496 -e 's|__xconfigfile__|xorg.conf|g' \ 11497 -e 's|__projectroot__|\$(prefix)|g' \ 11498 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11499 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11500 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11501 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11502 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11503 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11504 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11505 11506 11507 11508# Check whether --enable-silent-rules was given. 11509if test ${enable_silent_rules+y} 11510then : 11511 enableval=$enable_silent_rules; 11512fi 11513 11514case $enable_silent_rules in # ((( 11515 yes) AM_DEFAULT_VERBOSITY=0;; 11516 no) AM_DEFAULT_VERBOSITY=1;; 11517 *) AM_DEFAULT_VERBOSITY=0;; 11518esac 11519am_make=${MAKE-make} 11520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11521printf %s "checking whether $am_make supports nested variables... " >&6; } 11522if test ${am_cv_make_support_nested_variables+y} 11523then : 11524 printf %s "(cached) " >&6 11525else case e in #( 11526 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 11527BAR0=false 11528BAR1=true 11529V=1 11530am__doit: 11531 @$(TRUE) 11532.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11533 am_cv_make_support_nested_variables=yes 11534else 11535 am_cv_make_support_nested_variables=no 11536fi ;; 11537esac 11538fi 11539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11540printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11541if test $am_cv_make_support_nested_variables = yes; then 11542 AM_V='$(V)' 11543 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11544else 11545 AM_V=$AM_DEFAULT_VERBOSITY 11546 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11547fi 11548AM_BACKSLASH='\' 11549 11550 11551 11552 11553 11554 11555# Checks for typedefs, structures, and compiler characteristics. 11556# Check whether --enable-largefile was given. 11557if test ${enable_largefile+y} 11558then : 11559 enableval=$enable_largefile; 11560fi 11561if test "$enable_largefile,$enable_year2038" != no,no 11562then : 11563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5 11564printf %s "checking for $CC option to enable large file support... " >&6; } 11565if test ${ac_cv_sys_largefile_opts+y} 11566then : 11567 printf %s "(cached) " >&6 11568else case e in #( 11569 e) ac_save_CC="$CC" 11570 ac_opt_found=no 11571 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do 11572 if test x"$ac_opt" != x"none needed" 11573then : 11574 CC="$ac_save_CC $ac_opt" 11575fi 11576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11577/* end confdefs.h. */ 11578#include <sys/types.h> 11579#ifndef FTYPE 11580# define FTYPE off_t 11581#endif 11582 /* Check that FTYPE can represent 2**63 - 1 correctly. 11583 We can't simply define LARGE_FTYPE to be 9223372036854775807, 11584 since some C++ compilers masquerading as C compilers 11585 incorrectly reject 9223372036854775807. */ 11586#define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31)) 11587 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721 11588 && LARGE_FTYPE % 2147483647 == 1) 11589 ? 1 : -1]; 11590int 11591main (void) 11592{ 11593 11594 ; 11595 return 0; 11596} 11597_ACEOF 11598if ac_fn_c_try_compile "$LINENO" 11599then : 11600 if test x"$ac_opt" = x"none needed" 11601then : 11602 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t. 11603 CC="$CC -DFTYPE=ino_t" 11604 if ac_fn_c_try_compile "$LINENO" 11605then : 11606 11607else case e in #( 11608 e) CC="$CC -D_FILE_OFFSET_BITS=64" 11609 if ac_fn_c_try_compile "$LINENO" 11610then : 11611 ac_opt='-D_FILE_OFFSET_BITS=64' 11612fi 11613rm -f core conftest.err conftest.$ac_objext conftest.beam ;; 11614esac 11615fi 11616rm -f core conftest.err conftest.$ac_objext conftest.beam 11617fi 11618 ac_cv_sys_largefile_opts=$ac_opt 11619 ac_opt_found=yes 11620fi 11621rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11622 test $ac_opt_found = no || break 11623 done 11624 CC="$ac_save_CC" 11625 11626 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;; 11627esac 11628fi 11629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5 11630printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; } 11631 11632ac_have_largefile=yes 11633case $ac_cv_sys_largefile_opts in #( 11634 "none needed") : 11635 ;; #( 11636 "supported through gnulib") : 11637 ;; #( 11638 "support not detected") : 11639 ac_have_largefile=no ;; #( 11640 "-D_FILE_OFFSET_BITS=64") : 11641 11642printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h 11643 ;; #( 11644 "-D_LARGE_FILES=1") : 11645 11646printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h 11647 ;; #( 11648 "-n32") : 11649 CC="$CC -n32" ;; #( 11650 *) : 11651 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;; 11652esac 11653 11654if test "$enable_year2038" != no 11655then : 11656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5 11657printf %s "checking for $CC option for timestamps after 2038... " >&6; } 11658if test ${ac_cv_sys_year2038_opts+y} 11659then : 11660 printf %s "(cached) " >&6 11661else case e in #( 11662 e) ac_save_CPPFLAGS="$CPPFLAGS" 11663 ac_opt_found=no 11664 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do 11665 if test x"$ac_opt" != x"none needed" 11666then : 11667 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt" 11668fi 11669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11670/* end confdefs.h. */ 11671 11672 #include <time.h> 11673 /* Check that time_t can represent 2**32 - 1 correctly. */ 11674 #define LARGE_TIME_T \\ 11675 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30))) 11676 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535 11677 && LARGE_TIME_T % 65537 == 0) 11678 ? 1 : -1]; 11679 11680int 11681main (void) 11682{ 11683 11684 ; 11685 return 0; 11686} 11687_ACEOF 11688if ac_fn_c_try_compile "$LINENO" 11689then : 11690 ac_cv_sys_year2038_opts="$ac_opt" 11691 ac_opt_found=yes 11692fi 11693rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11694 test $ac_opt_found = no || break 11695 done 11696 CPPFLAGS="$ac_save_CPPFLAGS" 11697 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;; 11698esac 11699fi 11700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5 11701printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; } 11702 11703ac_have_year2038=yes 11704case $ac_cv_sys_year2038_opts in #( 11705 "none needed") : 11706 ;; #( 11707 "support not detected") : 11708 ac_have_year2038=no ;; #( 11709 "-D_TIME_BITS=64") : 11710 11711printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h 11712 ;; #( 11713 "-D__MINGW_USE_VC2005_COMPAT") : 11714 11715printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h 11716 ;; #( 11717 "-U_USE_32_BIT_TIME_T"*) : 11718 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11719printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11720as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It 11721will stop working after mid-January 2038. Remove 11722_USE_32BIT_TIME_T from the compiler flags. 11723See 'config.log' for more details" "$LINENO" 5; } ;; #( 11724 *) : 11725 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;; 11726esac 11727 11728fi 11729 11730fi 11731 11732# Checks for library functions. 11733ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" 11734if test "x$ac_cv_func_mkstemp" = xyes 11735then : 11736 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h 11737 11738fi 11739 11740 11741# Math libraries & functions 11742# - some compilers use builtin inlines for floor when optimizing 11743# - lrint() is a C99 addition not found on some older systems 11744# - must do the libm check first so that the lrint check will have it in $LIBS 11745save_LIBS="$LIBS" 11746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5 11747printf %s "checking for library containing floor... " >&6; } 11748if test ${ac_cv_search_floor+y} 11749then : 11750 printf %s "(cached) " >&6 11751else case e in #( 11752 e) ac_func_search_save_LIBS=$LIBS 11753cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11754/* end confdefs.h. */ 11755 11756/* Override any GCC internal prototype to avoid an error. 11757 Use char because int might match the return type of a GCC 11758 builtin and then its argument prototype would still apply. 11759 The 'extern "C"' is for builds by C++ compilers; 11760 although this is not generally supported in C code supporting it here 11761 has little cost and some practical benefit (sr 110532). */ 11762#ifdef __cplusplus 11763extern "C" 11764#endif 11765char floor (void); 11766int 11767main (void) 11768{ 11769return floor (); 11770 ; 11771 return 0; 11772} 11773_ACEOF 11774for ac_lib in '' m 11775do 11776 if test -z "$ac_lib"; then 11777 ac_res="none required" 11778 else 11779 ac_res=-l$ac_lib 11780 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11781 fi 11782 if ac_fn_c_try_link "$LINENO" 11783then : 11784 ac_cv_search_floor=$ac_res 11785fi 11786rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11787 conftest$ac_exeext 11788 if test ${ac_cv_search_floor+y} 11789then : 11790 break 11791fi 11792done 11793if test ${ac_cv_search_floor+y} 11794then : 11795 11796else case e in #( 11797 e) ac_cv_search_floor=no ;; 11798esac 11799fi 11800rm conftest.$ac_ext 11801LIBS=$ac_func_search_save_LIBS ;; 11802esac 11803fi 11804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5 11805printf "%s\n" "$ac_cv_search_floor" >&6; } 11806ac_res=$ac_cv_search_floor 11807if test "$ac_res" != no 11808then : 11809 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11810 11811fi 11812 11813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing lrint" >&5 11814printf %s "checking for library containing lrint... " >&6; } 11815if test ${ac_cv_search_lrint+y} 11816then : 11817 printf %s "(cached) " >&6 11818else case e in #( 11819 e) ac_func_search_save_LIBS=$LIBS 11820cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11821/* end confdefs.h. */ 11822 11823/* Override any GCC internal prototype to avoid an error. 11824 Use char because int might match the return type of a GCC 11825 builtin and then its argument prototype would still apply. 11826 The 'extern "C"' is for builds by C++ compilers; 11827 although this is not generally supported in C code supporting it here 11828 has little cost and some practical benefit (sr 110532). */ 11829#ifdef __cplusplus 11830extern "C" 11831#endif 11832char lrint (void); 11833int 11834main (void) 11835{ 11836return lrint (); 11837 ; 11838 return 0; 11839} 11840_ACEOF 11841for ac_lib in '' m 11842do 11843 if test -z "$ac_lib"; then 11844 ac_res="none required" 11845 else 11846 ac_res=-l$ac_lib 11847 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11848 fi 11849 if ac_fn_c_try_link "$LINENO" 11850then : 11851 ac_cv_search_lrint=$ac_res 11852fi 11853rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11854 conftest$ac_exeext 11855 if test ${ac_cv_search_lrint+y} 11856then : 11857 break 11858fi 11859done 11860if test ${ac_cv_search_lrint+y} 11861then : 11862 11863else case e in #( 11864 e) ac_cv_search_lrint=no ;; 11865esac 11866fi 11867rm conftest.$ac_ext 11868LIBS=$ac_func_search_save_LIBS ;; 11869esac 11870fi 11871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lrint" >&5 11872printf "%s\n" "$ac_cv_search_lrint" >&6; } 11873ac_res=$ac_cv_search_lrint 11874if test "$ac_res" != no 11875then : 11876 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11877 11878fi 11879 11880ac_fn_c_check_func "$LINENO" "lrint" "ac_cv_func_lrint" 11881if test "x$ac_cv_func_lrint" = xyes 11882then : 11883 printf "%s\n" "#define HAVE_LRINT 1" >>confdefs.h 11884 11885fi 11886 11887MATH_LIBS="$LIBS" 11888LIBS="$save_LIBS" 11889 11890 11891# Obtain compiler/linker options from dependencies 11892 11893pkg_failed=no 11894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BMTOA" >&5 11895printf %s "checking for BMTOA... " >&6; } 11896 11897if test -n "$BMTOA_CFLAGS"; then 11898 pkg_cv_BMTOA_CFLAGS="$BMTOA_CFLAGS" 11899 elif test -n "$PKG_CONFIG"; then 11900 if test -n "$PKG_CONFIG" && \ 11901 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmu xproto >= 7.0.17\""; } >&5 11902 ($PKG_CONFIG --exists --print-errors "x11 xmu xproto >= 7.0.17") 2>&5 11903 ac_status=$? 11904 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11905 test $ac_status = 0; }; then 11906 pkg_cv_BMTOA_CFLAGS=`$PKG_CONFIG --cflags "x11 xmu xproto >= 7.0.17" 2>/dev/null` 11907 test "x$?" != "x0" && pkg_failed=yes 11908else 11909 pkg_failed=yes 11910fi 11911 else 11912 pkg_failed=untried 11913fi 11914if test -n "$BMTOA_LIBS"; then 11915 pkg_cv_BMTOA_LIBS="$BMTOA_LIBS" 11916 elif test -n "$PKG_CONFIG"; then 11917 if test -n "$PKG_CONFIG" && \ 11918 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmu xproto >= 7.0.17\""; } >&5 11919 ($PKG_CONFIG --exists --print-errors "x11 xmu xproto >= 7.0.17") 2>&5 11920 ac_status=$? 11921 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11922 test $ac_status = 0; }; then 11923 pkg_cv_BMTOA_LIBS=`$PKG_CONFIG --libs "x11 xmu xproto >= 7.0.17" 2>/dev/null` 11924 test "x$?" != "x0" && pkg_failed=yes 11925else 11926 pkg_failed=yes 11927fi 11928 else 11929 pkg_failed=untried 11930fi 11931 11932 11933 11934if test $pkg_failed = yes; then 11935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11936printf "%s\n" "no" >&6; } 11937 11938if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11939 _pkg_short_errors_supported=yes 11940else 11941 _pkg_short_errors_supported=no 11942fi 11943 if test $_pkg_short_errors_supported = yes; then 11944 BMTOA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xmu xproto >= 7.0.17" 2>&1` 11945 else 11946 BMTOA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xmu xproto >= 7.0.17" 2>&1` 11947 fi 11948 # Put the nasty error message in config.log where it belongs 11949 echo "$BMTOA_PKG_ERRORS" >&5 11950 11951 as_fn_error $? "Package requirements (x11 xmu xproto >= 7.0.17) were not met: 11952 11953$BMTOA_PKG_ERRORS 11954 11955Consider adjusting the PKG_CONFIG_PATH environment variable if you 11956installed software in a non-standard prefix. 11957 11958Alternatively, you may set the environment variables BMTOA_CFLAGS 11959and BMTOA_LIBS to avoid the need to call pkg-config. 11960See the pkg-config man page for more details." "$LINENO" 5 11961elif test $pkg_failed = untried; then 11962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11963printf "%s\n" "no" >&6; } 11964 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11965printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11966as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11967is in your PATH or set the PKG_CONFIG environment variable to the full 11968path to pkg-config. 11969 11970Alternatively, you may set the environment variables BMTOA_CFLAGS 11971and BMTOA_LIBS to avoid the need to call pkg-config. 11972See the pkg-config man page for more details. 11973 11974To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11975See 'config.log' for more details" "$LINENO" 5; } 11976else 11977 BMTOA_CFLAGS=$pkg_cv_BMTOA_CFLAGS 11978 BMTOA_LIBS=$pkg_cv_BMTOA_LIBS 11979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11980printf "%s\n" "yes" >&6; } 11981 11982fi 11983 11984pkg_failed=no 11985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ATOBM" >&5 11986printf %s "checking for ATOBM... " >&6; } 11987 11988if test -n "$ATOBM_CFLAGS"; then 11989 pkg_cv_ATOBM_CFLAGS="$ATOBM_CFLAGS" 11990 elif test -n "$PKG_CONFIG"; then 11991 if test -n "$PKG_CONFIG" && \ 11992 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25\""; } >&5 11993 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25") 2>&5 11994 ac_status=$? 11995 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11996 test $ac_status = 0; }; then 11997 pkg_cv_ATOBM_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.25" 2>/dev/null` 11998 test "x$?" != "x0" && pkg_failed=yes 11999else 12000 pkg_failed=yes 12001fi 12002 else 12003 pkg_failed=untried 12004fi 12005if test -n "$ATOBM_LIBS"; then 12006 pkg_cv_ATOBM_LIBS="$ATOBM_LIBS" 12007 elif test -n "$PKG_CONFIG"; then 12008 if test -n "$PKG_CONFIG" && \ 12009 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25\""; } >&5 12010 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25") 2>&5 12011 ac_status=$? 12012 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12013 test $ac_status = 0; }; then 12014 pkg_cv_ATOBM_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.25" 2>/dev/null` 12015 test "x$?" != "x0" && pkg_failed=yes 12016else 12017 pkg_failed=yes 12018fi 12019 else 12020 pkg_failed=untried 12021fi 12022 12023 12024 12025if test $pkg_failed = yes; then 12026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12027printf "%s\n" "no" >&6; } 12028 12029if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12030 _pkg_short_errors_supported=yes 12031else 12032 _pkg_short_errors_supported=no 12033fi 12034 if test $_pkg_short_errors_supported = yes; then 12035 ATOBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.25" 2>&1` 12036 else 12037 ATOBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.25" 2>&1` 12038 fi 12039 # Put the nasty error message in config.log where it belongs 12040 echo "$ATOBM_PKG_ERRORS" >&5 12041 12042 as_fn_error $? "Package requirements (xproto >= 7.0.25) were not met: 12043 12044$ATOBM_PKG_ERRORS 12045 12046Consider adjusting the PKG_CONFIG_PATH environment variable if you 12047installed software in a non-standard prefix. 12048 12049Alternatively, you may set the environment variables ATOBM_CFLAGS 12050and ATOBM_LIBS to avoid the need to call pkg-config. 12051See the pkg-config man page for more details." "$LINENO" 5 12052elif test $pkg_failed = untried; then 12053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12054printf "%s\n" "no" >&6; } 12055 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 12056printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 12057as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 12058is in your PATH or set the PKG_CONFIG environment variable to the full 12059path to pkg-config. 12060 12061Alternatively, you may set the environment variables ATOBM_CFLAGS 12062and ATOBM_LIBS to avoid the need to call pkg-config. 12063See the pkg-config man page for more details. 12064 12065To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12066See 'config.log' for more details" "$LINENO" 5; } 12067else 12068 ATOBM_CFLAGS=$pkg_cv_ATOBM_CFLAGS 12069 ATOBM_LIBS=$pkg_cv_ATOBM_LIBS 12070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12071printf "%s\n" "yes" >&6; } 12072 12073fi 12074 12075pkg_failed=no 12076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BITMAP" >&5 12077printf %s "checking for BITMAP... " >&6; } 12078 12079if test -n "$BITMAP_CFLAGS"; then 12080 pkg_cv_BITMAP_CFLAGS="$BITMAP_CFLAGS" 12081 elif test -n "$PKG_CONFIG"; then 12082 if test -n "$PKG_CONFIG" && \ 12083 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xbitmaps xaw7 xmu\""; } >&5 12084 ($PKG_CONFIG --exists --print-errors "xbitmaps xaw7 xmu") 2>&5 12085 ac_status=$? 12086 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12087 test $ac_status = 0; }; then 12088 pkg_cv_BITMAP_CFLAGS=`$PKG_CONFIG --cflags "xbitmaps xaw7 xmu" 2>/dev/null` 12089 test "x$?" != "x0" && pkg_failed=yes 12090else 12091 pkg_failed=yes 12092fi 12093 else 12094 pkg_failed=untried 12095fi 12096if test -n "$BITMAP_LIBS"; then 12097 pkg_cv_BITMAP_LIBS="$BITMAP_LIBS" 12098 elif test -n "$PKG_CONFIG"; then 12099 if test -n "$PKG_CONFIG" && \ 12100 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xbitmaps xaw7 xmu\""; } >&5 12101 ($PKG_CONFIG --exists --print-errors "xbitmaps xaw7 xmu") 2>&5 12102 ac_status=$? 12103 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12104 test $ac_status = 0; }; then 12105 pkg_cv_BITMAP_LIBS=`$PKG_CONFIG --libs "xbitmaps xaw7 xmu" 2>/dev/null` 12106 test "x$?" != "x0" && pkg_failed=yes 12107else 12108 pkg_failed=yes 12109fi 12110 else 12111 pkg_failed=untried 12112fi 12113 12114 12115 12116if test $pkg_failed = yes; then 12117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12118printf "%s\n" "no" >&6; } 12119 12120if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12121 _pkg_short_errors_supported=yes 12122else 12123 _pkg_short_errors_supported=no 12124fi 12125 if test $_pkg_short_errors_supported = yes; then 12126 BITMAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xbitmaps xaw7 xmu" 2>&1` 12127 else 12128 BITMAP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xbitmaps xaw7 xmu" 2>&1` 12129 fi 12130 # Put the nasty error message in config.log where it belongs 12131 echo "$BITMAP_PKG_ERRORS" >&5 12132 12133 as_fn_error $? "Package requirements (xbitmaps xaw7 xmu) were not met: 12134 12135$BITMAP_PKG_ERRORS 12136 12137Consider adjusting the PKG_CONFIG_PATH environment variable if you 12138installed software in a non-standard prefix. 12139 12140Alternatively, you may set the environment variables BITMAP_CFLAGS 12141and BITMAP_LIBS to avoid the need to call pkg-config. 12142See the pkg-config man page for more details." "$LINENO" 5 12143elif test $pkg_failed = untried; then 12144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12145printf "%s\n" "no" >&6; } 12146 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 12147printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 12148as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 12149is in your PATH or set the PKG_CONFIG environment variable to the full 12150path to pkg-config. 12151 12152Alternatively, you may set the environment variables BITMAP_CFLAGS 12153and BITMAP_LIBS to avoid the need to call pkg-config. 12154See the pkg-config man page for more details. 12155 12156To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12157See 'config.log' for more details" "$LINENO" 5; } 12158else 12159 BITMAP_CFLAGS=$pkg_cv_BITMAP_CFLAGS 12160 BITMAP_LIBS=$pkg_cv_BITMAP_LIBS 12161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12162printf "%s\n" "yes" >&6; } 12163 12164fi 12165 12166 12167pkg_failed=no 12168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5 12169printf %s "checking for APPDEFS... " >&6; } 12170 12171if test -n "$APPDEFS_CFLAGS"; then 12172 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS" 12173 elif test -n "$PKG_CONFIG"; then 12174 if test -n "$PKG_CONFIG" && \ 12175 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 12176 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 12177 ac_status=$? 12178 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12179 test $ac_status = 0; }; then 12180 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null` 12181 test "x$?" != "x0" && pkg_failed=yes 12182else 12183 pkg_failed=yes 12184fi 12185 else 12186 pkg_failed=untried 12187fi 12188if test -n "$APPDEFS_LIBS"; then 12189 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS" 12190 elif test -n "$PKG_CONFIG"; then 12191 if test -n "$PKG_CONFIG" && \ 12192 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 12193 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 12194 ac_status=$? 12195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12196 test $ac_status = 0; }; then 12197 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null` 12198 test "x$?" != "x0" && pkg_failed=yes 12199else 12200 pkg_failed=yes 12201fi 12202 else 12203 pkg_failed=untried 12204fi 12205 12206 12207 12208if test $pkg_failed = yes; then 12209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12210printf "%s\n" "no" >&6; } 12211 12212if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12213 _pkg_short_errors_supported=yes 12214else 12215 _pkg_short_errors_supported=no 12216fi 12217 if test $_pkg_short_errors_supported = yes; then 12218 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1` 12219 else 12220 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1` 12221 fi 12222 # Put the nasty error message in config.log where it belongs 12223 echo "$APPDEFS_PKG_ERRORS" >&5 12224 12225 as_fn_error $? "Package requirements (xt) were not met: 12226 12227$APPDEFS_PKG_ERRORS 12228 12229Consider adjusting the PKG_CONFIG_PATH environment variable if you 12230installed software in a non-standard prefix. 12231 12232Alternatively, you may set the environment variables APPDEFS_CFLAGS 12233and APPDEFS_LIBS to avoid the need to call pkg-config. 12234See the pkg-config man page for more details." "$LINENO" 5 12235elif test $pkg_failed = untried; then 12236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12237printf "%s\n" "no" >&6; } 12238 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 12239printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 12240as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 12241is in your PATH or set the PKG_CONFIG environment variable to the full 12242path to pkg-config. 12243 12244Alternatively, you may set the environment variables APPDEFS_CFLAGS 12245and APPDEFS_LIBS to avoid the need to call pkg-config. 12246See the pkg-config man page for more details. 12247 12248To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12249See 'config.log' for more details" "$LINENO" 5; } 12250else 12251 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS 12252 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS 12253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12254printf "%s\n" "yes" >&6; } 12255 12256fi 12257xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 12258 12259# Check whether --with-appdefaultdir was given. 12260if test ${with_appdefaultdir+y} 12261then : 12262 withval=$with_appdefaultdir; appdefaultdir="$withval" 12263else case e in #( 12264 e) appdefaultdir="${xt_appdefaultdir}" ;; 12265esac 12266fi 12267 12268 12269 12270ac_config_files="$ac_config_files Makefile man/Makefile" 12271 12272ac_config_files="$ac_config_files test/round-trip-test" 12273 12274cat >confcache <<\_ACEOF 12275# This file is a shell script that caches the results of configure 12276# tests run on this system so they can be shared between configure 12277# scripts and configure runs, see configure's option --config-cache. 12278# It is not useful on other systems. If it contains results you don't 12279# want to keep, you may remove or edit it. 12280# 12281# config.status only pays attention to the cache file if you give it 12282# the --recheck option to rerun configure. 12283# 12284# 'ac_cv_env_foo' variables (set or unset) will be overridden when 12285# loading this file, other *unset* 'ac_cv_foo' will be assigned the 12286# following values. 12287 12288_ACEOF 12289 12290# The following way of writing the cache mishandles newlines in values, 12291# but we know of no workaround that is simple, portable, and efficient. 12292# So, we kill variables containing newlines. 12293# Ultrix sh set writes to stderr and can't be redirected directly, 12294# and sets the high bit in the cache file unless we assign to the vars. 12295( 12296 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12297 eval ac_val=\$$ac_var 12298 case $ac_val in #( 12299 *${as_nl}*) 12300 case $ac_var in #( 12301 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12302printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12303 esac 12304 case $ac_var in #( 12305 _ | IFS | as_nl) ;; #( 12306 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12307 *) { eval $ac_var=; unset $ac_var;} ;; 12308 esac ;; 12309 esac 12310 done 12311 12312 (set) 2>&1 | 12313 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12314 *${as_nl}ac_space=\ *) 12315 # 'set' does not quote correctly, so add quotes: double-quote 12316 # substitution turns \\\\ into \\, and sed turns \\ into \. 12317 sed -n \ 12318 "s/'/'\\\\''/g; 12319 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12320 ;; #( 12321 *) 12322 # 'set' quotes correctly as required by POSIX, so do not add quotes. 12323 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12324 ;; 12325 esac | 12326 sort 12327) | 12328 sed ' 12329 /^ac_cv_env_/b end 12330 t clear 12331 :clear 12332 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 12333 t end 12334 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12335 :end' >>confcache 12336if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12337 if test -w "$cache_file"; then 12338 if test "x$cache_file" != "x/dev/null"; then 12339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12340printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 12341 if test ! -f "$cache_file" || test -h "$cache_file"; then 12342 cat confcache >"$cache_file" 12343 else 12344 case $cache_file in #( 12345 */* | ?:*) 12346 mv -f confcache "$cache_file"$$ && 12347 mv -f "$cache_file"$$ "$cache_file" ;; #( 12348 *) 12349 mv -f confcache "$cache_file" ;; 12350 esac 12351 fi 12352 fi 12353 else 12354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12355printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 12356 fi 12357fi 12358rm -f confcache 12359 12360test "x$prefix" = xNONE && prefix=$ac_default_prefix 12361# Let make expand exec_prefix. 12362test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12363 12364DEFS=-DHAVE_CONFIG_H 12365 12366ac_libobjs= 12367ac_ltlibobjs= 12368U= 12369for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12370 # 1. Remove the extension, and $U if already installed. 12371 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12372 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 12373 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12374 # will be set to the directory where LIBOBJS objects are built. 12375 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12376 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12377done 12378LIBOBJS=$ac_libobjs 12379 12380LTLIBOBJS=$ac_ltlibobjs 12381 12382 12383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 12384printf %s "checking that generated files are newer than configure... " >&6; } 12385 if test -n "$am_sleep_pid"; then 12386 # Hide warnings about reused PIDs. 12387 wait $am_sleep_pid 2>/dev/null 12388 fi 12389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 12390printf "%s\n" "done" >&6; } 12391 if test -n "$EXEEXT"; then 12392 am__EXEEXT_TRUE= 12393 am__EXEEXT_FALSE='#' 12394else 12395 am__EXEEXT_TRUE='#' 12396 am__EXEEXT_FALSE= 12397fi 12398 12399if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12400 as_fn_error $? "conditional \"AMDEP\" was never defined. 12401Usually this means the macro was only invoked conditionally." "$LINENO" 5 12402fi 12403if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12404 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12405Usually this means the macro was only invoked conditionally." "$LINENO" 5 12406fi 12407# Check whether --enable-year2038 was given. 12408if test ${enable_year2038+y} 12409then : 12410 enableval=$enable_year2038; 12411fi 12412 12413 12414: "${CONFIG_STATUS=./config.status}" 12415ac_write_fail=0 12416ac_clean_files_save=$ac_clean_files 12417ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12419printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 12420as_write_fail=0 12421cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12422#! $SHELL 12423# Generated by $as_me. 12424# Run this file to recreate the current configuration. 12425# Compiler output produced by configure, useful for debugging 12426# configure, is in config.log if it exists. 12427 12428debug=false 12429ac_cs_recheck=false 12430ac_cs_silent=false 12431 12432SHELL=\${CONFIG_SHELL-$SHELL} 12433export SHELL 12434_ASEOF 12435cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12436## -------------------- ## 12437## M4sh Initialization. ## 12438## -------------------- ## 12439 12440# Be more Bourne compatible 12441DUALCASE=1; export DUALCASE # for MKS sh 12442if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 12443then : 12444 emulate sh 12445 NULLCMD=: 12446 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12447 # is contrary to our usage. Disable this feature. 12448 alias -g '${1+"$@"}'='"$@"' 12449 setopt NO_GLOB_SUBST 12450else case e in #( 12451 e) case `(set -o) 2>/dev/null` in #( 12452 *posix*) : 12453 set -o posix ;; #( 12454 *) : 12455 ;; 12456esac ;; 12457esac 12458fi 12459 12460 12461 12462# Reset variables that may have inherited troublesome values from 12463# the environment. 12464 12465# IFS needs to be set, to space, tab, and newline, in precisely that order. 12466# (If _AS_PATH_WALK were called with IFS unset, it would have the 12467# side effect of setting IFS to empty, thus disabling word splitting.) 12468# Quoting is to prevent editors from complaining about space-tab. 12469as_nl=' 12470' 12471export as_nl 12472IFS=" "" $as_nl" 12473 12474PS1='$ ' 12475PS2='> ' 12476PS4='+ ' 12477 12478# Ensure predictable behavior from utilities with locale-dependent output. 12479LC_ALL=C 12480export LC_ALL 12481LANGUAGE=C 12482export LANGUAGE 12483 12484# We cannot yet rely on "unset" to work, but we need these variables 12485# to be unset--not just set to an empty or harmless value--now, to 12486# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 12487# also avoids known problems related to "unset" and subshell syntax 12488# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 12489for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 12490do eval test \${$as_var+y} \ 12491 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12492done 12493 12494# Ensure that fds 0, 1, and 2 are open. 12495if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 12496if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 12497if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 12498 12499# The user is always right. 12500if ${PATH_SEPARATOR+false} :; then 12501 PATH_SEPARATOR=: 12502 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12503 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12504 PATH_SEPARATOR=';' 12505 } 12506fi 12507 12508 12509# Find who we are. Look in the path if we contain no directory separator. 12510as_myself= 12511case $0 in #(( 12512 *[\\/]* ) as_myself=$0 ;; 12513 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12514for as_dir in $PATH 12515do 12516 IFS=$as_save_IFS 12517 case $as_dir in #((( 12518 '') as_dir=./ ;; 12519 */) ;; 12520 *) as_dir=$as_dir/ ;; 12521 esac 12522 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 12523 done 12524IFS=$as_save_IFS 12525 12526 ;; 12527esac 12528# We did not find ourselves, most probably we were run as 'sh COMMAND' 12529# in which case we are not to be found in the path. 12530if test "x$as_myself" = x; then 12531 as_myself=$0 12532fi 12533if test ! -f "$as_myself"; then 12534 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12535 exit 1 12536fi 12537 12538 12539 12540# as_fn_error STATUS ERROR [LINENO LOG_FD] 12541# ---------------------------------------- 12542# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12543# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12544# script with STATUS, using 1 if that was 0. 12545as_fn_error () 12546{ 12547 as_status=$1; test $as_status -eq 0 && as_status=1 12548 if test "$4"; then 12549 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12551 fi 12552 printf "%s\n" "$as_me: error: $2" >&2 12553 as_fn_exit $as_status 12554} # as_fn_error 12555 12556 12557# as_fn_set_status STATUS 12558# ----------------------- 12559# Set $? to STATUS, without forking. 12560as_fn_set_status () 12561{ 12562 return $1 12563} # as_fn_set_status 12564 12565# as_fn_exit STATUS 12566# ----------------- 12567# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12568as_fn_exit () 12569{ 12570 set +e 12571 as_fn_set_status $1 12572 exit $1 12573} # as_fn_exit 12574 12575# as_fn_unset VAR 12576# --------------- 12577# Portably unset VAR. 12578as_fn_unset () 12579{ 12580 { eval $1=; unset $1;} 12581} 12582as_unset=as_fn_unset 12583 12584# as_fn_append VAR VALUE 12585# ---------------------- 12586# Append the text in VALUE to the end of the definition contained in VAR. Take 12587# advantage of any shell optimizations that allow amortized linear growth over 12588# repeated appends, instead of the typical quadratic growth present in naive 12589# implementations. 12590if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 12591then : 12592 eval 'as_fn_append () 12593 { 12594 eval $1+=\$2 12595 }' 12596else case e in #( 12597 e) as_fn_append () 12598 { 12599 eval $1=\$$1\$2 12600 } ;; 12601esac 12602fi # as_fn_append 12603 12604# as_fn_arith ARG... 12605# ------------------ 12606# Perform arithmetic evaluation on the ARGs, and store the result in the 12607# global $as_val. Take advantage of shells that can avoid forks. The arguments 12608# must be portable across $(()) and expr. 12609if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 12610then : 12611 eval 'as_fn_arith () 12612 { 12613 as_val=$(( $* )) 12614 }' 12615else case e in #( 12616 e) as_fn_arith () 12617 { 12618 as_val=`expr "$@" || test $? -eq 1` 12619 } ;; 12620esac 12621fi # as_fn_arith 12622 12623 12624if expr a : '\(a\)' >/dev/null 2>&1 && 12625 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12626 as_expr=expr 12627else 12628 as_expr=false 12629fi 12630 12631if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12632 as_basename=basename 12633else 12634 as_basename=false 12635fi 12636 12637if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12638 as_dirname=dirname 12639else 12640 as_dirname=false 12641fi 12642 12643as_me=`$as_basename -- "$0" || 12644$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12645 X"$0" : 'X\(//\)$' \| \ 12646 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12647printf "%s\n" X/"$0" | 12648 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12649 s//\1/ 12650 q 12651 } 12652 /^X\/\(\/\/\)$/{ 12653 s//\1/ 12654 q 12655 } 12656 /^X\/\(\/\).*/{ 12657 s//\1/ 12658 q 12659 } 12660 s/.*/./; q'` 12661 12662# Avoid depending upon Character Ranges. 12663as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12664as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12665as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12666as_cr_digits='0123456789' 12667as_cr_alnum=$as_cr_Letters$as_cr_digits 12668 12669 12670# Determine whether it's possible to make 'echo' print without a newline. 12671# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 12672# for compatibility with existing Makefiles. 12673ECHO_C= ECHO_N= ECHO_T= 12674case `echo -n x` in #((((( 12675-n*) 12676 case `echo 'xy\c'` in 12677 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12678 xy) ECHO_C='\c';; 12679 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12680 ECHO_T=' ';; 12681 esac;; 12682*) 12683 ECHO_N='-n';; 12684esac 12685 12686# For backward compatibility with old third-party macros, we provide 12687# the shell variables $as_echo and $as_echo_n. New code should use 12688# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12689as_echo='printf %s\n' 12690as_echo_n='printf %s' 12691 12692rm -f conf$$ conf$$.exe conf$$.file 12693if test -d conf$$.dir; then 12694 rm -f conf$$.dir/conf$$.file 12695else 12696 rm -f conf$$.dir 12697 mkdir conf$$.dir 2>/dev/null 12698fi 12699if (echo >conf$$.file) 2>/dev/null; then 12700 if ln -s conf$$.file conf$$ 2>/dev/null; then 12701 as_ln_s='ln -s' 12702 # ... but there are two gotchas: 12703 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 12704 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 12705 # In both cases, we have to default to 'cp -pR'. 12706 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12707 as_ln_s='cp -pR' 12708 elif ln conf$$.file conf$$ 2>/dev/null; then 12709 as_ln_s=ln 12710 else 12711 as_ln_s='cp -pR' 12712 fi 12713else 12714 as_ln_s='cp -pR' 12715fi 12716rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12717rmdir conf$$.dir 2>/dev/null 12718 12719 12720# as_fn_mkdir_p 12721# ------------- 12722# Create "$as_dir" as a directory, including parents if necessary. 12723as_fn_mkdir_p () 12724{ 12725 12726 case $as_dir in #( 12727 -*) as_dir=./$as_dir;; 12728 esac 12729 test -d "$as_dir" || eval $as_mkdir_p || { 12730 as_dirs= 12731 while :; do 12732 case $as_dir in #( 12733 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12734 *) as_qdir=$as_dir;; 12735 esac 12736 as_dirs="'$as_qdir' $as_dirs" 12737 as_dir=`$as_dirname -- "$as_dir" || 12738$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12739 X"$as_dir" : 'X\(//\)[^/]' \| \ 12740 X"$as_dir" : 'X\(//\)$' \| \ 12741 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12742printf "%s\n" X"$as_dir" | 12743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12744 s//\1/ 12745 q 12746 } 12747 /^X\(\/\/\)[^/].*/{ 12748 s//\1/ 12749 q 12750 } 12751 /^X\(\/\/\)$/{ 12752 s//\1/ 12753 q 12754 } 12755 /^X\(\/\).*/{ 12756 s//\1/ 12757 q 12758 } 12759 s/.*/./; q'` 12760 test -d "$as_dir" && break 12761 done 12762 test -z "$as_dirs" || eval "mkdir $as_dirs" 12763 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12764 12765 12766} # as_fn_mkdir_p 12767if mkdir -p . 2>/dev/null; then 12768 as_mkdir_p='mkdir -p "$as_dir"' 12769else 12770 test -d ./-p && rmdir ./-p 12771 as_mkdir_p=false 12772fi 12773 12774 12775# as_fn_executable_p FILE 12776# ----------------------- 12777# Test if FILE is an executable regular file. 12778as_fn_executable_p () 12779{ 12780 test -f "$1" && test -x "$1" 12781} # as_fn_executable_p 12782as_test_x='test -x' 12783as_executable_p=as_fn_executable_p 12784 12785# Sed expression to map a string onto a valid CPP name. 12786as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 12787as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 12788 12789# Sed expression to map a string onto a valid variable name. 12790as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 12791as_tr_sh="eval sed '$as_sed_sh'" # deprecated 12792 12793 12794exec 6>&1 12795## ----------------------------------- ## 12796## Main body of $CONFIG_STATUS script. ## 12797## ----------------------------------- ## 12798_ASEOF 12799test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12800 12801cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12802# Save the log message, to keep $0 and so on meaningful, and to 12803# report actual input values of CONFIG_FILES etc. instead of their 12804# values after options handling. 12805ac_log=" 12806This file was extended by bitmap $as_me 1.1.1, which was 12807generated by GNU Autoconf 2.72. Invocation command line was 12808 12809 CONFIG_FILES = $CONFIG_FILES 12810 CONFIG_HEADERS = $CONFIG_HEADERS 12811 CONFIG_LINKS = $CONFIG_LINKS 12812 CONFIG_COMMANDS = $CONFIG_COMMANDS 12813 $ $0 $@ 12814 12815on `(hostname || uname -n) 2>/dev/null | sed 1q` 12816" 12817 12818_ACEOF 12819 12820case $ac_config_files in *" 12821"*) set x $ac_config_files; shift; ac_config_files=$*;; 12822esac 12823 12824case $ac_config_headers in *" 12825"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12826esac 12827 12828 12829cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12830# Files that config.status was made for. 12831config_files="$ac_config_files" 12832config_headers="$ac_config_headers" 12833config_commands="$ac_config_commands" 12834 12835_ACEOF 12836 12837cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12838ac_cs_usage="\ 12839'$as_me' instantiates files and other configuration actions 12840from templates according to the current configuration. Unless the files 12841and actions are specified as TAGs, all are instantiated by default. 12842 12843Usage: $0 [OPTION]... [TAG]... 12844 12845 -h, --help print this help, then exit 12846 -V, --version print version number and configuration settings, then exit 12847 --config print configuration, then exit 12848 -q, --quiet, --silent 12849 do not print progress messages 12850 -d, --debug don't remove temporary files 12851 --recheck update $as_me by reconfiguring in the same conditions 12852 --file=FILE[:TEMPLATE] 12853 instantiate the configuration file FILE 12854 --header=FILE[:TEMPLATE] 12855 instantiate the configuration header FILE 12856 12857Configuration files: 12858$config_files 12859 12860Configuration headers: 12861$config_headers 12862 12863Configuration commands: 12864$config_commands 12865 12866Report bugs to <https://gitlab.freedesktop.org/xorg/app/bitmap/issues>." 12867 12868_ACEOF 12869ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12870ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12871cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12872ac_cs_config='$ac_cs_config_escaped' 12873ac_cs_version="\\ 12874bitmap config.status 1.1.1 12875configured by $0, generated by GNU Autoconf 2.72, 12876 with options \\"\$ac_cs_config\\" 12877 12878Copyright (C) 2023 Free Software Foundation, Inc. 12879This config.status script is free software; the Free Software Foundation 12880gives unlimited permission to copy, distribute and modify it." 12881 12882ac_pwd='$ac_pwd' 12883srcdir='$srcdir' 12884INSTALL='$INSTALL' 12885MKDIR_P='$MKDIR_P' 12886AWK='$AWK' 12887test -n "\$AWK" || AWK=awk 12888_ACEOF 12889 12890cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12891# The default lists apply if the user does not specify any file. 12892ac_need_defaults=: 12893while test $# != 0 12894do 12895 case $1 in 12896 --*=?*) 12897 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12898 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12899 ac_shift=: 12900 ;; 12901 --*=) 12902 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12903 ac_optarg= 12904 ac_shift=: 12905 ;; 12906 *) 12907 ac_option=$1 12908 ac_optarg=$2 12909 ac_shift=shift 12910 ;; 12911 esac 12912 12913 case $ac_option in 12914 # Handling of the options. 12915 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12916 ac_cs_recheck=: ;; 12917 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12918 printf "%s\n" "$ac_cs_version"; exit ;; 12919 --config | --confi | --conf | --con | --co | --c ) 12920 printf "%s\n" "$ac_cs_config"; exit ;; 12921 --debug | --debu | --deb | --de | --d | -d ) 12922 debug=: ;; 12923 --file | --fil | --fi | --f ) 12924 $ac_shift 12925 case $ac_optarg in 12926 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12927 '') as_fn_error $? "missing file argument" ;; 12928 esac 12929 as_fn_append CONFIG_FILES " '$ac_optarg'" 12930 ac_need_defaults=false;; 12931 --header | --heade | --head | --hea ) 12932 $ac_shift 12933 case $ac_optarg in 12934 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12935 esac 12936 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12937 ac_need_defaults=false;; 12938 --he | --h) 12939 # Conflict between --help and --header 12940 as_fn_error $? "ambiguous option: '$1' 12941Try '$0 --help' for more information.";; 12942 --help | --hel | -h ) 12943 printf "%s\n" "$ac_cs_usage"; exit ;; 12944 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12945 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12946 ac_cs_silent=: ;; 12947 12948 # This is an error. 12949 -*) as_fn_error $? "unrecognized option: '$1' 12950Try '$0 --help' for more information." ;; 12951 12952 *) as_fn_append ac_config_targets " $1" 12953 ac_need_defaults=false ;; 12954 12955 esac 12956 shift 12957done 12958 12959ac_configure_extra_args= 12960 12961if $ac_cs_silent; then 12962 exec 6>/dev/null 12963 ac_configure_extra_args="$ac_configure_extra_args --silent" 12964fi 12965 12966_ACEOF 12967cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12968if \$ac_cs_recheck; then 12969 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12970 shift 12971 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12972 CONFIG_SHELL='$SHELL' 12973 export CONFIG_SHELL 12974 exec "\$@" 12975fi 12976 12977_ACEOF 12978cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12979exec 5>>config.log 12980{ 12981 echo 12982 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12983## Running $as_me. ## 12984_ASBOX 12985 printf "%s\n" "$ac_log" 12986} >&5 12987 12988_ACEOF 12989cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12990# 12991# INIT-COMMANDS 12992# 12993AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12994 12995_ACEOF 12996 12997cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12998 12999# Handling of arguments. 13000for ac_config_target in $ac_config_targets 13001do 13002 case $ac_config_target in 13003 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 13004 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13005 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13006 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 13007 "test/round-trip-test") CONFIG_FILES="$CONFIG_FILES test/round-trip-test" ;; 13008 13009 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 13010 esac 13011done 13012 13013 13014# If the user did not use the arguments to specify the items to instantiate, 13015# then the envvar interface is used. Set only those that are not. 13016# We use the long form for the default assignment because of an extremely 13017# bizarre bug on SunOS 4.1.3. 13018if $ac_need_defaults; then 13019 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 13020 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 13021 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 13022fi 13023 13024# Have a temporary directory for convenience. Make it in the build tree 13025# simply because there is no reason against having it here, and in addition, 13026# creating and moving files from /tmp can sometimes cause problems. 13027# Hook for its removal unless debugging. 13028# Note that there is a small window in which the directory will not be cleaned: 13029# after its creation but before its name has been assigned to '$tmp'. 13030$debug || 13031{ 13032 tmp= ac_tmp= 13033 trap 'exit_status=$? 13034 : "${ac_tmp:=$tmp}" 13035 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 13036' 0 13037 trap 'as_fn_exit 1' 1 2 13 15 13038} 13039# Create a (secure) tmp directory for tmp files. 13040 13041{ 13042 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13043 test -d "$tmp" 13044} || 13045{ 13046 tmp=./conf$$-$RANDOM 13047 (umask 077 && mkdir "$tmp") 13048} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 13049ac_tmp=$tmp 13050 13051# Set up the scripts for CONFIG_FILES section. 13052# No need to generate them if there are no CONFIG_FILES. 13053# This happens for instance with './config.status config.h'. 13054if test -n "$CONFIG_FILES"; then 13055 13056 13057ac_cr=`echo X | tr X '\015'` 13058# On cygwin, bash can eat \r inside `` if the user requested igncr. 13059# But we know of no other shell where ac_cr would be empty at this 13060# point, so we can use a bashism as a fallback. 13061if test "x$ac_cr" = x; then 13062 eval ac_cr=\$\'\\r\' 13063fi 13064ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13065if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13066 ac_cs_awk_cr='\\r' 13067else 13068 ac_cs_awk_cr=$ac_cr 13069fi 13070 13071echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 13072_ACEOF 13073 13074 13075{ 13076 echo "cat >conf$$subs.awk <<_ACEOF" && 13077 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13078 echo "_ACEOF" 13079} >conf$$subs.sh || 13080 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13081ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 13082ac_delim='%!_!# ' 13083for ac_last_try in false false false false false :; do 13084 . ./conf$$subs.sh || 13085 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13086 13087 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13088 if test $ac_delim_n = $ac_delim_num; then 13089 break 13090 elif $ac_last_try; then 13091 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13092 else 13093 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13094 fi 13095done 13096rm -f conf$$subs.sh 13097 13098cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13099cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 13100_ACEOF 13101sed -n ' 13102h 13103s/^/S["/; s/!.*/"]=/ 13104p 13105g 13106s/^[^!]*!// 13107:repl 13108t repl 13109s/'"$ac_delim"'$// 13110t delim 13111:nl 13112h 13113s/\(.\{148\}\)..*/\1/ 13114t more1 13115s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13116p 13117n 13118b repl 13119:more1 13120s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13121p 13122g 13123s/.\{148\}// 13124t nl 13125:delim 13126h 13127s/\(.\{148\}\)..*/\1/ 13128t more2 13129s/["\\]/\\&/g; s/^/"/; s/$/"/ 13130p 13131b 13132:more2 13133s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13134p 13135g 13136s/.\{148\}// 13137t delim 13138' <conf$$subs.awk | sed ' 13139/^[^""]/{ 13140 N 13141 s/\n// 13142} 13143' >>$CONFIG_STATUS || ac_write_fail=1 13144rm -f conf$$subs.awk 13145cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13146_ACAWK 13147cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 13148 for (key in S) S_is_set[key] = 1 13149 FS = "" 13150 13151} 13152{ 13153 line = $ 0 13154 nfields = split(line, field, "@") 13155 substed = 0 13156 len = length(field[1]) 13157 for (i = 2; i < nfields; i++) { 13158 key = field[i] 13159 keylen = length(key) 13160 if (S_is_set[key]) { 13161 value = S[key] 13162 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13163 len += length(value) + length(field[++i]) 13164 substed = 1 13165 } else 13166 len += 1 + keylen 13167 } 13168 13169 print line 13170} 13171 13172_ACAWK 13173_ACEOF 13174cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13175if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13176 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13177else 13178 cat 13179fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 13180 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13181_ACEOF 13182 13183# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 13184# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13185# trailing colons and then remove the whole line if VPATH becomes empty 13186# (actually we leave an empty line to preserve line numbers). 13187if test "x$srcdir" = x.; then 13188 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13189h 13190s/// 13191s/^/:/ 13192s/[ ]*$/:/ 13193s/:\$(srcdir):/:/g 13194s/:\${srcdir}:/:/g 13195s/:@srcdir@:/:/g 13196s/^:*// 13197s/:*$// 13198x 13199s/\(=[ ]*\).*/\1/ 13200G 13201s/\n// 13202s/^[^=]*=[ ]*$// 13203}' 13204fi 13205 13206cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13207fi # test -n "$CONFIG_FILES" 13208 13209# Set up the scripts for CONFIG_HEADERS section. 13210# No need to generate them if there are no CONFIG_HEADERS. 13211# This happens for instance with './config.status Makefile'. 13212if test -n "$CONFIG_HEADERS"; then 13213cat >"$ac_tmp/defines.awk" <<\_ACAWK || 13214BEGIN { 13215_ACEOF 13216 13217# Transform confdefs.h into an awk script 'defines.awk', embedded as 13218# here-document in config.status, that substitutes the proper values into 13219# config.h.in to produce config.h. 13220 13221# Create a delimiter string that does not exist in confdefs.h, to ease 13222# handling of long lines. 13223ac_delim='%!_!# ' 13224for ac_last_try in false false :; do 13225 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 13226 if test -z "$ac_tt"; then 13227 break 13228 elif $ac_last_try; then 13229 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 13230 else 13231 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13232 fi 13233done 13234 13235# For the awk script, D is an array of macro values keyed by name, 13236# likewise P contains macro parameters if any. Preserve backslash 13237# newline sequences. 13238 13239ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13240sed -n ' 13241s/.\{148\}/&'"$ac_delim"'/g 13242t rset 13243:rset 13244s/^[ ]*#[ ]*define[ ][ ]*/ / 13245t def 13246d 13247:def 13248s/\\$// 13249t bsnl 13250s/["\\]/\\&/g 13251s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13252D["\1"]=" \3"/p 13253s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13254d 13255:bsnl 13256s/["\\]/\\&/g 13257s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13258D["\1"]=" \3\\\\\\n"\\/p 13259t cont 13260s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13261t cont 13262d 13263:cont 13264n 13265s/.\{148\}/&'"$ac_delim"'/g 13266t clear 13267:clear 13268s/\\$// 13269t bsnlc 13270s/["\\]/\\&/g; s/^/"/; s/$/"/p 13271d 13272:bsnlc 13273s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13274b cont 13275' <confdefs.h | sed ' 13276s/'"$ac_delim"'/"\\\ 13277"/g' >>$CONFIG_STATUS || ac_write_fail=1 13278 13279cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13280 for (key in D) D_is_set[key] = 1 13281 FS = "" 13282} 13283/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13284 line = \$ 0 13285 split(line, arg, " ") 13286 if (arg[1] == "#") { 13287 defundef = arg[2] 13288 mac1 = arg[3] 13289 } else { 13290 defundef = substr(arg[1], 2) 13291 mac1 = arg[2] 13292 } 13293 split(mac1, mac2, "(") #) 13294 macro = mac2[1] 13295 prefix = substr(line, 1, index(line, defundef) - 1) 13296 if (D_is_set[macro]) { 13297 # Preserve the white space surrounding the "#". 13298 print prefix "define", macro P[macro] D[macro] 13299 next 13300 } else { 13301 # Replace #undef with comments. This is necessary, for example, 13302 # in the case of _POSIX_SOURCE, which is predefined and required 13303 # on some systems where configure will not decide to define it. 13304 if (defundef == "undef") { 13305 print "/*", prefix defundef, macro, "*/" 13306 next 13307 } 13308 } 13309} 13310{ print } 13311_ACAWK 13312_ACEOF 13313cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13314 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13315fi # test -n "$CONFIG_HEADERS" 13316 13317 13318eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13319shift 13320for ac_tag 13321do 13322 case $ac_tag in 13323 :[FHLC]) ac_mode=$ac_tag; continue;; 13324 esac 13325 case $ac_mode$ac_tag in 13326 :[FHL]*:*);; 13327 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 13328 :[FH]-) ac_tag=-:-;; 13329 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13330 esac 13331 ac_save_IFS=$IFS 13332 IFS=: 13333 set x $ac_tag 13334 IFS=$ac_save_IFS 13335 shift 13336 ac_file=$1 13337 shift 13338 13339 case $ac_mode in 13340 :L) ac_source=$1;; 13341 :[FH]) 13342 ac_file_inputs= 13343 for ac_f 13344 do 13345 case $ac_f in 13346 -) ac_f="$ac_tmp/stdin";; 13347 *) # Look for the file first in the build tree, then in the source tree 13348 # (if the path is not absolute). The absolute path cannot be DOS-style, 13349 # because $ac_f cannot contain ':'. 13350 test -f "$ac_f" || 13351 case $ac_f in 13352 [\\/$]*) false;; 13353 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13354 esac || 13355 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 13356 esac 13357 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13358 as_fn_append ac_file_inputs " '$ac_f'" 13359 done 13360 13361 # Let's still pretend it is 'configure' which instantiates (i.e., don't 13362 # use $as_me), people would be surprised to read: 13363 # /* config.h. Generated by config.status. */ 13364 configure_input='Generated from '` 13365 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13366 `' by configure.' 13367 if test x"$ac_file" != x-; then 13368 configure_input="$ac_file. $configure_input" 13369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13370printf "%s\n" "$as_me: creating $ac_file" >&6;} 13371 fi 13372 # Neutralize special characters interpreted by sed in replacement strings. 13373 case $configure_input in #( 13374 *\&* | *\|* | *\\* ) 13375 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 13376 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13377 *) ac_sed_conf_input=$configure_input;; 13378 esac 13379 13380 case $ac_tag in 13381 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13382 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13383 esac 13384 ;; 13385 esac 13386 13387 ac_dir=`$as_dirname -- "$ac_file" || 13388$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13389 X"$ac_file" : 'X\(//\)[^/]' \| \ 13390 X"$ac_file" : 'X\(//\)$' \| \ 13391 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13392printf "%s\n" X"$ac_file" | 13393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13394 s//\1/ 13395 q 13396 } 13397 /^X\(\/\/\)[^/].*/{ 13398 s//\1/ 13399 q 13400 } 13401 /^X\(\/\/\)$/{ 13402 s//\1/ 13403 q 13404 } 13405 /^X\(\/\).*/{ 13406 s//\1/ 13407 q 13408 } 13409 s/.*/./; q'` 13410 as_dir="$ac_dir"; as_fn_mkdir_p 13411 ac_builddir=. 13412 13413case "$ac_dir" in 13414.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13415*) 13416 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 13417 # A ".." for each directory in $ac_dir_suffix. 13418 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13419 case $ac_top_builddir_sub in 13420 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13421 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13422 esac ;; 13423esac 13424ac_abs_top_builddir=$ac_pwd 13425ac_abs_builddir=$ac_pwd$ac_dir_suffix 13426# for backward compatibility: 13427ac_top_builddir=$ac_top_build_prefix 13428 13429case $srcdir in 13430 .) # We are building in place. 13431 ac_srcdir=. 13432 ac_top_srcdir=$ac_top_builddir_sub 13433 ac_abs_top_srcdir=$ac_pwd ;; 13434 [\\/]* | ?:[\\/]* ) # Absolute name. 13435 ac_srcdir=$srcdir$ac_dir_suffix; 13436 ac_top_srcdir=$srcdir 13437 ac_abs_top_srcdir=$srcdir ;; 13438 *) # Relative name. 13439 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13440 ac_top_srcdir=$ac_top_build_prefix$srcdir 13441 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13442esac 13443ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13444 13445 13446 case $ac_mode in 13447 :F) 13448 # 13449 # CONFIG_FILE 13450 # 13451 13452 case $INSTALL in 13453 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13454 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13455 esac 13456 ac_MKDIR_P=$MKDIR_P 13457 case $MKDIR_P in 13458 [\\/$]* | ?:[\\/]* ) ;; 13459 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13460 esac 13461_ACEOF 13462 13463cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13464# If the template does not know about datarootdir, expand it. 13465# FIXME: This hack should be removed a few years after 2.60. 13466ac_datarootdir_hack=; ac_datarootdir_seen= 13467ac_sed_dataroot=' 13468/datarootdir/ { 13469 p 13470 q 13471} 13472/@datadir@/p 13473/@docdir@/p 13474/@infodir@/p 13475/@localedir@/p 13476/@mandir@/p' 13477case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13478*datarootdir*) ac_datarootdir_seen=yes;; 13479*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13481printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13482_ACEOF 13483cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13484 ac_datarootdir_hack=' 13485 s&@datadir@&$datadir&g 13486 s&@docdir@&$docdir&g 13487 s&@infodir@&$infodir&g 13488 s&@localedir@&$localedir&g 13489 s&@mandir@&$mandir&g 13490 s&\\\${datarootdir}&$datarootdir&g' ;; 13491esac 13492_ACEOF 13493 13494# Neutralize VPATH when '$srcdir' = '.'. 13495# Shell code in configure.ac might set extrasub. 13496# FIXME: do we really want to maintain this feature? 13497cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13498ac_sed_extra="$ac_vpsub 13499$extrasub 13500_ACEOF 13501cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13502:t 13503/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13504s|@configure_input@|$ac_sed_conf_input|;t t 13505s&@top_builddir@&$ac_top_builddir_sub&;t t 13506s&@top_build_prefix@&$ac_top_build_prefix&;t t 13507s&@srcdir@&$ac_srcdir&;t t 13508s&@abs_srcdir@&$ac_abs_srcdir&;t t 13509s&@top_srcdir@&$ac_top_srcdir&;t t 13510s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13511s&@builddir@&$ac_builddir&;t t 13512s&@abs_builddir@&$ac_abs_builddir&;t t 13513s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13514s&@INSTALL@&$ac_INSTALL&;t t 13515s&@MKDIR_P@&$ac_MKDIR_P&;t t 13516$ac_datarootdir_hack 13517" 13518eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13519 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13520 13521test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13522 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13523 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13524 "$ac_tmp/out"`; test -z "$ac_out"; } && 13525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13526which seems to be undefined. Please make sure it is defined" >&5 13527printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13528which seems to be undefined. Please make sure it is defined" >&2;} 13529 13530 rm -f "$ac_tmp/stdin" 13531 case $ac_file in 13532 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13533 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13534 esac \ 13535 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13536 ;; 13537 :H) 13538 # 13539 # CONFIG_HEADER 13540 # 13541 if test x"$ac_file" != x-; then 13542 { 13543 printf "%s\n" "/* $configure_input */" >&1 \ 13544 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13545 } >"$ac_tmp/config.h" \ 13546 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13547 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13549printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 13550 else 13551 rm -f "$ac_file" 13552 mv "$ac_tmp/config.h" "$ac_file" \ 13553 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13554 fi 13555 else 13556 printf "%s\n" "/* $configure_input */" >&1 \ 13557 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13558 || as_fn_error $? "could not create -" "$LINENO" 5 13559 fi 13560# Compute "$ac_file"'s index in $config_headers. 13561_am_arg="$ac_file" 13562_am_stamp_count=1 13563for _am_header in $config_headers :; do 13564 case $_am_header in 13565 $_am_arg | $_am_arg:* ) 13566 break ;; 13567 * ) 13568 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13569 esac 13570done 13571echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13572$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13573 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13574 X"$_am_arg" : 'X\(//\)$' \| \ 13575 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13576printf "%s\n" X"$_am_arg" | 13577 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13578 s//\1/ 13579 q 13580 } 13581 /^X\(\/\/\)[^/].*/{ 13582 s//\1/ 13583 q 13584 } 13585 /^X\(\/\/\)$/{ 13586 s//\1/ 13587 q 13588 } 13589 /^X\(\/\).*/{ 13590 s//\1/ 13591 q 13592 } 13593 s/.*/./; q'`/stamp-h$_am_stamp_count 13594 ;; 13595 13596 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13597printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 13598 ;; 13599 esac 13600 13601 13602 case $ac_file$ac_mode in 13603 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13604 # Older Autoconf quotes --file arguments for eval, but not when files 13605 # are listed without --file. Let's play safe and only enable the eval 13606 # if we detect the quoting. 13607 # TODO: see whether this extra hack can be removed once we start 13608 # requiring Autoconf 2.70 or later. 13609 case $CONFIG_FILES in #( 13610 *\'*) : 13611 eval set x "$CONFIG_FILES" ;; #( 13612 *) : 13613 set x $CONFIG_FILES ;; #( 13614 *) : 13615 ;; 13616esac 13617 shift 13618 # Used to flag and report bootstrapping failures. 13619 am_rc=0 13620 for am_mf 13621 do 13622 # Strip MF so we end up with the name of the file. 13623 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 13624 # Check whether this is an Automake generated Makefile which includes 13625 # dependency-tracking related rules and includes. 13626 # Grep'ing the whole file directly is not great: AIX grep has a line 13627 # limit of 2048, but all sed's we know have understand at least 4000. 13628 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13629 || continue 13630 am_dirpart=`$as_dirname -- "$am_mf" || 13631$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13632 X"$am_mf" : 'X\(//\)[^/]' \| \ 13633 X"$am_mf" : 'X\(//\)$' \| \ 13634 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13635printf "%s\n" X"$am_mf" | 13636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13637 s//\1/ 13638 q 13639 } 13640 /^X\(\/\/\)[^/].*/{ 13641 s//\1/ 13642 q 13643 } 13644 /^X\(\/\/\)$/{ 13645 s//\1/ 13646 q 13647 } 13648 /^X\(\/\).*/{ 13649 s//\1/ 13650 q 13651 } 13652 s/.*/./; q'` 13653 am_filepart=`$as_basename -- "$am_mf" || 13654$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13655 X"$am_mf" : 'X\(//\)$' \| \ 13656 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13657printf "%s\n" X/"$am_mf" | 13658 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13659 s//\1/ 13660 q 13661 } 13662 /^X\/\(\/\/\)$/{ 13663 s//\1/ 13664 q 13665 } 13666 /^X\/\(\/\).*/{ 13667 s//\1/ 13668 q 13669 } 13670 s/.*/./; q'` 13671 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13672 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13673 | $MAKE -f - am--depfiles" >&5 13674 (cd "$am_dirpart" \ 13675 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13676 | $MAKE -f - am--depfiles) >&5 2>&5 13677 ac_status=$? 13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13679 (exit $ac_status); } || am_rc=$? 13680 done 13681 if test $am_rc -ne 0; then 13682 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13683printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13684as_fn_error $? "Something went wrong bootstrapping makefile fragments 13685 for automatic dependency tracking. If GNU make was not used, consider 13686 re-running the configure script with MAKE=\"gmake\" (or whatever is 13687 necessary). You can also try re-running configure with the 13688 '--disable-dependency-tracking' option to at least be able to build 13689 the package (albeit without support for automatic dependency tracking). 13690See 'config.log' for more details" "$LINENO" 5; } 13691 fi 13692 { am_dirpart=; unset am_dirpart;} 13693 { am_filepart=; unset am_filepart;} 13694 { am_mf=; unset am_mf;} 13695 { am_rc=; unset am_rc;} 13696 rm -f conftest-deps.mk 13697} 13698 ;; 13699 "test/round-trip-test":F) chmod +x test/round-trip-test ;; 13700 13701 esac 13702done # for ac_tag 13703 13704 13705as_fn_exit 0 13706_ACEOF 13707ac_clean_files=$ac_clean_files_save 13708 13709test $ac_write_fail = 0 || 13710 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13711 13712 13713# configure is writing to config.log, and then calls config.status. 13714# config.status does its own redirection, appending to config.log. 13715# Unfortunately, on DOS this fails, as config.log is still kept open 13716# by configure, so config.status won't be able to write to it; its 13717# output is simply discarded. So we exec the FD to /dev/null, 13718# effectively closing config.log, so it can be properly (re)opened and 13719# appended to by config.status. When coming back to configure, we 13720# need to make the FD available again. 13721if test "$no_create" != yes; then 13722 ac_cs_success=: 13723 ac_config_status_args= 13724 test "$silent" = yes && 13725 ac_config_status_args="$ac_config_status_args --quiet" 13726 exec 5>/dev/null 13727 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13728 exec 5>>config.log 13729 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13730 # would make configure fail if this is the last instruction. 13731 $ac_cs_success || as_fn_exit 1 13732fi 13733if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13735printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13736fi 13737 13738 13739