1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.72 for smproxy 1.0.8. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/smproxy/-/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/smproxy/-/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='smproxy' 607PACKAGE_TARNAME='smproxy' 608PACKAGE_VERSION='1.0.8' 609PACKAGE_STRING='smproxy 1.0.8' 610PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/smproxy/-/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= 646ac_subst_vars='am__EXEEXT_FALSE 647am__EXEEXT_TRUE 648LTLIBOBJS 649LIBOBJS 650SMPROXY_LIBS 651SMPROXY_CFLAGS 652MAN_SUBSTS 653XORG_MAN_PAGE 654ADMIN_MAN_DIR 655DRIVER_MAN_DIR 656MISC_MAN_DIR 657FILE_MAN_DIR 658LIB_MAN_DIR 659APP_MAN_DIR 660ADMIN_MAN_SUFFIX 661DRIVER_MAN_SUFFIX 662MISC_MAN_SUFFIX 663FILE_MAN_SUFFIX 664LIB_MAN_SUFFIX 665APP_MAN_SUFFIX 666SED 667host_os 668host_vendor 669host_cpu 670host 671build_os 672build_vendor 673build_cpu 674build 675INSTALL_CMD 676PKG_CONFIG_LIBDIR 677PKG_CONFIG_PATH 678PKG_CONFIG 679CHANGELOG_CMD 680STRICT_CFLAGS 681CWARNFLAGS 682BASE_CFLAGS 683am__fastdepCC_FALSE 684am__fastdepCC_TRUE 685CCDEPMODE 686am__nodep 687AMDEPBACKSLASH 688AMDEP_FALSE 689AMDEP_TRUE 690am__include 691DEPDIR 692OBJEXT 693EXEEXT 694ac_ct_CC 695CPPFLAGS 696LDFLAGS 697CFLAGS 698CC 699am__xargs_n 700am__rm_f_notfound 701AM_BACKSLASH 702AM_DEFAULT_VERBOSITY 703AM_DEFAULT_V 704AM_V 705CSCOPE 706ETAGS 707CTAGS 708am__untar 709am__tar 710AMTAR 711am__leading_dot 712SET_MAKE 713AWK 714mkdir_p 715MKDIR_P 716INSTALL_STRIP_PROGRAM 717STRIP 718install_sh 719MAKEINFO 720AUTOHEADER 721AUTOMAKE 722AUTOCONF 723ACLOCAL 724VERSION 725PACKAGE 726CYGPATH_W 727am__isrc 728INSTALL_DATA 729INSTALL_SCRIPT 730INSTALL_PROGRAM 731target_alias 732host_alias 733build_alias 734LIBS 735ECHO_T 736ECHO_N 737ECHO_C 738DEFS 739mandir 740localedir 741libdir 742psdir 743pdfdir 744dvidir 745htmldir 746infodir 747docdir 748oldincludedir 749includedir 750runstatedir 751localstatedir 752sharedstatedir 753sysconfdir 754datadir 755datarootdir 756libexecdir 757sbindir 758bindir 759program_transform_name 760prefix 761exec_prefix 762PACKAGE_URL 763PACKAGE_BUGREPORT 764PACKAGE_STRING 765PACKAGE_VERSION 766PACKAGE_TARNAME 767PACKAGE_NAME 768PATH_SEPARATOR 769SHELL 770am__quote' 771ac_subst_files='' 772ac_user_opts=' 773enable_option_checking 774enable_silent_rules 775enable_dependency_tracking 776enable_selective_werror 777enable_strict_compilation 778' 779 ac_precious_vars='build_alias 780host_alias 781target_alias 782CC 783CFLAGS 784LDFLAGS 785LIBS 786CPPFLAGS 787PKG_CONFIG 788PKG_CONFIG_PATH 789PKG_CONFIG_LIBDIR 790SMPROXY_CFLAGS 791SMPROXY_LIBS' 792 793 794# Initialize some variables set by options. 795ac_init_help= 796ac_init_version=false 797ac_unrecognized_opts= 798ac_unrecognized_sep= 799# The variables have the same names as the options, with 800# dashes changed to underlines. 801cache_file=/dev/null 802exec_prefix=NONE 803no_create= 804no_recursion= 805prefix=NONE 806program_prefix=NONE 807program_suffix=NONE 808program_transform_name=s,x,x, 809silent= 810site= 811srcdir= 812verbose= 813x_includes=NONE 814x_libraries=NONE 815 816# Installation directory options. 817# These are left unexpanded so users can "make install exec_prefix=/foo" 818# and all the variables that are supposed to be based on exec_prefix 819# by default will actually change. 820# Use braces instead of parens because sh, perl, etc. also accept them. 821# (The list follows the same order as the GNU Coding Standards.) 822bindir='${exec_prefix}/bin' 823sbindir='${exec_prefix}/sbin' 824libexecdir='${exec_prefix}/libexec' 825datarootdir='${prefix}/share' 826datadir='${datarootdir}' 827sysconfdir='${prefix}/etc' 828sharedstatedir='${prefix}/com' 829localstatedir='${prefix}/var' 830runstatedir='${localstatedir}/run' 831includedir='${prefix}/include' 832oldincludedir='/usr/include' 833docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 834infodir='${datarootdir}/info' 835htmldir='${docdir}' 836dvidir='${docdir}' 837pdfdir='${docdir}' 838psdir='${docdir}' 839libdir='${exec_prefix}/lib' 840localedir='${datarootdir}/locale' 841mandir='${datarootdir}/man' 842 843ac_prev= 844ac_dashdash= 845for ac_option 846do 847 # If the previous option needs an argument, assign it. 848 if test -n "$ac_prev"; then 849 eval $ac_prev=\$ac_option 850 ac_prev= 851 continue 852 fi 853 854 case $ac_option in 855 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 856 *=) ac_optarg= ;; 857 *) ac_optarg=yes ;; 858 esac 859 860 case $ac_dashdash$ac_option in 861 --) 862 ac_dashdash=yes ;; 863 864 -bindir | --bindir | --bindi | --bind | --bin | --bi) 865 ac_prev=bindir ;; 866 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 867 bindir=$ac_optarg ;; 868 869 -build | --build | --buil | --bui | --bu) 870 ac_prev=build_alias ;; 871 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 872 build_alias=$ac_optarg ;; 873 874 -cache-file | --cache-file | --cache-fil | --cache-fi \ 875 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 876 ac_prev=cache_file ;; 877 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 878 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 879 cache_file=$ac_optarg ;; 880 881 --config-cache | -C) 882 cache_file=config.cache ;; 883 884 -datadir | --datadir | --datadi | --datad) 885 ac_prev=datadir ;; 886 -datadir=* | --datadir=* | --datadi=* | --datad=*) 887 datadir=$ac_optarg ;; 888 889 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 890 | --dataroo | --dataro | --datar) 891 ac_prev=datarootdir ;; 892 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 893 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 894 datarootdir=$ac_optarg ;; 895 896 -disable-* | --disable-*) 897 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 898 # Reject names that are not valid shell variable names. 899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 900 as_fn_error $? "invalid feature name: '$ac_useropt'" 901 ac_useropt_orig=$ac_useropt 902 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 903 case $ac_user_opts in 904 *" 905"enable_$ac_useropt" 906"*) ;; 907 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 908 ac_unrecognized_sep=', ';; 909 esac 910 eval enable_$ac_useropt=no ;; 911 912 -docdir | --docdir | --docdi | --doc | --do) 913 ac_prev=docdir ;; 914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 915 docdir=$ac_optarg ;; 916 917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 918 ac_prev=dvidir ;; 919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 920 dvidir=$ac_optarg ;; 921 922 -enable-* | --enable-*) 923 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 924 # Reject names that are not valid shell variable names. 925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 926 as_fn_error $? "invalid feature name: '$ac_useropt'" 927 ac_useropt_orig=$ac_useropt 928 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 929 case $ac_user_opts in 930 *" 931"enable_$ac_useropt" 932"*) ;; 933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 934 ac_unrecognized_sep=', ';; 935 esac 936 eval enable_$ac_useropt=\$ac_optarg ;; 937 938 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 939 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 940 | --exec | --exe | --ex) 941 ac_prev=exec_prefix ;; 942 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 943 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 944 | --exec=* | --exe=* | --ex=*) 945 exec_prefix=$ac_optarg ;; 946 947 -gas | --gas | --ga | --g) 948 # Obsolete; use --with-gas. 949 with_gas=yes ;; 950 951 -help | --help | --hel | --he | -h) 952 ac_init_help=long ;; 953 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 954 ac_init_help=recursive ;; 955 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 956 ac_init_help=short ;; 957 958 -host | --host | --hos | --ho) 959 ac_prev=host_alias ;; 960 -host=* | --host=* | --hos=* | --ho=*) 961 host_alias=$ac_optarg ;; 962 963 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 964 ac_prev=htmldir ;; 965 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 966 | --ht=*) 967 htmldir=$ac_optarg ;; 968 969 -includedir | --includedir | --includedi | --included | --include \ 970 | --includ | --inclu | --incl | --inc) 971 ac_prev=includedir ;; 972 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 973 | --includ=* | --inclu=* | --incl=* | --inc=*) 974 includedir=$ac_optarg ;; 975 976 -infodir | --infodir | --infodi | --infod | --info | --inf) 977 ac_prev=infodir ;; 978 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 979 infodir=$ac_optarg ;; 980 981 -libdir | --libdir | --libdi | --libd) 982 ac_prev=libdir ;; 983 -libdir=* | --libdir=* | --libdi=* | --libd=*) 984 libdir=$ac_optarg ;; 985 986 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 987 | --libexe | --libex | --libe) 988 ac_prev=libexecdir ;; 989 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 990 | --libexe=* | --libex=* | --libe=*) 991 libexecdir=$ac_optarg ;; 992 993 -localedir | --localedir | --localedi | --localed | --locale) 994 ac_prev=localedir ;; 995 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 996 localedir=$ac_optarg ;; 997 998 -localstatedir | --localstatedir | --localstatedi | --localstated \ 999 | --localstate | --localstat | --localsta | --localst | --locals) 1000 ac_prev=localstatedir ;; 1001 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1002 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1003 localstatedir=$ac_optarg ;; 1004 1005 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1006 ac_prev=mandir ;; 1007 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1008 mandir=$ac_optarg ;; 1009 1010 -nfp | --nfp | --nf) 1011 # Obsolete; use --without-fp. 1012 with_fp=no ;; 1013 1014 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1015 | --no-cr | --no-c | -n) 1016 no_create=yes ;; 1017 1018 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1019 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1020 no_recursion=yes ;; 1021 1022 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1023 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1024 | --oldin | --oldi | --old | --ol | --o) 1025 ac_prev=oldincludedir ;; 1026 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1027 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1028 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1029 oldincludedir=$ac_optarg ;; 1030 1031 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1032 ac_prev=prefix ;; 1033 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1034 prefix=$ac_optarg ;; 1035 1036 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1037 | --program-pre | --program-pr | --program-p) 1038 ac_prev=program_prefix ;; 1039 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1040 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1041 program_prefix=$ac_optarg ;; 1042 1043 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1044 | --program-suf | --program-su | --program-s) 1045 ac_prev=program_suffix ;; 1046 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1047 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1048 program_suffix=$ac_optarg ;; 1049 1050 -program-transform-name | --program-transform-name \ 1051 | --program-transform-nam | --program-transform-na \ 1052 | --program-transform-n | --program-transform- \ 1053 | --program-transform | --program-transfor \ 1054 | --program-transfo | --program-transf \ 1055 | --program-trans | --program-tran \ 1056 | --progr-tra | --program-tr | --program-t) 1057 ac_prev=program_transform_name ;; 1058 -program-transform-name=* | --program-transform-name=* \ 1059 | --program-transform-nam=* | --program-transform-na=* \ 1060 | --program-transform-n=* | --program-transform-=* \ 1061 | --program-transform=* | --program-transfor=* \ 1062 | --program-transfo=* | --program-transf=* \ 1063 | --program-trans=* | --program-tran=* \ 1064 | --progr-tra=* | --program-tr=* | --program-t=*) 1065 program_transform_name=$ac_optarg ;; 1066 1067 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1068 ac_prev=pdfdir ;; 1069 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1070 pdfdir=$ac_optarg ;; 1071 1072 -psdir | --psdir | --psdi | --psd | --ps) 1073 ac_prev=psdir ;; 1074 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1075 psdir=$ac_optarg ;; 1076 1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1078 | -silent | --silent | --silen | --sile | --sil) 1079 silent=yes ;; 1080 1081 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1082 | --runstate | --runstat | --runsta | --runst | --runs \ 1083 | --run | --ru | --r) 1084 ac_prev=runstatedir ;; 1085 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1086 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1087 | --run=* | --ru=* | --r=*) 1088 runstatedir=$ac_optarg ;; 1089 1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1091 ac_prev=sbindir ;; 1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1093 | --sbi=* | --sb=*) 1094 sbindir=$ac_optarg ;; 1095 1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1098 | --sharedst | --shareds | --shared | --share | --shar \ 1099 | --sha | --sh) 1100 ac_prev=sharedstatedir ;; 1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1104 | --sha=* | --sh=*) 1105 sharedstatedir=$ac_optarg ;; 1106 1107 -site | --site | --sit) 1108 ac_prev=site ;; 1109 -site=* | --site=* | --sit=*) 1110 site=$ac_optarg ;; 1111 1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1113 ac_prev=srcdir ;; 1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1115 srcdir=$ac_optarg ;; 1116 1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1118 | --syscon | --sysco | --sysc | --sys | --sy) 1119 ac_prev=sysconfdir ;; 1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1122 sysconfdir=$ac_optarg ;; 1123 1124 -target | --target | --targe | --targ | --tar | --ta | --t) 1125 ac_prev=target_alias ;; 1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1127 target_alias=$ac_optarg ;; 1128 1129 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1130 verbose=yes ;; 1131 1132 -version | --version | --versio | --versi | --vers | -V) 1133 ac_init_version=: ;; 1134 1135 -with-* | --with-*) 1136 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1137 # Reject names that are not valid shell variable names. 1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1139 as_fn_error $? "invalid package name: '$ac_useropt'" 1140 ac_useropt_orig=$ac_useropt 1141 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1142 case $ac_user_opts in 1143 *" 1144"with_$ac_useropt" 1145"*) ;; 1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1147 ac_unrecognized_sep=', ';; 1148 esac 1149 eval with_$ac_useropt=\$ac_optarg ;; 1150 1151 -without-* | --without-*) 1152 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 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--without-$ac_useropt_orig" 1163 ac_unrecognized_sep=', ';; 1164 esac 1165 eval with_$ac_useropt=no ;; 1166 1167 --x) 1168 # Obsolete; use --with-x. 1169 with_x=yes ;; 1170 1171 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1172 | --x-incl | --x-inc | --x-in | --x-i) 1173 ac_prev=x_includes ;; 1174 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1175 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1176 x_includes=$ac_optarg ;; 1177 1178 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1179 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1180 ac_prev=x_libraries ;; 1181 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1182 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1183 x_libraries=$ac_optarg ;; 1184 1185 -*) as_fn_error $? "unrecognized option: '$ac_option' 1186Try '$0 --help' for more information" 1187 ;; 1188 1189 *=*) 1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1191 # Reject names that are not valid shell variable names. 1192 case $ac_envvar in #( 1193 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1194 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1195 esac 1196 eval $ac_envvar=\$ac_optarg 1197 export $ac_envvar ;; 1198 1199 *) 1200 # FIXME: should be removed in autoconf 3.0. 1201 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1202 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1203 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1204 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1205 ;; 1206 1207 esac 1208done 1209 1210if test -n "$ac_prev"; then 1211 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1212 as_fn_error $? "missing argument to $ac_option" 1213fi 1214 1215if test -n "$ac_unrecognized_opts"; then 1216 case $enable_option_checking in 1217 no) ;; 1218 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1219 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1220 esac 1221fi 1222 1223# Check all directory arguments for consistency. 1224for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1225 datadir sysconfdir sharedstatedir localstatedir includedir \ 1226 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1227 libdir localedir mandir runstatedir 1228do 1229 eval ac_val=\$$ac_var 1230 # Remove trailing slashes. 1231 case $ac_val in 1232 */ ) 1233 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1234 eval $ac_var=\$ac_val;; 1235 esac 1236 # Be sure to have absolute directory names. 1237 case $ac_val in 1238 [\\/$]* | ?:[\\/]* ) continue;; 1239 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1240 esac 1241 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1242done 1243 1244# There might be people who depend on the old broken behavior: '$host' 1245# used to hold the argument of --host etc. 1246# FIXME: To remove some day. 1247build=$build_alias 1248host=$host_alias 1249target=$target_alias 1250 1251# FIXME: To remove some day. 1252if test "x$host_alias" != x; then 1253 if test "x$build_alias" = x; then 1254 cross_compiling=maybe 1255 elif test "x$build_alias" != "x$host_alias"; then 1256 cross_compiling=yes 1257 fi 1258fi 1259 1260ac_tool_prefix= 1261test -n "$host_alias" && ac_tool_prefix=$host_alias- 1262 1263test "$silent" = yes && exec 6>/dev/null 1264 1265 1266ac_pwd=`pwd` && test -n "$ac_pwd" && 1267ac_ls_di=`ls -di .` && 1268ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1269 as_fn_error $? "working directory cannot be determined" 1270test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1271 as_fn_error $? "pwd does not report name of working directory" 1272 1273 1274# Find the source files, if location was not specified. 1275if test -z "$srcdir"; then 1276 ac_srcdir_defaulted=yes 1277 # Try the directory containing this script, then the parent directory. 1278 ac_confdir=`$as_dirname -- "$as_myself" || 1279$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1280 X"$as_myself" : 'X\(//\)[^/]' \| \ 1281 X"$as_myself" : 'X\(//\)$' \| \ 1282 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1283printf "%s\n" X"$as_myself" | 1284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1285 s//\1/ 1286 q 1287 } 1288 /^X\(\/\/\)[^/].*/{ 1289 s//\1/ 1290 q 1291 } 1292 /^X\(\/\/\)$/{ 1293 s//\1/ 1294 q 1295 } 1296 /^X\(\/\).*/{ 1297 s//\1/ 1298 q 1299 } 1300 s/.*/./; q'` 1301 srcdir=$ac_confdir 1302 if test ! -r "$srcdir/$ac_unique_file"; then 1303 srcdir=.. 1304 fi 1305else 1306 ac_srcdir_defaulted=no 1307fi 1308if test ! -r "$srcdir/$ac_unique_file"; then 1309 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1310 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1311fi 1312ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1313ac_abs_confdir=`( 1314 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1315 pwd)` 1316# When building in place, set srcdir=. 1317if test "$ac_abs_confdir" = "$ac_pwd"; then 1318 srcdir=. 1319fi 1320# Remove unnecessary trailing slashes from srcdir. 1321# Double slashes in file names in object file debugging info 1322# mess up M-x gdb in Emacs. 1323case $srcdir in 1324*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1325esac 1326for ac_var in $ac_precious_vars; do 1327 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1328 eval ac_env_${ac_var}_value=\$${ac_var} 1329 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1330 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1331done 1332 1333# 1334# Report the --help message. 1335# 1336if test "$ac_init_help" = "long"; then 1337 # Omit some internal or obsolete options to make the list less imposing. 1338 # This message is too long to be a string in the A/UX 3.1 sh. 1339 cat <<_ACEOF 1340'configure' configures smproxy 1.0.8 to adapt to many kinds of systems. 1341 1342Usage: $0 [OPTION]... [VAR=VALUE]... 1343 1344To assign environment variables (e.g., CC, CFLAGS...), specify them as 1345VAR=VALUE. See below for descriptions of some of the useful variables. 1346 1347Defaults for the options are specified in brackets. 1348 1349Configuration: 1350 -h, --help display this help and exit 1351 --help=short display options specific to this package 1352 --help=recursive display the short help of all the included packages 1353 -V, --version display version information and exit 1354 -q, --quiet, --silent do not print 'checking ...' messages 1355 --cache-file=FILE cache test results in FILE [disabled] 1356 -C, --config-cache alias for '--cache-file=config.cache' 1357 -n, --no-create do not create output files 1358 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1359 1360Installation directories: 1361 --prefix=PREFIX install architecture-independent files in PREFIX 1362 [$ac_default_prefix] 1363 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1364 [PREFIX] 1365 1366By default, 'make install' will install all the files in 1367'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1368an installation prefix other than '$ac_default_prefix' using '--prefix', 1369for instance '--prefix=\$HOME'. 1370 1371For better control, use the options below. 1372 1373Fine tuning of the installation directories: 1374 --bindir=DIR user executables [EPREFIX/bin] 1375 --sbindir=DIR system admin executables [EPREFIX/sbin] 1376 --libexecdir=DIR program executables [EPREFIX/libexec] 1377 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1378 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1379 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1380 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1381 --libdir=DIR object code libraries [EPREFIX/lib] 1382 --includedir=DIR C header files [PREFIX/include] 1383 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1384 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1385 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1386 --infodir=DIR info documentation [DATAROOTDIR/info] 1387 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1388 --mandir=DIR man documentation [DATAROOTDIR/man] 1389 --docdir=DIR documentation root [DATAROOTDIR/doc/smproxy] 1390 --htmldir=DIR html documentation [DOCDIR] 1391 --dvidir=DIR dvi documentation [DOCDIR] 1392 --pdfdir=DIR pdf documentation [DOCDIR] 1393 --psdir=DIR ps documentation [DOCDIR] 1394_ACEOF 1395 1396 cat <<\_ACEOF 1397 1398Program names: 1399 --program-prefix=PREFIX prepend PREFIX to installed program names 1400 --program-suffix=SUFFIX append SUFFIX to installed program names 1401 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1402 1403System types: 1404 --build=BUILD configure for building on BUILD [guessed] 1405 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1406_ACEOF 1407fi 1408 1409if test -n "$ac_init_help"; then 1410 case $ac_init_help in 1411 short | recursive ) echo "Configuration of smproxy 1.0.8:";; 1412 esac 1413 cat <<\_ACEOF 1414 1415Optional Features: 1416 --disable-option-checking ignore unrecognized --enable/--with options 1417 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1418 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1419 --enable-silent-rules less verbose build output (undo: "make V=1") 1420 --disable-silent-rules verbose build output (undo: "make V=0") 1421 --enable-dependency-tracking 1422 do not reject slow dependency extractors 1423 --disable-dependency-tracking 1424 speeds up one-time build 1425 --disable-selective-werror 1426 Turn off selective compiler errors. (default: 1427 enabled) 1428 --enable-strict-compilation 1429 Enable all warnings from compiler and make them 1430 errors (default: disabled) 1431 1432Some influential environment variables: 1433 CC C compiler command 1434 CFLAGS C compiler flags 1435 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1436 nonstandard directory <lib dir> 1437 LIBS libraries to pass to the linker, e.g. -l<library> 1438 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1439 you have headers in a nonstandard directory <include dir> 1440 PKG_CONFIG path to pkg-config utility 1441 PKG_CONFIG_PATH 1442 directories to add to pkg-config's search path 1443 PKG_CONFIG_LIBDIR 1444 path overriding pkg-config's built-in search path 1445 SMPROXY_CFLAGS 1446 C compiler flags for SMPROXY, overriding pkg-config 1447 SMPROXY_LIBS 1448 linker flags for SMPROXY, overriding pkg-config 1449 1450Use these variables to override the choices made by 'configure' or to help 1451it to find libraries and programs with nonstandard names/locations. 1452 1453Report bugs to <https://gitlab.freedesktop.org/xorg/app/smproxy/-/issues>. 1454_ACEOF 1455ac_status=$? 1456fi 1457 1458if test "$ac_init_help" = "recursive"; then 1459 # If there are subdirs, report their specific --help. 1460 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1461 test -d "$ac_dir" || 1462 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1463 continue 1464 ac_builddir=. 1465 1466case "$ac_dir" in 1467.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1468*) 1469 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1470 # A ".." for each directory in $ac_dir_suffix. 1471 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1472 case $ac_top_builddir_sub in 1473 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1474 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1475 esac ;; 1476esac 1477ac_abs_top_builddir=$ac_pwd 1478ac_abs_builddir=$ac_pwd$ac_dir_suffix 1479# for backward compatibility: 1480ac_top_builddir=$ac_top_build_prefix 1481 1482case $srcdir in 1483 .) # We are building in place. 1484 ac_srcdir=. 1485 ac_top_srcdir=$ac_top_builddir_sub 1486 ac_abs_top_srcdir=$ac_pwd ;; 1487 [\\/]* | ?:[\\/]* ) # Absolute name. 1488 ac_srcdir=$srcdir$ac_dir_suffix; 1489 ac_top_srcdir=$srcdir 1490 ac_abs_top_srcdir=$srcdir ;; 1491 *) # Relative name. 1492 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1493 ac_top_srcdir=$ac_top_build_prefix$srcdir 1494 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1495esac 1496ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1497 1498 cd "$ac_dir" || { ac_status=$?; continue; } 1499 # Check for configure.gnu first; this name is used for a wrapper for 1500 # Metaconfig's "Configure" on case-insensitive file systems. 1501 if test -f "$ac_srcdir/configure.gnu"; then 1502 echo && 1503 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1504 elif test -f "$ac_srcdir/configure"; then 1505 echo && 1506 $SHELL "$ac_srcdir/configure" --help=recursive 1507 else 1508 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1509 fi || ac_status=$? 1510 cd "$ac_pwd" || { ac_status=$?; break; } 1511 done 1512fi 1513 1514test -n "$ac_init_help" && exit $ac_status 1515if $ac_init_version; then 1516 cat <<\_ACEOF 1517smproxy configure 1.0.8 1518generated by GNU Autoconf 2.72 1519 1520Copyright (C) 2023 Free Software Foundation, Inc. 1521This configure script is free software; the Free Software Foundation 1522gives unlimited permission to copy, distribute and modify it. 1523_ACEOF 1524 exit 1525fi 1526 1527## ------------------------ ## 1528## Autoconf initialization. ## 1529## ------------------------ ## 1530 1531# ac_fn_c_try_compile LINENO 1532# -------------------------- 1533# Try to compile conftest.$ac_ext, and return whether this succeeded. 1534ac_fn_c_try_compile () 1535{ 1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1537 rm -f conftest.$ac_objext conftest.beam 1538 if { { ac_try="$ac_compile" 1539case "(($ac_try" in 1540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1541 *) ac_try_echo=$ac_try;; 1542esac 1543eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1544printf "%s\n" "$ac_try_echo"; } >&5 1545 (eval "$ac_compile") 2>conftest.err 1546 ac_status=$? 1547 if test -s conftest.err; then 1548 grep -v '^ *+' conftest.err >conftest.er1 1549 cat conftest.er1 >&5 1550 mv -f conftest.er1 conftest.err 1551 fi 1552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1553 test $ac_status = 0; } && { 1554 test -z "$ac_c_werror_flag" || 1555 test ! -s conftest.err 1556 } && test -s conftest.$ac_objext 1557then : 1558 ac_retval=0 1559else case e in #( 1560 e) printf "%s\n" "$as_me: failed program was:" >&5 1561sed 's/^/| /' conftest.$ac_ext >&5 1562 1563 ac_retval=1 ;; 1564esac 1565fi 1566 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1567 as_fn_set_status $ac_retval 1568 1569} # ac_fn_c_try_compile 1570 1571# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1572# ------------------------------------------------------- 1573# Tests whether HEADER exists and can be compiled using the include files in 1574# INCLUDES, setting the cache variable VAR accordingly. 1575ac_fn_c_check_header_compile () 1576{ 1577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1579printf %s "checking for $2... " >&6; } 1580if eval test \${$3+y} 1581then : 1582 printf %s "(cached) " >&6 1583else case e in #( 1584 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1585/* end confdefs.h. */ 1586$4 1587#include <$2> 1588_ACEOF 1589if ac_fn_c_try_compile "$LINENO" 1590then : 1591 eval "$3=yes" 1592else case e in #( 1593 e) eval "$3=no" ;; 1594esac 1595fi 1596rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1597esac 1598fi 1599eval ac_res=\$$3 1600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1601printf "%s\n" "$ac_res" >&6; } 1602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1603 1604} # ac_fn_c_check_header_compile 1605 1606# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1607# ------------------------------------------------------------------ 1608# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1609# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1610ac_fn_check_decl () 1611{ 1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1613 as_decl_name=`echo $2|sed 's/ *(.*//'` 1614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1615printf %s "checking whether $as_decl_name is declared... " >&6; } 1616if eval test \${$3+y} 1617then : 1618 printf %s "(cached) " >&6 1619else case e in #( 1620 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1621 eval ac_save_FLAGS=\$$6 1622 as_fn_append $6 " $5" 1623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1624/* end confdefs.h. */ 1625$4 1626int 1627main (void) 1628{ 1629#ifndef $as_decl_name 1630#ifdef __cplusplus 1631 (void) $as_decl_use; 1632#else 1633 (void) $as_decl_name; 1634#endif 1635#endif 1636 1637 ; 1638 return 0; 1639} 1640_ACEOF 1641if ac_fn_c_try_compile "$LINENO" 1642then : 1643 eval "$3=yes" 1644else case e in #( 1645 e) eval "$3=no" ;; 1646esac 1647fi 1648rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1649 eval $6=\$ac_save_FLAGS 1650 ;; 1651esac 1652fi 1653eval ac_res=\$$3 1654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1655printf "%s\n" "$ac_res" >&6; } 1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1657 1658} # ac_fn_check_decl 1659 1660# ac_fn_c_try_link LINENO 1661# ----------------------- 1662# Try to link conftest.$ac_ext, and return whether this succeeded. 1663ac_fn_c_try_link () 1664{ 1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1666 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1667 if { { ac_try="$ac_link" 1668case "(($ac_try" in 1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1670 *) ac_try_echo=$ac_try;; 1671esac 1672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1673printf "%s\n" "$ac_try_echo"; } >&5 1674 (eval "$ac_link") 2>conftest.err 1675 ac_status=$? 1676 if test -s conftest.err; then 1677 grep -v '^ *+' conftest.err >conftest.er1 1678 cat conftest.er1 >&5 1679 mv -f conftest.er1 conftest.err 1680 fi 1681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1682 test $ac_status = 0; } && { 1683 test -z "$ac_c_werror_flag" || 1684 test ! -s conftest.err 1685 } && test -s conftest$ac_exeext && { 1686 test "$cross_compiling" = yes || 1687 test -x conftest$ac_exeext 1688 } 1689then : 1690 ac_retval=0 1691else case e in #( 1692 e) printf "%s\n" "$as_me: failed program was:" >&5 1693sed 's/^/| /' conftest.$ac_ext >&5 1694 1695 ac_retval=1 ;; 1696esac 1697fi 1698 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1699 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1700 # interfere with the next link command; also delete a directory that is 1701 # left behind by Apple's compiler. We do this before executing the actions. 1702 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1704 as_fn_set_status $ac_retval 1705 1706} # ac_fn_c_try_link 1707 1708# ac_fn_c_check_func LINENO FUNC VAR 1709# ---------------------------------- 1710# Tests whether FUNC exists, setting the cache variable VAR accordingly 1711ac_fn_c_check_func () 1712{ 1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1715printf %s "checking for $2... " >&6; } 1716if eval test \${$3+y} 1717then : 1718 printf %s "(cached) " >&6 1719else case e in #( 1720 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1721/* end confdefs.h. */ 1722/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1723 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1724#define $2 innocuous_$2 1725 1726/* System header to define __stub macros and hopefully few prototypes, 1727 which can conflict with char $2 (void); below. */ 1728 1729#include <limits.h> 1730#undef $2 1731 1732/* Override any GCC internal prototype to avoid an error. 1733 Use char because int might match the return type of a GCC 1734 builtin and then its argument prototype would still apply. */ 1735#ifdef __cplusplus 1736extern "C" 1737#endif 1738char $2 (void); 1739/* The GNU C library defines this for functions which it implements 1740 to always fail with ENOSYS. Some functions are actually named 1741 something starting with __ and the normal name is an alias. */ 1742#if defined __stub_$2 || defined __stub___$2 1743choke me 1744#endif 1745 1746int 1747main (void) 1748{ 1749return $2 (); 1750 ; 1751 return 0; 1752} 1753_ACEOF 1754if ac_fn_c_try_link "$LINENO" 1755then : 1756 eval "$3=yes" 1757else case e in #( 1758 e) eval "$3=no" ;; 1759esac 1760fi 1761rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1762 conftest$ac_exeext conftest.$ac_ext ;; 1763esac 1764fi 1765eval ac_res=\$$3 1766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1767printf "%s\n" "$ac_res" >&6; } 1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1769 1770} # ac_fn_c_check_func 1771ac_configure_args_raw= 1772for ac_arg 1773do 1774 case $ac_arg in 1775 *\'*) 1776 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1777 esac 1778 as_fn_append ac_configure_args_raw " '$ac_arg'" 1779done 1780 1781case $ac_configure_args_raw in 1782 *$as_nl*) 1783 ac_safe_unquote= ;; 1784 *) 1785 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1786 ac_unsafe_a="$ac_unsafe_z#~" 1787 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1788 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1789esac 1790 1791cat >config.log <<_ACEOF 1792This file contains any messages produced by compilers while 1793running configure, to aid debugging if configure makes a mistake. 1794 1795It was created by smproxy $as_me 1.0.8, which was 1796generated by GNU Autoconf 2.72. Invocation command line was 1797 1798 $ $0$ac_configure_args_raw 1799 1800_ACEOF 1801exec 5>>config.log 1802{ 1803cat <<_ASUNAME 1804## --------- ## 1805## Platform. ## 1806## --------- ## 1807 1808hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1809uname -m = `(uname -m) 2>/dev/null || echo unknown` 1810uname -r = `(uname -r) 2>/dev/null || echo unknown` 1811uname -s = `(uname -s) 2>/dev/null || echo unknown` 1812uname -v = `(uname -v) 2>/dev/null || echo unknown` 1813 1814/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1815/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1816 1817/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1818/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1819/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1820/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1821/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1822/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1823/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1824 1825_ASUNAME 1826 1827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1828for as_dir in $PATH 1829do 1830 IFS=$as_save_IFS 1831 case $as_dir in #((( 1832 '') as_dir=./ ;; 1833 */) ;; 1834 *) as_dir=$as_dir/ ;; 1835 esac 1836 printf "%s\n" "PATH: $as_dir" 1837 done 1838IFS=$as_save_IFS 1839 1840} >&5 1841 1842cat >&5 <<_ACEOF 1843 1844 1845## ----------- ## 1846## Core tests. ## 1847## ----------- ## 1848 1849_ACEOF 1850 1851 1852# Keep a trace of the command line. 1853# Strip out --no-create and --no-recursion so they do not pile up. 1854# Strip out --silent because we don't want to record it for future runs. 1855# Also quote any args containing shell meta-characters. 1856# Make two passes to allow for proper duplicate-argument suppression. 1857ac_configure_args= 1858ac_configure_args0= 1859ac_configure_args1= 1860ac_must_keep_next=false 1861for ac_pass in 1 2 1862do 1863 for ac_arg 1864 do 1865 case $ac_arg in 1866 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1867 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1868 | -silent | --silent | --silen | --sile | --sil) 1869 continue ;; 1870 *\'*) 1871 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1872 esac 1873 case $ac_pass in 1874 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1875 2) 1876 as_fn_append ac_configure_args1 " '$ac_arg'" 1877 if test $ac_must_keep_next = true; then 1878 ac_must_keep_next=false # Got value, back to normal. 1879 else 1880 case $ac_arg in 1881 *=* | --config-cache | -C | -disable-* | --disable-* \ 1882 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1883 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1884 | -with-* | --with-* | -without-* | --without-* | --x) 1885 case "$ac_configure_args0 " in 1886 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1887 esac 1888 ;; 1889 -* ) ac_must_keep_next=true ;; 1890 esac 1891 fi 1892 as_fn_append ac_configure_args " '$ac_arg'" 1893 ;; 1894 esac 1895 done 1896done 1897{ ac_configure_args0=; unset ac_configure_args0;} 1898{ ac_configure_args1=; unset ac_configure_args1;} 1899 1900# When interrupted or exit'd, cleanup temporary files, and complete 1901# config.log. We remove comments because anyway the quotes in there 1902# would cause problems or look ugly. 1903# WARNING: Use '\'' to represent an apostrophe within the trap. 1904# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1905trap 'exit_status=$? 1906 # Sanitize IFS. 1907 IFS=" "" $as_nl" 1908 # Save into config.log some information that might help in debugging. 1909 { 1910 echo 1911 1912 printf "%s\n" "## ---------------- ## 1913## Cache variables. ## 1914## ---------------- ##" 1915 echo 1916 # The following way of writing the cache mishandles newlines in values, 1917( 1918 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1919 eval ac_val=\$$ac_var 1920 case $ac_val in #( 1921 *${as_nl}*) 1922 case $ac_var in #( 1923 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1924printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1925 esac 1926 case $ac_var in #( 1927 _ | IFS | as_nl) ;; #( 1928 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1929 *) { eval $ac_var=; unset $ac_var;} ;; 1930 esac ;; 1931 esac 1932 done 1933 (set) 2>&1 | 1934 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1935 *${as_nl}ac_space=\ *) 1936 sed -n \ 1937 "s/'\''/'\''\\\\'\'''\''/g; 1938 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1939 ;; #( 1940 *) 1941 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1942 ;; 1943 esac | 1944 sort 1945) 1946 echo 1947 1948 printf "%s\n" "## ----------------- ## 1949## Output variables. ## 1950## ----------------- ##" 1951 echo 1952 for ac_var in $ac_subst_vars 1953 do 1954 eval ac_val=\$$ac_var 1955 case $ac_val in 1956 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1957 esac 1958 printf "%s\n" "$ac_var='\''$ac_val'\''" 1959 done | sort 1960 echo 1961 1962 if test -n "$ac_subst_files"; then 1963 printf "%s\n" "## ------------------- ## 1964## File substitutions. ## 1965## ------------------- ##" 1966 echo 1967 for ac_var in $ac_subst_files 1968 do 1969 eval ac_val=\$$ac_var 1970 case $ac_val in 1971 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1972 esac 1973 printf "%s\n" "$ac_var='\''$ac_val'\''" 1974 done | sort 1975 echo 1976 fi 1977 1978 if test -s confdefs.h; then 1979 printf "%s\n" "## ----------- ## 1980## confdefs.h. ## 1981## ----------- ##" 1982 echo 1983 cat confdefs.h 1984 echo 1985 fi 1986 test "$ac_signal" != 0 && 1987 printf "%s\n" "$as_me: caught signal $ac_signal" 1988 printf "%s\n" "$as_me: exit $exit_status" 1989 } >&5 1990 rm -f core *.core core.conftest.* && 1991 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1992 exit $exit_status 1993' 0 1994for ac_signal in 1 2 13 15; do 1995 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1996done 1997ac_signal=0 1998 1999# confdefs.h avoids OS command line length limits that DEFS can exceed. 2000rm -f -r conftest* confdefs.h 2001 2002printf "%s\n" "/* confdefs.h */" > confdefs.h 2003 2004# Predefined preprocessor variables. 2005 2006printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2007 2008printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2009 2010printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2011 2012printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2013 2014printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2015 2016printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2017 2018 2019# Let the site file select an alternate cache file if it wants to. 2020# Prefer an explicitly selected file to automatically selected ones. 2021if test -n "$CONFIG_SITE"; then 2022 ac_site_files="$CONFIG_SITE" 2023elif test "x$prefix" != xNONE; then 2024 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2025else 2026 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2027fi 2028 2029for ac_site_file in $ac_site_files 2030do 2031 case $ac_site_file in #( 2032 */*) : 2033 ;; #( 2034 *) : 2035 ac_site_file=./$ac_site_file ;; 2036esac 2037 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2039printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2040 sed 's/^/| /' "$ac_site_file" >&5 2041 . "$ac_site_file" \ 2042 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2043printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2044as_fn_error $? "failed to load site script $ac_site_file 2045See 'config.log' for more details" "$LINENO" 5; } 2046 fi 2047done 2048 2049if test -r "$cache_file"; then 2050 # Some versions of bash will fail to source /dev/null (special files 2051 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2052 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2054printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2055 case $cache_file in 2056 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2057 *) . "./$cache_file";; 2058 esac 2059 fi 2060else 2061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2062printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2063 >$cache_file 2064fi 2065 2066as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2067# Test code for whether the C compiler supports C89 (global declarations) 2068ac_c_conftest_c89_globals=' 2069/* Does the compiler advertise C89 conformance? 2070 Do not test the value of __STDC__, because some compilers set it to 0 2071 while being otherwise adequately conformant. */ 2072#if !defined __STDC__ 2073# error "Compiler does not advertise C89 conformance" 2074#endif 2075 2076#include <stddef.h> 2077#include <stdarg.h> 2078struct stat; 2079/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2080struct buf { int x; }; 2081struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2082static char *e (char **p, int i) 2083{ 2084 return p[i]; 2085} 2086static char *f (char * (*g) (char **, int), char **p, ...) 2087{ 2088 char *s; 2089 va_list v; 2090 va_start (v,p); 2091 s = g (p, va_arg (v,int)); 2092 va_end (v); 2093 return s; 2094} 2095 2096/* C89 style stringification. */ 2097#define noexpand_stringify(a) #a 2098const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2099 2100/* C89 style token pasting. Exercises some of the corner cases that 2101 e.g. old MSVC gets wrong, but not very hard. */ 2102#define noexpand_concat(a,b) a##b 2103#define expand_concat(a,b) noexpand_concat(a,b) 2104extern int vA; 2105extern int vbee; 2106#define aye A 2107#define bee B 2108int *pvA = &expand_concat(v,aye); 2109int *pvbee = &noexpand_concat(v,bee); 2110 2111/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2112 function prototypes and stuff, but not \xHH hex character constants. 2113 These do not provoke an error unfortunately, instead are silently treated 2114 as an "x". The following induces an error, until -std is added to get 2115 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2116 array size at least. It is necessary to write \x00 == 0 to get something 2117 that is true only with -std. */ 2118int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2119 2120/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2121 inside strings and character constants. */ 2122#define FOO(x) '\''x'\'' 2123int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2124 2125int test (int i, double x); 2126struct s1 {int (*f) (int a);}; 2127struct s2 {int (*f) (double a);}; 2128int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2129 int, int);' 2130 2131# Test code for whether the C compiler supports C89 (body of main). 2132ac_c_conftest_c89_main=' 2133ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2134' 2135 2136# Test code for whether the C compiler supports C99 (global declarations) 2137ac_c_conftest_c99_globals=' 2138/* Does the compiler advertise C99 conformance? */ 2139#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2140# error "Compiler does not advertise C99 conformance" 2141#endif 2142 2143// See if C++-style comments work. 2144 2145#include <stdbool.h> 2146extern int puts (const char *); 2147extern int printf (const char *, ...); 2148extern int dprintf (int, const char *, ...); 2149extern void *malloc (size_t); 2150extern void free (void *); 2151 2152// Check varargs macros. These examples are taken from C99 6.10.3.5. 2153// dprintf is used instead of fprintf to avoid needing to declare 2154// FILE and stderr. 2155#define debug(...) dprintf (2, __VA_ARGS__) 2156#define showlist(...) puts (#__VA_ARGS__) 2157#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2158static void 2159test_varargs_macros (void) 2160{ 2161 int x = 1234; 2162 int y = 5678; 2163 debug ("Flag"); 2164 debug ("X = %d\n", x); 2165 showlist (The first, second, and third items.); 2166 report (x>y, "x is %d but y is %d", x, y); 2167} 2168 2169// Check long long types. 2170#define BIG64 18446744073709551615ull 2171#define BIG32 4294967295ul 2172#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2173#if !BIG_OK 2174 #error "your preprocessor is broken" 2175#endif 2176#if BIG_OK 2177#else 2178 #error "your preprocessor is broken" 2179#endif 2180static long long int bignum = -9223372036854775807LL; 2181static unsigned long long int ubignum = BIG64; 2182 2183struct incomplete_array 2184{ 2185 int datasize; 2186 double data[]; 2187}; 2188 2189struct named_init { 2190 int number; 2191 const wchar_t *name; 2192 double average; 2193}; 2194 2195typedef const char *ccp; 2196 2197static inline int 2198test_restrict (ccp restrict text) 2199{ 2200 // Iterate through items via the restricted pointer. 2201 // Also check for declarations in for loops. 2202 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2203 continue; 2204 return 0; 2205} 2206 2207// Check varargs and va_copy. 2208static bool 2209test_varargs (const char *format, ...) 2210{ 2211 va_list args; 2212 va_start (args, format); 2213 va_list args_copy; 2214 va_copy (args_copy, args); 2215 2216 const char *str = ""; 2217 int number = 0; 2218 float fnumber = 0; 2219 2220 while (*format) 2221 { 2222 switch (*format++) 2223 { 2224 case '\''s'\'': // string 2225 str = va_arg (args_copy, const char *); 2226 break; 2227 case '\''d'\'': // int 2228 number = va_arg (args_copy, int); 2229 break; 2230 case '\''f'\'': // float 2231 fnumber = va_arg (args_copy, double); 2232 break; 2233 default: 2234 break; 2235 } 2236 } 2237 va_end (args_copy); 2238 va_end (args); 2239 2240 return *str && number && fnumber; 2241} 2242' 2243 2244# Test code for whether the C compiler supports C99 (body of main). 2245ac_c_conftest_c99_main=' 2246 // Check bool. 2247 _Bool success = false; 2248 success |= (argc != 0); 2249 2250 // Check restrict. 2251 if (test_restrict ("String literal") == 0) 2252 success = true; 2253 char *restrict newvar = "Another string"; 2254 2255 // Check varargs. 2256 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2257 test_varargs_macros (); 2258 2259 // Check flexible array members. 2260 struct incomplete_array *ia = 2261 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2262 ia->datasize = 10; 2263 for (int i = 0; i < ia->datasize; ++i) 2264 ia->data[i] = i * 1.234; 2265 // Work around memory leak warnings. 2266 free (ia); 2267 2268 // Check named initializers. 2269 struct named_init ni = { 2270 .number = 34, 2271 .name = L"Test wide string", 2272 .average = 543.34343, 2273 }; 2274 2275 ni.number = 58; 2276 2277 int dynamic_array[ni.number]; 2278 dynamic_array[0] = argv[0][0]; 2279 dynamic_array[ni.number - 1] = 543; 2280 2281 // work around unused variable warnings 2282 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2283 || dynamic_array[ni.number - 1] != 543); 2284' 2285 2286# Test code for whether the C compiler supports C11 (global declarations) 2287ac_c_conftest_c11_globals=' 2288/* Does the compiler advertise C11 conformance? */ 2289#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2290# error "Compiler does not advertise C11 conformance" 2291#endif 2292 2293// Check _Alignas. 2294char _Alignas (double) aligned_as_double; 2295char _Alignas (0) no_special_alignment; 2296extern char aligned_as_int; 2297char _Alignas (0) _Alignas (int) aligned_as_int; 2298 2299// Check _Alignof. 2300enum 2301{ 2302 int_alignment = _Alignof (int), 2303 int_array_alignment = _Alignof (int[100]), 2304 char_alignment = _Alignof (char) 2305}; 2306_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2307 2308// Check _Noreturn. 2309int _Noreturn does_not_return (void) { for (;;) continue; } 2310 2311// Check _Static_assert. 2312struct test_static_assert 2313{ 2314 int x; 2315 _Static_assert (sizeof (int) <= sizeof (long int), 2316 "_Static_assert does not work in struct"); 2317 long int y; 2318}; 2319 2320// Check UTF-8 literals. 2321#define u8 syntax error! 2322char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2323 2324// Check duplicate typedefs. 2325typedef long *long_ptr; 2326typedef long int *long_ptr; 2327typedef long_ptr long_ptr; 2328 2329// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2330struct anonymous 2331{ 2332 union { 2333 struct { int i; int j; }; 2334 struct { int k; long int l; } w; 2335 }; 2336 int m; 2337} v1; 2338' 2339 2340# Test code for whether the C compiler supports C11 (body of main). 2341ac_c_conftest_c11_main=' 2342 _Static_assert ((offsetof (struct anonymous, i) 2343 == offsetof (struct anonymous, w.k)), 2344 "Anonymous union alignment botch"); 2345 v1.i = 2; 2346 v1.w.k = 5; 2347 ok |= v1.i != 5; 2348' 2349 2350# Test code for whether the C compiler supports C11 (complete). 2351ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2352${ac_c_conftest_c99_globals} 2353${ac_c_conftest_c11_globals} 2354 2355int 2356main (int argc, char **argv) 2357{ 2358 int ok = 0; 2359 ${ac_c_conftest_c89_main} 2360 ${ac_c_conftest_c99_main} 2361 ${ac_c_conftest_c11_main} 2362 return ok; 2363} 2364" 2365 2366# Test code for whether the C compiler supports C99 (complete). 2367ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2368${ac_c_conftest_c99_globals} 2369 2370int 2371main (int argc, char **argv) 2372{ 2373 int ok = 0; 2374 ${ac_c_conftest_c89_main} 2375 ${ac_c_conftest_c99_main} 2376 return ok; 2377} 2378" 2379 2380# Test code for whether the C compiler supports C89 (complete). 2381ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2382 2383int 2384main (int argc, char **argv) 2385{ 2386 int ok = 0; 2387 ${ac_c_conftest_c89_main} 2388 return ok; 2389} 2390" 2391 2392as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2393as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2394as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2395as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2396as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2397as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2398as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2399as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2400as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2401as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2402 2403# Auxiliary files required by this configure script. 2404ac_aux_files="config.guess config.sub compile missing install-sh" 2405 2406# Locations in which to look for auxiliary files. 2407ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2408 2409# Search for a directory containing all of the required auxiliary files, 2410# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2411# If we don't find one directory that contains all the files we need, 2412# we report the set of missing files from the *first* directory in 2413# $ac_aux_dir_candidates and give up. 2414ac_missing_aux_files="" 2415ac_first_candidate=: 2416printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2418as_found=false 2419for as_dir in $ac_aux_dir_candidates 2420do 2421 IFS=$as_save_IFS 2422 case $as_dir in #((( 2423 '') as_dir=./ ;; 2424 */) ;; 2425 *) as_dir=$as_dir/ ;; 2426 esac 2427 as_found=: 2428 2429 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2430 ac_aux_dir_found=yes 2431 ac_install_sh= 2432 for ac_aux in $ac_aux_files 2433 do 2434 # As a special case, if "install-sh" is required, that requirement 2435 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2436 # and $ac_install_sh is set appropriately for whichever one is found. 2437 if test x"$ac_aux" = x"install-sh" 2438 then 2439 if test -f "${as_dir}install-sh"; then 2440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2441 ac_install_sh="${as_dir}install-sh -c" 2442 elif test -f "${as_dir}install.sh"; then 2443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2444 ac_install_sh="${as_dir}install.sh -c" 2445 elif test -f "${as_dir}shtool"; then 2446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2447 ac_install_sh="${as_dir}shtool install -c" 2448 else 2449 ac_aux_dir_found=no 2450 if $ac_first_candidate; then 2451 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2452 else 2453 break 2454 fi 2455 fi 2456 else 2457 if test -f "${as_dir}${ac_aux}"; then 2458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2459 else 2460 ac_aux_dir_found=no 2461 if $ac_first_candidate; then 2462 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2463 else 2464 break 2465 fi 2466 fi 2467 fi 2468 done 2469 if test "$ac_aux_dir_found" = yes; then 2470 ac_aux_dir="$as_dir" 2471 break 2472 fi 2473 ac_first_candidate=false 2474 2475 as_found=false 2476done 2477IFS=$as_save_IFS 2478if $as_found 2479then : 2480 2481else case e in #( 2482 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2483esac 2484fi 2485 2486 2487# These three variables are undocumented and unsupported, 2488# and are intended to be withdrawn in a future Autoconf release. 2489# They can cause serious problems if a builder's source tree is in a directory 2490# whose full name contains unusual characters. 2491if test -f "${ac_aux_dir}config.guess"; then 2492 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2493fi 2494if test -f "${ac_aux_dir}config.sub"; then 2495 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2496fi 2497if test -f "$ac_aux_dir/configure"; then 2498 ac_configure="$SHELL ${ac_aux_dir}configure" 2499fi 2500 2501# Check that the precious variables saved in the cache have kept the same 2502# value. 2503ac_cache_corrupted=false 2504for ac_var in $ac_precious_vars; do 2505 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2506 eval ac_new_set=\$ac_env_${ac_var}_set 2507 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2508 eval ac_new_val=\$ac_env_${ac_var}_value 2509 case $ac_old_set,$ac_new_set in 2510 set,) 2511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2512printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2513 ac_cache_corrupted=: ;; 2514 ,set) 2515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2516printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2517 ac_cache_corrupted=: ;; 2518 ,);; 2519 *) 2520 if test "x$ac_old_val" != "x$ac_new_val"; then 2521 # differences in whitespace do not lead to failure. 2522 ac_old_val_w=`echo x $ac_old_val` 2523 ac_new_val_w=`echo x $ac_new_val` 2524 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2526printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2527 ac_cache_corrupted=: 2528 else 2529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2530printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2531 eval $ac_var=\$ac_old_val 2532 fi 2533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2534printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2536printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2537 fi;; 2538 esac 2539 # Pass precious variables to config.status. 2540 if test "$ac_new_set" = set; then 2541 case $ac_new_val in 2542 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2543 *) ac_arg=$ac_var=$ac_new_val ;; 2544 esac 2545 case " $ac_configure_args " in 2546 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2547 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2548 esac 2549 fi 2550done 2551if $ac_cache_corrupted; then 2552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2553printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2555printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2556 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2557 and start over" "$LINENO" 5 2558fi 2559## -------------------- ## 2560## Main body of script. ## 2561## -------------------- ## 2562 2563ac_ext=c 2564ac_cpp='$CPP $CPPFLAGS' 2565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2567ac_compiler_gnu=$ac_cv_c_compiler_gnu 2568 2569 2570 2571ac_config_headers="$ac_config_headers config.h" 2572 2573 2574# Initialize Automake 2575am__api_version='1.17' 2576 2577 2578 2579 # Find a good install program. We prefer a C program (faster), 2580# so one script is as good as another. But avoid the broken or 2581# incompatible versions: 2582# SysV /etc/install, /usr/sbin/install 2583# SunOS /usr/etc/install 2584# IRIX /sbin/install 2585# AIX /bin/install 2586# AmigaOS /C/install, which installs bootblocks on floppy discs 2587# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2588# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2589# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2590# OS/2's system install, which has a completely different semantic 2591# ./install, which can be erroneously created by make from ./install.sh. 2592# Reject install programs that cannot install multiple files. 2593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2594printf %s "checking for a BSD-compatible install... " >&6; } 2595if test -z "$INSTALL"; then 2596if test ${ac_cv_path_install+y} 2597then : 2598 printf %s "(cached) " >&6 2599else case e in #( 2600 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2601for as_dir in $PATH 2602do 2603 IFS=$as_save_IFS 2604 case $as_dir in #((( 2605 '') as_dir=./ ;; 2606 */) ;; 2607 *) as_dir=$as_dir/ ;; 2608 esac 2609 # Account for fact that we put trailing slashes in our PATH walk. 2610case $as_dir in #(( 2611 ./ | /[cC]/* | \ 2612 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2613 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2614 /usr/ucb/* ) ;; 2615 *) 2616 # OSF1 and SCO ODT 3.0 have their own names for install. 2617 # Don't use installbsd from OSF since it installs stuff as root 2618 # by default. 2619 for ac_prog in ginstall scoinst install; do 2620 for ac_exec_ext in '' $ac_executable_extensions; do 2621 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2622 if test $ac_prog = install && 2623 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2624 # AIX install. It has an incompatible calling convention. 2625 : 2626 elif test $ac_prog = install && 2627 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2628 # program-specific install script used by HP pwplus--don't use. 2629 : 2630 else 2631 rm -rf conftest.one conftest.two conftest.dir 2632 echo one > conftest.one 2633 echo two > conftest.two 2634 mkdir conftest.dir 2635 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2636 test -s conftest.one && test -s conftest.two && 2637 test -s conftest.dir/conftest.one && 2638 test -s conftest.dir/conftest.two 2639 then 2640 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2641 break 3 2642 fi 2643 fi 2644 fi 2645 done 2646 done 2647 ;; 2648esac 2649 2650 done 2651IFS=$as_save_IFS 2652 2653rm -rf conftest.one conftest.two conftest.dir 2654 ;; 2655esac 2656fi 2657 if test ${ac_cv_path_install+y}; then 2658 INSTALL=$ac_cv_path_install 2659 else 2660 # As a last resort, use the slow shell script. Don't cache a 2661 # value for INSTALL within a source directory, because that will 2662 # break other packages using the cache if that directory is 2663 # removed, or if the value is a relative name. 2664 INSTALL=$ac_install_sh 2665 fi 2666fi 2667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2668printf "%s\n" "$INSTALL" >&6; } 2669 2670# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2671# It thinks the first close brace ends the variable substitution. 2672test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2673 2674test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2675 2676test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2677 2678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 2679printf %s "checking whether sleep supports fractional seconds... " >&6; } 2680if test ${am_cv_sleep_fractional_seconds+y} 2681then : 2682 printf %s "(cached) " >&6 2683else case e in #( 2684 e) if sleep 0.001 2>/dev/null 2685then : 2686 am_cv_sleep_fractional_seconds=yes 2687else case e in #( 2688 e) am_cv_sleep_fractional_seconds=no ;; 2689esac 2690fi 2691 ;; 2692esac 2693fi 2694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 2695printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 2696 2697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 2698printf %s "checking filesystem timestamp resolution... " >&6; } 2699if test ${am_cv_filesystem_timestamp_resolution+y} 2700then : 2701 printf %s "(cached) " >&6 2702else case e in #( 2703 e) # Default to the worst case. 2704am_cv_filesystem_timestamp_resolution=2 2705 2706# Only try to go finer than 1 sec if sleep can do it. 2707# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 2708# - 1 sec is not much of a win compared to 2 sec, and 2709# - it takes 2 seconds to perform the test whether 1 sec works. 2710# 2711# Instead, just use the default 2s on platforms that have 1s resolution, 2712# accept the extra 1s delay when using $sleep in the Automake tests, in 2713# exchange for not incurring the 2s delay for running the test for all 2714# packages. 2715# 2716am_try_resolutions= 2717if test "$am_cv_sleep_fractional_seconds" = yes; then 2718 # Even a millisecond often causes a bunch of false positives, 2719 # so just try a hundredth of a second. The time saved between .001 and 2720 # .01 is not terribly consequential. 2721 am_try_resolutions="0.01 0.1 $am_try_resolutions" 2722fi 2723 2724# In order to catch current-generation FAT out, we must *modify* files 2725# that already exist; the *creation* timestamp is finer. Use names 2726# that make ls -t sort them differently when they have equal 2727# timestamps than when they have distinct timestamps, keeping 2728# in mind that ls -t prints the *newest* file first. 2729rm -f conftest.ts? 2730: > conftest.ts1 2731: > conftest.ts2 2732: > conftest.ts3 2733 2734# Make sure ls -t actually works. Do 'set' in a subshell so we don't 2735# clobber the current shell's arguments. (Outer-level square brackets 2736# are removed by m4; they're present so that m4 does not expand 2737# <dollar><star>; be careful, easy to get confused.) 2738if ( 2739 set X `ls -t conftest.ts[12]` && 2740 { 2741 test "$*" != "X conftest.ts1 conftest.ts2" || 2742 test "$*" != "X conftest.ts2 conftest.ts1"; 2743 } 2744); then :; else 2745 # If neither matched, then we have a broken ls. This can happen 2746 # if, for instance, CONFIG_SHELL is bash and it inherits a 2747 # broken ls alias from the environment. This has actually 2748 # happened. Such a system could not be considered "sane". 2749 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 2750 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2751printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2752as_fn_error $? "ls -t produces unexpected output. 2753Make sure there is not a broken ls alias in your environment. 2754See 'config.log' for more details" "$LINENO" 5; } 2755fi 2756 2757for am_try_res in $am_try_resolutions; do 2758 # Any one fine-grained sleep might happen to cross the boundary 2759 # between two values of a coarser actual resolution, but if we do 2760 # two fine-grained sleeps in a row, at least one of them will fall 2761 # entirely within a coarse interval. 2762 echo alpha > conftest.ts1 2763 sleep $am_try_res 2764 echo beta > conftest.ts2 2765 sleep $am_try_res 2766 echo gamma > conftest.ts3 2767 2768 # We assume that 'ls -t' will make use of high-resolution 2769 # timestamps if the operating system supports them at all. 2770 if (set X `ls -t conftest.ts?` && 2771 test "$2" = conftest.ts3 && 2772 test "$3" = conftest.ts2 && 2773 test "$4" = conftest.ts1); then 2774 # 2775 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 2776 # because we don't need to test make. 2777 make_ok=true 2778 if test $am_try_res != 1; then 2779 # But if we've succeeded so far with a subsecond resolution, we 2780 # have one more thing to check: make. It can happen that 2781 # everything else supports the subsecond mtimes, but make doesn't; 2782 # notably on macOS, which ships make 3.81 from 2006 (the last one 2783 # released under GPLv2). https://bugs.gnu.org/68808 2784 # 2785 # We test $MAKE if it is defined in the environment, else "make". 2786 # It might get overridden later, but our hope is that in practice 2787 # it does not matter: it is the system "make" which is (by far) 2788 # the most likely to be broken, whereas if the user overrides it, 2789 # probably they did so with a better, or at least not worse, make. 2790 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 2791 # 2792 # Create a Makefile (real tab character here): 2793 rm -f conftest.mk 2794 echo 'conftest.ts1: conftest.ts2' >conftest.mk 2795 echo ' touch conftest.ts2' >>conftest.mk 2796 # 2797 # Now, running 2798 # touch conftest.ts1; touch conftest.ts2; make 2799 # should touch ts1 because ts2 is newer. This could happen by luck, 2800 # but most often, it will fail if make's support is insufficient. So 2801 # test for several consecutive successes. 2802 # 2803 # (We reuse conftest.ts[12] because we still want to modify existing 2804 # files, not create new ones, per above.) 2805 n=0 2806 make=${MAKE-make} 2807 until test $n -eq 3; do 2808 echo one > conftest.ts1 2809 sleep $am_try_res 2810 echo two > conftest.ts2 # ts2 should now be newer than ts1 2811 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 2812 make_ok=false 2813 break # out of $n loop 2814 fi 2815 n=`expr $n + 1` 2816 done 2817 fi 2818 # 2819 if $make_ok; then 2820 # Everything we know to check worked out, so call this resolution good. 2821 am_cv_filesystem_timestamp_resolution=$am_try_res 2822 break # out of $am_try_res loop 2823 fi 2824 # Otherwise, we'll go on to check the next resolution. 2825 fi 2826done 2827rm -f conftest.ts? 2828# (end _am_filesystem_timestamp_resolution) 2829 ;; 2830esac 2831fi 2832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 2833printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 2834 2835# This check should not be cached, as it may vary across builds of 2836# different projects. 2837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2838printf %s "checking whether build environment is sane... " >&6; } 2839# Reject unsafe characters in $srcdir or the absolute working directory 2840# name. Accept space and tab only in the latter. 2841am_lf=' 2842' 2843case `pwd` in 2844 *[\\\"\#\$\&\'\`$am_lf]*) 2845 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2846esac 2847case $srcdir in 2848 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2849 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2850esac 2851 2852# Do 'set' in a subshell so we don't clobber the current shell's 2853# arguments. Must try -L first in case configure is actually a 2854# symlink; some systems play weird games with the mod time of symlinks 2855# (eg FreeBSD returns the mod time of the symlink's containing 2856# directory). 2857am_build_env_is_sane=no 2858am_has_slept=no 2859rm -f conftest.file 2860for am_try in 1 2; do 2861 echo "timestamp, slept: $am_has_slept" > conftest.file 2862 if ( 2863 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2864 if test "$*" = "X"; then 2865 # -L didn't work. 2866 set X `ls -t "$srcdir/configure" conftest.file` 2867 fi 2868 test "$2" = conftest.file 2869 ); then 2870 am_build_env_is_sane=yes 2871 break 2872 fi 2873 # Just in case. 2874 sleep "$am_cv_filesystem_timestamp_resolution" 2875 am_has_slept=yes 2876done 2877 2878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 2879printf "%s\n" "$am_build_env_is_sane" >&6; } 2880if test "$am_build_env_is_sane" = no; then 2881 as_fn_error $? "newly created file is older than distributed files! 2882Check your system clock" "$LINENO" 5 2883fi 2884 2885# If we didn't sleep, we still need to ensure time stamps of config.status and 2886# generated files are strictly newer. 2887am_sleep_pid= 2888if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 2889then : 2890 2891else case e in #( 2892 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 2893 am_sleep_pid=$! 2894 ;; 2895esac 2896fi 2897 2898rm -f conftest.file 2899 2900test "$program_prefix" != NONE && 2901 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2902# Use a double $ so make ignores it. 2903test "$program_suffix" != NONE && 2904 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2905# Double any \ or $. 2906# By default was 's,x,x', remove it if useless. 2907ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2908program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2909 2910 2911# Expand $ac_aux_dir to an absolute path. 2912am_aux_dir=`cd "$ac_aux_dir" && pwd` 2913 2914 2915 if test x"${MISSING+set}" != xset; then 2916 MISSING="\${SHELL} '$am_aux_dir/missing'" 2917fi 2918# Use eval to expand $SHELL 2919if eval "$MISSING --is-lightweight"; then 2920 am_missing_run="$MISSING " 2921else 2922 am_missing_run= 2923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2924printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2925fi 2926 2927if test x"${install_sh+set}" != xset; then 2928 case $am_aux_dir in 2929 *\ * | *\ *) 2930 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2931 *) 2932 install_sh="\${SHELL} $am_aux_dir/install-sh" 2933 esac 2934fi 2935 2936# Installed binaries are usually stripped using 'strip' when the user 2937# run "make install-strip". However 'strip' might not be the right 2938# tool to use in cross-compilation environments, therefore Automake 2939# will honor the 'STRIP' environment variable to overrule this program. 2940if test "$cross_compiling" != no; then 2941 if test -n "$ac_tool_prefix"; then 2942 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2943set dummy ${ac_tool_prefix}strip; ac_word=$2 2944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2945printf %s "checking for $ac_word... " >&6; } 2946if test ${ac_cv_prog_STRIP+y} 2947then : 2948 printf %s "(cached) " >&6 2949else case e in #( 2950 e) if test -n "$STRIP"; then 2951 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2952else 2953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2954for as_dir in $PATH 2955do 2956 IFS=$as_save_IFS 2957 case $as_dir in #((( 2958 '') as_dir=./ ;; 2959 */) ;; 2960 *) as_dir=$as_dir/ ;; 2961 esac 2962 for ac_exec_ext in '' $ac_executable_extensions; do 2963 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2964 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2965 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2966 break 2 2967 fi 2968done 2969 done 2970IFS=$as_save_IFS 2971 2972fi ;; 2973esac 2974fi 2975STRIP=$ac_cv_prog_STRIP 2976if test -n "$STRIP"; then 2977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2978printf "%s\n" "$STRIP" >&6; } 2979else 2980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2981printf "%s\n" "no" >&6; } 2982fi 2983 2984 2985fi 2986if test -z "$ac_cv_prog_STRIP"; then 2987 ac_ct_STRIP=$STRIP 2988 # Extract the first word of "strip", so it can be a program name with args. 2989set dummy strip; ac_word=$2 2990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2991printf %s "checking for $ac_word... " >&6; } 2992if test ${ac_cv_prog_ac_ct_STRIP+y} 2993then : 2994 printf %s "(cached) " >&6 2995else case e in #( 2996 e) if test -n "$ac_ct_STRIP"; then 2997 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2998else 2999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3000for as_dir in $PATH 3001do 3002 IFS=$as_save_IFS 3003 case $as_dir in #((( 3004 '') as_dir=./ ;; 3005 */) ;; 3006 *) as_dir=$as_dir/ ;; 3007 esac 3008 for ac_exec_ext in '' $ac_executable_extensions; do 3009 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3010 ac_cv_prog_ac_ct_STRIP="strip" 3011 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3012 break 2 3013 fi 3014done 3015 done 3016IFS=$as_save_IFS 3017 3018fi ;; 3019esac 3020fi 3021ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3022if test -n "$ac_ct_STRIP"; then 3023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3024printf "%s\n" "$ac_ct_STRIP" >&6; } 3025else 3026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3027printf "%s\n" "no" >&6; } 3028fi 3029 3030 if test "x$ac_ct_STRIP" = x; then 3031 STRIP=":" 3032 else 3033 case $cross_compiling:$ac_tool_warned in 3034yes:) 3035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3036printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3037ac_tool_warned=yes ;; 3038esac 3039 STRIP=$ac_ct_STRIP 3040 fi 3041else 3042 STRIP="$ac_cv_prog_STRIP" 3043fi 3044 3045fi 3046INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3047 3048 3049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3050printf %s "checking for a race-free mkdir -p... " >&6; } 3051if test -z "$MKDIR_P"; then 3052 if test ${ac_cv_path_mkdir+y} 3053then : 3054 printf %s "(cached) " >&6 3055else case e in #( 3056 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3057for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3058do 3059 IFS=$as_save_IFS 3060 case $as_dir in #((( 3061 '') as_dir=./ ;; 3062 */) ;; 3063 *) as_dir=$as_dir/ ;; 3064 esac 3065 for ac_prog in mkdir gmkdir; do 3066 for ac_exec_ext in '' $ac_executable_extensions; do 3067 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3068 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3069 'mkdir ('*'coreutils) '* | \ 3070 *'BusyBox '* | \ 3071 'mkdir (fileutils) '4.1*) 3072 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3073 break 3;; 3074 esac 3075 done 3076 done 3077 done 3078IFS=$as_save_IFS 3079 ;; 3080esac 3081fi 3082 3083 test -d ./--version && rmdir ./--version 3084 if test ${ac_cv_path_mkdir+y}; then 3085 MKDIR_P="$ac_cv_path_mkdir -p" 3086 else 3087 # As a last resort, use plain mkdir -p, 3088 # in the hope it doesn't have the bugs of ancient mkdir. 3089 MKDIR_P='mkdir -p' 3090 fi 3091fi 3092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3093printf "%s\n" "$MKDIR_P" >&6; } 3094 3095for ac_prog in gawk mawk nawk awk 3096do 3097 # Extract the first word of "$ac_prog", so it can be a program name with args. 3098set dummy $ac_prog; ac_word=$2 3099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3100printf %s "checking for $ac_word... " >&6; } 3101if test ${ac_cv_prog_AWK+y} 3102then : 3103 printf %s "(cached) " >&6 3104else case e in #( 3105 e) if test -n "$AWK"; then 3106 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3107else 3108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3109for as_dir in $PATH 3110do 3111 IFS=$as_save_IFS 3112 case $as_dir in #((( 3113 '') as_dir=./ ;; 3114 */) ;; 3115 *) as_dir=$as_dir/ ;; 3116 esac 3117 for ac_exec_ext in '' $ac_executable_extensions; do 3118 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3119 ac_cv_prog_AWK="$ac_prog" 3120 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3121 break 2 3122 fi 3123done 3124 done 3125IFS=$as_save_IFS 3126 3127fi ;; 3128esac 3129fi 3130AWK=$ac_cv_prog_AWK 3131if test -n "$AWK"; then 3132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3133printf "%s\n" "$AWK" >&6; } 3134else 3135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3136printf "%s\n" "no" >&6; } 3137fi 3138 3139 3140 test -n "$AWK" && break 3141done 3142 3143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3144printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3145set x ${MAKE-make} 3146ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3147if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3148then : 3149 printf %s "(cached) " >&6 3150else case e in #( 3151 e) cat >conftest.make <<\_ACEOF 3152SHELL = /bin/sh 3153all: 3154 @echo '@@@%%%=$(MAKE)=@@@%%%' 3155_ACEOF 3156# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3157case `${MAKE-make} -f conftest.make 2>/dev/null` in 3158 *@@@%%%=?*=@@@%%%*) 3159 eval ac_cv_prog_make_${ac_make}_set=yes;; 3160 *) 3161 eval ac_cv_prog_make_${ac_make}_set=no;; 3162esac 3163rm -f conftest.make ;; 3164esac 3165fi 3166if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3168printf "%s\n" "yes" >&6; } 3169 SET_MAKE= 3170else 3171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3172printf "%s\n" "no" >&6; } 3173 SET_MAKE="MAKE=${MAKE-make}" 3174fi 3175 3176rm -rf .tst 2>/dev/null 3177mkdir .tst 2>/dev/null 3178if test -d .tst; then 3179 am__leading_dot=. 3180else 3181 am__leading_dot=_ 3182fi 3183rmdir .tst 2>/dev/null 3184 3185AM_DEFAULT_VERBOSITY=1 3186# Check whether --enable-silent-rules was given. 3187if test ${enable_silent_rules+y} 3188then : 3189 enableval=$enable_silent_rules; 3190fi 3191 3192am_make=${MAKE-make} 3193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3194printf %s "checking whether $am_make supports nested variables... " >&6; } 3195if test ${am_cv_make_support_nested_variables+y} 3196then : 3197 printf %s "(cached) " >&6 3198else case e in #( 3199 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 3200BAR0=false 3201BAR1=true 3202V=1 3203am__doit: 3204 @$(TRUE) 3205.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3206 am_cv_make_support_nested_variables=yes 3207else 3208 am_cv_make_support_nested_variables=no 3209fi ;; 3210esac 3211fi 3212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3213printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3214AM_BACKSLASH='\' 3215 3216am__rm_f_notfound= 3217if (rm -f && rm -fr && rm -rf) 2>/dev/null 3218then : 3219 3220else case e in #( 3221 e) am__rm_f_notfound='""' ;; 3222esac 3223fi 3224 3225 3226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 3227printf %s "checking xargs -n works... " >&6; } 3228if test ${am_cv_xargs_n_works+y} 3229then : 3230 printf %s "(cached) " >&6 3231else case e in #( 3232 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 32333" 3234then : 3235 am_cv_xargs_n_works=yes 3236else case e in #( 3237 e) am_cv_xargs_n_works=no ;; 3238esac 3239fi ;; 3240esac 3241fi 3242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 3243printf "%s\n" "$am_cv_xargs_n_works" >&6; } 3244if test "$am_cv_xargs_n_works" = yes 3245then : 3246 am__xargs_n='xargs -n' 3247else case e in #( 3248 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 3249 ;; 3250esac 3251fi 3252 3253if test "`cd $srcdir && pwd`" != "`pwd`"; then 3254 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3255 # is not polluted with repeated "-I." 3256 am__isrc=' -I$(srcdir)' 3257 # test to see if srcdir already configured 3258 if test -f $srcdir/config.status; then 3259 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3260 fi 3261fi 3262 3263# test whether we have cygpath 3264if test -z "$CYGPATH_W"; then 3265 if (cygpath --version) >/dev/null 2>/dev/null; then 3266 CYGPATH_W='cygpath -w' 3267 else 3268 CYGPATH_W=echo 3269 fi 3270fi 3271 3272 3273# Define the identity of the package. 3274 PACKAGE='smproxy' 3275 VERSION='1.0.8' 3276 3277 3278printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3279 3280 3281printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3282 3283# Some tools Automake needs. 3284 3285ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3286 3287 3288AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3289 3290 3291AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3292 3293 3294AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3295 3296 3297MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3298 3299# For better backward compatibility. To be removed once Automake 1.9.x 3300# dies out for good. For more background, see: 3301# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3302# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3303mkdir_p='$(MKDIR_P)' 3304 3305# We need awk for the "check" target (and possibly the TAP driver). The 3306# system "awk" is bad on some platforms. 3307# Always define AMTAR for backward compatibility. Yes, it's still used 3308# in the wild :-( We should find a proper way to deprecate it ... 3309AMTAR='$${TAR-tar}' 3310 3311 3312# We'll loop over all known methods to create a tar archive until one works. 3313_am_tools='gnutar pax cpio none' 3314 3315am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3316 3317 3318 3319 3320 3321# Variables for tags utilities; see am/tags.am 3322if test -z "$CTAGS"; then 3323 CTAGS=ctags 3324fi 3325 3326if test -z "$ETAGS"; then 3327 ETAGS=etags 3328fi 3329 3330if test -z "$CSCOPE"; then 3331 CSCOPE=cscope 3332fi 3333 3334 3335 3336 3337 3338 3339 3340 3341# Set common system defines for POSIX extensions, such as _GNU_SOURCE 3342# Must be called before any macros that run the compiler (like 3343# AC_PROG_LIBTOOL or XORG_DEFAULT_OPTIONS) to avoid autoconf errors. 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353DEPDIR="${am__leading_dot}deps" 3354 3355ac_config_commands="$ac_config_commands depfiles" 3356 3357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3358printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3359cat > confinc.mk << 'END' 3360am__doit: 3361 @echo this is the am__doit target >confinc.out 3362.PHONY: am__doit 3363END 3364am__include="#" 3365am__quote= 3366# BSD make does it like this. 3367echo '.include "confinc.mk" # ignored' > confmf.BSD 3368# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3369echo 'include confinc.mk # ignored' > confmf.GNU 3370_am_result=no 3371for s in GNU BSD; do 3372 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3373 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3374 ac_status=$? 3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3376 (exit $ac_status); } 3377 case $?:`cat confinc.out 2>/dev/null` in #( 3378 '0:this is the am__doit target') : 3379 case $s in #( 3380 BSD) : 3381 am__include='.include' am__quote='"' ;; #( 3382 *) : 3383 am__include='include' am__quote='' ;; 3384esac ;; #( 3385 *) : 3386 ;; 3387esac 3388 if test "$am__include" != "#"; then 3389 _am_result="yes ($s style)" 3390 break 3391 fi 3392done 3393rm -f confinc.* confmf.* 3394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3395printf "%s\n" "${_am_result}" >&6; } 3396 3397# Check whether --enable-dependency-tracking was given. 3398if test ${enable_dependency_tracking+y} 3399then : 3400 enableval=$enable_dependency_tracking; 3401fi 3402 3403if test "x$enable_dependency_tracking" != xno; then 3404 am_depcomp="$ac_aux_dir/depcomp" 3405 AMDEPBACKSLASH='\' 3406 am__nodep='_no' 3407fi 3408 if test "x$enable_dependency_tracking" != xno; then 3409 AMDEP_TRUE= 3410 AMDEP_FALSE='#' 3411else 3412 AMDEP_TRUE='#' 3413 AMDEP_FALSE= 3414fi 3415 3416 3417ac_ext=c 3418ac_cpp='$CPP $CPPFLAGS' 3419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3421ac_compiler_gnu=$ac_cv_c_compiler_gnu 3422if test -n "$ac_tool_prefix"; then 3423 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3424set dummy ${ac_tool_prefix}gcc; ac_word=$2 3425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3426printf %s "checking for $ac_word... " >&6; } 3427if test ${ac_cv_prog_CC+y} 3428then : 3429 printf %s "(cached) " >&6 3430else case e in #( 3431 e) if test -n "$CC"; then 3432 ac_cv_prog_CC="$CC" # Let the user override the test. 3433else 3434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3435for as_dir in $PATH 3436do 3437 IFS=$as_save_IFS 3438 case $as_dir in #((( 3439 '') as_dir=./ ;; 3440 */) ;; 3441 *) as_dir=$as_dir/ ;; 3442 esac 3443 for ac_exec_ext in '' $ac_executable_extensions; do 3444 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3445 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3447 break 2 3448 fi 3449done 3450 done 3451IFS=$as_save_IFS 3452 3453fi ;; 3454esac 3455fi 3456CC=$ac_cv_prog_CC 3457if test -n "$CC"; then 3458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3459printf "%s\n" "$CC" >&6; } 3460else 3461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3462printf "%s\n" "no" >&6; } 3463fi 3464 3465 3466fi 3467if test -z "$ac_cv_prog_CC"; then 3468 ac_ct_CC=$CC 3469 # Extract the first word of "gcc", so it can be a program name with args. 3470set dummy gcc; ac_word=$2 3471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3472printf %s "checking for $ac_word... " >&6; } 3473if test ${ac_cv_prog_ac_ct_CC+y} 3474then : 3475 printf %s "(cached) " >&6 3476else case e in #( 3477 e) if test -n "$ac_ct_CC"; then 3478 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3479else 3480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3481for as_dir in $PATH 3482do 3483 IFS=$as_save_IFS 3484 case $as_dir in #((( 3485 '') as_dir=./ ;; 3486 */) ;; 3487 *) as_dir=$as_dir/ ;; 3488 esac 3489 for ac_exec_ext in '' $ac_executable_extensions; do 3490 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3491 ac_cv_prog_ac_ct_CC="gcc" 3492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3493 break 2 3494 fi 3495done 3496 done 3497IFS=$as_save_IFS 3498 3499fi ;; 3500esac 3501fi 3502ac_ct_CC=$ac_cv_prog_ac_ct_CC 3503if test -n "$ac_ct_CC"; then 3504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3505printf "%s\n" "$ac_ct_CC" >&6; } 3506else 3507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3508printf "%s\n" "no" >&6; } 3509fi 3510 3511 if test "x$ac_ct_CC" = x; then 3512 CC="" 3513 else 3514 case $cross_compiling:$ac_tool_warned in 3515yes:) 3516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3517printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3518ac_tool_warned=yes ;; 3519esac 3520 CC=$ac_ct_CC 3521 fi 3522else 3523 CC="$ac_cv_prog_CC" 3524fi 3525 3526if test -z "$CC"; then 3527 if test -n "$ac_tool_prefix"; then 3528 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3529set dummy ${ac_tool_prefix}cc; ac_word=$2 3530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3531printf %s "checking for $ac_word... " >&6; } 3532if test ${ac_cv_prog_CC+y} 3533then : 3534 printf %s "(cached) " >&6 3535else case e in #( 3536 e) if test -n "$CC"; then 3537 ac_cv_prog_CC="$CC" # Let the user override the test. 3538else 3539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3540for as_dir in $PATH 3541do 3542 IFS=$as_save_IFS 3543 case $as_dir in #((( 3544 '') as_dir=./ ;; 3545 */) ;; 3546 *) as_dir=$as_dir/ ;; 3547 esac 3548 for ac_exec_ext in '' $ac_executable_extensions; do 3549 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3550 ac_cv_prog_CC="${ac_tool_prefix}cc" 3551 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3552 break 2 3553 fi 3554done 3555 done 3556IFS=$as_save_IFS 3557 3558fi ;; 3559esac 3560fi 3561CC=$ac_cv_prog_CC 3562if test -n "$CC"; then 3563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3564printf "%s\n" "$CC" >&6; } 3565else 3566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3567printf "%s\n" "no" >&6; } 3568fi 3569 3570 3571 fi 3572fi 3573if test -z "$CC"; then 3574 # Extract the first word of "cc", so it can be a program name with args. 3575set dummy cc; ac_word=$2 3576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3577printf %s "checking for $ac_word... " >&6; } 3578if test ${ac_cv_prog_CC+y} 3579then : 3580 printf %s "(cached) " >&6 3581else case e in #( 3582 e) if test -n "$CC"; then 3583 ac_cv_prog_CC="$CC" # Let the user override the test. 3584else 3585 ac_prog_rejected=no 3586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3587for as_dir in $PATH 3588do 3589 IFS=$as_save_IFS 3590 case $as_dir in #((( 3591 '') as_dir=./ ;; 3592 */) ;; 3593 *) as_dir=$as_dir/ ;; 3594 esac 3595 for ac_exec_ext in '' $ac_executable_extensions; do 3596 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3597 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3598 ac_prog_rejected=yes 3599 continue 3600 fi 3601 ac_cv_prog_CC="cc" 3602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3603 break 2 3604 fi 3605done 3606 done 3607IFS=$as_save_IFS 3608 3609if test $ac_prog_rejected = yes; then 3610 # We found a bogon in the path, so make sure we never use it. 3611 set dummy $ac_cv_prog_CC 3612 shift 3613 if test $# != 0; then 3614 # We chose a different compiler from the bogus one. 3615 # However, it has the same basename, so the bogon will be chosen 3616 # first if we set CC to just the basename; use the full file name. 3617 shift 3618 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3619 fi 3620fi 3621fi ;; 3622esac 3623fi 3624CC=$ac_cv_prog_CC 3625if test -n "$CC"; then 3626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3627printf "%s\n" "$CC" >&6; } 3628else 3629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3630printf "%s\n" "no" >&6; } 3631fi 3632 3633 3634fi 3635if test -z "$CC"; then 3636 if test -n "$ac_tool_prefix"; then 3637 for ac_prog in cl.exe 3638 do 3639 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3640set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3642printf %s "checking for $ac_word... " >&6; } 3643if test ${ac_cv_prog_CC+y} 3644then : 3645 printf %s "(cached) " >&6 3646else case e in #( 3647 e) if test -n "$CC"; then 3648 ac_cv_prog_CC="$CC" # Let the user override the test. 3649else 3650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3651for as_dir in $PATH 3652do 3653 IFS=$as_save_IFS 3654 case $as_dir in #((( 3655 '') as_dir=./ ;; 3656 */) ;; 3657 *) as_dir=$as_dir/ ;; 3658 esac 3659 for ac_exec_ext in '' $ac_executable_extensions; do 3660 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3661 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3662 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3663 break 2 3664 fi 3665done 3666 done 3667IFS=$as_save_IFS 3668 3669fi ;; 3670esac 3671fi 3672CC=$ac_cv_prog_CC 3673if test -n "$CC"; then 3674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3675printf "%s\n" "$CC" >&6; } 3676else 3677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3678printf "%s\n" "no" >&6; } 3679fi 3680 3681 3682 test -n "$CC" && break 3683 done 3684fi 3685if test -z "$CC"; then 3686 ac_ct_CC=$CC 3687 for ac_prog in cl.exe 3688do 3689 # Extract the first word of "$ac_prog", so it can be a program name with args. 3690set dummy $ac_prog; ac_word=$2 3691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3692printf %s "checking for $ac_word... " >&6; } 3693if test ${ac_cv_prog_ac_ct_CC+y} 3694then : 3695 printf %s "(cached) " >&6 3696else case e in #( 3697 e) if test -n "$ac_ct_CC"; then 3698 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3699else 3700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3701for as_dir in $PATH 3702do 3703 IFS=$as_save_IFS 3704 case $as_dir in #((( 3705 '') as_dir=./ ;; 3706 */) ;; 3707 *) as_dir=$as_dir/ ;; 3708 esac 3709 for ac_exec_ext in '' $ac_executable_extensions; do 3710 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3711 ac_cv_prog_ac_ct_CC="$ac_prog" 3712 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3713 break 2 3714 fi 3715done 3716 done 3717IFS=$as_save_IFS 3718 3719fi ;; 3720esac 3721fi 3722ac_ct_CC=$ac_cv_prog_ac_ct_CC 3723if test -n "$ac_ct_CC"; then 3724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3725printf "%s\n" "$ac_ct_CC" >&6; } 3726else 3727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3728printf "%s\n" "no" >&6; } 3729fi 3730 3731 3732 test -n "$ac_ct_CC" && break 3733done 3734 3735 if test "x$ac_ct_CC" = x; then 3736 CC="" 3737 else 3738 case $cross_compiling:$ac_tool_warned in 3739yes:) 3740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3741printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3742ac_tool_warned=yes ;; 3743esac 3744 CC=$ac_ct_CC 3745 fi 3746fi 3747 3748fi 3749if test -z "$CC"; then 3750 if test -n "$ac_tool_prefix"; then 3751 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3752set dummy ${ac_tool_prefix}clang; ac_word=$2 3753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3754printf %s "checking for $ac_word... " >&6; } 3755if test ${ac_cv_prog_CC+y} 3756then : 3757 printf %s "(cached) " >&6 3758else case e in #( 3759 e) if test -n "$CC"; then 3760 ac_cv_prog_CC="$CC" # Let the user override the test. 3761else 3762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3763for as_dir in $PATH 3764do 3765 IFS=$as_save_IFS 3766 case $as_dir in #((( 3767 '') as_dir=./ ;; 3768 */) ;; 3769 *) as_dir=$as_dir/ ;; 3770 esac 3771 for ac_exec_ext in '' $ac_executable_extensions; do 3772 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3773 ac_cv_prog_CC="${ac_tool_prefix}clang" 3774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3775 break 2 3776 fi 3777done 3778 done 3779IFS=$as_save_IFS 3780 3781fi ;; 3782esac 3783fi 3784CC=$ac_cv_prog_CC 3785if test -n "$CC"; then 3786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3787printf "%s\n" "$CC" >&6; } 3788else 3789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3790printf "%s\n" "no" >&6; } 3791fi 3792 3793 3794fi 3795if test -z "$ac_cv_prog_CC"; then 3796 ac_ct_CC=$CC 3797 # Extract the first word of "clang", so it can be a program name with args. 3798set dummy clang; ac_word=$2 3799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3800printf %s "checking for $ac_word... " >&6; } 3801if test ${ac_cv_prog_ac_ct_CC+y} 3802then : 3803 printf %s "(cached) " >&6 3804else case e in #( 3805 e) if test -n "$ac_ct_CC"; then 3806 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3807else 3808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3809for as_dir in $PATH 3810do 3811 IFS=$as_save_IFS 3812 case $as_dir in #((( 3813 '') as_dir=./ ;; 3814 */) ;; 3815 *) as_dir=$as_dir/ ;; 3816 esac 3817 for ac_exec_ext in '' $ac_executable_extensions; do 3818 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3819 ac_cv_prog_ac_ct_CC="clang" 3820 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3821 break 2 3822 fi 3823done 3824 done 3825IFS=$as_save_IFS 3826 3827fi ;; 3828esac 3829fi 3830ac_ct_CC=$ac_cv_prog_ac_ct_CC 3831if test -n "$ac_ct_CC"; then 3832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3833printf "%s\n" "$ac_ct_CC" >&6; } 3834else 3835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3836printf "%s\n" "no" >&6; } 3837fi 3838 3839 if test "x$ac_ct_CC" = x; then 3840 CC="" 3841 else 3842 case $cross_compiling:$ac_tool_warned in 3843yes:) 3844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3845printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3846ac_tool_warned=yes ;; 3847esac 3848 CC=$ac_ct_CC 3849 fi 3850else 3851 CC="$ac_cv_prog_CC" 3852fi 3853 3854fi 3855 3856 3857test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3858printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3859as_fn_error $? "no acceptable C compiler found in \$PATH 3860See 'config.log' for more details" "$LINENO" 5; } 3861 3862# Provide some information about the compiler. 3863printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3864set X $ac_compile 3865ac_compiler=$2 3866for ac_option in --version -v -V -qversion -version; do 3867 { { ac_try="$ac_compiler $ac_option >&5" 3868case "(($ac_try" in 3869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3870 *) ac_try_echo=$ac_try;; 3871esac 3872eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3873printf "%s\n" "$ac_try_echo"; } >&5 3874 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3875 ac_status=$? 3876 if test -s conftest.err; then 3877 sed '10a\ 3878... rest of stderr output deleted ... 3879 10q' conftest.err >conftest.er1 3880 cat conftest.er1 >&5 3881 fi 3882 rm -f conftest.er1 conftest.err 3883 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3884 test $ac_status = 0; } 3885done 3886 3887cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3888/* end confdefs.h. */ 3889 3890int 3891main (void) 3892{ 3893 3894 ; 3895 return 0; 3896} 3897_ACEOF 3898ac_clean_files_save=$ac_clean_files 3899ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3900# Try to create an executable without -o first, disregard a.out. 3901# It will help us diagnose broken compilers, and finding out an intuition 3902# of exeext. 3903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3904printf %s "checking whether the C compiler works... " >&6; } 3905ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3906 3907# The possible output files: 3908ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3909 3910ac_rmfiles= 3911for ac_file in $ac_files 3912do 3913 case $ac_file in 3914 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3915 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3916 esac 3917done 3918rm -f $ac_rmfiles 3919 3920if { { ac_try="$ac_link_default" 3921case "(($ac_try" in 3922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3923 *) ac_try_echo=$ac_try;; 3924esac 3925eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3926printf "%s\n" "$ac_try_echo"; } >&5 3927 (eval "$ac_link_default") 2>&5 3928 ac_status=$? 3929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3930 test $ac_status = 0; } 3931then : 3932 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3933# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3934# in a Makefile. We should not override ac_cv_exeext if it was cached, 3935# so that the user can short-circuit this test for compilers unknown to 3936# Autoconf. 3937for ac_file in $ac_files '' 3938do 3939 test -f "$ac_file" || continue 3940 case $ac_file in 3941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3942 ;; 3943 [ab].out ) 3944 # We found the default executable, but exeext='' is most 3945 # certainly right. 3946 break;; 3947 *.* ) 3948 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3949 then :; else 3950 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3951 fi 3952 # We set ac_cv_exeext here because the later test for it is not 3953 # safe: cross compilers may not add the suffix if given an '-o' 3954 # argument, so we may need to know it at that point already. 3955 # Even if this section looks crufty: it has the advantage of 3956 # actually working. 3957 break;; 3958 * ) 3959 break;; 3960 esac 3961done 3962test "$ac_cv_exeext" = no && ac_cv_exeext= 3963 3964else case e in #( 3965 e) ac_file='' ;; 3966esac 3967fi 3968if test -z "$ac_file" 3969then : 3970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3971printf "%s\n" "no" >&6; } 3972printf "%s\n" "$as_me: failed program was:" >&5 3973sed 's/^/| /' conftest.$ac_ext >&5 3974 3975{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3976printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3977as_fn_error 77 "C compiler cannot create executables 3978See 'config.log' for more details" "$LINENO" 5; } 3979else case e in #( 3980 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3981printf "%s\n" "yes" >&6; } ;; 3982esac 3983fi 3984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3985printf %s "checking for C compiler default output file name... " >&6; } 3986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3987printf "%s\n" "$ac_file" >&6; } 3988ac_exeext=$ac_cv_exeext 3989 3990rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3991ac_clean_files=$ac_clean_files_save 3992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3993printf %s "checking for suffix of executables... " >&6; } 3994if { { ac_try="$ac_link" 3995case "(($ac_try" in 3996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3997 *) ac_try_echo=$ac_try;; 3998esac 3999eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4000printf "%s\n" "$ac_try_echo"; } >&5 4001 (eval "$ac_link") 2>&5 4002 ac_status=$? 4003 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4004 test $ac_status = 0; } 4005then : 4006 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 4007# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 4008# work properly (i.e., refer to 'conftest.exe'), while it won't with 4009# 'rm'. 4010for ac_file in conftest.exe conftest conftest.*; do 4011 test -f "$ac_file" || continue 4012 case $ac_file in 4013 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4014 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4015 break;; 4016 * ) break;; 4017 esac 4018done 4019else case e in #( 4020 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4021printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4022as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4023See 'config.log' for more details" "$LINENO" 5; } ;; 4024esac 4025fi 4026rm -f conftest conftest$ac_cv_exeext 4027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4028printf "%s\n" "$ac_cv_exeext" >&6; } 4029 4030rm -f conftest.$ac_ext 4031EXEEXT=$ac_cv_exeext 4032ac_exeext=$EXEEXT 4033cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4034/* end confdefs.h. */ 4035#include <stdio.h> 4036int 4037main (void) 4038{ 4039FILE *f = fopen ("conftest.out", "w"); 4040 if (!f) 4041 return 1; 4042 return ferror (f) || fclose (f) != 0; 4043 4044 ; 4045 return 0; 4046} 4047_ACEOF 4048ac_clean_files="$ac_clean_files conftest.out" 4049# Check that the compiler produces executables we can run. If not, either 4050# the compiler is broken, or we cross compile. 4051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4052printf %s "checking whether we are cross compiling... " >&6; } 4053if test "$cross_compiling" != yes; then 4054 { { ac_try="$ac_link" 4055case "(($ac_try" in 4056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4057 *) ac_try_echo=$ac_try;; 4058esac 4059eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4060printf "%s\n" "$ac_try_echo"; } >&5 4061 (eval "$ac_link") 2>&5 4062 ac_status=$? 4063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4064 test $ac_status = 0; } 4065 if { ac_try='./conftest$ac_cv_exeext' 4066 { { case "(($ac_try" in 4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4068 *) ac_try_echo=$ac_try;; 4069esac 4070eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4071printf "%s\n" "$ac_try_echo"; } >&5 4072 (eval "$ac_try") 2>&5 4073 ac_status=$? 4074 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4075 test $ac_status = 0; }; }; then 4076 cross_compiling=no 4077 else 4078 if test "$cross_compiling" = maybe; then 4079 cross_compiling=yes 4080 else 4081 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4082printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4083as_fn_error 77 "cannot run C compiled programs. 4084If you meant to cross compile, use '--host'. 4085See 'config.log' for more details" "$LINENO" 5; } 4086 fi 4087 fi 4088fi 4089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4090printf "%s\n" "$cross_compiling" >&6; } 4091 4092rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 4093 conftest.o conftest.obj conftest.out 4094ac_clean_files=$ac_clean_files_save 4095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4096printf %s "checking for suffix of object files... " >&6; } 4097if test ${ac_cv_objext+y} 4098then : 4099 printf %s "(cached) " >&6 4100else case e in #( 4101 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4102/* end confdefs.h. */ 4103 4104int 4105main (void) 4106{ 4107 4108 ; 4109 return 0; 4110} 4111_ACEOF 4112rm -f conftest.o conftest.obj 4113if { { ac_try="$ac_compile" 4114case "(($ac_try" in 4115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4116 *) ac_try_echo=$ac_try;; 4117esac 4118eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4119printf "%s\n" "$ac_try_echo"; } >&5 4120 (eval "$ac_compile") 2>&5 4121 ac_status=$? 4122 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4123 test $ac_status = 0; } 4124then : 4125 for ac_file in conftest.o conftest.obj conftest.*; do 4126 test -f "$ac_file" || continue; 4127 case $ac_file in 4128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4129 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4130 break;; 4131 esac 4132done 4133else case e in #( 4134 e) printf "%s\n" "$as_me: failed program was:" >&5 4135sed 's/^/| /' conftest.$ac_ext >&5 4136 4137{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4138printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4139as_fn_error $? "cannot compute suffix of object files: cannot compile 4140See 'config.log' for more details" "$LINENO" 5; } ;; 4141esac 4142fi 4143rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4144esac 4145fi 4146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4147printf "%s\n" "$ac_cv_objext" >&6; } 4148OBJEXT=$ac_cv_objext 4149ac_objext=$OBJEXT 4150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4151printf %s "checking whether the compiler supports GNU C... " >&6; } 4152if test ${ac_cv_c_compiler_gnu+y} 4153then : 4154 printf %s "(cached) " >&6 4155else case e in #( 4156 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4157/* end confdefs.h. */ 4158 4159int 4160main (void) 4161{ 4162#ifndef __GNUC__ 4163 choke me 4164#endif 4165 4166 ; 4167 return 0; 4168} 4169_ACEOF 4170if ac_fn_c_try_compile "$LINENO" 4171then : 4172 ac_compiler_gnu=yes 4173else case e in #( 4174 e) ac_compiler_gnu=no ;; 4175esac 4176fi 4177rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4178ac_cv_c_compiler_gnu=$ac_compiler_gnu 4179 ;; 4180esac 4181fi 4182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4183printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4184ac_compiler_gnu=$ac_cv_c_compiler_gnu 4185 4186if test $ac_compiler_gnu = yes; then 4187 GCC=yes 4188else 4189 GCC= 4190fi 4191ac_test_CFLAGS=${CFLAGS+y} 4192ac_save_CFLAGS=$CFLAGS 4193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4194printf %s "checking whether $CC accepts -g... " >&6; } 4195if test ${ac_cv_prog_cc_g+y} 4196then : 4197 printf %s "(cached) " >&6 4198else case e in #( 4199 e) ac_save_c_werror_flag=$ac_c_werror_flag 4200 ac_c_werror_flag=yes 4201 ac_cv_prog_cc_g=no 4202 CFLAGS="-g" 4203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4204/* end confdefs.h. */ 4205 4206int 4207main (void) 4208{ 4209 4210 ; 4211 return 0; 4212} 4213_ACEOF 4214if ac_fn_c_try_compile "$LINENO" 4215then : 4216 ac_cv_prog_cc_g=yes 4217else case e in #( 4218 e) CFLAGS="" 4219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4220/* end confdefs.h. */ 4221 4222int 4223main (void) 4224{ 4225 4226 ; 4227 return 0; 4228} 4229_ACEOF 4230if ac_fn_c_try_compile "$LINENO" 4231then : 4232 4233else case e in #( 4234 e) ac_c_werror_flag=$ac_save_c_werror_flag 4235 CFLAGS="-g" 4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4237/* end confdefs.h. */ 4238 4239int 4240main (void) 4241{ 4242 4243 ; 4244 return 0; 4245} 4246_ACEOF 4247if ac_fn_c_try_compile "$LINENO" 4248then : 4249 ac_cv_prog_cc_g=yes 4250fi 4251rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4252esac 4253fi 4254rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4255esac 4256fi 4257rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4258 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4259esac 4260fi 4261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4262printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4263if test $ac_test_CFLAGS; then 4264 CFLAGS=$ac_save_CFLAGS 4265elif test $ac_cv_prog_cc_g = yes; then 4266 if test "$GCC" = yes; then 4267 CFLAGS="-g -O2" 4268 else 4269 CFLAGS="-g" 4270 fi 4271else 4272 if test "$GCC" = yes; then 4273 CFLAGS="-O2" 4274 else 4275 CFLAGS= 4276 fi 4277fi 4278ac_prog_cc_stdc=no 4279if test x$ac_prog_cc_stdc = xno 4280then : 4281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4282printf %s "checking for $CC option to enable C11 features... " >&6; } 4283if test ${ac_cv_prog_cc_c11+y} 4284then : 4285 printf %s "(cached) " >&6 4286else case e in #( 4287 e) ac_cv_prog_cc_c11=no 4288ac_save_CC=$CC 4289cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4290/* end confdefs.h. */ 4291$ac_c_conftest_c11_program 4292_ACEOF 4293for ac_arg in '' -std=gnu11 4294do 4295 CC="$ac_save_CC $ac_arg" 4296 if ac_fn_c_try_compile "$LINENO" 4297then : 4298 ac_cv_prog_cc_c11=$ac_arg 4299fi 4300rm -f core conftest.err conftest.$ac_objext conftest.beam 4301 test "x$ac_cv_prog_cc_c11" != "xno" && break 4302done 4303rm -f conftest.$ac_ext 4304CC=$ac_save_CC ;; 4305esac 4306fi 4307 4308if test "x$ac_cv_prog_cc_c11" = xno 4309then : 4310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4311printf "%s\n" "unsupported" >&6; } 4312else case e in #( 4313 e) if test "x$ac_cv_prog_cc_c11" = x 4314then : 4315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4316printf "%s\n" "none needed" >&6; } 4317else case e in #( 4318 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4319printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4320 CC="$CC $ac_cv_prog_cc_c11" ;; 4321esac 4322fi 4323 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4324 ac_prog_cc_stdc=c11 ;; 4325esac 4326fi 4327fi 4328if test x$ac_prog_cc_stdc = xno 4329then : 4330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4331printf %s "checking for $CC option to enable C99 features... " >&6; } 4332if test ${ac_cv_prog_cc_c99+y} 4333then : 4334 printf %s "(cached) " >&6 4335else case e in #( 4336 e) ac_cv_prog_cc_c99=no 4337ac_save_CC=$CC 4338cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4339/* end confdefs.h. */ 4340$ac_c_conftest_c99_program 4341_ACEOF 4342for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4343do 4344 CC="$ac_save_CC $ac_arg" 4345 if ac_fn_c_try_compile "$LINENO" 4346then : 4347 ac_cv_prog_cc_c99=$ac_arg 4348fi 4349rm -f core conftest.err conftest.$ac_objext conftest.beam 4350 test "x$ac_cv_prog_cc_c99" != "xno" && break 4351done 4352rm -f conftest.$ac_ext 4353CC=$ac_save_CC ;; 4354esac 4355fi 4356 4357if test "x$ac_cv_prog_cc_c99" = xno 4358then : 4359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4360printf "%s\n" "unsupported" >&6; } 4361else case e in #( 4362 e) if test "x$ac_cv_prog_cc_c99" = x 4363then : 4364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4365printf "%s\n" "none needed" >&6; } 4366else case e in #( 4367 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4368printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4369 CC="$CC $ac_cv_prog_cc_c99" ;; 4370esac 4371fi 4372 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4373 ac_prog_cc_stdc=c99 ;; 4374esac 4375fi 4376fi 4377if test x$ac_prog_cc_stdc = xno 4378then : 4379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4380printf %s "checking for $CC option to enable C89 features... " >&6; } 4381if test ${ac_cv_prog_cc_c89+y} 4382then : 4383 printf %s "(cached) " >&6 4384else case e in #( 4385 e) ac_cv_prog_cc_c89=no 4386ac_save_CC=$CC 4387cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4388/* end confdefs.h. */ 4389$ac_c_conftest_c89_program 4390_ACEOF 4391for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4392do 4393 CC="$ac_save_CC $ac_arg" 4394 if ac_fn_c_try_compile "$LINENO" 4395then : 4396 ac_cv_prog_cc_c89=$ac_arg 4397fi 4398rm -f core conftest.err conftest.$ac_objext conftest.beam 4399 test "x$ac_cv_prog_cc_c89" != "xno" && break 4400done 4401rm -f conftest.$ac_ext 4402CC=$ac_save_CC ;; 4403esac 4404fi 4405 4406if test "x$ac_cv_prog_cc_c89" = xno 4407then : 4408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4409printf "%s\n" "unsupported" >&6; } 4410else case e in #( 4411 e) if test "x$ac_cv_prog_cc_c89" = x 4412then : 4413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4414printf "%s\n" "none needed" >&6; } 4415else case e in #( 4416 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4417printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4418 CC="$CC $ac_cv_prog_cc_c89" ;; 4419esac 4420fi 4421 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4422 ac_prog_cc_stdc=c89 ;; 4423esac 4424fi 4425fi 4426 4427ac_ext=c 4428ac_cpp='$CPP $CPPFLAGS' 4429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4431ac_compiler_gnu=$ac_cv_c_compiler_gnu 4432 4433 4434 ac_ext=c 4435ac_cpp='$CPP $CPPFLAGS' 4436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4438ac_compiler_gnu=$ac_cv_c_compiler_gnu 4439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4440printf %s "checking whether $CC understands -c and -o together... " >&6; } 4441if test ${am_cv_prog_cc_c_o+y} 4442then : 4443 printf %s "(cached) " >&6 4444else case e in #( 4445 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4446/* end confdefs.h. */ 4447 4448int 4449main (void) 4450{ 4451 4452 ; 4453 return 0; 4454} 4455_ACEOF 4456 # Make sure it works both with $CC and with simple cc. 4457 # Following AC_PROG_CC_C_O, we do the test twice because some 4458 # compilers refuse to overwrite an existing .o file with -o, 4459 # though they will create one. 4460 am_cv_prog_cc_c_o=yes 4461 for am_i in 1 2; do 4462 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4463 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4464 ac_status=$? 4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4466 (exit $ac_status); } \ 4467 && test -f conftest2.$ac_objext; then 4468 : OK 4469 else 4470 am_cv_prog_cc_c_o=no 4471 break 4472 fi 4473 done 4474 rm -f core conftest* 4475 unset am_i ;; 4476esac 4477fi 4478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4479printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4480if test "$am_cv_prog_cc_c_o" != yes; then 4481 # Losing compiler, so override with the script. 4482 # FIXME: It is wrong to rewrite CC. 4483 # But if we don't then we get into trouble of one sort or another. 4484 # A longer-term fix would be to have automake use am__CC in this case, 4485 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4486 CC="$am_aux_dir/compile $CC" 4487fi 4488ac_ext=c 4489ac_cpp='$CPP $CPPFLAGS' 4490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4492ac_compiler_gnu=$ac_cv_c_compiler_gnu 4493 4494 4495depcc="$CC" am_compiler_list= 4496 4497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4498printf %s "checking dependency style of $depcc... " >&6; } 4499if test ${am_cv_CC_dependencies_compiler_type+y} 4500then : 4501 printf %s "(cached) " >&6 4502else case e in #( 4503 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4504 # We make a subdir and do the tests there. Otherwise we can end up 4505 # making bogus files that we don't know about and never remove. For 4506 # instance it was reported that on HP-UX the gcc test will end up 4507 # making a dummy file named 'D' -- because '-MD' means "put the output 4508 # in D". 4509 rm -rf conftest.dir 4510 mkdir conftest.dir 4511 # Copy depcomp to subdir because otherwise we won't find it if we're 4512 # using a relative directory. 4513 cp "$am_depcomp" conftest.dir 4514 cd conftest.dir 4515 # We will build objects and dependencies in a subdirectory because 4516 # it helps to detect inapplicable dependency modes. For instance 4517 # both Tru64's cc and ICC support -MD to output dependencies as a 4518 # side effect of compilation, but ICC will put the dependencies in 4519 # the current directory while Tru64 will put them in the object 4520 # directory. 4521 mkdir sub 4522 4523 am_cv_CC_dependencies_compiler_type=none 4524 if test "$am_compiler_list" = ""; then 4525 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4526 fi 4527 am__universal=false 4528 case " $depcc " in #( 4529 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4530 esac 4531 4532 for depmode in $am_compiler_list; do 4533 # Setup a source with many dependencies, because some compilers 4534 # like to wrap large dependency lists on column 80 (with \), and 4535 # we should not choose a depcomp mode which is confused by this. 4536 # 4537 # We need to recreate these files for each test, as the compiler may 4538 # overwrite some of them when testing with obscure command lines. 4539 # This happens at least with the AIX C compiler. 4540 : > sub/conftest.c 4541 for i in 1 2 3 4 5 6; do 4542 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4543 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4544 # Solaris 10 /bin/sh. 4545 echo '/* dummy */' > sub/conftst$i.h 4546 done 4547 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4548 4549 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4550 # mode. It turns out that the SunPro C++ compiler does not properly 4551 # handle '-M -o', and we need to detect this. Also, some Intel 4552 # versions had trouble with output in subdirs. 4553 am__obj=sub/conftest.${OBJEXT-o} 4554 am__minus_obj="-o $am__obj" 4555 case $depmode in 4556 gcc) 4557 # This depmode causes a compiler race in universal mode. 4558 test "$am__universal" = false || continue 4559 ;; 4560 nosideeffect) 4561 # After this tag, mechanisms are not by side-effect, so they'll 4562 # only be used when explicitly requested. 4563 if test "x$enable_dependency_tracking" = xyes; then 4564 continue 4565 else 4566 break 4567 fi 4568 ;; 4569 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4570 # This compiler won't grok '-c -o', but also, the minuso test has 4571 # not run yet. These depmodes are late enough in the game, and 4572 # so weak that their functioning should not be impacted. 4573 am__obj=conftest.${OBJEXT-o} 4574 am__minus_obj= 4575 ;; 4576 none) break ;; 4577 esac 4578 if depmode=$depmode \ 4579 source=sub/conftest.c object=$am__obj \ 4580 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4581 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4582 >/dev/null 2>conftest.err && 4583 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4584 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4585 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4586 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4587 # icc doesn't choke on unknown options, it will just issue warnings 4588 # or remarks (even with -Werror). So we grep stderr for any message 4589 # that says an option was ignored or not supported. 4590 # When given -MP, icc 7.0 and 7.1 complain thus: 4591 # icc: Command line warning: ignoring option '-M'; no argument required 4592 # The diagnosis changed in icc 8.0: 4593 # icc: Command line remark: option '-MP' not supported 4594 if (grep 'ignoring option' conftest.err || 4595 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4596 am_cv_CC_dependencies_compiler_type=$depmode 4597 break 4598 fi 4599 fi 4600 done 4601 4602 cd .. 4603 rm -rf conftest.dir 4604else 4605 am_cv_CC_dependencies_compiler_type=none 4606fi 4607 ;; 4608esac 4609fi 4610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4611printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4612CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4613 4614 if 4615 test "x$enable_dependency_tracking" != xno \ 4616 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4617 am__fastdepCC_TRUE= 4618 am__fastdepCC_FALSE='#' 4619else 4620 am__fastdepCC_TRUE='#' 4621 am__fastdepCC_FALSE= 4622fi 4623 4624 4625 4626ac_header= ac_cache= 4627for ac_item in $ac_header_c_list 4628do 4629 if test $ac_cache; then 4630 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4631 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4632 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4633 fi 4634 ac_header= ac_cache= 4635 elif test $ac_header; then 4636 ac_cache=$ac_item 4637 else 4638 ac_header=$ac_item 4639 fi 4640done 4641 4642 4643 4644 4645 4646 4647 4648 4649if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4650then : 4651 4652printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4653 4654fi 4655 4656 4657 4658 4659 4660 4661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4662printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4663if test ${ac_cv_safe_to_define___extensions__+y} 4664then : 4665 printf %s "(cached) " >&6 4666else case e in #( 4667 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4668/* end confdefs.h. */ 4669 4670# define __EXTENSIONS__ 1 4671 $ac_includes_default 4672int 4673main (void) 4674{ 4675 4676 ; 4677 return 0; 4678} 4679_ACEOF 4680if ac_fn_c_try_compile "$LINENO" 4681then : 4682 ac_cv_safe_to_define___extensions__=yes 4683else case e in #( 4684 e) ac_cv_safe_to_define___extensions__=no ;; 4685esac 4686fi 4687rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4688esac 4689fi 4690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4691printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 4692 4693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 4694printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 4695if test ${ac_cv_should_define__xopen_source+y} 4696then : 4697 printf %s "(cached) " >&6 4698else case e in #( 4699 e) ac_cv_should_define__xopen_source=no 4700 if test $ac_cv_header_wchar_h = yes 4701then : 4702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4703/* end confdefs.h. */ 4704 4705 #include <wchar.h> 4706 mbstate_t x; 4707int 4708main (void) 4709{ 4710 4711 ; 4712 return 0; 4713} 4714_ACEOF 4715if ac_fn_c_try_compile "$LINENO" 4716then : 4717 4718else case e in #( 4719 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4720/* end confdefs.h. */ 4721 4722 #define _XOPEN_SOURCE 500 4723 #include <wchar.h> 4724 mbstate_t x; 4725int 4726main (void) 4727{ 4728 4729 ; 4730 return 0; 4731} 4732_ACEOF 4733if ac_fn_c_try_compile "$LINENO" 4734then : 4735 ac_cv_should_define__xopen_source=yes 4736fi 4737rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4738esac 4739fi 4740rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4741fi ;; 4742esac 4743fi 4744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 4745printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 4746 4747 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 4748 4749 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 4750 4751 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 4752 4753 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 4754 4755 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 4756 4757 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 4758 4759 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4760 4761 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 4762 4763 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 4764 4765 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 4766 4767 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h 4768 4769 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 4770 4771 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 4772 4773 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 4774 4775 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 4776 4777 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 4778 4779 if test $ac_cv_header_minix_config_h = yes 4780then : 4781 MINIX=yes 4782 printf "%s\n" "#define _MINIX 1" >>confdefs.h 4783 4784 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 4785 4786 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 4787 4788else case e in #( 4789 e) MINIX= ;; 4790esac 4791fi 4792 if test $ac_cv_safe_to_define___extensions__ = yes 4793then : 4794 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 4795 4796fi 4797 if test $ac_cv_should_define__xopen_source = yes 4798then : 4799 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 4800 4801fi 4802 4803 4804# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4817printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4818if test ${ac_cv_c_undeclared_builtin_options+y} 4819then : 4820 printf %s "(cached) " >&6 4821else case e in #( 4822 e) ac_save_CFLAGS=$CFLAGS 4823 ac_cv_c_undeclared_builtin_options='cannot detect' 4824 for ac_arg in '' -fno-builtin; do 4825 CFLAGS="$ac_save_CFLAGS $ac_arg" 4826 # This test program should *not* compile successfully. 4827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4828/* end confdefs.h. */ 4829 4830int 4831main (void) 4832{ 4833(void) strchr; 4834 ; 4835 return 0; 4836} 4837_ACEOF 4838if ac_fn_c_try_compile "$LINENO" 4839then : 4840 4841else case e in #( 4842 e) # This test program should compile successfully. 4843 # No library function is consistently available on 4844 # freestanding implementations, so test against a dummy 4845 # declaration. Include always-available headers on the 4846 # off chance that they somehow elicit warnings. 4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4848/* end confdefs.h. */ 4849#include <float.h> 4850#include <limits.h> 4851#include <stdarg.h> 4852#include <stddef.h> 4853extern void ac_decl (int, char *); 4854 4855int 4856main (void) 4857{ 4858(void) ac_decl (0, (char *) 0); 4859 (void) ac_decl; 4860 4861 ; 4862 return 0; 4863} 4864_ACEOF 4865if ac_fn_c_try_compile "$LINENO" 4866then : 4867 if test x"$ac_arg" = x 4868then : 4869 ac_cv_c_undeclared_builtin_options='none needed' 4870else case e in #( 4871 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 4872esac 4873fi 4874 break 4875fi 4876rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4877esac 4878fi 4879rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4880 done 4881 CFLAGS=$ac_save_CFLAGS 4882 ;; 4883esac 4884fi 4885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4886printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4887 case $ac_cv_c_undeclared_builtin_options in #( 4888 'cannot detect') : 4889 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4890printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4891as_fn_error $? "cannot make $CC report undeclared builtins 4892See 'config.log' for more details" "$LINENO" 5; } ;; #( 4893 'none needed') : 4894 ac_c_undeclared_builtin_options='' ;; #( 4895 *) : 4896 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4897esac 4898 4899 4900 4901 4902 4903ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4904if test "x$ac_cv_have_decl___clang__" = xyes 4905then : 4906 CLANGCC="yes" 4907else case e in #( 4908 e) CLANGCC="no" ;; 4909esac 4910fi 4911ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4912if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4913then : 4914 INTELCC="yes" 4915else case e in #( 4916 e) INTELCC="no" ;; 4917esac 4918fi 4919ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4920if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4921then : 4922 SUNCC="yes" 4923else case e in #( 4924 e) SUNCC="no" ;; 4925esac 4926fi 4927 4928 4929 4930 4931 4932 4933 4934 4935if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4936 if test -n "$ac_tool_prefix"; then 4937 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4938set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4940printf %s "checking for $ac_word... " >&6; } 4941if test ${ac_cv_path_PKG_CONFIG+y} 4942then : 4943 printf %s "(cached) " >&6 4944else case e in #( 4945 e) case $PKG_CONFIG in 4946 [\\/]* | ?:[\\/]*) 4947 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4948 ;; 4949 *) 4950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4951for as_dir in $PATH 4952do 4953 IFS=$as_save_IFS 4954 case $as_dir in #((( 4955 '') as_dir=./ ;; 4956 */) ;; 4957 *) as_dir=$as_dir/ ;; 4958 esac 4959 for ac_exec_ext in '' $ac_executable_extensions; do 4960 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4961 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4962 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4963 break 2 4964 fi 4965done 4966 done 4967IFS=$as_save_IFS 4968 4969 ;; 4970esac ;; 4971esac 4972fi 4973PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4974if test -n "$PKG_CONFIG"; then 4975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4976printf "%s\n" "$PKG_CONFIG" >&6; } 4977else 4978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4979printf "%s\n" "no" >&6; } 4980fi 4981 4982 4983fi 4984if test -z "$ac_cv_path_PKG_CONFIG"; then 4985 ac_pt_PKG_CONFIG=$PKG_CONFIG 4986 # Extract the first word of "pkg-config", so it can be a program name with args. 4987set dummy pkg-config; ac_word=$2 4988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4989printf %s "checking for $ac_word... " >&6; } 4990if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4991then : 4992 printf %s "(cached) " >&6 4993else case e in #( 4994 e) case $ac_pt_PKG_CONFIG in 4995 [\\/]* | ?:[\\/]*) 4996 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4997 ;; 4998 *) 4999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5000for as_dir in $PATH 5001do 5002 IFS=$as_save_IFS 5003 case $as_dir in #((( 5004 '') as_dir=./ ;; 5005 */) ;; 5006 *) as_dir=$as_dir/ ;; 5007 esac 5008 for ac_exec_ext in '' $ac_executable_extensions; do 5009 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5010 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 5011 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5012 break 2 5013 fi 5014done 5015 done 5016IFS=$as_save_IFS 5017 5018 ;; 5019esac ;; 5020esac 5021fi 5022ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 5023if test -n "$ac_pt_PKG_CONFIG"; then 5024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 5025printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 5026else 5027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5028printf "%s\n" "no" >&6; } 5029fi 5030 5031 if test "x$ac_pt_PKG_CONFIG" = x; then 5032 PKG_CONFIG="" 5033 else 5034 case $cross_compiling:$ac_tool_warned in 5035yes:) 5036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5037printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5038ac_tool_warned=yes ;; 5039esac 5040 PKG_CONFIG=$ac_pt_PKG_CONFIG 5041 fi 5042else 5043 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 5044fi 5045 5046fi 5047if test -n "$PKG_CONFIG"; then 5048 _pkg_min_version=0.9.0 5049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 5050printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 5051 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 5052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5053printf "%s\n" "yes" >&6; } 5054 else 5055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5056printf "%s\n" "no" >&6; } 5057 PKG_CONFIG="" 5058 fi 5059fi 5060 5061 5062 # Make sure we can run config.sub. 5063$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 5064 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 5065 5066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5067printf %s "checking build system type... " >&6; } 5068if test ${ac_cv_build+y} 5069then : 5070 printf %s "(cached) " >&6 5071else case e in #( 5072 e) ac_build_alias=$build_alias 5073test "x$ac_build_alias" = x && 5074 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 5075test "x$ac_build_alias" = x && 5076 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5077ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 5078 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 5079 ;; 5080esac 5081fi 5082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5083printf "%s\n" "$ac_cv_build" >&6; } 5084case $ac_cv_build in 5085*-*-*) ;; 5086*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5087esac 5088build=$ac_cv_build 5089ac_save_IFS=$IFS; IFS='-' 5090set x $ac_cv_build 5091shift 5092build_cpu=$1 5093build_vendor=$2 5094shift; shift 5095# Remember, the first character of IFS is used to create $*, 5096# except with old shells: 5097build_os=$* 5098IFS=$ac_save_IFS 5099case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5100 5101 5102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5103printf %s "checking host system type... " >&6; } 5104if test ${ac_cv_host+y} 5105then : 5106 printf %s "(cached) " >&6 5107else case e in #( 5108 e) if test "x$host_alias" = x; then 5109 ac_cv_host=$ac_cv_build 5110else 5111 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 5112 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 5113fi 5114 ;; 5115esac 5116fi 5117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5118printf "%s\n" "$ac_cv_host" >&6; } 5119case $ac_cv_host in 5120*-*-*) ;; 5121*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5122esac 5123host=$ac_cv_host 5124ac_save_IFS=$IFS; IFS='-' 5125set x $ac_cv_host 5126shift 5127host_cpu=$1 5128host_vendor=$2 5129shift; shift 5130# Remember, the first character of IFS is used to create $*, 5131# except with old shells: 5132host_os=$* 5133IFS=$ac_save_IFS 5134case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5135 5136 5137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5138printf %s "checking for a sed that does not truncate output... " >&6; } 5139if test ${ac_cv_path_SED+y} 5140then : 5141 printf %s "(cached) " >&6 5142else case e in #( 5143 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5144 for ac_i in 1 2 3 4 5 6 7; do 5145 ac_script="$ac_script$as_nl$ac_script" 5146 done 5147 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5148 { ac_script=; unset ac_script;} 5149 if test -z "$SED"; then 5150 ac_path_SED_found=false 5151 # Loop through the user's path and test for each of PROGNAME-LIST 5152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5153for as_dir in $PATH 5154do 5155 IFS=$as_save_IFS 5156 case $as_dir in #((( 5157 '') as_dir=./ ;; 5158 */) ;; 5159 *) as_dir=$as_dir/ ;; 5160 esac 5161 for ac_prog in sed gsed 5162 do 5163 for ac_exec_ext in '' $ac_executable_extensions; do 5164 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5165 as_fn_executable_p "$ac_path_SED" || continue 5166# Check for GNU ac_path_SED and select it if it is found. 5167 # Check for GNU $ac_path_SED 5168case `"$ac_path_SED" --version 2>&1` in #( 5169*GNU*) 5170 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5171#( 5172*) 5173 ac_count=0 5174 printf %s 0123456789 >"conftest.in" 5175 while : 5176 do 5177 cat "conftest.in" "conftest.in" >"conftest.tmp" 5178 mv "conftest.tmp" "conftest.in" 5179 cp "conftest.in" "conftest.nl" 5180 printf "%s\n" '' >> "conftest.nl" 5181 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5182 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5183 as_fn_arith $ac_count + 1 && ac_count=$as_val 5184 if test $ac_count -gt ${ac_path_SED_max-0}; then 5185 # Best one so far, save it but keep looking for a better one 5186 ac_cv_path_SED="$ac_path_SED" 5187 ac_path_SED_max=$ac_count 5188 fi 5189 # 10*(2^10) chars as input seems more than enough 5190 test $ac_count -gt 10 && break 5191 done 5192 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5193esac 5194 5195 $ac_path_SED_found && break 3 5196 done 5197 done 5198 done 5199IFS=$as_save_IFS 5200 if test -z "$ac_cv_path_SED"; then 5201 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5202 fi 5203else 5204 ac_cv_path_SED=$SED 5205fi 5206 ;; 5207esac 5208fi 5209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5210printf "%s\n" "$ac_cv_path_SED" >&6; } 5211 SED="$ac_cv_path_SED" 5212 rm -f conftest.sed 5213 5214 5215 5216 5217 5218 5219# Check whether --enable-selective-werror was given. 5220if test ${enable_selective_werror+y} 5221then : 5222 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5223else case e in #( 5224 e) SELECTIVE_WERROR=yes ;; 5225esac 5226fi 5227 5228 5229 5230 5231 5232# -v is too short to test reliably with XORG_TESTSET_CFLAG 5233if test "x$SUNCC" = "xyes"; then 5234 BASE_CFLAGS="-v" 5235else 5236 BASE_CFLAGS="" 5237fi 5238 5239# This chunk of warnings were those that existed in the legacy CWARNFLAGS 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253xorg_testset_save_CFLAGS="$CFLAGS" 5254 5255if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5258printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5259if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5260then : 5261 printf %s "(cached) " >&6 5262else case e in #( 5263 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5264/* end confdefs.h. */ 5265int i; 5266_ACEOF 5267if ac_fn_c_try_compile "$LINENO" 5268then : 5269 xorg_cv_cc_flag_unknown_warning_option=yes 5270else case e in #( 5271 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5272esac 5273fi 5274rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5275esac 5276fi 5277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5278printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5279 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5280 CFLAGS="$xorg_testset_save_CFLAGS" 5281fi 5282 5283if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5286 fi 5287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5289printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5290if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5291then : 5292 printf %s "(cached) " >&6 5293else case e in #( 5294 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5295/* end confdefs.h. */ 5296int i; 5297_ACEOF 5298if ac_fn_c_try_compile "$LINENO" 5299then : 5300 xorg_cv_cc_flag_unused_command_line_argument=yes 5301else case e in #( 5302 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5303esac 5304fi 5305rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5306esac 5307fi 5308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5309printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5310 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5311 CFLAGS="$xorg_testset_save_CFLAGS" 5312fi 5313 5314found="no" 5315 5316 if test $found = "no" ; then 5317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5319 fi 5320 5321 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5323 fi 5324 5325 CFLAGS="$CFLAGS -Wall" 5326 5327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5328printf %s "checking if $CC supports -Wall... " >&6; } 5329 cacheid=xorg_cv_cc_flag__Wall 5330 if eval test \${$cacheid+y} 5331then : 5332 printf %s "(cached) " >&6 5333else case e in #( 5334 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5335/* end confdefs.h. */ 5336int i; 5337int 5338main (void) 5339{ 5340 5341 ; 5342 return 0; 5343} 5344_ACEOF 5345if ac_fn_c_try_link "$LINENO" 5346then : 5347 eval $cacheid=yes 5348else case e in #( 5349 e) eval $cacheid=no ;; 5350esac 5351fi 5352rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5353 conftest$ac_exeext conftest.$ac_ext ;; 5354esac 5355fi 5356 5357 5358 CFLAGS="$xorg_testset_save_CFLAGS" 5359 5360 eval supported=\$$cacheid 5361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5362printf "%s\n" "$supported" >&6; } 5363 if test "$supported" = "yes" ; then 5364 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5365 found="yes" 5366 fi 5367 fi 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383xorg_testset_save_CFLAGS="$CFLAGS" 5384 5385if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5386 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5388printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5389if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5390then : 5391 printf %s "(cached) " >&6 5392else case e in #( 5393 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5394/* end confdefs.h. */ 5395int i; 5396_ACEOF 5397if ac_fn_c_try_compile "$LINENO" 5398then : 5399 xorg_cv_cc_flag_unknown_warning_option=yes 5400else case e in #( 5401 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5402esac 5403fi 5404rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5405esac 5406fi 5407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5408printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5409 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5410 CFLAGS="$xorg_testset_save_CFLAGS" 5411fi 5412 5413if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5415 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5416 fi 5417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5419printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5420if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5421then : 5422 printf %s "(cached) " >&6 5423else case e in #( 5424 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5425/* end confdefs.h. */ 5426int i; 5427_ACEOF 5428if ac_fn_c_try_compile "$LINENO" 5429then : 5430 xorg_cv_cc_flag_unused_command_line_argument=yes 5431else case e in #( 5432 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5433esac 5434fi 5435rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5436esac 5437fi 5438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5439printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5440 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5441 CFLAGS="$xorg_testset_save_CFLAGS" 5442fi 5443 5444found="no" 5445 5446 if test $found = "no" ; then 5447 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5448 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5449 fi 5450 5451 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5453 fi 5454 5455 CFLAGS="$CFLAGS -Wpointer-arith" 5456 5457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5458printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5459 cacheid=xorg_cv_cc_flag__Wpointer_arith 5460 if eval test \${$cacheid+y} 5461then : 5462 printf %s "(cached) " >&6 5463else case e in #( 5464 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5465/* end confdefs.h. */ 5466int i; 5467int 5468main (void) 5469{ 5470 5471 ; 5472 return 0; 5473} 5474_ACEOF 5475if ac_fn_c_try_link "$LINENO" 5476then : 5477 eval $cacheid=yes 5478else case e in #( 5479 e) eval $cacheid=no ;; 5480esac 5481fi 5482rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5483 conftest$ac_exeext conftest.$ac_ext ;; 5484esac 5485fi 5486 5487 5488 CFLAGS="$xorg_testset_save_CFLAGS" 5489 5490 eval supported=\$$cacheid 5491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5492printf "%s\n" "$supported" >&6; } 5493 if test "$supported" = "yes" ; then 5494 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5495 found="yes" 5496 fi 5497 fi 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513xorg_testset_save_CFLAGS="$CFLAGS" 5514 5515if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5516 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5518printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5519if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5520then : 5521 printf %s "(cached) " >&6 5522else case e in #( 5523 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5524/* end confdefs.h. */ 5525int i; 5526_ACEOF 5527if ac_fn_c_try_compile "$LINENO" 5528then : 5529 xorg_cv_cc_flag_unknown_warning_option=yes 5530else case e in #( 5531 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5532esac 5533fi 5534rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5535esac 5536fi 5537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5538printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5539 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5540 CFLAGS="$xorg_testset_save_CFLAGS" 5541fi 5542 5543if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5544 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5545 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5546 fi 5547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5549printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5550if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5551then : 5552 printf %s "(cached) " >&6 5553else case e in #( 5554 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5555/* end confdefs.h. */ 5556int i; 5557_ACEOF 5558if ac_fn_c_try_compile "$LINENO" 5559then : 5560 xorg_cv_cc_flag_unused_command_line_argument=yes 5561else case e in #( 5562 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5563esac 5564fi 5565rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5566esac 5567fi 5568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5569printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5570 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5571 CFLAGS="$xorg_testset_save_CFLAGS" 5572fi 5573 5574found="no" 5575 5576 if test $found = "no" ; then 5577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5578 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5579 fi 5580 5581 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5583 fi 5584 5585 CFLAGS="$CFLAGS -Wmissing-declarations" 5586 5587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5588printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5589 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5590 if eval test \${$cacheid+y} 5591then : 5592 printf %s "(cached) " >&6 5593else case e in #( 5594 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5595/* end confdefs.h. */ 5596int i; 5597int 5598main (void) 5599{ 5600 5601 ; 5602 return 0; 5603} 5604_ACEOF 5605if ac_fn_c_try_link "$LINENO" 5606then : 5607 eval $cacheid=yes 5608else case e in #( 5609 e) eval $cacheid=no ;; 5610esac 5611fi 5612rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5613 conftest$ac_exeext conftest.$ac_ext ;; 5614esac 5615fi 5616 5617 5618 CFLAGS="$xorg_testset_save_CFLAGS" 5619 5620 eval supported=\$$cacheid 5621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5622printf "%s\n" "$supported" >&6; } 5623 if test "$supported" = "yes" ; then 5624 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5625 found="yes" 5626 fi 5627 fi 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643xorg_testset_save_CFLAGS="$CFLAGS" 5644 5645if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5646 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5648printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5649if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5650then : 5651 printf %s "(cached) " >&6 5652else case e in #( 5653 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5654/* end confdefs.h. */ 5655int i; 5656_ACEOF 5657if ac_fn_c_try_compile "$LINENO" 5658then : 5659 xorg_cv_cc_flag_unknown_warning_option=yes 5660else case e in #( 5661 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5662esac 5663fi 5664rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5665esac 5666fi 5667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5668printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5669 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5670 CFLAGS="$xorg_testset_save_CFLAGS" 5671fi 5672 5673if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5676 fi 5677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5679printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5680if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5681then : 5682 printf %s "(cached) " >&6 5683else case e in #( 5684 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5685/* end confdefs.h. */ 5686int i; 5687_ACEOF 5688if ac_fn_c_try_compile "$LINENO" 5689then : 5690 xorg_cv_cc_flag_unused_command_line_argument=yes 5691else case e in #( 5692 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5693esac 5694fi 5695rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5696esac 5697fi 5698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5699printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5700 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5701 CFLAGS="$xorg_testset_save_CFLAGS" 5702fi 5703 5704found="no" 5705 5706 if test $found = "no" ; then 5707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5708 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5709 fi 5710 5711 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5712 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5713 fi 5714 5715 CFLAGS="$CFLAGS -Wformat=2" 5716 5717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5718printf %s "checking if $CC supports -Wformat=2... " >&6; } 5719 cacheid=xorg_cv_cc_flag__Wformat_2 5720 if eval test \${$cacheid+y} 5721then : 5722 printf %s "(cached) " >&6 5723else case e in #( 5724 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5725/* end confdefs.h. */ 5726int i; 5727int 5728main (void) 5729{ 5730 5731 ; 5732 return 0; 5733} 5734_ACEOF 5735if ac_fn_c_try_link "$LINENO" 5736then : 5737 eval $cacheid=yes 5738else case e in #( 5739 e) eval $cacheid=no ;; 5740esac 5741fi 5742rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5743 conftest$ac_exeext conftest.$ac_ext ;; 5744esac 5745fi 5746 5747 5748 CFLAGS="$xorg_testset_save_CFLAGS" 5749 5750 eval supported=\$$cacheid 5751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5752printf "%s\n" "$supported" >&6; } 5753 if test "$supported" = "yes" ; then 5754 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5755 found="yes" 5756 fi 5757 fi 5758 5759 if test $found = "no" ; then 5760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5761 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5762 fi 5763 5764 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5766 fi 5767 5768 CFLAGS="$CFLAGS -Wformat" 5769 5770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5771printf %s "checking if $CC supports -Wformat... " >&6; } 5772 cacheid=xorg_cv_cc_flag__Wformat 5773 if eval test \${$cacheid+y} 5774then : 5775 printf %s "(cached) " >&6 5776else case e in #( 5777 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5778/* end confdefs.h. */ 5779int i; 5780int 5781main (void) 5782{ 5783 5784 ; 5785 return 0; 5786} 5787_ACEOF 5788if ac_fn_c_try_link "$LINENO" 5789then : 5790 eval $cacheid=yes 5791else case e in #( 5792 e) eval $cacheid=no ;; 5793esac 5794fi 5795rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5796 conftest$ac_exeext conftest.$ac_ext ;; 5797esac 5798fi 5799 5800 5801 CFLAGS="$xorg_testset_save_CFLAGS" 5802 5803 eval supported=\$$cacheid 5804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5805printf "%s\n" "$supported" >&6; } 5806 if test "$supported" = "yes" ; then 5807 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5808 found="yes" 5809 fi 5810 fi 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828xorg_testset_save_CFLAGS="$CFLAGS" 5829 5830if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5831 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5833printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5834if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5835then : 5836 printf %s "(cached) " >&6 5837else case e in #( 5838 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5839/* end confdefs.h. */ 5840int i; 5841_ACEOF 5842if ac_fn_c_try_compile "$LINENO" 5843then : 5844 xorg_cv_cc_flag_unknown_warning_option=yes 5845else case e in #( 5846 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5847esac 5848fi 5849rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5850esac 5851fi 5852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5853printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5854 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5855 CFLAGS="$xorg_testset_save_CFLAGS" 5856fi 5857 5858if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5859 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5860 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5861 fi 5862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5864printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5865if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5866then : 5867 printf %s "(cached) " >&6 5868else case e in #( 5869 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5870/* end confdefs.h. */ 5871int i; 5872_ACEOF 5873if ac_fn_c_try_compile "$LINENO" 5874then : 5875 xorg_cv_cc_flag_unused_command_line_argument=yes 5876else case e in #( 5877 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5878esac 5879fi 5880rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5881esac 5882fi 5883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5884printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5885 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5886 CFLAGS="$xorg_testset_save_CFLAGS" 5887fi 5888 5889found="no" 5890 5891 if test $found = "no" ; then 5892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5893 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5894 fi 5895 5896 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5897 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5898 fi 5899 5900 CFLAGS="$CFLAGS -Wstrict-prototypes" 5901 5902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5903printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5904 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5905 if eval test \${$cacheid+y} 5906then : 5907 printf %s "(cached) " >&6 5908else case e in #( 5909 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5910/* end confdefs.h. */ 5911int i; 5912int 5913main (void) 5914{ 5915 5916 ; 5917 return 0; 5918} 5919_ACEOF 5920if ac_fn_c_try_link "$LINENO" 5921then : 5922 eval $cacheid=yes 5923else case e in #( 5924 e) eval $cacheid=no ;; 5925esac 5926fi 5927rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5928 conftest$ac_exeext conftest.$ac_ext ;; 5929esac 5930fi 5931 5932 5933 CFLAGS="$xorg_testset_save_CFLAGS" 5934 5935 eval supported=\$$cacheid 5936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5937printf "%s\n" "$supported" >&6; } 5938 if test "$supported" = "yes" ; then 5939 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5940 found="yes" 5941 fi 5942 fi 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958xorg_testset_save_CFLAGS="$CFLAGS" 5959 5960if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5961 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5963printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5964if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5965then : 5966 printf %s "(cached) " >&6 5967else case e in #( 5968 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5969/* end confdefs.h. */ 5970int i; 5971_ACEOF 5972if ac_fn_c_try_compile "$LINENO" 5973then : 5974 xorg_cv_cc_flag_unknown_warning_option=yes 5975else case e in #( 5976 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5977esac 5978fi 5979rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5980esac 5981fi 5982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5983printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5984 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5985 CFLAGS="$xorg_testset_save_CFLAGS" 5986fi 5987 5988if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5991 fi 5992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5994printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5995if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5996then : 5997 printf %s "(cached) " >&6 5998else case e in #( 5999 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6000/* end confdefs.h. */ 6001int i; 6002_ACEOF 6003if ac_fn_c_try_compile "$LINENO" 6004then : 6005 xorg_cv_cc_flag_unused_command_line_argument=yes 6006else case e in #( 6007 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6008esac 6009fi 6010rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6011esac 6012fi 6013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6014printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6015 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6016 CFLAGS="$xorg_testset_save_CFLAGS" 6017fi 6018 6019found="no" 6020 6021 if test $found = "no" ; then 6022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6023 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6024 fi 6025 6026 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6028 fi 6029 6030 CFLAGS="$CFLAGS -Wmissing-prototypes" 6031 6032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 6033printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 6034 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 6035 if eval test \${$cacheid+y} 6036then : 6037 printf %s "(cached) " >&6 6038else case e in #( 6039 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6040/* end confdefs.h. */ 6041int i; 6042int 6043main (void) 6044{ 6045 6046 ; 6047 return 0; 6048} 6049_ACEOF 6050if ac_fn_c_try_link "$LINENO" 6051then : 6052 eval $cacheid=yes 6053else case e in #( 6054 e) eval $cacheid=no ;; 6055esac 6056fi 6057rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6058 conftest$ac_exeext conftest.$ac_ext ;; 6059esac 6060fi 6061 6062 6063 CFLAGS="$xorg_testset_save_CFLAGS" 6064 6065 eval supported=\$$cacheid 6066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6067printf "%s\n" "$supported" >&6; } 6068 if test "$supported" = "yes" ; then 6069 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 6070 found="yes" 6071 fi 6072 fi 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088xorg_testset_save_CFLAGS="$CFLAGS" 6089 6090if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6093printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6094if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6095then : 6096 printf %s "(cached) " >&6 6097else case e in #( 6098 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6099/* end confdefs.h. */ 6100int i; 6101_ACEOF 6102if ac_fn_c_try_compile "$LINENO" 6103then : 6104 xorg_cv_cc_flag_unknown_warning_option=yes 6105else case e in #( 6106 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6107esac 6108fi 6109rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6110esac 6111fi 6112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6113printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6114 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6115 CFLAGS="$xorg_testset_save_CFLAGS" 6116fi 6117 6118if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6120 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6121 fi 6122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6124printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6125if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6126then : 6127 printf %s "(cached) " >&6 6128else case e in #( 6129 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6130/* end confdefs.h. */ 6131int i; 6132_ACEOF 6133if ac_fn_c_try_compile "$LINENO" 6134then : 6135 xorg_cv_cc_flag_unused_command_line_argument=yes 6136else case e in #( 6137 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6138esac 6139fi 6140rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6141esac 6142fi 6143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6144printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6145 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6146 CFLAGS="$xorg_testset_save_CFLAGS" 6147fi 6148 6149found="no" 6150 6151 if test $found = "no" ; then 6152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6154 fi 6155 6156 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6158 fi 6159 6160 CFLAGS="$CFLAGS -Wnested-externs" 6161 6162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 6163printf %s "checking if $CC supports -Wnested-externs... " >&6; } 6164 cacheid=xorg_cv_cc_flag__Wnested_externs 6165 if eval test \${$cacheid+y} 6166then : 6167 printf %s "(cached) " >&6 6168else case e in #( 6169 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6170/* end confdefs.h. */ 6171int i; 6172int 6173main (void) 6174{ 6175 6176 ; 6177 return 0; 6178} 6179_ACEOF 6180if ac_fn_c_try_link "$LINENO" 6181then : 6182 eval $cacheid=yes 6183else case e in #( 6184 e) eval $cacheid=no ;; 6185esac 6186fi 6187rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6188 conftest$ac_exeext conftest.$ac_ext ;; 6189esac 6190fi 6191 6192 6193 CFLAGS="$xorg_testset_save_CFLAGS" 6194 6195 eval supported=\$$cacheid 6196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6197printf "%s\n" "$supported" >&6; } 6198 if test "$supported" = "yes" ; then 6199 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 6200 found="yes" 6201 fi 6202 fi 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218xorg_testset_save_CFLAGS="$CFLAGS" 6219 6220if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6221 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6223printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6224if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6225then : 6226 printf %s "(cached) " >&6 6227else case e in #( 6228 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6229/* end confdefs.h. */ 6230int i; 6231_ACEOF 6232if ac_fn_c_try_compile "$LINENO" 6233then : 6234 xorg_cv_cc_flag_unknown_warning_option=yes 6235else case e in #( 6236 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6237esac 6238fi 6239rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6240esac 6241fi 6242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6243printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6244 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6245 CFLAGS="$xorg_testset_save_CFLAGS" 6246fi 6247 6248if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6249 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6250 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6251 fi 6252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6254printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6255if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6256then : 6257 printf %s "(cached) " >&6 6258else case e in #( 6259 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6260/* end confdefs.h. */ 6261int i; 6262_ACEOF 6263if ac_fn_c_try_compile "$LINENO" 6264then : 6265 xorg_cv_cc_flag_unused_command_line_argument=yes 6266else case e in #( 6267 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6268esac 6269fi 6270rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6271esac 6272fi 6273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6274printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6275 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6276 CFLAGS="$xorg_testset_save_CFLAGS" 6277fi 6278 6279found="no" 6280 6281 if test $found = "no" ; then 6282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6283 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6284 fi 6285 6286 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6288 fi 6289 6290 CFLAGS="$CFLAGS -Wbad-function-cast" 6291 6292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6293printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6294 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6295 if eval test \${$cacheid+y} 6296then : 6297 printf %s "(cached) " >&6 6298else case e in #( 6299 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6300/* end confdefs.h. */ 6301int i; 6302int 6303main (void) 6304{ 6305 6306 ; 6307 return 0; 6308} 6309_ACEOF 6310if ac_fn_c_try_link "$LINENO" 6311then : 6312 eval $cacheid=yes 6313else case e in #( 6314 e) eval $cacheid=no ;; 6315esac 6316fi 6317rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6318 conftest$ac_exeext conftest.$ac_ext ;; 6319esac 6320fi 6321 6322 6323 CFLAGS="$xorg_testset_save_CFLAGS" 6324 6325 eval supported=\$$cacheid 6326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6327printf "%s\n" "$supported" >&6; } 6328 if test "$supported" = "yes" ; then 6329 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6330 found="yes" 6331 fi 6332 fi 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348xorg_testset_save_CFLAGS="$CFLAGS" 6349 6350if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6351 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6353printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6354if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6355then : 6356 printf %s "(cached) " >&6 6357else case e in #( 6358 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6359/* end confdefs.h. */ 6360int i; 6361_ACEOF 6362if ac_fn_c_try_compile "$LINENO" 6363then : 6364 xorg_cv_cc_flag_unknown_warning_option=yes 6365else case e in #( 6366 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6367esac 6368fi 6369rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6370esac 6371fi 6372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6373printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6374 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6375 CFLAGS="$xorg_testset_save_CFLAGS" 6376fi 6377 6378if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6379 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6380 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6381 fi 6382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6384printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6385if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6386then : 6387 printf %s "(cached) " >&6 6388else case e in #( 6389 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6390/* end confdefs.h. */ 6391int i; 6392_ACEOF 6393if ac_fn_c_try_compile "$LINENO" 6394then : 6395 xorg_cv_cc_flag_unused_command_line_argument=yes 6396else case e in #( 6397 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6398esac 6399fi 6400rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6401esac 6402fi 6403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6404printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6405 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6406 CFLAGS="$xorg_testset_save_CFLAGS" 6407fi 6408 6409found="no" 6410 6411 if test $found = "no" ; then 6412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6413 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6414 fi 6415 6416 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6418 fi 6419 6420 CFLAGS="$CFLAGS -Wold-style-definition" 6421 6422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6423printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6424 cacheid=xorg_cv_cc_flag__Wold_style_definition 6425 if eval test \${$cacheid+y} 6426then : 6427 printf %s "(cached) " >&6 6428else case e in #( 6429 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6430/* end confdefs.h. */ 6431int i; 6432int 6433main (void) 6434{ 6435 6436 ; 6437 return 0; 6438} 6439_ACEOF 6440if ac_fn_c_try_link "$LINENO" 6441then : 6442 eval $cacheid=yes 6443else case e in #( 6444 e) eval $cacheid=no ;; 6445esac 6446fi 6447rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6448 conftest$ac_exeext conftest.$ac_ext ;; 6449esac 6450fi 6451 6452 6453 CFLAGS="$xorg_testset_save_CFLAGS" 6454 6455 eval supported=\$$cacheid 6456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6457printf "%s\n" "$supported" >&6; } 6458 if test "$supported" = "yes" ; then 6459 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6460 found="yes" 6461 fi 6462 fi 6463 6464 if test $found = "no" ; then 6465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6467 fi 6468 6469 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6471 fi 6472 6473 CFLAGS="$CFLAGS -fd" 6474 6475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6476printf %s "checking if $CC supports -fd... " >&6; } 6477 cacheid=xorg_cv_cc_flag__fd 6478 if eval test \${$cacheid+y} 6479then : 6480 printf %s "(cached) " >&6 6481else case e in #( 6482 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6483/* end confdefs.h. */ 6484int i; 6485int 6486main (void) 6487{ 6488 6489 ; 6490 return 0; 6491} 6492_ACEOF 6493if ac_fn_c_try_link "$LINENO" 6494then : 6495 eval $cacheid=yes 6496else case e in #( 6497 e) eval $cacheid=no ;; 6498esac 6499fi 6500rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6501 conftest$ac_exeext conftest.$ac_ext ;; 6502esac 6503fi 6504 6505 6506 CFLAGS="$xorg_testset_save_CFLAGS" 6507 6508 eval supported=\$$cacheid 6509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6510printf "%s\n" "$supported" >&6; } 6511 if test "$supported" = "yes" ; then 6512 BASE_CFLAGS="$BASE_CFLAGS -fd" 6513 found="yes" 6514 fi 6515 fi 6516 6517 6518 6519 6520 6521# This chunk adds additional warnings that could catch undesired effects. 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535xorg_testset_save_CFLAGS="$CFLAGS" 6536 6537if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6538 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6540printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6541if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6542then : 6543 printf %s "(cached) " >&6 6544else case e in #( 6545 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6546/* end confdefs.h. */ 6547int i; 6548_ACEOF 6549if ac_fn_c_try_compile "$LINENO" 6550then : 6551 xorg_cv_cc_flag_unknown_warning_option=yes 6552else case e in #( 6553 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6554esac 6555fi 6556rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6557esac 6558fi 6559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6560printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6561 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6562 CFLAGS="$xorg_testset_save_CFLAGS" 6563fi 6564 6565if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6567 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6568 fi 6569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6571printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6572if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6573then : 6574 printf %s "(cached) " >&6 6575else case e in #( 6576 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6577/* end confdefs.h. */ 6578int i; 6579_ACEOF 6580if ac_fn_c_try_compile "$LINENO" 6581then : 6582 xorg_cv_cc_flag_unused_command_line_argument=yes 6583else case e in #( 6584 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6585esac 6586fi 6587rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6588esac 6589fi 6590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6591printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6592 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6593 CFLAGS="$xorg_testset_save_CFLAGS" 6594fi 6595 6596found="no" 6597 6598 if test $found = "no" ; then 6599 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6600 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6601 fi 6602 6603 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6605 fi 6606 6607 CFLAGS="$CFLAGS -Wunused" 6608 6609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6610printf %s "checking if $CC supports -Wunused... " >&6; } 6611 cacheid=xorg_cv_cc_flag__Wunused 6612 if eval test \${$cacheid+y} 6613then : 6614 printf %s "(cached) " >&6 6615else case e in #( 6616 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6617/* end confdefs.h. */ 6618int i; 6619int 6620main (void) 6621{ 6622 6623 ; 6624 return 0; 6625} 6626_ACEOF 6627if ac_fn_c_try_link "$LINENO" 6628then : 6629 eval $cacheid=yes 6630else case e in #( 6631 e) eval $cacheid=no ;; 6632esac 6633fi 6634rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6635 conftest$ac_exeext conftest.$ac_ext ;; 6636esac 6637fi 6638 6639 6640 CFLAGS="$xorg_testset_save_CFLAGS" 6641 6642 eval supported=\$$cacheid 6643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6644printf "%s\n" "$supported" >&6; } 6645 if test "$supported" = "yes" ; then 6646 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6647 found="yes" 6648 fi 6649 fi 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665xorg_testset_save_CFLAGS="$CFLAGS" 6666 6667if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6668 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6670printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6671if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6672then : 6673 printf %s "(cached) " >&6 6674else case e in #( 6675 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6676/* end confdefs.h. */ 6677int i; 6678_ACEOF 6679if ac_fn_c_try_compile "$LINENO" 6680then : 6681 xorg_cv_cc_flag_unknown_warning_option=yes 6682else case e in #( 6683 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6684esac 6685fi 6686rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6687esac 6688fi 6689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6690printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6691 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6692 CFLAGS="$xorg_testset_save_CFLAGS" 6693fi 6694 6695if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6698 fi 6699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6701printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6702if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6703then : 6704 printf %s "(cached) " >&6 6705else case e in #( 6706 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6707/* end confdefs.h. */ 6708int i; 6709_ACEOF 6710if ac_fn_c_try_compile "$LINENO" 6711then : 6712 xorg_cv_cc_flag_unused_command_line_argument=yes 6713else case e in #( 6714 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6715esac 6716fi 6717rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6718esac 6719fi 6720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6721printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6722 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6723 CFLAGS="$xorg_testset_save_CFLAGS" 6724fi 6725 6726found="no" 6727 6728 if test $found = "no" ; then 6729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6730 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6731 fi 6732 6733 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6735 fi 6736 6737 CFLAGS="$CFLAGS -Wuninitialized" 6738 6739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6740printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6741 cacheid=xorg_cv_cc_flag__Wuninitialized 6742 if eval test \${$cacheid+y} 6743then : 6744 printf %s "(cached) " >&6 6745else case e in #( 6746 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6747/* end confdefs.h. */ 6748int i; 6749int 6750main (void) 6751{ 6752 6753 ; 6754 return 0; 6755} 6756_ACEOF 6757if ac_fn_c_try_link "$LINENO" 6758then : 6759 eval $cacheid=yes 6760else case e in #( 6761 e) eval $cacheid=no ;; 6762esac 6763fi 6764rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6765 conftest$ac_exeext conftest.$ac_ext ;; 6766esac 6767fi 6768 6769 6770 CFLAGS="$xorg_testset_save_CFLAGS" 6771 6772 eval supported=\$$cacheid 6773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6774printf "%s\n" "$supported" >&6; } 6775 if test "$supported" = "yes" ; then 6776 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6777 found="yes" 6778 fi 6779 fi 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795xorg_testset_save_CFLAGS="$CFLAGS" 6796 6797if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6800printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6801if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6802then : 6803 printf %s "(cached) " >&6 6804else case e in #( 6805 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6806/* end confdefs.h. */ 6807int i; 6808_ACEOF 6809if ac_fn_c_try_compile "$LINENO" 6810then : 6811 xorg_cv_cc_flag_unknown_warning_option=yes 6812else case e in #( 6813 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6814esac 6815fi 6816rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6817esac 6818fi 6819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6820printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6821 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6822 CFLAGS="$xorg_testset_save_CFLAGS" 6823fi 6824 6825if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6826 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6828 fi 6829 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6831printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6832if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6833then : 6834 printf %s "(cached) " >&6 6835else case e in #( 6836 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6837/* end confdefs.h. */ 6838int i; 6839_ACEOF 6840if ac_fn_c_try_compile "$LINENO" 6841then : 6842 xorg_cv_cc_flag_unused_command_line_argument=yes 6843else case e in #( 6844 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6845esac 6846fi 6847rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6848esac 6849fi 6850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6851printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6852 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6853 CFLAGS="$xorg_testset_save_CFLAGS" 6854fi 6855 6856found="no" 6857 6858 if test $found = "no" ; then 6859 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6860 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6861 fi 6862 6863 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6865 fi 6866 6867 CFLAGS="$CFLAGS -Wshadow" 6868 6869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6870printf %s "checking if $CC supports -Wshadow... " >&6; } 6871 cacheid=xorg_cv_cc_flag__Wshadow 6872 if eval test \${$cacheid+y} 6873then : 6874 printf %s "(cached) " >&6 6875else case e in #( 6876 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6877/* end confdefs.h. */ 6878int i; 6879int 6880main (void) 6881{ 6882 6883 ; 6884 return 0; 6885} 6886_ACEOF 6887if ac_fn_c_try_link "$LINENO" 6888then : 6889 eval $cacheid=yes 6890else case e in #( 6891 e) eval $cacheid=no ;; 6892esac 6893fi 6894rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6895 conftest$ac_exeext conftest.$ac_ext ;; 6896esac 6897fi 6898 6899 6900 CFLAGS="$xorg_testset_save_CFLAGS" 6901 6902 eval supported=\$$cacheid 6903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6904printf "%s\n" "$supported" >&6; } 6905 if test "$supported" = "yes" ; then 6906 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6907 found="yes" 6908 fi 6909 fi 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925xorg_testset_save_CFLAGS="$CFLAGS" 6926 6927if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6928 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6930printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6931if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6932then : 6933 printf %s "(cached) " >&6 6934else case e in #( 6935 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6936/* end confdefs.h. */ 6937int i; 6938_ACEOF 6939if ac_fn_c_try_compile "$LINENO" 6940then : 6941 xorg_cv_cc_flag_unknown_warning_option=yes 6942else case e in #( 6943 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6944esac 6945fi 6946rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6947esac 6948fi 6949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6950printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6951 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6952 CFLAGS="$xorg_testset_save_CFLAGS" 6953fi 6954 6955if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6956 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6958 fi 6959 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6961printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6962if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6963then : 6964 printf %s "(cached) " >&6 6965else case e in #( 6966 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6967/* end confdefs.h. */ 6968int i; 6969_ACEOF 6970if ac_fn_c_try_compile "$LINENO" 6971then : 6972 xorg_cv_cc_flag_unused_command_line_argument=yes 6973else case e in #( 6974 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6975esac 6976fi 6977rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6978esac 6979fi 6980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6981printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6982 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6983 CFLAGS="$xorg_testset_save_CFLAGS" 6984fi 6985 6986found="no" 6987 6988 if test $found = "no" ; then 6989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6991 fi 6992 6993 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6995 fi 6996 6997 CFLAGS="$CFLAGS -Wmissing-noreturn" 6998 6999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 7000printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 7001 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 7002 if eval test \${$cacheid+y} 7003then : 7004 printf %s "(cached) " >&6 7005else case e in #( 7006 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7007/* end confdefs.h. */ 7008int i; 7009int 7010main (void) 7011{ 7012 7013 ; 7014 return 0; 7015} 7016_ACEOF 7017if ac_fn_c_try_link "$LINENO" 7018then : 7019 eval $cacheid=yes 7020else case e in #( 7021 e) eval $cacheid=no ;; 7022esac 7023fi 7024rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7025 conftest$ac_exeext conftest.$ac_ext ;; 7026esac 7027fi 7028 7029 7030 CFLAGS="$xorg_testset_save_CFLAGS" 7031 7032 eval supported=\$$cacheid 7033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7034printf "%s\n" "$supported" >&6; } 7035 if test "$supported" = "yes" ; then 7036 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 7037 found="yes" 7038 fi 7039 fi 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055xorg_testset_save_CFLAGS="$CFLAGS" 7056 7057if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7058 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7060printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7061if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7062then : 7063 printf %s "(cached) " >&6 7064else case e in #( 7065 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7066/* end confdefs.h. */ 7067int i; 7068_ACEOF 7069if ac_fn_c_try_compile "$LINENO" 7070then : 7071 xorg_cv_cc_flag_unknown_warning_option=yes 7072else case e in #( 7073 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7074esac 7075fi 7076rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7077esac 7078fi 7079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7080printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7081 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7082 CFLAGS="$xorg_testset_save_CFLAGS" 7083fi 7084 7085if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7086 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7087 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7088 fi 7089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7091printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7092if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7093then : 7094 printf %s "(cached) " >&6 7095else case e in #( 7096 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7097/* end confdefs.h. */ 7098int i; 7099_ACEOF 7100if ac_fn_c_try_compile "$LINENO" 7101then : 7102 xorg_cv_cc_flag_unused_command_line_argument=yes 7103else case e in #( 7104 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7105esac 7106fi 7107rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7108esac 7109fi 7110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7111printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7112 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7113 CFLAGS="$xorg_testset_save_CFLAGS" 7114fi 7115 7116found="no" 7117 7118 if test $found = "no" ; then 7119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7120 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7121 fi 7122 7123 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7125 fi 7126 7127 CFLAGS="$CFLAGS -Wmissing-format-attribute" 7128 7129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 7130printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 7131 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 7132 if eval test \${$cacheid+y} 7133then : 7134 printf %s "(cached) " >&6 7135else case e in #( 7136 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7137/* end confdefs.h. */ 7138int i; 7139int 7140main (void) 7141{ 7142 7143 ; 7144 return 0; 7145} 7146_ACEOF 7147if ac_fn_c_try_link "$LINENO" 7148then : 7149 eval $cacheid=yes 7150else case e in #( 7151 e) eval $cacheid=no ;; 7152esac 7153fi 7154rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7155 conftest$ac_exeext conftest.$ac_ext ;; 7156esac 7157fi 7158 7159 7160 CFLAGS="$xorg_testset_save_CFLAGS" 7161 7162 eval supported=\$$cacheid 7163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7164printf "%s\n" "$supported" >&6; } 7165 if test "$supported" = "yes" ; then 7166 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7167 found="yes" 7168 fi 7169 fi 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185xorg_testset_save_CFLAGS="$CFLAGS" 7186 7187if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7190printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7191if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7192then : 7193 printf %s "(cached) " >&6 7194else case e in #( 7195 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7196/* end confdefs.h. */ 7197int i; 7198_ACEOF 7199if ac_fn_c_try_compile "$LINENO" 7200then : 7201 xorg_cv_cc_flag_unknown_warning_option=yes 7202else case e in #( 7203 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7204esac 7205fi 7206rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7207esac 7208fi 7209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7210printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7211 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7212 CFLAGS="$xorg_testset_save_CFLAGS" 7213fi 7214 7215if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7218 fi 7219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7221printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7222if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7223then : 7224 printf %s "(cached) " >&6 7225else case e in #( 7226 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7227/* end confdefs.h. */ 7228int i; 7229_ACEOF 7230if ac_fn_c_try_compile "$LINENO" 7231then : 7232 xorg_cv_cc_flag_unused_command_line_argument=yes 7233else case e in #( 7234 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7235esac 7236fi 7237rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7238esac 7239fi 7240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7241printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7242 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7243 CFLAGS="$xorg_testset_save_CFLAGS" 7244fi 7245 7246found="no" 7247 7248 if test $found = "no" ; then 7249 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7250 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7251 fi 7252 7253 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7255 fi 7256 7257 CFLAGS="$CFLAGS -Wredundant-decls" 7258 7259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7260printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7261 cacheid=xorg_cv_cc_flag__Wredundant_decls 7262 if eval test \${$cacheid+y} 7263then : 7264 printf %s "(cached) " >&6 7265else case e in #( 7266 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7267/* end confdefs.h. */ 7268int i; 7269int 7270main (void) 7271{ 7272 7273 ; 7274 return 0; 7275} 7276_ACEOF 7277if ac_fn_c_try_link "$LINENO" 7278then : 7279 eval $cacheid=yes 7280else case e in #( 7281 e) eval $cacheid=no ;; 7282esac 7283fi 7284rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7285 conftest$ac_exeext conftest.$ac_ext ;; 7286esac 7287fi 7288 7289 7290 CFLAGS="$xorg_testset_save_CFLAGS" 7291 7292 eval supported=\$$cacheid 7293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7294printf "%s\n" "$supported" >&6; } 7295 if test "$supported" = "yes" ; then 7296 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7297 found="yes" 7298 fi 7299 fi 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315xorg_testset_save_CFLAGS="$CFLAGS" 7316 7317if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7320printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7321if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7322then : 7323 printf %s "(cached) " >&6 7324else case e in #( 7325 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7326/* end confdefs.h. */ 7327int i; 7328_ACEOF 7329if ac_fn_c_try_compile "$LINENO" 7330then : 7331 xorg_cv_cc_flag_unknown_warning_option=yes 7332else case e in #( 7333 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7334esac 7335fi 7336rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7337esac 7338fi 7339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7340printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7341 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7342 CFLAGS="$xorg_testset_save_CFLAGS" 7343fi 7344 7345if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7348 fi 7349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7351printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7352if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7353then : 7354 printf %s "(cached) " >&6 7355else case e in #( 7356 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7357/* end confdefs.h. */ 7358int i; 7359_ACEOF 7360if ac_fn_c_try_compile "$LINENO" 7361then : 7362 xorg_cv_cc_flag_unused_command_line_argument=yes 7363else case e in #( 7364 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7365esac 7366fi 7367rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7368esac 7369fi 7370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7371printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7372 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7373 CFLAGS="$xorg_testset_save_CFLAGS" 7374fi 7375 7376found="no" 7377 7378 if test $found = "no" ; then 7379 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7380 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7381 fi 7382 7383 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7385 fi 7386 7387 CFLAGS="$CFLAGS -Wlogical-op" 7388 7389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7390printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7391 cacheid=xorg_cv_cc_flag__Wlogical_op 7392 if eval test \${$cacheid+y} 7393then : 7394 printf %s "(cached) " >&6 7395else case e in #( 7396 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7397/* end confdefs.h. */ 7398int i; 7399int 7400main (void) 7401{ 7402 7403 ; 7404 return 0; 7405} 7406_ACEOF 7407if ac_fn_c_try_link "$LINENO" 7408then : 7409 eval $cacheid=yes 7410else case e in #( 7411 e) eval $cacheid=no ;; 7412esac 7413fi 7414rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7415 conftest$ac_exeext conftest.$ac_ext ;; 7416esac 7417fi 7418 7419 7420 CFLAGS="$xorg_testset_save_CFLAGS" 7421 7422 eval supported=\$$cacheid 7423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7424printf "%s\n" "$supported" >&6; } 7425 if test "$supported" = "yes" ; then 7426 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7427 found="yes" 7428 fi 7429 fi 7430 7431 7432 7433# These are currently disabled because they are noisy. They will be enabled 7434# in the future once the codebase is sufficiently modernized to silence 7435# them. For now, I don't want them to drown out the other warnings. 7436# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7437# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7438# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7439 7440# Turn some warnings into errors, so we don't accidentally get successful builds 7441# when there are problems that should be fixed. 7442 7443if test "x$SELECTIVE_WERROR" = "xyes" ; then 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457xorg_testset_save_CFLAGS="$CFLAGS" 7458 7459if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7460 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7462printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7463if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7464then : 7465 printf %s "(cached) " >&6 7466else case e in #( 7467 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7468/* end confdefs.h. */ 7469int i; 7470_ACEOF 7471if ac_fn_c_try_compile "$LINENO" 7472then : 7473 xorg_cv_cc_flag_unknown_warning_option=yes 7474else case e in #( 7475 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7476esac 7477fi 7478rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7479esac 7480fi 7481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7482printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7483 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7484 CFLAGS="$xorg_testset_save_CFLAGS" 7485fi 7486 7487if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7490 fi 7491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7493printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7494if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7495then : 7496 printf %s "(cached) " >&6 7497else case e in #( 7498 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7499/* end confdefs.h. */ 7500int i; 7501_ACEOF 7502if ac_fn_c_try_compile "$LINENO" 7503then : 7504 xorg_cv_cc_flag_unused_command_line_argument=yes 7505else case e in #( 7506 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7507esac 7508fi 7509rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7510esac 7511fi 7512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7513printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7514 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7515 CFLAGS="$xorg_testset_save_CFLAGS" 7516fi 7517 7518found="no" 7519 7520 if test $found = "no" ; then 7521 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7522 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7523 fi 7524 7525 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7527 fi 7528 7529 CFLAGS="$CFLAGS -Werror=implicit" 7530 7531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7532printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7533 cacheid=xorg_cv_cc_flag__Werror_implicit 7534 if eval test \${$cacheid+y} 7535then : 7536 printf %s "(cached) " >&6 7537else case e in #( 7538 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7539/* end confdefs.h. */ 7540int i; 7541int 7542main (void) 7543{ 7544 7545 ; 7546 return 0; 7547} 7548_ACEOF 7549if ac_fn_c_try_link "$LINENO" 7550then : 7551 eval $cacheid=yes 7552else case e in #( 7553 e) eval $cacheid=no ;; 7554esac 7555fi 7556rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7557 conftest$ac_exeext conftest.$ac_ext ;; 7558esac 7559fi 7560 7561 7562 CFLAGS="$xorg_testset_save_CFLAGS" 7563 7564 eval supported=\$$cacheid 7565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7566printf "%s\n" "$supported" >&6; } 7567 if test "$supported" = "yes" ; then 7568 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7569 found="yes" 7570 fi 7571 fi 7572 7573 if test $found = "no" ; then 7574 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7575 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7576 fi 7577 7578 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7580 fi 7581 7582 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7583 7584 { 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 7585printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7586 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7587 if eval test \${$cacheid+y} 7588then : 7589 printf %s "(cached) " >&6 7590else case e in #( 7591 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7592/* end confdefs.h. */ 7593int i; 7594int 7595main (void) 7596{ 7597 7598 ; 7599 return 0; 7600} 7601_ACEOF 7602if ac_fn_c_try_link "$LINENO" 7603then : 7604 eval $cacheid=yes 7605else case e in #( 7606 e) eval $cacheid=no ;; 7607esac 7608fi 7609rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7610 conftest$ac_exeext conftest.$ac_ext ;; 7611esac 7612fi 7613 7614 7615 CFLAGS="$xorg_testset_save_CFLAGS" 7616 7617 eval supported=\$$cacheid 7618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7619printf "%s\n" "$supported" >&6; } 7620 if test "$supported" = "yes" ; then 7621 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7622 found="yes" 7623 fi 7624 fi 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640xorg_testset_save_CFLAGS="$CFLAGS" 7641 7642if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7645printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7646if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7647then : 7648 printf %s "(cached) " >&6 7649else case e in #( 7650 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7651/* end confdefs.h. */ 7652int i; 7653_ACEOF 7654if ac_fn_c_try_compile "$LINENO" 7655then : 7656 xorg_cv_cc_flag_unknown_warning_option=yes 7657else case e in #( 7658 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7659esac 7660fi 7661rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7662esac 7663fi 7664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7665printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7666 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7667 CFLAGS="$xorg_testset_save_CFLAGS" 7668fi 7669 7670if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7671 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7673 fi 7674 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7676printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7677if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7678then : 7679 printf %s "(cached) " >&6 7680else case e in #( 7681 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7682/* end confdefs.h. */ 7683int i; 7684_ACEOF 7685if ac_fn_c_try_compile "$LINENO" 7686then : 7687 xorg_cv_cc_flag_unused_command_line_argument=yes 7688else case e in #( 7689 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7690esac 7691fi 7692rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7693esac 7694fi 7695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7696printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7697 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7698 CFLAGS="$xorg_testset_save_CFLAGS" 7699fi 7700 7701found="no" 7702 7703 if test $found = "no" ; then 7704 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7705 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7706 fi 7707 7708 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7710 fi 7711 7712 CFLAGS="$CFLAGS -Werror=nonnull" 7713 7714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7715printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7716 cacheid=xorg_cv_cc_flag__Werror_nonnull 7717 if eval test \${$cacheid+y} 7718then : 7719 printf %s "(cached) " >&6 7720else case e in #( 7721 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7722/* end confdefs.h. */ 7723int i; 7724int 7725main (void) 7726{ 7727 7728 ; 7729 return 0; 7730} 7731_ACEOF 7732if ac_fn_c_try_link "$LINENO" 7733then : 7734 eval $cacheid=yes 7735else case e in #( 7736 e) eval $cacheid=no ;; 7737esac 7738fi 7739rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7740 conftest$ac_exeext conftest.$ac_ext ;; 7741esac 7742fi 7743 7744 7745 CFLAGS="$xorg_testset_save_CFLAGS" 7746 7747 eval supported=\$$cacheid 7748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7749printf "%s\n" "$supported" >&6; } 7750 if test "$supported" = "yes" ; then 7751 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7752 found="yes" 7753 fi 7754 fi 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770xorg_testset_save_CFLAGS="$CFLAGS" 7771 7772if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7775printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7776if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7777then : 7778 printf %s "(cached) " >&6 7779else case e in #( 7780 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7781/* end confdefs.h. */ 7782int i; 7783_ACEOF 7784if ac_fn_c_try_compile "$LINENO" 7785then : 7786 xorg_cv_cc_flag_unknown_warning_option=yes 7787else case e in #( 7788 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7789esac 7790fi 7791rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7792esac 7793fi 7794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7795printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7796 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7797 CFLAGS="$xorg_testset_save_CFLAGS" 7798fi 7799 7800if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7802 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7803 fi 7804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7806printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7807if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7808then : 7809 printf %s "(cached) " >&6 7810else case e in #( 7811 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7812/* end confdefs.h. */ 7813int i; 7814_ACEOF 7815if ac_fn_c_try_compile "$LINENO" 7816then : 7817 xorg_cv_cc_flag_unused_command_line_argument=yes 7818else case e in #( 7819 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7820esac 7821fi 7822rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7823esac 7824fi 7825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7826printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7827 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7828 CFLAGS="$xorg_testset_save_CFLAGS" 7829fi 7830 7831found="no" 7832 7833 if test $found = "no" ; then 7834 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7835 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7836 fi 7837 7838 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7840 fi 7841 7842 CFLAGS="$CFLAGS -Werror=init-self" 7843 7844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7845printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7846 cacheid=xorg_cv_cc_flag__Werror_init_self 7847 if eval test \${$cacheid+y} 7848then : 7849 printf %s "(cached) " >&6 7850else case e in #( 7851 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7852/* end confdefs.h. */ 7853int i; 7854int 7855main (void) 7856{ 7857 7858 ; 7859 return 0; 7860} 7861_ACEOF 7862if ac_fn_c_try_link "$LINENO" 7863then : 7864 eval $cacheid=yes 7865else case e in #( 7866 e) eval $cacheid=no ;; 7867esac 7868fi 7869rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7870 conftest$ac_exeext conftest.$ac_ext ;; 7871esac 7872fi 7873 7874 7875 CFLAGS="$xorg_testset_save_CFLAGS" 7876 7877 eval supported=\$$cacheid 7878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7879printf "%s\n" "$supported" >&6; } 7880 if test "$supported" = "yes" ; then 7881 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7882 found="yes" 7883 fi 7884 fi 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900xorg_testset_save_CFLAGS="$CFLAGS" 7901 7902if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7905printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7906if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7907then : 7908 printf %s "(cached) " >&6 7909else case e in #( 7910 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7911/* end confdefs.h. */ 7912int i; 7913_ACEOF 7914if ac_fn_c_try_compile "$LINENO" 7915then : 7916 xorg_cv_cc_flag_unknown_warning_option=yes 7917else case e in #( 7918 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7919esac 7920fi 7921rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7922esac 7923fi 7924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7925printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7926 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7927 CFLAGS="$xorg_testset_save_CFLAGS" 7928fi 7929 7930if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7931 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7932 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7933 fi 7934 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7936printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7937if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7938then : 7939 printf %s "(cached) " >&6 7940else case e in #( 7941 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7942/* end confdefs.h. */ 7943int i; 7944_ACEOF 7945if ac_fn_c_try_compile "$LINENO" 7946then : 7947 xorg_cv_cc_flag_unused_command_line_argument=yes 7948else case e in #( 7949 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7950esac 7951fi 7952rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7953esac 7954fi 7955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7956printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7957 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7958 CFLAGS="$xorg_testset_save_CFLAGS" 7959fi 7960 7961found="no" 7962 7963 if test $found = "no" ; then 7964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7966 fi 7967 7968 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7970 fi 7971 7972 CFLAGS="$CFLAGS -Werror=main" 7973 7974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7975printf %s "checking if $CC supports -Werror=main... " >&6; } 7976 cacheid=xorg_cv_cc_flag__Werror_main 7977 if eval test \${$cacheid+y} 7978then : 7979 printf %s "(cached) " >&6 7980else case e in #( 7981 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7982/* end confdefs.h. */ 7983int i; 7984int 7985main (void) 7986{ 7987 7988 ; 7989 return 0; 7990} 7991_ACEOF 7992if ac_fn_c_try_link "$LINENO" 7993then : 7994 eval $cacheid=yes 7995else case e in #( 7996 e) eval $cacheid=no ;; 7997esac 7998fi 7999rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8000 conftest$ac_exeext conftest.$ac_ext ;; 8001esac 8002fi 8003 8004 8005 CFLAGS="$xorg_testset_save_CFLAGS" 8006 8007 eval supported=\$$cacheid 8008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8009printf "%s\n" "$supported" >&6; } 8010 if test "$supported" = "yes" ; then 8011 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 8012 found="yes" 8013 fi 8014 fi 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030xorg_testset_save_CFLAGS="$CFLAGS" 8031 8032if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8035printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8036if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8037then : 8038 printf %s "(cached) " >&6 8039else case e in #( 8040 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8041/* end confdefs.h. */ 8042int i; 8043_ACEOF 8044if ac_fn_c_try_compile "$LINENO" 8045then : 8046 xorg_cv_cc_flag_unknown_warning_option=yes 8047else case e in #( 8048 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8049esac 8050fi 8051rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8052esac 8053fi 8054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8055printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8056 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8057 CFLAGS="$xorg_testset_save_CFLAGS" 8058fi 8059 8060if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8062 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8063 fi 8064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8066printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8067if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8068then : 8069 printf %s "(cached) " >&6 8070else case e in #( 8071 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8072/* end confdefs.h. */ 8073int i; 8074_ACEOF 8075if ac_fn_c_try_compile "$LINENO" 8076then : 8077 xorg_cv_cc_flag_unused_command_line_argument=yes 8078else case e in #( 8079 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8080esac 8081fi 8082rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8083esac 8084fi 8085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8086printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8087 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8088 CFLAGS="$xorg_testset_save_CFLAGS" 8089fi 8090 8091found="no" 8092 8093 if test $found = "no" ; then 8094 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8095 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8096 fi 8097 8098 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8100 fi 8101 8102 CFLAGS="$CFLAGS -Werror=missing-braces" 8103 8104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 8105printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 8106 cacheid=xorg_cv_cc_flag__Werror_missing_braces 8107 if eval test \${$cacheid+y} 8108then : 8109 printf %s "(cached) " >&6 8110else case e in #( 8111 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8112/* end confdefs.h. */ 8113int i; 8114int 8115main (void) 8116{ 8117 8118 ; 8119 return 0; 8120} 8121_ACEOF 8122if ac_fn_c_try_link "$LINENO" 8123then : 8124 eval $cacheid=yes 8125else case e in #( 8126 e) eval $cacheid=no ;; 8127esac 8128fi 8129rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8130 conftest$ac_exeext conftest.$ac_ext ;; 8131esac 8132fi 8133 8134 8135 CFLAGS="$xorg_testset_save_CFLAGS" 8136 8137 eval supported=\$$cacheid 8138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8139printf "%s\n" "$supported" >&6; } 8140 if test "$supported" = "yes" ; then 8141 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 8142 found="yes" 8143 fi 8144 fi 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160xorg_testset_save_CFLAGS="$CFLAGS" 8161 8162if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8165printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8166if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8167then : 8168 printf %s "(cached) " >&6 8169else case e in #( 8170 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8171/* end confdefs.h. */ 8172int i; 8173_ACEOF 8174if ac_fn_c_try_compile "$LINENO" 8175then : 8176 xorg_cv_cc_flag_unknown_warning_option=yes 8177else case e in #( 8178 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8179esac 8180fi 8181rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8182esac 8183fi 8184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8185printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8186 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8187 CFLAGS="$xorg_testset_save_CFLAGS" 8188fi 8189 8190if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8191 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8192 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8193 fi 8194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8196printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8197if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8198then : 8199 printf %s "(cached) " >&6 8200else case e in #( 8201 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8202/* end confdefs.h. */ 8203int i; 8204_ACEOF 8205if ac_fn_c_try_compile "$LINENO" 8206then : 8207 xorg_cv_cc_flag_unused_command_line_argument=yes 8208else case e in #( 8209 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8210esac 8211fi 8212rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8213esac 8214fi 8215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8216printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8217 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8218 CFLAGS="$xorg_testset_save_CFLAGS" 8219fi 8220 8221found="no" 8222 8223 if test $found = "no" ; then 8224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8226 fi 8227 8228 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8230 fi 8231 8232 CFLAGS="$CFLAGS -Werror=sequence-point" 8233 8234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8235printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8236 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8237 if eval test \${$cacheid+y} 8238then : 8239 printf %s "(cached) " >&6 8240else case e in #( 8241 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8242/* end confdefs.h. */ 8243int i; 8244int 8245main (void) 8246{ 8247 8248 ; 8249 return 0; 8250} 8251_ACEOF 8252if ac_fn_c_try_link "$LINENO" 8253then : 8254 eval $cacheid=yes 8255else case e in #( 8256 e) eval $cacheid=no ;; 8257esac 8258fi 8259rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8260 conftest$ac_exeext conftest.$ac_ext ;; 8261esac 8262fi 8263 8264 8265 CFLAGS="$xorg_testset_save_CFLAGS" 8266 8267 eval supported=\$$cacheid 8268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8269printf "%s\n" "$supported" >&6; } 8270 if test "$supported" = "yes" ; then 8271 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8272 found="yes" 8273 fi 8274 fi 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290xorg_testset_save_CFLAGS="$CFLAGS" 8291 8292if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8295printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8296if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8297then : 8298 printf %s "(cached) " >&6 8299else case e in #( 8300 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8301/* end confdefs.h. */ 8302int i; 8303_ACEOF 8304if ac_fn_c_try_compile "$LINENO" 8305then : 8306 xorg_cv_cc_flag_unknown_warning_option=yes 8307else case e in #( 8308 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8309esac 8310fi 8311rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8312esac 8313fi 8314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8315printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8316 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8317 CFLAGS="$xorg_testset_save_CFLAGS" 8318fi 8319 8320if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8323 fi 8324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8326printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8327if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8328then : 8329 printf %s "(cached) " >&6 8330else case e in #( 8331 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8332/* end confdefs.h. */ 8333int i; 8334_ACEOF 8335if ac_fn_c_try_compile "$LINENO" 8336then : 8337 xorg_cv_cc_flag_unused_command_line_argument=yes 8338else case e in #( 8339 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8340esac 8341fi 8342rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8343esac 8344fi 8345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8346printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8347 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8348 CFLAGS="$xorg_testset_save_CFLAGS" 8349fi 8350 8351found="no" 8352 8353 if test $found = "no" ; then 8354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8356 fi 8357 8358 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8360 fi 8361 8362 CFLAGS="$CFLAGS -Werror=return-type" 8363 8364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8365printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8366 cacheid=xorg_cv_cc_flag__Werror_return_type 8367 if eval test \${$cacheid+y} 8368then : 8369 printf %s "(cached) " >&6 8370else case e in #( 8371 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8372/* end confdefs.h. */ 8373int i; 8374int 8375main (void) 8376{ 8377 8378 ; 8379 return 0; 8380} 8381_ACEOF 8382if ac_fn_c_try_link "$LINENO" 8383then : 8384 eval $cacheid=yes 8385else case e in #( 8386 e) eval $cacheid=no ;; 8387esac 8388fi 8389rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8390 conftest$ac_exeext conftest.$ac_ext ;; 8391esac 8392fi 8393 8394 8395 CFLAGS="$xorg_testset_save_CFLAGS" 8396 8397 eval supported=\$$cacheid 8398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8399printf "%s\n" "$supported" >&6; } 8400 if test "$supported" = "yes" ; then 8401 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8402 found="yes" 8403 fi 8404 fi 8405 8406 if test $found = "no" ; then 8407 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8408 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8409 fi 8410 8411 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8413 fi 8414 8415 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8416 8417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8418printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8419 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8420 if eval test \${$cacheid+y} 8421then : 8422 printf %s "(cached) " >&6 8423else case e in #( 8424 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8425/* end confdefs.h. */ 8426int i; 8427int 8428main (void) 8429{ 8430 8431 ; 8432 return 0; 8433} 8434_ACEOF 8435if ac_fn_c_try_link "$LINENO" 8436then : 8437 eval $cacheid=yes 8438else case e in #( 8439 e) eval $cacheid=no ;; 8440esac 8441fi 8442rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8443 conftest$ac_exeext conftest.$ac_ext ;; 8444esac 8445fi 8446 8447 8448 CFLAGS="$xorg_testset_save_CFLAGS" 8449 8450 eval supported=\$$cacheid 8451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8452printf "%s\n" "$supported" >&6; } 8453 if test "$supported" = "yes" ; then 8454 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8455 found="yes" 8456 fi 8457 fi 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473xorg_testset_save_CFLAGS="$CFLAGS" 8474 8475if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8476 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8478printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8479if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8480then : 8481 printf %s "(cached) " >&6 8482else case e in #( 8483 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8484/* end confdefs.h. */ 8485int i; 8486_ACEOF 8487if ac_fn_c_try_compile "$LINENO" 8488then : 8489 xorg_cv_cc_flag_unknown_warning_option=yes 8490else case e in #( 8491 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8492esac 8493fi 8494rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8495esac 8496fi 8497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8498printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8499 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8500 CFLAGS="$xorg_testset_save_CFLAGS" 8501fi 8502 8503if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8506 fi 8507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8509printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8510if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8511then : 8512 printf %s "(cached) " >&6 8513else case e in #( 8514 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8515/* end confdefs.h. */ 8516int i; 8517_ACEOF 8518if ac_fn_c_try_compile "$LINENO" 8519then : 8520 xorg_cv_cc_flag_unused_command_line_argument=yes 8521else case e in #( 8522 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8523esac 8524fi 8525rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8526esac 8527fi 8528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8529printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8530 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8531 CFLAGS="$xorg_testset_save_CFLAGS" 8532fi 8533 8534found="no" 8535 8536 if test $found = "no" ; then 8537 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8538 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8539 fi 8540 8541 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8543 fi 8544 8545 CFLAGS="$CFLAGS -Werror=trigraphs" 8546 8547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8548printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8549 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8550 if eval test \${$cacheid+y} 8551then : 8552 printf %s "(cached) " >&6 8553else case e in #( 8554 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8555/* end confdefs.h. */ 8556int i; 8557int 8558main (void) 8559{ 8560 8561 ; 8562 return 0; 8563} 8564_ACEOF 8565if ac_fn_c_try_link "$LINENO" 8566then : 8567 eval $cacheid=yes 8568else case e in #( 8569 e) eval $cacheid=no ;; 8570esac 8571fi 8572rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8573 conftest$ac_exeext conftest.$ac_ext ;; 8574esac 8575fi 8576 8577 8578 CFLAGS="$xorg_testset_save_CFLAGS" 8579 8580 eval supported=\$$cacheid 8581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8582printf "%s\n" "$supported" >&6; } 8583 if test "$supported" = "yes" ; then 8584 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8585 found="yes" 8586 fi 8587 fi 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603xorg_testset_save_CFLAGS="$CFLAGS" 8604 8605if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8606 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8608printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8609if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8610then : 8611 printf %s "(cached) " >&6 8612else case e in #( 8613 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8614/* end confdefs.h. */ 8615int i; 8616_ACEOF 8617if ac_fn_c_try_compile "$LINENO" 8618then : 8619 xorg_cv_cc_flag_unknown_warning_option=yes 8620else case e in #( 8621 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8622esac 8623fi 8624rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8625esac 8626fi 8627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8628printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8629 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8630 CFLAGS="$xorg_testset_save_CFLAGS" 8631fi 8632 8633if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8634 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8635 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8636 fi 8637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8639printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8640if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8641then : 8642 printf %s "(cached) " >&6 8643else case e in #( 8644 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8645/* end confdefs.h. */ 8646int i; 8647_ACEOF 8648if ac_fn_c_try_compile "$LINENO" 8649then : 8650 xorg_cv_cc_flag_unused_command_line_argument=yes 8651else case e in #( 8652 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8653esac 8654fi 8655rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8656esac 8657fi 8658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8659printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8660 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8661 CFLAGS="$xorg_testset_save_CFLAGS" 8662fi 8663 8664found="no" 8665 8666 if test $found = "no" ; then 8667 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8668 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8669 fi 8670 8671 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8673 fi 8674 8675 CFLAGS="$CFLAGS -Werror=array-bounds" 8676 8677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8678printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8679 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8680 if eval test \${$cacheid+y} 8681then : 8682 printf %s "(cached) " >&6 8683else case e in #( 8684 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8685/* end confdefs.h. */ 8686int i; 8687int 8688main (void) 8689{ 8690 8691 ; 8692 return 0; 8693} 8694_ACEOF 8695if ac_fn_c_try_link "$LINENO" 8696then : 8697 eval $cacheid=yes 8698else case e in #( 8699 e) eval $cacheid=no ;; 8700esac 8701fi 8702rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8703 conftest$ac_exeext conftest.$ac_ext ;; 8704esac 8705fi 8706 8707 8708 CFLAGS="$xorg_testset_save_CFLAGS" 8709 8710 eval supported=\$$cacheid 8711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8712printf "%s\n" "$supported" >&6; } 8713 if test "$supported" = "yes" ; then 8714 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8715 found="yes" 8716 fi 8717 fi 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733xorg_testset_save_CFLAGS="$CFLAGS" 8734 8735if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8736 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8738printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8739if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8740then : 8741 printf %s "(cached) " >&6 8742else case e in #( 8743 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8744/* end confdefs.h. */ 8745int i; 8746_ACEOF 8747if ac_fn_c_try_compile "$LINENO" 8748then : 8749 xorg_cv_cc_flag_unknown_warning_option=yes 8750else case e in #( 8751 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8752esac 8753fi 8754rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8755esac 8756fi 8757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8758printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8759 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8760 CFLAGS="$xorg_testset_save_CFLAGS" 8761fi 8762 8763if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8765 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8766 fi 8767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8769printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8770if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8771then : 8772 printf %s "(cached) " >&6 8773else case e in #( 8774 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8775/* end confdefs.h. */ 8776int i; 8777_ACEOF 8778if ac_fn_c_try_compile "$LINENO" 8779then : 8780 xorg_cv_cc_flag_unused_command_line_argument=yes 8781else case e in #( 8782 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8783esac 8784fi 8785rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8786esac 8787fi 8788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8789printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8790 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8791 CFLAGS="$xorg_testset_save_CFLAGS" 8792fi 8793 8794found="no" 8795 8796 if test $found = "no" ; then 8797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8799 fi 8800 8801 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8803 fi 8804 8805 CFLAGS="$CFLAGS -Werror=write-strings" 8806 8807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8808printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8809 cacheid=xorg_cv_cc_flag__Werror_write_strings 8810 if eval test \${$cacheid+y} 8811then : 8812 printf %s "(cached) " >&6 8813else case e in #( 8814 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8815/* end confdefs.h. */ 8816int i; 8817int 8818main (void) 8819{ 8820 8821 ; 8822 return 0; 8823} 8824_ACEOF 8825if ac_fn_c_try_link "$LINENO" 8826then : 8827 eval $cacheid=yes 8828else case e in #( 8829 e) eval $cacheid=no ;; 8830esac 8831fi 8832rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8833 conftest$ac_exeext conftest.$ac_ext ;; 8834esac 8835fi 8836 8837 8838 CFLAGS="$xorg_testset_save_CFLAGS" 8839 8840 eval supported=\$$cacheid 8841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8842printf "%s\n" "$supported" >&6; } 8843 if test "$supported" = "yes" ; then 8844 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8845 found="yes" 8846 fi 8847 fi 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863xorg_testset_save_CFLAGS="$CFLAGS" 8864 8865if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8866 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8868printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8869if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8870then : 8871 printf %s "(cached) " >&6 8872else case e in #( 8873 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8874/* end confdefs.h. */ 8875int i; 8876_ACEOF 8877if ac_fn_c_try_compile "$LINENO" 8878then : 8879 xorg_cv_cc_flag_unknown_warning_option=yes 8880else case e in #( 8881 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8882esac 8883fi 8884rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8885esac 8886fi 8887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8888printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8889 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8890 CFLAGS="$xorg_testset_save_CFLAGS" 8891fi 8892 8893if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8895 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8896 fi 8897 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8899printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8900if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8901then : 8902 printf %s "(cached) " >&6 8903else case e in #( 8904 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8905/* end confdefs.h. */ 8906int i; 8907_ACEOF 8908if ac_fn_c_try_compile "$LINENO" 8909then : 8910 xorg_cv_cc_flag_unused_command_line_argument=yes 8911else case e in #( 8912 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8913esac 8914fi 8915rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8916esac 8917fi 8918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8919printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8920 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8921 CFLAGS="$xorg_testset_save_CFLAGS" 8922fi 8923 8924found="no" 8925 8926 if test $found = "no" ; then 8927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8928 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8929 fi 8930 8931 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8933 fi 8934 8935 CFLAGS="$CFLAGS -Werror=address" 8936 8937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8938printf %s "checking if $CC supports -Werror=address... " >&6; } 8939 cacheid=xorg_cv_cc_flag__Werror_address 8940 if eval test \${$cacheid+y} 8941then : 8942 printf %s "(cached) " >&6 8943else case e in #( 8944 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8945/* end confdefs.h. */ 8946int i; 8947int 8948main (void) 8949{ 8950 8951 ; 8952 return 0; 8953} 8954_ACEOF 8955if ac_fn_c_try_link "$LINENO" 8956then : 8957 eval $cacheid=yes 8958else case e in #( 8959 e) eval $cacheid=no ;; 8960esac 8961fi 8962rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8963 conftest$ac_exeext conftest.$ac_ext ;; 8964esac 8965fi 8966 8967 8968 CFLAGS="$xorg_testset_save_CFLAGS" 8969 8970 eval supported=\$$cacheid 8971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8972printf "%s\n" "$supported" >&6; } 8973 if test "$supported" = "yes" ; then 8974 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8975 found="yes" 8976 fi 8977 fi 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993xorg_testset_save_CFLAGS="$CFLAGS" 8994 8995if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8996 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8998printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8999if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9000then : 9001 printf %s "(cached) " >&6 9002else case e in #( 9003 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9004/* end confdefs.h. */ 9005int i; 9006_ACEOF 9007if ac_fn_c_try_compile "$LINENO" 9008then : 9009 xorg_cv_cc_flag_unknown_warning_option=yes 9010else case e in #( 9011 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9012esac 9013fi 9014rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9015esac 9016fi 9017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9018printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9019 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9020 CFLAGS="$xorg_testset_save_CFLAGS" 9021fi 9022 9023if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9026 fi 9027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9029printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9030if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9031then : 9032 printf %s "(cached) " >&6 9033else case e in #( 9034 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9035/* end confdefs.h. */ 9036int i; 9037_ACEOF 9038if ac_fn_c_try_compile "$LINENO" 9039then : 9040 xorg_cv_cc_flag_unused_command_line_argument=yes 9041else case e in #( 9042 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9043esac 9044fi 9045rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9046esac 9047fi 9048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9049printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9050 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9051 CFLAGS="$xorg_testset_save_CFLAGS" 9052fi 9053 9054found="no" 9055 9056 if test $found = "no" ; then 9057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9058 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9059 fi 9060 9061 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9063 fi 9064 9065 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 9066 9067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 9068printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 9069 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 9070 if eval test \${$cacheid+y} 9071then : 9072 printf %s "(cached) " >&6 9073else case e in #( 9074 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9075/* end confdefs.h. */ 9076int i; 9077int 9078main (void) 9079{ 9080 9081 ; 9082 return 0; 9083} 9084_ACEOF 9085if ac_fn_c_try_link "$LINENO" 9086then : 9087 eval $cacheid=yes 9088else case e in #( 9089 e) eval $cacheid=no ;; 9090esac 9091fi 9092rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9093 conftest$ac_exeext conftest.$ac_ext ;; 9094esac 9095fi 9096 9097 9098 CFLAGS="$xorg_testset_save_CFLAGS" 9099 9100 eval supported=\$$cacheid 9101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9102printf "%s\n" "$supported" >&6; } 9103 if test "$supported" = "yes" ; then 9104 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 9105 found="yes" 9106 fi 9107 fi 9108 9109 if test $found = "no" ; then 9110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9111 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9112 fi 9113 9114 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9116 fi 9117 9118 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9119 9120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 9121printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 9122 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 9123 if eval test \${$cacheid+y} 9124then : 9125 printf %s "(cached) " >&6 9126else case e in #( 9127 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9128/* end confdefs.h. */ 9129int i; 9130int 9131main (void) 9132{ 9133 9134 ; 9135 return 0; 9136} 9137_ACEOF 9138if ac_fn_c_try_link "$LINENO" 9139then : 9140 eval $cacheid=yes 9141else case e in #( 9142 e) eval $cacheid=no ;; 9143esac 9144fi 9145rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9146 conftest$ac_exeext conftest.$ac_ext ;; 9147esac 9148fi 9149 9150 9151 CFLAGS="$xorg_testset_save_CFLAGS" 9152 9153 eval supported=\$$cacheid 9154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9155printf "%s\n" "$supported" >&6; } 9156 if test "$supported" = "yes" ; then 9157 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9158 found="yes" 9159 fi 9160 fi 9161 9162 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 -Werror=pointer-to-int-cast" 9249 9250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9251printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9252 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 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 -Werror=pointer-to-int-cast" 9288 found="yes" 9289 fi 9290 fi 9291 9292 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9293else 9294{ 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 9295printf "%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;} 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309xorg_testset_save_CFLAGS="$CFLAGS" 9310 9311if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9312 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9314printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9315if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9316then : 9317 printf %s "(cached) " >&6 9318else case e in #( 9319 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9320/* end confdefs.h. */ 9321int i; 9322_ACEOF 9323if ac_fn_c_try_compile "$LINENO" 9324then : 9325 xorg_cv_cc_flag_unknown_warning_option=yes 9326else case e in #( 9327 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9328esac 9329fi 9330rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9331esac 9332fi 9333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9334printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9335 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9336 CFLAGS="$xorg_testset_save_CFLAGS" 9337fi 9338 9339if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9342 fi 9343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9345printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9346if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9347then : 9348 printf %s "(cached) " >&6 9349else case e in #( 9350 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9351/* end confdefs.h. */ 9352int i; 9353_ACEOF 9354if ac_fn_c_try_compile "$LINENO" 9355then : 9356 xorg_cv_cc_flag_unused_command_line_argument=yes 9357else case e in #( 9358 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9359esac 9360fi 9361rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9362esac 9363fi 9364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9365printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9366 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9367 CFLAGS="$xorg_testset_save_CFLAGS" 9368fi 9369 9370found="no" 9371 9372 if test $found = "no" ; then 9373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9374 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9375 fi 9376 9377 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9379 fi 9380 9381 CFLAGS="$CFLAGS -Wimplicit" 9382 9383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9384printf %s "checking if $CC supports -Wimplicit... " >&6; } 9385 cacheid=xorg_cv_cc_flag__Wimplicit 9386 if eval test \${$cacheid+y} 9387then : 9388 printf %s "(cached) " >&6 9389else case e in #( 9390 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9391/* end confdefs.h. */ 9392int i; 9393int 9394main (void) 9395{ 9396 9397 ; 9398 return 0; 9399} 9400_ACEOF 9401if ac_fn_c_try_link "$LINENO" 9402then : 9403 eval $cacheid=yes 9404else case e in #( 9405 e) eval $cacheid=no ;; 9406esac 9407fi 9408rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9409 conftest$ac_exeext conftest.$ac_ext ;; 9410esac 9411fi 9412 9413 9414 CFLAGS="$xorg_testset_save_CFLAGS" 9415 9416 eval supported=\$$cacheid 9417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9418printf "%s\n" "$supported" >&6; } 9419 if test "$supported" = "yes" ; then 9420 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9421 found="yes" 9422 fi 9423 fi 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439xorg_testset_save_CFLAGS="$CFLAGS" 9440 9441if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9442 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9444printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9445if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9446then : 9447 printf %s "(cached) " >&6 9448else case e in #( 9449 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9450/* end confdefs.h. */ 9451int i; 9452_ACEOF 9453if ac_fn_c_try_compile "$LINENO" 9454then : 9455 xorg_cv_cc_flag_unknown_warning_option=yes 9456else case e in #( 9457 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9458esac 9459fi 9460rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9461esac 9462fi 9463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9464printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9465 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9466 CFLAGS="$xorg_testset_save_CFLAGS" 9467fi 9468 9469if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9471 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9472 fi 9473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9475printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9476if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9477then : 9478 printf %s "(cached) " >&6 9479else case e in #( 9480 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9481/* end confdefs.h. */ 9482int i; 9483_ACEOF 9484if ac_fn_c_try_compile "$LINENO" 9485then : 9486 xorg_cv_cc_flag_unused_command_line_argument=yes 9487else case e in #( 9488 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9489esac 9490fi 9491rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9492esac 9493fi 9494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9495printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9496 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9497 CFLAGS="$xorg_testset_save_CFLAGS" 9498fi 9499 9500found="no" 9501 9502 if test $found = "no" ; then 9503 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9504 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9505 fi 9506 9507 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9509 fi 9510 9511 CFLAGS="$CFLAGS -Wnonnull" 9512 9513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9514printf %s "checking if $CC supports -Wnonnull... " >&6; } 9515 cacheid=xorg_cv_cc_flag__Wnonnull 9516 if eval test \${$cacheid+y} 9517then : 9518 printf %s "(cached) " >&6 9519else case e in #( 9520 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9521/* end confdefs.h. */ 9522int i; 9523int 9524main (void) 9525{ 9526 9527 ; 9528 return 0; 9529} 9530_ACEOF 9531if ac_fn_c_try_link "$LINENO" 9532then : 9533 eval $cacheid=yes 9534else case e in #( 9535 e) eval $cacheid=no ;; 9536esac 9537fi 9538rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9539 conftest$ac_exeext conftest.$ac_ext ;; 9540esac 9541fi 9542 9543 9544 CFLAGS="$xorg_testset_save_CFLAGS" 9545 9546 eval supported=\$$cacheid 9547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9548printf "%s\n" "$supported" >&6; } 9549 if test "$supported" = "yes" ; then 9550 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9551 found="yes" 9552 fi 9553 fi 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569xorg_testset_save_CFLAGS="$CFLAGS" 9570 9571if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9572 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9574printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9575if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9576then : 9577 printf %s "(cached) " >&6 9578else case e in #( 9579 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9580/* end confdefs.h. */ 9581int i; 9582_ACEOF 9583if ac_fn_c_try_compile "$LINENO" 9584then : 9585 xorg_cv_cc_flag_unknown_warning_option=yes 9586else case e in #( 9587 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9588esac 9589fi 9590rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9591esac 9592fi 9593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9594printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9595 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9596 CFLAGS="$xorg_testset_save_CFLAGS" 9597fi 9598 9599if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9600 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9601 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9602 fi 9603 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9605printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9606if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9607then : 9608 printf %s "(cached) " >&6 9609else case e in #( 9610 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9611/* end confdefs.h. */ 9612int i; 9613_ACEOF 9614if ac_fn_c_try_compile "$LINENO" 9615then : 9616 xorg_cv_cc_flag_unused_command_line_argument=yes 9617else case e in #( 9618 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9619esac 9620fi 9621rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9622esac 9623fi 9624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9625printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9626 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9627 CFLAGS="$xorg_testset_save_CFLAGS" 9628fi 9629 9630found="no" 9631 9632 if test $found = "no" ; then 9633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9634 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9635 fi 9636 9637 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9639 fi 9640 9641 CFLAGS="$CFLAGS -Winit-self" 9642 9643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9644printf %s "checking if $CC supports -Winit-self... " >&6; } 9645 cacheid=xorg_cv_cc_flag__Winit_self 9646 if eval test \${$cacheid+y} 9647then : 9648 printf %s "(cached) " >&6 9649else case e in #( 9650 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9651/* end confdefs.h. */ 9652int i; 9653int 9654main (void) 9655{ 9656 9657 ; 9658 return 0; 9659} 9660_ACEOF 9661if ac_fn_c_try_link "$LINENO" 9662then : 9663 eval $cacheid=yes 9664else case e in #( 9665 e) eval $cacheid=no ;; 9666esac 9667fi 9668rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9669 conftest$ac_exeext conftest.$ac_ext ;; 9670esac 9671fi 9672 9673 9674 CFLAGS="$xorg_testset_save_CFLAGS" 9675 9676 eval supported=\$$cacheid 9677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9678printf "%s\n" "$supported" >&6; } 9679 if test "$supported" = "yes" ; then 9680 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9681 found="yes" 9682 fi 9683 fi 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699xorg_testset_save_CFLAGS="$CFLAGS" 9700 9701if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9704printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9705if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9706then : 9707 printf %s "(cached) " >&6 9708else case e in #( 9709 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9710/* end confdefs.h. */ 9711int i; 9712_ACEOF 9713if ac_fn_c_try_compile "$LINENO" 9714then : 9715 xorg_cv_cc_flag_unknown_warning_option=yes 9716else case e in #( 9717 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9718esac 9719fi 9720rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9721esac 9722fi 9723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9724printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9725 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9726 CFLAGS="$xorg_testset_save_CFLAGS" 9727fi 9728 9729if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9731 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9732 fi 9733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9735printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9736if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9737then : 9738 printf %s "(cached) " >&6 9739else case e in #( 9740 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9741/* end confdefs.h. */ 9742int i; 9743_ACEOF 9744if ac_fn_c_try_compile "$LINENO" 9745then : 9746 xorg_cv_cc_flag_unused_command_line_argument=yes 9747else case e in #( 9748 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9749esac 9750fi 9751rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9752esac 9753fi 9754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9755printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9756 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9757 CFLAGS="$xorg_testset_save_CFLAGS" 9758fi 9759 9760found="no" 9761 9762 if test $found = "no" ; then 9763 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9764 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9765 fi 9766 9767 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9769 fi 9770 9771 CFLAGS="$CFLAGS -Wmain" 9772 9773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9774printf %s "checking if $CC supports -Wmain... " >&6; } 9775 cacheid=xorg_cv_cc_flag__Wmain 9776 if eval test \${$cacheid+y} 9777then : 9778 printf %s "(cached) " >&6 9779else case e in #( 9780 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9781/* end confdefs.h. */ 9782int i; 9783int 9784main (void) 9785{ 9786 9787 ; 9788 return 0; 9789} 9790_ACEOF 9791if ac_fn_c_try_link "$LINENO" 9792then : 9793 eval $cacheid=yes 9794else case e in #( 9795 e) eval $cacheid=no ;; 9796esac 9797fi 9798rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9799 conftest$ac_exeext conftest.$ac_ext ;; 9800esac 9801fi 9802 9803 9804 CFLAGS="$xorg_testset_save_CFLAGS" 9805 9806 eval supported=\$$cacheid 9807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9808printf "%s\n" "$supported" >&6; } 9809 if test "$supported" = "yes" ; then 9810 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9811 found="yes" 9812 fi 9813 fi 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829xorg_testset_save_CFLAGS="$CFLAGS" 9830 9831if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9834printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9835if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9836then : 9837 printf %s "(cached) " >&6 9838else case e in #( 9839 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9840/* end confdefs.h. */ 9841int i; 9842_ACEOF 9843if ac_fn_c_try_compile "$LINENO" 9844then : 9845 xorg_cv_cc_flag_unknown_warning_option=yes 9846else case e in #( 9847 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9848esac 9849fi 9850rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9851esac 9852fi 9853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9854printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9855 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9856 CFLAGS="$xorg_testset_save_CFLAGS" 9857fi 9858 9859if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9861 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9862 fi 9863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9865printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9866if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9867then : 9868 printf %s "(cached) " >&6 9869else case e in #( 9870 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9871/* end confdefs.h. */ 9872int i; 9873_ACEOF 9874if ac_fn_c_try_compile "$LINENO" 9875then : 9876 xorg_cv_cc_flag_unused_command_line_argument=yes 9877else case e in #( 9878 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9879esac 9880fi 9881rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9882esac 9883fi 9884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9885printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9886 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9887 CFLAGS="$xorg_testset_save_CFLAGS" 9888fi 9889 9890found="no" 9891 9892 if test $found = "no" ; then 9893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9894 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9895 fi 9896 9897 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9899 fi 9900 9901 CFLAGS="$CFLAGS -Wmissing-braces" 9902 9903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9904printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9905 cacheid=xorg_cv_cc_flag__Wmissing_braces 9906 if eval test \${$cacheid+y} 9907then : 9908 printf %s "(cached) " >&6 9909else case e in #( 9910 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9911/* end confdefs.h. */ 9912int i; 9913int 9914main (void) 9915{ 9916 9917 ; 9918 return 0; 9919} 9920_ACEOF 9921if ac_fn_c_try_link "$LINENO" 9922then : 9923 eval $cacheid=yes 9924else case e in #( 9925 e) eval $cacheid=no ;; 9926esac 9927fi 9928rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9929 conftest$ac_exeext conftest.$ac_ext ;; 9930esac 9931fi 9932 9933 9934 CFLAGS="$xorg_testset_save_CFLAGS" 9935 9936 eval supported=\$$cacheid 9937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9938printf "%s\n" "$supported" >&6; } 9939 if test "$supported" = "yes" ; then 9940 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9941 found="yes" 9942 fi 9943 fi 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959xorg_testset_save_CFLAGS="$CFLAGS" 9960 9961if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9962 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9964printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9965if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9966then : 9967 printf %s "(cached) " >&6 9968else case e in #( 9969 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9970/* end confdefs.h. */ 9971int i; 9972_ACEOF 9973if ac_fn_c_try_compile "$LINENO" 9974then : 9975 xorg_cv_cc_flag_unknown_warning_option=yes 9976else case e in #( 9977 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9978esac 9979fi 9980rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9981esac 9982fi 9983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9984printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9985 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9986 CFLAGS="$xorg_testset_save_CFLAGS" 9987fi 9988 9989if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9990 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9991 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9992 fi 9993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9995printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9996if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9997then : 9998 printf %s "(cached) " >&6 9999else case e in #( 10000 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10001/* end confdefs.h. */ 10002int i; 10003_ACEOF 10004if ac_fn_c_try_compile "$LINENO" 10005then : 10006 xorg_cv_cc_flag_unused_command_line_argument=yes 10007else case e in #( 10008 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10009esac 10010fi 10011rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10012esac 10013fi 10014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10015printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10016 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10017 CFLAGS="$xorg_testset_save_CFLAGS" 10018fi 10019 10020found="no" 10021 10022 if test $found = "no" ; then 10023 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10025 fi 10026 10027 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10029 fi 10030 10031 CFLAGS="$CFLAGS -Wsequence-point" 10032 10033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 10034printf %s "checking if $CC supports -Wsequence-point... " >&6; } 10035 cacheid=xorg_cv_cc_flag__Wsequence_point 10036 if eval test \${$cacheid+y} 10037then : 10038 printf %s "(cached) " >&6 10039else case e in #( 10040 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10041/* end confdefs.h. */ 10042int i; 10043int 10044main (void) 10045{ 10046 10047 ; 10048 return 0; 10049} 10050_ACEOF 10051if ac_fn_c_try_link "$LINENO" 10052then : 10053 eval $cacheid=yes 10054else case e in #( 10055 e) eval $cacheid=no ;; 10056esac 10057fi 10058rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10059 conftest$ac_exeext conftest.$ac_ext ;; 10060esac 10061fi 10062 10063 10064 CFLAGS="$xorg_testset_save_CFLAGS" 10065 10066 eval supported=\$$cacheid 10067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10068printf "%s\n" "$supported" >&6; } 10069 if test "$supported" = "yes" ; then 10070 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 10071 found="yes" 10072 fi 10073 fi 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089xorg_testset_save_CFLAGS="$CFLAGS" 10090 10091if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10094printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10095if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10096then : 10097 printf %s "(cached) " >&6 10098else case e in #( 10099 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10100/* end confdefs.h. */ 10101int i; 10102_ACEOF 10103if ac_fn_c_try_compile "$LINENO" 10104then : 10105 xorg_cv_cc_flag_unknown_warning_option=yes 10106else case e in #( 10107 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10108esac 10109fi 10110rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10111esac 10112fi 10113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10114printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10115 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10116 CFLAGS="$xorg_testset_save_CFLAGS" 10117fi 10118 10119if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10121 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10122 fi 10123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10125printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10126if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10127then : 10128 printf %s "(cached) " >&6 10129else case e in #( 10130 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10131/* end confdefs.h. */ 10132int i; 10133_ACEOF 10134if ac_fn_c_try_compile "$LINENO" 10135then : 10136 xorg_cv_cc_flag_unused_command_line_argument=yes 10137else case e in #( 10138 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10139esac 10140fi 10141rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10142esac 10143fi 10144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10145printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10146 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10147 CFLAGS="$xorg_testset_save_CFLAGS" 10148fi 10149 10150found="no" 10151 10152 if test $found = "no" ; then 10153 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10154 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10155 fi 10156 10157 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10158 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10159 fi 10160 10161 CFLAGS="$CFLAGS -Wreturn-type" 10162 10163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 10164printf %s "checking if $CC supports -Wreturn-type... " >&6; } 10165 cacheid=xorg_cv_cc_flag__Wreturn_type 10166 if eval test \${$cacheid+y} 10167then : 10168 printf %s "(cached) " >&6 10169else case e in #( 10170 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10171/* end confdefs.h. */ 10172int i; 10173int 10174main (void) 10175{ 10176 10177 ; 10178 return 0; 10179} 10180_ACEOF 10181if ac_fn_c_try_link "$LINENO" 10182then : 10183 eval $cacheid=yes 10184else case e in #( 10185 e) eval $cacheid=no ;; 10186esac 10187fi 10188rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10189 conftest$ac_exeext conftest.$ac_ext ;; 10190esac 10191fi 10192 10193 10194 CFLAGS="$xorg_testset_save_CFLAGS" 10195 10196 eval supported=\$$cacheid 10197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10198printf "%s\n" "$supported" >&6; } 10199 if test "$supported" = "yes" ; then 10200 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 10201 found="yes" 10202 fi 10203 fi 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219xorg_testset_save_CFLAGS="$CFLAGS" 10220 10221if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10224printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10225if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10226then : 10227 printf %s "(cached) " >&6 10228else case e in #( 10229 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10230/* end confdefs.h. */ 10231int i; 10232_ACEOF 10233if ac_fn_c_try_compile "$LINENO" 10234then : 10235 xorg_cv_cc_flag_unknown_warning_option=yes 10236else case e in #( 10237 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10238esac 10239fi 10240rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10241esac 10242fi 10243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10244printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10245 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10246 CFLAGS="$xorg_testset_save_CFLAGS" 10247fi 10248 10249if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10250 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10251 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10252 fi 10253 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10255printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10256if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10257then : 10258 printf %s "(cached) " >&6 10259else case e in #( 10260 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10261/* end confdefs.h. */ 10262int i; 10263_ACEOF 10264if ac_fn_c_try_compile "$LINENO" 10265then : 10266 xorg_cv_cc_flag_unused_command_line_argument=yes 10267else case e in #( 10268 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10269esac 10270fi 10271rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10272esac 10273fi 10274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10275printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10276 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10277 CFLAGS="$xorg_testset_save_CFLAGS" 10278fi 10279 10280found="no" 10281 10282 if test $found = "no" ; then 10283 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10284 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10285 fi 10286 10287 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10289 fi 10290 10291 CFLAGS="$CFLAGS -Wtrigraphs" 10292 10293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10294printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10295 cacheid=xorg_cv_cc_flag__Wtrigraphs 10296 if eval test \${$cacheid+y} 10297then : 10298 printf %s "(cached) " >&6 10299else case e in #( 10300 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10301/* end confdefs.h. */ 10302int i; 10303int 10304main (void) 10305{ 10306 10307 ; 10308 return 0; 10309} 10310_ACEOF 10311if ac_fn_c_try_link "$LINENO" 10312then : 10313 eval $cacheid=yes 10314else case e in #( 10315 e) eval $cacheid=no ;; 10316esac 10317fi 10318rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10319 conftest$ac_exeext conftest.$ac_ext ;; 10320esac 10321fi 10322 10323 10324 CFLAGS="$xorg_testset_save_CFLAGS" 10325 10326 eval supported=\$$cacheid 10327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10328printf "%s\n" "$supported" >&6; } 10329 if test "$supported" = "yes" ; then 10330 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10331 found="yes" 10332 fi 10333 fi 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349xorg_testset_save_CFLAGS="$CFLAGS" 10350 10351if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10352 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10354printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10355if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10356then : 10357 printf %s "(cached) " >&6 10358else case e in #( 10359 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10360/* end confdefs.h. */ 10361int i; 10362_ACEOF 10363if ac_fn_c_try_compile "$LINENO" 10364then : 10365 xorg_cv_cc_flag_unknown_warning_option=yes 10366else case e in #( 10367 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10368esac 10369fi 10370rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10371esac 10372fi 10373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10374printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10375 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10376 CFLAGS="$xorg_testset_save_CFLAGS" 10377fi 10378 10379if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10382 fi 10383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10385printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10386if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10387then : 10388 printf %s "(cached) " >&6 10389else case e in #( 10390 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10391/* end confdefs.h. */ 10392int i; 10393_ACEOF 10394if ac_fn_c_try_compile "$LINENO" 10395then : 10396 xorg_cv_cc_flag_unused_command_line_argument=yes 10397else case e in #( 10398 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10399esac 10400fi 10401rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10402esac 10403fi 10404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10405printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10406 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10407 CFLAGS="$xorg_testset_save_CFLAGS" 10408fi 10409 10410found="no" 10411 10412 if test $found = "no" ; then 10413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10414 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10415 fi 10416 10417 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10419 fi 10420 10421 CFLAGS="$CFLAGS -Warray-bounds" 10422 10423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10424printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10425 cacheid=xorg_cv_cc_flag__Warray_bounds 10426 if eval test \${$cacheid+y} 10427then : 10428 printf %s "(cached) " >&6 10429else case e in #( 10430 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10431/* end confdefs.h. */ 10432int i; 10433int 10434main (void) 10435{ 10436 10437 ; 10438 return 0; 10439} 10440_ACEOF 10441if ac_fn_c_try_link "$LINENO" 10442then : 10443 eval $cacheid=yes 10444else case e in #( 10445 e) eval $cacheid=no ;; 10446esac 10447fi 10448rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10449 conftest$ac_exeext conftest.$ac_ext ;; 10450esac 10451fi 10452 10453 10454 CFLAGS="$xorg_testset_save_CFLAGS" 10455 10456 eval supported=\$$cacheid 10457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10458printf "%s\n" "$supported" >&6; } 10459 if test "$supported" = "yes" ; then 10460 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10461 found="yes" 10462 fi 10463 fi 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479xorg_testset_save_CFLAGS="$CFLAGS" 10480 10481if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10484printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10485if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10486then : 10487 printf %s "(cached) " >&6 10488else case e in #( 10489 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10490/* end confdefs.h. */ 10491int i; 10492_ACEOF 10493if ac_fn_c_try_compile "$LINENO" 10494then : 10495 xorg_cv_cc_flag_unknown_warning_option=yes 10496else case e in #( 10497 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10498esac 10499fi 10500rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10501esac 10502fi 10503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10504printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10505 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10506 CFLAGS="$xorg_testset_save_CFLAGS" 10507fi 10508 10509if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10511 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10512 fi 10513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10515printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10516if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10517then : 10518 printf %s "(cached) " >&6 10519else case e in #( 10520 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10521/* end confdefs.h. */ 10522int i; 10523_ACEOF 10524if ac_fn_c_try_compile "$LINENO" 10525then : 10526 xorg_cv_cc_flag_unused_command_line_argument=yes 10527else case e in #( 10528 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10529esac 10530fi 10531rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10532esac 10533fi 10534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10535printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10536 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10537 CFLAGS="$xorg_testset_save_CFLAGS" 10538fi 10539 10540found="no" 10541 10542 if test $found = "no" ; then 10543 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10544 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10545 fi 10546 10547 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10549 fi 10550 10551 CFLAGS="$CFLAGS -Wwrite-strings" 10552 10553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10554printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10555 cacheid=xorg_cv_cc_flag__Wwrite_strings 10556 if eval test \${$cacheid+y} 10557then : 10558 printf %s "(cached) " >&6 10559else case e in #( 10560 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10561/* end confdefs.h. */ 10562int i; 10563int 10564main (void) 10565{ 10566 10567 ; 10568 return 0; 10569} 10570_ACEOF 10571if ac_fn_c_try_link "$LINENO" 10572then : 10573 eval $cacheid=yes 10574else case e in #( 10575 e) eval $cacheid=no ;; 10576esac 10577fi 10578rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10579 conftest$ac_exeext conftest.$ac_ext ;; 10580esac 10581fi 10582 10583 10584 CFLAGS="$xorg_testset_save_CFLAGS" 10585 10586 eval supported=\$$cacheid 10587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10588printf "%s\n" "$supported" >&6; } 10589 if test "$supported" = "yes" ; then 10590 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10591 found="yes" 10592 fi 10593 fi 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609xorg_testset_save_CFLAGS="$CFLAGS" 10610 10611if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10612 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10614printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10615if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10616then : 10617 printf %s "(cached) " >&6 10618else case e in #( 10619 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10620/* end confdefs.h. */ 10621int i; 10622_ACEOF 10623if ac_fn_c_try_compile "$LINENO" 10624then : 10625 xorg_cv_cc_flag_unknown_warning_option=yes 10626else case e in #( 10627 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10628esac 10629fi 10630rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10631esac 10632fi 10633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10634printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10635 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10636 CFLAGS="$xorg_testset_save_CFLAGS" 10637fi 10638 10639if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10640 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10641 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10642 fi 10643 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10645printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10646if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10647then : 10648 printf %s "(cached) " >&6 10649else case e in #( 10650 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10651/* end confdefs.h. */ 10652int i; 10653_ACEOF 10654if ac_fn_c_try_compile "$LINENO" 10655then : 10656 xorg_cv_cc_flag_unused_command_line_argument=yes 10657else case e in #( 10658 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10659esac 10660fi 10661rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10662esac 10663fi 10664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10665printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10666 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10667 CFLAGS="$xorg_testset_save_CFLAGS" 10668fi 10669 10670found="no" 10671 10672 if test $found = "no" ; then 10673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10675 fi 10676 10677 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10679 fi 10680 10681 CFLAGS="$CFLAGS -Waddress" 10682 10683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10684printf %s "checking if $CC supports -Waddress... " >&6; } 10685 cacheid=xorg_cv_cc_flag__Waddress 10686 if eval test \${$cacheid+y} 10687then : 10688 printf %s "(cached) " >&6 10689else case e in #( 10690 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10691/* end confdefs.h. */ 10692int i; 10693int 10694main (void) 10695{ 10696 10697 ; 10698 return 0; 10699} 10700_ACEOF 10701if ac_fn_c_try_link "$LINENO" 10702then : 10703 eval $cacheid=yes 10704else case e in #( 10705 e) eval $cacheid=no ;; 10706esac 10707fi 10708rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10709 conftest$ac_exeext conftest.$ac_ext ;; 10710esac 10711fi 10712 10713 10714 CFLAGS="$xorg_testset_save_CFLAGS" 10715 10716 eval supported=\$$cacheid 10717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10718printf "%s\n" "$supported" >&6; } 10719 if test "$supported" = "yes" ; then 10720 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10721 found="yes" 10722 fi 10723 fi 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739xorg_testset_save_CFLAGS="$CFLAGS" 10740 10741if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10744printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10745if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10746then : 10747 printf %s "(cached) " >&6 10748else case e in #( 10749 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10750/* end confdefs.h. */ 10751int i; 10752_ACEOF 10753if ac_fn_c_try_compile "$LINENO" 10754then : 10755 xorg_cv_cc_flag_unknown_warning_option=yes 10756else case e in #( 10757 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10758esac 10759fi 10760rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10761esac 10762fi 10763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10764printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10765 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10766 CFLAGS="$xorg_testset_save_CFLAGS" 10767fi 10768 10769if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10770 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10771 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10772 fi 10773 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10775printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10776if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10777then : 10778 printf %s "(cached) " >&6 10779else case e in #( 10780 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10781/* end confdefs.h. */ 10782int i; 10783_ACEOF 10784if ac_fn_c_try_compile "$LINENO" 10785then : 10786 xorg_cv_cc_flag_unused_command_line_argument=yes 10787else case e in #( 10788 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10789esac 10790fi 10791rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10792esac 10793fi 10794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10795printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10796 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10797 CFLAGS="$xorg_testset_save_CFLAGS" 10798fi 10799 10800found="no" 10801 10802 if test $found = "no" ; then 10803 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10804 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10805 fi 10806 10807 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10809 fi 10810 10811 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10812 10813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10814printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10815 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10816 if eval test \${$cacheid+y} 10817then : 10818 printf %s "(cached) " >&6 10819else case e in #( 10820 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10821/* end confdefs.h. */ 10822int i; 10823int 10824main (void) 10825{ 10826 10827 ; 10828 return 0; 10829} 10830_ACEOF 10831if ac_fn_c_try_link "$LINENO" 10832then : 10833 eval $cacheid=yes 10834else case e in #( 10835 e) eval $cacheid=no ;; 10836esac 10837fi 10838rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10839 conftest$ac_exeext conftest.$ac_ext ;; 10840esac 10841fi 10842 10843 10844 CFLAGS="$xorg_testset_save_CFLAGS" 10845 10846 eval supported=\$$cacheid 10847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10848printf "%s\n" "$supported" >&6; } 10849 if test "$supported" = "yes" ; then 10850 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10851 found="yes" 10852 fi 10853 fi 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869xorg_testset_save_CFLAGS="$CFLAGS" 10870 10871if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10874printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10875if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10876then : 10877 printf %s "(cached) " >&6 10878else case e in #( 10879 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10880/* end confdefs.h. */ 10881int i; 10882_ACEOF 10883if ac_fn_c_try_compile "$LINENO" 10884then : 10885 xorg_cv_cc_flag_unknown_warning_option=yes 10886else case e in #( 10887 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10888esac 10889fi 10890rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10891esac 10892fi 10893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10894printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10895 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10896 CFLAGS="$xorg_testset_save_CFLAGS" 10897fi 10898 10899if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10900 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10901 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10902 fi 10903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10905printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10906if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10907then : 10908 printf %s "(cached) " >&6 10909else case e in #( 10910 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10911/* end confdefs.h. */ 10912int i; 10913_ACEOF 10914if ac_fn_c_try_compile "$LINENO" 10915then : 10916 xorg_cv_cc_flag_unused_command_line_argument=yes 10917else case e in #( 10918 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10919esac 10920fi 10921rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10922esac 10923fi 10924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10925printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10926 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10927 CFLAGS="$xorg_testset_save_CFLAGS" 10928fi 10929 10930found="no" 10931 10932 if test $found = "no" ; then 10933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10935 fi 10936 10937 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10939 fi 10940 10941 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10942 10943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10944printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10945 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10946 if eval test \${$cacheid+y} 10947then : 10948 printf %s "(cached) " >&6 10949else case e in #( 10950 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10951/* end confdefs.h. */ 10952int i; 10953int 10954main (void) 10955{ 10956 10957 ; 10958 return 0; 10959} 10960_ACEOF 10961if ac_fn_c_try_link "$LINENO" 10962then : 10963 eval $cacheid=yes 10964else case e in #( 10965 e) eval $cacheid=no ;; 10966esac 10967fi 10968rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10969 conftest$ac_exeext conftest.$ac_ext ;; 10970esac 10971fi 10972 10973 10974 CFLAGS="$xorg_testset_save_CFLAGS" 10975 10976 eval supported=\$$cacheid 10977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10978printf "%s\n" "$supported" >&6; } 10979 if test "$supported" = "yes" ; then 10980 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10981 found="yes" 10982 fi 10983 fi 10984 10985 10986fi 10987 10988 10989 10990 10991 10992 10993 10994 CWARNFLAGS="$BASE_CFLAGS" 10995 if test "x$GCC" = xyes ; then 10996 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10997 fi 10998 10999 11000 11001 11002 11003 11004 11005 11006# Check whether --enable-strict-compilation was given. 11007if test ${enable_strict_compilation+y} 11008then : 11009 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 11010else case e in #( 11011 e) STRICT_COMPILE=no ;; 11012esac 11013fi 11014 11015 11016 11017 11018 11019 11020STRICT_CFLAGS="" 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034xorg_testset_save_CFLAGS="$CFLAGS" 11035 11036if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11037 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11039printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11040if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11041then : 11042 printf %s "(cached) " >&6 11043else case e in #( 11044 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11045/* end confdefs.h. */ 11046int i; 11047_ACEOF 11048if ac_fn_c_try_compile "$LINENO" 11049then : 11050 xorg_cv_cc_flag_unknown_warning_option=yes 11051else case e in #( 11052 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11053esac 11054fi 11055rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11056esac 11057fi 11058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11059printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11060 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11061 CFLAGS="$xorg_testset_save_CFLAGS" 11062fi 11063 11064if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11067 fi 11068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11070printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11071if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11072then : 11073 printf %s "(cached) " >&6 11074else case e in #( 11075 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11076/* end confdefs.h. */ 11077int i; 11078_ACEOF 11079if ac_fn_c_try_compile "$LINENO" 11080then : 11081 xorg_cv_cc_flag_unused_command_line_argument=yes 11082else case e in #( 11083 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11084esac 11085fi 11086rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11087esac 11088fi 11089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11090printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11091 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11092 CFLAGS="$xorg_testset_save_CFLAGS" 11093fi 11094 11095found="no" 11096 11097 if test $found = "no" ; then 11098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11099 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11100 fi 11101 11102 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11104 fi 11105 11106 CFLAGS="$CFLAGS -pedantic" 11107 11108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 11109printf %s "checking if $CC supports -pedantic... " >&6; } 11110 cacheid=xorg_cv_cc_flag__pedantic 11111 if eval test \${$cacheid+y} 11112then : 11113 printf %s "(cached) " >&6 11114else case e in #( 11115 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11116/* end confdefs.h. */ 11117int i; 11118int 11119main (void) 11120{ 11121 11122 ; 11123 return 0; 11124} 11125_ACEOF 11126if ac_fn_c_try_link "$LINENO" 11127then : 11128 eval $cacheid=yes 11129else case e in #( 11130 e) eval $cacheid=no ;; 11131esac 11132fi 11133rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11134 conftest$ac_exeext conftest.$ac_ext ;; 11135esac 11136fi 11137 11138 11139 CFLAGS="$xorg_testset_save_CFLAGS" 11140 11141 eval supported=\$$cacheid 11142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11143printf "%s\n" "$supported" >&6; } 11144 if test "$supported" = "yes" ; then 11145 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 11146 found="yes" 11147 fi 11148 fi 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164xorg_testset_save_CFLAGS="$CFLAGS" 11165 11166if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11167 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11169printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11170if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11171then : 11172 printf %s "(cached) " >&6 11173else case e in #( 11174 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11175/* end confdefs.h. */ 11176int i; 11177_ACEOF 11178if ac_fn_c_try_compile "$LINENO" 11179then : 11180 xorg_cv_cc_flag_unknown_warning_option=yes 11181else case e in #( 11182 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11183esac 11184fi 11185rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11186esac 11187fi 11188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11189printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11190 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11191 CFLAGS="$xorg_testset_save_CFLAGS" 11192fi 11193 11194if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11196 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11197 fi 11198 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11200printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11201if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11202then : 11203 printf %s "(cached) " >&6 11204else case e in #( 11205 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11206/* end confdefs.h. */ 11207int i; 11208_ACEOF 11209if ac_fn_c_try_compile "$LINENO" 11210then : 11211 xorg_cv_cc_flag_unused_command_line_argument=yes 11212else case e in #( 11213 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11214esac 11215fi 11216rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11217esac 11218fi 11219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11220printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11221 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11222 CFLAGS="$xorg_testset_save_CFLAGS" 11223fi 11224 11225found="no" 11226 11227 if test $found = "no" ; then 11228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11230 fi 11231 11232 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11234 fi 11235 11236 CFLAGS="$CFLAGS -Werror" 11237 11238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11239printf %s "checking if $CC supports -Werror... " >&6; } 11240 cacheid=xorg_cv_cc_flag__Werror 11241 if eval test \${$cacheid+y} 11242then : 11243 printf %s "(cached) " >&6 11244else case e in #( 11245 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11246/* end confdefs.h. */ 11247int i; 11248int 11249main (void) 11250{ 11251 11252 ; 11253 return 0; 11254} 11255_ACEOF 11256if ac_fn_c_try_link "$LINENO" 11257then : 11258 eval $cacheid=yes 11259else case e in #( 11260 e) eval $cacheid=no ;; 11261esac 11262fi 11263rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11264 conftest$ac_exeext conftest.$ac_ext ;; 11265esac 11266fi 11267 11268 11269 CFLAGS="$xorg_testset_save_CFLAGS" 11270 11271 eval supported=\$$cacheid 11272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11273printf "%s\n" "$supported" >&6; } 11274 if test "$supported" = "yes" ; then 11275 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11276 found="yes" 11277 fi 11278 fi 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 -errwarn" 11290 11291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11292printf %s "checking if $CC supports -errwarn... " >&6; } 11293 cacheid=xorg_cv_cc_flag__errwarn 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 -errwarn" 11329 found="yes" 11330 fi 11331 fi 11332 11333 11334 11335# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11336# activate it with -Werror, so we add it here explicitly. 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350xorg_testset_save_CFLAGS="$CFLAGS" 11351 11352if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11353 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11355printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11356if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11357then : 11358 printf %s "(cached) " >&6 11359else case e in #( 11360 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11361/* end confdefs.h. */ 11362int i; 11363_ACEOF 11364if ac_fn_c_try_compile "$LINENO" 11365then : 11366 xorg_cv_cc_flag_unknown_warning_option=yes 11367else case e in #( 11368 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11369esac 11370fi 11371rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11372esac 11373fi 11374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11375printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11376 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11377 CFLAGS="$xorg_testset_save_CFLAGS" 11378fi 11379 11380if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11381 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11382 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11383 fi 11384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11386printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11387if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11388then : 11389 printf %s "(cached) " >&6 11390else case e in #( 11391 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11392/* end confdefs.h. */ 11393int i; 11394_ACEOF 11395if ac_fn_c_try_compile "$LINENO" 11396then : 11397 xorg_cv_cc_flag_unused_command_line_argument=yes 11398else case e in #( 11399 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11400esac 11401fi 11402rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11403esac 11404fi 11405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11406printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11407 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11408 CFLAGS="$xorg_testset_save_CFLAGS" 11409fi 11410 11411found="no" 11412 11413 if test $found = "no" ; then 11414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11415 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11416 fi 11417 11418 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11420 fi 11421 11422 CFLAGS="$CFLAGS -Werror=attributes" 11423 11424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11425printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11426 cacheid=xorg_cv_cc_flag__Werror_attributes 11427 if eval test \${$cacheid+y} 11428then : 11429 printf %s "(cached) " >&6 11430else case e in #( 11431 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11432/* end confdefs.h. */ 11433int i; 11434int 11435main (void) 11436{ 11437 11438 ; 11439 return 0; 11440} 11441_ACEOF 11442if ac_fn_c_try_link "$LINENO" 11443then : 11444 eval $cacheid=yes 11445else case e in #( 11446 e) eval $cacheid=no ;; 11447esac 11448fi 11449rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11450 conftest$ac_exeext conftest.$ac_ext ;; 11451esac 11452fi 11453 11454 11455 CFLAGS="$xorg_testset_save_CFLAGS" 11456 11457 eval supported=\$$cacheid 11458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11459printf "%s\n" "$supported" >&6; } 11460 if test "$supported" = "yes" ; then 11461 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11462 found="yes" 11463 fi 11464 fi 11465 11466 11467 11468if test "x$STRICT_COMPILE" = "xyes"; then 11469 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11470 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11471fi 11472 11473 11474 11475 11476 11477 11478 11479 11480cat >>confdefs.h <<_ACEOF 11481#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11482_ACEOF 11483 11484 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11485 if test "x$PVM" = "x"; then 11486 PVM="0" 11487 fi 11488 11489printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11490 11491 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11492 if test "x$PVP" = "x"; then 11493 PVP="0" 11494 fi 11495 11496printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11497 11498 11499 11500CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11501mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11502|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11503touch \$(top_srcdir)/ChangeLog; \ 11504echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11505 11506 11507 11508 11509macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11510INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11511mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11512|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11513touch \$(top_srcdir)/INSTALL; \ 11514echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11515 11516 11517 11518 11519 11520 11521case $host_os in 11522 solaris*) 11523 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11524 # check for a man page file found in later versions that use 11525 # traditional section numbers instead 11526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11527printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11528if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11529then : 11530 printf %s "(cached) " >&6 11531else case e in #( 11532 e) test "$cross_compiling" = yes && 11533 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11534if test -r "/usr/share/man/man7/attributes.7"; then 11535 ac_cv_file__usr_share_man_man7_attributes_7=yes 11536else 11537 ac_cv_file__usr_share_man_man7_attributes_7=no 11538fi ;; 11539esac 11540fi 11541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11542printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11543if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11544then : 11545 SYSV_MAN_SECTIONS=false 11546else case e in #( 11547 e) SYSV_MAN_SECTIONS=true ;; 11548esac 11549fi 11550 11551 ;; 11552 *) SYSV_MAN_SECTIONS=false ;; 11553esac 11554 11555if test x$APP_MAN_SUFFIX = x ; then 11556 APP_MAN_SUFFIX=1 11557fi 11558if test x$APP_MAN_DIR = x ; then 11559 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11560fi 11561 11562if test x$LIB_MAN_SUFFIX = x ; then 11563 LIB_MAN_SUFFIX=3 11564fi 11565if test x$LIB_MAN_DIR = x ; then 11566 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11567fi 11568 11569if test x$FILE_MAN_SUFFIX = x ; then 11570 case $SYSV_MAN_SECTIONS in 11571 true) FILE_MAN_SUFFIX=4 ;; 11572 *) FILE_MAN_SUFFIX=5 ;; 11573 esac 11574fi 11575if test x$FILE_MAN_DIR = x ; then 11576 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11577fi 11578 11579if test x$MISC_MAN_SUFFIX = x ; then 11580 case $SYSV_MAN_SECTIONS in 11581 true) MISC_MAN_SUFFIX=5 ;; 11582 *) MISC_MAN_SUFFIX=7 ;; 11583 esac 11584fi 11585if test x$MISC_MAN_DIR = x ; then 11586 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11587fi 11588 11589if test x$DRIVER_MAN_SUFFIX = x ; then 11590 case $SYSV_MAN_SECTIONS in 11591 true) DRIVER_MAN_SUFFIX=7 ;; 11592 *) DRIVER_MAN_SUFFIX=4 ;; 11593 esac 11594fi 11595if test x$DRIVER_MAN_DIR = x ; then 11596 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11597fi 11598 11599if test x$ADMIN_MAN_SUFFIX = x ; then 11600 case $SYSV_MAN_SECTIONS in 11601 true) ADMIN_MAN_SUFFIX=1m ;; 11602 *) ADMIN_MAN_SUFFIX=8 ;; 11603 esac 11604fi 11605if test x$ADMIN_MAN_DIR = x ; then 11606 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11607fi 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623XORG_MAN_PAGE="X Version 11" 11624 11625MAN_SUBSTS="\ 11626 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11627 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11628 -e 's|__xservername__|Xorg|g' \ 11629 -e 's|__xconfigfile__|xorg.conf|g' \ 11630 -e 's|__projectroot__|\$(prefix)|g' \ 11631 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11632 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11633 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11634 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11635 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11636 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11637 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11638 11639 11640 11641 11642AM_DEFAULT_VERBOSITY=0 11643 11644 11645 11646ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" 11647if test "x$ac_cv_func_asprintf" = xyes 11648then : 11649 printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h 11650 11651fi 11652ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" 11653if test "x$ac_cv_func_mkstemp" = xyes 11654then : 11655 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h 11656 11657fi 11658ac_fn_c_check_func "$LINENO" "mktemp" "ac_cv_func_mktemp" 11659if test "x$ac_cv_func_mktemp" = xyes 11660then : 11661 printf "%s\n" "#define HAVE_MKTEMP 1" >>confdefs.h 11662 11663fi 11664 11665 11666# Checks for pkg-config packages 11667 11668pkg_failed=no 11669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SMPROXY" >&5 11670printf %s "checking for SMPROXY... " >&6; } 11671 11672if test -n "$SMPROXY_CFLAGS"; then 11673 pkg_cv_SMPROXY_CFLAGS="$SMPROXY_CFLAGS" 11674 elif test -n "$PKG_CONFIG"; then 11675 if test -n "$PKG_CONFIG" && \ 11676 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sm ice xt xmuu\""; } >&5 11677 ($PKG_CONFIG --exists --print-errors "sm ice xt xmuu") 2>&5 11678 ac_status=$? 11679 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11680 test $ac_status = 0; }; then 11681 pkg_cv_SMPROXY_CFLAGS=`$PKG_CONFIG --cflags "sm ice xt xmuu" 2>/dev/null` 11682 test "x$?" != "x0" && pkg_failed=yes 11683else 11684 pkg_failed=yes 11685fi 11686 else 11687 pkg_failed=untried 11688fi 11689if test -n "$SMPROXY_LIBS"; then 11690 pkg_cv_SMPROXY_LIBS="$SMPROXY_LIBS" 11691 elif test -n "$PKG_CONFIG"; then 11692 if test -n "$PKG_CONFIG" && \ 11693 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sm ice xt xmuu\""; } >&5 11694 ($PKG_CONFIG --exists --print-errors "sm ice xt xmuu") 2>&5 11695 ac_status=$? 11696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11697 test $ac_status = 0; }; then 11698 pkg_cv_SMPROXY_LIBS=`$PKG_CONFIG --libs "sm ice xt xmuu" 2>/dev/null` 11699 test "x$?" != "x0" && pkg_failed=yes 11700else 11701 pkg_failed=yes 11702fi 11703 else 11704 pkg_failed=untried 11705fi 11706 11707 11708 11709if test $pkg_failed = yes; then 11710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11711printf "%s\n" "no" >&6; } 11712 11713if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11714 _pkg_short_errors_supported=yes 11715else 11716 _pkg_short_errors_supported=no 11717fi 11718 if test $_pkg_short_errors_supported = yes; then 11719 SMPROXY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sm ice xt xmuu" 2>&1` 11720 else 11721 SMPROXY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sm ice xt xmuu" 2>&1` 11722 fi 11723 # Put the nasty error message in config.log where it belongs 11724 echo "$SMPROXY_PKG_ERRORS" >&5 11725 11726 as_fn_error $? "Package requirements (sm ice xt xmuu) were not met: 11727 11728$SMPROXY_PKG_ERRORS 11729 11730Consider adjusting the PKG_CONFIG_PATH environment variable if you 11731installed software in a non-standard prefix. 11732 11733Alternatively, you may set the environment variables SMPROXY_CFLAGS 11734and SMPROXY_LIBS to avoid the need to call pkg-config. 11735See the pkg-config man page for more details." "$LINENO" 5 11736elif test $pkg_failed = untried; then 11737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11738printf "%s\n" "no" >&6; } 11739 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11740printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11741as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11742is in your PATH or set the PKG_CONFIG environment variable to the full 11743path to pkg-config. 11744 11745Alternatively, you may set the environment variables SMPROXY_CFLAGS 11746and SMPROXY_LIBS to avoid the need to call pkg-config. 11747See the pkg-config man page for more details. 11748 11749To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11750See 'config.log' for more details" "$LINENO" 5; } 11751else 11752 SMPROXY_CFLAGS=$pkg_cv_SMPROXY_CFLAGS 11753 SMPROXY_LIBS=$pkg_cv_SMPROXY_LIBS 11754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11755printf "%s\n" "yes" >&6; } 11756 11757fi 11758 11759ac_config_files="$ac_config_files Makefile man/Makefile" 11760 11761cat >confcache <<\_ACEOF 11762# This file is a shell script that caches the results of configure 11763# tests run on this system so they can be shared between configure 11764# scripts and configure runs, see configure's option --config-cache. 11765# It is not useful on other systems. If it contains results you don't 11766# want to keep, you may remove or edit it. 11767# 11768# config.status only pays attention to the cache file if you give it 11769# the --recheck option to rerun configure. 11770# 11771# 'ac_cv_env_foo' variables (set or unset) will be overridden when 11772# loading this file, other *unset* 'ac_cv_foo' will be assigned the 11773# following values. 11774 11775_ACEOF 11776 11777# The following way of writing the cache mishandles newlines in values, 11778# but we know of no workaround that is simple, portable, and efficient. 11779# So, we kill variables containing newlines. 11780# Ultrix sh set writes to stderr and can't be redirected directly, 11781# and sets the high bit in the cache file unless we assign to the vars. 11782( 11783 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11784 eval ac_val=\$$ac_var 11785 case $ac_val in #( 11786 *${as_nl}*) 11787 case $ac_var in #( 11788 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11789printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11790 esac 11791 case $ac_var in #( 11792 _ | IFS | as_nl) ;; #( 11793 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11794 *) { eval $ac_var=; unset $ac_var;} ;; 11795 esac ;; 11796 esac 11797 done 11798 11799 (set) 2>&1 | 11800 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11801 *${as_nl}ac_space=\ *) 11802 # 'set' does not quote correctly, so add quotes: double-quote 11803 # substitution turns \\\\ into \\, and sed turns \\ into \. 11804 sed -n \ 11805 "s/'/'\\\\''/g; 11806 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11807 ;; #( 11808 *) 11809 # 'set' quotes correctly as required by POSIX, so do not add quotes. 11810 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11811 ;; 11812 esac | 11813 sort 11814) | 11815 sed ' 11816 /^ac_cv_env_/b end 11817 t clear 11818 :clear 11819 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11820 t end 11821 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11822 :end' >>confcache 11823if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11824 if test -w "$cache_file"; then 11825 if test "x$cache_file" != "x/dev/null"; then 11826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11827printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11828 if test ! -f "$cache_file" || test -h "$cache_file"; then 11829 cat confcache >"$cache_file" 11830 else 11831 case $cache_file in #( 11832 */* | ?:*) 11833 mv -f confcache "$cache_file"$$ && 11834 mv -f "$cache_file"$$ "$cache_file" ;; #( 11835 *) 11836 mv -f confcache "$cache_file" ;; 11837 esac 11838 fi 11839 fi 11840 else 11841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11842printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11843 fi 11844fi 11845rm -f confcache 11846 11847test "x$prefix" = xNONE && prefix=$ac_default_prefix 11848# Let make expand exec_prefix. 11849test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11850 11851DEFS=-DHAVE_CONFIG_H 11852 11853ac_libobjs= 11854ac_ltlibobjs= 11855U= 11856for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11857 # 1. Remove the extension, and $U if already installed. 11858 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11859 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11860 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11861 # will be set to the directory where LIBOBJS objects are built. 11862 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11863 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11864done 11865LIBOBJS=$ac_libobjs 11866 11867LTLIBOBJS=$ac_ltlibobjs 11868 11869 11870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11871printf %s "checking that generated files are newer than configure... " >&6; } 11872 if test -n "$am_sleep_pid"; then 11873 # Hide warnings about reused PIDs. 11874 wait $am_sleep_pid 2>/dev/null 11875 fi 11876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11877printf "%s\n" "done" >&6; } 11878case $enable_silent_rules in # ((( 11879 yes) AM_DEFAULT_VERBOSITY=0;; 11880 no) AM_DEFAULT_VERBOSITY=1;; 11881esac 11882if test $am_cv_make_support_nested_variables = yes; then 11883 AM_V='$(V)' 11884 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11885else 11886 AM_V=$AM_DEFAULT_VERBOSITY 11887 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11888fi 11889 11890 if test -n "$EXEEXT"; then 11891 am__EXEEXT_TRUE= 11892 am__EXEEXT_FALSE='#' 11893else 11894 am__EXEEXT_TRUE='#' 11895 am__EXEEXT_FALSE= 11896fi 11897 11898if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11899 as_fn_error $? "conditional \"AMDEP\" was never defined. 11900Usually this means the macro was only invoked conditionally." "$LINENO" 5 11901fi 11902if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11903 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11904Usually this means the macro was only invoked conditionally." "$LINENO" 5 11905fi 11906 11907: "${CONFIG_STATUS=./config.status}" 11908ac_write_fail=0 11909ac_clean_files_save=$ac_clean_files 11910ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11912printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11913as_write_fail=0 11914cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11915#! $SHELL 11916# Generated by $as_me. 11917# Run this file to recreate the current configuration. 11918# Compiler output produced by configure, useful for debugging 11919# configure, is in config.log if it exists. 11920 11921debug=false 11922ac_cs_recheck=false 11923ac_cs_silent=false 11924 11925SHELL=\${CONFIG_SHELL-$SHELL} 11926export SHELL 11927_ASEOF 11928cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11929## -------------------- ## 11930## M4sh Initialization. ## 11931## -------------------- ## 11932 11933# Be more Bourne compatible 11934DUALCASE=1; export DUALCASE # for MKS sh 11935if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11936then : 11937 emulate sh 11938 NULLCMD=: 11939 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11940 # is contrary to our usage. Disable this feature. 11941 alias -g '${1+"$@"}'='"$@"' 11942 setopt NO_GLOB_SUBST 11943else case e in #( 11944 e) case `(set -o) 2>/dev/null` in #( 11945 *posix*) : 11946 set -o posix ;; #( 11947 *) : 11948 ;; 11949esac ;; 11950esac 11951fi 11952 11953 11954 11955# Reset variables that may have inherited troublesome values from 11956# the environment. 11957 11958# IFS needs to be set, to space, tab, and newline, in precisely that order. 11959# (If _AS_PATH_WALK were called with IFS unset, it would have the 11960# side effect of setting IFS to empty, thus disabling word splitting.) 11961# Quoting is to prevent editors from complaining about space-tab. 11962as_nl=' 11963' 11964export as_nl 11965IFS=" "" $as_nl" 11966 11967PS1='$ ' 11968PS2='> ' 11969PS4='+ ' 11970 11971# Ensure predictable behavior from utilities with locale-dependent output. 11972LC_ALL=C 11973export LC_ALL 11974LANGUAGE=C 11975export LANGUAGE 11976 11977# We cannot yet rely on "unset" to work, but we need these variables 11978# to be unset--not just set to an empty or harmless value--now, to 11979# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 11980# also avoids known problems related to "unset" and subshell syntax 11981# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 11982for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 11983do eval test \${$as_var+y} \ 11984 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11985done 11986 11987# Ensure that fds 0, 1, and 2 are open. 11988if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 11989if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 11990if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 11991 11992# The user is always right. 11993if ${PATH_SEPARATOR+false} :; then 11994 PATH_SEPARATOR=: 11995 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11996 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11997 PATH_SEPARATOR=';' 11998 } 11999fi 12000 12001 12002# Find who we are. Look in the path if we contain no directory separator. 12003as_myself= 12004case $0 in #(( 12005 *[\\/]* ) as_myself=$0 ;; 12006 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12007for as_dir in $PATH 12008do 12009 IFS=$as_save_IFS 12010 case $as_dir in #((( 12011 '') as_dir=./ ;; 12012 */) ;; 12013 *) as_dir=$as_dir/ ;; 12014 esac 12015 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 12016 done 12017IFS=$as_save_IFS 12018 12019 ;; 12020esac 12021# We did not find ourselves, most probably we were run as 'sh COMMAND' 12022# in which case we are not to be found in the path. 12023if test "x$as_myself" = x; then 12024 as_myself=$0 12025fi 12026if test ! -f "$as_myself"; then 12027 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12028 exit 1 12029fi 12030 12031 12032 12033# as_fn_error STATUS ERROR [LINENO LOG_FD] 12034# ---------------------------------------- 12035# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12036# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12037# script with STATUS, using 1 if that was 0. 12038as_fn_error () 12039{ 12040 as_status=$1; test $as_status -eq 0 && as_status=1 12041 if test "$4"; then 12042 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12044 fi 12045 printf "%s\n" "$as_me: error: $2" >&2 12046 as_fn_exit $as_status 12047} # as_fn_error 12048 12049 12050# as_fn_set_status STATUS 12051# ----------------------- 12052# Set $? to STATUS, without forking. 12053as_fn_set_status () 12054{ 12055 return $1 12056} # as_fn_set_status 12057 12058# as_fn_exit STATUS 12059# ----------------- 12060# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12061as_fn_exit () 12062{ 12063 set +e 12064 as_fn_set_status $1 12065 exit $1 12066} # as_fn_exit 12067 12068# as_fn_unset VAR 12069# --------------- 12070# Portably unset VAR. 12071as_fn_unset () 12072{ 12073 { eval $1=; unset $1;} 12074} 12075as_unset=as_fn_unset 12076 12077# as_fn_append VAR VALUE 12078# ---------------------- 12079# Append the text in VALUE to the end of the definition contained in VAR. Take 12080# advantage of any shell optimizations that allow amortized linear growth over 12081# repeated appends, instead of the typical quadratic growth present in naive 12082# implementations. 12083if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 12084then : 12085 eval 'as_fn_append () 12086 { 12087 eval $1+=\$2 12088 }' 12089else case e in #( 12090 e) as_fn_append () 12091 { 12092 eval $1=\$$1\$2 12093 } ;; 12094esac 12095fi # as_fn_append 12096 12097# as_fn_arith ARG... 12098# ------------------ 12099# Perform arithmetic evaluation on the ARGs, and store the result in the 12100# global $as_val. Take advantage of shells that can avoid forks. The arguments 12101# must be portable across $(()) and expr. 12102if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 12103then : 12104 eval 'as_fn_arith () 12105 { 12106 as_val=$(( $* )) 12107 }' 12108else case e in #( 12109 e) as_fn_arith () 12110 { 12111 as_val=`expr "$@" || test $? -eq 1` 12112 } ;; 12113esac 12114fi # as_fn_arith 12115 12116 12117if expr a : '\(a\)' >/dev/null 2>&1 && 12118 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12119 as_expr=expr 12120else 12121 as_expr=false 12122fi 12123 12124if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12125 as_basename=basename 12126else 12127 as_basename=false 12128fi 12129 12130if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12131 as_dirname=dirname 12132else 12133 as_dirname=false 12134fi 12135 12136as_me=`$as_basename -- "$0" || 12137$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12138 X"$0" : 'X\(//\)$' \| \ 12139 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12140printf "%s\n" X/"$0" | 12141 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12142 s//\1/ 12143 q 12144 } 12145 /^X\/\(\/\/\)$/{ 12146 s//\1/ 12147 q 12148 } 12149 /^X\/\(\/\).*/{ 12150 s//\1/ 12151 q 12152 } 12153 s/.*/./; q'` 12154 12155# Avoid depending upon Character Ranges. 12156as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12157as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12158as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12159as_cr_digits='0123456789' 12160as_cr_alnum=$as_cr_Letters$as_cr_digits 12161 12162 12163# Determine whether it's possible to make 'echo' print without a newline. 12164# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 12165# for compatibility with existing Makefiles. 12166ECHO_C= ECHO_N= ECHO_T= 12167case `echo -n x` in #((((( 12168-n*) 12169 case `echo 'xy\c'` in 12170 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12171 xy) ECHO_C='\c';; 12172 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12173 ECHO_T=' ';; 12174 esac;; 12175*) 12176 ECHO_N='-n';; 12177esac 12178 12179# For backward compatibility with old third-party macros, we provide 12180# the shell variables $as_echo and $as_echo_n. New code should use 12181# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12182as_echo='printf %s\n' 12183as_echo_n='printf %s' 12184 12185rm -f conf$$ conf$$.exe conf$$.file 12186if test -d conf$$.dir; then 12187 rm -f conf$$.dir/conf$$.file 12188else 12189 rm -f conf$$.dir 12190 mkdir conf$$.dir 2>/dev/null 12191fi 12192if (echo >conf$$.file) 2>/dev/null; then 12193 if ln -s conf$$.file conf$$ 2>/dev/null; then 12194 as_ln_s='ln -s' 12195 # ... but there are two gotchas: 12196 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 12197 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 12198 # In both cases, we have to default to 'cp -pR'. 12199 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12200 as_ln_s='cp -pR' 12201 elif ln conf$$.file conf$$ 2>/dev/null; then 12202 as_ln_s=ln 12203 else 12204 as_ln_s='cp -pR' 12205 fi 12206else 12207 as_ln_s='cp -pR' 12208fi 12209rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12210rmdir conf$$.dir 2>/dev/null 12211 12212 12213# as_fn_mkdir_p 12214# ------------- 12215# Create "$as_dir" as a directory, including parents if necessary. 12216as_fn_mkdir_p () 12217{ 12218 12219 case $as_dir in #( 12220 -*) as_dir=./$as_dir;; 12221 esac 12222 test -d "$as_dir" || eval $as_mkdir_p || { 12223 as_dirs= 12224 while :; do 12225 case $as_dir in #( 12226 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12227 *) as_qdir=$as_dir;; 12228 esac 12229 as_dirs="'$as_qdir' $as_dirs" 12230 as_dir=`$as_dirname -- "$as_dir" || 12231$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12232 X"$as_dir" : 'X\(//\)[^/]' \| \ 12233 X"$as_dir" : 'X\(//\)$' \| \ 12234 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12235printf "%s\n" X"$as_dir" | 12236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12237 s//\1/ 12238 q 12239 } 12240 /^X\(\/\/\)[^/].*/{ 12241 s//\1/ 12242 q 12243 } 12244 /^X\(\/\/\)$/{ 12245 s//\1/ 12246 q 12247 } 12248 /^X\(\/\).*/{ 12249 s//\1/ 12250 q 12251 } 12252 s/.*/./; q'` 12253 test -d "$as_dir" && break 12254 done 12255 test -z "$as_dirs" || eval "mkdir $as_dirs" 12256 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12257 12258 12259} # as_fn_mkdir_p 12260if mkdir -p . 2>/dev/null; then 12261 as_mkdir_p='mkdir -p "$as_dir"' 12262else 12263 test -d ./-p && rmdir ./-p 12264 as_mkdir_p=false 12265fi 12266 12267 12268# as_fn_executable_p FILE 12269# ----------------------- 12270# Test if FILE is an executable regular file. 12271as_fn_executable_p () 12272{ 12273 test -f "$1" && test -x "$1" 12274} # as_fn_executable_p 12275as_test_x='test -x' 12276as_executable_p=as_fn_executable_p 12277 12278# Sed expression to map a string onto a valid CPP name. 12279as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 12280as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 12281 12282# Sed expression to map a string onto a valid variable name. 12283as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 12284as_tr_sh="eval sed '$as_sed_sh'" # deprecated 12285 12286 12287exec 6>&1 12288## ----------------------------------- ## 12289## Main body of $CONFIG_STATUS script. ## 12290## ----------------------------------- ## 12291_ASEOF 12292test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12293 12294cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12295# Save the log message, to keep $0 and so on meaningful, and to 12296# report actual input values of CONFIG_FILES etc. instead of their 12297# values after options handling. 12298ac_log=" 12299This file was extended by smproxy $as_me 1.0.8, which was 12300generated by GNU Autoconf 2.72. Invocation command line was 12301 12302 CONFIG_FILES = $CONFIG_FILES 12303 CONFIG_HEADERS = $CONFIG_HEADERS 12304 CONFIG_LINKS = $CONFIG_LINKS 12305 CONFIG_COMMANDS = $CONFIG_COMMANDS 12306 $ $0 $@ 12307 12308on `(hostname || uname -n) 2>/dev/null | sed 1q` 12309" 12310 12311_ACEOF 12312 12313case $ac_config_files in *" 12314"*) set x $ac_config_files; shift; ac_config_files=$*;; 12315esac 12316 12317case $ac_config_headers in *" 12318"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12319esac 12320 12321 12322cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12323# Files that config.status was made for. 12324config_files="$ac_config_files" 12325config_headers="$ac_config_headers" 12326config_commands="$ac_config_commands" 12327 12328_ACEOF 12329 12330cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12331ac_cs_usage="\ 12332'$as_me' instantiates files and other configuration actions 12333from templates according to the current configuration. Unless the files 12334and actions are specified as TAGs, all are instantiated by default. 12335 12336Usage: $0 [OPTION]... [TAG]... 12337 12338 -h, --help print this help, then exit 12339 -V, --version print version number and configuration settings, then exit 12340 --config print configuration, then exit 12341 -q, --quiet, --silent 12342 do not print progress messages 12343 -d, --debug don't remove temporary files 12344 --recheck update $as_me by reconfiguring in the same conditions 12345 --file=FILE[:TEMPLATE] 12346 instantiate the configuration file FILE 12347 --header=FILE[:TEMPLATE] 12348 instantiate the configuration header FILE 12349 12350Configuration files: 12351$config_files 12352 12353Configuration headers: 12354$config_headers 12355 12356Configuration commands: 12357$config_commands 12358 12359Report bugs to <https://gitlab.freedesktop.org/xorg/app/smproxy/-/issues>." 12360 12361_ACEOF 12362ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12363ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12364cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12365ac_cs_config='$ac_cs_config_escaped' 12366ac_cs_version="\\ 12367smproxy config.status 1.0.8 12368configured by $0, generated by GNU Autoconf 2.72, 12369 with options \\"\$ac_cs_config\\" 12370 12371Copyright (C) 2023 Free Software Foundation, Inc. 12372This config.status script is free software; the Free Software Foundation 12373gives unlimited permission to copy, distribute and modify it." 12374 12375ac_pwd='$ac_pwd' 12376srcdir='$srcdir' 12377INSTALL='$INSTALL' 12378MKDIR_P='$MKDIR_P' 12379AWK='$AWK' 12380test -n "\$AWK" || AWK=awk 12381_ACEOF 12382 12383cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12384# The default lists apply if the user does not specify any file. 12385ac_need_defaults=: 12386while test $# != 0 12387do 12388 case $1 in 12389 --*=?*) 12390 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12391 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12392 ac_shift=: 12393 ;; 12394 --*=) 12395 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12396 ac_optarg= 12397 ac_shift=: 12398 ;; 12399 *) 12400 ac_option=$1 12401 ac_optarg=$2 12402 ac_shift=shift 12403 ;; 12404 esac 12405 12406 case $ac_option in 12407 # Handling of the options. 12408 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12409 ac_cs_recheck=: ;; 12410 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12411 printf "%s\n" "$ac_cs_version"; exit ;; 12412 --config | --confi | --conf | --con | --co | --c ) 12413 printf "%s\n" "$ac_cs_config"; exit ;; 12414 --debug | --debu | --deb | --de | --d | -d ) 12415 debug=: ;; 12416 --file | --fil | --fi | --f ) 12417 $ac_shift 12418 case $ac_optarg in 12419 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12420 '') as_fn_error $? "missing file argument" ;; 12421 esac 12422 as_fn_append CONFIG_FILES " '$ac_optarg'" 12423 ac_need_defaults=false;; 12424 --header | --heade | --head | --hea ) 12425 $ac_shift 12426 case $ac_optarg in 12427 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12428 esac 12429 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12430 ac_need_defaults=false;; 12431 --he | --h) 12432 # Conflict between --help and --header 12433 as_fn_error $? "ambiguous option: '$1' 12434Try '$0 --help' for more information.";; 12435 --help | --hel | -h ) 12436 printf "%s\n" "$ac_cs_usage"; exit ;; 12437 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12438 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12439 ac_cs_silent=: ;; 12440 12441 # This is an error. 12442 -*) as_fn_error $? "unrecognized option: '$1' 12443Try '$0 --help' for more information." ;; 12444 12445 *) as_fn_append ac_config_targets " $1" 12446 ac_need_defaults=false ;; 12447 12448 esac 12449 shift 12450done 12451 12452ac_configure_extra_args= 12453 12454if $ac_cs_silent; then 12455 exec 6>/dev/null 12456 ac_configure_extra_args="$ac_configure_extra_args --silent" 12457fi 12458 12459_ACEOF 12460cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12461if \$ac_cs_recheck; then 12462 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12463 shift 12464 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12465 CONFIG_SHELL='$SHELL' 12466 export CONFIG_SHELL 12467 exec "\$@" 12468fi 12469 12470_ACEOF 12471cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12472exec 5>>config.log 12473{ 12474 echo 12475 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12476## Running $as_me. ## 12477_ASBOX 12478 printf "%s\n" "$ac_log" 12479} >&5 12480 12481_ACEOF 12482cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12483# 12484# INIT-COMMANDS 12485# 12486AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12487 12488_ACEOF 12489 12490cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12491 12492# Handling of arguments. 12493for ac_config_target in $ac_config_targets 12494do 12495 case $ac_config_target in 12496 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12497 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12498 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12499 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12500 12501 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 12502 esac 12503done 12504 12505 12506# If the user did not use the arguments to specify the items to instantiate, 12507# then the envvar interface is used. Set only those that are not. 12508# We use the long form for the default assignment because of an extremely 12509# bizarre bug on SunOS 4.1.3. 12510if $ac_need_defaults; then 12511 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12512 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12513 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12514fi 12515 12516# Have a temporary directory for convenience. Make it in the build tree 12517# simply because there is no reason against having it here, and in addition, 12518# creating and moving files from /tmp can sometimes cause problems. 12519# Hook for its removal unless debugging. 12520# Note that there is a small window in which the directory will not be cleaned: 12521# after its creation but before its name has been assigned to '$tmp'. 12522$debug || 12523{ 12524 tmp= ac_tmp= 12525 trap 'exit_status=$? 12526 : "${ac_tmp:=$tmp}" 12527 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12528' 0 12529 trap 'as_fn_exit 1' 1 2 13 15 12530} 12531# Create a (secure) tmp directory for tmp files. 12532 12533{ 12534 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12535 test -d "$tmp" 12536} || 12537{ 12538 tmp=./conf$$-$RANDOM 12539 (umask 077 && mkdir "$tmp") 12540} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12541ac_tmp=$tmp 12542 12543# Set up the scripts for CONFIG_FILES section. 12544# No need to generate them if there are no CONFIG_FILES. 12545# This happens for instance with './config.status config.h'. 12546if test -n "$CONFIG_FILES"; then 12547 12548 12549ac_cr=`echo X | tr X '\015'` 12550# On cygwin, bash can eat \r inside `` if the user requested igncr. 12551# But we know of no other shell where ac_cr would be empty at this 12552# point, so we can use a bashism as a fallback. 12553if test "x$ac_cr" = x; then 12554 eval ac_cr=\$\'\\r\' 12555fi 12556ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12557if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12558 ac_cs_awk_cr='\\r' 12559else 12560 ac_cs_awk_cr=$ac_cr 12561fi 12562 12563echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12564_ACEOF 12565 12566 12567{ 12568 echo "cat >conf$$subs.awk <<_ACEOF" && 12569 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12570 echo "_ACEOF" 12571} >conf$$subs.sh || 12572 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12573ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12574ac_delim='%!_!# ' 12575for ac_last_try in false false false false false :; do 12576 . ./conf$$subs.sh || 12577 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12578 12579 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12580 if test $ac_delim_n = $ac_delim_num; then 12581 break 12582 elif $ac_last_try; then 12583 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12584 else 12585 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12586 fi 12587done 12588rm -f conf$$subs.sh 12589 12590cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12591cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12592_ACEOF 12593sed -n ' 12594h 12595s/^/S["/; s/!.*/"]=/ 12596p 12597g 12598s/^[^!]*!// 12599:repl 12600t repl 12601s/'"$ac_delim"'$// 12602t delim 12603:nl 12604h 12605s/\(.\{148\}\)..*/\1/ 12606t more1 12607s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12608p 12609n 12610b repl 12611:more1 12612s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12613p 12614g 12615s/.\{148\}// 12616t nl 12617:delim 12618h 12619s/\(.\{148\}\)..*/\1/ 12620t more2 12621s/["\\]/\\&/g; s/^/"/; s/$/"/ 12622p 12623b 12624:more2 12625s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12626p 12627g 12628s/.\{148\}// 12629t delim 12630' <conf$$subs.awk | sed ' 12631/^[^""]/{ 12632 N 12633 s/\n// 12634} 12635' >>$CONFIG_STATUS || ac_write_fail=1 12636rm -f conf$$subs.awk 12637cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12638_ACAWK 12639cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12640 for (key in S) S_is_set[key] = 1 12641 FS = "" 12642 12643} 12644{ 12645 line = $ 0 12646 nfields = split(line, field, "@") 12647 substed = 0 12648 len = length(field[1]) 12649 for (i = 2; i < nfields; i++) { 12650 key = field[i] 12651 keylen = length(key) 12652 if (S_is_set[key]) { 12653 value = S[key] 12654 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12655 len += length(value) + length(field[++i]) 12656 substed = 1 12657 } else 12658 len += 1 + keylen 12659 } 12660 12661 print line 12662} 12663 12664_ACAWK 12665_ACEOF 12666cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12667if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12668 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12669else 12670 cat 12671fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12672 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12673_ACEOF 12674 12675# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12676# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12677# trailing colons and then remove the whole line if VPATH becomes empty 12678# (actually we leave an empty line to preserve line numbers). 12679if test "x$srcdir" = x.; then 12680 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12681h 12682s/// 12683s/^/:/ 12684s/[ ]*$/:/ 12685s/:\$(srcdir):/:/g 12686s/:\${srcdir}:/:/g 12687s/:@srcdir@:/:/g 12688s/^:*// 12689s/:*$// 12690x 12691s/\(=[ ]*\).*/\1/ 12692G 12693s/\n// 12694s/^[^=]*=[ ]*$// 12695}' 12696fi 12697 12698cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12699fi # test -n "$CONFIG_FILES" 12700 12701# Set up the scripts for CONFIG_HEADERS section. 12702# No need to generate them if there are no CONFIG_HEADERS. 12703# This happens for instance with './config.status Makefile'. 12704if test -n "$CONFIG_HEADERS"; then 12705cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12706BEGIN { 12707_ACEOF 12708 12709# Transform confdefs.h into an awk script 'defines.awk', embedded as 12710# here-document in config.status, that substitutes the proper values into 12711# config.h.in to produce config.h. 12712 12713# Create a delimiter string that does not exist in confdefs.h, to ease 12714# handling of long lines. 12715ac_delim='%!_!# ' 12716for ac_last_try in false false :; do 12717 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12718 if test -z "$ac_tt"; then 12719 break 12720 elif $ac_last_try; then 12721 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12722 else 12723 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12724 fi 12725done 12726 12727# For the awk script, D is an array of macro values keyed by name, 12728# likewise P contains macro parameters if any. Preserve backslash 12729# newline sequences. 12730 12731ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12732sed -n ' 12733s/.\{148\}/&'"$ac_delim"'/g 12734t rset 12735:rset 12736s/^[ ]*#[ ]*define[ ][ ]*/ / 12737t def 12738d 12739:def 12740s/\\$// 12741t bsnl 12742s/["\\]/\\&/g 12743s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12744D["\1"]=" \3"/p 12745s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12746d 12747:bsnl 12748s/["\\]/\\&/g 12749s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12750D["\1"]=" \3\\\\\\n"\\/p 12751t cont 12752s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12753t cont 12754d 12755:cont 12756n 12757s/.\{148\}/&'"$ac_delim"'/g 12758t clear 12759:clear 12760s/\\$// 12761t bsnlc 12762s/["\\]/\\&/g; s/^/"/; s/$/"/p 12763d 12764:bsnlc 12765s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12766b cont 12767' <confdefs.h | sed ' 12768s/'"$ac_delim"'/"\\\ 12769"/g' >>$CONFIG_STATUS || ac_write_fail=1 12770 12771cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12772 for (key in D) D_is_set[key] = 1 12773 FS = "" 12774} 12775/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12776 line = \$ 0 12777 split(line, arg, " ") 12778 if (arg[1] == "#") { 12779 defundef = arg[2] 12780 mac1 = arg[3] 12781 } else { 12782 defundef = substr(arg[1], 2) 12783 mac1 = arg[2] 12784 } 12785 split(mac1, mac2, "(") #) 12786 macro = mac2[1] 12787 prefix = substr(line, 1, index(line, defundef) - 1) 12788 if (D_is_set[macro]) { 12789 # Preserve the white space surrounding the "#". 12790 print prefix "define", macro P[macro] D[macro] 12791 next 12792 } else { 12793 # Replace #undef with comments. This is necessary, for example, 12794 # in the case of _POSIX_SOURCE, which is predefined and required 12795 # on some systems where configure will not decide to define it. 12796 if (defundef == "undef") { 12797 print "/*", prefix defundef, macro, "*/" 12798 next 12799 } 12800 } 12801} 12802{ print } 12803_ACAWK 12804_ACEOF 12805cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12806 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12807fi # test -n "$CONFIG_HEADERS" 12808 12809 12810eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12811shift 12812for ac_tag 12813do 12814 case $ac_tag in 12815 :[FHLC]) ac_mode=$ac_tag; continue;; 12816 esac 12817 case $ac_mode$ac_tag in 12818 :[FHL]*:*);; 12819 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 12820 :[FH]-) ac_tag=-:-;; 12821 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12822 esac 12823 ac_save_IFS=$IFS 12824 IFS=: 12825 set x $ac_tag 12826 IFS=$ac_save_IFS 12827 shift 12828 ac_file=$1 12829 shift 12830 12831 case $ac_mode in 12832 :L) ac_source=$1;; 12833 :[FH]) 12834 ac_file_inputs= 12835 for ac_f 12836 do 12837 case $ac_f in 12838 -) ac_f="$ac_tmp/stdin";; 12839 *) # Look for the file first in the build tree, then in the source tree 12840 # (if the path is not absolute). The absolute path cannot be DOS-style, 12841 # because $ac_f cannot contain ':'. 12842 test -f "$ac_f" || 12843 case $ac_f in 12844 [\\/$]*) false;; 12845 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12846 esac || 12847 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 12848 esac 12849 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12850 as_fn_append ac_file_inputs " '$ac_f'" 12851 done 12852 12853 # Let's still pretend it is 'configure' which instantiates (i.e., don't 12854 # use $as_me), people would be surprised to read: 12855 # /* config.h. Generated by config.status. */ 12856 configure_input='Generated from '` 12857 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12858 `' by configure.' 12859 if test x"$ac_file" != x-; then 12860 configure_input="$ac_file. $configure_input" 12861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12862printf "%s\n" "$as_me: creating $ac_file" >&6;} 12863 fi 12864 # Neutralize special characters interpreted by sed in replacement strings. 12865 case $configure_input in #( 12866 *\&* | *\|* | *\\* ) 12867 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12868 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12869 *) ac_sed_conf_input=$configure_input;; 12870 esac 12871 12872 case $ac_tag in 12873 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12874 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12875 esac 12876 ;; 12877 esac 12878 12879 ac_dir=`$as_dirname -- "$ac_file" || 12880$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12881 X"$ac_file" : 'X\(//\)[^/]' \| \ 12882 X"$ac_file" : 'X\(//\)$' \| \ 12883 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12884printf "%s\n" X"$ac_file" | 12885 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12886 s//\1/ 12887 q 12888 } 12889 /^X\(\/\/\)[^/].*/{ 12890 s//\1/ 12891 q 12892 } 12893 /^X\(\/\/\)$/{ 12894 s//\1/ 12895 q 12896 } 12897 /^X\(\/\).*/{ 12898 s//\1/ 12899 q 12900 } 12901 s/.*/./; q'` 12902 as_dir="$ac_dir"; as_fn_mkdir_p 12903 ac_builddir=. 12904 12905case "$ac_dir" in 12906.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12907*) 12908 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12909 # A ".." for each directory in $ac_dir_suffix. 12910 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12911 case $ac_top_builddir_sub in 12912 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12913 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12914 esac ;; 12915esac 12916ac_abs_top_builddir=$ac_pwd 12917ac_abs_builddir=$ac_pwd$ac_dir_suffix 12918# for backward compatibility: 12919ac_top_builddir=$ac_top_build_prefix 12920 12921case $srcdir in 12922 .) # We are building in place. 12923 ac_srcdir=. 12924 ac_top_srcdir=$ac_top_builddir_sub 12925 ac_abs_top_srcdir=$ac_pwd ;; 12926 [\\/]* | ?:[\\/]* ) # Absolute name. 12927 ac_srcdir=$srcdir$ac_dir_suffix; 12928 ac_top_srcdir=$srcdir 12929 ac_abs_top_srcdir=$srcdir ;; 12930 *) # Relative name. 12931 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12932 ac_top_srcdir=$ac_top_build_prefix$srcdir 12933 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12934esac 12935ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12936 12937 12938 case $ac_mode in 12939 :F) 12940 # 12941 # CONFIG_FILE 12942 # 12943 12944 case $INSTALL in 12945 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12946 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12947 esac 12948 ac_MKDIR_P=$MKDIR_P 12949 case $MKDIR_P in 12950 [\\/$]* | ?:[\\/]* ) ;; 12951 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12952 esac 12953_ACEOF 12954 12955cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12956# If the template does not know about datarootdir, expand it. 12957# FIXME: This hack should be removed a few years after 2.60. 12958ac_datarootdir_hack=; ac_datarootdir_seen= 12959ac_sed_dataroot=' 12960/datarootdir/ { 12961 p 12962 q 12963} 12964/@datadir@/p 12965/@docdir@/p 12966/@infodir@/p 12967/@localedir@/p 12968/@mandir@/p' 12969case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12970*datarootdir*) ac_datarootdir_seen=yes;; 12971*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12973printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12974_ACEOF 12975cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12976 ac_datarootdir_hack=' 12977 s&@datadir@&$datadir&g 12978 s&@docdir@&$docdir&g 12979 s&@infodir@&$infodir&g 12980 s&@localedir@&$localedir&g 12981 s&@mandir@&$mandir&g 12982 s&\\\${datarootdir}&$datarootdir&g' ;; 12983esac 12984_ACEOF 12985 12986# Neutralize VPATH when '$srcdir' = '.'. 12987# Shell code in configure.ac might set extrasub. 12988# FIXME: do we really want to maintain this feature? 12989cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12990ac_sed_extra="$ac_vpsub 12991$extrasub 12992_ACEOF 12993cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12994:t 12995/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12996s|@configure_input@|$ac_sed_conf_input|;t t 12997s&@top_builddir@&$ac_top_builddir_sub&;t t 12998s&@top_build_prefix@&$ac_top_build_prefix&;t t 12999s&@srcdir@&$ac_srcdir&;t t 13000s&@abs_srcdir@&$ac_abs_srcdir&;t t 13001s&@top_srcdir@&$ac_top_srcdir&;t t 13002s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13003s&@builddir@&$ac_builddir&;t t 13004s&@abs_builddir@&$ac_abs_builddir&;t t 13005s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13006s&@INSTALL@&$ac_INSTALL&;t t 13007s&@MKDIR_P@&$ac_MKDIR_P&;t t 13008$ac_datarootdir_hack 13009" 13010eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13011 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13012 13013test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13014 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13015 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13016 "$ac_tmp/out"`; test -z "$ac_out"; } && 13017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13018which seems to be undefined. Please make sure it is defined" >&5 13019printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13020which seems to be undefined. Please make sure it is defined" >&2;} 13021 13022 rm -f "$ac_tmp/stdin" 13023 case $ac_file in 13024 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13025 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13026 esac \ 13027 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13028 ;; 13029 :H) 13030 # 13031 # CONFIG_HEADER 13032 # 13033 if test x"$ac_file" != x-; then 13034 { 13035 printf "%s\n" "/* $configure_input */" >&1 \ 13036 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13037 } >"$ac_tmp/config.h" \ 13038 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13039 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13041printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 13042 else 13043 rm -f "$ac_file" 13044 mv "$ac_tmp/config.h" "$ac_file" \ 13045 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13046 fi 13047 else 13048 printf "%s\n" "/* $configure_input */" >&1 \ 13049 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13050 || as_fn_error $? "could not create -" "$LINENO" 5 13051 fi 13052# Compute "$ac_file"'s index in $config_headers. 13053_am_arg="$ac_file" 13054_am_stamp_count=1 13055for _am_header in $config_headers :; do 13056 case $_am_header in 13057 $_am_arg | $_am_arg:* ) 13058 break ;; 13059 * ) 13060 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13061 esac 13062done 13063echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13064$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13065 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13066 X"$_am_arg" : 'X\(//\)$' \| \ 13067 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13068printf "%s\n" X"$_am_arg" | 13069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13070 s//\1/ 13071 q 13072 } 13073 /^X\(\/\/\)[^/].*/{ 13074 s//\1/ 13075 q 13076 } 13077 /^X\(\/\/\)$/{ 13078 s//\1/ 13079 q 13080 } 13081 /^X\(\/\).*/{ 13082 s//\1/ 13083 q 13084 } 13085 s/.*/./; q'`/stamp-h$_am_stamp_count 13086 ;; 13087 13088 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13089printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 13090 ;; 13091 esac 13092 13093 13094 case $ac_file$ac_mode in 13095 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13096 # Older Autoconf quotes --file arguments for eval, but not when files 13097 # are listed without --file. Let's play safe and only enable the eval 13098 # if we detect the quoting. 13099 # TODO: see whether this extra hack can be removed once we start 13100 # requiring Autoconf 2.70 or later. 13101 case $CONFIG_FILES in #( 13102 *\'*) : 13103 eval set x "$CONFIG_FILES" ;; #( 13104 *) : 13105 set x $CONFIG_FILES ;; #( 13106 *) : 13107 ;; 13108esac 13109 shift 13110 # Used to flag and report bootstrapping failures. 13111 am_rc=0 13112 for am_mf 13113 do 13114 # Strip MF so we end up with the name of the file. 13115 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 13116 # Check whether this is an Automake generated Makefile which includes 13117 # dependency-tracking related rules and includes. 13118 # Grep'ing the whole file directly is not great: AIX grep has a line 13119 # limit of 2048, but all sed's we know have understand at least 4000. 13120 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13121 || continue 13122 am_dirpart=`$as_dirname -- "$am_mf" || 13123$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13124 X"$am_mf" : 'X\(//\)[^/]' \| \ 13125 X"$am_mf" : 'X\(//\)$' \| \ 13126 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13127printf "%s\n" X"$am_mf" | 13128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13129 s//\1/ 13130 q 13131 } 13132 /^X\(\/\/\)[^/].*/{ 13133 s//\1/ 13134 q 13135 } 13136 /^X\(\/\/\)$/{ 13137 s//\1/ 13138 q 13139 } 13140 /^X\(\/\).*/{ 13141 s//\1/ 13142 q 13143 } 13144 s/.*/./; q'` 13145 am_filepart=`$as_basename -- "$am_mf" || 13146$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13147 X"$am_mf" : 'X\(//\)$' \| \ 13148 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13149printf "%s\n" X/"$am_mf" | 13150 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13151 s//\1/ 13152 q 13153 } 13154 /^X\/\(\/\/\)$/{ 13155 s//\1/ 13156 q 13157 } 13158 /^X\/\(\/\).*/{ 13159 s//\1/ 13160 q 13161 } 13162 s/.*/./; q'` 13163 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13164 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13165 | $MAKE -f - am--depfiles" >&5 13166 (cd "$am_dirpart" \ 13167 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13168 | $MAKE -f - am--depfiles) >&5 2>&5 13169 ac_status=$? 13170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13171 (exit $ac_status); } || am_rc=$? 13172 done 13173 if test $am_rc -ne 0; then 13174 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13175printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13176as_fn_error $? "Something went wrong bootstrapping makefile fragments 13177 for automatic dependency tracking. If GNU make was not used, consider 13178 re-running the configure script with MAKE=\"gmake\" (or whatever is 13179 necessary). You can also try re-running configure with the 13180 '--disable-dependency-tracking' option to at least be able to build 13181 the package (albeit without support for automatic dependency tracking). 13182See 'config.log' for more details" "$LINENO" 5; } 13183 fi 13184 { am_dirpart=; unset am_dirpart;} 13185 { am_filepart=; unset am_filepart;} 13186 { am_mf=; unset am_mf;} 13187 { am_rc=; unset am_rc;} 13188 rm -f conftest-deps.mk 13189} 13190 ;; 13191 13192 esac 13193done # for ac_tag 13194 13195 13196as_fn_exit 0 13197_ACEOF 13198ac_clean_files=$ac_clean_files_save 13199 13200test $ac_write_fail = 0 || 13201 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13202 13203 13204# configure is writing to config.log, and then calls config.status. 13205# config.status does its own redirection, appending to config.log. 13206# Unfortunately, on DOS this fails, as config.log is still kept open 13207# by configure, so config.status won't be able to write to it; its 13208# output is simply discarded. So we exec the FD to /dev/null, 13209# effectively closing config.log, so it can be properly (re)opened and 13210# appended to by config.status. When coming back to configure, we 13211# need to make the FD available again. 13212if test "$no_create" != yes; then 13213 ac_cs_success=: 13214 ac_config_status_args= 13215 test "$silent" = yes && 13216 ac_config_status_args="$ac_config_status_args --quiet" 13217 exec 5>/dev/null 13218 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13219 exec 5>>config.log 13220 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13221 # would make configure fail if this is the last instruction. 13222 $ac_cs_success || as_fn_exit 1 13223fi 13224if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13226printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13227fi 13228 13229 13230