configure revision 16e5c272
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for lndir 1.0.4. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/util/lndir/-/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 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 20as_nop=: 21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 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="as_nop=: 144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 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 \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177fi 178test x\$exitcode = x0 || exit 1 179blah=\$(echo \$(echo blah)) 180test x\"\$blah\" = xblah || exit 1 181test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186test \$(( 1 + 1 )) = 2 || exit 1" 187 if (eval "$as_required") 2>/dev/null 188then : 189 as_have_required=yes 190else $as_nop 191 as_have_required=no 192fi 193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 194then : 195 196else $as_nop 197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 198as_found=false 199for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 200do 201 IFS=$as_save_IFS 202 case $as_dir in #((( 203 '') as_dir=./ ;; 204 */) ;; 205 *) as_dir=$as_dir/ ;; 206 esac 207 as_found=: 208 case $as_dir in #( 209 /*) 210 for as_base in sh bash ksh sh5; do 211 # Try only shells that exist, to save several forks. 212 as_shell=$as_dir$as_base 213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 215then : 216 CONFIG_SHELL=$as_shell as_have_required=yes 217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 218then : 219 break 2 220fi 221fi 222 done;; 223 esac 224 as_found=false 225done 226IFS=$as_save_IFS 227if $as_found 228then : 229 230else $as_nop 231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 233then : 234 CONFIG_SHELL=$SHELL as_have_required=yes 235fi 236fi 237 238 239 if test "x$CONFIG_SHELL" != x 240then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno 263then : 264 printf "%s\n" "$0: This script requires a shell more modern than all" 265 printf "%s\n" "$0: the shells that I found on your system." 266 if test ${ZSH_VERSION+y} ; then 267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 269 else 270 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 271$0: https://gitlab.freedesktop.org/xorg/util/lndir/-/issues 272$0: about your system, including any error possibly output 273$0: before this message. Then install a modern shell, or 274$0: manually run the script under such a shell if you do 275$0: have one." 276 fi 277 exit 1 278fi 279fi 280fi 281SHELL=${CONFIG_SHELL-/bin/sh} 282export SHELL 283# Unset more variables known to interfere with behavior of common tools. 284CLICOLOR_FORCE= GREP_OPTIONS= 285unset CLICOLOR_FORCE GREP_OPTIONS 286 287## --------------------- ## 288## M4sh Shell Functions. ## 289## --------------------- ## 290# as_fn_unset VAR 291# --------------- 292# Portably unset VAR. 293as_fn_unset () 294{ 295 { eval $1=; unset $1;} 296} 297as_unset=as_fn_unset 298 299 300# as_fn_set_status STATUS 301# ----------------------- 302# Set $? to STATUS, without forking. 303as_fn_set_status () 304{ 305 return $1 306} # as_fn_set_status 307 308# as_fn_exit STATUS 309# ----------------- 310# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 311as_fn_exit () 312{ 313 set +e 314 as_fn_set_status $1 315 exit $1 316} # as_fn_exit 317# as_fn_nop 318# --------- 319# Do nothing but, unlike ":", preserve the value of $?. 320as_fn_nop () 321{ 322 return $? 323} 324as_nop=as_fn_nop 325 326# as_fn_mkdir_p 327# ------------- 328# Create "$as_dir" as a directory, including parents if necessary. 329as_fn_mkdir_p () 330{ 331 332 case $as_dir in #( 333 -*) as_dir=./$as_dir;; 334 esac 335 test -d "$as_dir" || eval $as_mkdir_p || { 336 as_dirs= 337 while :; do 338 case $as_dir in #( 339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 340 *) as_qdir=$as_dir;; 341 esac 342 as_dirs="'$as_qdir' $as_dirs" 343 as_dir=`$as_dirname -- "$as_dir" || 344$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 345 X"$as_dir" : 'X\(//\)[^/]' \| \ 346 X"$as_dir" : 'X\(//\)$' \| \ 347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 348printf "%s\n" X"$as_dir" | 349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 350 s//\1/ 351 q 352 } 353 /^X\(\/\/\)[^/].*/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\/\)$/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\).*/{ 362 s//\1/ 363 q 364 } 365 s/.*/./; q'` 366 test -d "$as_dir" && break 367 done 368 test -z "$as_dirs" || eval "mkdir $as_dirs" 369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 370 371 372} # as_fn_mkdir_p 373 374# as_fn_executable_p FILE 375# ----------------------- 376# Test if FILE is an executable regular file. 377as_fn_executable_p () 378{ 379 test -f "$1" && test -x "$1" 380} # as_fn_executable_p 381# as_fn_append VAR VALUE 382# ---------------------- 383# Append the text in VALUE to the end of the definition contained in VAR. Take 384# advantage of any shell optimizations that allow amortized linear growth over 385# repeated appends, instead of the typical quadratic growth present in naive 386# implementations. 387if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 388then : 389 eval 'as_fn_append () 390 { 391 eval $1+=\$2 392 }' 393else $as_nop 394 as_fn_append () 395 { 396 eval $1=\$$1\$2 397 } 398fi # as_fn_append 399 400# as_fn_arith ARG... 401# ------------------ 402# Perform arithmetic evaluation on the ARGs, and store the result in the 403# global $as_val. Take advantage of shells that can avoid forks. The arguments 404# must be portable across $(()) and expr. 405if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 406then : 407 eval 'as_fn_arith () 408 { 409 as_val=$(( $* )) 410 }' 411else $as_nop 412 as_fn_arith () 413 { 414 as_val=`expr "$@" || test $? -eq 1` 415 } 416fi # as_fn_arith 417 418# as_fn_nop 419# --------- 420# Do nothing but, unlike ":", preserve the value of $?. 421as_fn_nop () 422{ 423 return $? 424} 425as_nop=as_fn_nop 426 427# as_fn_error STATUS ERROR [LINENO LOG_FD] 428# ---------------------------------------- 429# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 430# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 431# script with STATUS, using 1 if that was 0. 432as_fn_error () 433{ 434 as_status=$1; test $as_status -eq 0 && as_status=1 435 if test "$4"; then 436 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 438 fi 439 printf "%s\n" "$as_me: error: $2" >&2 440 as_fn_exit $as_status 441} # as_fn_error 442 443if expr a : '\(a\)' >/dev/null 2>&1 && 444 test "X`expr 00001 : '.*\(...\)'`" = X001; then 445 as_expr=expr 446else 447 as_expr=false 448fi 449 450if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 451 as_basename=basename 452else 453 as_basename=false 454fi 455 456if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 457 as_dirname=dirname 458else 459 as_dirname=false 460fi 461 462as_me=`$as_basename -- "$0" || 463$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 464 X"$0" : 'X\(//\)$' \| \ 465 X"$0" : 'X\(/\)' \| . 2>/dev/null || 466printf "%s\n" X/"$0" | 467 sed '/^.*\/\([^/][^/]*\)\/*$/{ 468 s//\1/ 469 q 470 } 471 /^X\/\(\/\/\)$/{ 472 s//\1/ 473 q 474 } 475 /^X\/\(\/\).*/{ 476 s//\1/ 477 q 478 } 479 s/.*/./; q'` 480 481# Avoid depending upon Character Ranges. 482as_cr_letters='abcdefghijklmnopqrstuvwxyz' 483as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 484as_cr_Letters=$as_cr_letters$as_cr_LETTERS 485as_cr_digits='0123456789' 486as_cr_alnum=$as_cr_Letters$as_cr_digits 487 488 489 as_lineno_1=$LINENO as_lineno_1a=$LINENO 490 as_lineno_2=$LINENO as_lineno_2a=$LINENO 491 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 492 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 493 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 494 sed -n ' 495 p 496 /[$]LINENO/= 497 ' <$as_myself | 498 sed ' 499 s/[$]LINENO.*/&-/ 500 t lineno 501 b 502 :lineno 503 N 504 :loop 505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 506 t loop 507 s/-\n.*// 508 ' >$as_me.lineno && 509 chmod +x "$as_me.lineno" || 510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 511 512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 513 # already done that, so ensure we don't try to do so again and fall 514 # in an infinite loop. This has already happened in practice. 515 _as_can_reexec=no; export _as_can_reexec 516 # Don't try to exec as it changes $[0], causing all sort of problems 517 # (the dirname of $[0] is not the place where we might find the 518 # original and so on. Autoconf is especially sensitive to this). 519 . "./$as_me.lineno" 520 # Exit status is that of the last command. 521 exit 522} 523 524 525# Determine whether it's possible to make 'echo' print without a newline. 526# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 527# for compatibility with existing Makefiles. 528ECHO_C= ECHO_N= ECHO_T= 529case `echo -n x` in #((((( 530-n*) 531 case `echo 'xy\c'` in 532 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 533 xy) ECHO_C='\c';; 534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 535 ECHO_T=' ';; 536 esac;; 537*) 538 ECHO_N='-n';; 539esac 540 541# For backward compatibility with old third-party macros, we provide 542# the shell variables $as_echo and $as_echo_n. New code should use 543# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 544as_echo='printf %s\n' 545as_echo_n='printf %s' 546 547 548rm -f conf$$ conf$$.exe conf$$.file 549if test -d conf$$.dir; then 550 rm -f conf$$.dir/conf$$.file 551else 552 rm -f conf$$.dir 553 mkdir conf$$.dir 2>/dev/null 554fi 555if (echo >conf$$.file) 2>/dev/null; then 556 if ln -s conf$$.file conf$$ 2>/dev/null; then 557 as_ln_s='ln -s' 558 # ... but there are two gotchas: 559 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 560 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 561 # In both cases, we have to default to `cp -pR'. 562 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 563 as_ln_s='cp -pR' 564 elif ln conf$$.file conf$$ 2>/dev/null; then 565 as_ln_s=ln 566 else 567 as_ln_s='cp -pR' 568 fi 569else 570 as_ln_s='cp -pR' 571fi 572rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 573rmdir conf$$.dir 2>/dev/null 574 575if mkdir -p . 2>/dev/null; then 576 as_mkdir_p='mkdir -p "$as_dir"' 577else 578 test -d ./-p && rmdir ./-p 579 as_mkdir_p=false 580fi 581 582as_test_x='test -x' 583as_executable_p=as_fn_executable_p 584 585# Sed expression to map a string onto a valid CPP name. 586as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 587 588# Sed expression to map a string onto a valid variable name. 589as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 590 591 592test -n "$DJDIR" || exec 7<&0 </dev/null 593exec 6>&1 594 595# Name of the host. 596# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 597# so uname gets run too. 598ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 599 600# 601# Initializations. 602# 603ac_default_prefix=/usr/local 604ac_clean_files= 605ac_config_libobj_dir=. 606LIBOBJS= 607cross_compiling=no 608subdirs= 609MFLAGS= 610MAKEFLAGS= 611 612# Identity of this package. 613PACKAGE_NAME='lndir' 614PACKAGE_TARNAME='lndir' 615PACKAGE_VERSION='1.0.4' 616PACKAGE_STRING='lndir 1.0.4' 617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/util/lndir/-/issues' 618PACKAGE_URL='' 619 620ac_unique_file="Makefile.am" 621# Factoring default headers for most tests. 622ac_includes_default="\ 623#include <stddef.h> 624#ifdef HAVE_STDIO_H 625# include <stdio.h> 626#endif 627#ifdef HAVE_STDLIB_H 628# include <stdlib.h> 629#endif 630#ifdef HAVE_STRING_H 631# include <string.h> 632#endif 633#ifdef HAVE_INTTYPES_H 634# include <inttypes.h> 635#endif 636#ifdef HAVE_STDINT_H 637# include <stdint.h> 638#endif 639#ifdef HAVE_STRINGS_H 640# include <strings.h> 641#endif 642#ifdef HAVE_SYS_TYPES_H 643# include <sys/types.h> 644#endif 645#ifdef HAVE_SYS_STAT_H 646# include <sys/stat.h> 647#endif 648#ifdef HAVE_UNISTD_H 649# include <unistd.h> 650#endif" 651 652ac_header_c_list= 653ac_subst_vars='am__EXEEXT_FALSE 654am__EXEEXT_TRUE 655LTLIBOBJS 656LIBOBJS 657LIBBSD_LIBS 658LIBBSD_CFLAGS 659XPROTO_LIBS 660XPROTO_CFLAGS 661MAN_SUBSTS 662XORG_MAN_PAGE 663ADMIN_MAN_DIR 664DRIVER_MAN_DIR 665MISC_MAN_DIR 666FILE_MAN_DIR 667LIB_MAN_DIR 668APP_MAN_DIR 669ADMIN_MAN_SUFFIX 670DRIVER_MAN_SUFFIX 671MISC_MAN_SUFFIX 672FILE_MAN_SUFFIX 673LIB_MAN_SUFFIX 674APP_MAN_SUFFIX 675SED 676host_os 677host_vendor 678host_cpu 679host 680build_os 681build_vendor 682build_cpu 683build 684INSTALL_CMD 685PKG_CONFIG_LIBDIR 686PKG_CONFIG_PATH 687PKG_CONFIG 688CHANGELOG_CMD 689STRICT_CFLAGS 690CWARNFLAGS 691BASE_CFLAGS 692AM_BACKSLASH 693AM_DEFAULT_VERBOSITY 694AM_DEFAULT_V 695AM_V 696CSCOPE 697ETAGS 698CTAGS 699am__fastdepCC_FALSE 700am__fastdepCC_TRUE 701CCDEPMODE 702am__nodep 703AMDEPBACKSLASH 704AMDEP_FALSE 705AMDEP_TRUE 706am__include 707DEPDIR 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 731OBJEXT 732EXEEXT 733ac_ct_CC 734CPPFLAGS 735LDFLAGS 736CFLAGS 737CC 738target_alias 739host_alias 740build_alias 741LIBS 742ECHO_T 743ECHO_N 744ECHO_C 745DEFS 746mandir 747localedir 748libdir 749psdir 750pdfdir 751dvidir 752htmldir 753infodir 754docdir 755oldincludedir 756includedir 757runstatedir 758localstatedir 759sharedstatedir 760sysconfdir 761datadir 762datarootdir 763libexecdir 764sbindir 765bindir 766program_transform_name 767prefix 768exec_prefix 769PACKAGE_URL 770PACKAGE_BUGREPORT 771PACKAGE_STRING 772PACKAGE_VERSION 773PACKAGE_TARNAME 774PACKAGE_NAME 775PATH_SEPARATOR 776SHELL 777am__quote' 778ac_subst_files='' 779ac_user_opts=' 780enable_option_checking 781enable_dependency_tracking 782enable_silent_rules 783enable_selective_werror 784enable_strict_compilation 785enable_largefile 786' 787 ac_precious_vars='build_alias 788host_alias 789target_alias 790CC 791CFLAGS 792LDFLAGS 793LIBS 794CPPFLAGS 795PKG_CONFIG 796PKG_CONFIG_PATH 797PKG_CONFIG_LIBDIR 798XPROTO_CFLAGS 799XPROTO_LIBS 800LIBBSD_CFLAGS 801LIBBSD_LIBS' 802 803 804# Initialize some variables set by options. 805ac_init_help= 806ac_init_version=false 807ac_unrecognized_opts= 808ac_unrecognized_sep= 809# The variables have the same names as the options, with 810# dashes changed to underlines. 811cache_file=/dev/null 812exec_prefix=NONE 813no_create= 814no_recursion= 815prefix=NONE 816program_prefix=NONE 817program_suffix=NONE 818program_transform_name=s,x,x, 819silent= 820site= 821srcdir= 822verbose= 823x_includes=NONE 824x_libraries=NONE 825 826# Installation directory options. 827# These are left unexpanded so users can "make install exec_prefix=/foo" 828# and all the variables that are supposed to be based on exec_prefix 829# by default will actually change. 830# Use braces instead of parens because sh, perl, etc. also accept them. 831# (The list follows the same order as the GNU Coding Standards.) 832bindir='${exec_prefix}/bin' 833sbindir='${exec_prefix}/sbin' 834libexecdir='${exec_prefix}/libexec' 835datarootdir='${prefix}/share' 836datadir='${datarootdir}' 837sysconfdir='${prefix}/etc' 838sharedstatedir='${prefix}/com' 839localstatedir='${prefix}/var' 840runstatedir='${localstatedir}/run' 841includedir='${prefix}/include' 842oldincludedir='/usr/include' 843docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 844infodir='${datarootdir}/info' 845htmldir='${docdir}' 846dvidir='${docdir}' 847pdfdir='${docdir}' 848psdir='${docdir}' 849libdir='${exec_prefix}/lib' 850localedir='${datarootdir}/locale' 851mandir='${datarootdir}/man' 852 853ac_prev= 854ac_dashdash= 855for ac_option 856do 857 # If the previous option needs an argument, assign it. 858 if test -n "$ac_prev"; then 859 eval $ac_prev=\$ac_option 860 ac_prev= 861 continue 862 fi 863 864 case $ac_option in 865 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 866 *=) ac_optarg= ;; 867 *) ac_optarg=yes ;; 868 esac 869 870 case $ac_dashdash$ac_option in 871 --) 872 ac_dashdash=yes ;; 873 874 -bindir | --bindir | --bindi | --bind | --bin | --bi) 875 ac_prev=bindir ;; 876 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 877 bindir=$ac_optarg ;; 878 879 -build | --build | --buil | --bui | --bu) 880 ac_prev=build_alias ;; 881 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 882 build_alias=$ac_optarg ;; 883 884 -cache-file | --cache-file | --cache-fil | --cache-fi \ 885 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 886 ac_prev=cache_file ;; 887 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 888 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 889 cache_file=$ac_optarg ;; 890 891 --config-cache | -C) 892 cache_file=config.cache ;; 893 894 -datadir | --datadir | --datadi | --datad) 895 ac_prev=datadir ;; 896 -datadir=* | --datadir=* | --datadi=* | --datad=*) 897 datadir=$ac_optarg ;; 898 899 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 900 | --dataroo | --dataro | --datar) 901 ac_prev=datarootdir ;; 902 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 903 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 904 datarootdir=$ac_optarg ;; 905 906 -disable-* | --disable-*) 907 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 908 # Reject names that are not valid shell variable names. 909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 910 as_fn_error $? "invalid feature name: \`$ac_useropt'" 911 ac_useropt_orig=$ac_useropt 912 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 913 case $ac_user_opts in 914 *" 915"enable_$ac_useropt" 916"*) ;; 917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 918 ac_unrecognized_sep=', ';; 919 esac 920 eval enable_$ac_useropt=no ;; 921 922 -docdir | --docdir | --docdi | --doc | --do) 923 ac_prev=docdir ;; 924 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 925 docdir=$ac_optarg ;; 926 927 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 928 ac_prev=dvidir ;; 929 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 930 dvidir=$ac_optarg ;; 931 932 -enable-* | --enable-*) 933 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 934 # Reject names that are not valid shell variable names. 935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 936 as_fn_error $? "invalid feature name: \`$ac_useropt'" 937 ac_useropt_orig=$ac_useropt 938 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 939 case $ac_user_opts in 940 *" 941"enable_$ac_useropt" 942"*) ;; 943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 944 ac_unrecognized_sep=', ';; 945 esac 946 eval enable_$ac_useropt=\$ac_optarg ;; 947 948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 950 | --exec | --exe | --ex) 951 ac_prev=exec_prefix ;; 952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 954 | --exec=* | --exe=* | --ex=*) 955 exec_prefix=$ac_optarg ;; 956 957 -gas | --gas | --ga | --g) 958 # Obsolete; use --with-gas. 959 with_gas=yes ;; 960 961 -help | --help | --hel | --he | -h) 962 ac_init_help=long ;; 963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 964 ac_init_help=recursive ;; 965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 966 ac_init_help=short ;; 967 968 -host | --host | --hos | --ho) 969 ac_prev=host_alias ;; 970 -host=* | --host=* | --hos=* | --ho=*) 971 host_alias=$ac_optarg ;; 972 973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 974 ac_prev=htmldir ;; 975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 976 | --ht=*) 977 htmldir=$ac_optarg ;; 978 979 -includedir | --includedir | --includedi | --included | --include \ 980 | --includ | --inclu | --incl | --inc) 981 ac_prev=includedir ;; 982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 983 | --includ=* | --inclu=* | --incl=* | --inc=*) 984 includedir=$ac_optarg ;; 985 986 -infodir | --infodir | --infodi | --infod | --info | --inf) 987 ac_prev=infodir ;; 988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 989 infodir=$ac_optarg ;; 990 991 -libdir | --libdir | --libdi | --libd) 992 ac_prev=libdir ;; 993 -libdir=* | --libdir=* | --libdi=* | --libd=*) 994 libdir=$ac_optarg ;; 995 996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 997 | --libexe | --libex | --libe) 998 ac_prev=libexecdir ;; 999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1000 | --libexe=* | --libex=* | --libe=*) 1001 libexecdir=$ac_optarg ;; 1002 1003 -localedir | --localedir | --localedi | --localed | --locale) 1004 ac_prev=localedir ;; 1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1006 localedir=$ac_optarg ;; 1007 1008 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1009 | --localstate | --localstat | --localsta | --localst | --locals) 1010 ac_prev=localstatedir ;; 1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1013 localstatedir=$ac_optarg ;; 1014 1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1016 ac_prev=mandir ;; 1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1018 mandir=$ac_optarg ;; 1019 1020 -nfp | --nfp | --nf) 1021 # Obsolete; use --without-fp. 1022 with_fp=no ;; 1023 1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1025 | --no-cr | --no-c | -n) 1026 no_create=yes ;; 1027 1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1030 no_recursion=yes ;; 1031 1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1034 | --oldin | --oldi | --old | --ol | --o) 1035 ac_prev=oldincludedir ;; 1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1039 oldincludedir=$ac_optarg ;; 1040 1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1042 ac_prev=prefix ;; 1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1044 prefix=$ac_optarg ;; 1045 1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1047 | --program-pre | --program-pr | --program-p) 1048 ac_prev=program_prefix ;; 1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1051 program_prefix=$ac_optarg ;; 1052 1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1054 | --program-suf | --program-su | --program-s) 1055 ac_prev=program_suffix ;; 1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1058 program_suffix=$ac_optarg ;; 1059 1060 -program-transform-name | --program-transform-name \ 1061 | --program-transform-nam | --program-transform-na \ 1062 | --program-transform-n | --program-transform- \ 1063 | --program-transform | --program-transfor \ 1064 | --program-transfo | --program-transf \ 1065 | --program-trans | --program-tran \ 1066 | --progr-tra | --program-tr | --program-t) 1067 ac_prev=program_transform_name ;; 1068 -program-transform-name=* | --program-transform-name=* \ 1069 | --program-transform-nam=* | --program-transform-na=* \ 1070 | --program-transform-n=* | --program-transform-=* \ 1071 | --program-transform=* | --program-transfor=* \ 1072 | --program-transfo=* | --program-transf=* \ 1073 | --program-trans=* | --program-tran=* \ 1074 | --progr-tra=* | --program-tr=* | --program-t=*) 1075 program_transform_name=$ac_optarg ;; 1076 1077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1078 ac_prev=pdfdir ;; 1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1080 pdfdir=$ac_optarg ;; 1081 1082 -psdir | --psdir | --psdi | --psd | --ps) 1083 ac_prev=psdir ;; 1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1085 psdir=$ac_optarg ;; 1086 1087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1088 | -silent | --silent | --silen | --sile | --sil) 1089 silent=yes ;; 1090 1091 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1092 | --runstate | --runstat | --runsta | --runst | --runs \ 1093 | --run | --ru | --r) 1094 ac_prev=runstatedir ;; 1095 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1096 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1097 | --run=* | --ru=* | --r=*) 1098 runstatedir=$ac_optarg ;; 1099 1100 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1101 ac_prev=sbindir ;; 1102 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1103 | --sbi=* | --sb=*) 1104 sbindir=$ac_optarg ;; 1105 1106 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1107 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1108 | --sharedst | --shareds | --shared | --share | --shar \ 1109 | --sha | --sh) 1110 ac_prev=sharedstatedir ;; 1111 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1112 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1113 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1114 | --sha=* | --sh=*) 1115 sharedstatedir=$ac_optarg ;; 1116 1117 -site | --site | --sit) 1118 ac_prev=site ;; 1119 -site=* | --site=* | --sit=*) 1120 site=$ac_optarg ;; 1121 1122 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1123 ac_prev=srcdir ;; 1124 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1125 srcdir=$ac_optarg ;; 1126 1127 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1128 | --syscon | --sysco | --sysc | --sys | --sy) 1129 ac_prev=sysconfdir ;; 1130 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1131 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1132 sysconfdir=$ac_optarg ;; 1133 1134 -target | --target | --targe | --targ | --tar | --ta | --t) 1135 ac_prev=target_alias ;; 1136 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1137 target_alias=$ac_optarg ;; 1138 1139 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1140 verbose=yes ;; 1141 1142 -version | --version | --versio | --versi | --vers | -V) 1143 ac_init_version=: ;; 1144 1145 -with-* | --with-*) 1146 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1147 # Reject names that are not valid shell variable names. 1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1149 as_fn_error $? "invalid package name: \`$ac_useropt'" 1150 ac_useropt_orig=$ac_useropt 1151 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1152 case $ac_user_opts in 1153 *" 1154"with_$ac_useropt" 1155"*) ;; 1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1157 ac_unrecognized_sep=', ';; 1158 esac 1159 eval with_$ac_useropt=\$ac_optarg ;; 1160 1161 -without-* | --without-*) 1162 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1163 # Reject names that are not valid shell variable names. 1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1165 as_fn_error $? "invalid package name: \`$ac_useropt'" 1166 ac_useropt_orig=$ac_useropt 1167 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1168 case $ac_user_opts in 1169 *" 1170"with_$ac_useropt" 1171"*) ;; 1172 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1173 ac_unrecognized_sep=', ';; 1174 esac 1175 eval with_$ac_useropt=no ;; 1176 1177 --x) 1178 # Obsolete; use --with-x. 1179 with_x=yes ;; 1180 1181 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1182 | --x-incl | --x-inc | --x-in | --x-i) 1183 ac_prev=x_includes ;; 1184 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1185 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1186 x_includes=$ac_optarg ;; 1187 1188 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1189 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1190 ac_prev=x_libraries ;; 1191 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1192 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1193 x_libraries=$ac_optarg ;; 1194 1195 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1196Try \`$0 --help' for more information" 1197 ;; 1198 1199 *=*) 1200 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1201 # Reject names that are not valid shell variable names. 1202 case $ac_envvar in #( 1203 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1204 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1205 esac 1206 eval $ac_envvar=\$ac_optarg 1207 export $ac_envvar ;; 1208 1209 *) 1210 # FIXME: should be removed in autoconf 3.0. 1211 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1212 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1213 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1214 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1215 ;; 1216 1217 esac 1218done 1219 1220if test -n "$ac_prev"; then 1221 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1222 as_fn_error $? "missing argument to $ac_option" 1223fi 1224 1225if test -n "$ac_unrecognized_opts"; then 1226 case $enable_option_checking in 1227 no) ;; 1228 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1229 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1230 esac 1231fi 1232 1233# Check all directory arguments for consistency. 1234for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1235 datadir sysconfdir sharedstatedir localstatedir includedir \ 1236 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1237 libdir localedir mandir runstatedir 1238do 1239 eval ac_val=\$$ac_var 1240 # Remove trailing slashes. 1241 case $ac_val in 1242 */ ) 1243 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1244 eval $ac_var=\$ac_val;; 1245 esac 1246 # Be sure to have absolute directory names. 1247 case $ac_val in 1248 [\\/$]* | ?:[\\/]* ) continue;; 1249 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1250 esac 1251 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1252done 1253 1254# There might be people who depend on the old broken behavior: `$host' 1255# used to hold the argument of --host etc. 1256# FIXME: To remove some day. 1257build=$build_alias 1258host=$host_alias 1259target=$target_alias 1260 1261# FIXME: To remove some day. 1262if test "x$host_alias" != x; then 1263 if test "x$build_alias" = x; then 1264 cross_compiling=maybe 1265 elif test "x$build_alias" != "x$host_alias"; then 1266 cross_compiling=yes 1267 fi 1268fi 1269 1270ac_tool_prefix= 1271test -n "$host_alias" && ac_tool_prefix=$host_alias- 1272 1273test "$silent" = yes && exec 6>/dev/null 1274 1275 1276ac_pwd=`pwd` && test -n "$ac_pwd" && 1277ac_ls_di=`ls -di .` && 1278ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1279 as_fn_error $? "working directory cannot be determined" 1280test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1281 as_fn_error $? "pwd does not report name of working directory" 1282 1283 1284# Find the source files, if location was not specified. 1285if test -z "$srcdir"; then 1286 ac_srcdir_defaulted=yes 1287 # Try the directory containing this script, then the parent directory. 1288 ac_confdir=`$as_dirname -- "$as_myself" || 1289$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1290 X"$as_myself" : 'X\(//\)[^/]' \| \ 1291 X"$as_myself" : 'X\(//\)$' \| \ 1292 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1293printf "%s\n" X"$as_myself" | 1294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1295 s//\1/ 1296 q 1297 } 1298 /^X\(\/\/\)[^/].*/{ 1299 s//\1/ 1300 q 1301 } 1302 /^X\(\/\/\)$/{ 1303 s//\1/ 1304 q 1305 } 1306 /^X\(\/\).*/{ 1307 s//\1/ 1308 q 1309 } 1310 s/.*/./; q'` 1311 srcdir=$ac_confdir 1312 if test ! -r "$srcdir/$ac_unique_file"; then 1313 srcdir=.. 1314 fi 1315else 1316 ac_srcdir_defaulted=no 1317fi 1318if test ! -r "$srcdir/$ac_unique_file"; then 1319 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1320 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1321fi 1322ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1323ac_abs_confdir=`( 1324 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1325 pwd)` 1326# When building in place, set srcdir=. 1327if test "$ac_abs_confdir" = "$ac_pwd"; then 1328 srcdir=. 1329fi 1330# Remove unnecessary trailing slashes from srcdir. 1331# Double slashes in file names in object file debugging info 1332# mess up M-x gdb in Emacs. 1333case $srcdir in 1334*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1335esac 1336for ac_var in $ac_precious_vars; do 1337 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1338 eval ac_env_${ac_var}_value=\$${ac_var} 1339 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1340 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1341done 1342 1343# 1344# Report the --help message. 1345# 1346if test "$ac_init_help" = "long"; then 1347 # Omit some internal or obsolete options to make the list less imposing. 1348 # This message is too long to be a string in the A/UX 3.1 sh. 1349 cat <<_ACEOF 1350\`configure' configures lndir 1.0.4 to adapt to many kinds of systems. 1351 1352Usage: $0 [OPTION]... [VAR=VALUE]... 1353 1354To assign environment variables (e.g., CC, CFLAGS...), specify them as 1355VAR=VALUE. See below for descriptions of some of the useful variables. 1356 1357Defaults for the options are specified in brackets. 1358 1359Configuration: 1360 -h, --help display this help and exit 1361 --help=short display options specific to this package 1362 --help=recursive display the short help of all the included packages 1363 -V, --version display version information and exit 1364 -q, --quiet, --silent do not print \`checking ...' messages 1365 --cache-file=FILE cache test results in FILE [disabled] 1366 -C, --config-cache alias for \`--cache-file=config.cache' 1367 -n, --no-create do not create output files 1368 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1369 1370Installation directories: 1371 --prefix=PREFIX install architecture-independent files in PREFIX 1372 [$ac_default_prefix] 1373 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1374 [PREFIX] 1375 1376By default, \`make install' will install all the files in 1377\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1378an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1379for instance \`--prefix=\$HOME'. 1380 1381For better control, use the options below. 1382 1383Fine tuning of the installation directories: 1384 --bindir=DIR user executables [EPREFIX/bin] 1385 --sbindir=DIR system admin executables [EPREFIX/sbin] 1386 --libexecdir=DIR program executables [EPREFIX/libexec] 1387 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1388 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1389 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1390 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1391 --libdir=DIR object code libraries [EPREFIX/lib] 1392 --includedir=DIR C header files [PREFIX/include] 1393 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1394 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1395 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1396 --infodir=DIR info documentation [DATAROOTDIR/info] 1397 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1398 --mandir=DIR man documentation [DATAROOTDIR/man] 1399 --docdir=DIR documentation root [DATAROOTDIR/doc/lndir] 1400 --htmldir=DIR html documentation [DOCDIR] 1401 --dvidir=DIR dvi documentation [DOCDIR] 1402 --pdfdir=DIR pdf documentation [DOCDIR] 1403 --psdir=DIR ps documentation [DOCDIR] 1404_ACEOF 1405 1406 cat <<\_ACEOF 1407 1408Program names: 1409 --program-prefix=PREFIX prepend PREFIX to installed program names 1410 --program-suffix=SUFFIX append SUFFIX to installed program names 1411 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1412 1413System types: 1414 --build=BUILD configure for building on BUILD [guessed] 1415 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1416_ACEOF 1417fi 1418 1419if test -n "$ac_init_help"; then 1420 case $ac_init_help in 1421 short | recursive ) echo "Configuration of lndir 1.0.4:";; 1422 esac 1423 cat <<\_ACEOF 1424 1425Optional Features: 1426 --disable-option-checking ignore unrecognized --enable/--with options 1427 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1428 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1429 --enable-dependency-tracking 1430 do not reject slow dependency extractors 1431 --disable-dependency-tracking 1432 speeds up one-time build 1433 --enable-silent-rules less verbose build output (undo: "make V=1") 1434 --disable-silent-rules verbose build output (undo: "make V=0") 1435 --disable-selective-werror 1436 Turn off selective compiler errors. (default: 1437 enabled) 1438 --enable-strict-compilation 1439 Enable all warnings from compiler and make them 1440 errors (default: disabled) 1441 --disable-largefile omit support for large files 1442 1443Some influential environment variables: 1444 CC C compiler command 1445 CFLAGS C compiler flags 1446 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1447 nonstandard directory <lib dir> 1448 LIBS libraries to pass to the linker, e.g. -l<library> 1449 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1450 you have headers in a nonstandard directory <include dir> 1451 PKG_CONFIG path to pkg-config utility 1452 PKG_CONFIG_PATH 1453 directories to add to pkg-config's search path 1454 PKG_CONFIG_LIBDIR 1455 path overriding pkg-config's built-in search path 1456 XPROTO_CFLAGS 1457 C compiler flags for XPROTO, overriding pkg-config 1458 XPROTO_LIBS linker flags for XPROTO, overriding pkg-config 1459 LIBBSD_CFLAGS 1460 C compiler flags for LIBBSD, overriding pkg-config 1461 LIBBSD_LIBS linker flags for LIBBSD, overriding pkg-config 1462 1463Use these variables to override the choices made by `configure' or to help 1464it to find libraries and programs with nonstandard names/locations. 1465 1466Report bugs to <https://gitlab.freedesktop.org/xorg/util/lndir/-/issues>. 1467_ACEOF 1468ac_status=$? 1469fi 1470 1471if test "$ac_init_help" = "recursive"; then 1472 # If there are subdirs, report their specific --help. 1473 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1474 test -d "$ac_dir" || 1475 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1476 continue 1477 ac_builddir=. 1478 1479case "$ac_dir" in 1480.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1481*) 1482 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1483 # A ".." for each directory in $ac_dir_suffix. 1484 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1485 case $ac_top_builddir_sub in 1486 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1487 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1488 esac ;; 1489esac 1490ac_abs_top_builddir=$ac_pwd 1491ac_abs_builddir=$ac_pwd$ac_dir_suffix 1492# for backward compatibility: 1493ac_top_builddir=$ac_top_build_prefix 1494 1495case $srcdir in 1496 .) # We are building in place. 1497 ac_srcdir=. 1498 ac_top_srcdir=$ac_top_builddir_sub 1499 ac_abs_top_srcdir=$ac_pwd ;; 1500 [\\/]* | ?:[\\/]* ) # Absolute name. 1501 ac_srcdir=$srcdir$ac_dir_suffix; 1502 ac_top_srcdir=$srcdir 1503 ac_abs_top_srcdir=$srcdir ;; 1504 *) # Relative name. 1505 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1506 ac_top_srcdir=$ac_top_build_prefix$srcdir 1507 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1508esac 1509ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1510 1511 cd "$ac_dir" || { ac_status=$?; continue; } 1512 # Check for configure.gnu first; this name is used for a wrapper for 1513 # Metaconfig's "Configure" on case-insensitive file systems. 1514 if test -f "$ac_srcdir/configure.gnu"; then 1515 echo && 1516 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1517 elif test -f "$ac_srcdir/configure"; then 1518 echo && 1519 $SHELL "$ac_srcdir/configure" --help=recursive 1520 else 1521 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1522 fi || ac_status=$? 1523 cd "$ac_pwd" || { ac_status=$?; break; } 1524 done 1525fi 1526 1527test -n "$ac_init_help" && exit $ac_status 1528if $ac_init_version; then 1529 cat <<\_ACEOF 1530lndir configure 1.0.4 1531generated by GNU Autoconf 2.71 1532 1533Copyright (C) 2021 Free Software Foundation, Inc. 1534This configure script is free software; the Free Software Foundation 1535gives unlimited permission to copy, distribute and modify it. 1536_ACEOF 1537 exit 1538fi 1539 1540## ------------------------ ## 1541## Autoconf initialization. ## 1542## ------------------------ ## 1543 1544# ac_fn_c_try_compile LINENO 1545# -------------------------- 1546# Try to compile conftest.$ac_ext, and return whether this succeeded. 1547ac_fn_c_try_compile () 1548{ 1549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1550 rm -f conftest.$ac_objext conftest.beam 1551 if { { ac_try="$ac_compile" 1552case "(($ac_try" in 1553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1554 *) ac_try_echo=$ac_try;; 1555esac 1556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1557printf "%s\n" "$ac_try_echo"; } >&5 1558 (eval "$ac_compile") 2>conftest.err 1559 ac_status=$? 1560 if test -s conftest.err; then 1561 grep -v '^ *+' conftest.err >conftest.er1 1562 cat conftest.er1 >&5 1563 mv -f conftest.er1 conftest.err 1564 fi 1565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1566 test $ac_status = 0; } && { 1567 test -z "$ac_c_werror_flag" || 1568 test ! -s conftest.err 1569 } && test -s conftest.$ac_objext 1570then : 1571 ac_retval=0 1572else $as_nop 1573 printf "%s\n" "$as_me: failed program was:" >&5 1574sed 's/^/| /' conftest.$ac_ext >&5 1575 1576 ac_retval=1 1577fi 1578 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1579 as_fn_set_status $ac_retval 1580 1581} # ac_fn_c_try_compile 1582 1583# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1584# ------------------------------------------------------- 1585# Tests whether HEADER exists and can be compiled using the include files in 1586# INCLUDES, setting the cache variable VAR accordingly. 1587ac_fn_c_check_header_compile () 1588{ 1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1591printf %s "checking for $2... " >&6; } 1592if eval test \${$3+y} 1593then : 1594 printf %s "(cached) " >&6 1595else $as_nop 1596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1597/* end confdefs.h. */ 1598$4 1599#include <$2> 1600_ACEOF 1601if ac_fn_c_try_compile "$LINENO" 1602then : 1603 eval "$3=yes" 1604else $as_nop 1605 eval "$3=no" 1606fi 1607rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1608fi 1609eval ac_res=\$$3 1610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1611printf "%s\n" "$ac_res" >&6; } 1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1613 1614} # ac_fn_c_check_header_compile 1615 1616# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1617# ------------------------------------------------------------------ 1618# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1619# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1620ac_fn_check_decl () 1621{ 1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1623 as_decl_name=`echo $2|sed 's/ *(.*//'` 1624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1625printf %s "checking whether $as_decl_name is declared... " >&6; } 1626if eval test \${$3+y} 1627then : 1628 printf %s "(cached) " >&6 1629else $as_nop 1630 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1631 eval ac_save_FLAGS=\$$6 1632 as_fn_append $6 " $5" 1633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1634/* end confdefs.h. */ 1635$4 1636int 1637main (void) 1638{ 1639#ifndef $as_decl_name 1640#ifdef __cplusplus 1641 (void) $as_decl_use; 1642#else 1643 (void) $as_decl_name; 1644#endif 1645#endif 1646 1647 ; 1648 return 0; 1649} 1650_ACEOF 1651if ac_fn_c_try_compile "$LINENO" 1652then : 1653 eval "$3=yes" 1654else $as_nop 1655 eval "$3=no" 1656fi 1657rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1658 eval $6=\$ac_save_FLAGS 1659 1660fi 1661eval ac_res=\$$3 1662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1663printf "%s\n" "$ac_res" >&6; } 1664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1665 1666} # ac_fn_check_decl 1667 1668# ac_fn_c_try_link LINENO 1669# ----------------------- 1670# Try to link conftest.$ac_ext, and return whether this succeeded. 1671ac_fn_c_try_link () 1672{ 1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1674 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1675 if { { ac_try="$ac_link" 1676case "(($ac_try" in 1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1678 *) ac_try_echo=$ac_try;; 1679esac 1680eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1681printf "%s\n" "$ac_try_echo"; } >&5 1682 (eval "$ac_link") 2>conftest.err 1683 ac_status=$? 1684 if test -s conftest.err; then 1685 grep -v '^ *+' conftest.err >conftest.er1 1686 cat conftest.er1 >&5 1687 mv -f conftest.er1 conftest.err 1688 fi 1689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1690 test $ac_status = 0; } && { 1691 test -z "$ac_c_werror_flag" || 1692 test ! -s conftest.err 1693 } && test -s conftest$ac_exeext && { 1694 test "$cross_compiling" = yes || 1695 test -x conftest$ac_exeext 1696 } 1697then : 1698 ac_retval=0 1699else $as_nop 1700 printf "%s\n" "$as_me: failed program was:" >&5 1701sed 's/^/| /' conftest.$ac_ext >&5 1702 1703 ac_retval=1 1704fi 1705 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1706 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1707 # interfere with the next link command; also delete a directory that is 1708 # left behind by Apple's compiler. We do this before executing the actions. 1709 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1711 as_fn_set_status $ac_retval 1712 1713} # ac_fn_c_try_link 1714 1715# ac_fn_c_check_func LINENO FUNC VAR 1716# ---------------------------------- 1717# Tests whether FUNC exists, setting the cache variable VAR accordingly 1718ac_fn_c_check_func () 1719{ 1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1722printf %s "checking for $2... " >&6; } 1723if eval test \${$3+y} 1724then : 1725 printf %s "(cached) " >&6 1726else $as_nop 1727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1728/* end confdefs.h. */ 1729/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1730 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1731#define $2 innocuous_$2 1732 1733/* System header to define __stub macros and hopefully few prototypes, 1734 which can conflict with char $2 (); below. */ 1735 1736#include <limits.h> 1737#undef $2 1738 1739/* Override any GCC internal prototype to avoid an error. 1740 Use char because int might match the return type of a GCC 1741 builtin and then its argument prototype would still apply. */ 1742#ifdef __cplusplus 1743extern "C" 1744#endif 1745char $2 (); 1746/* The GNU C library defines this for functions which it implements 1747 to always fail with ENOSYS. Some functions are actually named 1748 something starting with __ and the normal name is an alias. */ 1749#if defined __stub_$2 || defined __stub___$2 1750choke me 1751#endif 1752 1753int 1754main (void) 1755{ 1756return $2 (); 1757 ; 1758 return 0; 1759} 1760_ACEOF 1761if ac_fn_c_try_link "$LINENO" 1762then : 1763 eval "$3=yes" 1764else $as_nop 1765 eval "$3=no" 1766fi 1767rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1768 conftest$ac_exeext conftest.$ac_ext 1769fi 1770eval ac_res=\$$3 1771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1772printf "%s\n" "$ac_res" >&6; } 1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1774 1775} # ac_fn_c_check_func 1776ac_configure_args_raw= 1777for ac_arg 1778do 1779 case $ac_arg in 1780 *\'*) 1781 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1782 esac 1783 as_fn_append ac_configure_args_raw " '$ac_arg'" 1784done 1785 1786case $ac_configure_args_raw in 1787 *$as_nl*) 1788 ac_safe_unquote= ;; 1789 *) 1790 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1791 ac_unsafe_a="$ac_unsafe_z#~" 1792 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1793 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1794esac 1795 1796cat >config.log <<_ACEOF 1797This file contains any messages produced by compilers while 1798running configure, to aid debugging if configure makes a mistake. 1799 1800It was created by lndir $as_me 1.0.4, which was 1801generated by GNU Autoconf 2.71. Invocation command line was 1802 1803 $ $0$ac_configure_args_raw 1804 1805_ACEOF 1806exec 5>>config.log 1807{ 1808cat <<_ASUNAME 1809## --------- ## 1810## Platform. ## 1811## --------- ## 1812 1813hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1814uname -m = `(uname -m) 2>/dev/null || echo unknown` 1815uname -r = `(uname -r) 2>/dev/null || echo unknown` 1816uname -s = `(uname -s) 2>/dev/null || echo unknown` 1817uname -v = `(uname -v) 2>/dev/null || echo unknown` 1818 1819/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1820/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1821 1822/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1823/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1824/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1825/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1826/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1827/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1828/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1829 1830_ASUNAME 1831 1832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1833for as_dir in $PATH 1834do 1835 IFS=$as_save_IFS 1836 case $as_dir in #((( 1837 '') as_dir=./ ;; 1838 */) ;; 1839 *) as_dir=$as_dir/ ;; 1840 esac 1841 printf "%s\n" "PATH: $as_dir" 1842 done 1843IFS=$as_save_IFS 1844 1845} >&5 1846 1847cat >&5 <<_ACEOF 1848 1849 1850## ----------- ## 1851## Core tests. ## 1852## ----------- ## 1853 1854_ACEOF 1855 1856 1857# Keep a trace of the command line. 1858# Strip out --no-create and --no-recursion so they do not pile up. 1859# Strip out --silent because we don't want to record it for future runs. 1860# Also quote any args containing shell meta-characters. 1861# Make two passes to allow for proper duplicate-argument suppression. 1862ac_configure_args= 1863ac_configure_args0= 1864ac_configure_args1= 1865ac_must_keep_next=false 1866for ac_pass in 1 2 1867do 1868 for ac_arg 1869 do 1870 case $ac_arg in 1871 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1872 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1873 | -silent | --silent | --silen | --sile | --sil) 1874 continue ;; 1875 *\'*) 1876 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1877 esac 1878 case $ac_pass in 1879 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1880 2) 1881 as_fn_append ac_configure_args1 " '$ac_arg'" 1882 if test $ac_must_keep_next = true; then 1883 ac_must_keep_next=false # Got value, back to normal. 1884 else 1885 case $ac_arg in 1886 *=* | --config-cache | -C | -disable-* | --disable-* \ 1887 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1888 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1889 | -with-* | --with-* | -without-* | --without-* | --x) 1890 case "$ac_configure_args0 " in 1891 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1892 esac 1893 ;; 1894 -* ) ac_must_keep_next=true ;; 1895 esac 1896 fi 1897 as_fn_append ac_configure_args " '$ac_arg'" 1898 ;; 1899 esac 1900 done 1901done 1902{ ac_configure_args0=; unset ac_configure_args0;} 1903{ ac_configure_args1=; unset ac_configure_args1;} 1904 1905# When interrupted or exit'd, cleanup temporary files, and complete 1906# config.log. We remove comments because anyway the quotes in there 1907# would cause problems or look ugly. 1908# WARNING: Use '\'' to represent an apostrophe within the trap. 1909# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1910trap 'exit_status=$? 1911 # Sanitize IFS. 1912 IFS=" "" $as_nl" 1913 # Save into config.log some information that might help in debugging. 1914 { 1915 echo 1916 1917 printf "%s\n" "## ---------------- ## 1918## Cache variables. ## 1919## ---------------- ##" 1920 echo 1921 # The following way of writing the cache mishandles newlines in values, 1922( 1923 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1924 eval ac_val=\$$ac_var 1925 case $ac_val in #( 1926 *${as_nl}*) 1927 case $ac_var in #( 1928 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1929printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1930 esac 1931 case $ac_var in #( 1932 _ | IFS | as_nl) ;; #( 1933 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1934 *) { eval $ac_var=; unset $ac_var;} ;; 1935 esac ;; 1936 esac 1937 done 1938 (set) 2>&1 | 1939 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1940 *${as_nl}ac_space=\ *) 1941 sed -n \ 1942 "s/'\''/'\''\\\\'\'''\''/g; 1943 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1944 ;; #( 1945 *) 1946 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1947 ;; 1948 esac | 1949 sort 1950) 1951 echo 1952 1953 printf "%s\n" "## ----------------- ## 1954## Output variables. ## 1955## ----------------- ##" 1956 echo 1957 for ac_var in $ac_subst_vars 1958 do 1959 eval ac_val=\$$ac_var 1960 case $ac_val in 1961 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1962 esac 1963 printf "%s\n" "$ac_var='\''$ac_val'\''" 1964 done | sort 1965 echo 1966 1967 if test -n "$ac_subst_files"; then 1968 printf "%s\n" "## ------------------- ## 1969## File substitutions. ## 1970## ------------------- ##" 1971 echo 1972 for ac_var in $ac_subst_files 1973 do 1974 eval ac_val=\$$ac_var 1975 case $ac_val in 1976 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1977 esac 1978 printf "%s\n" "$ac_var='\''$ac_val'\''" 1979 done | sort 1980 echo 1981 fi 1982 1983 if test -s confdefs.h; then 1984 printf "%s\n" "## ----------- ## 1985## confdefs.h. ## 1986## ----------- ##" 1987 echo 1988 cat confdefs.h 1989 echo 1990 fi 1991 test "$ac_signal" != 0 && 1992 printf "%s\n" "$as_me: caught signal $ac_signal" 1993 printf "%s\n" "$as_me: exit $exit_status" 1994 } >&5 1995 rm -f core *.core core.conftest.* && 1996 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1997 exit $exit_status 1998' 0 1999for ac_signal in 1 2 13 15; do 2000 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2001done 2002ac_signal=0 2003 2004# confdefs.h avoids OS command line length limits that DEFS can exceed. 2005rm -f -r conftest* confdefs.h 2006 2007printf "%s\n" "/* confdefs.h */" > confdefs.h 2008 2009# Predefined preprocessor variables. 2010 2011printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2012 2013printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2014 2015printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2016 2017printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2018 2019printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2020 2021printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2022 2023 2024# Let the site file select an alternate cache file if it wants to. 2025# Prefer an explicitly selected file to automatically selected ones. 2026if test -n "$CONFIG_SITE"; then 2027 ac_site_files="$CONFIG_SITE" 2028elif test "x$prefix" != xNONE; then 2029 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2030else 2031 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2032fi 2033 2034for ac_site_file in $ac_site_files 2035do 2036 case $ac_site_file in #( 2037 */*) : 2038 ;; #( 2039 *) : 2040 ac_site_file=./$ac_site_file ;; 2041esac 2042 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2044printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2045 sed 's/^/| /' "$ac_site_file" >&5 2046 . "$ac_site_file" \ 2047 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2048printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2049as_fn_error $? "failed to load site script $ac_site_file 2050See \`config.log' for more details" "$LINENO" 5; } 2051 fi 2052done 2053 2054if test -r "$cache_file"; then 2055 # Some versions of bash will fail to source /dev/null (special files 2056 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2057 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2059printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2060 case $cache_file in 2061 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2062 *) . "./$cache_file";; 2063 esac 2064 fi 2065else 2066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2067printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2068 >$cache_file 2069fi 2070 2071as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2072# Test code for whether the C compiler supports C89 (global declarations) 2073ac_c_conftest_c89_globals=' 2074/* Does the compiler advertise C89 conformance? 2075 Do not test the value of __STDC__, because some compilers set it to 0 2076 while being otherwise adequately conformant. */ 2077#if !defined __STDC__ 2078# error "Compiler does not advertise C89 conformance" 2079#endif 2080 2081#include <stddef.h> 2082#include <stdarg.h> 2083struct stat; 2084/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2085struct buf { int x; }; 2086struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2087static char *e (p, i) 2088 char **p; 2089 int i; 2090{ 2091 return p[i]; 2092} 2093static char *f (char * (*g) (char **, int), char **p, ...) 2094{ 2095 char *s; 2096 va_list v; 2097 va_start (v,p); 2098 s = g (p, va_arg (v,int)); 2099 va_end (v); 2100 return s; 2101} 2102 2103/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2104 function prototypes and stuff, but not \xHH hex character constants. 2105 These do not provoke an error unfortunately, instead are silently treated 2106 as an "x". The following induces an error, until -std is added to get 2107 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2108 array size at least. It is necessary to write \x00 == 0 to get something 2109 that is true only with -std. */ 2110int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2111 2112/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2113 inside strings and character constants. */ 2114#define FOO(x) '\''x'\'' 2115int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2116 2117int test (int i, double x); 2118struct s1 {int (*f) (int a);}; 2119struct s2 {int (*f) (double a);}; 2120int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2121 int, int);' 2122 2123# Test code for whether the C compiler supports C89 (body of main). 2124ac_c_conftest_c89_main=' 2125ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2126' 2127 2128# Test code for whether the C compiler supports C99 (global declarations) 2129ac_c_conftest_c99_globals=' 2130// Does the compiler advertise C99 conformance? 2131#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2132# error "Compiler does not advertise C99 conformance" 2133#endif 2134 2135#include <stdbool.h> 2136extern int puts (const char *); 2137extern int printf (const char *, ...); 2138extern int dprintf (int, const char *, ...); 2139extern void *malloc (size_t); 2140 2141// Check varargs macros. These examples are taken from C99 6.10.3.5. 2142// dprintf is used instead of fprintf to avoid needing to declare 2143// FILE and stderr. 2144#define debug(...) dprintf (2, __VA_ARGS__) 2145#define showlist(...) puts (#__VA_ARGS__) 2146#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2147static void 2148test_varargs_macros (void) 2149{ 2150 int x = 1234; 2151 int y = 5678; 2152 debug ("Flag"); 2153 debug ("X = %d\n", x); 2154 showlist (The first, second, and third items.); 2155 report (x>y, "x is %d but y is %d", x, y); 2156} 2157 2158// Check long long types. 2159#define BIG64 18446744073709551615ull 2160#define BIG32 4294967295ul 2161#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2162#if !BIG_OK 2163 #error "your preprocessor is broken" 2164#endif 2165#if BIG_OK 2166#else 2167 #error "your preprocessor is broken" 2168#endif 2169static long long int bignum = -9223372036854775807LL; 2170static unsigned long long int ubignum = BIG64; 2171 2172struct incomplete_array 2173{ 2174 int datasize; 2175 double data[]; 2176}; 2177 2178struct named_init { 2179 int number; 2180 const wchar_t *name; 2181 double average; 2182}; 2183 2184typedef const char *ccp; 2185 2186static inline int 2187test_restrict (ccp restrict text) 2188{ 2189 // See if C++-style comments work. 2190 // Iterate through items via the restricted pointer. 2191 // Also check for declarations in for loops. 2192 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2193 continue; 2194 return 0; 2195} 2196 2197// Check varargs and va_copy. 2198static bool 2199test_varargs (const char *format, ...) 2200{ 2201 va_list args; 2202 va_start (args, format); 2203 va_list args_copy; 2204 va_copy (args_copy, args); 2205 2206 const char *str = ""; 2207 int number = 0; 2208 float fnumber = 0; 2209 2210 while (*format) 2211 { 2212 switch (*format++) 2213 { 2214 case '\''s'\'': // string 2215 str = va_arg (args_copy, const char *); 2216 break; 2217 case '\''d'\'': // int 2218 number = va_arg (args_copy, int); 2219 break; 2220 case '\''f'\'': // float 2221 fnumber = va_arg (args_copy, double); 2222 break; 2223 default: 2224 break; 2225 } 2226 } 2227 va_end (args_copy); 2228 va_end (args); 2229 2230 return *str && number && fnumber; 2231} 2232' 2233 2234# Test code for whether the C compiler supports C99 (body of main). 2235ac_c_conftest_c99_main=' 2236 // Check bool. 2237 _Bool success = false; 2238 success |= (argc != 0); 2239 2240 // Check restrict. 2241 if (test_restrict ("String literal") == 0) 2242 success = true; 2243 char *restrict newvar = "Another string"; 2244 2245 // Check varargs. 2246 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2247 test_varargs_macros (); 2248 2249 // Check flexible array members. 2250 struct incomplete_array *ia = 2251 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2252 ia->datasize = 10; 2253 for (int i = 0; i < ia->datasize; ++i) 2254 ia->data[i] = i * 1.234; 2255 2256 // Check named initializers. 2257 struct named_init ni = { 2258 .number = 34, 2259 .name = L"Test wide string", 2260 .average = 543.34343, 2261 }; 2262 2263 ni.number = 58; 2264 2265 int dynamic_array[ni.number]; 2266 dynamic_array[0] = argv[0][0]; 2267 dynamic_array[ni.number - 1] = 543; 2268 2269 // work around unused variable warnings 2270 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2271 || dynamic_array[ni.number - 1] != 543); 2272' 2273 2274# Test code for whether the C compiler supports C11 (global declarations) 2275ac_c_conftest_c11_globals=' 2276// Does the compiler advertise C11 conformance? 2277#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2278# error "Compiler does not advertise C11 conformance" 2279#endif 2280 2281// Check _Alignas. 2282char _Alignas (double) aligned_as_double; 2283char _Alignas (0) no_special_alignment; 2284extern char aligned_as_int; 2285char _Alignas (0) _Alignas (int) aligned_as_int; 2286 2287// Check _Alignof. 2288enum 2289{ 2290 int_alignment = _Alignof (int), 2291 int_array_alignment = _Alignof (int[100]), 2292 char_alignment = _Alignof (char) 2293}; 2294_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2295 2296// Check _Noreturn. 2297int _Noreturn does_not_return (void) { for (;;) continue; } 2298 2299// Check _Static_assert. 2300struct test_static_assert 2301{ 2302 int x; 2303 _Static_assert (sizeof (int) <= sizeof (long int), 2304 "_Static_assert does not work in struct"); 2305 long int y; 2306}; 2307 2308// Check UTF-8 literals. 2309#define u8 syntax error! 2310char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2311 2312// Check duplicate typedefs. 2313typedef long *long_ptr; 2314typedef long int *long_ptr; 2315typedef long_ptr long_ptr; 2316 2317// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2318struct anonymous 2319{ 2320 union { 2321 struct { int i; int j; }; 2322 struct { int k; long int l; } w; 2323 }; 2324 int m; 2325} v1; 2326' 2327 2328# Test code for whether the C compiler supports C11 (body of main). 2329ac_c_conftest_c11_main=' 2330 _Static_assert ((offsetof (struct anonymous, i) 2331 == offsetof (struct anonymous, w.k)), 2332 "Anonymous union alignment botch"); 2333 v1.i = 2; 2334 v1.w.k = 5; 2335 ok |= v1.i != 5; 2336' 2337 2338# Test code for whether the C compiler supports C11 (complete). 2339ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2340${ac_c_conftest_c99_globals} 2341${ac_c_conftest_c11_globals} 2342 2343int 2344main (int argc, char **argv) 2345{ 2346 int ok = 0; 2347 ${ac_c_conftest_c89_main} 2348 ${ac_c_conftest_c99_main} 2349 ${ac_c_conftest_c11_main} 2350 return ok; 2351} 2352" 2353 2354# Test code for whether the C compiler supports C99 (complete). 2355ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2356${ac_c_conftest_c99_globals} 2357 2358int 2359main (int argc, char **argv) 2360{ 2361 int ok = 0; 2362 ${ac_c_conftest_c89_main} 2363 ${ac_c_conftest_c99_main} 2364 return ok; 2365} 2366" 2367 2368# Test code for whether the C compiler supports C89 (complete). 2369ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2370 2371int 2372main (int argc, char **argv) 2373{ 2374 int ok = 0; 2375 ${ac_c_conftest_c89_main} 2376 return ok; 2377} 2378" 2379 2380as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2381as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2382as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2383as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2384as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2385as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2386as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2387as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2388as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2389as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2390 2391# Auxiliary files required by this configure script. 2392ac_aux_files="config.guess config.sub missing install-sh compile" 2393 2394# Locations in which to look for auxiliary files. 2395ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2396 2397# Search for a directory containing all of the required auxiliary files, 2398# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2399# If we don't find one directory that contains all the files we need, 2400# we report the set of missing files from the *first* directory in 2401# $ac_aux_dir_candidates and give up. 2402ac_missing_aux_files="" 2403ac_first_candidate=: 2404printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2406as_found=false 2407for as_dir in $ac_aux_dir_candidates 2408do 2409 IFS=$as_save_IFS 2410 case $as_dir in #((( 2411 '') as_dir=./ ;; 2412 */) ;; 2413 *) as_dir=$as_dir/ ;; 2414 esac 2415 as_found=: 2416 2417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2418 ac_aux_dir_found=yes 2419 ac_install_sh= 2420 for ac_aux in $ac_aux_files 2421 do 2422 # As a special case, if "install-sh" is required, that requirement 2423 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2424 # and $ac_install_sh is set appropriately for whichever one is found. 2425 if test x"$ac_aux" = x"install-sh" 2426 then 2427 if test -f "${as_dir}install-sh"; then 2428 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2429 ac_install_sh="${as_dir}install-sh -c" 2430 elif test -f "${as_dir}install.sh"; then 2431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2432 ac_install_sh="${as_dir}install.sh -c" 2433 elif test -f "${as_dir}shtool"; then 2434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2435 ac_install_sh="${as_dir}shtool install -c" 2436 else 2437 ac_aux_dir_found=no 2438 if $ac_first_candidate; then 2439 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2440 else 2441 break 2442 fi 2443 fi 2444 else 2445 if test -f "${as_dir}${ac_aux}"; then 2446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2447 else 2448 ac_aux_dir_found=no 2449 if $ac_first_candidate; then 2450 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2451 else 2452 break 2453 fi 2454 fi 2455 fi 2456 done 2457 if test "$ac_aux_dir_found" = yes; then 2458 ac_aux_dir="$as_dir" 2459 break 2460 fi 2461 ac_first_candidate=false 2462 2463 as_found=false 2464done 2465IFS=$as_save_IFS 2466if $as_found 2467then : 2468 2469else $as_nop 2470 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2471fi 2472 2473 2474# These three variables are undocumented and unsupported, 2475# and are intended to be withdrawn in a future Autoconf release. 2476# They can cause serious problems if a builder's source tree is in a directory 2477# whose full name contains unusual characters. 2478if test -f "${ac_aux_dir}config.guess"; then 2479 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2480fi 2481if test -f "${ac_aux_dir}config.sub"; then 2482 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2483fi 2484if test -f "$ac_aux_dir/configure"; then 2485 ac_configure="$SHELL ${ac_aux_dir}configure" 2486fi 2487 2488# Check that the precious variables saved in the cache have kept the same 2489# value. 2490ac_cache_corrupted=false 2491for ac_var in $ac_precious_vars; do 2492 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2493 eval ac_new_set=\$ac_env_${ac_var}_set 2494 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2495 eval ac_new_val=\$ac_env_${ac_var}_value 2496 case $ac_old_set,$ac_new_set in 2497 set,) 2498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2499printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2500 ac_cache_corrupted=: ;; 2501 ,set) 2502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2503printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2504 ac_cache_corrupted=: ;; 2505 ,);; 2506 *) 2507 if test "x$ac_old_val" != "x$ac_new_val"; then 2508 # differences in whitespace do not lead to failure. 2509 ac_old_val_w=`echo x $ac_old_val` 2510 ac_new_val_w=`echo x $ac_new_val` 2511 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2513printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2514 ac_cache_corrupted=: 2515 else 2516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2517printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2518 eval $ac_var=\$ac_old_val 2519 fi 2520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2521printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2523printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2524 fi;; 2525 esac 2526 # Pass precious variables to config.status. 2527 if test "$ac_new_set" = set; then 2528 case $ac_new_val in 2529 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2530 *) ac_arg=$ac_var=$ac_new_val ;; 2531 esac 2532 case " $ac_configure_args " in 2533 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2534 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2535 esac 2536 fi 2537done 2538if $ac_cache_corrupted; then 2539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2540printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2542printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2543 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2544 and start over" "$LINENO" 5 2545fi 2546## -------------------- ## 2547## Main body of script. ## 2548## -------------------- ## 2549 2550ac_ext=c 2551ac_cpp='$CPP $CPPFLAGS' 2552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2554ac_compiler_gnu=$ac_cv_c_compiler_gnu 2555 2556 2557 2558ac_config_headers="$ac_config_headers config.h" 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571# Expand $ac_aux_dir to an absolute path. 2572am_aux_dir=`cd "$ac_aux_dir" && pwd` 2573 2574ac_ext=c 2575ac_cpp='$CPP $CPPFLAGS' 2576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2578ac_compiler_gnu=$ac_cv_c_compiler_gnu 2579if test -n "$ac_tool_prefix"; then 2580 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2581set dummy ${ac_tool_prefix}gcc; ac_word=$2 2582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2583printf %s "checking for $ac_word... " >&6; } 2584if test ${ac_cv_prog_CC+y} 2585then : 2586 printf %s "(cached) " >&6 2587else $as_nop 2588 if test -n "$CC"; then 2589 ac_cv_prog_CC="$CC" # Let the user override the test. 2590else 2591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2592for as_dir in $PATH 2593do 2594 IFS=$as_save_IFS 2595 case $as_dir in #((( 2596 '') as_dir=./ ;; 2597 */) ;; 2598 *) as_dir=$as_dir/ ;; 2599 esac 2600 for ac_exec_ext in '' $ac_executable_extensions; do 2601 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2602 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2604 break 2 2605 fi 2606done 2607 done 2608IFS=$as_save_IFS 2609 2610fi 2611fi 2612CC=$ac_cv_prog_CC 2613if test -n "$CC"; then 2614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2615printf "%s\n" "$CC" >&6; } 2616else 2617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2618printf "%s\n" "no" >&6; } 2619fi 2620 2621 2622fi 2623if test -z "$ac_cv_prog_CC"; then 2624 ac_ct_CC=$CC 2625 # Extract the first word of "gcc", so it can be a program name with args. 2626set dummy gcc; ac_word=$2 2627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2628printf %s "checking for $ac_word... " >&6; } 2629if test ${ac_cv_prog_ac_ct_CC+y} 2630then : 2631 printf %s "(cached) " >&6 2632else $as_nop 2633 if test -n "$ac_ct_CC"; then 2634 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2635else 2636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2637for as_dir in $PATH 2638do 2639 IFS=$as_save_IFS 2640 case $as_dir in #((( 2641 '') as_dir=./ ;; 2642 */) ;; 2643 *) as_dir=$as_dir/ ;; 2644 esac 2645 for ac_exec_ext in '' $ac_executable_extensions; do 2646 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2647 ac_cv_prog_ac_ct_CC="gcc" 2648 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2649 break 2 2650 fi 2651done 2652 done 2653IFS=$as_save_IFS 2654 2655fi 2656fi 2657ac_ct_CC=$ac_cv_prog_ac_ct_CC 2658if test -n "$ac_ct_CC"; then 2659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2660printf "%s\n" "$ac_ct_CC" >&6; } 2661else 2662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2663printf "%s\n" "no" >&6; } 2664fi 2665 2666 if test "x$ac_ct_CC" = x; then 2667 CC="" 2668 else 2669 case $cross_compiling:$ac_tool_warned in 2670yes:) 2671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2672printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2673ac_tool_warned=yes ;; 2674esac 2675 CC=$ac_ct_CC 2676 fi 2677else 2678 CC="$ac_cv_prog_CC" 2679fi 2680 2681if test -z "$CC"; then 2682 if test -n "$ac_tool_prefix"; then 2683 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2684set dummy ${ac_tool_prefix}cc; ac_word=$2 2685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2686printf %s "checking for $ac_word... " >&6; } 2687if test ${ac_cv_prog_CC+y} 2688then : 2689 printf %s "(cached) " >&6 2690else $as_nop 2691 if test -n "$CC"; then 2692 ac_cv_prog_CC="$CC" # Let the user override the test. 2693else 2694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2695for as_dir in $PATH 2696do 2697 IFS=$as_save_IFS 2698 case $as_dir in #((( 2699 '') as_dir=./ ;; 2700 */) ;; 2701 *) as_dir=$as_dir/ ;; 2702 esac 2703 for ac_exec_ext in '' $ac_executable_extensions; do 2704 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2705 ac_cv_prog_CC="${ac_tool_prefix}cc" 2706 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2707 break 2 2708 fi 2709done 2710 done 2711IFS=$as_save_IFS 2712 2713fi 2714fi 2715CC=$ac_cv_prog_CC 2716if test -n "$CC"; then 2717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2718printf "%s\n" "$CC" >&6; } 2719else 2720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2721printf "%s\n" "no" >&6; } 2722fi 2723 2724 2725 fi 2726fi 2727if test -z "$CC"; then 2728 # Extract the first word of "cc", so it can be a program name with args. 2729set dummy cc; ac_word=$2 2730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2731printf %s "checking for $ac_word... " >&6; } 2732if test ${ac_cv_prog_CC+y} 2733then : 2734 printf %s "(cached) " >&6 2735else $as_nop 2736 if test -n "$CC"; then 2737 ac_cv_prog_CC="$CC" # Let the user override the test. 2738else 2739 ac_prog_rejected=no 2740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2741for as_dir in $PATH 2742do 2743 IFS=$as_save_IFS 2744 case $as_dir in #((( 2745 '') as_dir=./ ;; 2746 */) ;; 2747 *) as_dir=$as_dir/ ;; 2748 esac 2749 for ac_exec_ext in '' $ac_executable_extensions; do 2750 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2751 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2752 ac_prog_rejected=yes 2753 continue 2754 fi 2755 ac_cv_prog_CC="cc" 2756 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2757 break 2 2758 fi 2759done 2760 done 2761IFS=$as_save_IFS 2762 2763if test $ac_prog_rejected = yes; then 2764 # We found a bogon in the path, so make sure we never use it. 2765 set dummy $ac_cv_prog_CC 2766 shift 2767 if test $# != 0; then 2768 # We chose a different compiler from the bogus one. 2769 # However, it has the same basename, so the bogon will be chosen 2770 # first if we set CC to just the basename; use the full file name. 2771 shift 2772 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 2773 fi 2774fi 2775fi 2776fi 2777CC=$ac_cv_prog_CC 2778if test -n "$CC"; then 2779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2780printf "%s\n" "$CC" >&6; } 2781else 2782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2783printf "%s\n" "no" >&6; } 2784fi 2785 2786 2787fi 2788if test -z "$CC"; then 2789 if test -n "$ac_tool_prefix"; then 2790 for ac_prog in cl.exe 2791 do 2792 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2793set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2795printf %s "checking for $ac_word... " >&6; } 2796if test ${ac_cv_prog_CC+y} 2797then : 2798 printf %s "(cached) " >&6 2799else $as_nop 2800 if test -n "$CC"; then 2801 ac_cv_prog_CC="$CC" # Let the user override the test. 2802else 2803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2804for as_dir in $PATH 2805do 2806 IFS=$as_save_IFS 2807 case $as_dir in #((( 2808 '') as_dir=./ ;; 2809 */) ;; 2810 *) as_dir=$as_dir/ ;; 2811 esac 2812 for ac_exec_ext in '' $ac_executable_extensions; do 2813 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2814 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2816 break 2 2817 fi 2818done 2819 done 2820IFS=$as_save_IFS 2821 2822fi 2823fi 2824CC=$ac_cv_prog_CC 2825if test -n "$CC"; then 2826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2827printf "%s\n" "$CC" >&6; } 2828else 2829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2830printf "%s\n" "no" >&6; } 2831fi 2832 2833 2834 test -n "$CC" && break 2835 done 2836fi 2837if test -z "$CC"; then 2838 ac_ct_CC=$CC 2839 for ac_prog in cl.exe 2840do 2841 # Extract the first word of "$ac_prog", so it can be a program name with args. 2842set dummy $ac_prog; ac_word=$2 2843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2844printf %s "checking for $ac_word... " >&6; } 2845if test ${ac_cv_prog_ac_ct_CC+y} 2846then : 2847 printf %s "(cached) " >&6 2848else $as_nop 2849 if test -n "$ac_ct_CC"; then 2850 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2851else 2852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2853for as_dir in $PATH 2854do 2855 IFS=$as_save_IFS 2856 case $as_dir in #((( 2857 '') as_dir=./ ;; 2858 */) ;; 2859 *) as_dir=$as_dir/ ;; 2860 esac 2861 for ac_exec_ext in '' $ac_executable_extensions; do 2862 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2863 ac_cv_prog_ac_ct_CC="$ac_prog" 2864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2865 break 2 2866 fi 2867done 2868 done 2869IFS=$as_save_IFS 2870 2871fi 2872fi 2873ac_ct_CC=$ac_cv_prog_ac_ct_CC 2874if test -n "$ac_ct_CC"; then 2875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2876printf "%s\n" "$ac_ct_CC" >&6; } 2877else 2878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2879printf "%s\n" "no" >&6; } 2880fi 2881 2882 2883 test -n "$ac_ct_CC" && break 2884done 2885 2886 if test "x$ac_ct_CC" = x; then 2887 CC="" 2888 else 2889 case $cross_compiling:$ac_tool_warned in 2890yes:) 2891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2892printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2893ac_tool_warned=yes ;; 2894esac 2895 CC=$ac_ct_CC 2896 fi 2897fi 2898 2899fi 2900if test -z "$CC"; then 2901 if test -n "$ac_tool_prefix"; then 2902 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 2903set dummy ${ac_tool_prefix}clang; ac_word=$2 2904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2905printf %s "checking for $ac_word... " >&6; } 2906if test ${ac_cv_prog_CC+y} 2907then : 2908 printf %s "(cached) " >&6 2909else $as_nop 2910 if test -n "$CC"; then 2911 ac_cv_prog_CC="$CC" # Let the user override the test. 2912else 2913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2914for as_dir in $PATH 2915do 2916 IFS=$as_save_IFS 2917 case $as_dir in #((( 2918 '') as_dir=./ ;; 2919 */) ;; 2920 *) as_dir=$as_dir/ ;; 2921 esac 2922 for ac_exec_ext in '' $ac_executable_extensions; do 2923 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2924 ac_cv_prog_CC="${ac_tool_prefix}clang" 2925 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2926 break 2 2927 fi 2928done 2929 done 2930IFS=$as_save_IFS 2931 2932fi 2933fi 2934CC=$ac_cv_prog_CC 2935if test -n "$CC"; then 2936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2937printf "%s\n" "$CC" >&6; } 2938else 2939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2940printf "%s\n" "no" >&6; } 2941fi 2942 2943 2944fi 2945if test -z "$ac_cv_prog_CC"; then 2946 ac_ct_CC=$CC 2947 # Extract the first word of "clang", so it can be a program name with args. 2948set dummy clang; ac_word=$2 2949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2950printf %s "checking for $ac_word... " >&6; } 2951if test ${ac_cv_prog_ac_ct_CC+y} 2952then : 2953 printf %s "(cached) " >&6 2954else $as_nop 2955 if test -n "$ac_ct_CC"; then 2956 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2957else 2958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2959for as_dir in $PATH 2960do 2961 IFS=$as_save_IFS 2962 case $as_dir in #((( 2963 '') as_dir=./ ;; 2964 */) ;; 2965 *) as_dir=$as_dir/ ;; 2966 esac 2967 for ac_exec_ext in '' $ac_executable_extensions; do 2968 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2969 ac_cv_prog_ac_ct_CC="clang" 2970 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2971 break 2 2972 fi 2973done 2974 done 2975IFS=$as_save_IFS 2976 2977fi 2978fi 2979ac_ct_CC=$ac_cv_prog_ac_ct_CC 2980if test -n "$ac_ct_CC"; then 2981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2982printf "%s\n" "$ac_ct_CC" >&6; } 2983else 2984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2985printf "%s\n" "no" >&6; } 2986fi 2987 2988 if test "x$ac_ct_CC" = x; then 2989 CC="" 2990 else 2991 case $cross_compiling:$ac_tool_warned in 2992yes:) 2993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2994printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2995ac_tool_warned=yes ;; 2996esac 2997 CC=$ac_ct_CC 2998 fi 2999else 3000 CC="$ac_cv_prog_CC" 3001fi 3002 3003fi 3004 3005 3006test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3007printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3008as_fn_error $? "no acceptable C compiler found in \$PATH 3009See \`config.log' for more details" "$LINENO" 5; } 3010 3011# Provide some information about the compiler. 3012printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3013set X $ac_compile 3014ac_compiler=$2 3015for ac_option in --version -v -V -qversion -version; do 3016 { { ac_try="$ac_compiler $ac_option >&5" 3017case "(($ac_try" in 3018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3019 *) ac_try_echo=$ac_try;; 3020esac 3021eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3022printf "%s\n" "$ac_try_echo"; } >&5 3023 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3024 ac_status=$? 3025 if test -s conftest.err; then 3026 sed '10a\ 3027... rest of stderr output deleted ... 3028 10q' conftest.err >conftest.er1 3029 cat conftest.er1 >&5 3030 fi 3031 rm -f conftest.er1 conftest.err 3032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3033 test $ac_status = 0; } 3034done 3035 3036cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3037/* end confdefs.h. */ 3038 3039int 3040main (void) 3041{ 3042 3043 ; 3044 return 0; 3045} 3046_ACEOF 3047ac_clean_files_save=$ac_clean_files 3048ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3049# Try to create an executable without -o first, disregard a.out. 3050# It will help us diagnose broken compilers, and finding out an intuition 3051# of exeext. 3052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3053printf %s "checking whether the C compiler works... " >&6; } 3054ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3055 3056# The possible output files: 3057ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3058 3059ac_rmfiles= 3060for ac_file in $ac_files 3061do 3062 case $ac_file in 3063 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3064 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3065 esac 3066done 3067rm -f $ac_rmfiles 3068 3069if { { ac_try="$ac_link_default" 3070case "(($ac_try" in 3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3072 *) ac_try_echo=$ac_try;; 3073esac 3074eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3075printf "%s\n" "$ac_try_echo"; } >&5 3076 (eval "$ac_link_default") 2>&5 3077 ac_status=$? 3078 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3079 test $ac_status = 0; } 3080then : 3081 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3082# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3083# in a Makefile. We should not override ac_cv_exeext if it was cached, 3084# so that the user can short-circuit this test for compilers unknown to 3085# Autoconf. 3086for ac_file in $ac_files '' 3087do 3088 test -f "$ac_file" || continue 3089 case $ac_file in 3090 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3091 ;; 3092 [ab].out ) 3093 # We found the default executable, but exeext='' is most 3094 # certainly right. 3095 break;; 3096 *.* ) 3097 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3098 then :; else 3099 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3100 fi 3101 # We set ac_cv_exeext here because the later test for it is not 3102 # safe: cross compilers may not add the suffix if given an `-o' 3103 # argument, so we may need to know it at that point already. 3104 # Even if this section looks crufty: it has the advantage of 3105 # actually working. 3106 break;; 3107 * ) 3108 break;; 3109 esac 3110done 3111test "$ac_cv_exeext" = no && ac_cv_exeext= 3112 3113else $as_nop 3114 ac_file='' 3115fi 3116if test -z "$ac_file" 3117then : 3118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3119printf "%s\n" "no" >&6; } 3120printf "%s\n" "$as_me: failed program was:" >&5 3121sed 's/^/| /' conftest.$ac_ext >&5 3122 3123{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3124printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3125as_fn_error 77 "C compiler cannot create executables 3126See \`config.log' for more details" "$LINENO" 5; } 3127else $as_nop 3128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3129printf "%s\n" "yes" >&6; } 3130fi 3131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3132printf %s "checking for C compiler default output file name... " >&6; } 3133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3134printf "%s\n" "$ac_file" >&6; } 3135ac_exeext=$ac_cv_exeext 3136 3137rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3138ac_clean_files=$ac_clean_files_save 3139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3140printf %s "checking for suffix of executables... " >&6; } 3141if { { ac_try="$ac_link" 3142case "(($ac_try" in 3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3144 *) ac_try_echo=$ac_try;; 3145esac 3146eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3147printf "%s\n" "$ac_try_echo"; } >&5 3148 (eval "$ac_link") 2>&5 3149 ac_status=$? 3150 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3151 test $ac_status = 0; } 3152then : 3153 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3154# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3155# work properly (i.e., refer to `conftest.exe'), while it won't with 3156# `rm'. 3157for ac_file in conftest.exe conftest conftest.*; do 3158 test -f "$ac_file" || continue 3159 case $ac_file in 3160 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3161 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3162 break;; 3163 * ) break;; 3164 esac 3165done 3166else $as_nop 3167 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3168printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3169as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3170See \`config.log' for more details" "$LINENO" 5; } 3171fi 3172rm -f conftest conftest$ac_cv_exeext 3173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3174printf "%s\n" "$ac_cv_exeext" >&6; } 3175 3176rm -f conftest.$ac_ext 3177EXEEXT=$ac_cv_exeext 3178ac_exeext=$EXEEXT 3179cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3180/* end confdefs.h. */ 3181#include <stdio.h> 3182int 3183main (void) 3184{ 3185FILE *f = fopen ("conftest.out", "w"); 3186 return ferror (f) || fclose (f) != 0; 3187 3188 ; 3189 return 0; 3190} 3191_ACEOF 3192ac_clean_files="$ac_clean_files conftest.out" 3193# Check that the compiler produces executables we can run. If not, either 3194# the compiler is broken, or we cross compile. 3195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3196printf %s "checking whether we are cross compiling... " >&6; } 3197if test "$cross_compiling" != yes; then 3198 { { ac_try="$ac_link" 3199case "(($ac_try" in 3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3201 *) ac_try_echo=$ac_try;; 3202esac 3203eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3204printf "%s\n" "$ac_try_echo"; } >&5 3205 (eval "$ac_link") 2>&5 3206 ac_status=$? 3207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3208 test $ac_status = 0; } 3209 if { ac_try='./conftest$ac_cv_exeext' 3210 { { case "(($ac_try" in 3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3212 *) ac_try_echo=$ac_try;; 3213esac 3214eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3215printf "%s\n" "$ac_try_echo"; } >&5 3216 (eval "$ac_try") 2>&5 3217 ac_status=$? 3218 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3219 test $ac_status = 0; }; }; then 3220 cross_compiling=no 3221 else 3222 if test "$cross_compiling" = maybe; then 3223 cross_compiling=yes 3224 else 3225 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3226printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3227as_fn_error 77 "cannot run C compiled programs. 3228If you meant to cross compile, use \`--host'. 3229See \`config.log' for more details" "$LINENO" 5; } 3230 fi 3231 fi 3232fi 3233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3234printf "%s\n" "$cross_compiling" >&6; } 3235 3236rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3237ac_clean_files=$ac_clean_files_save 3238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3239printf %s "checking for suffix of object files... " >&6; } 3240if test ${ac_cv_objext+y} 3241then : 3242 printf %s "(cached) " >&6 3243else $as_nop 3244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3245/* end confdefs.h. */ 3246 3247int 3248main (void) 3249{ 3250 3251 ; 3252 return 0; 3253} 3254_ACEOF 3255rm -f conftest.o conftest.obj 3256if { { ac_try="$ac_compile" 3257case "(($ac_try" in 3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3259 *) ac_try_echo=$ac_try;; 3260esac 3261eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3262printf "%s\n" "$ac_try_echo"; } >&5 3263 (eval "$ac_compile") 2>&5 3264 ac_status=$? 3265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3266 test $ac_status = 0; } 3267then : 3268 for ac_file in conftest.o conftest.obj conftest.*; do 3269 test -f "$ac_file" || continue; 3270 case $ac_file in 3271 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3272 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3273 break;; 3274 esac 3275done 3276else $as_nop 3277 printf "%s\n" "$as_me: failed program was:" >&5 3278sed 's/^/| /' conftest.$ac_ext >&5 3279 3280{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3281printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3282as_fn_error $? "cannot compute suffix of object files: cannot compile 3283See \`config.log' for more details" "$LINENO" 5; } 3284fi 3285rm -f conftest.$ac_cv_objext conftest.$ac_ext 3286fi 3287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3288printf "%s\n" "$ac_cv_objext" >&6; } 3289OBJEXT=$ac_cv_objext 3290ac_objext=$OBJEXT 3291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3292printf %s "checking whether the compiler supports GNU C... " >&6; } 3293if test ${ac_cv_c_compiler_gnu+y} 3294then : 3295 printf %s "(cached) " >&6 3296else $as_nop 3297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3298/* end confdefs.h. */ 3299 3300int 3301main (void) 3302{ 3303#ifndef __GNUC__ 3304 choke me 3305#endif 3306 3307 ; 3308 return 0; 3309} 3310_ACEOF 3311if ac_fn_c_try_compile "$LINENO" 3312then : 3313 ac_compiler_gnu=yes 3314else $as_nop 3315 ac_compiler_gnu=no 3316fi 3317rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3318ac_cv_c_compiler_gnu=$ac_compiler_gnu 3319 3320fi 3321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3322printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3323ac_compiler_gnu=$ac_cv_c_compiler_gnu 3324 3325if test $ac_compiler_gnu = yes; then 3326 GCC=yes 3327else 3328 GCC= 3329fi 3330ac_test_CFLAGS=${CFLAGS+y} 3331ac_save_CFLAGS=$CFLAGS 3332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3333printf %s "checking whether $CC accepts -g... " >&6; } 3334if test ${ac_cv_prog_cc_g+y} 3335then : 3336 printf %s "(cached) " >&6 3337else $as_nop 3338 ac_save_c_werror_flag=$ac_c_werror_flag 3339 ac_c_werror_flag=yes 3340 ac_cv_prog_cc_g=no 3341 CFLAGS="-g" 3342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3343/* end confdefs.h. */ 3344 3345int 3346main (void) 3347{ 3348 3349 ; 3350 return 0; 3351} 3352_ACEOF 3353if ac_fn_c_try_compile "$LINENO" 3354then : 3355 ac_cv_prog_cc_g=yes 3356else $as_nop 3357 CFLAGS="" 3358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3359/* end confdefs.h. */ 3360 3361int 3362main (void) 3363{ 3364 3365 ; 3366 return 0; 3367} 3368_ACEOF 3369if ac_fn_c_try_compile "$LINENO" 3370then : 3371 3372else $as_nop 3373 ac_c_werror_flag=$ac_save_c_werror_flag 3374 CFLAGS="-g" 3375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3376/* end confdefs.h. */ 3377 3378int 3379main (void) 3380{ 3381 3382 ; 3383 return 0; 3384} 3385_ACEOF 3386if ac_fn_c_try_compile "$LINENO" 3387then : 3388 ac_cv_prog_cc_g=yes 3389fi 3390rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3391fi 3392rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3393fi 3394rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3395 ac_c_werror_flag=$ac_save_c_werror_flag 3396fi 3397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3398printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3399if test $ac_test_CFLAGS; then 3400 CFLAGS=$ac_save_CFLAGS 3401elif test $ac_cv_prog_cc_g = yes; then 3402 if test "$GCC" = yes; then 3403 CFLAGS="-g -O2" 3404 else 3405 CFLAGS="-g" 3406 fi 3407else 3408 if test "$GCC" = yes; then 3409 CFLAGS="-O2" 3410 else 3411 CFLAGS= 3412 fi 3413fi 3414ac_prog_cc_stdc=no 3415if test x$ac_prog_cc_stdc = xno 3416then : 3417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3418printf %s "checking for $CC option to enable C11 features... " >&6; } 3419if test ${ac_cv_prog_cc_c11+y} 3420then : 3421 printf %s "(cached) " >&6 3422else $as_nop 3423 ac_cv_prog_cc_c11=no 3424ac_save_CC=$CC 3425cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3426/* end confdefs.h. */ 3427$ac_c_conftest_c11_program 3428_ACEOF 3429for ac_arg in '' -std=gnu11 3430do 3431 CC="$ac_save_CC $ac_arg" 3432 if ac_fn_c_try_compile "$LINENO" 3433then : 3434 ac_cv_prog_cc_c11=$ac_arg 3435fi 3436rm -f core conftest.err conftest.$ac_objext conftest.beam 3437 test "x$ac_cv_prog_cc_c11" != "xno" && break 3438done 3439rm -f conftest.$ac_ext 3440CC=$ac_save_CC 3441fi 3442 3443if test "x$ac_cv_prog_cc_c11" = xno 3444then : 3445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3446printf "%s\n" "unsupported" >&6; } 3447else $as_nop 3448 if test "x$ac_cv_prog_cc_c11" = x 3449then : 3450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3451printf "%s\n" "none needed" >&6; } 3452else $as_nop 3453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3454printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3455 CC="$CC $ac_cv_prog_cc_c11" 3456fi 3457 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3458 ac_prog_cc_stdc=c11 3459fi 3460fi 3461if test x$ac_prog_cc_stdc = xno 3462then : 3463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3464printf %s "checking for $CC option to enable C99 features... " >&6; } 3465if test ${ac_cv_prog_cc_c99+y} 3466then : 3467 printf %s "(cached) " >&6 3468else $as_nop 3469 ac_cv_prog_cc_c99=no 3470ac_save_CC=$CC 3471cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3472/* end confdefs.h. */ 3473$ac_c_conftest_c99_program 3474_ACEOF 3475for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3476do 3477 CC="$ac_save_CC $ac_arg" 3478 if ac_fn_c_try_compile "$LINENO" 3479then : 3480 ac_cv_prog_cc_c99=$ac_arg 3481fi 3482rm -f core conftest.err conftest.$ac_objext conftest.beam 3483 test "x$ac_cv_prog_cc_c99" != "xno" && break 3484done 3485rm -f conftest.$ac_ext 3486CC=$ac_save_CC 3487fi 3488 3489if test "x$ac_cv_prog_cc_c99" = xno 3490then : 3491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3492printf "%s\n" "unsupported" >&6; } 3493else $as_nop 3494 if test "x$ac_cv_prog_cc_c99" = x 3495then : 3496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3497printf "%s\n" "none needed" >&6; } 3498else $as_nop 3499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3500printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3501 CC="$CC $ac_cv_prog_cc_c99" 3502fi 3503 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3504 ac_prog_cc_stdc=c99 3505fi 3506fi 3507if test x$ac_prog_cc_stdc = xno 3508then : 3509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3510printf %s "checking for $CC option to enable C89 features... " >&6; } 3511if test ${ac_cv_prog_cc_c89+y} 3512then : 3513 printf %s "(cached) " >&6 3514else $as_nop 3515 ac_cv_prog_cc_c89=no 3516ac_save_CC=$CC 3517cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3518/* end confdefs.h. */ 3519$ac_c_conftest_c89_program 3520_ACEOF 3521for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3522do 3523 CC="$ac_save_CC $ac_arg" 3524 if ac_fn_c_try_compile "$LINENO" 3525then : 3526 ac_cv_prog_cc_c89=$ac_arg 3527fi 3528rm -f core conftest.err conftest.$ac_objext conftest.beam 3529 test "x$ac_cv_prog_cc_c89" != "xno" && break 3530done 3531rm -f conftest.$ac_ext 3532CC=$ac_save_CC 3533fi 3534 3535if test "x$ac_cv_prog_cc_c89" = xno 3536then : 3537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3538printf "%s\n" "unsupported" >&6; } 3539else $as_nop 3540 if test "x$ac_cv_prog_cc_c89" = x 3541then : 3542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3543printf "%s\n" "none needed" >&6; } 3544else $as_nop 3545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3546printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3547 CC="$CC $ac_cv_prog_cc_c89" 3548fi 3549 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3550 ac_prog_cc_stdc=c89 3551fi 3552fi 3553 3554ac_ext=c 3555ac_cpp='$CPP $CPPFLAGS' 3556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3558ac_compiler_gnu=$ac_cv_c_compiler_gnu 3559 3560 3561 ac_ext=c 3562ac_cpp='$CPP $CPPFLAGS' 3563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3565ac_compiler_gnu=$ac_cv_c_compiler_gnu 3566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3567printf %s "checking whether $CC understands -c and -o together... " >&6; } 3568if test ${am_cv_prog_cc_c_o+y} 3569then : 3570 printf %s "(cached) " >&6 3571else $as_nop 3572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3573/* end confdefs.h. */ 3574 3575int 3576main (void) 3577{ 3578 3579 ; 3580 return 0; 3581} 3582_ACEOF 3583 # Make sure it works both with $CC and with simple cc. 3584 # Following AC_PROG_CC_C_O, we do the test twice because some 3585 # compilers refuse to overwrite an existing .o file with -o, 3586 # though they will create one. 3587 am_cv_prog_cc_c_o=yes 3588 for am_i in 1 2; do 3589 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3590 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3591 ac_status=$? 3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3593 (exit $ac_status); } \ 3594 && test -f conftest2.$ac_objext; then 3595 : OK 3596 else 3597 am_cv_prog_cc_c_o=no 3598 break 3599 fi 3600 done 3601 rm -f core conftest* 3602 unset am_i 3603fi 3604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3605printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3606if test "$am_cv_prog_cc_c_o" != yes; then 3607 # Losing compiler, so override with the script. 3608 # FIXME: It is wrong to rewrite CC. 3609 # But if we don't then we get into trouble of one sort or another. 3610 # A longer-term fix would be to have automake use am__CC in this case, 3611 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3612 CC="$am_aux_dir/compile $CC" 3613fi 3614ac_ext=c 3615ac_cpp='$CPP $CPPFLAGS' 3616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3618ac_compiler_gnu=$ac_cv_c_compiler_gnu 3619 3620 3621 3622ac_header= ac_cache= 3623for ac_item in $ac_header_c_list 3624do 3625 if test $ac_cache; then 3626 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3627 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3628 printf "%s\n" "#define $ac_item 1" >> confdefs.h 3629 fi 3630 ac_header= ac_cache= 3631 elif test $ac_header; then 3632 ac_cache=$ac_item 3633 else 3634 ac_header=$ac_item 3635 fi 3636done 3637 3638 3639 3640 3641 3642 3643 3644 3645if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3646then : 3647 3648printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 3649 3650fi 3651 3652 3653 3654 3655 3656 3657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3658printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3659if test ${ac_cv_safe_to_define___extensions__+y} 3660then : 3661 printf %s "(cached) " >&6 3662else $as_nop 3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3664/* end confdefs.h. */ 3665 3666# define __EXTENSIONS__ 1 3667 $ac_includes_default 3668int 3669main (void) 3670{ 3671 3672 ; 3673 return 0; 3674} 3675_ACEOF 3676if ac_fn_c_try_compile "$LINENO" 3677then : 3678 ac_cv_safe_to_define___extensions__=yes 3679else $as_nop 3680 ac_cv_safe_to_define___extensions__=no 3681fi 3682rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3683fi 3684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3685printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 3686 3687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 3688printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 3689if test ${ac_cv_should_define__xopen_source+y} 3690then : 3691 printf %s "(cached) " >&6 3692else $as_nop 3693 ac_cv_should_define__xopen_source=no 3694 if test $ac_cv_header_wchar_h = yes 3695then : 3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3697/* end confdefs.h. */ 3698 3699 #include <wchar.h> 3700 mbstate_t x; 3701int 3702main (void) 3703{ 3704 3705 ; 3706 return 0; 3707} 3708_ACEOF 3709if ac_fn_c_try_compile "$LINENO" 3710then : 3711 3712else $as_nop 3713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3714/* end confdefs.h. */ 3715 3716 #define _XOPEN_SOURCE 500 3717 #include <wchar.h> 3718 mbstate_t x; 3719int 3720main (void) 3721{ 3722 3723 ; 3724 return 0; 3725} 3726_ACEOF 3727if ac_fn_c_try_compile "$LINENO" 3728then : 3729 ac_cv_should_define__xopen_source=yes 3730fi 3731rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3732fi 3733rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3734fi 3735fi 3736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 3737printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 3738 3739 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 3740 3741 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 3742 3743 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 3744 3745 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 3746 3747 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 3748 3749 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 3750 3751 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3752 3753 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 3754 3755 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 3756 3757 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 3758 3759 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 3760 3761 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 3762 3763 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 3764 3765 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 3766 3767 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 3768 3769 if test $ac_cv_header_minix_config_h = yes 3770then : 3771 MINIX=yes 3772 printf "%s\n" "#define _MINIX 1" >>confdefs.h 3773 3774 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 3775 3776 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 3777 3778else $as_nop 3779 MINIX= 3780fi 3781 if test $ac_cv_safe_to_define___extensions__ = yes 3782then : 3783 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 3784 3785fi 3786 if test $ac_cv_should_define__xopen_source = yes 3787then : 3788 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 3789 3790fi 3791 3792 3793# Initialize Automake 3794am__api_version='1.16' 3795 3796 3797 # Find a good install program. We prefer a C program (faster), 3798# so one script is as good as another. But avoid the broken or 3799# incompatible versions: 3800# SysV /etc/install, /usr/sbin/install 3801# SunOS /usr/etc/install 3802# IRIX /sbin/install 3803# AIX /bin/install 3804# AmigaOS /C/install, which installs bootblocks on floppy discs 3805# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3806# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3807# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3808# OS/2's system install, which has a completely different semantic 3809# ./install, which can be erroneously created by make from ./install.sh. 3810# Reject install programs that cannot install multiple files. 3811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3812printf %s "checking for a BSD-compatible install... " >&6; } 3813if test -z "$INSTALL"; then 3814if test ${ac_cv_path_install+y} 3815then : 3816 printf %s "(cached) " >&6 3817else $as_nop 3818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3819for as_dir in $PATH 3820do 3821 IFS=$as_save_IFS 3822 case $as_dir in #((( 3823 '') as_dir=./ ;; 3824 */) ;; 3825 *) as_dir=$as_dir/ ;; 3826 esac 3827 # Account for fact that we put trailing slashes in our PATH walk. 3828case $as_dir in #(( 3829 ./ | /[cC]/* | \ 3830 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3831 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3832 /usr/ucb/* ) ;; 3833 *) 3834 # OSF1 and SCO ODT 3.0 have their own names for install. 3835 # Don't use installbsd from OSF since it installs stuff as root 3836 # by default. 3837 for ac_prog in ginstall scoinst install; do 3838 for ac_exec_ext in '' $ac_executable_extensions; do 3839 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3840 if test $ac_prog = install && 3841 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3842 # AIX install. It has an incompatible calling convention. 3843 : 3844 elif test $ac_prog = install && 3845 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3846 # program-specific install script used by HP pwplus--don't use. 3847 : 3848 else 3849 rm -rf conftest.one conftest.two conftest.dir 3850 echo one > conftest.one 3851 echo two > conftest.two 3852 mkdir conftest.dir 3853 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3854 test -s conftest.one && test -s conftest.two && 3855 test -s conftest.dir/conftest.one && 3856 test -s conftest.dir/conftest.two 3857 then 3858 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3859 break 3 3860 fi 3861 fi 3862 fi 3863 done 3864 done 3865 ;; 3866esac 3867 3868 done 3869IFS=$as_save_IFS 3870 3871rm -rf conftest.one conftest.two conftest.dir 3872 3873fi 3874 if test ${ac_cv_path_install+y}; then 3875 INSTALL=$ac_cv_path_install 3876 else 3877 # As a last resort, use the slow shell script. Don't cache a 3878 # value for INSTALL within a source directory, because that will 3879 # break other packages using the cache if that directory is 3880 # removed, or if the value is a relative name. 3881 INSTALL=$ac_install_sh 3882 fi 3883fi 3884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3885printf "%s\n" "$INSTALL" >&6; } 3886 3887# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3888# It thinks the first close brace ends the variable substitution. 3889test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3890 3891test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3892 3893test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3894 3895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3896printf %s "checking whether build environment is sane... " >&6; } 3897# Reject unsafe characters in $srcdir or the absolute working directory 3898# name. Accept space and tab only in the latter. 3899am_lf=' 3900' 3901case `pwd` in 3902 *[\\\"\#\$\&\'\`$am_lf]*) 3903 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3904esac 3905case $srcdir in 3906 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3907 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3908esac 3909 3910# Do 'set' in a subshell so we don't clobber the current shell's 3911# arguments. Must try -L first in case configure is actually a 3912# symlink; some systems play weird games with the mod time of symlinks 3913# (eg FreeBSD returns the mod time of the symlink's containing 3914# directory). 3915if ( 3916 am_has_slept=no 3917 for am_try in 1 2; do 3918 echo "timestamp, slept: $am_has_slept" > conftest.file 3919 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3920 if test "$*" = "X"; then 3921 # -L didn't work. 3922 set X `ls -t "$srcdir/configure" conftest.file` 3923 fi 3924 if test "$*" != "X $srcdir/configure conftest.file" \ 3925 && test "$*" != "X conftest.file $srcdir/configure"; then 3926 3927 # If neither matched, then we have a broken ls. This can happen 3928 # if, for instance, CONFIG_SHELL is bash and it inherits a 3929 # broken ls alias from the environment. This has actually 3930 # happened. Such a system could not be considered "sane". 3931 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3932 alias in your environment" "$LINENO" 5 3933 fi 3934 if test "$2" = conftest.file || test $am_try -eq 2; then 3935 break 3936 fi 3937 # Just in case. 3938 sleep 1 3939 am_has_slept=yes 3940 done 3941 test "$2" = conftest.file 3942 ) 3943then 3944 # Ok. 3945 : 3946else 3947 as_fn_error $? "newly created file is older than distributed files! 3948Check your system clock" "$LINENO" 5 3949fi 3950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3951printf "%s\n" "yes" >&6; } 3952# If we didn't sleep, we still need to ensure time stamps of config.status and 3953# generated files are strictly newer. 3954am_sleep_pid= 3955if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3956 ( sleep 1 ) & 3957 am_sleep_pid=$! 3958fi 3959 3960rm -f conftest.file 3961 3962test "$program_prefix" != NONE && 3963 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3964# Use a double $ so make ignores it. 3965test "$program_suffix" != NONE && 3966 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3967# Double any \ or $. 3968# By default was `s,x,x', remove it if useless. 3969ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3970program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 3971 3972 3973 if test x"${MISSING+set}" != xset; then 3974 MISSING="\${SHELL} '$am_aux_dir/missing'" 3975fi 3976# Use eval to expand $SHELL 3977if eval "$MISSING --is-lightweight"; then 3978 am_missing_run="$MISSING " 3979else 3980 am_missing_run= 3981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3982printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3983fi 3984 3985if test x"${install_sh+set}" != xset; then 3986 case $am_aux_dir in 3987 *\ * | *\ *) 3988 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3989 *) 3990 install_sh="\${SHELL} $am_aux_dir/install-sh" 3991 esac 3992fi 3993 3994# Installed binaries are usually stripped using 'strip' when the user 3995# run "make install-strip". However 'strip' might not be the right 3996# tool to use in cross-compilation environments, therefore Automake 3997# will honor the 'STRIP' environment variable to overrule this program. 3998if test "$cross_compiling" != no; then 3999 if test -n "$ac_tool_prefix"; then 4000 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4001set dummy ${ac_tool_prefix}strip; ac_word=$2 4002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4003printf %s "checking for $ac_word... " >&6; } 4004if test ${ac_cv_prog_STRIP+y} 4005then : 4006 printf %s "(cached) " >&6 4007else $as_nop 4008 if test -n "$STRIP"; then 4009 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4010else 4011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4012for as_dir in $PATH 4013do 4014 IFS=$as_save_IFS 4015 case $as_dir in #((( 4016 '') as_dir=./ ;; 4017 */) ;; 4018 *) as_dir=$as_dir/ ;; 4019 esac 4020 for ac_exec_ext in '' $ac_executable_extensions; do 4021 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4022 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4023 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4024 break 2 4025 fi 4026done 4027 done 4028IFS=$as_save_IFS 4029 4030fi 4031fi 4032STRIP=$ac_cv_prog_STRIP 4033if test -n "$STRIP"; then 4034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4035printf "%s\n" "$STRIP" >&6; } 4036else 4037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4038printf "%s\n" "no" >&6; } 4039fi 4040 4041 4042fi 4043if test -z "$ac_cv_prog_STRIP"; then 4044 ac_ct_STRIP=$STRIP 4045 # Extract the first word of "strip", so it can be a program name with args. 4046set dummy strip; ac_word=$2 4047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4048printf %s "checking for $ac_word... " >&6; } 4049if test ${ac_cv_prog_ac_ct_STRIP+y} 4050then : 4051 printf %s "(cached) " >&6 4052else $as_nop 4053 if test -n "$ac_ct_STRIP"; then 4054 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4055else 4056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4057for as_dir in $PATH 4058do 4059 IFS=$as_save_IFS 4060 case $as_dir in #((( 4061 '') as_dir=./ ;; 4062 */) ;; 4063 *) as_dir=$as_dir/ ;; 4064 esac 4065 for ac_exec_ext in '' $ac_executable_extensions; do 4066 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4067 ac_cv_prog_ac_ct_STRIP="strip" 4068 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4069 break 2 4070 fi 4071done 4072 done 4073IFS=$as_save_IFS 4074 4075fi 4076fi 4077ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4078if test -n "$ac_ct_STRIP"; then 4079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4080printf "%s\n" "$ac_ct_STRIP" >&6; } 4081else 4082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4083printf "%s\n" "no" >&6; } 4084fi 4085 4086 if test "x$ac_ct_STRIP" = x; then 4087 STRIP=":" 4088 else 4089 case $cross_compiling:$ac_tool_warned in 4090yes:) 4091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4092printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4093ac_tool_warned=yes ;; 4094esac 4095 STRIP=$ac_ct_STRIP 4096 fi 4097else 4098 STRIP="$ac_cv_prog_STRIP" 4099fi 4100 4101fi 4102INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4103 4104 4105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4106printf %s "checking for a race-free mkdir -p... " >&6; } 4107if test -z "$MKDIR_P"; then 4108 if test ${ac_cv_path_mkdir+y} 4109then : 4110 printf %s "(cached) " >&6 4111else $as_nop 4112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4113for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4114do 4115 IFS=$as_save_IFS 4116 case $as_dir in #((( 4117 '') as_dir=./ ;; 4118 */) ;; 4119 *) as_dir=$as_dir/ ;; 4120 esac 4121 for ac_prog in mkdir gmkdir; do 4122 for ac_exec_ext in '' $ac_executable_extensions; do 4123 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4124 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4125 'mkdir ('*'coreutils) '* | \ 4126 'BusyBox '* | \ 4127 'mkdir (fileutils) '4.1*) 4128 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4129 break 3;; 4130 esac 4131 done 4132 done 4133 done 4134IFS=$as_save_IFS 4135 4136fi 4137 4138 test -d ./--version && rmdir ./--version 4139 if test ${ac_cv_path_mkdir+y}; then 4140 MKDIR_P="$ac_cv_path_mkdir -p" 4141 else 4142 # As a last resort, use the slow shell script. Don't cache a 4143 # value for MKDIR_P within a source directory, because that will 4144 # break other packages using the cache if that directory is 4145 # removed, or if the value is a relative name. 4146 MKDIR_P="$ac_install_sh -d" 4147 fi 4148fi 4149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4150printf "%s\n" "$MKDIR_P" >&6; } 4151 4152for ac_prog in gawk mawk nawk awk 4153do 4154 # Extract the first word of "$ac_prog", so it can be a program name with args. 4155set dummy $ac_prog; ac_word=$2 4156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4157printf %s "checking for $ac_word... " >&6; } 4158if test ${ac_cv_prog_AWK+y} 4159then : 4160 printf %s "(cached) " >&6 4161else $as_nop 4162 if test -n "$AWK"; then 4163 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4164else 4165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4166for as_dir in $PATH 4167do 4168 IFS=$as_save_IFS 4169 case $as_dir in #((( 4170 '') as_dir=./ ;; 4171 */) ;; 4172 *) as_dir=$as_dir/ ;; 4173 esac 4174 for ac_exec_ext in '' $ac_executable_extensions; do 4175 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4176 ac_cv_prog_AWK="$ac_prog" 4177 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4178 break 2 4179 fi 4180done 4181 done 4182IFS=$as_save_IFS 4183 4184fi 4185fi 4186AWK=$ac_cv_prog_AWK 4187if test -n "$AWK"; then 4188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4189printf "%s\n" "$AWK" >&6; } 4190else 4191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4192printf "%s\n" "no" >&6; } 4193fi 4194 4195 4196 test -n "$AWK" && break 4197done 4198 4199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4200printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4201set x ${MAKE-make} 4202ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4203if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4204then : 4205 printf %s "(cached) " >&6 4206else $as_nop 4207 cat >conftest.make <<\_ACEOF 4208SHELL = /bin/sh 4209all: 4210 @echo '@@@%%%=$(MAKE)=@@@%%%' 4211_ACEOF 4212# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4213case `${MAKE-make} -f conftest.make 2>/dev/null` in 4214 *@@@%%%=?*=@@@%%%*) 4215 eval ac_cv_prog_make_${ac_make}_set=yes;; 4216 *) 4217 eval ac_cv_prog_make_${ac_make}_set=no;; 4218esac 4219rm -f conftest.make 4220fi 4221if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4223printf "%s\n" "yes" >&6; } 4224 SET_MAKE= 4225else 4226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4227printf "%s\n" "no" >&6; } 4228 SET_MAKE="MAKE=${MAKE-make}" 4229fi 4230 4231rm -rf .tst 2>/dev/null 4232mkdir .tst 2>/dev/null 4233if test -d .tst; then 4234 am__leading_dot=. 4235else 4236 am__leading_dot=_ 4237fi 4238rmdir .tst 2>/dev/null 4239 4240DEPDIR="${am__leading_dot}deps" 4241 4242ac_config_commands="$ac_config_commands depfiles" 4243 4244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4245printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4246cat > confinc.mk << 'END' 4247am__doit: 4248 @echo this is the am__doit target >confinc.out 4249.PHONY: am__doit 4250END 4251am__include="#" 4252am__quote= 4253# BSD make does it like this. 4254echo '.include "confinc.mk" # ignored' > confmf.BSD 4255# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4256echo 'include confinc.mk # ignored' > confmf.GNU 4257_am_result=no 4258for s in GNU BSD; do 4259 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4260 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4261 ac_status=$? 4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4263 (exit $ac_status); } 4264 case $?:`cat confinc.out 2>/dev/null` in #( 4265 '0:this is the am__doit target') : 4266 case $s in #( 4267 BSD) : 4268 am__include='.include' am__quote='"' ;; #( 4269 *) : 4270 am__include='include' am__quote='' ;; 4271esac ;; #( 4272 *) : 4273 ;; 4274esac 4275 if test "$am__include" != "#"; then 4276 _am_result="yes ($s style)" 4277 break 4278 fi 4279done 4280rm -f confinc.* confmf.* 4281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4282printf "%s\n" "${_am_result}" >&6; } 4283 4284# Check whether --enable-dependency-tracking was given. 4285if test ${enable_dependency_tracking+y} 4286then : 4287 enableval=$enable_dependency_tracking; 4288fi 4289 4290if test "x$enable_dependency_tracking" != xno; then 4291 am_depcomp="$ac_aux_dir/depcomp" 4292 AMDEPBACKSLASH='\' 4293 am__nodep='_no' 4294fi 4295 if test "x$enable_dependency_tracking" != xno; then 4296 AMDEP_TRUE= 4297 AMDEP_FALSE='#' 4298else 4299 AMDEP_TRUE='#' 4300 AMDEP_FALSE= 4301fi 4302 4303 4304# Check whether --enable-silent-rules was given. 4305if test ${enable_silent_rules+y} 4306then : 4307 enableval=$enable_silent_rules; 4308fi 4309 4310case $enable_silent_rules in # ((( 4311 yes) AM_DEFAULT_VERBOSITY=0;; 4312 no) AM_DEFAULT_VERBOSITY=1;; 4313 *) AM_DEFAULT_VERBOSITY=1;; 4314esac 4315am_make=${MAKE-make} 4316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4317printf %s "checking whether $am_make supports nested variables... " >&6; } 4318if test ${am_cv_make_support_nested_variables+y} 4319then : 4320 printf %s "(cached) " >&6 4321else $as_nop 4322 if printf "%s\n" 'TRUE=$(BAR$(V)) 4323BAR0=false 4324BAR1=true 4325V=1 4326am__doit: 4327 @$(TRUE) 4328.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4329 am_cv_make_support_nested_variables=yes 4330else 4331 am_cv_make_support_nested_variables=no 4332fi 4333fi 4334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4335printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4336if test $am_cv_make_support_nested_variables = yes; then 4337 AM_V='$(V)' 4338 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4339else 4340 AM_V=$AM_DEFAULT_VERBOSITY 4341 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4342fi 4343AM_BACKSLASH='\' 4344 4345if test "`cd $srcdir && pwd`" != "`pwd`"; then 4346 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4347 # is not polluted with repeated "-I." 4348 am__isrc=' -I$(srcdir)' 4349 # test to see if srcdir already configured 4350 if test -f $srcdir/config.status; then 4351 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4352 fi 4353fi 4354 4355# test whether we have cygpath 4356if test -z "$CYGPATH_W"; then 4357 if (cygpath --version) >/dev/null 2>/dev/null; then 4358 CYGPATH_W='cygpath -w' 4359 else 4360 CYGPATH_W=echo 4361 fi 4362fi 4363 4364 4365# Define the identity of the package. 4366 PACKAGE='lndir' 4367 VERSION='1.0.4' 4368 4369 4370printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4371 4372 4373printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4374 4375# Some tools Automake needs. 4376 4377ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4378 4379 4380AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4381 4382 4383AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4384 4385 4386AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4387 4388 4389MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4390 4391# For better backward compatibility. To be removed once Automake 1.9.x 4392# dies out for good. For more background, see: 4393# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4394# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4395mkdir_p='$(MKDIR_P)' 4396 4397# We need awk for the "check" target (and possibly the TAP driver). The 4398# system "awk" is bad on some platforms. 4399# Always define AMTAR for backward compatibility. Yes, it's still used 4400# in the wild :-( We should find a proper way to deprecate it ... 4401AMTAR='$${TAR-tar}' 4402 4403 4404# We'll loop over all known methods to create a tar archive until one works. 4405_am_tools='gnutar pax cpio none' 4406 4407am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4408 4409 4410 4411 4412 4413depcc="$CC" am_compiler_list= 4414 4415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4416printf %s "checking dependency style of $depcc... " >&6; } 4417if test ${am_cv_CC_dependencies_compiler_type+y} 4418then : 4419 printf %s "(cached) " >&6 4420else $as_nop 4421 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4422 # We make a subdir and do the tests there. Otherwise we can end up 4423 # making bogus files that we don't know about and never remove. For 4424 # instance it was reported that on HP-UX the gcc test will end up 4425 # making a dummy file named 'D' -- because '-MD' means "put the output 4426 # in D". 4427 rm -rf conftest.dir 4428 mkdir conftest.dir 4429 # Copy depcomp to subdir because otherwise we won't find it if we're 4430 # using a relative directory. 4431 cp "$am_depcomp" conftest.dir 4432 cd conftest.dir 4433 # We will build objects and dependencies in a subdirectory because 4434 # it helps to detect inapplicable dependency modes. For instance 4435 # both Tru64's cc and ICC support -MD to output dependencies as a 4436 # side effect of compilation, but ICC will put the dependencies in 4437 # the current directory while Tru64 will put them in the object 4438 # directory. 4439 mkdir sub 4440 4441 am_cv_CC_dependencies_compiler_type=none 4442 if test "$am_compiler_list" = ""; then 4443 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4444 fi 4445 am__universal=false 4446 case " $depcc " in #( 4447 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4448 esac 4449 4450 for depmode in $am_compiler_list; do 4451 # Setup a source with many dependencies, because some compilers 4452 # like to wrap large dependency lists on column 80 (with \), and 4453 # we should not choose a depcomp mode which is confused by this. 4454 # 4455 # We need to recreate these files for each test, as the compiler may 4456 # overwrite some of them when testing with obscure command lines. 4457 # This happens at least with the AIX C compiler. 4458 : > sub/conftest.c 4459 for i in 1 2 3 4 5 6; do 4460 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4461 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4462 # Solaris 10 /bin/sh. 4463 echo '/* dummy */' > sub/conftst$i.h 4464 done 4465 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4466 4467 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4468 # mode. It turns out that the SunPro C++ compiler does not properly 4469 # handle '-M -o', and we need to detect this. Also, some Intel 4470 # versions had trouble with output in subdirs. 4471 am__obj=sub/conftest.${OBJEXT-o} 4472 am__minus_obj="-o $am__obj" 4473 case $depmode in 4474 gcc) 4475 # This depmode causes a compiler race in universal mode. 4476 test "$am__universal" = false || continue 4477 ;; 4478 nosideeffect) 4479 # After this tag, mechanisms are not by side-effect, so they'll 4480 # only be used when explicitly requested. 4481 if test "x$enable_dependency_tracking" = xyes; then 4482 continue 4483 else 4484 break 4485 fi 4486 ;; 4487 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4488 # This compiler won't grok '-c -o', but also, the minuso test has 4489 # not run yet. These depmodes are late enough in the game, and 4490 # so weak that their functioning should not be impacted. 4491 am__obj=conftest.${OBJEXT-o} 4492 am__minus_obj= 4493 ;; 4494 none) break ;; 4495 esac 4496 if depmode=$depmode \ 4497 source=sub/conftest.c object=$am__obj \ 4498 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4499 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4500 >/dev/null 2>conftest.err && 4501 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4502 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4503 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4504 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4505 # icc doesn't choke on unknown options, it will just issue warnings 4506 # or remarks (even with -Werror). So we grep stderr for any message 4507 # that says an option was ignored or not supported. 4508 # When given -MP, icc 7.0 and 7.1 complain thusly: 4509 # icc: Command line warning: ignoring option '-M'; no argument required 4510 # The diagnosis changed in icc 8.0: 4511 # icc: Command line remark: option '-MP' not supported 4512 if (grep 'ignoring option' conftest.err || 4513 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4514 am_cv_CC_dependencies_compiler_type=$depmode 4515 break 4516 fi 4517 fi 4518 done 4519 4520 cd .. 4521 rm -rf conftest.dir 4522else 4523 am_cv_CC_dependencies_compiler_type=none 4524fi 4525 4526fi 4527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4528printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4529CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4530 4531 if 4532 test "x$enable_dependency_tracking" != xno \ 4533 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4534 am__fastdepCC_TRUE= 4535 am__fastdepCC_FALSE='#' 4536else 4537 am__fastdepCC_TRUE='#' 4538 am__fastdepCC_FALSE= 4539fi 4540 4541 4542# Variables for tags utilities; see am/tags.am 4543if test -z "$CTAGS"; then 4544 CTAGS=ctags 4545fi 4546 4547if test -z "$ETAGS"; then 4548 ETAGS=etags 4549fi 4550 4551if test -z "$CSCOPE"; then 4552 CSCOPE=cscope 4553fi 4554 4555 4556 4557# POSIX will say in a future version that running "rm -f" with no argument 4558# is OK; and we want to be able to make that assumption in our Makefile 4559# recipes. So use an aggressive probe to check that the usage we want is 4560# actually supported "in the wild" to an acceptable degree. 4561# See automake bug#10828. 4562# To make any issue more visible, cause the running configure to be aborted 4563# by default if the 'rm' program in use doesn't match our expectations; the 4564# user can still override this though. 4565if rm -f && rm -fr && rm -rf; then : OK; else 4566 cat >&2 <<'END' 4567Oops! 4568 4569Your 'rm' program seems unable to run without file operands specified 4570on the command line, even when the '-f' option is present. This is contrary 4571to the behaviour of most rm programs out there, and not conforming with 4572the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4573 4574Please tell bug-automake@gnu.org about your system, including the value 4575of your $PATH and any error possibly output before this message. This 4576can help us improve future automake versions. 4577 4578END 4579 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4580 echo 'Configuration will proceed anyway, since you have set the' >&2 4581 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4582 echo >&2 4583 else 4584 cat >&2 <<'END' 4585Aborting the configuration process, to ensure you take notice of the issue. 4586 4587You can download and install GNU coreutils to get an 'rm' implementation 4588that behaves properly: <https://www.gnu.org/software/coreutils/>. 4589 4590If you want to complete the configuration process using your problematic 4591'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4592to "yes", and re-run configure. 4593 4594END 4595 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4596 fi 4597fi 4598 4599 4600# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4614printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4615if test ${ac_cv_c_undeclared_builtin_options+y} 4616then : 4617 printf %s "(cached) " >&6 4618else $as_nop 4619 ac_save_CFLAGS=$CFLAGS 4620 ac_cv_c_undeclared_builtin_options='cannot detect' 4621 for ac_arg in '' -fno-builtin; do 4622 CFLAGS="$ac_save_CFLAGS $ac_arg" 4623 # This test program should *not* compile successfully. 4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4625/* end confdefs.h. */ 4626 4627int 4628main (void) 4629{ 4630(void) strchr; 4631 ; 4632 return 0; 4633} 4634_ACEOF 4635if ac_fn_c_try_compile "$LINENO" 4636then : 4637 4638else $as_nop 4639 # This test program should compile successfully. 4640 # No library function is consistently available on 4641 # freestanding implementations, so test against a dummy 4642 # declaration. Include always-available headers on the 4643 # off chance that they somehow elicit warnings. 4644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4645/* end confdefs.h. */ 4646#include <float.h> 4647#include <limits.h> 4648#include <stdarg.h> 4649#include <stddef.h> 4650extern void ac_decl (int, char *); 4651 4652int 4653main (void) 4654{ 4655(void) ac_decl (0, (char *) 0); 4656 (void) ac_decl; 4657 4658 ; 4659 return 0; 4660} 4661_ACEOF 4662if ac_fn_c_try_compile "$LINENO" 4663then : 4664 if test x"$ac_arg" = x 4665then : 4666 ac_cv_c_undeclared_builtin_options='none needed' 4667else $as_nop 4668 ac_cv_c_undeclared_builtin_options=$ac_arg 4669fi 4670 break 4671fi 4672rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4673fi 4674rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4675 done 4676 CFLAGS=$ac_save_CFLAGS 4677 4678fi 4679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4680printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4681 case $ac_cv_c_undeclared_builtin_options in #( 4682 'cannot detect') : 4683 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4684printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4685as_fn_error $? "cannot make $CC report undeclared builtins 4686See \`config.log' for more details" "$LINENO" 5; } ;; #( 4687 'none needed') : 4688 ac_c_undeclared_builtin_options='' ;; #( 4689 *) : 4690 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4691esac 4692 4693 4694 4695 4696 4697ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4698if test "x$ac_cv_have_decl___clang__" = xyes 4699then : 4700 CLANGCC="yes" 4701else $as_nop 4702 CLANGCC="no" 4703fi 4704ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4705if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4706then : 4707 INTELCC="yes" 4708else $as_nop 4709 INTELCC="no" 4710fi 4711ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4712if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4713then : 4714 SUNCC="yes" 4715else $as_nop 4716 SUNCC="no" 4717fi 4718 4719 4720 4721 4722 4723 4724 4725 4726if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4727 if test -n "$ac_tool_prefix"; then 4728 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4729set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4731printf %s "checking for $ac_word... " >&6; } 4732if test ${ac_cv_path_PKG_CONFIG+y} 4733then : 4734 printf %s "(cached) " >&6 4735else $as_nop 4736 case $PKG_CONFIG in 4737 [\\/]* | ?:[\\/]*) 4738 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4739 ;; 4740 *) 4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4742for as_dir in $PATH 4743do 4744 IFS=$as_save_IFS 4745 case $as_dir in #((( 4746 '') as_dir=./ ;; 4747 */) ;; 4748 *) as_dir=$as_dir/ ;; 4749 esac 4750 for ac_exec_ext in '' $ac_executable_extensions; do 4751 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4752 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4754 break 2 4755 fi 4756done 4757 done 4758IFS=$as_save_IFS 4759 4760 ;; 4761esac 4762fi 4763PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4764if test -n "$PKG_CONFIG"; then 4765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4766printf "%s\n" "$PKG_CONFIG" >&6; } 4767else 4768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4769printf "%s\n" "no" >&6; } 4770fi 4771 4772 4773fi 4774if test -z "$ac_cv_path_PKG_CONFIG"; then 4775 ac_pt_PKG_CONFIG=$PKG_CONFIG 4776 # Extract the first word of "pkg-config", so it can be a program name with args. 4777set dummy pkg-config; ac_word=$2 4778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4779printf %s "checking for $ac_word... " >&6; } 4780if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4781then : 4782 printf %s "(cached) " >&6 4783else $as_nop 4784 case $ac_pt_PKG_CONFIG in 4785 [\\/]* | ?:[\\/]*) 4786 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4787 ;; 4788 *) 4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4790for as_dir in $PATH 4791do 4792 IFS=$as_save_IFS 4793 case $as_dir in #((( 4794 '') as_dir=./ ;; 4795 */) ;; 4796 *) as_dir=$as_dir/ ;; 4797 esac 4798 for ac_exec_ext in '' $ac_executable_extensions; do 4799 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4800 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4801 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4802 break 2 4803 fi 4804done 4805 done 4806IFS=$as_save_IFS 4807 4808 ;; 4809esac 4810fi 4811ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4812if test -n "$ac_pt_PKG_CONFIG"; then 4813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4814printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4815else 4816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4817printf "%s\n" "no" >&6; } 4818fi 4819 4820 if test "x$ac_pt_PKG_CONFIG" = x; then 4821 PKG_CONFIG="" 4822 else 4823 case $cross_compiling:$ac_tool_warned in 4824yes:) 4825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4826printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4827ac_tool_warned=yes ;; 4828esac 4829 PKG_CONFIG=$ac_pt_PKG_CONFIG 4830 fi 4831else 4832 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4833fi 4834 4835fi 4836if test -n "$PKG_CONFIG"; then 4837 _pkg_min_version=0.9.0 4838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4839printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4840 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4842printf "%s\n" "yes" >&6; } 4843 else 4844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4845printf "%s\n" "no" >&6; } 4846 PKG_CONFIG="" 4847 fi 4848fi 4849 4850 4851 # Make sure we can run config.sub. 4852$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4853 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4854 4855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4856printf %s "checking build system type... " >&6; } 4857if test ${ac_cv_build+y} 4858then : 4859 printf %s "(cached) " >&6 4860else $as_nop 4861 ac_build_alias=$build_alias 4862test "x$ac_build_alias" = x && 4863 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4864test "x$ac_build_alias" = x && 4865 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4866ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4867 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4868 4869fi 4870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4871printf "%s\n" "$ac_cv_build" >&6; } 4872case $ac_cv_build in 4873*-*-*) ;; 4874*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4875esac 4876build=$ac_cv_build 4877ac_save_IFS=$IFS; IFS='-' 4878set x $ac_cv_build 4879shift 4880build_cpu=$1 4881build_vendor=$2 4882shift; shift 4883# Remember, the first character of IFS is used to create $*, 4884# except with old shells: 4885build_os=$* 4886IFS=$ac_save_IFS 4887case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4888 4889 4890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4891printf %s "checking host system type... " >&6; } 4892if test ${ac_cv_host+y} 4893then : 4894 printf %s "(cached) " >&6 4895else $as_nop 4896 if test "x$host_alias" = x; then 4897 ac_cv_host=$ac_cv_build 4898else 4899 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4900 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4901fi 4902 4903fi 4904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4905printf "%s\n" "$ac_cv_host" >&6; } 4906case $ac_cv_host in 4907*-*-*) ;; 4908*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4909esac 4910host=$ac_cv_host 4911ac_save_IFS=$IFS; IFS='-' 4912set x $ac_cv_host 4913shift 4914host_cpu=$1 4915host_vendor=$2 4916shift; shift 4917# Remember, the first character of IFS is used to create $*, 4918# except with old shells: 4919host_os=$* 4920IFS=$ac_save_IFS 4921case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4922 4923 4924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4925printf %s "checking for a sed that does not truncate output... " >&6; } 4926if test ${ac_cv_path_SED+y} 4927then : 4928 printf %s "(cached) " >&6 4929else $as_nop 4930 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4931 for ac_i in 1 2 3 4 5 6 7; do 4932 ac_script="$ac_script$as_nl$ac_script" 4933 done 4934 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4935 { ac_script=; unset ac_script;} 4936 if test -z "$SED"; then 4937 ac_path_SED_found=false 4938 # Loop through the user's path and test for each of PROGNAME-LIST 4939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4940for as_dir in $PATH 4941do 4942 IFS=$as_save_IFS 4943 case $as_dir in #((( 4944 '') as_dir=./ ;; 4945 */) ;; 4946 *) as_dir=$as_dir/ ;; 4947 esac 4948 for ac_prog in sed gsed 4949 do 4950 for ac_exec_ext in '' $ac_executable_extensions; do 4951 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4952 as_fn_executable_p "$ac_path_SED" || continue 4953# Check for GNU ac_path_SED and select it if it is found. 4954 # Check for GNU $ac_path_SED 4955case `"$ac_path_SED" --version 2>&1` in 4956*GNU*) 4957 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4958*) 4959 ac_count=0 4960 printf %s 0123456789 >"conftest.in" 4961 while : 4962 do 4963 cat "conftest.in" "conftest.in" >"conftest.tmp" 4964 mv "conftest.tmp" "conftest.in" 4965 cp "conftest.in" "conftest.nl" 4966 printf "%s\n" '' >> "conftest.nl" 4967 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4968 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4969 as_fn_arith $ac_count + 1 && ac_count=$as_val 4970 if test $ac_count -gt ${ac_path_SED_max-0}; then 4971 # Best one so far, save it but keep looking for a better one 4972 ac_cv_path_SED="$ac_path_SED" 4973 ac_path_SED_max=$ac_count 4974 fi 4975 # 10*(2^10) chars as input seems more than enough 4976 test $ac_count -gt 10 && break 4977 done 4978 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4979esac 4980 4981 $ac_path_SED_found && break 3 4982 done 4983 done 4984 done 4985IFS=$as_save_IFS 4986 if test -z "$ac_cv_path_SED"; then 4987 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4988 fi 4989else 4990 ac_cv_path_SED=$SED 4991fi 4992 4993fi 4994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4995printf "%s\n" "$ac_cv_path_SED" >&6; } 4996 SED="$ac_cv_path_SED" 4997 rm -f conftest.sed 4998 4999 5000 5001 5002 5003 5004# Check whether --enable-selective-werror was given. 5005if test ${enable_selective_werror+y} 5006then : 5007 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5008else $as_nop 5009 SELECTIVE_WERROR=yes 5010fi 5011 5012 5013 5014 5015 5016# -v is too short to test reliably with XORG_TESTSET_CFLAG 5017if test "x$SUNCC" = "xyes"; then 5018 BASE_CFLAGS="-v" 5019else 5020 BASE_CFLAGS="" 5021fi 5022 5023# This chunk of warnings were those that existed in the legacy CWARNFLAGS 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037xorg_testset_save_CFLAGS="$CFLAGS" 5038 5039if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5040 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5042printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5043if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5044then : 5045 printf %s "(cached) " >&6 5046else $as_nop 5047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5048/* end confdefs.h. */ 5049int i; 5050_ACEOF 5051if ac_fn_c_try_compile "$LINENO" 5052then : 5053 xorg_cv_cc_flag_unknown_warning_option=yes 5054else $as_nop 5055 xorg_cv_cc_flag_unknown_warning_option=no 5056fi 5057rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5058fi 5059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5060printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5061 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5062 CFLAGS="$xorg_testset_save_CFLAGS" 5063fi 5064 5065if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5066 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5068 fi 5069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5071printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5072if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5073then : 5074 printf %s "(cached) " >&6 5075else $as_nop 5076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5077/* end confdefs.h. */ 5078int i; 5079_ACEOF 5080if ac_fn_c_try_compile "$LINENO" 5081then : 5082 xorg_cv_cc_flag_unused_command_line_argument=yes 5083else $as_nop 5084 xorg_cv_cc_flag_unused_command_line_argument=no 5085fi 5086rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5087fi 5088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5089printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5090 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5091 CFLAGS="$xorg_testset_save_CFLAGS" 5092fi 5093 5094found="no" 5095 5096 if test $found = "no" ; then 5097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5098 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5099 fi 5100 5101 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5103 fi 5104 5105 CFLAGS="$CFLAGS -Wall" 5106 5107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5108printf %s "checking if $CC supports -Wall... " >&6; } 5109 cacheid=xorg_cv_cc_flag__Wall 5110 if eval test \${$cacheid+y} 5111then : 5112 printf %s "(cached) " >&6 5113else $as_nop 5114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5115/* end confdefs.h. */ 5116int i; 5117int 5118main (void) 5119{ 5120 5121 ; 5122 return 0; 5123} 5124_ACEOF 5125if ac_fn_c_try_link "$LINENO" 5126then : 5127 eval $cacheid=yes 5128else $as_nop 5129 eval $cacheid=no 5130fi 5131rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5132 conftest$ac_exeext conftest.$ac_ext 5133fi 5134 5135 5136 CFLAGS="$xorg_testset_save_CFLAGS" 5137 5138 eval supported=\$$cacheid 5139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5140printf "%s\n" "$supported" >&6; } 5141 if test "$supported" = "yes" ; then 5142 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5143 found="yes" 5144 fi 5145 fi 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161xorg_testset_save_CFLAGS="$CFLAGS" 5162 5163if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5166printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5167if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5168then : 5169 printf %s "(cached) " >&6 5170else $as_nop 5171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5172/* end confdefs.h. */ 5173int i; 5174_ACEOF 5175if ac_fn_c_try_compile "$LINENO" 5176then : 5177 xorg_cv_cc_flag_unknown_warning_option=yes 5178else $as_nop 5179 xorg_cv_cc_flag_unknown_warning_option=no 5180fi 5181rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5182fi 5183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5184printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5185 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5186 CFLAGS="$xorg_testset_save_CFLAGS" 5187fi 5188 5189if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5190 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5191 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5192 fi 5193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5195printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5196if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5197then : 5198 printf %s "(cached) " >&6 5199else $as_nop 5200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5201/* end confdefs.h. */ 5202int i; 5203_ACEOF 5204if ac_fn_c_try_compile "$LINENO" 5205then : 5206 xorg_cv_cc_flag_unused_command_line_argument=yes 5207else $as_nop 5208 xorg_cv_cc_flag_unused_command_line_argument=no 5209fi 5210rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5211fi 5212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5213printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5214 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5215 CFLAGS="$xorg_testset_save_CFLAGS" 5216fi 5217 5218found="no" 5219 5220 if test $found = "no" ; then 5221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5223 fi 5224 5225 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5227 fi 5228 5229 CFLAGS="$CFLAGS -Wpointer-arith" 5230 5231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5232printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5233 cacheid=xorg_cv_cc_flag__Wpointer_arith 5234 if eval test \${$cacheid+y} 5235then : 5236 printf %s "(cached) " >&6 5237else $as_nop 5238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5239/* end confdefs.h. */ 5240int i; 5241int 5242main (void) 5243{ 5244 5245 ; 5246 return 0; 5247} 5248_ACEOF 5249if ac_fn_c_try_link "$LINENO" 5250then : 5251 eval $cacheid=yes 5252else $as_nop 5253 eval $cacheid=no 5254fi 5255rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5256 conftest$ac_exeext conftest.$ac_ext 5257fi 5258 5259 5260 CFLAGS="$xorg_testset_save_CFLAGS" 5261 5262 eval supported=\$$cacheid 5263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5264printf "%s\n" "$supported" >&6; } 5265 if test "$supported" = "yes" ; then 5266 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5267 found="yes" 5268 fi 5269 fi 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285xorg_testset_save_CFLAGS="$CFLAGS" 5286 5287if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5288 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5290printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5291if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5292then : 5293 printf %s "(cached) " >&6 5294else $as_nop 5295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5296/* end confdefs.h. */ 5297int i; 5298_ACEOF 5299if ac_fn_c_try_compile "$LINENO" 5300then : 5301 xorg_cv_cc_flag_unknown_warning_option=yes 5302else $as_nop 5303 xorg_cv_cc_flag_unknown_warning_option=no 5304fi 5305rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5306fi 5307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5308printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5309 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5310 CFLAGS="$xorg_testset_save_CFLAGS" 5311fi 5312 5313if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5316 fi 5317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5319printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5320if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5321then : 5322 printf %s "(cached) " >&6 5323else $as_nop 5324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5325/* end confdefs.h. */ 5326int i; 5327_ACEOF 5328if ac_fn_c_try_compile "$LINENO" 5329then : 5330 xorg_cv_cc_flag_unused_command_line_argument=yes 5331else $as_nop 5332 xorg_cv_cc_flag_unused_command_line_argument=no 5333fi 5334rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5335fi 5336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5337printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5338 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5339 CFLAGS="$xorg_testset_save_CFLAGS" 5340fi 5341 5342found="no" 5343 5344 if test $found = "no" ; then 5345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5347 fi 5348 5349 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5351 fi 5352 5353 CFLAGS="$CFLAGS -Wmissing-declarations" 5354 5355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5356printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5357 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5358 if eval test \${$cacheid+y} 5359then : 5360 printf %s "(cached) " >&6 5361else $as_nop 5362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5363/* end confdefs.h. */ 5364int i; 5365int 5366main (void) 5367{ 5368 5369 ; 5370 return 0; 5371} 5372_ACEOF 5373if ac_fn_c_try_link "$LINENO" 5374then : 5375 eval $cacheid=yes 5376else $as_nop 5377 eval $cacheid=no 5378fi 5379rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5380 conftest$ac_exeext conftest.$ac_ext 5381fi 5382 5383 5384 CFLAGS="$xorg_testset_save_CFLAGS" 5385 5386 eval supported=\$$cacheid 5387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5388printf "%s\n" "$supported" >&6; } 5389 if test "$supported" = "yes" ; then 5390 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5391 found="yes" 5392 fi 5393 fi 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409xorg_testset_save_CFLAGS="$CFLAGS" 5410 5411if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5414printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5415if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5416then : 5417 printf %s "(cached) " >&6 5418else $as_nop 5419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5420/* end confdefs.h. */ 5421int i; 5422_ACEOF 5423if ac_fn_c_try_compile "$LINENO" 5424then : 5425 xorg_cv_cc_flag_unknown_warning_option=yes 5426else $as_nop 5427 xorg_cv_cc_flag_unknown_warning_option=no 5428fi 5429rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5430fi 5431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5432printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5433 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5434 CFLAGS="$xorg_testset_save_CFLAGS" 5435fi 5436 5437if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5440 fi 5441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5443printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5444if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5445then : 5446 printf %s "(cached) " >&6 5447else $as_nop 5448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5449/* end confdefs.h. */ 5450int i; 5451_ACEOF 5452if ac_fn_c_try_compile "$LINENO" 5453then : 5454 xorg_cv_cc_flag_unused_command_line_argument=yes 5455else $as_nop 5456 xorg_cv_cc_flag_unused_command_line_argument=no 5457fi 5458rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5459fi 5460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5461printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5462 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5463 CFLAGS="$xorg_testset_save_CFLAGS" 5464fi 5465 5466found="no" 5467 5468 if test $found = "no" ; then 5469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5471 fi 5472 5473 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5475 fi 5476 5477 CFLAGS="$CFLAGS -Wformat=2" 5478 5479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5480printf %s "checking if $CC supports -Wformat=2... " >&6; } 5481 cacheid=xorg_cv_cc_flag__Wformat_2 5482 if eval test \${$cacheid+y} 5483then : 5484 printf %s "(cached) " >&6 5485else $as_nop 5486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5487/* end confdefs.h. */ 5488int i; 5489int 5490main (void) 5491{ 5492 5493 ; 5494 return 0; 5495} 5496_ACEOF 5497if ac_fn_c_try_link "$LINENO" 5498then : 5499 eval $cacheid=yes 5500else $as_nop 5501 eval $cacheid=no 5502fi 5503rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5504 conftest$ac_exeext conftest.$ac_ext 5505fi 5506 5507 5508 CFLAGS="$xorg_testset_save_CFLAGS" 5509 5510 eval supported=\$$cacheid 5511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5512printf "%s\n" "$supported" >&6; } 5513 if test "$supported" = "yes" ; then 5514 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5515 found="yes" 5516 fi 5517 fi 5518 5519 if test $found = "no" ; then 5520 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5521 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5522 fi 5523 5524 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5525 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5526 fi 5527 5528 CFLAGS="$CFLAGS -Wformat" 5529 5530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5531printf %s "checking if $CC supports -Wformat... " >&6; } 5532 cacheid=xorg_cv_cc_flag__Wformat 5533 if eval test \${$cacheid+y} 5534then : 5535 printf %s "(cached) " >&6 5536else $as_nop 5537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5538/* end confdefs.h. */ 5539int i; 5540int 5541main (void) 5542{ 5543 5544 ; 5545 return 0; 5546} 5547_ACEOF 5548if ac_fn_c_try_link "$LINENO" 5549then : 5550 eval $cacheid=yes 5551else $as_nop 5552 eval $cacheid=no 5553fi 5554rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5555 conftest$ac_exeext conftest.$ac_ext 5556fi 5557 5558 5559 CFLAGS="$xorg_testset_save_CFLAGS" 5560 5561 eval supported=\$$cacheid 5562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5563printf "%s\n" "$supported" >&6; } 5564 if test "$supported" = "yes" ; then 5565 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5566 found="yes" 5567 fi 5568 fi 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586xorg_testset_save_CFLAGS="$CFLAGS" 5587 5588if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5591printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5592if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5593then : 5594 printf %s "(cached) " >&6 5595else $as_nop 5596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5597/* end confdefs.h. */ 5598int i; 5599_ACEOF 5600if ac_fn_c_try_compile "$LINENO" 5601then : 5602 xorg_cv_cc_flag_unknown_warning_option=yes 5603else $as_nop 5604 xorg_cv_cc_flag_unknown_warning_option=no 5605fi 5606rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5607fi 5608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5609printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5610 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5611 CFLAGS="$xorg_testset_save_CFLAGS" 5612fi 5613 5614if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5616 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5617 fi 5618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5620printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5621if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5622then : 5623 printf %s "(cached) " >&6 5624else $as_nop 5625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5626/* end confdefs.h. */ 5627int i; 5628_ACEOF 5629if ac_fn_c_try_compile "$LINENO" 5630then : 5631 xorg_cv_cc_flag_unused_command_line_argument=yes 5632else $as_nop 5633 xorg_cv_cc_flag_unused_command_line_argument=no 5634fi 5635rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5636fi 5637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5638printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5639 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5640 CFLAGS="$xorg_testset_save_CFLAGS" 5641fi 5642 5643found="no" 5644 5645 if test $found = "no" ; then 5646 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5647 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5648 fi 5649 5650 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5651 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5652 fi 5653 5654 CFLAGS="$CFLAGS -Wstrict-prototypes" 5655 5656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5657printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5658 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5659 if eval test \${$cacheid+y} 5660then : 5661 printf %s "(cached) " >&6 5662else $as_nop 5663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5664/* end confdefs.h. */ 5665int i; 5666int 5667main (void) 5668{ 5669 5670 ; 5671 return 0; 5672} 5673_ACEOF 5674if ac_fn_c_try_link "$LINENO" 5675then : 5676 eval $cacheid=yes 5677else $as_nop 5678 eval $cacheid=no 5679fi 5680rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5681 conftest$ac_exeext conftest.$ac_ext 5682fi 5683 5684 5685 CFLAGS="$xorg_testset_save_CFLAGS" 5686 5687 eval supported=\$$cacheid 5688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5689printf "%s\n" "$supported" >&6; } 5690 if test "$supported" = "yes" ; then 5691 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5692 found="yes" 5693 fi 5694 fi 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710xorg_testset_save_CFLAGS="$CFLAGS" 5711 5712if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5713 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5715printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5716if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5717then : 5718 printf %s "(cached) " >&6 5719else $as_nop 5720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5721/* end confdefs.h. */ 5722int i; 5723_ACEOF 5724if ac_fn_c_try_compile "$LINENO" 5725then : 5726 xorg_cv_cc_flag_unknown_warning_option=yes 5727else $as_nop 5728 xorg_cv_cc_flag_unknown_warning_option=no 5729fi 5730rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5731fi 5732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5733printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5734 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5735 CFLAGS="$xorg_testset_save_CFLAGS" 5736fi 5737 5738if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5739 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5741 fi 5742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5744printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5745if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5746then : 5747 printf %s "(cached) " >&6 5748else $as_nop 5749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5750/* end confdefs.h. */ 5751int i; 5752_ACEOF 5753if ac_fn_c_try_compile "$LINENO" 5754then : 5755 xorg_cv_cc_flag_unused_command_line_argument=yes 5756else $as_nop 5757 xorg_cv_cc_flag_unused_command_line_argument=no 5758fi 5759rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5760fi 5761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5762printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5763 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5764 CFLAGS="$xorg_testset_save_CFLAGS" 5765fi 5766 5767found="no" 5768 5769 if test $found = "no" ; then 5770 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5771 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5772 fi 5773 5774 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5776 fi 5777 5778 CFLAGS="$CFLAGS -Wmissing-prototypes" 5779 5780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5781printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5782 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5783 if eval test \${$cacheid+y} 5784then : 5785 printf %s "(cached) " >&6 5786else $as_nop 5787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5788/* end confdefs.h. */ 5789int i; 5790int 5791main (void) 5792{ 5793 5794 ; 5795 return 0; 5796} 5797_ACEOF 5798if ac_fn_c_try_link "$LINENO" 5799then : 5800 eval $cacheid=yes 5801else $as_nop 5802 eval $cacheid=no 5803fi 5804rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5805 conftest$ac_exeext conftest.$ac_ext 5806fi 5807 5808 5809 CFLAGS="$xorg_testset_save_CFLAGS" 5810 5811 eval supported=\$$cacheid 5812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5813printf "%s\n" "$supported" >&6; } 5814 if test "$supported" = "yes" ; then 5815 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5816 found="yes" 5817 fi 5818 fi 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834xorg_testset_save_CFLAGS="$CFLAGS" 5835 5836if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5837 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5839printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5840if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5841then : 5842 printf %s "(cached) " >&6 5843else $as_nop 5844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5845/* end confdefs.h. */ 5846int i; 5847_ACEOF 5848if ac_fn_c_try_compile "$LINENO" 5849then : 5850 xorg_cv_cc_flag_unknown_warning_option=yes 5851else $as_nop 5852 xorg_cv_cc_flag_unknown_warning_option=no 5853fi 5854rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5855fi 5856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5857printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5858 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5859 CFLAGS="$xorg_testset_save_CFLAGS" 5860fi 5861 5862if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5863 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5864 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5865 fi 5866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5868printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5869if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5870then : 5871 printf %s "(cached) " >&6 5872else $as_nop 5873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5874/* end confdefs.h. */ 5875int i; 5876_ACEOF 5877if ac_fn_c_try_compile "$LINENO" 5878then : 5879 xorg_cv_cc_flag_unused_command_line_argument=yes 5880else $as_nop 5881 xorg_cv_cc_flag_unused_command_line_argument=no 5882fi 5883rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5884fi 5885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5886printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5887 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5888 CFLAGS="$xorg_testset_save_CFLAGS" 5889fi 5890 5891found="no" 5892 5893 if test $found = "no" ; then 5894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5895 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5896 fi 5897 5898 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5900 fi 5901 5902 CFLAGS="$CFLAGS -Wnested-externs" 5903 5904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5905printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5906 cacheid=xorg_cv_cc_flag__Wnested_externs 5907 if eval test \${$cacheid+y} 5908then : 5909 printf %s "(cached) " >&6 5910else $as_nop 5911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5912/* end confdefs.h. */ 5913int i; 5914int 5915main (void) 5916{ 5917 5918 ; 5919 return 0; 5920} 5921_ACEOF 5922if ac_fn_c_try_link "$LINENO" 5923then : 5924 eval $cacheid=yes 5925else $as_nop 5926 eval $cacheid=no 5927fi 5928rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5929 conftest$ac_exeext conftest.$ac_ext 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 -Wnested-externs" 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 $as_nop 5968 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 $as_nop 5976 xorg_cv_cc_flag_unknown_warning_option=no 5977fi 5978rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5979fi 5980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5981printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5982 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5983 CFLAGS="$xorg_testset_save_CFLAGS" 5984fi 5985 5986if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5989 fi 5990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5992printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5993if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5994then : 5995 printf %s "(cached) " >&6 5996else $as_nop 5997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5998/* end confdefs.h. */ 5999int i; 6000_ACEOF 6001if ac_fn_c_try_compile "$LINENO" 6002then : 6003 xorg_cv_cc_flag_unused_command_line_argument=yes 6004else $as_nop 6005 xorg_cv_cc_flag_unused_command_line_argument=no 6006fi 6007rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6008fi 6009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6010printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6011 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6012 CFLAGS="$xorg_testset_save_CFLAGS" 6013fi 6014 6015found="no" 6016 6017 if test $found = "no" ; then 6018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6019 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6020 fi 6021 6022 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6024 fi 6025 6026 CFLAGS="$CFLAGS -Wbad-function-cast" 6027 6028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6029printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6030 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6031 if eval test \${$cacheid+y} 6032then : 6033 printf %s "(cached) " >&6 6034else $as_nop 6035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6036/* end confdefs.h. */ 6037int i; 6038int 6039main (void) 6040{ 6041 6042 ; 6043 return 0; 6044} 6045_ACEOF 6046if ac_fn_c_try_link "$LINENO" 6047then : 6048 eval $cacheid=yes 6049else $as_nop 6050 eval $cacheid=no 6051fi 6052rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6053 conftest$ac_exeext conftest.$ac_ext 6054fi 6055 6056 6057 CFLAGS="$xorg_testset_save_CFLAGS" 6058 6059 eval supported=\$$cacheid 6060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6061printf "%s\n" "$supported" >&6; } 6062 if test "$supported" = "yes" ; then 6063 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6064 found="yes" 6065 fi 6066 fi 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082xorg_testset_save_CFLAGS="$CFLAGS" 6083 6084if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6087printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6088if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6089then : 6090 printf %s "(cached) " >&6 6091else $as_nop 6092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6093/* end confdefs.h. */ 6094int i; 6095_ACEOF 6096if ac_fn_c_try_compile "$LINENO" 6097then : 6098 xorg_cv_cc_flag_unknown_warning_option=yes 6099else $as_nop 6100 xorg_cv_cc_flag_unknown_warning_option=no 6101fi 6102rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6103fi 6104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6105printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6106 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6107 CFLAGS="$xorg_testset_save_CFLAGS" 6108fi 6109 6110if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6113 fi 6114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6116printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6117if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6118then : 6119 printf %s "(cached) " >&6 6120else $as_nop 6121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6122/* end confdefs.h. */ 6123int i; 6124_ACEOF 6125if ac_fn_c_try_compile "$LINENO" 6126then : 6127 xorg_cv_cc_flag_unused_command_line_argument=yes 6128else $as_nop 6129 xorg_cv_cc_flag_unused_command_line_argument=no 6130fi 6131rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6132fi 6133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6134printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6135 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6136 CFLAGS="$xorg_testset_save_CFLAGS" 6137fi 6138 6139found="no" 6140 6141 if test $found = "no" ; then 6142 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6143 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6144 fi 6145 6146 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6147 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6148 fi 6149 6150 CFLAGS="$CFLAGS -Wold-style-definition" 6151 6152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6153printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6154 cacheid=xorg_cv_cc_flag__Wold_style_definition 6155 if eval test \${$cacheid+y} 6156then : 6157 printf %s "(cached) " >&6 6158else $as_nop 6159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6160/* end confdefs.h. */ 6161int i; 6162int 6163main (void) 6164{ 6165 6166 ; 6167 return 0; 6168} 6169_ACEOF 6170if ac_fn_c_try_link "$LINENO" 6171then : 6172 eval $cacheid=yes 6173else $as_nop 6174 eval $cacheid=no 6175fi 6176rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6177 conftest$ac_exeext conftest.$ac_ext 6178fi 6179 6180 6181 CFLAGS="$xorg_testset_save_CFLAGS" 6182 6183 eval supported=\$$cacheid 6184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6185printf "%s\n" "$supported" >&6; } 6186 if test "$supported" = "yes" ; then 6187 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6188 found="yes" 6189 fi 6190 fi 6191 6192 if test $found = "no" ; then 6193 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6194 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6195 fi 6196 6197 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6198 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6199 fi 6200 6201 CFLAGS="$CFLAGS -fd" 6202 6203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6204printf %s "checking if $CC supports -fd... " >&6; } 6205 cacheid=xorg_cv_cc_flag__fd 6206 if eval test \${$cacheid+y} 6207then : 6208 printf %s "(cached) " >&6 6209else $as_nop 6210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6211/* end confdefs.h. */ 6212int i; 6213int 6214main (void) 6215{ 6216 6217 ; 6218 return 0; 6219} 6220_ACEOF 6221if ac_fn_c_try_link "$LINENO" 6222then : 6223 eval $cacheid=yes 6224else $as_nop 6225 eval $cacheid=no 6226fi 6227rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6228 conftest$ac_exeext conftest.$ac_ext 6229fi 6230 6231 6232 CFLAGS="$xorg_testset_save_CFLAGS" 6233 6234 eval supported=\$$cacheid 6235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6236printf "%s\n" "$supported" >&6; } 6237 if test "$supported" = "yes" ; then 6238 BASE_CFLAGS="$BASE_CFLAGS -fd" 6239 found="yes" 6240 fi 6241 fi 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257xorg_testset_save_CFLAGS="$CFLAGS" 6258 6259if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6262printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6263if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6264then : 6265 printf %s "(cached) " >&6 6266else $as_nop 6267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6268/* end confdefs.h. */ 6269int i; 6270_ACEOF 6271if ac_fn_c_try_compile "$LINENO" 6272then : 6273 xorg_cv_cc_flag_unknown_warning_option=yes 6274else $as_nop 6275 xorg_cv_cc_flag_unknown_warning_option=no 6276fi 6277rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6278fi 6279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6280printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6281 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6282 CFLAGS="$xorg_testset_save_CFLAGS" 6283fi 6284 6285if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6288 fi 6289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6291printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6292if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6293then : 6294 printf %s "(cached) " >&6 6295else $as_nop 6296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6297/* end confdefs.h. */ 6298int i; 6299_ACEOF 6300if ac_fn_c_try_compile "$LINENO" 6301then : 6302 xorg_cv_cc_flag_unused_command_line_argument=yes 6303else $as_nop 6304 xorg_cv_cc_flag_unused_command_line_argument=no 6305fi 6306rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6307fi 6308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6309printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6310 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6311 CFLAGS="$xorg_testset_save_CFLAGS" 6312fi 6313 6314found="no" 6315 6316 if test $found = "no" ; then 6317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6319 fi 6320 6321 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6323 fi 6324 6325 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6326 6327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6328printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6329 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6330 if eval test \${$cacheid+y} 6331then : 6332 printf %s "(cached) " >&6 6333else $as_nop 6334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6335/* end confdefs.h. */ 6336int i; 6337int 6338main (void) 6339{ 6340 6341 ; 6342 return 0; 6343} 6344_ACEOF 6345if ac_fn_c_try_link "$LINENO" 6346then : 6347 eval $cacheid=yes 6348else $as_nop 6349 eval $cacheid=no 6350fi 6351rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6352 conftest$ac_exeext conftest.$ac_ext 6353fi 6354 6355 6356 CFLAGS="$xorg_testset_save_CFLAGS" 6357 6358 eval supported=\$$cacheid 6359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6360printf "%s\n" "$supported" >&6; } 6361 if test "$supported" = "yes" ; then 6362 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6363 found="yes" 6364 fi 6365 fi 6366 6367 6368 6369 6370 6371# This chunk adds additional warnings that could catch undesired effects. 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385xorg_testset_save_CFLAGS="$CFLAGS" 6386 6387if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6390printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6391if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6392then : 6393 printf %s "(cached) " >&6 6394else $as_nop 6395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6396/* end confdefs.h. */ 6397int i; 6398_ACEOF 6399if ac_fn_c_try_compile "$LINENO" 6400then : 6401 xorg_cv_cc_flag_unknown_warning_option=yes 6402else $as_nop 6403 xorg_cv_cc_flag_unknown_warning_option=no 6404fi 6405rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6406fi 6407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6408printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6409 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6410 CFLAGS="$xorg_testset_save_CFLAGS" 6411fi 6412 6413if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6415 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6416 fi 6417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6419printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6420if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6421then : 6422 printf %s "(cached) " >&6 6423else $as_nop 6424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6425/* end confdefs.h. */ 6426int i; 6427_ACEOF 6428if ac_fn_c_try_compile "$LINENO" 6429then : 6430 xorg_cv_cc_flag_unused_command_line_argument=yes 6431else $as_nop 6432 xorg_cv_cc_flag_unused_command_line_argument=no 6433fi 6434rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6435fi 6436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6437printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6438 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6439 CFLAGS="$xorg_testset_save_CFLAGS" 6440fi 6441 6442found="no" 6443 6444 if test $found = "no" ; then 6445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6447 fi 6448 6449 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6451 fi 6452 6453 CFLAGS="$CFLAGS -Wunused" 6454 6455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6456printf %s "checking if $CC supports -Wunused... " >&6; } 6457 cacheid=xorg_cv_cc_flag__Wunused 6458 if eval test \${$cacheid+y} 6459then : 6460 printf %s "(cached) " >&6 6461else $as_nop 6462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6463/* end confdefs.h. */ 6464int i; 6465int 6466main (void) 6467{ 6468 6469 ; 6470 return 0; 6471} 6472_ACEOF 6473if ac_fn_c_try_link "$LINENO" 6474then : 6475 eval $cacheid=yes 6476else $as_nop 6477 eval $cacheid=no 6478fi 6479rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6480 conftest$ac_exeext conftest.$ac_ext 6481fi 6482 6483 6484 CFLAGS="$xorg_testset_save_CFLAGS" 6485 6486 eval supported=\$$cacheid 6487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6488printf "%s\n" "$supported" >&6; } 6489 if test "$supported" = "yes" ; then 6490 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6491 found="yes" 6492 fi 6493 fi 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509xorg_testset_save_CFLAGS="$CFLAGS" 6510 6511if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6512 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6514printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6515if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6516then : 6517 printf %s "(cached) " >&6 6518else $as_nop 6519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6520/* end confdefs.h. */ 6521int i; 6522_ACEOF 6523if ac_fn_c_try_compile "$LINENO" 6524then : 6525 xorg_cv_cc_flag_unknown_warning_option=yes 6526else $as_nop 6527 xorg_cv_cc_flag_unknown_warning_option=no 6528fi 6529rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6530fi 6531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6532printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6533 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6534 CFLAGS="$xorg_testset_save_CFLAGS" 6535fi 6536 6537if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6540 fi 6541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6543printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6544if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6545then : 6546 printf %s "(cached) " >&6 6547else $as_nop 6548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6549/* end confdefs.h. */ 6550int i; 6551_ACEOF 6552if ac_fn_c_try_compile "$LINENO" 6553then : 6554 xorg_cv_cc_flag_unused_command_line_argument=yes 6555else $as_nop 6556 xorg_cv_cc_flag_unused_command_line_argument=no 6557fi 6558rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6559fi 6560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6561printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6562 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6563 CFLAGS="$xorg_testset_save_CFLAGS" 6564fi 6565 6566found="no" 6567 6568 if test $found = "no" ; then 6569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6571 fi 6572 6573 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6575 fi 6576 6577 CFLAGS="$CFLAGS -Wuninitialized" 6578 6579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6580printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6581 cacheid=xorg_cv_cc_flag__Wuninitialized 6582 if eval test \${$cacheid+y} 6583then : 6584 printf %s "(cached) " >&6 6585else $as_nop 6586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6587/* end confdefs.h. */ 6588int i; 6589int 6590main (void) 6591{ 6592 6593 ; 6594 return 0; 6595} 6596_ACEOF 6597if ac_fn_c_try_link "$LINENO" 6598then : 6599 eval $cacheid=yes 6600else $as_nop 6601 eval $cacheid=no 6602fi 6603rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6604 conftest$ac_exeext conftest.$ac_ext 6605fi 6606 6607 6608 CFLAGS="$xorg_testset_save_CFLAGS" 6609 6610 eval supported=\$$cacheid 6611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6612printf "%s\n" "$supported" >&6; } 6613 if test "$supported" = "yes" ; then 6614 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6615 found="yes" 6616 fi 6617 fi 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633xorg_testset_save_CFLAGS="$CFLAGS" 6634 6635if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6636 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6638printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6639if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6640then : 6641 printf %s "(cached) " >&6 6642else $as_nop 6643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6644/* end confdefs.h. */ 6645int i; 6646_ACEOF 6647if ac_fn_c_try_compile "$LINENO" 6648then : 6649 xorg_cv_cc_flag_unknown_warning_option=yes 6650else $as_nop 6651 xorg_cv_cc_flag_unknown_warning_option=no 6652fi 6653rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6654fi 6655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6656printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6657 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6658 CFLAGS="$xorg_testset_save_CFLAGS" 6659fi 6660 6661if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6664 fi 6665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6667printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6668if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6669then : 6670 printf %s "(cached) " >&6 6671else $as_nop 6672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6673/* end confdefs.h. */ 6674int i; 6675_ACEOF 6676if ac_fn_c_try_compile "$LINENO" 6677then : 6678 xorg_cv_cc_flag_unused_command_line_argument=yes 6679else $as_nop 6680 xorg_cv_cc_flag_unused_command_line_argument=no 6681fi 6682rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6683fi 6684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6685printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6686 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6687 CFLAGS="$xorg_testset_save_CFLAGS" 6688fi 6689 6690found="no" 6691 6692 if test $found = "no" ; then 6693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6695 fi 6696 6697 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6699 fi 6700 6701 CFLAGS="$CFLAGS -Wshadow" 6702 6703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6704printf %s "checking if $CC supports -Wshadow... " >&6; } 6705 cacheid=xorg_cv_cc_flag__Wshadow 6706 if eval test \${$cacheid+y} 6707then : 6708 printf %s "(cached) " >&6 6709else $as_nop 6710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6711/* end confdefs.h. */ 6712int i; 6713int 6714main (void) 6715{ 6716 6717 ; 6718 return 0; 6719} 6720_ACEOF 6721if ac_fn_c_try_link "$LINENO" 6722then : 6723 eval $cacheid=yes 6724else $as_nop 6725 eval $cacheid=no 6726fi 6727rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6728 conftest$ac_exeext conftest.$ac_ext 6729fi 6730 6731 6732 CFLAGS="$xorg_testset_save_CFLAGS" 6733 6734 eval supported=\$$cacheid 6735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6736printf "%s\n" "$supported" >&6; } 6737 if test "$supported" = "yes" ; then 6738 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6739 found="yes" 6740 fi 6741 fi 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757xorg_testset_save_CFLAGS="$CFLAGS" 6758 6759if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6760 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6762printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6763if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6764then : 6765 printf %s "(cached) " >&6 6766else $as_nop 6767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6768/* end confdefs.h. */ 6769int i; 6770_ACEOF 6771if ac_fn_c_try_compile "$LINENO" 6772then : 6773 xorg_cv_cc_flag_unknown_warning_option=yes 6774else $as_nop 6775 xorg_cv_cc_flag_unknown_warning_option=no 6776fi 6777rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6778fi 6779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6780printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6781 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6782 CFLAGS="$xorg_testset_save_CFLAGS" 6783fi 6784 6785if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6788 fi 6789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6791printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6792if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6793then : 6794 printf %s "(cached) " >&6 6795else $as_nop 6796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6797/* end confdefs.h. */ 6798int i; 6799_ACEOF 6800if ac_fn_c_try_compile "$LINENO" 6801then : 6802 xorg_cv_cc_flag_unused_command_line_argument=yes 6803else $as_nop 6804 xorg_cv_cc_flag_unused_command_line_argument=no 6805fi 6806rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6807fi 6808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6809printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6810 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6811 CFLAGS="$xorg_testset_save_CFLAGS" 6812fi 6813 6814found="no" 6815 6816 if test $found = "no" ; then 6817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6819 fi 6820 6821 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6823 fi 6824 6825 CFLAGS="$CFLAGS -Wmissing-noreturn" 6826 6827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6828printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6829 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6830 if eval test \${$cacheid+y} 6831then : 6832 printf %s "(cached) " >&6 6833else $as_nop 6834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6835/* end confdefs.h. */ 6836int i; 6837int 6838main (void) 6839{ 6840 6841 ; 6842 return 0; 6843} 6844_ACEOF 6845if ac_fn_c_try_link "$LINENO" 6846then : 6847 eval $cacheid=yes 6848else $as_nop 6849 eval $cacheid=no 6850fi 6851rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6852 conftest$ac_exeext conftest.$ac_ext 6853fi 6854 6855 6856 CFLAGS="$xorg_testset_save_CFLAGS" 6857 6858 eval supported=\$$cacheid 6859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6860printf "%s\n" "$supported" >&6; } 6861 if test "$supported" = "yes" ; then 6862 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6863 found="yes" 6864 fi 6865 fi 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881xorg_testset_save_CFLAGS="$CFLAGS" 6882 6883if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6884 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6886printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6887if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6888then : 6889 printf %s "(cached) " >&6 6890else $as_nop 6891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6892/* end confdefs.h. */ 6893int i; 6894_ACEOF 6895if ac_fn_c_try_compile "$LINENO" 6896then : 6897 xorg_cv_cc_flag_unknown_warning_option=yes 6898else $as_nop 6899 xorg_cv_cc_flag_unknown_warning_option=no 6900fi 6901rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6902fi 6903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6904printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6905 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6906 CFLAGS="$xorg_testset_save_CFLAGS" 6907fi 6908 6909if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6911 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6912 fi 6913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6915printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6916if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6917then : 6918 printf %s "(cached) " >&6 6919else $as_nop 6920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6921/* end confdefs.h. */ 6922int i; 6923_ACEOF 6924if ac_fn_c_try_compile "$LINENO" 6925then : 6926 xorg_cv_cc_flag_unused_command_line_argument=yes 6927else $as_nop 6928 xorg_cv_cc_flag_unused_command_line_argument=no 6929fi 6930rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6931fi 6932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6933printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6934 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6935 CFLAGS="$xorg_testset_save_CFLAGS" 6936fi 6937 6938found="no" 6939 6940 if test $found = "no" ; then 6941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6943 fi 6944 6945 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6947 fi 6948 6949 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6950 6951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6952printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6953 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6954 if eval test \${$cacheid+y} 6955then : 6956 printf %s "(cached) " >&6 6957else $as_nop 6958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6959/* end confdefs.h. */ 6960int i; 6961int 6962main (void) 6963{ 6964 6965 ; 6966 return 0; 6967} 6968_ACEOF 6969if ac_fn_c_try_link "$LINENO" 6970then : 6971 eval $cacheid=yes 6972else $as_nop 6973 eval $cacheid=no 6974fi 6975rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6976 conftest$ac_exeext conftest.$ac_ext 6977fi 6978 6979 6980 CFLAGS="$xorg_testset_save_CFLAGS" 6981 6982 eval supported=\$$cacheid 6983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6984printf "%s\n" "$supported" >&6; } 6985 if test "$supported" = "yes" ; then 6986 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6987 found="yes" 6988 fi 6989 fi 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005xorg_testset_save_CFLAGS="$CFLAGS" 7006 7007if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7008 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7010printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7011if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7012then : 7013 printf %s "(cached) " >&6 7014else $as_nop 7015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7016/* end confdefs.h. */ 7017int i; 7018_ACEOF 7019if ac_fn_c_try_compile "$LINENO" 7020then : 7021 xorg_cv_cc_flag_unknown_warning_option=yes 7022else $as_nop 7023 xorg_cv_cc_flag_unknown_warning_option=no 7024fi 7025rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7026fi 7027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7028printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7029 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7030 CFLAGS="$xorg_testset_save_CFLAGS" 7031fi 7032 7033if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7036 fi 7037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7039printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7040if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7041then : 7042 printf %s "(cached) " >&6 7043else $as_nop 7044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7045/* end confdefs.h. */ 7046int i; 7047_ACEOF 7048if ac_fn_c_try_compile "$LINENO" 7049then : 7050 xorg_cv_cc_flag_unused_command_line_argument=yes 7051else $as_nop 7052 xorg_cv_cc_flag_unused_command_line_argument=no 7053fi 7054rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7055fi 7056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7057printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7058 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7059 CFLAGS="$xorg_testset_save_CFLAGS" 7060fi 7061 7062found="no" 7063 7064 if test $found = "no" ; then 7065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7067 fi 7068 7069 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7071 fi 7072 7073 CFLAGS="$CFLAGS -Wredundant-decls" 7074 7075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7076printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7077 cacheid=xorg_cv_cc_flag__Wredundant_decls 7078 if eval test \${$cacheid+y} 7079then : 7080 printf %s "(cached) " >&6 7081else $as_nop 7082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7083/* end confdefs.h. */ 7084int i; 7085int 7086main (void) 7087{ 7088 7089 ; 7090 return 0; 7091} 7092_ACEOF 7093if ac_fn_c_try_link "$LINENO" 7094then : 7095 eval $cacheid=yes 7096else $as_nop 7097 eval $cacheid=no 7098fi 7099rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7100 conftest$ac_exeext conftest.$ac_ext 7101fi 7102 7103 7104 CFLAGS="$xorg_testset_save_CFLAGS" 7105 7106 eval supported=\$$cacheid 7107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7108printf "%s\n" "$supported" >&6; } 7109 if test "$supported" = "yes" ; then 7110 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7111 found="yes" 7112 fi 7113 fi 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129xorg_testset_save_CFLAGS="$CFLAGS" 7130 7131if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7134printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7135if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7136then : 7137 printf %s "(cached) " >&6 7138else $as_nop 7139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7140/* end confdefs.h. */ 7141int i; 7142_ACEOF 7143if ac_fn_c_try_compile "$LINENO" 7144then : 7145 xorg_cv_cc_flag_unknown_warning_option=yes 7146else $as_nop 7147 xorg_cv_cc_flag_unknown_warning_option=no 7148fi 7149rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7150fi 7151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7152printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7153 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7154 CFLAGS="$xorg_testset_save_CFLAGS" 7155fi 7156 7157if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7158 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7160 fi 7161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7163printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7164if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7165then : 7166 printf %s "(cached) " >&6 7167else $as_nop 7168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7169/* end confdefs.h. */ 7170int i; 7171_ACEOF 7172if ac_fn_c_try_compile "$LINENO" 7173then : 7174 xorg_cv_cc_flag_unused_command_line_argument=yes 7175else $as_nop 7176 xorg_cv_cc_flag_unused_command_line_argument=no 7177fi 7178rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7179fi 7180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7181printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7182 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7183 CFLAGS="$xorg_testset_save_CFLAGS" 7184fi 7185 7186found="no" 7187 7188 if test $found = "no" ; then 7189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7191 fi 7192 7193 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7195 fi 7196 7197 CFLAGS="$CFLAGS -Wlogical-op" 7198 7199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7200printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7201 cacheid=xorg_cv_cc_flag__Wlogical_op 7202 if eval test \${$cacheid+y} 7203then : 7204 printf %s "(cached) " >&6 7205else $as_nop 7206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7207/* end confdefs.h. */ 7208int i; 7209int 7210main (void) 7211{ 7212 7213 ; 7214 return 0; 7215} 7216_ACEOF 7217if ac_fn_c_try_link "$LINENO" 7218then : 7219 eval $cacheid=yes 7220else $as_nop 7221 eval $cacheid=no 7222fi 7223rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7224 conftest$ac_exeext conftest.$ac_ext 7225fi 7226 7227 7228 CFLAGS="$xorg_testset_save_CFLAGS" 7229 7230 eval supported=\$$cacheid 7231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7232printf "%s\n" "$supported" >&6; } 7233 if test "$supported" = "yes" ; then 7234 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7235 found="yes" 7236 fi 7237 fi 7238 7239 7240 7241# These are currently disabled because they are noisy. They will be enabled 7242# in the future once the codebase is sufficiently modernized to silence 7243# them. For now, I don't want them to drown out the other warnings. 7244# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7245# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7246# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7247 7248# Turn some warnings into errors, so we don't accidently get successful builds 7249# when there are problems that should be fixed. 7250 7251if test "x$SELECTIVE_WERROR" = "xyes" ; then 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265xorg_testset_save_CFLAGS="$CFLAGS" 7266 7267if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7270printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7271if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7272then : 7273 printf %s "(cached) " >&6 7274else $as_nop 7275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7276/* end confdefs.h. */ 7277int i; 7278_ACEOF 7279if ac_fn_c_try_compile "$LINENO" 7280then : 7281 xorg_cv_cc_flag_unknown_warning_option=yes 7282else $as_nop 7283 xorg_cv_cc_flag_unknown_warning_option=no 7284fi 7285rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7286fi 7287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7288printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7289 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7290 CFLAGS="$xorg_testset_save_CFLAGS" 7291fi 7292 7293if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7296 fi 7297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7299printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7300if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7301then : 7302 printf %s "(cached) " >&6 7303else $as_nop 7304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7305/* end confdefs.h. */ 7306int i; 7307_ACEOF 7308if ac_fn_c_try_compile "$LINENO" 7309then : 7310 xorg_cv_cc_flag_unused_command_line_argument=yes 7311else $as_nop 7312 xorg_cv_cc_flag_unused_command_line_argument=no 7313fi 7314rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7315fi 7316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7317printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7318 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7319 CFLAGS="$xorg_testset_save_CFLAGS" 7320fi 7321 7322found="no" 7323 7324 if test $found = "no" ; then 7325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7327 fi 7328 7329 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7331 fi 7332 7333 CFLAGS="$CFLAGS -Werror=implicit" 7334 7335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7336printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7337 cacheid=xorg_cv_cc_flag__Werror_implicit 7338 if eval test \${$cacheid+y} 7339then : 7340 printf %s "(cached) " >&6 7341else $as_nop 7342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7343/* end confdefs.h. */ 7344int i; 7345int 7346main (void) 7347{ 7348 7349 ; 7350 return 0; 7351} 7352_ACEOF 7353if ac_fn_c_try_link "$LINENO" 7354then : 7355 eval $cacheid=yes 7356else $as_nop 7357 eval $cacheid=no 7358fi 7359rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7360 conftest$ac_exeext conftest.$ac_ext 7361fi 7362 7363 7364 CFLAGS="$xorg_testset_save_CFLAGS" 7365 7366 eval supported=\$$cacheid 7367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7368printf "%s\n" "$supported" >&6; } 7369 if test "$supported" = "yes" ; then 7370 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7371 found="yes" 7372 fi 7373 fi 7374 7375 if test $found = "no" ; then 7376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7377 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7378 fi 7379 7380 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7382 fi 7383 7384 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7385 7386 { 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 7387printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7388 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7389 if eval test \${$cacheid+y} 7390then : 7391 printf %s "(cached) " >&6 7392else $as_nop 7393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7394/* end confdefs.h. */ 7395int i; 7396int 7397main (void) 7398{ 7399 7400 ; 7401 return 0; 7402} 7403_ACEOF 7404if ac_fn_c_try_link "$LINENO" 7405then : 7406 eval $cacheid=yes 7407else $as_nop 7408 eval $cacheid=no 7409fi 7410rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7411 conftest$ac_exeext conftest.$ac_ext 7412fi 7413 7414 7415 CFLAGS="$xorg_testset_save_CFLAGS" 7416 7417 eval supported=\$$cacheid 7418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7419printf "%s\n" "$supported" >&6; } 7420 if test "$supported" = "yes" ; then 7421 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7422 found="yes" 7423 fi 7424 fi 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440xorg_testset_save_CFLAGS="$CFLAGS" 7441 7442if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7445printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7446if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7447then : 7448 printf %s "(cached) " >&6 7449else $as_nop 7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7451/* end confdefs.h. */ 7452int i; 7453_ACEOF 7454if ac_fn_c_try_compile "$LINENO" 7455then : 7456 xorg_cv_cc_flag_unknown_warning_option=yes 7457else $as_nop 7458 xorg_cv_cc_flag_unknown_warning_option=no 7459fi 7460rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7461fi 7462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7463printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7464 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7465 CFLAGS="$xorg_testset_save_CFLAGS" 7466fi 7467 7468if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7471 fi 7472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7474printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7475if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7476then : 7477 printf %s "(cached) " >&6 7478else $as_nop 7479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7480/* end confdefs.h. */ 7481int i; 7482_ACEOF 7483if ac_fn_c_try_compile "$LINENO" 7484then : 7485 xorg_cv_cc_flag_unused_command_line_argument=yes 7486else $as_nop 7487 xorg_cv_cc_flag_unused_command_line_argument=no 7488fi 7489rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7490fi 7491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7492printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7493 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7494 CFLAGS="$xorg_testset_save_CFLAGS" 7495fi 7496 7497found="no" 7498 7499 if test $found = "no" ; then 7500 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7501 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7502 fi 7503 7504 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7506 fi 7507 7508 CFLAGS="$CFLAGS -Werror=nonnull" 7509 7510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7511printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7512 cacheid=xorg_cv_cc_flag__Werror_nonnull 7513 if eval test \${$cacheid+y} 7514then : 7515 printf %s "(cached) " >&6 7516else $as_nop 7517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7518/* end confdefs.h. */ 7519int i; 7520int 7521main (void) 7522{ 7523 7524 ; 7525 return 0; 7526} 7527_ACEOF 7528if ac_fn_c_try_link "$LINENO" 7529then : 7530 eval $cacheid=yes 7531else $as_nop 7532 eval $cacheid=no 7533fi 7534rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7535 conftest$ac_exeext conftest.$ac_ext 7536fi 7537 7538 7539 CFLAGS="$xorg_testset_save_CFLAGS" 7540 7541 eval supported=\$$cacheid 7542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7543printf "%s\n" "$supported" >&6; } 7544 if test "$supported" = "yes" ; then 7545 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7546 found="yes" 7547 fi 7548 fi 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564xorg_testset_save_CFLAGS="$CFLAGS" 7565 7566if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7567 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7569printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7570if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7571then : 7572 printf %s "(cached) " >&6 7573else $as_nop 7574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7575/* end confdefs.h. */ 7576int i; 7577_ACEOF 7578if ac_fn_c_try_compile "$LINENO" 7579then : 7580 xorg_cv_cc_flag_unknown_warning_option=yes 7581else $as_nop 7582 xorg_cv_cc_flag_unknown_warning_option=no 7583fi 7584rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7585fi 7586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7587printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7588 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7589 CFLAGS="$xorg_testset_save_CFLAGS" 7590fi 7591 7592if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7594 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7595 fi 7596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7598printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7599if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7600then : 7601 printf %s "(cached) " >&6 7602else $as_nop 7603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7604/* end confdefs.h. */ 7605int i; 7606_ACEOF 7607if ac_fn_c_try_compile "$LINENO" 7608then : 7609 xorg_cv_cc_flag_unused_command_line_argument=yes 7610else $as_nop 7611 xorg_cv_cc_flag_unused_command_line_argument=no 7612fi 7613rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7614fi 7615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7616printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7617 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7618 CFLAGS="$xorg_testset_save_CFLAGS" 7619fi 7620 7621found="no" 7622 7623 if test $found = "no" ; then 7624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7625 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7626 fi 7627 7628 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7630 fi 7631 7632 CFLAGS="$CFLAGS -Werror=init-self" 7633 7634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7635printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7636 cacheid=xorg_cv_cc_flag__Werror_init_self 7637 if eval test \${$cacheid+y} 7638then : 7639 printf %s "(cached) " >&6 7640else $as_nop 7641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7642/* end confdefs.h. */ 7643int i; 7644int 7645main (void) 7646{ 7647 7648 ; 7649 return 0; 7650} 7651_ACEOF 7652if ac_fn_c_try_link "$LINENO" 7653then : 7654 eval $cacheid=yes 7655else $as_nop 7656 eval $cacheid=no 7657fi 7658rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7659 conftest$ac_exeext conftest.$ac_ext 7660fi 7661 7662 7663 CFLAGS="$xorg_testset_save_CFLAGS" 7664 7665 eval supported=\$$cacheid 7666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7667printf "%s\n" "$supported" >&6; } 7668 if test "$supported" = "yes" ; then 7669 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7670 found="yes" 7671 fi 7672 fi 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688xorg_testset_save_CFLAGS="$CFLAGS" 7689 7690if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7691 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7693printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7694if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7695then : 7696 printf %s "(cached) " >&6 7697else $as_nop 7698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7699/* end confdefs.h. */ 7700int i; 7701_ACEOF 7702if ac_fn_c_try_compile "$LINENO" 7703then : 7704 xorg_cv_cc_flag_unknown_warning_option=yes 7705else $as_nop 7706 xorg_cv_cc_flag_unknown_warning_option=no 7707fi 7708rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7709fi 7710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7711printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7712 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7713 CFLAGS="$xorg_testset_save_CFLAGS" 7714fi 7715 7716if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7719 fi 7720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7722printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7723if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7724then : 7725 printf %s "(cached) " >&6 7726else $as_nop 7727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7728/* end confdefs.h. */ 7729int i; 7730_ACEOF 7731if ac_fn_c_try_compile "$LINENO" 7732then : 7733 xorg_cv_cc_flag_unused_command_line_argument=yes 7734else $as_nop 7735 xorg_cv_cc_flag_unused_command_line_argument=no 7736fi 7737rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7738fi 7739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7740printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7741 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7742 CFLAGS="$xorg_testset_save_CFLAGS" 7743fi 7744 7745found="no" 7746 7747 if test $found = "no" ; then 7748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7749 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7750 fi 7751 7752 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7754 fi 7755 7756 CFLAGS="$CFLAGS -Werror=main" 7757 7758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7759printf %s "checking if $CC supports -Werror=main... " >&6; } 7760 cacheid=xorg_cv_cc_flag__Werror_main 7761 if eval test \${$cacheid+y} 7762then : 7763 printf %s "(cached) " >&6 7764else $as_nop 7765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7766/* end confdefs.h. */ 7767int i; 7768int 7769main (void) 7770{ 7771 7772 ; 7773 return 0; 7774} 7775_ACEOF 7776if ac_fn_c_try_link "$LINENO" 7777then : 7778 eval $cacheid=yes 7779else $as_nop 7780 eval $cacheid=no 7781fi 7782rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7783 conftest$ac_exeext conftest.$ac_ext 7784fi 7785 7786 7787 CFLAGS="$xorg_testset_save_CFLAGS" 7788 7789 eval supported=\$$cacheid 7790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7791printf "%s\n" "$supported" >&6; } 7792 if test "$supported" = "yes" ; then 7793 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7794 found="yes" 7795 fi 7796 fi 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812xorg_testset_save_CFLAGS="$CFLAGS" 7813 7814if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7815 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7817printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7818if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7819then : 7820 printf %s "(cached) " >&6 7821else $as_nop 7822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7823/* end confdefs.h. */ 7824int i; 7825_ACEOF 7826if ac_fn_c_try_compile "$LINENO" 7827then : 7828 xorg_cv_cc_flag_unknown_warning_option=yes 7829else $as_nop 7830 xorg_cv_cc_flag_unknown_warning_option=no 7831fi 7832rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7833fi 7834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7835printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7836 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7837 CFLAGS="$xorg_testset_save_CFLAGS" 7838fi 7839 7840if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7841 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7842 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7843 fi 7844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7846printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7847if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7848then : 7849 printf %s "(cached) " >&6 7850else $as_nop 7851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7852/* end confdefs.h. */ 7853int i; 7854_ACEOF 7855if ac_fn_c_try_compile "$LINENO" 7856then : 7857 xorg_cv_cc_flag_unused_command_line_argument=yes 7858else $as_nop 7859 xorg_cv_cc_flag_unused_command_line_argument=no 7860fi 7861rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7862fi 7863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7864printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7865 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7866 CFLAGS="$xorg_testset_save_CFLAGS" 7867fi 7868 7869found="no" 7870 7871 if test $found = "no" ; then 7872 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7873 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7874 fi 7875 7876 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7878 fi 7879 7880 CFLAGS="$CFLAGS -Werror=missing-braces" 7881 7882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7883printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7884 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7885 if eval test \${$cacheid+y} 7886then : 7887 printf %s "(cached) " >&6 7888else $as_nop 7889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7890/* end confdefs.h. */ 7891int i; 7892int 7893main (void) 7894{ 7895 7896 ; 7897 return 0; 7898} 7899_ACEOF 7900if ac_fn_c_try_link "$LINENO" 7901then : 7902 eval $cacheid=yes 7903else $as_nop 7904 eval $cacheid=no 7905fi 7906rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7907 conftest$ac_exeext conftest.$ac_ext 7908fi 7909 7910 7911 CFLAGS="$xorg_testset_save_CFLAGS" 7912 7913 eval supported=\$$cacheid 7914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7915printf "%s\n" "$supported" >&6; } 7916 if test "$supported" = "yes" ; then 7917 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7918 found="yes" 7919 fi 7920 fi 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936xorg_testset_save_CFLAGS="$CFLAGS" 7937 7938if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7939 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7941printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7942if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7943then : 7944 printf %s "(cached) " >&6 7945else $as_nop 7946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7947/* end confdefs.h. */ 7948int i; 7949_ACEOF 7950if ac_fn_c_try_compile "$LINENO" 7951then : 7952 xorg_cv_cc_flag_unknown_warning_option=yes 7953else $as_nop 7954 xorg_cv_cc_flag_unknown_warning_option=no 7955fi 7956rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7957fi 7958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7959printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7960 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7961 CFLAGS="$xorg_testset_save_CFLAGS" 7962fi 7963 7964if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7966 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7967 fi 7968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7970printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7971if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7972then : 7973 printf %s "(cached) " >&6 7974else $as_nop 7975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7976/* end confdefs.h. */ 7977int i; 7978_ACEOF 7979if ac_fn_c_try_compile "$LINENO" 7980then : 7981 xorg_cv_cc_flag_unused_command_line_argument=yes 7982else $as_nop 7983 xorg_cv_cc_flag_unused_command_line_argument=no 7984fi 7985rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7986fi 7987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7988printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7989 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7990 CFLAGS="$xorg_testset_save_CFLAGS" 7991fi 7992 7993found="no" 7994 7995 if test $found = "no" ; then 7996 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7997 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7998 fi 7999 8000 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8002 fi 8003 8004 CFLAGS="$CFLAGS -Werror=sequence-point" 8005 8006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8007printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8008 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8009 if eval test \${$cacheid+y} 8010then : 8011 printf %s "(cached) " >&6 8012else $as_nop 8013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8014/* end confdefs.h. */ 8015int i; 8016int 8017main (void) 8018{ 8019 8020 ; 8021 return 0; 8022} 8023_ACEOF 8024if ac_fn_c_try_link "$LINENO" 8025then : 8026 eval $cacheid=yes 8027else $as_nop 8028 eval $cacheid=no 8029fi 8030rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8031 conftest$ac_exeext conftest.$ac_ext 8032fi 8033 8034 8035 CFLAGS="$xorg_testset_save_CFLAGS" 8036 8037 eval supported=\$$cacheid 8038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8039printf "%s\n" "$supported" >&6; } 8040 if test "$supported" = "yes" ; then 8041 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8042 found="yes" 8043 fi 8044 fi 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060xorg_testset_save_CFLAGS="$CFLAGS" 8061 8062if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8065printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8066if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8067then : 8068 printf %s "(cached) " >&6 8069else $as_nop 8070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8071/* end confdefs.h. */ 8072int i; 8073_ACEOF 8074if ac_fn_c_try_compile "$LINENO" 8075then : 8076 xorg_cv_cc_flag_unknown_warning_option=yes 8077else $as_nop 8078 xorg_cv_cc_flag_unknown_warning_option=no 8079fi 8080rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8081fi 8082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8083printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8084 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8085 CFLAGS="$xorg_testset_save_CFLAGS" 8086fi 8087 8088if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8091 fi 8092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8094printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8095if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8096then : 8097 printf %s "(cached) " >&6 8098else $as_nop 8099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8100/* end confdefs.h. */ 8101int i; 8102_ACEOF 8103if ac_fn_c_try_compile "$LINENO" 8104then : 8105 xorg_cv_cc_flag_unused_command_line_argument=yes 8106else $as_nop 8107 xorg_cv_cc_flag_unused_command_line_argument=no 8108fi 8109rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8110fi 8111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8112printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8113 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8114 CFLAGS="$xorg_testset_save_CFLAGS" 8115fi 8116 8117found="no" 8118 8119 if test $found = "no" ; then 8120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8121 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8122 fi 8123 8124 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8126 fi 8127 8128 CFLAGS="$CFLAGS -Werror=return-type" 8129 8130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8131printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8132 cacheid=xorg_cv_cc_flag__Werror_return_type 8133 if eval test \${$cacheid+y} 8134then : 8135 printf %s "(cached) " >&6 8136else $as_nop 8137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8138/* end confdefs.h. */ 8139int i; 8140int 8141main (void) 8142{ 8143 8144 ; 8145 return 0; 8146} 8147_ACEOF 8148if ac_fn_c_try_link "$LINENO" 8149then : 8150 eval $cacheid=yes 8151else $as_nop 8152 eval $cacheid=no 8153fi 8154rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8155 conftest$ac_exeext conftest.$ac_ext 8156fi 8157 8158 8159 CFLAGS="$xorg_testset_save_CFLAGS" 8160 8161 eval supported=\$$cacheid 8162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8163printf "%s\n" "$supported" >&6; } 8164 if test "$supported" = "yes" ; then 8165 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8166 found="yes" 8167 fi 8168 fi 8169 8170 if test $found = "no" ; then 8171 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8172 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8173 fi 8174 8175 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8177 fi 8178 8179 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8180 8181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8182printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8183 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8184 if eval test \${$cacheid+y} 8185then : 8186 printf %s "(cached) " >&6 8187else $as_nop 8188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8189/* end confdefs.h. */ 8190int i; 8191int 8192main (void) 8193{ 8194 8195 ; 8196 return 0; 8197} 8198_ACEOF 8199if ac_fn_c_try_link "$LINENO" 8200then : 8201 eval $cacheid=yes 8202else $as_nop 8203 eval $cacheid=no 8204fi 8205rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8206 conftest$ac_exeext conftest.$ac_ext 8207fi 8208 8209 8210 CFLAGS="$xorg_testset_save_CFLAGS" 8211 8212 eval supported=\$$cacheid 8213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8214printf "%s\n" "$supported" >&6; } 8215 if test "$supported" = "yes" ; then 8216 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8217 found="yes" 8218 fi 8219 fi 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235xorg_testset_save_CFLAGS="$CFLAGS" 8236 8237if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8238 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8240printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8241if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8242then : 8243 printf %s "(cached) " >&6 8244else $as_nop 8245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8246/* end confdefs.h. */ 8247int i; 8248_ACEOF 8249if ac_fn_c_try_compile "$LINENO" 8250then : 8251 xorg_cv_cc_flag_unknown_warning_option=yes 8252else $as_nop 8253 xorg_cv_cc_flag_unknown_warning_option=no 8254fi 8255rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8256fi 8257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8258printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8259 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8260 CFLAGS="$xorg_testset_save_CFLAGS" 8261fi 8262 8263if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8264 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8265 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8266 fi 8267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8269printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8270if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8271then : 8272 printf %s "(cached) " >&6 8273else $as_nop 8274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8275/* end confdefs.h. */ 8276int i; 8277_ACEOF 8278if ac_fn_c_try_compile "$LINENO" 8279then : 8280 xorg_cv_cc_flag_unused_command_line_argument=yes 8281else $as_nop 8282 xorg_cv_cc_flag_unused_command_line_argument=no 8283fi 8284rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8285fi 8286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8287printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8288 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8289 CFLAGS="$xorg_testset_save_CFLAGS" 8290fi 8291 8292found="no" 8293 8294 if test $found = "no" ; then 8295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8297 fi 8298 8299 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8301 fi 8302 8303 CFLAGS="$CFLAGS -Werror=trigraphs" 8304 8305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8306printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8307 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8308 if eval test \${$cacheid+y} 8309then : 8310 printf %s "(cached) " >&6 8311else $as_nop 8312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8313/* end confdefs.h. */ 8314int i; 8315int 8316main (void) 8317{ 8318 8319 ; 8320 return 0; 8321} 8322_ACEOF 8323if ac_fn_c_try_link "$LINENO" 8324then : 8325 eval $cacheid=yes 8326else $as_nop 8327 eval $cacheid=no 8328fi 8329rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8330 conftest$ac_exeext conftest.$ac_ext 8331fi 8332 8333 8334 CFLAGS="$xorg_testset_save_CFLAGS" 8335 8336 eval supported=\$$cacheid 8337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8338printf "%s\n" "$supported" >&6; } 8339 if test "$supported" = "yes" ; then 8340 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8341 found="yes" 8342 fi 8343 fi 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359xorg_testset_save_CFLAGS="$CFLAGS" 8360 8361if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8364printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8365if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8366then : 8367 printf %s "(cached) " >&6 8368else $as_nop 8369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8370/* end confdefs.h. */ 8371int i; 8372_ACEOF 8373if ac_fn_c_try_compile "$LINENO" 8374then : 8375 xorg_cv_cc_flag_unknown_warning_option=yes 8376else $as_nop 8377 xorg_cv_cc_flag_unknown_warning_option=no 8378fi 8379rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8380fi 8381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8382printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8383 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8384 CFLAGS="$xorg_testset_save_CFLAGS" 8385fi 8386 8387if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8390 fi 8391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8393printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8394if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8395then : 8396 printf %s "(cached) " >&6 8397else $as_nop 8398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8399/* end confdefs.h. */ 8400int i; 8401_ACEOF 8402if ac_fn_c_try_compile "$LINENO" 8403then : 8404 xorg_cv_cc_flag_unused_command_line_argument=yes 8405else $as_nop 8406 xorg_cv_cc_flag_unused_command_line_argument=no 8407fi 8408rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8409fi 8410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8411printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8412 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8413 CFLAGS="$xorg_testset_save_CFLAGS" 8414fi 8415 8416found="no" 8417 8418 if test $found = "no" ; then 8419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8420 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8421 fi 8422 8423 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8425 fi 8426 8427 CFLAGS="$CFLAGS -Werror=array-bounds" 8428 8429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8430printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8431 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8432 if eval test \${$cacheid+y} 8433then : 8434 printf %s "(cached) " >&6 8435else $as_nop 8436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8437/* end confdefs.h. */ 8438int i; 8439int 8440main (void) 8441{ 8442 8443 ; 8444 return 0; 8445} 8446_ACEOF 8447if ac_fn_c_try_link "$LINENO" 8448then : 8449 eval $cacheid=yes 8450else $as_nop 8451 eval $cacheid=no 8452fi 8453rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8454 conftest$ac_exeext conftest.$ac_ext 8455fi 8456 8457 8458 CFLAGS="$xorg_testset_save_CFLAGS" 8459 8460 eval supported=\$$cacheid 8461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8462printf "%s\n" "$supported" >&6; } 8463 if test "$supported" = "yes" ; then 8464 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8465 found="yes" 8466 fi 8467 fi 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483xorg_testset_save_CFLAGS="$CFLAGS" 8484 8485if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8486 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8488printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8489if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8490then : 8491 printf %s "(cached) " >&6 8492else $as_nop 8493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8494/* end confdefs.h. */ 8495int i; 8496_ACEOF 8497if ac_fn_c_try_compile "$LINENO" 8498then : 8499 xorg_cv_cc_flag_unknown_warning_option=yes 8500else $as_nop 8501 xorg_cv_cc_flag_unknown_warning_option=no 8502fi 8503rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8504fi 8505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8506printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8507 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8508 CFLAGS="$xorg_testset_save_CFLAGS" 8509fi 8510 8511if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8514 fi 8515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8517printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8518if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8519then : 8520 printf %s "(cached) " >&6 8521else $as_nop 8522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8523/* end confdefs.h. */ 8524int i; 8525_ACEOF 8526if ac_fn_c_try_compile "$LINENO" 8527then : 8528 xorg_cv_cc_flag_unused_command_line_argument=yes 8529else $as_nop 8530 xorg_cv_cc_flag_unused_command_line_argument=no 8531fi 8532rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8533fi 8534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8535printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8536 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8537 CFLAGS="$xorg_testset_save_CFLAGS" 8538fi 8539 8540found="no" 8541 8542 if test $found = "no" ; then 8543 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8544 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8545 fi 8546 8547 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8549 fi 8550 8551 CFLAGS="$CFLAGS -Werror=write-strings" 8552 8553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8554printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8555 cacheid=xorg_cv_cc_flag__Werror_write_strings 8556 if eval test \${$cacheid+y} 8557then : 8558 printf %s "(cached) " >&6 8559else $as_nop 8560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8561/* end confdefs.h. */ 8562int i; 8563int 8564main (void) 8565{ 8566 8567 ; 8568 return 0; 8569} 8570_ACEOF 8571if ac_fn_c_try_link "$LINENO" 8572then : 8573 eval $cacheid=yes 8574else $as_nop 8575 eval $cacheid=no 8576fi 8577rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8578 conftest$ac_exeext conftest.$ac_ext 8579fi 8580 8581 8582 CFLAGS="$xorg_testset_save_CFLAGS" 8583 8584 eval supported=\$$cacheid 8585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8586printf "%s\n" "$supported" >&6; } 8587 if test "$supported" = "yes" ; then 8588 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8589 found="yes" 8590 fi 8591 fi 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607xorg_testset_save_CFLAGS="$CFLAGS" 8608 8609if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8610 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8612printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8613if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8614then : 8615 printf %s "(cached) " >&6 8616else $as_nop 8617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8618/* end confdefs.h. */ 8619int i; 8620_ACEOF 8621if ac_fn_c_try_compile "$LINENO" 8622then : 8623 xorg_cv_cc_flag_unknown_warning_option=yes 8624else $as_nop 8625 xorg_cv_cc_flag_unknown_warning_option=no 8626fi 8627rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8628fi 8629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8630printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8631 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8632 CFLAGS="$xorg_testset_save_CFLAGS" 8633fi 8634 8635if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8636 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8637 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8638 fi 8639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8641printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8642if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8643then : 8644 printf %s "(cached) " >&6 8645else $as_nop 8646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8647/* end confdefs.h. */ 8648int i; 8649_ACEOF 8650if ac_fn_c_try_compile "$LINENO" 8651then : 8652 xorg_cv_cc_flag_unused_command_line_argument=yes 8653else $as_nop 8654 xorg_cv_cc_flag_unused_command_line_argument=no 8655fi 8656rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 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=address" 8676 8677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8678printf %s "checking if $CC supports -Werror=address... " >&6; } 8679 cacheid=xorg_cv_cc_flag__Werror_address 8680 if eval test \${$cacheid+y} 8681then : 8682 printf %s "(cached) " >&6 8683else $as_nop 8684 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 $as_nop 8699 eval $cacheid=no 8700fi 8701rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8702 conftest$ac_exeext conftest.$ac_ext 8703fi 8704 8705 8706 CFLAGS="$xorg_testset_save_CFLAGS" 8707 8708 eval supported=\$$cacheid 8709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8710printf "%s\n" "$supported" >&6; } 8711 if test "$supported" = "yes" ; then 8712 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8713 found="yes" 8714 fi 8715 fi 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731xorg_testset_save_CFLAGS="$CFLAGS" 8732 8733if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8734 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8736printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8737if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8738then : 8739 printf %s "(cached) " >&6 8740else $as_nop 8741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8742/* end confdefs.h. */ 8743int i; 8744_ACEOF 8745if ac_fn_c_try_compile "$LINENO" 8746then : 8747 xorg_cv_cc_flag_unknown_warning_option=yes 8748else $as_nop 8749 xorg_cv_cc_flag_unknown_warning_option=no 8750fi 8751rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8752fi 8753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8754printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8755 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8756 CFLAGS="$xorg_testset_save_CFLAGS" 8757fi 8758 8759if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8761 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8762 fi 8763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8765printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8766if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8767then : 8768 printf %s "(cached) " >&6 8769else $as_nop 8770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8771/* end confdefs.h. */ 8772int i; 8773_ACEOF 8774if ac_fn_c_try_compile "$LINENO" 8775then : 8776 xorg_cv_cc_flag_unused_command_line_argument=yes 8777else $as_nop 8778 xorg_cv_cc_flag_unused_command_line_argument=no 8779fi 8780rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8781fi 8782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8783printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8784 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8785 CFLAGS="$xorg_testset_save_CFLAGS" 8786fi 8787 8788found="no" 8789 8790 if test $found = "no" ; then 8791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8792 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8793 fi 8794 8795 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8797 fi 8798 8799 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8800 8801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8802printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8803 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8804 if eval test \${$cacheid+y} 8805then : 8806 printf %s "(cached) " >&6 8807else $as_nop 8808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8809/* end confdefs.h. */ 8810int i; 8811int 8812main (void) 8813{ 8814 8815 ; 8816 return 0; 8817} 8818_ACEOF 8819if ac_fn_c_try_link "$LINENO" 8820then : 8821 eval $cacheid=yes 8822else $as_nop 8823 eval $cacheid=no 8824fi 8825rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8826 conftest$ac_exeext conftest.$ac_ext 8827fi 8828 8829 8830 CFLAGS="$xorg_testset_save_CFLAGS" 8831 8832 eval supported=\$$cacheid 8833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8834printf "%s\n" "$supported" >&6; } 8835 if test "$supported" = "yes" ; then 8836 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8837 found="yes" 8838 fi 8839 fi 8840 8841 if test $found = "no" ; then 8842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8843 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8844 fi 8845 8846 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8848 fi 8849 8850 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8851 8852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8853printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8854 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8855 if eval test \${$cacheid+y} 8856then : 8857 printf %s "(cached) " >&6 8858else $as_nop 8859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8860/* end confdefs.h. */ 8861int i; 8862int 8863main (void) 8864{ 8865 8866 ; 8867 return 0; 8868} 8869_ACEOF 8870if ac_fn_c_try_link "$LINENO" 8871then : 8872 eval $cacheid=yes 8873else $as_nop 8874 eval $cacheid=no 8875fi 8876rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8877 conftest$ac_exeext conftest.$ac_ext 8878fi 8879 8880 8881 CFLAGS="$xorg_testset_save_CFLAGS" 8882 8883 eval supported=\$$cacheid 8884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8885printf "%s\n" "$supported" >&6; } 8886 if test "$supported" = "yes" ; then 8887 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8888 found="yes" 8889 fi 8890 fi 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906xorg_testset_save_CFLAGS="$CFLAGS" 8907 8908if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8909 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8911printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8912if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8913then : 8914 printf %s "(cached) " >&6 8915else $as_nop 8916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8917/* end confdefs.h. */ 8918int i; 8919_ACEOF 8920if ac_fn_c_try_compile "$LINENO" 8921then : 8922 xorg_cv_cc_flag_unknown_warning_option=yes 8923else $as_nop 8924 xorg_cv_cc_flag_unknown_warning_option=no 8925fi 8926rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8927fi 8928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8929printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8930 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8931 CFLAGS="$xorg_testset_save_CFLAGS" 8932fi 8933 8934if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8935 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8936 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8937 fi 8938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8940printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8941if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8942then : 8943 printf %s "(cached) " >&6 8944else $as_nop 8945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8946/* end confdefs.h. */ 8947int i; 8948_ACEOF 8949if ac_fn_c_try_compile "$LINENO" 8950then : 8951 xorg_cv_cc_flag_unused_command_line_argument=yes 8952else $as_nop 8953 xorg_cv_cc_flag_unused_command_line_argument=no 8954fi 8955rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8956fi 8957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8958printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8959 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8960 CFLAGS="$xorg_testset_save_CFLAGS" 8961fi 8962 8963found="no" 8964 8965 if test $found = "no" ; then 8966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8968 fi 8969 8970 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8972 fi 8973 8974 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8975 8976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8977printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8978 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8979 if eval test \${$cacheid+y} 8980then : 8981 printf %s "(cached) " >&6 8982else $as_nop 8983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8984/* end confdefs.h. */ 8985int i; 8986int 8987main (void) 8988{ 8989 8990 ; 8991 return 0; 8992} 8993_ACEOF 8994if ac_fn_c_try_link "$LINENO" 8995then : 8996 eval $cacheid=yes 8997else $as_nop 8998 eval $cacheid=no 8999fi 9000rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9001 conftest$ac_exeext conftest.$ac_ext 9002fi 9003 9004 9005 CFLAGS="$xorg_testset_save_CFLAGS" 9006 9007 eval supported=\$$cacheid 9008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9009printf "%s\n" "$supported" >&6; } 9010 if test "$supported" = "yes" ; then 9011 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9012 found="yes" 9013 fi 9014 fi 9015 9016 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9017else 9018{ 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 9019printf "%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;} 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033xorg_testset_save_CFLAGS="$CFLAGS" 9034 9035if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9036 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9038printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9039if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9040then : 9041 printf %s "(cached) " >&6 9042else $as_nop 9043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9044/* end confdefs.h. */ 9045int i; 9046_ACEOF 9047if ac_fn_c_try_compile "$LINENO" 9048then : 9049 xorg_cv_cc_flag_unknown_warning_option=yes 9050else $as_nop 9051 xorg_cv_cc_flag_unknown_warning_option=no 9052fi 9053rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9054fi 9055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9056printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9057 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9058 CFLAGS="$xorg_testset_save_CFLAGS" 9059fi 9060 9061if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9064 fi 9065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9067printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9068if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9069then : 9070 printf %s "(cached) " >&6 9071else $as_nop 9072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9073/* end confdefs.h. */ 9074int i; 9075_ACEOF 9076if ac_fn_c_try_compile "$LINENO" 9077then : 9078 xorg_cv_cc_flag_unused_command_line_argument=yes 9079else $as_nop 9080 xorg_cv_cc_flag_unused_command_line_argument=no 9081fi 9082rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9083fi 9084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9085printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9086 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9087 CFLAGS="$xorg_testset_save_CFLAGS" 9088fi 9089 9090found="no" 9091 9092 if test $found = "no" ; then 9093 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9094 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9095 fi 9096 9097 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9099 fi 9100 9101 CFLAGS="$CFLAGS -Wimplicit" 9102 9103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9104printf %s "checking if $CC supports -Wimplicit... " >&6; } 9105 cacheid=xorg_cv_cc_flag__Wimplicit 9106 if eval test \${$cacheid+y} 9107then : 9108 printf %s "(cached) " >&6 9109else $as_nop 9110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9111/* end confdefs.h. */ 9112int i; 9113int 9114main (void) 9115{ 9116 9117 ; 9118 return 0; 9119} 9120_ACEOF 9121if ac_fn_c_try_link "$LINENO" 9122then : 9123 eval $cacheid=yes 9124else $as_nop 9125 eval $cacheid=no 9126fi 9127rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9128 conftest$ac_exeext conftest.$ac_ext 9129fi 9130 9131 9132 CFLAGS="$xorg_testset_save_CFLAGS" 9133 9134 eval supported=\$$cacheid 9135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9136printf "%s\n" "$supported" >&6; } 9137 if test "$supported" = "yes" ; then 9138 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9139 found="yes" 9140 fi 9141 fi 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157xorg_testset_save_CFLAGS="$CFLAGS" 9158 9159if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9160 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9162printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9163if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9164then : 9165 printf %s "(cached) " >&6 9166else $as_nop 9167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9168/* end confdefs.h. */ 9169int i; 9170_ACEOF 9171if ac_fn_c_try_compile "$LINENO" 9172then : 9173 xorg_cv_cc_flag_unknown_warning_option=yes 9174else $as_nop 9175 xorg_cv_cc_flag_unknown_warning_option=no 9176fi 9177rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9178fi 9179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9180printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9181 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9182 CFLAGS="$xorg_testset_save_CFLAGS" 9183fi 9184 9185if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9187 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9188 fi 9189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9191printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9192if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9193then : 9194 printf %s "(cached) " >&6 9195else $as_nop 9196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9197/* end confdefs.h. */ 9198int i; 9199_ACEOF 9200if ac_fn_c_try_compile "$LINENO" 9201then : 9202 xorg_cv_cc_flag_unused_command_line_argument=yes 9203else $as_nop 9204 xorg_cv_cc_flag_unused_command_line_argument=no 9205fi 9206rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9207fi 9208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9209printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9210 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9211 CFLAGS="$xorg_testset_save_CFLAGS" 9212fi 9213 9214found="no" 9215 9216 if test $found = "no" ; then 9217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9218 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9219 fi 9220 9221 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9223 fi 9224 9225 CFLAGS="$CFLAGS -Wnonnull" 9226 9227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9228printf %s "checking if $CC supports -Wnonnull... " >&6; } 9229 cacheid=xorg_cv_cc_flag__Wnonnull 9230 if eval test \${$cacheid+y} 9231then : 9232 printf %s "(cached) " >&6 9233else $as_nop 9234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9235/* end confdefs.h. */ 9236int i; 9237int 9238main (void) 9239{ 9240 9241 ; 9242 return 0; 9243} 9244_ACEOF 9245if ac_fn_c_try_link "$LINENO" 9246then : 9247 eval $cacheid=yes 9248else $as_nop 9249 eval $cacheid=no 9250fi 9251rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9252 conftest$ac_exeext conftest.$ac_ext 9253fi 9254 9255 9256 CFLAGS="$xorg_testset_save_CFLAGS" 9257 9258 eval supported=\$$cacheid 9259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9260printf "%s\n" "$supported" >&6; } 9261 if test "$supported" = "yes" ; then 9262 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9263 found="yes" 9264 fi 9265 fi 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281xorg_testset_save_CFLAGS="$CFLAGS" 9282 9283if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9284 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9286printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9287if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9288then : 9289 printf %s "(cached) " >&6 9290else $as_nop 9291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9292/* end confdefs.h. */ 9293int i; 9294_ACEOF 9295if ac_fn_c_try_compile "$LINENO" 9296then : 9297 xorg_cv_cc_flag_unknown_warning_option=yes 9298else $as_nop 9299 xorg_cv_cc_flag_unknown_warning_option=no 9300fi 9301rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9302fi 9303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9304printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9305 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9306 CFLAGS="$xorg_testset_save_CFLAGS" 9307fi 9308 9309if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9311 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9312 fi 9313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9315printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9316if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9317then : 9318 printf %s "(cached) " >&6 9319else $as_nop 9320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9321/* end confdefs.h. */ 9322int i; 9323_ACEOF 9324if ac_fn_c_try_compile "$LINENO" 9325then : 9326 xorg_cv_cc_flag_unused_command_line_argument=yes 9327else $as_nop 9328 xorg_cv_cc_flag_unused_command_line_argument=no 9329fi 9330rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9331fi 9332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9333printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9334 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9335 CFLAGS="$xorg_testset_save_CFLAGS" 9336fi 9337 9338found="no" 9339 9340 if test $found = "no" ; then 9341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9342 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9343 fi 9344 9345 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9347 fi 9348 9349 CFLAGS="$CFLAGS -Winit-self" 9350 9351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9352printf %s "checking if $CC supports -Winit-self... " >&6; } 9353 cacheid=xorg_cv_cc_flag__Winit_self 9354 if eval test \${$cacheid+y} 9355then : 9356 printf %s "(cached) " >&6 9357else $as_nop 9358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9359/* end confdefs.h. */ 9360int i; 9361int 9362main (void) 9363{ 9364 9365 ; 9366 return 0; 9367} 9368_ACEOF 9369if ac_fn_c_try_link "$LINENO" 9370then : 9371 eval $cacheid=yes 9372else $as_nop 9373 eval $cacheid=no 9374fi 9375rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9376 conftest$ac_exeext conftest.$ac_ext 9377fi 9378 9379 9380 CFLAGS="$xorg_testset_save_CFLAGS" 9381 9382 eval supported=\$$cacheid 9383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9384printf "%s\n" "$supported" >&6; } 9385 if test "$supported" = "yes" ; then 9386 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9387 found="yes" 9388 fi 9389 fi 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405xorg_testset_save_CFLAGS="$CFLAGS" 9406 9407if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9408 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9410printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9411if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9412then : 9413 printf %s "(cached) " >&6 9414else $as_nop 9415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9416/* end confdefs.h. */ 9417int i; 9418_ACEOF 9419if ac_fn_c_try_compile "$LINENO" 9420then : 9421 xorg_cv_cc_flag_unknown_warning_option=yes 9422else $as_nop 9423 xorg_cv_cc_flag_unknown_warning_option=no 9424fi 9425rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9426fi 9427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9428printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9429 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9430 CFLAGS="$xorg_testset_save_CFLAGS" 9431fi 9432 9433if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9434 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9435 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9436 fi 9437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9439printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9440if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9441then : 9442 printf %s "(cached) " >&6 9443else $as_nop 9444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9445/* end confdefs.h. */ 9446int i; 9447_ACEOF 9448if ac_fn_c_try_compile "$LINENO" 9449then : 9450 xorg_cv_cc_flag_unused_command_line_argument=yes 9451else $as_nop 9452 xorg_cv_cc_flag_unused_command_line_argument=no 9453fi 9454rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9455fi 9456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9457printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9458 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9459 CFLAGS="$xorg_testset_save_CFLAGS" 9460fi 9461 9462found="no" 9463 9464 if test $found = "no" ; then 9465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9467 fi 9468 9469 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9471 fi 9472 9473 CFLAGS="$CFLAGS -Wmain" 9474 9475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9476printf %s "checking if $CC supports -Wmain... " >&6; } 9477 cacheid=xorg_cv_cc_flag__Wmain 9478 if eval test \${$cacheid+y} 9479then : 9480 printf %s "(cached) " >&6 9481else $as_nop 9482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9483/* end confdefs.h. */ 9484int i; 9485int 9486main (void) 9487{ 9488 9489 ; 9490 return 0; 9491} 9492_ACEOF 9493if ac_fn_c_try_link "$LINENO" 9494then : 9495 eval $cacheid=yes 9496else $as_nop 9497 eval $cacheid=no 9498fi 9499rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9500 conftest$ac_exeext conftest.$ac_ext 9501fi 9502 9503 9504 CFLAGS="$xorg_testset_save_CFLAGS" 9505 9506 eval supported=\$$cacheid 9507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9508printf "%s\n" "$supported" >&6; } 9509 if test "$supported" = "yes" ; then 9510 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9511 found="yes" 9512 fi 9513 fi 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529xorg_testset_save_CFLAGS="$CFLAGS" 9530 9531if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9534printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9535if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9536then : 9537 printf %s "(cached) " >&6 9538else $as_nop 9539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9540/* end confdefs.h. */ 9541int i; 9542_ACEOF 9543if ac_fn_c_try_compile "$LINENO" 9544then : 9545 xorg_cv_cc_flag_unknown_warning_option=yes 9546else $as_nop 9547 xorg_cv_cc_flag_unknown_warning_option=no 9548fi 9549rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9550fi 9551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9552printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9553 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9554 CFLAGS="$xorg_testset_save_CFLAGS" 9555fi 9556 9557if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9558 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9559 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9560 fi 9561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9563printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9564if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9565then : 9566 printf %s "(cached) " >&6 9567else $as_nop 9568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9569/* end confdefs.h. */ 9570int i; 9571_ACEOF 9572if ac_fn_c_try_compile "$LINENO" 9573then : 9574 xorg_cv_cc_flag_unused_command_line_argument=yes 9575else $as_nop 9576 xorg_cv_cc_flag_unused_command_line_argument=no 9577fi 9578rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9579fi 9580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9581printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9582 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9583 CFLAGS="$xorg_testset_save_CFLAGS" 9584fi 9585 9586found="no" 9587 9588 if test $found = "no" ; then 9589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9590 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9591 fi 9592 9593 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9594 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9595 fi 9596 9597 CFLAGS="$CFLAGS -Wmissing-braces" 9598 9599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9600printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9601 cacheid=xorg_cv_cc_flag__Wmissing_braces 9602 if eval test \${$cacheid+y} 9603then : 9604 printf %s "(cached) " >&6 9605else $as_nop 9606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9607/* end confdefs.h. */ 9608int i; 9609int 9610main (void) 9611{ 9612 9613 ; 9614 return 0; 9615} 9616_ACEOF 9617if ac_fn_c_try_link "$LINENO" 9618then : 9619 eval $cacheid=yes 9620else $as_nop 9621 eval $cacheid=no 9622fi 9623rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9624 conftest$ac_exeext conftest.$ac_ext 9625fi 9626 9627 9628 CFLAGS="$xorg_testset_save_CFLAGS" 9629 9630 eval supported=\$$cacheid 9631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9632printf "%s\n" "$supported" >&6; } 9633 if test "$supported" = "yes" ; then 9634 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9635 found="yes" 9636 fi 9637 fi 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653xorg_testset_save_CFLAGS="$CFLAGS" 9654 9655if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9656 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9658printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9659if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9660then : 9661 printf %s "(cached) " >&6 9662else $as_nop 9663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9664/* end confdefs.h. */ 9665int i; 9666_ACEOF 9667if ac_fn_c_try_compile "$LINENO" 9668then : 9669 xorg_cv_cc_flag_unknown_warning_option=yes 9670else $as_nop 9671 xorg_cv_cc_flag_unknown_warning_option=no 9672fi 9673rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9674fi 9675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9676printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9677 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9678 CFLAGS="$xorg_testset_save_CFLAGS" 9679fi 9680 9681if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9682 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9684 fi 9685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9687printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9688if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9689then : 9690 printf %s "(cached) " >&6 9691else $as_nop 9692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9693/* end confdefs.h. */ 9694int i; 9695_ACEOF 9696if ac_fn_c_try_compile "$LINENO" 9697then : 9698 xorg_cv_cc_flag_unused_command_line_argument=yes 9699else $as_nop 9700 xorg_cv_cc_flag_unused_command_line_argument=no 9701fi 9702rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9703fi 9704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9705printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9706 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9707 CFLAGS="$xorg_testset_save_CFLAGS" 9708fi 9709 9710found="no" 9711 9712 if test $found = "no" ; then 9713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9715 fi 9716 9717 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9719 fi 9720 9721 CFLAGS="$CFLAGS -Wsequence-point" 9722 9723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9724printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9725 cacheid=xorg_cv_cc_flag__Wsequence_point 9726 if eval test \${$cacheid+y} 9727then : 9728 printf %s "(cached) " >&6 9729else $as_nop 9730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9731/* end confdefs.h. */ 9732int i; 9733int 9734main (void) 9735{ 9736 9737 ; 9738 return 0; 9739} 9740_ACEOF 9741if ac_fn_c_try_link "$LINENO" 9742then : 9743 eval $cacheid=yes 9744else $as_nop 9745 eval $cacheid=no 9746fi 9747rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9748 conftest$ac_exeext conftest.$ac_ext 9749fi 9750 9751 9752 CFLAGS="$xorg_testset_save_CFLAGS" 9753 9754 eval supported=\$$cacheid 9755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9756printf "%s\n" "$supported" >&6; } 9757 if test "$supported" = "yes" ; then 9758 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9759 found="yes" 9760 fi 9761 fi 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777xorg_testset_save_CFLAGS="$CFLAGS" 9778 9779if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9780 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9782printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9783if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9784then : 9785 printf %s "(cached) " >&6 9786else $as_nop 9787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9788/* end confdefs.h. */ 9789int i; 9790_ACEOF 9791if ac_fn_c_try_compile "$LINENO" 9792then : 9793 xorg_cv_cc_flag_unknown_warning_option=yes 9794else $as_nop 9795 xorg_cv_cc_flag_unknown_warning_option=no 9796fi 9797rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9798fi 9799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9800printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9801 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9802 CFLAGS="$xorg_testset_save_CFLAGS" 9803fi 9804 9805if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9808 fi 9809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9811printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9812if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9813then : 9814 printf %s "(cached) " >&6 9815else $as_nop 9816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9817/* end confdefs.h. */ 9818int i; 9819_ACEOF 9820if ac_fn_c_try_compile "$LINENO" 9821then : 9822 xorg_cv_cc_flag_unused_command_line_argument=yes 9823else $as_nop 9824 xorg_cv_cc_flag_unused_command_line_argument=no 9825fi 9826rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9827fi 9828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9829printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9830 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9831 CFLAGS="$xorg_testset_save_CFLAGS" 9832fi 9833 9834found="no" 9835 9836 if test $found = "no" ; then 9837 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9839 fi 9840 9841 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9842 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9843 fi 9844 9845 CFLAGS="$CFLAGS -Wreturn-type" 9846 9847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9848printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9849 cacheid=xorg_cv_cc_flag__Wreturn_type 9850 if eval test \${$cacheid+y} 9851then : 9852 printf %s "(cached) " >&6 9853else $as_nop 9854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9855/* end confdefs.h. */ 9856int i; 9857int 9858main (void) 9859{ 9860 9861 ; 9862 return 0; 9863} 9864_ACEOF 9865if ac_fn_c_try_link "$LINENO" 9866then : 9867 eval $cacheid=yes 9868else $as_nop 9869 eval $cacheid=no 9870fi 9871rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9872 conftest$ac_exeext conftest.$ac_ext 9873fi 9874 9875 9876 CFLAGS="$xorg_testset_save_CFLAGS" 9877 9878 eval supported=\$$cacheid 9879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9880printf "%s\n" "$supported" >&6; } 9881 if test "$supported" = "yes" ; then 9882 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9883 found="yes" 9884 fi 9885 fi 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901xorg_testset_save_CFLAGS="$CFLAGS" 9902 9903if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9906printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9907if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9908then : 9909 printf %s "(cached) " >&6 9910else $as_nop 9911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9912/* end confdefs.h. */ 9913int i; 9914_ACEOF 9915if ac_fn_c_try_compile "$LINENO" 9916then : 9917 xorg_cv_cc_flag_unknown_warning_option=yes 9918else $as_nop 9919 xorg_cv_cc_flag_unknown_warning_option=no 9920fi 9921rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9922fi 9923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9924printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9925 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9926 CFLAGS="$xorg_testset_save_CFLAGS" 9927fi 9928 9929if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9930 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9932 fi 9933 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9935printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9936if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9937then : 9938 printf %s "(cached) " >&6 9939else $as_nop 9940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9941/* end confdefs.h. */ 9942int i; 9943_ACEOF 9944if ac_fn_c_try_compile "$LINENO" 9945then : 9946 xorg_cv_cc_flag_unused_command_line_argument=yes 9947else $as_nop 9948 xorg_cv_cc_flag_unused_command_line_argument=no 9949fi 9950rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9951fi 9952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9953printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9954 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9955 CFLAGS="$xorg_testset_save_CFLAGS" 9956fi 9957 9958found="no" 9959 9960 if test $found = "no" ; then 9961 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9962 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9963 fi 9964 9965 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9966 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9967 fi 9968 9969 CFLAGS="$CFLAGS -Wtrigraphs" 9970 9971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9972printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 9973 cacheid=xorg_cv_cc_flag__Wtrigraphs 9974 if eval test \${$cacheid+y} 9975then : 9976 printf %s "(cached) " >&6 9977else $as_nop 9978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9979/* end confdefs.h. */ 9980int i; 9981int 9982main (void) 9983{ 9984 9985 ; 9986 return 0; 9987} 9988_ACEOF 9989if ac_fn_c_try_link "$LINENO" 9990then : 9991 eval $cacheid=yes 9992else $as_nop 9993 eval $cacheid=no 9994fi 9995rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9996 conftest$ac_exeext conftest.$ac_ext 9997fi 9998 9999 10000 CFLAGS="$xorg_testset_save_CFLAGS" 10001 10002 eval supported=\$$cacheid 10003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10004printf "%s\n" "$supported" >&6; } 10005 if test "$supported" = "yes" ; then 10006 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10007 found="yes" 10008 fi 10009 fi 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025xorg_testset_save_CFLAGS="$CFLAGS" 10026 10027if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10030printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10031if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10032then : 10033 printf %s "(cached) " >&6 10034else $as_nop 10035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10036/* end confdefs.h. */ 10037int i; 10038_ACEOF 10039if ac_fn_c_try_compile "$LINENO" 10040then : 10041 xorg_cv_cc_flag_unknown_warning_option=yes 10042else $as_nop 10043 xorg_cv_cc_flag_unknown_warning_option=no 10044fi 10045rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10046fi 10047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10048printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10049 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10050 CFLAGS="$xorg_testset_save_CFLAGS" 10051fi 10052 10053if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10054 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10055 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10056 fi 10057 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10059printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10060if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10061then : 10062 printf %s "(cached) " >&6 10063else $as_nop 10064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10065/* end confdefs.h. */ 10066int i; 10067_ACEOF 10068if ac_fn_c_try_compile "$LINENO" 10069then : 10070 xorg_cv_cc_flag_unused_command_line_argument=yes 10071else $as_nop 10072 xorg_cv_cc_flag_unused_command_line_argument=no 10073fi 10074rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10075fi 10076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10077printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10078 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10079 CFLAGS="$xorg_testset_save_CFLAGS" 10080fi 10081 10082found="no" 10083 10084 if test $found = "no" ; then 10085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10087 fi 10088 10089 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10091 fi 10092 10093 CFLAGS="$CFLAGS -Warray-bounds" 10094 10095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10096printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10097 cacheid=xorg_cv_cc_flag__Warray_bounds 10098 if eval test \${$cacheid+y} 10099then : 10100 printf %s "(cached) " >&6 10101else $as_nop 10102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10103/* end confdefs.h. */ 10104int i; 10105int 10106main (void) 10107{ 10108 10109 ; 10110 return 0; 10111} 10112_ACEOF 10113if ac_fn_c_try_link "$LINENO" 10114then : 10115 eval $cacheid=yes 10116else $as_nop 10117 eval $cacheid=no 10118fi 10119rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10120 conftest$ac_exeext conftest.$ac_ext 10121fi 10122 10123 10124 CFLAGS="$xorg_testset_save_CFLAGS" 10125 10126 eval supported=\$$cacheid 10127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10128printf "%s\n" "$supported" >&6; } 10129 if test "$supported" = "yes" ; then 10130 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10131 found="yes" 10132 fi 10133 fi 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149xorg_testset_save_CFLAGS="$CFLAGS" 10150 10151if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10154printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10155if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10156then : 10157 printf %s "(cached) " >&6 10158else $as_nop 10159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10160/* end confdefs.h. */ 10161int i; 10162_ACEOF 10163if ac_fn_c_try_compile "$LINENO" 10164then : 10165 xorg_cv_cc_flag_unknown_warning_option=yes 10166else $as_nop 10167 xorg_cv_cc_flag_unknown_warning_option=no 10168fi 10169rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10170fi 10171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10172printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10173 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10174 CFLAGS="$xorg_testset_save_CFLAGS" 10175fi 10176 10177if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10178 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10180 fi 10181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10183printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10184if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10185then : 10186 printf %s "(cached) " >&6 10187else $as_nop 10188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10189/* end confdefs.h. */ 10190int i; 10191_ACEOF 10192if ac_fn_c_try_compile "$LINENO" 10193then : 10194 xorg_cv_cc_flag_unused_command_line_argument=yes 10195else $as_nop 10196 xorg_cv_cc_flag_unused_command_line_argument=no 10197fi 10198rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10199fi 10200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10201printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10202 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10203 CFLAGS="$xorg_testset_save_CFLAGS" 10204fi 10205 10206found="no" 10207 10208 if test $found = "no" ; then 10209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10211 fi 10212 10213 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10215 fi 10216 10217 CFLAGS="$CFLAGS -Wwrite-strings" 10218 10219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10220printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10221 cacheid=xorg_cv_cc_flag__Wwrite_strings 10222 if eval test \${$cacheid+y} 10223then : 10224 printf %s "(cached) " >&6 10225else $as_nop 10226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10227/* end confdefs.h. */ 10228int i; 10229int 10230main (void) 10231{ 10232 10233 ; 10234 return 0; 10235} 10236_ACEOF 10237if ac_fn_c_try_link "$LINENO" 10238then : 10239 eval $cacheid=yes 10240else $as_nop 10241 eval $cacheid=no 10242fi 10243rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10244 conftest$ac_exeext conftest.$ac_ext 10245fi 10246 10247 10248 CFLAGS="$xorg_testset_save_CFLAGS" 10249 10250 eval supported=\$$cacheid 10251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10252printf "%s\n" "$supported" >&6; } 10253 if test "$supported" = "yes" ; then 10254 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10255 found="yes" 10256 fi 10257 fi 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273xorg_testset_save_CFLAGS="$CFLAGS" 10274 10275if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10278printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10279if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10280then : 10281 printf %s "(cached) " >&6 10282else $as_nop 10283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10284/* end confdefs.h. */ 10285int i; 10286_ACEOF 10287if ac_fn_c_try_compile "$LINENO" 10288then : 10289 xorg_cv_cc_flag_unknown_warning_option=yes 10290else $as_nop 10291 xorg_cv_cc_flag_unknown_warning_option=no 10292fi 10293rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10294fi 10295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10296printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10297 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10298 CFLAGS="$xorg_testset_save_CFLAGS" 10299fi 10300 10301if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10304 fi 10305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10307printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10308if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10309then : 10310 printf %s "(cached) " >&6 10311else $as_nop 10312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10313/* end confdefs.h. */ 10314int i; 10315_ACEOF 10316if ac_fn_c_try_compile "$LINENO" 10317then : 10318 xorg_cv_cc_flag_unused_command_line_argument=yes 10319else $as_nop 10320 xorg_cv_cc_flag_unused_command_line_argument=no 10321fi 10322rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10323fi 10324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10325printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10326 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10327 CFLAGS="$xorg_testset_save_CFLAGS" 10328fi 10329 10330found="no" 10331 10332 if test $found = "no" ; then 10333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10335 fi 10336 10337 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10339 fi 10340 10341 CFLAGS="$CFLAGS -Waddress" 10342 10343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10344printf %s "checking if $CC supports -Waddress... " >&6; } 10345 cacheid=xorg_cv_cc_flag__Waddress 10346 if eval test \${$cacheid+y} 10347then : 10348 printf %s "(cached) " >&6 10349else $as_nop 10350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10351/* end confdefs.h. */ 10352int i; 10353int 10354main (void) 10355{ 10356 10357 ; 10358 return 0; 10359} 10360_ACEOF 10361if ac_fn_c_try_link "$LINENO" 10362then : 10363 eval $cacheid=yes 10364else $as_nop 10365 eval $cacheid=no 10366fi 10367rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10368 conftest$ac_exeext conftest.$ac_ext 10369fi 10370 10371 10372 CFLAGS="$xorg_testset_save_CFLAGS" 10373 10374 eval supported=\$$cacheid 10375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10376printf "%s\n" "$supported" >&6; } 10377 if test "$supported" = "yes" ; then 10378 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10379 found="yes" 10380 fi 10381 fi 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397xorg_testset_save_CFLAGS="$CFLAGS" 10398 10399if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10402printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10403if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10404then : 10405 printf %s "(cached) " >&6 10406else $as_nop 10407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10408/* end confdefs.h. */ 10409int i; 10410_ACEOF 10411if ac_fn_c_try_compile "$LINENO" 10412then : 10413 xorg_cv_cc_flag_unknown_warning_option=yes 10414else $as_nop 10415 xorg_cv_cc_flag_unknown_warning_option=no 10416fi 10417rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10418fi 10419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10420printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10421 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10422 CFLAGS="$xorg_testset_save_CFLAGS" 10423fi 10424 10425if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10428 fi 10429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10431printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10432if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10433then : 10434 printf %s "(cached) " >&6 10435else $as_nop 10436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10437/* end confdefs.h. */ 10438int i; 10439_ACEOF 10440if ac_fn_c_try_compile "$LINENO" 10441then : 10442 xorg_cv_cc_flag_unused_command_line_argument=yes 10443else $as_nop 10444 xorg_cv_cc_flag_unused_command_line_argument=no 10445fi 10446rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10447fi 10448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10449printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10450 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10451 CFLAGS="$xorg_testset_save_CFLAGS" 10452fi 10453 10454found="no" 10455 10456 if test $found = "no" ; then 10457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10458 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10459 fi 10460 10461 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10463 fi 10464 10465 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10466 10467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10468printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10469 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10470 if eval test \${$cacheid+y} 10471then : 10472 printf %s "(cached) " >&6 10473else $as_nop 10474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10475/* end confdefs.h. */ 10476int i; 10477int 10478main (void) 10479{ 10480 10481 ; 10482 return 0; 10483} 10484_ACEOF 10485if ac_fn_c_try_link "$LINENO" 10486then : 10487 eval $cacheid=yes 10488else $as_nop 10489 eval $cacheid=no 10490fi 10491rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10492 conftest$ac_exeext conftest.$ac_ext 10493fi 10494 10495 10496 CFLAGS="$xorg_testset_save_CFLAGS" 10497 10498 eval supported=\$$cacheid 10499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10500printf "%s\n" "$supported" >&6; } 10501 if test "$supported" = "yes" ; then 10502 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10503 found="yes" 10504 fi 10505 fi 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521xorg_testset_save_CFLAGS="$CFLAGS" 10522 10523if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10526printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10527if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10528then : 10529 printf %s "(cached) " >&6 10530else $as_nop 10531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10532/* end confdefs.h. */ 10533int i; 10534_ACEOF 10535if ac_fn_c_try_compile "$LINENO" 10536then : 10537 xorg_cv_cc_flag_unknown_warning_option=yes 10538else $as_nop 10539 xorg_cv_cc_flag_unknown_warning_option=no 10540fi 10541rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10542fi 10543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10544printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10545 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10546 CFLAGS="$xorg_testset_save_CFLAGS" 10547fi 10548 10549if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10552 fi 10553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10555printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10556if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10557then : 10558 printf %s "(cached) " >&6 10559else $as_nop 10560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10561/* end confdefs.h. */ 10562int i; 10563_ACEOF 10564if ac_fn_c_try_compile "$LINENO" 10565then : 10566 xorg_cv_cc_flag_unused_command_line_argument=yes 10567else $as_nop 10568 xorg_cv_cc_flag_unused_command_line_argument=no 10569fi 10570rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10571fi 10572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10573printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10574 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10575 CFLAGS="$xorg_testset_save_CFLAGS" 10576fi 10577 10578found="no" 10579 10580 if test $found = "no" ; then 10581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10583 fi 10584 10585 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10587 fi 10588 10589 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10590 10591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10592printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10593 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10594 if eval test \${$cacheid+y} 10595then : 10596 printf %s "(cached) " >&6 10597else $as_nop 10598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10599/* end confdefs.h. */ 10600int i; 10601int 10602main (void) 10603{ 10604 10605 ; 10606 return 0; 10607} 10608_ACEOF 10609if ac_fn_c_try_link "$LINENO" 10610then : 10611 eval $cacheid=yes 10612else $as_nop 10613 eval $cacheid=no 10614fi 10615rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10616 conftest$ac_exeext conftest.$ac_ext 10617fi 10618 10619 10620 CFLAGS="$xorg_testset_save_CFLAGS" 10621 10622 eval supported=\$$cacheid 10623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10624printf "%s\n" "$supported" >&6; } 10625 if test "$supported" = "yes" ; then 10626 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10627 found="yes" 10628 fi 10629 fi 10630 10631 10632fi 10633 10634 10635 10636 10637 10638 10639 10640 CWARNFLAGS="$BASE_CFLAGS" 10641 if test "x$GCC" = xyes ; then 10642 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10643 fi 10644 10645 10646 10647 10648 10649 10650 10651 10652# Check whether --enable-strict-compilation was given. 10653if test ${enable_strict_compilation+y} 10654then : 10655 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10656else $as_nop 10657 STRICT_COMPILE=no 10658fi 10659 10660 10661 10662 10663 10664 10665STRICT_CFLAGS="" 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679xorg_testset_save_CFLAGS="$CFLAGS" 10680 10681if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10682 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10684printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10685if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10686then : 10687 printf %s "(cached) " >&6 10688else $as_nop 10689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10690/* end confdefs.h. */ 10691int i; 10692_ACEOF 10693if ac_fn_c_try_compile "$LINENO" 10694then : 10695 xorg_cv_cc_flag_unknown_warning_option=yes 10696else $as_nop 10697 xorg_cv_cc_flag_unknown_warning_option=no 10698fi 10699rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10700fi 10701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10702printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10703 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10704 CFLAGS="$xorg_testset_save_CFLAGS" 10705fi 10706 10707if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10710 fi 10711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10713printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10714if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10715then : 10716 printf %s "(cached) " >&6 10717else $as_nop 10718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10719/* end confdefs.h. */ 10720int i; 10721_ACEOF 10722if ac_fn_c_try_compile "$LINENO" 10723then : 10724 xorg_cv_cc_flag_unused_command_line_argument=yes 10725else $as_nop 10726 xorg_cv_cc_flag_unused_command_line_argument=no 10727fi 10728rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10729fi 10730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10731printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10732 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10733 CFLAGS="$xorg_testset_save_CFLAGS" 10734fi 10735 10736found="no" 10737 10738 if test $found = "no" ; then 10739 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10741 fi 10742 10743 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10745 fi 10746 10747 CFLAGS="$CFLAGS -pedantic" 10748 10749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10750printf %s "checking if $CC supports -pedantic... " >&6; } 10751 cacheid=xorg_cv_cc_flag__pedantic 10752 if eval test \${$cacheid+y} 10753then : 10754 printf %s "(cached) " >&6 10755else $as_nop 10756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10757/* end confdefs.h. */ 10758int i; 10759int 10760main (void) 10761{ 10762 10763 ; 10764 return 0; 10765} 10766_ACEOF 10767if ac_fn_c_try_link "$LINENO" 10768then : 10769 eval $cacheid=yes 10770else $as_nop 10771 eval $cacheid=no 10772fi 10773rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10774 conftest$ac_exeext conftest.$ac_ext 10775fi 10776 10777 10778 CFLAGS="$xorg_testset_save_CFLAGS" 10779 10780 eval supported=\$$cacheid 10781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10782printf "%s\n" "$supported" >&6; } 10783 if test "$supported" = "yes" ; then 10784 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10785 found="yes" 10786 fi 10787 fi 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803xorg_testset_save_CFLAGS="$CFLAGS" 10804 10805if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10806 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10808printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10809if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10810then : 10811 printf %s "(cached) " >&6 10812else $as_nop 10813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10814/* end confdefs.h. */ 10815int i; 10816_ACEOF 10817if ac_fn_c_try_compile "$LINENO" 10818then : 10819 xorg_cv_cc_flag_unknown_warning_option=yes 10820else $as_nop 10821 xorg_cv_cc_flag_unknown_warning_option=no 10822fi 10823rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10824fi 10825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10826printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10827 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10828 CFLAGS="$xorg_testset_save_CFLAGS" 10829fi 10830 10831if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10832 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10833 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10834 fi 10835 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10837printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10838if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10839then : 10840 printf %s "(cached) " >&6 10841else $as_nop 10842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10843/* end confdefs.h. */ 10844int i; 10845_ACEOF 10846if ac_fn_c_try_compile "$LINENO" 10847then : 10848 xorg_cv_cc_flag_unused_command_line_argument=yes 10849else $as_nop 10850 xorg_cv_cc_flag_unused_command_line_argument=no 10851fi 10852rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10853fi 10854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10855printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10856 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10857 CFLAGS="$xorg_testset_save_CFLAGS" 10858fi 10859 10860found="no" 10861 10862 if test $found = "no" ; then 10863 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10864 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10865 fi 10866 10867 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10869 fi 10870 10871 CFLAGS="$CFLAGS -Werror" 10872 10873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10874printf %s "checking if $CC supports -Werror... " >&6; } 10875 cacheid=xorg_cv_cc_flag__Werror 10876 if eval test \${$cacheid+y} 10877then : 10878 printf %s "(cached) " >&6 10879else $as_nop 10880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10881/* end confdefs.h. */ 10882int i; 10883int 10884main (void) 10885{ 10886 10887 ; 10888 return 0; 10889} 10890_ACEOF 10891if ac_fn_c_try_link "$LINENO" 10892then : 10893 eval $cacheid=yes 10894else $as_nop 10895 eval $cacheid=no 10896fi 10897rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10898 conftest$ac_exeext conftest.$ac_ext 10899fi 10900 10901 10902 CFLAGS="$xorg_testset_save_CFLAGS" 10903 10904 eval supported=\$$cacheid 10905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10906printf "%s\n" "$supported" >&6; } 10907 if test "$supported" = "yes" ; then 10908 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10909 found="yes" 10910 fi 10911 fi 10912 10913 if test $found = "no" ; then 10914 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10915 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10916 fi 10917 10918 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10920 fi 10921 10922 CFLAGS="$CFLAGS -errwarn" 10923 10924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10925printf %s "checking if $CC supports -errwarn... " >&6; } 10926 cacheid=xorg_cv_cc_flag__errwarn 10927 if eval test \${$cacheid+y} 10928then : 10929 printf %s "(cached) " >&6 10930else $as_nop 10931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10932/* end confdefs.h. */ 10933int i; 10934int 10935main (void) 10936{ 10937 10938 ; 10939 return 0; 10940} 10941_ACEOF 10942if ac_fn_c_try_link "$LINENO" 10943then : 10944 eval $cacheid=yes 10945else $as_nop 10946 eval $cacheid=no 10947fi 10948rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10949 conftest$ac_exeext conftest.$ac_ext 10950fi 10951 10952 10953 CFLAGS="$xorg_testset_save_CFLAGS" 10954 10955 eval supported=\$$cacheid 10956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10957printf "%s\n" "$supported" >&6; } 10958 if test "$supported" = "yes" ; then 10959 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10960 found="yes" 10961 fi 10962 fi 10963 10964 10965 10966# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10967# activate it with -Werror, so we add it here explicitly. 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981xorg_testset_save_CFLAGS="$CFLAGS" 10982 10983if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10984 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10986printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10987if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10988then : 10989 printf %s "(cached) " >&6 10990else $as_nop 10991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10992/* end confdefs.h. */ 10993int i; 10994_ACEOF 10995if ac_fn_c_try_compile "$LINENO" 10996then : 10997 xorg_cv_cc_flag_unknown_warning_option=yes 10998else $as_nop 10999 xorg_cv_cc_flag_unknown_warning_option=no 11000fi 11001rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11002fi 11003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11004printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11005 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11006 CFLAGS="$xorg_testset_save_CFLAGS" 11007fi 11008 11009if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11011 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11012 fi 11013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11015printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11016if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11017then : 11018 printf %s "(cached) " >&6 11019else $as_nop 11020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11021/* end confdefs.h. */ 11022int i; 11023_ACEOF 11024if ac_fn_c_try_compile "$LINENO" 11025then : 11026 xorg_cv_cc_flag_unused_command_line_argument=yes 11027else $as_nop 11028 xorg_cv_cc_flag_unused_command_line_argument=no 11029fi 11030rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11031fi 11032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11033printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11034 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11035 CFLAGS="$xorg_testset_save_CFLAGS" 11036fi 11037 11038found="no" 11039 11040 if test $found = "no" ; then 11041 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11042 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11043 fi 11044 11045 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11047 fi 11048 11049 CFLAGS="$CFLAGS -Werror=attributes" 11050 11051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11052printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11053 cacheid=xorg_cv_cc_flag__Werror_attributes 11054 if eval test \${$cacheid+y} 11055then : 11056 printf %s "(cached) " >&6 11057else $as_nop 11058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11059/* end confdefs.h. */ 11060int i; 11061int 11062main (void) 11063{ 11064 11065 ; 11066 return 0; 11067} 11068_ACEOF 11069if ac_fn_c_try_link "$LINENO" 11070then : 11071 eval $cacheid=yes 11072else $as_nop 11073 eval $cacheid=no 11074fi 11075rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11076 conftest$ac_exeext conftest.$ac_ext 11077fi 11078 11079 11080 CFLAGS="$xorg_testset_save_CFLAGS" 11081 11082 eval supported=\$$cacheid 11083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11084printf "%s\n" "$supported" >&6; } 11085 if test "$supported" = "yes" ; then 11086 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11087 found="yes" 11088 fi 11089 fi 11090 11091 11092 11093if test "x$STRICT_COMPILE" = "xyes"; then 11094 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11095 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11096fi 11097 11098 11099 11100 11101 11102 11103cat >>confdefs.h <<_ACEOF 11104#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11105_ACEOF 11106 11107 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11108 if test "x$PVM" = "x"; then 11109 PVM="0" 11110 fi 11111 11112printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11113 11114 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11115 if test "x$PVP" = "x"; then 11116 PVP="0" 11117 fi 11118 11119printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11120 11121 11122 11123CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11124mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11125|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11126touch \$(top_srcdir)/ChangeLog; \ 11127echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11128 11129 11130 11131 11132macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11133INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11134mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11135|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11136touch \$(top_srcdir)/INSTALL; \ 11137echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11138 11139 11140 11141 11142 11143 11144case $host_os in 11145 solaris*) 11146 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11147 # check for a man page file found in later versions that use 11148 # traditional section numbers instead 11149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11150printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11151if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11152then : 11153 printf %s "(cached) " >&6 11154else $as_nop 11155 test "$cross_compiling" = yes && 11156 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11157if test -r "/usr/share/man/man7/attributes.7"; then 11158 ac_cv_file__usr_share_man_man7_attributes_7=yes 11159else 11160 ac_cv_file__usr_share_man_man7_attributes_7=no 11161fi 11162fi 11163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11164printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11165if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11166then : 11167 SYSV_MAN_SECTIONS=false 11168else $as_nop 11169 SYSV_MAN_SECTIONS=true 11170fi 11171 11172 ;; 11173 *) SYSV_MAN_SECTIONS=false ;; 11174esac 11175 11176if test x$APP_MAN_SUFFIX = x ; then 11177 APP_MAN_SUFFIX=1 11178fi 11179if test x$APP_MAN_DIR = x ; then 11180 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11181fi 11182 11183if test x$LIB_MAN_SUFFIX = x ; then 11184 LIB_MAN_SUFFIX=3 11185fi 11186if test x$LIB_MAN_DIR = x ; then 11187 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11188fi 11189 11190if test x$FILE_MAN_SUFFIX = x ; then 11191 case $SYSV_MAN_SECTIONS in 11192 true) FILE_MAN_SUFFIX=4 ;; 11193 *) FILE_MAN_SUFFIX=5 ;; 11194 esac 11195fi 11196if test x$FILE_MAN_DIR = x ; then 11197 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11198fi 11199 11200if test x$MISC_MAN_SUFFIX = x ; then 11201 case $SYSV_MAN_SECTIONS in 11202 true) MISC_MAN_SUFFIX=5 ;; 11203 *) MISC_MAN_SUFFIX=7 ;; 11204 esac 11205fi 11206if test x$MISC_MAN_DIR = x ; then 11207 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11208fi 11209 11210if test x$DRIVER_MAN_SUFFIX = x ; then 11211 case $SYSV_MAN_SECTIONS in 11212 true) DRIVER_MAN_SUFFIX=7 ;; 11213 *) DRIVER_MAN_SUFFIX=4 ;; 11214 esac 11215fi 11216if test x$DRIVER_MAN_DIR = x ; then 11217 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11218fi 11219 11220if test x$ADMIN_MAN_SUFFIX = x ; then 11221 case $SYSV_MAN_SECTIONS in 11222 true) ADMIN_MAN_SUFFIX=1m ;; 11223 *) ADMIN_MAN_SUFFIX=8 ;; 11224 esac 11225fi 11226if test x$ADMIN_MAN_DIR = x ; then 11227 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11228fi 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244XORG_MAN_PAGE="X Version 11" 11245 11246MAN_SUBSTS="\ 11247 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11248 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11249 -e 's|__xservername__|Xorg|g' \ 11250 -e 's|__xconfigfile__|xorg.conf|g' \ 11251 -e 's|__projectroot__|\$(prefix)|g' \ 11252 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11253 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11254 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11255 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11256 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11257 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11258 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11259 11260 11261 11262# Check whether --enable-silent-rules was given. 11263if test ${enable_silent_rules+y} 11264then : 11265 enableval=$enable_silent_rules; 11266fi 11267 11268case $enable_silent_rules in # ((( 11269 yes) AM_DEFAULT_VERBOSITY=0;; 11270 no) AM_DEFAULT_VERBOSITY=1;; 11271 *) AM_DEFAULT_VERBOSITY=0;; 11272esac 11273am_make=${MAKE-make} 11274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11275printf %s "checking whether $am_make supports nested variables... " >&6; } 11276if test ${am_cv_make_support_nested_variables+y} 11277then : 11278 printf %s "(cached) " >&6 11279else $as_nop 11280 if printf "%s\n" 'TRUE=$(BAR$(V)) 11281BAR0=false 11282BAR1=true 11283V=1 11284am__doit: 11285 @$(TRUE) 11286.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11287 am_cv_make_support_nested_variables=yes 11288else 11289 am_cv_make_support_nested_variables=no 11290fi 11291fi 11292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11293printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11294if test $am_cv_make_support_nested_variables = yes; then 11295 AM_V='$(V)' 11296 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11297else 11298 AM_V=$AM_DEFAULT_VERBOSITY 11299 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11300fi 11301AM_BACKSLASH='\' 11302 11303 11304 11305# Avoid stat() failures if a file has a size that doesn't fit in 32-bits 11306# Check whether --enable-largefile was given. 11307if test ${enable_largefile+y} 11308then : 11309 enableval=$enable_largefile; 11310fi 11311 11312if test "$enable_largefile" != no; then 11313 11314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 11315printf %s "checking for special C compiler options needed for large files... " >&6; } 11316if test ${ac_cv_sys_largefile_CC+y} 11317then : 11318 printf %s "(cached) " >&6 11319else $as_nop 11320 ac_cv_sys_largefile_CC=no 11321 if test "$GCC" != yes; then 11322 ac_save_CC=$CC 11323 while :; do 11324 # IRIX 6.2 and later do not support large files by default, 11325 # so use the C compiler's -n32 option if that helps. 11326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11327/* end confdefs.h. */ 11328#include <sys/types.h> 11329 /* Check that off_t can represent 2**63 - 1 correctly. 11330 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11331 since some C++ compilers masquerading as C compilers 11332 incorrectly reject 9223372036854775807. */ 11333#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 11334 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11335 && LARGE_OFF_T % 2147483647 == 1) 11336 ? 1 : -1]; 11337int 11338main (void) 11339{ 11340 11341 ; 11342 return 0; 11343} 11344_ACEOF 11345 if ac_fn_c_try_compile "$LINENO" 11346then : 11347 break 11348fi 11349rm -f core conftest.err conftest.$ac_objext conftest.beam 11350 CC="$CC -n32" 11351 if ac_fn_c_try_compile "$LINENO" 11352then : 11353 ac_cv_sys_largefile_CC=' -n32'; break 11354fi 11355rm -f core conftest.err conftest.$ac_objext conftest.beam 11356 break 11357 done 11358 CC=$ac_save_CC 11359 rm -f conftest.$ac_ext 11360 fi 11361fi 11362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 11363printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } 11364 if test "$ac_cv_sys_largefile_CC" != no; then 11365 CC=$CC$ac_cv_sys_largefile_CC 11366 fi 11367 11368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 11369printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 11370if test ${ac_cv_sys_file_offset_bits+y} 11371then : 11372 printf %s "(cached) " >&6 11373else $as_nop 11374 while :; do 11375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11376/* end confdefs.h. */ 11377#include <sys/types.h> 11378 /* Check that off_t can represent 2**63 - 1 correctly. 11379 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11380 since some C++ compilers masquerading as C compilers 11381 incorrectly reject 9223372036854775807. */ 11382#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 11383 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11384 && LARGE_OFF_T % 2147483647 == 1) 11385 ? 1 : -1]; 11386int 11387main (void) 11388{ 11389 11390 ; 11391 return 0; 11392} 11393_ACEOF 11394if ac_fn_c_try_compile "$LINENO" 11395then : 11396 ac_cv_sys_file_offset_bits=no; break 11397fi 11398rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11400/* end confdefs.h. */ 11401#define _FILE_OFFSET_BITS 64 11402#include <sys/types.h> 11403 /* Check that off_t can represent 2**63 - 1 correctly. 11404 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11405 since some C++ compilers masquerading as C compilers 11406 incorrectly reject 9223372036854775807. */ 11407#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 11408 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11409 && LARGE_OFF_T % 2147483647 == 1) 11410 ? 1 : -1]; 11411int 11412main (void) 11413{ 11414 11415 ; 11416 return 0; 11417} 11418_ACEOF 11419if ac_fn_c_try_compile "$LINENO" 11420then : 11421 ac_cv_sys_file_offset_bits=64; break 11422fi 11423rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11424 ac_cv_sys_file_offset_bits=unknown 11425 break 11426done 11427fi 11428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 11429printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } 11430case $ac_cv_sys_file_offset_bits in #( 11431 no | unknown) ;; 11432 *) 11433printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h 11434;; 11435esac 11436rm -rf conftest* 11437 if test $ac_cv_sys_file_offset_bits = unknown; then 11438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 11439printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } 11440if test ${ac_cv_sys_large_files+y} 11441then : 11442 printf %s "(cached) " >&6 11443else $as_nop 11444 while :; do 11445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11446/* end confdefs.h. */ 11447#include <sys/types.h> 11448 /* Check that off_t can represent 2**63 - 1 correctly. 11449 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11450 since some C++ compilers masquerading as C compilers 11451 incorrectly reject 9223372036854775807. */ 11452#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 11453 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11454 && LARGE_OFF_T % 2147483647 == 1) 11455 ? 1 : -1]; 11456int 11457main (void) 11458{ 11459 11460 ; 11461 return 0; 11462} 11463_ACEOF 11464if ac_fn_c_try_compile "$LINENO" 11465then : 11466 ac_cv_sys_large_files=no; break 11467fi 11468rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11470/* end confdefs.h. */ 11471#define _LARGE_FILES 1 11472#include <sys/types.h> 11473 /* Check that off_t can represent 2**63 - 1 correctly. 11474 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11475 since some C++ compilers masquerading as C compilers 11476 incorrectly reject 9223372036854775807. */ 11477#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 11478 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11479 && LARGE_OFF_T % 2147483647 == 1) 11480 ? 1 : -1]; 11481int 11482main (void) 11483{ 11484 11485 ; 11486 return 0; 11487} 11488_ACEOF 11489if ac_fn_c_try_compile "$LINENO" 11490then : 11491 ac_cv_sys_large_files=1; break 11492fi 11493rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11494 ac_cv_sys_large_files=unknown 11495 break 11496done 11497fi 11498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 11499printf "%s\n" "$ac_cv_sys_large_files" >&6; } 11500case $ac_cv_sys_large_files in #( 11501 no | unknown) ;; 11502 *) 11503printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h 11504;; 11505esac 11506rm -rf conftest* 11507 fi 11508fi 11509 11510 11511# Checks for pkg-config packages 11512 11513pkg_failed=no 11514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XPROTO" >&5 11515printf %s "checking for XPROTO... " >&6; } 11516 11517if test -n "$XPROTO_CFLAGS"; then 11518 pkg_cv_XPROTO_CFLAGS="$XPROTO_CFLAGS" 11519 elif test -n "$PKG_CONFIG"; then 11520 if test -n "$PKG_CONFIG" && \ 11521 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17\""; } >&5 11522 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17") 2>&5 11523 ac_status=$? 11524 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11525 test $ac_status = 0; }; then 11526 pkg_cv_XPROTO_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17" 2>/dev/null` 11527 test "x$?" != "x0" && pkg_failed=yes 11528else 11529 pkg_failed=yes 11530fi 11531 else 11532 pkg_failed=untried 11533fi 11534if test -n "$XPROTO_LIBS"; then 11535 pkg_cv_XPROTO_LIBS="$XPROTO_LIBS" 11536 elif test -n "$PKG_CONFIG"; then 11537 if test -n "$PKG_CONFIG" && \ 11538 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17\""; } >&5 11539 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17") 2>&5 11540 ac_status=$? 11541 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11542 test $ac_status = 0; }; then 11543 pkg_cv_XPROTO_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17" 2>/dev/null` 11544 test "x$?" != "x0" && pkg_failed=yes 11545else 11546 pkg_failed=yes 11547fi 11548 else 11549 pkg_failed=untried 11550fi 11551 11552 11553 11554if test $pkg_failed = yes; then 11555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11556printf "%s\n" "no" >&6; } 11557 11558if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11559 _pkg_short_errors_supported=yes 11560else 11561 _pkg_short_errors_supported=no 11562fi 11563 if test $_pkg_short_errors_supported = yes; then 11564 XPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.17" 2>&1` 11565 else 11566 XPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.17" 2>&1` 11567 fi 11568 # Put the nasty error message in config.log where it belongs 11569 echo "$XPROTO_PKG_ERRORS" >&5 11570 11571 as_fn_error $? "Package requirements (xproto >= 7.0.17) were not met: 11572 11573$XPROTO_PKG_ERRORS 11574 11575Consider adjusting the PKG_CONFIG_PATH environment variable if you 11576installed software in a non-standard prefix. 11577 11578Alternatively, you may set the environment variables XPROTO_CFLAGS 11579and XPROTO_LIBS to avoid the need to call pkg-config. 11580See the pkg-config man page for more details." "$LINENO" 5 11581elif test $pkg_failed = untried; then 11582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11583printf "%s\n" "no" >&6; } 11584 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11585printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11586as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11587is in your PATH or set the PKG_CONFIG environment variable to the full 11588path to pkg-config. 11589 11590Alternatively, you may set the environment variables XPROTO_CFLAGS 11591and XPROTO_LIBS to avoid the need to call pkg-config. 11592See the pkg-config man page for more details. 11593 11594To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11595See \`config.log' for more details" "$LINENO" 5; } 11596else 11597 XPROTO_CFLAGS=$pkg_cv_XPROTO_CFLAGS 11598 XPROTO_LIBS=$pkg_cv_XPROTO_LIBS 11599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11600printf "%s\n" "yes" >&6; } 11601 11602fi 11603 11604# Checks for non-standard functions and fallback to libbsd if we can 11605cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11606/* end confdefs.h. */ 11607 11608/* Override any GCC internal prototype to avoid an error. 11609 Use char because int might match the return type of a GCC 11610 builtin and then its argument prototype would still apply. */ 11611char strlcpy (); 11612int 11613main (void) 11614{ 11615return strlcpy (); 11616 ; 11617 return 0; 11618} 11619_ACEOF 11620if ac_fn_c_try_link "$LINENO" 11621then : 11622 TRY_LIBBSD="no" 11623else $as_nop 11624 TRY_LIBBSD="yes" 11625fi 11626rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11627 conftest$ac_exeext conftest.$ac_ext 11628if test "x$TRY_LIBBSD" = "xyes" 11629then : 11630 11631pkg_failed=no 11632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBBSD" >&5 11633printf %s "checking for LIBBSD... " >&6; } 11634 11635if test -n "$LIBBSD_CFLAGS"; then 11636 pkg_cv_LIBBSD_CFLAGS="$LIBBSD_CFLAGS" 11637 elif test -n "$PKG_CONFIG"; then 11638 if test -n "$PKG_CONFIG" && \ 11639 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbsd-overlay\""; } >&5 11640 ($PKG_CONFIG --exists --print-errors "libbsd-overlay") 2>&5 11641 ac_status=$? 11642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11643 test $ac_status = 0; }; then 11644 pkg_cv_LIBBSD_CFLAGS=`$PKG_CONFIG --cflags "libbsd-overlay" 2>/dev/null` 11645 test "x$?" != "x0" && pkg_failed=yes 11646else 11647 pkg_failed=yes 11648fi 11649 else 11650 pkg_failed=untried 11651fi 11652if test -n "$LIBBSD_LIBS"; then 11653 pkg_cv_LIBBSD_LIBS="$LIBBSD_LIBS" 11654 elif test -n "$PKG_CONFIG"; then 11655 if test -n "$PKG_CONFIG" && \ 11656 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbsd-overlay\""; } >&5 11657 ($PKG_CONFIG --exists --print-errors "libbsd-overlay") 2>&5 11658 ac_status=$? 11659 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11660 test $ac_status = 0; }; then 11661 pkg_cv_LIBBSD_LIBS=`$PKG_CONFIG --libs "libbsd-overlay" 2>/dev/null` 11662 test "x$?" != "x0" && pkg_failed=yes 11663else 11664 pkg_failed=yes 11665fi 11666 else 11667 pkg_failed=untried 11668fi 11669 11670 11671 11672if test $pkg_failed = yes; then 11673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11674printf "%s\n" "no" >&6; } 11675 11676if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11677 _pkg_short_errors_supported=yes 11678else 11679 _pkg_short_errors_supported=no 11680fi 11681 if test $_pkg_short_errors_supported = yes; then 11682 LIBBSD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libbsd-overlay" 2>&1` 11683 else 11684 LIBBSD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libbsd-overlay" 2>&1` 11685 fi 11686 # Put the nasty error message in config.log where it belongs 11687 echo "$LIBBSD_PKG_ERRORS" >&5 11688 11689 : 11690elif test $pkg_failed = untried; then 11691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11692printf "%s\n" "no" >&6; } 11693 : 11694else 11695 LIBBSD_CFLAGS=$pkg_cv_LIBBSD_CFLAGS 11696 LIBBSD_LIBS=$pkg_cv_LIBBSD_LIBS 11697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11698printf "%s\n" "yes" >&6; } 11699 CFLAGS="$CFLAGS $LIBBSD_CFLAGS" ; LIBS="$LIBS $LIBBSD_LIBS" 11700fi 11701fi 11702ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 11703if test "x$ac_cv_func_strlcat" = xyes 11704then : 11705 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h 11706 11707fi 11708ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 11709if test "x$ac_cv_func_strlcpy" = xyes 11710then : 11711 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 11712 11713fi 11714 11715 11716ac_config_files="$ac_config_files Makefile" 11717 11718cat >confcache <<\_ACEOF 11719# This file is a shell script that caches the results of configure 11720# tests run on this system so they can be shared between configure 11721# scripts and configure runs, see configure's option --config-cache. 11722# It is not useful on other systems. If it contains results you don't 11723# want to keep, you may remove or edit it. 11724# 11725# config.status only pays attention to the cache file if you give it 11726# the --recheck option to rerun configure. 11727# 11728# `ac_cv_env_foo' variables (set or unset) will be overridden when 11729# loading this file, other *unset* `ac_cv_foo' will be assigned the 11730# following values. 11731 11732_ACEOF 11733 11734# The following way of writing the cache mishandles newlines in values, 11735# but we know of no workaround that is simple, portable, and efficient. 11736# So, we kill variables containing newlines. 11737# Ultrix sh set writes to stderr and can't be redirected directly, 11738# and sets the high bit in the cache file unless we assign to the vars. 11739( 11740 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11741 eval ac_val=\$$ac_var 11742 case $ac_val in #( 11743 *${as_nl}*) 11744 case $ac_var in #( 11745 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11746printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11747 esac 11748 case $ac_var in #( 11749 _ | IFS | as_nl) ;; #( 11750 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11751 *) { eval $ac_var=; unset $ac_var;} ;; 11752 esac ;; 11753 esac 11754 done 11755 11756 (set) 2>&1 | 11757 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11758 *${as_nl}ac_space=\ *) 11759 # `set' does not quote correctly, so add quotes: double-quote 11760 # substitution turns \\\\ into \\, and sed turns \\ into \. 11761 sed -n \ 11762 "s/'/'\\\\''/g; 11763 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11764 ;; #( 11765 *) 11766 # `set' quotes correctly as required by POSIX, so do not add quotes. 11767 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11768 ;; 11769 esac | 11770 sort 11771) | 11772 sed ' 11773 /^ac_cv_env_/b end 11774 t clear 11775 :clear 11776 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11777 t end 11778 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11779 :end' >>confcache 11780if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11781 if test -w "$cache_file"; then 11782 if test "x$cache_file" != "x/dev/null"; then 11783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11784printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11785 if test ! -f "$cache_file" || test -h "$cache_file"; then 11786 cat confcache >"$cache_file" 11787 else 11788 case $cache_file in #( 11789 */* | ?:*) 11790 mv -f confcache "$cache_file"$$ && 11791 mv -f "$cache_file"$$ "$cache_file" ;; #( 11792 *) 11793 mv -f confcache "$cache_file" ;; 11794 esac 11795 fi 11796 fi 11797 else 11798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11799printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11800 fi 11801fi 11802rm -f confcache 11803 11804test "x$prefix" = xNONE && prefix=$ac_default_prefix 11805# Let make expand exec_prefix. 11806test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11807 11808DEFS=-DHAVE_CONFIG_H 11809 11810ac_libobjs= 11811ac_ltlibobjs= 11812U= 11813for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11814 # 1. Remove the extension, and $U if already installed. 11815 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11816 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11817 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11818 # will be set to the directory where LIBOBJS objects are built. 11819 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11820 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11821done 11822LIBOBJS=$ac_libobjs 11823 11824LTLIBOBJS=$ac_ltlibobjs 11825 11826 11827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11828printf %s "checking that generated files are newer than configure... " >&6; } 11829 if test -n "$am_sleep_pid"; then 11830 # Hide warnings about reused PIDs. 11831 wait $am_sleep_pid 2>/dev/null 11832 fi 11833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11834printf "%s\n" "done" >&6; } 11835if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11836 as_fn_error $? "conditional \"AMDEP\" was never defined. 11837Usually this means the macro was only invoked conditionally." "$LINENO" 5 11838fi 11839if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11840 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11841Usually this means the macro was only invoked conditionally." "$LINENO" 5 11842fi 11843 if test -n "$EXEEXT"; then 11844 am__EXEEXT_TRUE= 11845 am__EXEEXT_FALSE='#' 11846else 11847 am__EXEEXT_TRUE='#' 11848 am__EXEEXT_FALSE= 11849fi 11850 11851 11852: "${CONFIG_STATUS=./config.status}" 11853ac_write_fail=0 11854ac_clean_files_save=$ac_clean_files 11855ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11857printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11858as_write_fail=0 11859cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11860#! $SHELL 11861# Generated by $as_me. 11862# Run this file to recreate the current configuration. 11863# Compiler output produced by configure, useful for debugging 11864# configure, is in config.log if it exists. 11865 11866debug=false 11867ac_cs_recheck=false 11868ac_cs_silent=false 11869 11870SHELL=\${CONFIG_SHELL-$SHELL} 11871export SHELL 11872_ASEOF 11873cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11874## -------------------- ## 11875## M4sh Initialization. ## 11876## -------------------- ## 11877 11878# Be more Bourne compatible 11879DUALCASE=1; export DUALCASE # for MKS sh 11880as_nop=: 11881if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11882then : 11883 emulate sh 11884 NULLCMD=: 11885 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11886 # is contrary to our usage. Disable this feature. 11887 alias -g '${1+"$@"}'='"$@"' 11888 setopt NO_GLOB_SUBST 11889else $as_nop 11890 case `(set -o) 2>/dev/null` in #( 11891 *posix*) : 11892 set -o posix ;; #( 11893 *) : 11894 ;; 11895esac 11896fi 11897 11898 11899 11900# Reset variables that may have inherited troublesome values from 11901# the environment. 11902 11903# IFS needs to be set, to space, tab, and newline, in precisely that order. 11904# (If _AS_PATH_WALK were called with IFS unset, it would have the 11905# side effect of setting IFS to empty, thus disabling word splitting.) 11906# Quoting is to prevent editors from complaining about space-tab. 11907as_nl=' 11908' 11909export as_nl 11910IFS=" "" $as_nl" 11911 11912PS1='$ ' 11913PS2='> ' 11914PS4='+ ' 11915 11916# Ensure predictable behavior from utilities with locale-dependent output. 11917LC_ALL=C 11918export LC_ALL 11919LANGUAGE=C 11920export LANGUAGE 11921 11922# We cannot yet rely on "unset" to work, but we need these variables 11923# to be unset--not just set to an empty or harmless value--now, to 11924# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 11925# also avoids known problems related to "unset" and subshell syntax 11926# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 11927for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 11928do eval test \${$as_var+y} \ 11929 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11930done 11931 11932# Ensure that fds 0, 1, and 2 are open. 11933if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 11934if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 11935if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 11936 11937# The user is always right. 11938if ${PATH_SEPARATOR+false} :; then 11939 PATH_SEPARATOR=: 11940 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11941 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11942 PATH_SEPARATOR=';' 11943 } 11944fi 11945 11946 11947# Find who we are. Look in the path if we contain no directory separator. 11948as_myself= 11949case $0 in #(( 11950 *[\\/]* ) as_myself=$0 ;; 11951 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11952for as_dir in $PATH 11953do 11954 IFS=$as_save_IFS 11955 case $as_dir in #((( 11956 '') as_dir=./ ;; 11957 */) ;; 11958 *) as_dir=$as_dir/ ;; 11959 esac 11960 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 11961 done 11962IFS=$as_save_IFS 11963 11964 ;; 11965esac 11966# We did not find ourselves, most probably we were run as `sh COMMAND' 11967# in which case we are not to be found in the path. 11968if test "x$as_myself" = x; then 11969 as_myself=$0 11970fi 11971if test ! -f "$as_myself"; then 11972 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11973 exit 1 11974fi 11975 11976 11977 11978# as_fn_error STATUS ERROR [LINENO LOG_FD] 11979# ---------------------------------------- 11980# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11981# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11982# script with STATUS, using 1 if that was 0. 11983as_fn_error () 11984{ 11985 as_status=$1; test $as_status -eq 0 && as_status=1 11986 if test "$4"; then 11987 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11988 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11989 fi 11990 printf "%s\n" "$as_me: error: $2" >&2 11991 as_fn_exit $as_status 11992} # as_fn_error 11993 11994 11995 11996# as_fn_set_status STATUS 11997# ----------------------- 11998# Set $? to STATUS, without forking. 11999as_fn_set_status () 12000{ 12001 return $1 12002} # as_fn_set_status 12003 12004# as_fn_exit STATUS 12005# ----------------- 12006# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12007as_fn_exit () 12008{ 12009 set +e 12010 as_fn_set_status $1 12011 exit $1 12012} # as_fn_exit 12013 12014# as_fn_unset VAR 12015# --------------- 12016# Portably unset VAR. 12017as_fn_unset () 12018{ 12019 { eval $1=; unset $1;} 12020} 12021as_unset=as_fn_unset 12022 12023# as_fn_append VAR VALUE 12024# ---------------------- 12025# Append the text in VALUE to the end of the definition contained in VAR. Take 12026# advantage of any shell optimizations that allow amortized linear growth over 12027# repeated appends, instead of the typical quadratic growth present in naive 12028# implementations. 12029if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 12030then : 12031 eval 'as_fn_append () 12032 { 12033 eval $1+=\$2 12034 }' 12035else $as_nop 12036 as_fn_append () 12037 { 12038 eval $1=\$$1\$2 12039 } 12040fi # as_fn_append 12041 12042# as_fn_arith ARG... 12043# ------------------ 12044# Perform arithmetic evaluation on the ARGs, and store the result in the 12045# global $as_val. Take advantage of shells that can avoid forks. The arguments 12046# must be portable across $(()) and expr. 12047if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 12048then : 12049 eval 'as_fn_arith () 12050 { 12051 as_val=$(( $* )) 12052 }' 12053else $as_nop 12054 as_fn_arith () 12055 { 12056 as_val=`expr "$@" || test $? -eq 1` 12057 } 12058fi # as_fn_arith 12059 12060 12061if expr a : '\(a\)' >/dev/null 2>&1 && 12062 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12063 as_expr=expr 12064else 12065 as_expr=false 12066fi 12067 12068if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12069 as_basename=basename 12070else 12071 as_basename=false 12072fi 12073 12074if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12075 as_dirname=dirname 12076else 12077 as_dirname=false 12078fi 12079 12080as_me=`$as_basename -- "$0" || 12081$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12082 X"$0" : 'X\(//\)$' \| \ 12083 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12084printf "%s\n" X/"$0" | 12085 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12086 s//\1/ 12087 q 12088 } 12089 /^X\/\(\/\/\)$/{ 12090 s//\1/ 12091 q 12092 } 12093 /^X\/\(\/\).*/{ 12094 s//\1/ 12095 q 12096 } 12097 s/.*/./; q'` 12098 12099# Avoid depending upon Character Ranges. 12100as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12101as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12102as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12103as_cr_digits='0123456789' 12104as_cr_alnum=$as_cr_Letters$as_cr_digits 12105 12106 12107# Determine whether it's possible to make 'echo' print without a newline. 12108# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 12109# for compatibility with existing Makefiles. 12110ECHO_C= ECHO_N= ECHO_T= 12111case `echo -n x` in #((((( 12112-n*) 12113 case `echo 'xy\c'` in 12114 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12115 xy) ECHO_C='\c';; 12116 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12117 ECHO_T=' ';; 12118 esac;; 12119*) 12120 ECHO_N='-n';; 12121esac 12122 12123# For backward compatibility with old third-party macros, we provide 12124# the shell variables $as_echo and $as_echo_n. New code should use 12125# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12126as_echo='printf %s\n' 12127as_echo_n='printf %s' 12128 12129rm -f conf$$ conf$$.exe conf$$.file 12130if test -d conf$$.dir; then 12131 rm -f conf$$.dir/conf$$.file 12132else 12133 rm -f conf$$.dir 12134 mkdir conf$$.dir 2>/dev/null 12135fi 12136if (echo >conf$$.file) 2>/dev/null; then 12137 if ln -s conf$$.file conf$$ 2>/dev/null; then 12138 as_ln_s='ln -s' 12139 # ... but there are two gotchas: 12140 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12141 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12142 # In both cases, we have to default to `cp -pR'. 12143 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12144 as_ln_s='cp -pR' 12145 elif ln conf$$.file conf$$ 2>/dev/null; then 12146 as_ln_s=ln 12147 else 12148 as_ln_s='cp -pR' 12149 fi 12150else 12151 as_ln_s='cp -pR' 12152fi 12153rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12154rmdir conf$$.dir 2>/dev/null 12155 12156 12157# as_fn_mkdir_p 12158# ------------- 12159# Create "$as_dir" as a directory, including parents if necessary. 12160as_fn_mkdir_p () 12161{ 12162 12163 case $as_dir in #( 12164 -*) as_dir=./$as_dir;; 12165 esac 12166 test -d "$as_dir" || eval $as_mkdir_p || { 12167 as_dirs= 12168 while :; do 12169 case $as_dir in #( 12170 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12171 *) as_qdir=$as_dir;; 12172 esac 12173 as_dirs="'$as_qdir' $as_dirs" 12174 as_dir=`$as_dirname -- "$as_dir" || 12175$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12176 X"$as_dir" : 'X\(//\)[^/]' \| \ 12177 X"$as_dir" : 'X\(//\)$' \| \ 12178 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12179printf "%s\n" X"$as_dir" | 12180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12181 s//\1/ 12182 q 12183 } 12184 /^X\(\/\/\)[^/].*/{ 12185 s//\1/ 12186 q 12187 } 12188 /^X\(\/\/\)$/{ 12189 s//\1/ 12190 q 12191 } 12192 /^X\(\/\).*/{ 12193 s//\1/ 12194 q 12195 } 12196 s/.*/./; q'` 12197 test -d "$as_dir" && break 12198 done 12199 test -z "$as_dirs" || eval "mkdir $as_dirs" 12200 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12201 12202 12203} # as_fn_mkdir_p 12204if mkdir -p . 2>/dev/null; then 12205 as_mkdir_p='mkdir -p "$as_dir"' 12206else 12207 test -d ./-p && rmdir ./-p 12208 as_mkdir_p=false 12209fi 12210 12211 12212# as_fn_executable_p FILE 12213# ----------------------- 12214# Test if FILE is an executable regular file. 12215as_fn_executable_p () 12216{ 12217 test -f "$1" && test -x "$1" 12218} # as_fn_executable_p 12219as_test_x='test -x' 12220as_executable_p=as_fn_executable_p 12221 12222# Sed expression to map a string onto a valid CPP name. 12223as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12224 12225# Sed expression to map a string onto a valid variable name. 12226as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12227 12228 12229exec 6>&1 12230## ----------------------------------- ## 12231## Main body of $CONFIG_STATUS script. ## 12232## ----------------------------------- ## 12233_ASEOF 12234test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12235 12236cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12237# Save the log message, to keep $0 and so on meaningful, and to 12238# report actual input values of CONFIG_FILES etc. instead of their 12239# values after options handling. 12240ac_log=" 12241This file was extended by lndir $as_me 1.0.4, which was 12242generated by GNU Autoconf 2.71. Invocation command line was 12243 12244 CONFIG_FILES = $CONFIG_FILES 12245 CONFIG_HEADERS = $CONFIG_HEADERS 12246 CONFIG_LINKS = $CONFIG_LINKS 12247 CONFIG_COMMANDS = $CONFIG_COMMANDS 12248 $ $0 $@ 12249 12250on `(hostname || uname -n) 2>/dev/null | sed 1q` 12251" 12252 12253_ACEOF 12254 12255case $ac_config_files in *" 12256"*) set x $ac_config_files; shift; ac_config_files=$*;; 12257esac 12258 12259case $ac_config_headers in *" 12260"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12261esac 12262 12263 12264cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12265# Files that config.status was made for. 12266config_files="$ac_config_files" 12267config_headers="$ac_config_headers" 12268config_commands="$ac_config_commands" 12269 12270_ACEOF 12271 12272cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12273ac_cs_usage="\ 12274\`$as_me' instantiates files and other configuration actions 12275from templates according to the current configuration. Unless the files 12276and actions are specified as TAGs, all are instantiated by default. 12277 12278Usage: $0 [OPTION]... [TAG]... 12279 12280 -h, --help print this help, then exit 12281 -V, --version print version number and configuration settings, then exit 12282 --config print configuration, then exit 12283 -q, --quiet, --silent 12284 do not print progress messages 12285 -d, --debug don't remove temporary files 12286 --recheck update $as_me by reconfiguring in the same conditions 12287 --file=FILE[:TEMPLATE] 12288 instantiate the configuration file FILE 12289 --header=FILE[:TEMPLATE] 12290 instantiate the configuration header FILE 12291 12292Configuration files: 12293$config_files 12294 12295Configuration headers: 12296$config_headers 12297 12298Configuration commands: 12299$config_commands 12300 12301Report bugs to <https://gitlab.freedesktop.org/xorg/util/lndir/-/issues>." 12302 12303_ACEOF 12304ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12305ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12306cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12307ac_cs_config='$ac_cs_config_escaped' 12308ac_cs_version="\\ 12309lndir config.status 1.0.4 12310configured by $0, generated by GNU Autoconf 2.71, 12311 with options \\"\$ac_cs_config\\" 12312 12313Copyright (C) 2021 Free Software Foundation, Inc. 12314This config.status script is free software; the Free Software Foundation 12315gives unlimited permission to copy, distribute and modify it." 12316 12317ac_pwd='$ac_pwd' 12318srcdir='$srcdir' 12319INSTALL='$INSTALL' 12320MKDIR_P='$MKDIR_P' 12321AWK='$AWK' 12322test -n "\$AWK" || AWK=awk 12323_ACEOF 12324 12325cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12326# The default lists apply if the user does not specify any file. 12327ac_need_defaults=: 12328while test $# != 0 12329do 12330 case $1 in 12331 --*=?*) 12332 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12333 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12334 ac_shift=: 12335 ;; 12336 --*=) 12337 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12338 ac_optarg= 12339 ac_shift=: 12340 ;; 12341 *) 12342 ac_option=$1 12343 ac_optarg=$2 12344 ac_shift=shift 12345 ;; 12346 esac 12347 12348 case $ac_option in 12349 # Handling of the options. 12350 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12351 ac_cs_recheck=: ;; 12352 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12353 printf "%s\n" "$ac_cs_version"; exit ;; 12354 --config | --confi | --conf | --con | --co | --c ) 12355 printf "%s\n" "$ac_cs_config"; exit ;; 12356 --debug | --debu | --deb | --de | --d | -d ) 12357 debug=: ;; 12358 --file | --fil | --fi | --f ) 12359 $ac_shift 12360 case $ac_optarg in 12361 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12362 '') as_fn_error $? "missing file argument" ;; 12363 esac 12364 as_fn_append CONFIG_FILES " '$ac_optarg'" 12365 ac_need_defaults=false;; 12366 --header | --heade | --head | --hea ) 12367 $ac_shift 12368 case $ac_optarg in 12369 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12370 esac 12371 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12372 ac_need_defaults=false;; 12373 --he | --h) 12374 # Conflict between --help and --header 12375 as_fn_error $? "ambiguous option: \`$1' 12376Try \`$0 --help' for more information.";; 12377 --help | --hel | -h ) 12378 printf "%s\n" "$ac_cs_usage"; exit ;; 12379 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12380 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12381 ac_cs_silent=: ;; 12382 12383 # This is an error. 12384 -*) as_fn_error $? "unrecognized option: \`$1' 12385Try \`$0 --help' for more information." ;; 12386 12387 *) as_fn_append ac_config_targets " $1" 12388 ac_need_defaults=false ;; 12389 12390 esac 12391 shift 12392done 12393 12394ac_configure_extra_args= 12395 12396if $ac_cs_silent; then 12397 exec 6>/dev/null 12398 ac_configure_extra_args="$ac_configure_extra_args --silent" 12399fi 12400 12401_ACEOF 12402cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12403if \$ac_cs_recheck; then 12404 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12405 shift 12406 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12407 CONFIG_SHELL='$SHELL' 12408 export CONFIG_SHELL 12409 exec "\$@" 12410fi 12411 12412_ACEOF 12413cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12414exec 5>>config.log 12415{ 12416 echo 12417 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12418## Running $as_me. ## 12419_ASBOX 12420 printf "%s\n" "$ac_log" 12421} >&5 12422 12423_ACEOF 12424cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12425# 12426# INIT-COMMANDS 12427# 12428AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12429 12430_ACEOF 12431 12432cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12433 12434# Handling of arguments. 12435for ac_config_target in $ac_config_targets 12436do 12437 case $ac_config_target in 12438 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12439 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12440 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12441 12442 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12443 esac 12444done 12445 12446 12447# If the user did not use the arguments to specify the items to instantiate, 12448# then the envvar interface is used. Set only those that are not. 12449# We use the long form for the default assignment because of an extremely 12450# bizarre bug on SunOS 4.1.3. 12451if $ac_need_defaults; then 12452 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12453 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12454 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12455fi 12456 12457# Have a temporary directory for convenience. Make it in the build tree 12458# simply because there is no reason against having it here, and in addition, 12459# creating and moving files from /tmp can sometimes cause problems. 12460# Hook for its removal unless debugging. 12461# Note that there is a small window in which the directory will not be cleaned: 12462# after its creation but before its name has been assigned to `$tmp'. 12463$debug || 12464{ 12465 tmp= ac_tmp= 12466 trap 'exit_status=$? 12467 : "${ac_tmp:=$tmp}" 12468 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12469' 0 12470 trap 'as_fn_exit 1' 1 2 13 15 12471} 12472# Create a (secure) tmp directory for tmp files. 12473 12474{ 12475 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12476 test -d "$tmp" 12477} || 12478{ 12479 tmp=./conf$$-$RANDOM 12480 (umask 077 && mkdir "$tmp") 12481} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12482ac_tmp=$tmp 12483 12484# Set up the scripts for CONFIG_FILES section. 12485# No need to generate them if there are no CONFIG_FILES. 12486# This happens for instance with `./config.status config.h'. 12487if test -n "$CONFIG_FILES"; then 12488 12489 12490ac_cr=`echo X | tr X '\015'` 12491# On cygwin, bash can eat \r inside `` if the user requested igncr. 12492# But we know of no other shell where ac_cr would be empty at this 12493# point, so we can use a bashism as a fallback. 12494if test "x$ac_cr" = x; then 12495 eval ac_cr=\$\'\\r\' 12496fi 12497ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12498if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12499 ac_cs_awk_cr='\\r' 12500else 12501 ac_cs_awk_cr=$ac_cr 12502fi 12503 12504echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12505_ACEOF 12506 12507 12508{ 12509 echo "cat >conf$$subs.awk <<_ACEOF" && 12510 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12511 echo "_ACEOF" 12512} >conf$$subs.sh || 12513 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12514ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12515ac_delim='%!_!# ' 12516for ac_last_try in false false false false false :; do 12517 . ./conf$$subs.sh || 12518 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12519 12520 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12521 if test $ac_delim_n = $ac_delim_num; then 12522 break 12523 elif $ac_last_try; then 12524 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12525 else 12526 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12527 fi 12528done 12529rm -f conf$$subs.sh 12530 12531cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12532cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12533_ACEOF 12534sed -n ' 12535h 12536s/^/S["/; s/!.*/"]=/ 12537p 12538g 12539s/^[^!]*!// 12540:repl 12541t repl 12542s/'"$ac_delim"'$// 12543t delim 12544:nl 12545h 12546s/\(.\{148\}\)..*/\1/ 12547t more1 12548s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12549p 12550n 12551b repl 12552:more1 12553s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12554p 12555g 12556s/.\{148\}// 12557t nl 12558:delim 12559h 12560s/\(.\{148\}\)..*/\1/ 12561t more2 12562s/["\\]/\\&/g; s/^/"/; s/$/"/ 12563p 12564b 12565:more2 12566s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12567p 12568g 12569s/.\{148\}// 12570t delim 12571' <conf$$subs.awk | sed ' 12572/^[^""]/{ 12573 N 12574 s/\n// 12575} 12576' >>$CONFIG_STATUS || ac_write_fail=1 12577rm -f conf$$subs.awk 12578cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12579_ACAWK 12580cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12581 for (key in S) S_is_set[key] = 1 12582 FS = "" 12583 12584} 12585{ 12586 line = $ 0 12587 nfields = split(line, field, "@") 12588 substed = 0 12589 len = length(field[1]) 12590 for (i = 2; i < nfields; i++) { 12591 key = field[i] 12592 keylen = length(key) 12593 if (S_is_set[key]) { 12594 value = S[key] 12595 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12596 len += length(value) + length(field[++i]) 12597 substed = 1 12598 } else 12599 len += 1 + keylen 12600 } 12601 12602 print line 12603} 12604 12605_ACAWK 12606_ACEOF 12607cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12608if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12609 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12610else 12611 cat 12612fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12613 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12614_ACEOF 12615 12616# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12617# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12618# trailing colons and then remove the whole line if VPATH becomes empty 12619# (actually we leave an empty line to preserve line numbers). 12620if test "x$srcdir" = x.; then 12621 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12622h 12623s/// 12624s/^/:/ 12625s/[ ]*$/:/ 12626s/:\$(srcdir):/:/g 12627s/:\${srcdir}:/:/g 12628s/:@srcdir@:/:/g 12629s/^:*// 12630s/:*$// 12631x 12632s/\(=[ ]*\).*/\1/ 12633G 12634s/\n// 12635s/^[^=]*=[ ]*$// 12636}' 12637fi 12638 12639cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12640fi # test -n "$CONFIG_FILES" 12641 12642# Set up the scripts for CONFIG_HEADERS section. 12643# No need to generate them if there are no CONFIG_HEADERS. 12644# This happens for instance with `./config.status Makefile'. 12645if test -n "$CONFIG_HEADERS"; then 12646cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12647BEGIN { 12648_ACEOF 12649 12650# Transform confdefs.h into an awk script `defines.awk', embedded as 12651# here-document in config.status, that substitutes the proper values into 12652# config.h.in to produce config.h. 12653 12654# Create a delimiter string that does not exist in confdefs.h, to ease 12655# handling of long lines. 12656ac_delim='%!_!# ' 12657for ac_last_try in false false :; do 12658 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12659 if test -z "$ac_tt"; then 12660 break 12661 elif $ac_last_try; then 12662 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12663 else 12664 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12665 fi 12666done 12667 12668# For the awk script, D is an array of macro values keyed by name, 12669# likewise P contains macro parameters if any. Preserve backslash 12670# newline sequences. 12671 12672ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12673sed -n ' 12674s/.\{148\}/&'"$ac_delim"'/g 12675t rset 12676:rset 12677s/^[ ]*#[ ]*define[ ][ ]*/ / 12678t def 12679d 12680:def 12681s/\\$// 12682t bsnl 12683s/["\\]/\\&/g 12684s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12685D["\1"]=" \3"/p 12686s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12687d 12688:bsnl 12689s/["\\]/\\&/g 12690s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12691D["\1"]=" \3\\\\\\n"\\/p 12692t cont 12693s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12694t cont 12695d 12696:cont 12697n 12698s/.\{148\}/&'"$ac_delim"'/g 12699t clear 12700:clear 12701s/\\$// 12702t bsnlc 12703s/["\\]/\\&/g; s/^/"/; s/$/"/p 12704d 12705:bsnlc 12706s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12707b cont 12708' <confdefs.h | sed ' 12709s/'"$ac_delim"'/"\\\ 12710"/g' >>$CONFIG_STATUS || ac_write_fail=1 12711 12712cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12713 for (key in D) D_is_set[key] = 1 12714 FS = "" 12715} 12716/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12717 line = \$ 0 12718 split(line, arg, " ") 12719 if (arg[1] == "#") { 12720 defundef = arg[2] 12721 mac1 = arg[3] 12722 } else { 12723 defundef = substr(arg[1], 2) 12724 mac1 = arg[2] 12725 } 12726 split(mac1, mac2, "(") #) 12727 macro = mac2[1] 12728 prefix = substr(line, 1, index(line, defundef) - 1) 12729 if (D_is_set[macro]) { 12730 # Preserve the white space surrounding the "#". 12731 print prefix "define", macro P[macro] D[macro] 12732 next 12733 } else { 12734 # Replace #undef with comments. This is necessary, for example, 12735 # in the case of _POSIX_SOURCE, which is predefined and required 12736 # on some systems where configure will not decide to define it. 12737 if (defundef == "undef") { 12738 print "/*", prefix defundef, macro, "*/" 12739 next 12740 } 12741 } 12742} 12743{ print } 12744_ACAWK 12745_ACEOF 12746cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12747 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12748fi # test -n "$CONFIG_HEADERS" 12749 12750 12751eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12752shift 12753for ac_tag 12754do 12755 case $ac_tag in 12756 :[FHLC]) ac_mode=$ac_tag; continue;; 12757 esac 12758 case $ac_mode$ac_tag in 12759 :[FHL]*:*);; 12760 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12761 :[FH]-) ac_tag=-:-;; 12762 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12763 esac 12764 ac_save_IFS=$IFS 12765 IFS=: 12766 set x $ac_tag 12767 IFS=$ac_save_IFS 12768 shift 12769 ac_file=$1 12770 shift 12771 12772 case $ac_mode in 12773 :L) ac_source=$1;; 12774 :[FH]) 12775 ac_file_inputs= 12776 for ac_f 12777 do 12778 case $ac_f in 12779 -) ac_f="$ac_tmp/stdin";; 12780 *) # Look for the file first in the build tree, then in the source tree 12781 # (if the path is not absolute). The absolute path cannot be DOS-style, 12782 # because $ac_f cannot contain `:'. 12783 test -f "$ac_f" || 12784 case $ac_f in 12785 [\\/$]*) false;; 12786 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12787 esac || 12788 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12789 esac 12790 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12791 as_fn_append ac_file_inputs " '$ac_f'" 12792 done 12793 12794 # Let's still pretend it is `configure' which instantiates (i.e., don't 12795 # use $as_me), people would be surprised to read: 12796 # /* config.h. Generated by config.status. */ 12797 configure_input='Generated from '` 12798 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12799 `' by configure.' 12800 if test x"$ac_file" != x-; then 12801 configure_input="$ac_file. $configure_input" 12802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12803printf "%s\n" "$as_me: creating $ac_file" >&6;} 12804 fi 12805 # Neutralize special characters interpreted by sed in replacement strings. 12806 case $configure_input in #( 12807 *\&* | *\|* | *\\* ) 12808 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12809 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12810 *) ac_sed_conf_input=$configure_input;; 12811 esac 12812 12813 case $ac_tag in 12814 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12815 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12816 esac 12817 ;; 12818 esac 12819 12820 ac_dir=`$as_dirname -- "$ac_file" || 12821$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12822 X"$ac_file" : 'X\(//\)[^/]' \| \ 12823 X"$ac_file" : 'X\(//\)$' \| \ 12824 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12825printf "%s\n" X"$ac_file" | 12826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12827 s//\1/ 12828 q 12829 } 12830 /^X\(\/\/\)[^/].*/{ 12831 s//\1/ 12832 q 12833 } 12834 /^X\(\/\/\)$/{ 12835 s//\1/ 12836 q 12837 } 12838 /^X\(\/\).*/{ 12839 s//\1/ 12840 q 12841 } 12842 s/.*/./; q'` 12843 as_dir="$ac_dir"; as_fn_mkdir_p 12844 ac_builddir=. 12845 12846case "$ac_dir" in 12847.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12848*) 12849 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12850 # A ".." for each directory in $ac_dir_suffix. 12851 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12852 case $ac_top_builddir_sub in 12853 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12854 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12855 esac ;; 12856esac 12857ac_abs_top_builddir=$ac_pwd 12858ac_abs_builddir=$ac_pwd$ac_dir_suffix 12859# for backward compatibility: 12860ac_top_builddir=$ac_top_build_prefix 12861 12862case $srcdir in 12863 .) # We are building in place. 12864 ac_srcdir=. 12865 ac_top_srcdir=$ac_top_builddir_sub 12866 ac_abs_top_srcdir=$ac_pwd ;; 12867 [\\/]* | ?:[\\/]* ) # Absolute name. 12868 ac_srcdir=$srcdir$ac_dir_suffix; 12869 ac_top_srcdir=$srcdir 12870 ac_abs_top_srcdir=$srcdir ;; 12871 *) # Relative name. 12872 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12873 ac_top_srcdir=$ac_top_build_prefix$srcdir 12874 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12875esac 12876ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12877 12878 12879 case $ac_mode in 12880 :F) 12881 # 12882 # CONFIG_FILE 12883 # 12884 12885 case $INSTALL in 12886 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12887 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12888 esac 12889 ac_MKDIR_P=$MKDIR_P 12890 case $MKDIR_P in 12891 [\\/$]* | ?:[\\/]* ) ;; 12892 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12893 esac 12894_ACEOF 12895 12896cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12897# If the template does not know about datarootdir, expand it. 12898# FIXME: This hack should be removed a few years after 2.60. 12899ac_datarootdir_hack=; ac_datarootdir_seen= 12900ac_sed_dataroot=' 12901/datarootdir/ { 12902 p 12903 q 12904} 12905/@datadir@/p 12906/@docdir@/p 12907/@infodir@/p 12908/@localedir@/p 12909/@mandir@/p' 12910case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12911*datarootdir*) ac_datarootdir_seen=yes;; 12912*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12914printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12915_ACEOF 12916cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12917 ac_datarootdir_hack=' 12918 s&@datadir@&$datadir&g 12919 s&@docdir@&$docdir&g 12920 s&@infodir@&$infodir&g 12921 s&@localedir@&$localedir&g 12922 s&@mandir@&$mandir&g 12923 s&\\\${datarootdir}&$datarootdir&g' ;; 12924esac 12925_ACEOF 12926 12927# Neutralize VPATH when `$srcdir' = `.'. 12928# Shell code in configure.ac might set extrasub. 12929# FIXME: do we really want to maintain this feature? 12930cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12931ac_sed_extra="$ac_vpsub 12932$extrasub 12933_ACEOF 12934cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12935:t 12936/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12937s|@configure_input@|$ac_sed_conf_input|;t t 12938s&@top_builddir@&$ac_top_builddir_sub&;t t 12939s&@top_build_prefix@&$ac_top_build_prefix&;t t 12940s&@srcdir@&$ac_srcdir&;t t 12941s&@abs_srcdir@&$ac_abs_srcdir&;t t 12942s&@top_srcdir@&$ac_top_srcdir&;t t 12943s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12944s&@builddir@&$ac_builddir&;t t 12945s&@abs_builddir@&$ac_abs_builddir&;t t 12946s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12947s&@INSTALL@&$ac_INSTALL&;t t 12948s&@MKDIR_P@&$ac_MKDIR_P&;t t 12949$ac_datarootdir_hack 12950" 12951eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12952 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12953 12954test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12955 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12956 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12957 "$ac_tmp/out"`; test -z "$ac_out"; } && 12958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12959which seems to be undefined. Please make sure it is defined" >&5 12960printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12961which seems to be undefined. Please make sure it is defined" >&2;} 12962 12963 rm -f "$ac_tmp/stdin" 12964 case $ac_file in 12965 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12966 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12967 esac \ 12968 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12969 ;; 12970 :H) 12971 # 12972 # CONFIG_HEADER 12973 # 12974 if test x"$ac_file" != x-; then 12975 { 12976 printf "%s\n" "/* $configure_input */" >&1 \ 12977 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12978 } >"$ac_tmp/config.h" \ 12979 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12980 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12982printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 12983 else 12984 rm -f "$ac_file" 12985 mv "$ac_tmp/config.h" "$ac_file" \ 12986 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12987 fi 12988 else 12989 printf "%s\n" "/* $configure_input */" >&1 \ 12990 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12991 || as_fn_error $? "could not create -" "$LINENO" 5 12992 fi 12993# Compute "$ac_file"'s index in $config_headers. 12994_am_arg="$ac_file" 12995_am_stamp_count=1 12996for _am_header in $config_headers :; do 12997 case $_am_header in 12998 $_am_arg | $_am_arg:* ) 12999 break ;; 13000 * ) 13001 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13002 esac 13003done 13004echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13005$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13006 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13007 X"$_am_arg" : 'X\(//\)$' \| \ 13008 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13009printf "%s\n" X"$_am_arg" | 13010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13011 s//\1/ 13012 q 13013 } 13014 /^X\(\/\/\)[^/].*/{ 13015 s//\1/ 13016 q 13017 } 13018 /^X\(\/\/\)$/{ 13019 s//\1/ 13020 q 13021 } 13022 /^X\(\/\).*/{ 13023 s//\1/ 13024 q 13025 } 13026 s/.*/./; q'`/stamp-h$_am_stamp_count 13027 ;; 13028 13029 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13030printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 13031 ;; 13032 esac 13033 13034 13035 case $ac_file$ac_mode in 13036 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13037 # Older Autoconf quotes --file arguments for eval, but not when files 13038 # are listed without --file. Let's play safe and only enable the eval 13039 # if we detect the quoting. 13040 # TODO: see whether this extra hack can be removed once we start 13041 # requiring Autoconf 2.70 or later. 13042 case $CONFIG_FILES in #( 13043 *\'*) : 13044 eval set x "$CONFIG_FILES" ;; #( 13045 *) : 13046 set x $CONFIG_FILES ;; #( 13047 *) : 13048 ;; 13049esac 13050 shift 13051 # Used to flag and report bootstrapping failures. 13052 am_rc=0 13053 for am_mf 13054 do 13055 # Strip MF so we end up with the name of the file. 13056 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 13057 # Check whether this is an Automake generated Makefile which includes 13058 # dependency-tracking related rules and includes. 13059 # Grep'ing the whole file directly is not great: AIX grep has a line 13060 # limit of 2048, but all sed's we know have understand at least 4000. 13061 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13062 || continue 13063 am_dirpart=`$as_dirname -- "$am_mf" || 13064$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13065 X"$am_mf" : 'X\(//\)[^/]' \| \ 13066 X"$am_mf" : 'X\(//\)$' \| \ 13067 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13068printf "%s\n" X"$am_mf" | 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'` 13086 am_filepart=`$as_basename -- "$am_mf" || 13087$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13088 X"$am_mf" : 'X\(//\)$' \| \ 13089 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13090printf "%s\n" X/"$am_mf" | 13091 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13092 s//\1/ 13093 q 13094 } 13095 /^X\/\(\/\/\)$/{ 13096 s//\1/ 13097 q 13098 } 13099 /^X\/\(\/\).*/{ 13100 s//\1/ 13101 q 13102 } 13103 s/.*/./; q'` 13104 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13105 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13106 | $MAKE -f - am--depfiles" >&5 13107 (cd "$am_dirpart" \ 13108 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13109 | $MAKE -f - am--depfiles) >&5 2>&5 13110 ac_status=$? 13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13112 (exit $ac_status); } || am_rc=$? 13113 done 13114 if test $am_rc -ne 0; then 13115 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13116printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 13117as_fn_error $? "Something went wrong bootstrapping makefile fragments 13118 for automatic dependency tracking. If GNU make was not used, consider 13119 re-running the configure script with MAKE=\"gmake\" (or whatever is 13120 necessary). You can also try re-running configure with the 13121 '--disable-dependency-tracking' option to at least be able to build 13122 the package (albeit without support for automatic dependency tracking). 13123See \`config.log' for more details" "$LINENO" 5; } 13124 fi 13125 { am_dirpart=; unset am_dirpart;} 13126 { am_filepart=; unset am_filepart;} 13127 { am_mf=; unset am_mf;} 13128 { am_rc=; unset am_rc;} 13129 rm -f conftest-deps.mk 13130} 13131 ;; 13132 13133 esac 13134done # for ac_tag 13135 13136 13137as_fn_exit 0 13138_ACEOF 13139ac_clean_files=$ac_clean_files_save 13140 13141test $ac_write_fail = 0 || 13142 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13143 13144 13145# configure is writing to config.log, and then calls config.status. 13146# config.status does its own redirection, appending to config.log. 13147# Unfortunately, on DOS this fails, as config.log is still kept open 13148# by configure, so config.status won't be able to write to it; its 13149# output is simply discarded. So we exec the FD to /dev/null, 13150# effectively closing config.log, so it can be properly (re)opened and 13151# appended to by config.status. When coming back to configure, we 13152# need to make the FD available again. 13153if test "$no_create" != yes; then 13154 ac_cs_success=: 13155 ac_config_status_args= 13156 test "$silent" = yes && 13157 ac_config_status_args="$ac_config_status_args --quiet" 13158 exec 5>/dev/null 13159 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13160 exec 5>>config.log 13161 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13162 # would make configure fail if this is the last instruction. 13163 $ac_cs_success || as_fn_exit 1 13164fi 13165if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13167printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13168fi 13169 13170 13171