configure revision 96d43ffd
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for xedit 1.2.3. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xedit/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/app/xedit/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='xedit' 614PACKAGE_TARNAME='xedit' 615PACKAGE_VERSION='1.2.3' 616PACKAGE_STRING='xedit 1.2.3' 617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xedit/issues' 618PACKAGE_URL='' 619 620# Factoring default headers for most tests. 621ac_includes_default="\ 622#include <stddef.h> 623#ifdef HAVE_STDIO_H 624# include <stdio.h> 625#endif 626#ifdef HAVE_STDLIB_H 627# include <stdlib.h> 628#endif 629#ifdef HAVE_STRING_H 630# include <string.h> 631#endif 632#ifdef HAVE_INTTYPES_H 633# include <inttypes.h> 634#endif 635#ifdef HAVE_STDINT_H 636# include <stdint.h> 637#endif 638#ifdef HAVE_STRINGS_H 639# include <strings.h> 640#endif 641#ifdef HAVE_SYS_TYPES_H 642# include <sys/types.h> 643#endif 644#ifdef HAVE_SYS_STAT_H 645# include <sys/stat.h> 646#endif 647#ifdef HAVE_UNISTD_H 648# include <unistd.h> 649#endif" 650 651ac_header_c_list= 652ac_subst_vars='am__EXEEXT_FALSE 653am__EXEEXT_TRUE 654LTLIBOBJS 655LIBOBJS 656appdefaultdir 657APPDEFS_LIBS 658APPDEFS_CFLAGS 659NEED_UNSETENV_FALSE 660NEED_UNSETENV_TRUE 661NEED_STRCASECMP_FALSE 662NEED_STRCASECMP_TRUE 663NEED_REALPATH_FALSE 664NEED_REALPATH_TRUE 665LISPDIR 666PKGDEPS_LIBS 667PKGDEPS_CFLAGS 668RANLIB 669ac_ct_AR 670AR 671MAN_SUBSTS 672XORG_MAN_PAGE 673ADMIN_MAN_DIR 674DRIVER_MAN_DIR 675MISC_MAN_DIR 676FILE_MAN_DIR 677LIB_MAN_DIR 678APP_MAN_DIR 679ADMIN_MAN_SUFFIX 680DRIVER_MAN_SUFFIX 681MISC_MAN_SUFFIX 682FILE_MAN_SUFFIX 683LIB_MAN_SUFFIX 684APP_MAN_SUFFIX 685SED 686host_os 687host_vendor 688host_cpu 689host 690build_os 691build_vendor 692build_cpu 693build 694INSTALL_CMD 695PKG_CONFIG_LIBDIR 696PKG_CONFIG_PATH 697PKG_CONFIG 698CHANGELOG_CMD 699STRICT_CFLAGS 700CWARNFLAGS 701BASE_CFLAGS 702am__fastdepCC_FALSE 703am__fastdepCC_TRUE 704CCDEPMODE 705am__nodep 706AMDEPBACKSLASH 707AMDEP_FALSE 708AMDEP_TRUE 709am__include 710DEPDIR 711OBJEXT 712EXEEXT 713ac_ct_CC 714CPPFLAGS 715LDFLAGS 716CFLAGS 717CC 718AM_BACKSLASH 719AM_DEFAULT_VERBOSITY 720AM_DEFAULT_V 721AM_V 722CSCOPE 723ETAGS 724CTAGS 725am__untar 726am__tar 727AMTAR 728am__leading_dot 729SET_MAKE 730AWK 731mkdir_p 732MKDIR_P 733INSTALL_STRIP_PROGRAM 734STRIP 735install_sh 736MAKEINFO 737AUTOHEADER 738AUTOMAKE 739AUTOCONF 740ACLOCAL 741VERSION 742PACKAGE 743CYGPATH_W 744am__isrc 745INSTALL_DATA 746INSTALL_SCRIPT 747INSTALL_PROGRAM 748target_alias 749host_alias 750build_alias 751LIBS 752ECHO_T 753ECHO_N 754ECHO_C 755DEFS 756mandir 757localedir 758libdir 759psdir 760pdfdir 761dvidir 762htmldir 763infodir 764docdir 765oldincludedir 766includedir 767runstatedir 768localstatedir 769sharedstatedir 770sysconfdir 771datadir 772datarootdir 773libexecdir 774sbindir 775bindir 776program_transform_name 777prefix 778exec_prefix 779PACKAGE_URL 780PACKAGE_BUGREPORT 781PACKAGE_STRING 782PACKAGE_VERSION 783PACKAGE_TARNAME 784PACKAGE_NAME 785PATH_SEPARATOR 786SHELL 787am__quote' 788ac_subst_files='' 789ac_user_opts=' 790enable_option_checking 791enable_silent_rules 792enable_dependency_tracking 793enable_selective_werror 794enable_strict_compilation 795with_lispdir 796with_appdefaultdir 797' 798 ac_precious_vars='build_alias 799host_alias 800target_alias 801CC 802CFLAGS 803LDFLAGS 804LIBS 805CPPFLAGS 806PKG_CONFIG 807PKG_CONFIG_PATH 808PKG_CONFIG_LIBDIR 809PKGDEPS_CFLAGS 810PKGDEPS_LIBS 811APPDEFS_CFLAGS 812APPDEFS_LIBS' 813 814 815# Initialize some variables set by options. 816ac_init_help= 817ac_init_version=false 818ac_unrecognized_opts= 819ac_unrecognized_sep= 820# The variables have the same names as the options, with 821# dashes changed to underlines. 822cache_file=/dev/null 823exec_prefix=NONE 824no_create= 825no_recursion= 826prefix=NONE 827program_prefix=NONE 828program_suffix=NONE 829program_transform_name=s,x,x, 830silent= 831site= 832srcdir= 833verbose= 834x_includes=NONE 835x_libraries=NONE 836 837# Installation directory options. 838# These are left unexpanded so users can "make install exec_prefix=/foo" 839# and all the variables that are supposed to be based on exec_prefix 840# by default will actually change. 841# Use braces instead of parens because sh, perl, etc. also accept them. 842# (The list follows the same order as the GNU Coding Standards.) 843bindir='${exec_prefix}/bin' 844sbindir='${exec_prefix}/sbin' 845libexecdir='${exec_prefix}/libexec' 846datarootdir='${prefix}/share' 847datadir='${datarootdir}' 848sysconfdir='${prefix}/etc' 849sharedstatedir='${prefix}/com' 850localstatedir='${prefix}/var' 851runstatedir='${localstatedir}/run' 852includedir='${prefix}/include' 853oldincludedir='/usr/include' 854docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 855infodir='${datarootdir}/info' 856htmldir='${docdir}' 857dvidir='${docdir}' 858pdfdir='${docdir}' 859psdir='${docdir}' 860libdir='${exec_prefix}/lib' 861localedir='${datarootdir}/locale' 862mandir='${datarootdir}/man' 863 864ac_prev= 865ac_dashdash= 866for ac_option 867do 868 # If the previous option needs an argument, assign it. 869 if test -n "$ac_prev"; then 870 eval $ac_prev=\$ac_option 871 ac_prev= 872 continue 873 fi 874 875 case $ac_option in 876 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 877 *=) ac_optarg= ;; 878 *) ac_optarg=yes ;; 879 esac 880 881 case $ac_dashdash$ac_option in 882 --) 883 ac_dashdash=yes ;; 884 885 -bindir | --bindir | --bindi | --bind | --bin | --bi) 886 ac_prev=bindir ;; 887 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 888 bindir=$ac_optarg ;; 889 890 -build | --build | --buil | --bui | --bu) 891 ac_prev=build_alias ;; 892 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 893 build_alias=$ac_optarg ;; 894 895 -cache-file | --cache-file | --cache-fil | --cache-fi \ 896 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 897 ac_prev=cache_file ;; 898 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 899 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 900 cache_file=$ac_optarg ;; 901 902 --config-cache | -C) 903 cache_file=config.cache ;; 904 905 -datadir | --datadir | --datadi | --datad) 906 ac_prev=datadir ;; 907 -datadir=* | --datadir=* | --datadi=* | --datad=*) 908 datadir=$ac_optarg ;; 909 910 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 911 | --dataroo | --dataro | --datar) 912 ac_prev=datarootdir ;; 913 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 914 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 915 datarootdir=$ac_optarg ;; 916 917 -disable-* | --disable-*) 918 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 919 # Reject names that are not valid shell variable names. 920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 921 as_fn_error $? "invalid feature name: \`$ac_useropt'" 922 ac_useropt_orig=$ac_useropt 923 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 924 case $ac_user_opts in 925 *" 926"enable_$ac_useropt" 927"*) ;; 928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 929 ac_unrecognized_sep=', ';; 930 esac 931 eval enable_$ac_useropt=no ;; 932 933 -docdir | --docdir | --docdi | --doc | --do) 934 ac_prev=docdir ;; 935 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 936 docdir=$ac_optarg ;; 937 938 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 939 ac_prev=dvidir ;; 940 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 941 dvidir=$ac_optarg ;; 942 943 -enable-* | --enable-*) 944 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 945 # Reject names that are not valid shell variable names. 946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 947 as_fn_error $? "invalid feature name: \`$ac_useropt'" 948 ac_useropt_orig=$ac_useropt 949 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 950 case $ac_user_opts in 951 *" 952"enable_$ac_useropt" 953"*) ;; 954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 955 ac_unrecognized_sep=', ';; 956 esac 957 eval enable_$ac_useropt=\$ac_optarg ;; 958 959 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 960 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 961 | --exec | --exe | --ex) 962 ac_prev=exec_prefix ;; 963 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 964 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 965 | --exec=* | --exe=* | --ex=*) 966 exec_prefix=$ac_optarg ;; 967 968 -gas | --gas | --ga | --g) 969 # Obsolete; use --with-gas. 970 with_gas=yes ;; 971 972 -help | --help | --hel | --he | -h) 973 ac_init_help=long ;; 974 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 975 ac_init_help=recursive ;; 976 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 977 ac_init_help=short ;; 978 979 -host | --host | --hos | --ho) 980 ac_prev=host_alias ;; 981 -host=* | --host=* | --hos=* | --ho=*) 982 host_alias=$ac_optarg ;; 983 984 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 985 ac_prev=htmldir ;; 986 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 987 | --ht=*) 988 htmldir=$ac_optarg ;; 989 990 -includedir | --includedir | --includedi | --included | --include \ 991 | --includ | --inclu | --incl | --inc) 992 ac_prev=includedir ;; 993 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 994 | --includ=* | --inclu=* | --incl=* | --inc=*) 995 includedir=$ac_optarg ;; 996 997 -infodir | --infodir | --infodi | --infod | --info | --inf) 998 ac_prev=infodir ;; 999 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1000 infodir=$ac_optarg ;; 1001 1002 -libdir | --libdir | --libdi | --libd) 1003 ac_prev=libdir ;; 1004 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1005 libdir=$ac_optarg ;; 1006 1007 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1008 | --libexe | --libex | --libe) 1009 ac_prev=libexecdir ;; 1010 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1011 | --libexe=* | --libex=* | --libe=*) 1012 libexecdir=$ac_optarg ;; 1013 1014 -localedir | --localedir | --localedi | --localed | --locale) 1015 ac_prev=localedir ;; 1016 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1017 localedir=$ac_optarg ;; 1018 1019 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1020 | --localstate | --localstat | --localsta | --localst | --locals) 1021 ac_prev=localstatedir ;; 1022 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1023 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1024 localstatedir=$ac_optarg ;; 1025 1026 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1027 ac_prev=mandir ;; 1028 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1029 mandir=$ac_optarg ;; 1030 1031 -nfp | --nfp | --nf) 1032 # Obsolete; use --without-fp. 1033 with_fp=no ;; 1034 1035 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1036 | --no-cr | --no-c | -n) 1037 no_create=yes ;; 1038 1039 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1040 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1041 no_recursion=yes ;; 1042 1043 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1044 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1045 | --oldin | --oldi | --old | --ol | --o) 1046 ac_prev=oldincludedir ;; 1047 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1048 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1049 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1050 oldincludedir=$ac_optarg ;; 1051 1052 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1053 ac_prev=prefix ;; 1054 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1055 prefix=$ac_optarg ;; 1056 1057 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1058 | --program-pre | --program-pr | --program-p) 1059 ac_prev=program_prefix ;; 1060 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1061 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1062 program_prefix=$ac_optarg ;; 1063 1064 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1065 | --program-suf | --program-su | --program-s) 1066 ac_prev=program_suffix ;; 1067 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1068 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1069 program_suffix=$ac_optarg ;; 1070 1071 -program-transform-name | --program-transform-name \ 1072 | --program-transform-nam | --program-transform-na \ 1073 | --program-transform-n | --program-transform- \ 1074 | --program-transform | --program-transfor \ 1075 | --program-transfo | --program-transf \ 1076 | --program-trans | --program-tran \ 1077 | --progr-tra | --program-tr | --program-t) 1078 ac_prev=program_transform_name ;; 1079 -program-transform-name=* | --program-transform-name=* \ 1080 | --program-transform-nam=* | --program-transform-na=* \ 1081 | --program-transform-n=* | --program-transform-=* \ 1082 | --program-transform=* | --program-transfor=* \ 1083 | --program-transfo=* | --program-transf=* \ 1084 | --program-trans=* | --program-tran=* \ 1085 | --progr-tra=* | --program-tr=* | --program-t=*) 1086 program_transform_name=$ac_optarg ;; 1087 1088 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1089 ac_prev=pdfdir ;; 1090 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1091 pdfdir=$ac_optarg ;; 1092 1093 -psdir | --psdir | --psdi | --psd | --ps) 1094 ac_prev=psdir ;; 1095 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1096 psdir=$ac_optarg ;; 1097 1098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1099 | -silent | --silent | --silen | --sile | --sil) 1100 silent=yes ;; 1101 1102 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1103 | --runstate | --runstat | --runsta | --runst | --runs \ 1104 | --run | --ru | --r) 1105 ac_prev=runstatedir ;; 1106 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1107 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1108 | --run=* | --ru=* | --r=*) 1109 runstatedir=$ac_optarg ;; 1110 1111 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1112 ac_prev=sbindir ;; 1113 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1114 | --sbi=* | --sb=*) 1115 sbindir=$ac_optarg ;; 1116 1117 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1118 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1119 | --sharedst | --shareds | --shared | --share | --shar \ 1120 | --sha | --sh) 1121 ac_prev=sharedstatedir ;; 1122 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1123 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1124 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1125 | --sha=* | --sh=*) 1126 sharedstatedir=$ac_optarg ;; 1127 1128 -site | --site | --sit) 1129 ac_prev=site ;; 1130 -site=* | --site=* | --sit=*) 1131 site=$ac_optarg ;; 1132 1133 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1134 ac_prev=srcdir ;; 1135 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1136 srcdir=$ac_optarg ;; 1137 1138 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1139 | --syscon | --sysco | --sysc | --sys | --sy) 1140 ac_prev=sysconfdir ;; 1141 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1142 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1143 sysconfdir=$ac_optarg ;; 1144 1145 -target | --target | --targe | --targ | --tar | --ta | --t) 1146 ac_prev=target_alias ;; 1147 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1148 target_alias=$ac_optarg ;; 1149 1150 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1151 verbose=yes ;; 1152 1153 -version | --version | --versio | --versi | --vers | -V) 1154 ac_init_version=: ;; 1155 1156 -with-* | --with-*) 1157 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1158 # Reject names that are not valid shell variable names. 1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1160 as_fn_error $? "invalid package name: \`$ac_useropt'" 1161 ac_useropt_orig=$ac_useropt 1162 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1163 case $ac_user_opts in 1164 *" 1165"with_$ac_useropt" 1166"*) ;; 1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1168 ac_unrecognized_sep=', ';; 1169 esac 1170 eval with_$ac_useropt=\$ac_optarg ;; 1171 1172 -without-* | --without-*) 1173 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1174 # Reject names that are not valid shell variable names. 1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1176 as_fn_error $? "invalid package name: \`$ac_useropt'" 1177 ac_useropt_orig=$ac_useropt 1178 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1179 case $ac_user_opts in 1180 *" 1181"with_$ac_useropt" 1182"*) ;; 1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1184 ac_unrecognized_sep=', ';; 1185 esac 1186 eval with_$ac_useropt=no ;; 1187 1188 --x) 1189 # Obsolete; use --with-x. 1190 with_x=yes ;; 1191 1192 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1193 | --x-incl | --x-inc | --x-in | --x-i) 1194 ac_prev=x_includes ;; 1195 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1196 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1197 x_includes=$ac_optarg ;; 1198 1199 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1200 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1201 ac_prev=x_libraries ;; 1202 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1203 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1204 x_libraries=$ac_optarg ;; 1205 1206 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1207Try \`$0 --help' for more information" 1208 ;; 1209 1210 *=*) 1211 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1212 # Reject names that are not valid shell variable names. 1213 case $ac_envvar in #( 1214 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1215 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1216 esac 1217 eval $ac_envvar=\$ac_optarg 1218 export $ac_envvar ;; 1219 1220 *) 1221 # FIXME: should be removed in autoconf 3.0. 1222 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1223 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1224 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1225 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1226 ;; 1227 1228 esac 1229done 1230 1231if test -n "$ac_prev"; then 1232 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1233 as_fn_error $? "missing argument to $ac_option" 1234fi 1235 1236if test -n "$ac_unrecognized_opts"; then 1237 case $enable_option_checking in 1238 no) ;; 1239 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1240 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1241 esac 1242fi 1243 1244# Check all directory arguments for consistency. 1245for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1246 datadir sysconfdir sharedstatedir localstatedir includedir \ 1247 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1248 libdir localedir mandir runstatedir 1249do 1250 eval ac_val=\$$ac_var 1251 # Remove trailing slashes. 1252 case $ac_val in 1253 */ ) 1254 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1255 eval $ac_var=\$ac_val;; 1256 esac 1257 # Be sure to have absolute directory names. 1258 case $ac_val in 1259 [\\/$]* | ?:[\\/]* ) continue;; 1260 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1261 esac 1262 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1263done 1264 1265# There might be people who depend on the old broken behavior: `$host' 1266# used to hold the argument of --host etc. 1267# FIXME: To remove some day. 1268build=$build_alias 1269host=$host_alias 1270target=$target_alias 1271 1272# FIXME: To remove some day. 1273if test "x$host_alias" != x; then 1274 if test "x$build_alias" = x; then 1275 cross_compiling=maybe 1276 elif test "x$build_alias" != "x$host_alias"; then 1277 cross_compiling=yes 1278 fi 1279fi 1280 1281ac_tool_prefix= 1282test -n "$host_alias" && ac_tool_prefix=$host_alias- 1283 1284test "$silent" = yes && exec 6>/dev/null 1285 1286 1287ac_pwd=`pwd` && test -n "$ac_pwd" && 1288ac_ls_di=`ls -di .` && 1289ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1290 as_fn_error $? "working directory cannot be determined" 1291test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1292 as_fn_error $? "pwd does not report name of working directory" 1293 1294 1295# Find the source files, if location was not specified. 1296if test -z "$srcdir"; then 1297 ac_srcdir_defaulted=yes 1298 # Try the directory containing this script, then the parent directory. 1299 ac_confdir=`$as_dirname -- "$as_myself" || 1300$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1301 X"$as_myself" : 'X\(//\)[^/]' \| \ 1302 X"$as_myself" : 'X\(//\)$' \| \ 1303 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1304printf "%s\n" X"$as_myself" | 1305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1306 s//\1/ 1307 q 1308 } 1309 /^X\(\/\/\)[^/].*/{ 1310 s//\1/ 1311 q 1312 } 1313 /^X\(\/\/\)$/{ 1314 s//\1/ 1315 q 1316 } 1317 /^X\(\/\).*/{ 1318 s//\1/ 1319 q 1320 } 1321 s/.*/./; q'` 1322 srcdir=$ac_confdir 1323 if test ! -r "$srcdir/$ac_unique_file"; then 1324 srcdir=.. 1325 fi 1326else 1327 ac_srcdir_defaulted=no 1328fi 1329if test ! -r "$srcdir/$ac_unique_file"; then 1330 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1331 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1332fi 1333ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1334ac_abs_confdir=`( 1335 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1336 pwd)` 1337# When building in place, set srcdir=. 1338if test "$ac_abs_confdir" = "$ac_pwd"; then 1339 srcdir=. 1340fi 1341# Remove unnecessary trailing slashes from srcdir. 1342# Double slashes in file names in object file debugging info 1343# mess up M-x gdb in Emacs. 1344case $srcdir in 1345*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1346esac 1347for ac_var in $ac_precious_vars; do 1348 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1349 eval ac_env_${ac_var}_value=\$${ac_var} 1350 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1351 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1352done 1353 1354# 1355# Report the --help message. 1356# 1357if test "$ac_init_help" = "long"; then 1358 # Omit some internal or obsolete options to make the list less imposing. 1359 # This message is too long to be a string in the A/UX 3.1 sh. 1360 cat <<_ACEOF 1361\`configure' configures xedit 1.2.3 to adapt to many kinds of systems. 1362 1363Usage: $0 [OPTION]... [VAR=VALUE]... 1364 1365To assign environment variables (e.g., CC, CFLAGS...), specify them as 1366VAR=VALUE. See below for descriptions of some of the useful variables. 1367 1368Defaults for the options are specified in brackets. 1369 1370Configuration: 1371 -h, --help display this help and exit 1372 --help=short display options specific to this package 1373 --help=recursive display the short help of all the included packages 1374 -V, --version display version information and exit 1375 -q, --quiet, --silent do not print \`checking ...' messages 1376 --cache-file=FILE cache test results in FILE [disabled] 1377 -C, --config-cache alias for \`--cache-file=config.cache' 1378 -n, --no-create do not create output files 1379 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1380 1381Installation directories: 1382 --prefix=PREFIX install architecture-independent files in PREFIX 1383 [$ac_default_prefix] 1384 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1385 [PREFIX] 1386 1387By default, \`make install' will install all the files in 1388\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1389an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1390for instance \`--prefix=\$HOME'. 1391 1392For better control, use the options below. 1393 1394Fine tuning of the installation directories: 1395 --bindir=DIR user executables [EPREFIX/bin] 1396 --sbindir=DIR system admin executables [EPREFIX/sbin] 1397 --libexecdir=DIR program executables [EPREFIX/libexec] 1398 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1399 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1400 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1401 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1402 --libdir=DIR object code libraries [EPREFIX/lib] 1403 --includedir=DIR C header files [PREFIX/include] 1404 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1405 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1406 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1407 --infodir=DIR info documentation [DATAROOTDIR/info] 1408 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1409 --mandir=DIR man documentation [DATAROOTDIR/man] 1410 --docdir=DIR documentation root [DATAROOTDIR/doc/xedit] 1411 --htmldir=DIR html documentation [DOCDIR] 1412 --dvidir=DIR dvi documentation [DOCDIR] 1413 --pdfdir=DIR pdf documentation [DOCDIR] 1414 --psdir=DIR ps documentation [DOCDIR] 1415_ACEOF 1416 1417 cat <<\_ACEOF 1418 1419Program names: 1420 --program-prefix=PREFIX prepend PREFIX to installed program names 1421 --program-suffix=SUFFIX append SUFFIX to installed program names 1422 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1423 1424System types: 1425 --build=BUILD configure for building on BUILD [guessed] 1426 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1427_ACEOF 1428fi 1429 1430if test -n "$ac_init_help"; then 1431 case $ac_init_help in 1432 short | recursive ) echo "Configuration of xedit 1.2.3:";; 1433 esac 1434 cat <<\_ACEOF 1435 1436Optional Features: 1437 --disable-option-checking ignore unrecognized --enable/--with options 1438 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1439 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1440 --enable-silent-rules less verbose build output (undo: "make V=1") 1441 --disable-silent-rules verbose build output (undo: "make V=0") 1442 --enable-dependency-tracking 1443 do not reject slow dependency extractors 1444 --disable-dependency-tracking 1445 speeds up one-time build 1446 --disable-selective-werror 1447 Turn off selective compiler errors. (default: 1448 enabled) 1449 --enable-strict-compilation 1450 Enable all warnings from compiler and make them 1451 errors (default: disabled) 1452 1453Optional Packages: 1454 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1455 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1456 --with-lispdir=PATH Directory to install lisp files (default: 1457 $libdir/X11/xedit/lisp) 1458 --with-appdefaultdir=<pathname> 1459 specify directory for app-defaults files (default is 1460 autodetected) 1461 1462Some influential environment variables: 1463 CC C compiler command 1464 CFLAGS C compiler flags 1465 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1466 nonstandard directory <lib dir> 1467 LIBS libraries to pass to the linker, e.g. -l<library> 1468 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1469 you have headers in a nonstandard directory <include dir> 1470 PKG_CONFIG path to pkg-config utility 1471 PKG_CONFIG_PATH 1472 directories to add to pkg-config's search path 1473 PKG_CONFIG_LIBDIR 1474 path overriding pkg-config's built-in search path 1475 PKGDEPS_CFLAGS 1476 C compiler flags for PKGDEPS, overriding pkg-config 1477 PKGDEPS_LIBS 1478 linker flags for PKGDEPS, overriding pkg-config 1479 APPDEFS_CFLAGS 1480 C compiler flags for APPDEFS, overriding pkg-config 1481 APPDEFS_LIBS 1482 linker flags for APPDEFS, overriding pkg-config 1483 1484Use these variables to override the choices made by `configure' or to help 1485it to find libraries and programs with nonstandard names/locations. 1486 1487Report bugs to <https://gitlab.freedesktop.org/xorg/app/xedit/issues>. 1488_ACEOF 1489ac_status=$? 1490fi 1491 1492if test "$ac_init_help" = "recursive"; then 1493 # If there are subdirs, report their specific --help. 1494 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1495 test -d "$ac_dir" || 1496 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1497 continue 1498 ac_builddir=. 1499 1500case "$ac_dir" in 1501.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1502*) 1503 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1504 # A ".." for each directory in $ac_dir_suffix. 1505 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1506 case $ac_top_builddir_sub in 1507 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1508 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1509 esac ;; 1510esac 1511ac_abs_top_builddir=$ac_pwd 1512ac_abs_builddir=$ac_pwd$ac_dir_suffix 1513# for backward compatibility: 1514ac_top_builddir=$ac_top_build_prefix 1515 1516case $srcdir in 1517 .) # We are building in place. 1518 ac_srcdir=. 1519 ac_top_srcdir=$ac_top_builddir_sub 1520 ac_abs_top_srcdir=$ac_pwd ;; 1521 [\\/]* | ?:[\\/]* ) # Absolute name. 1522 ac_srcdir=$srcdir$ac_dir_suffix; 1523 ac_top_srcdir=$srcdir 1524 ac_abs_top_srcdir=$srcdir ;; 1525 *) # Relative name. 1526 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1527 ac_top_srcdir=$ac_top_build_prefix$srcdir 1528 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1529esac 1530ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1531 1532 cd "$ac_dir" || { ac_status=$?; continue; } 1533 # Check for configure.gnu first; this name is used for a wrapper for 1534 # Metaconfig's "Configure" on case-insensitive file systems. 1535 if test -f "$ac_srcdir/configure.gnu"; then 1536 echo && 1537 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1538 elif test -f "$ac_srcdir/configure"; then 1539 echo && 1540 $SHELL "$ac_srcdir/configure" --help=recursive 1541 else 1542 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1543 fi || ac_status=$? 1544 cd "$ac_pwd" || { ac_status=$?; break; } 1545 done 1546fi 1547 1548test -n "$ac_init_help" && exit $ac_status 1549if $ac_init_version; then 1550 cat <<\_ACEOF 1551xedit configure 1.2.3 1552generated by GNU Autoconf 2.71 1553 1554Copyright (C) 2021 Free Software Foundation, Inc. 1555This configure script is free software; the Free Software Foundation 1556gives unlimited permission to copy, distribute and modify it. 1557_ACEOF 1558 exit 1559fi 1560 1561## ------------------------ ## 1562## Autoconf initialization. ## 1563## ------------------------ ## 1564 1565# ac_fn_c_try_compile LINENO 1566# -------------------------- 1567# Try to compile conftest.$ac_ext, and return whether this succeeded. 1568ac_fn_c_try_compile () 1569{ 1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1571 rm -f conftest.$ac_objext conftest.beam 1572 if { { ac_try="$ac_compile" 1573case "(($ac_try" in 1574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1575 *) ac_try_echo=$ac_try;; 1576esac 1577eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1578printf "%s\n" "$ac_try_echo"; } >&5 1579 (eval "$ac_compile") 2>conftest.err 1580 ac_status=$? 1581 if test -s conftest.err; then 1582 grep -v '^ *+' conftest.err >conftest.er1 1583 cat conftest.er1 >&5 1584 mv -f conftest.er1 conftest.err 1585 fi 1586 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1587 test $ac_status = 0; } && { 1588 test -z "$ac_c_werror_flag" || 1589 test ! -s conftest.err 1590 } && test -s conftest.$ac_objext 1591then : 1592 ac_retval=0 1593else $as_nop 1594 printf "%s\n" "$as_me: failed program was:" >&5 1595sed 's/^/| /' conftest.$ac_ext >&5 1596 1597 ac_retval=1 1598fi 1599 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1600 as_fn_set_status $ac_retval 1601 1602} # ac_fn_c_try_compile 1603 1604# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1605# ------------------------------------------------------------------ 1606# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1607# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1608ac_fn_check_decl () 1609{ 1610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1611 as_decl_name=`echo $2|sed 's/ *(.*//'` 1612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1613printf %s "checking whether $as_decl_name is declared... " >&6; } 1614if eval test \${$3+y} 1615then : 1616 printf %s "(cached) " >&6 1617else $as_nop 1618 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1619 eval ac_save_FLAGS=\$$6 1620 as_fn_append $6 " $5" 1621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1622/* end confdefs.h. */ 1623$4 1624int 1625main (void) 1626{ 1627#ifndef $as_decl_name 1628#ifdef __cplusplus 1629 (void) $as_decl_use; 1630#else 1631 (void) $as_decl_name; 1632#endif 1633#endif 1634 1635 ; 1636 return 0; 1637} 1638_ACEOF 1639if ac_fn_c_try_compile "$LINENO" 1640then : 1641 eval "$3=yes" 1642else $as_nop 1643 eval "$3=no" 1644fi 1645rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1646 eval $6=\$ac_save_FLAGS 1647 1648fi 1649eval ac_res=\$$3 1650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1651printf "%s\n" "$ac_res" >&6; } 1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1653 1654} # ac_fn_check_decl 1655 1656# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1657# ------------------------------------------------------- 1658# Tests whether HEADER exists and can be compiled using the include files in 1659# INCLUDES, setting the cache variable VAR accordingly. 1660ac_fn_c_check_header_compile () 1661{ 1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1664printf %s "checking for $2... " >&6; } 1665if eval test \${$3+y} 1666then : 1667 printf %s "(cached) " >&6 1668else $as_nop 1669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1670/* end confdefs.h. */ 1671$4 1672#include <$2> 1673_ACEOF 1674if ac_fn_c_try_compile "$LINENO" 1675then : 1676 eval "$3=yes" 1677else $as_nop 1678 eval "$3=no" 1679fi 1680rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1681fi 1682eval ac_res=\$$3 1683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1684printf "%s\n" "$ac_res" >&6; } 1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1686 1687} # ac_fn_c_check_header_compile 1688 1689# ac_fn_c_try_link LINENO 1690# ----------------------- 1691# Try to link conftest.$ac_ext, and return whether this succeeded. 1692ac_fn_c_try_link () 1693{ 1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1695 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1696 if { { ac_try="$ac_link" 1697case "(($ac_try" in 1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1699 *) ac_try_echo=$ac_try;; 1700esac 1701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1702printf "%s\n" "$ac_try_echo"; } >&5 1703 (eval "$ac_link") 2>conftest.err 1704 ac_status=$? 1705 if test -s conftest.err; then 1706 grep -v '^ *+' conftest.err >conftest.er1 1707 cat conftest.er1 >&5 1708 mv -f conftest.er1 conftest.err 1709 fi 1710 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1711 test $ac_status = 0; } && { 1712 test -z "$ac_c_werror_flag" || 1713 test ! -s conftest.err 1714 } && test -s conftest$ac_exeext && { 1715 test "$cross_compiling" = yes || 1716 test -x conftest$ac_exeext 1717 } 1718then : 1719 ac_retval=0 1720else $as_nop 1721 printf "%s\n" "$as_me: failed program was:" >&5 1722sed 's/^/| /' conftest.$ac_ext >&5 1723 1724 ac_retval=1 1725fi 1726 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1727 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1728 # interfere with the next link command; also delete a directory that is 1729 # left behind by Apple's compiler. We do this before executing the actions. 1730 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1732 as_fn_set_status $ac_retval 1733 1734} # ac_fn_c_try_link 1735 1736# ac_fn_c_check_func LINENO FUNC VAR 1737# ---------------------------------- 1738# Tests whether FUNC exists, setting the cache variable VAR accordingly 1739ac_fn_c_check_func () 1740{ 1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1743printf %s "checking for $2... " >&6; } 1744if eval test \${$3+y} 1745then : 1746 printf %s "(cached) " >&6 1747else $as_nop 1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1749/* end confdefs.h. */ 1750/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1751 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1752#define $2 innocuous_$2 1753 1754/* System header to define __stub macros and hopefully few prototypes, 1755 which can conflict with char $2 (); below. */ 1756 1757#include <limits.h> 1758#undef $2 1759 1760/* Override any GCC internal prototype to avoid an error. 1761 Use char because int might match the return type of a GCC 1762 builtin and then its argument prototype would still apply. */ 1763#ifdef __cplusplus 1764extern "C" 1765#endif 1766char $2 (); 1767/* The GNU C library defines this for functions which it implements 1768 to always fail with ENOSYS. Some functions are actually named 1769 something starting with __ and the normal name is an alias. */ 1770#if defined __stub_$2 || defined __stub___$2 1771choke me 1772#endif 1773 1774int 1775main (void) 1776{ 1777return $2 (); 1778 ; 1779 return 0; 1780} 1781_ACEOF 1782if ac_fn_c_try_link "$LINENO" 1783then : 1784 eval "$3=yes" 1785else $as_nop 1786 eval "$3=no" 1787fi 1788rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1789 conftest$ac_exeext conftest.$ac_ext 1790fi 1791eval ac_res=\$$3 1792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1793printf "%s\n" "$ac_res" >&6; } 1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1795 1796} # ac_fn_c_check_func 1797ac_configure_args_raw= 1798for ac_arg 1799do 1800 case $ac_arg in 1801 *\'*) 1802 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1803 esac 1804 as_fn_append ac_configure_args_raw " '$ac_arg'" 1805done 1806 1807case $ac_configure_args_raw in 1808 *$as_nl*) 1809 ac_safe_unquote= ;; 1810 *) 1811 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1812 ac_unsafe_a="$ac_unsafe_z#~" 1813 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1814 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1815esac 1816 1817cat >config.log <<_ACEOF 1818This file contains any messages produced by compilers while 1819running configure, to aid debugging if configure makes a mistake. 1820 1821It was created by xedit $as_me 1.2.3, which was 1822generated by GNU Autoconf 2.71. Invocation command line was 1823 1824 $ $0$ac_configure_args_raw 1825 1826_ACEOF 1827exec 5>>config.log 1828{ 1829cat <<_ASUNAME 1830## --------- ## 1831## Platform. ## 1832## --------- ## 1833 1834hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1835uname -m = `(uname -m) 2>/dev/null || echo unknown` 1836uname -r = `(uname -r) 2>/dev/null || echo unknown` 1837uname -s = `(uname -s) 2>/dev/null || echo unknown` 1838uname -v = `(uname -v) 2>/dev/null || echo unknown` 1839 1840/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1841/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1842 1843/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1844/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1845/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1846/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1847/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1848/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1849/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1850 1851_ASUNAME 1852 1853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1854for as_dir in $PATH 1855do 1856 IFS=$as_save_IFS 1857 case $as_dir in #((( 1858 '') as_dir=./ ;; 1859 */) ;; 1860 *) as_dir=$as_dir/ ;; 1861 esac 1862 printf "%s\n" "PATH: $as_dir" 1863 done 1864IFS=$as_save_IFS 1865 1866} >&5 1867 1868cat >&5 <<_ACEOF 1869 1870 1871## ----------- ## 1872## Core tests. ## 1873## ----------- ## 1874 1875_ACEOF 1876 1877 1878# Keep a trace of the command line. 1879# Strip out --no-create and --no-recursion so they do not pile up. 1880# Strip out --silent because we don't want to record it for future runs. 1881# Also quote any args containing shell meta-characters. 1882# Make two passes to allow for proper duplicate-argument suppression. 1883ac_configure_args= 1884ac_configure_args0= 1885ac_configure_args1= 1886ac_must_keep_next=false 1887for ac_pass in 1 2 1888do 1889 for ac_arg 1890 do 1891 case $ac_arg in 1892 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1893 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1894 | -silent | --silent | --silen | --sile | --sil) 1895 continue ;; 1896 *\'*) 1897 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1898 esac 1899 case $ac_pass in 1900 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1901 2) 1902 as_fn_append ac_configure_args1 " '$ac_arg'" 1903 if test $ac_must_keep_next = true; then 1904 ac_must_keep_next=false # Got value, back to normal. 1905 else 1906 case $ac_arg in 1907 *=* | --config-cache | -C | -disable-* | --disable-* \ 1908 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1909 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1910 | -with-* | --with-* | -without-* | --without-* | --x) 1911 case "$ac_configure_args0 " in 1912 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1913 esac 1914 ;; 1915 -* ) ac_must_keep_next=true ;; 1916 esac 1917 fi 1918 as_fn_append ac_configure_args " '$ac_arg'" 1919 ;; 1920 esac 1921 done 1922done 1923{ ac_configure_args0=; unset ac_configure_args0;} 1924{ ac_configure_args1=; unset ac_configure_args1;} 1925 1926# When interrupted or exit'd, cleanup temporary files, and complete 1927# config.log. We remove comments because anyway the quotes in there 1928# would cause problems or look ugly. 1929# WARNING: Use '\'' to represent an apostrophe within the trap. 1930# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1931trap 'exit_status=$? 1932 # Sanitize IFS. 1933 IFS=" "" $as_nl" 1934 # Save into config.log some information that might help in debugging. 1935 { 1936 echo 1937 1938 printf "%s\n" "## ---------------- ## 1939## Cache variables. ## 1940## ---------------- ##" 1941 echo 1942 # The following way of writing the cache mishandles newlines in values, 1943( 1944 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1945 eval ac_val=\$$ac_var 1946 case $ac_val in #( 1947 *${as_nl}*) 1948 case $ac_var in #( 1949 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1950printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1951 esac 1952 case $ac_var in #( 1953 _ | IFS | as_nl) ;; #( 1954 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1955 *) { eval $ac_var=; unset $ac_var;} ;; 1956 esac ;; 1957 esac 1958 done 1959 (set) 2>&1 | 1960 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1961 *${as_nl}ac_space=\ *) 1962 sed -n \ 1963 "s/'\''/'\''\\\\'\'''\''/g; 1964 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1965 ;; #( 1966 *) 1967 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1968 ;; 1969 esac | 1970 sort 1971) 1972 echo 1973 1974 printf "%s\n" "## ----------------- ## 1975## Output variables. ## 1976## ----------------- ##" 1977 echo 1978 for ac_var in $ac_subst_vars 1979 do 1980 eval ac_val=\$$ac_var 1981 case $ac_val in 1982 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1983 esac 1984 printf "%s\n" "$ac_var='\''$ac_val'\''" 1985 done | sort 1986 echo 1987 1988 if test -n "$ac_subst_files"; then 1989 printf "%s\n" "## ------------------- ## 1990## File substitutions. ## 1991## ------------------- ##" 1992 echo 1993 for ac_var in $ac_subst_files 1994 do 1995 eval ac_val=\$$ac_var 1996 case $ac_val in 1997 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1998 esac 1999 printf "%s\n" "$ac_var='\''$ac_val'\''" 2000 done | sort 2001 echo 2002 fi 2003 2004 if test -s confdefs.h; then 2005 printf "%s\n" "## ----------- ## 2006## confdefs.h. ## 2007## ----------- ##" 2008 echo 2009 cat confdefs.h 2010 echo 2011 fi 2012 test "$ac_signal" != 0 && 2013 printf "%s\n" "$as_me: caught signal $ac_signal" 2014 printf "%s\n" "$as_me: exit $exit_status" 2015 } >&5 2016 rm -f core *.core core.conftest.* && 2017 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2018 exit $exit_status 2019' 0 2020for ac_signal in 1 2 13 15; do 2021 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2022done 2023ac_signal=0 2024 2025# confdefs.h avoids OS command line length limits that DEFS can exceed. 2026rm -f -r conftest* confdefs.h 2027 2028printf "%s\n" "/* confdefs.h */" > confdefs.h 2029 2030# Predefined preprocessor variables. 2031 2032printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2033 2034printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2035 2036printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2037 2038printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2039 2040printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2041 2042printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2043 2044 2045# Let the site file select an alternate cache file if it wants to. 2046# Prefer an explicitly selected file to automatically selected ones. 2047if test -n "$CONFIG_SITE"; then 2048 ac_site_files="$CONFIG_SITE" 2049elif test "x$prefix" != xNONE; then 2050 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2051else 2052 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2053fi 2054 2055for ac_site_file in $ac_site_files 2056do 2057 case $ac_site_file in #( 2058 */*) : 2059 ;; #( 2060 *) : 2061 ac_site_file=./$ac_site_file ;; 2062esac 2063 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2065printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2066 sed 's/^/| /' "$ac_site_file" >&5 2067 . "$ac_site_file" \ 2068 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2069printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2070as_fn_error $? "failed to load site script $ac_site_file 2071See \`config.log' for more details" "$LINENO" 5; } 2072 fi 2073done 2074 2075if test -r "$cache_file"; then 2076 # Some versions of bash will fail to source /dev/null (special files 2077 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2078 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2080printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2081 case $cache_file in 2082 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2083 *) . "./$cache_file";; 2084 esac 2085 fi 2086else 2087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2088printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2089 >$cache_file 2090fi 2091 2092# Test code for whether the C compiler supports C89 (global declarations) 2093ac_c_conftest_c89_globals=' 2094/* Does the compiler advertise C89 conformance? 2095 Do not test the value of __STDC__, because some compilers set it to 0 2096 while being otherwise adequately conformant. */ 2097#if !defined __STDC__ 2098# error "Compiler does not advertise C89 conformance" 2099#endif 2100 2101#include <stddef.h> 2102#include <stdarg.h> 2103struct stat; 2104/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2105struct buf { int x; }; 2106struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2107static char *e (p, i) 2108 char **p; 2109 int i; 2110{ 2111 return p[i]; 2112} 2113static char *f (char * (*g) (char **, int), char **p, ...) 2114{ 2115 char *s; 2116 va_list v; 2117 va_start (v,p); 2118 s = g (p, va_arg (v,int)); 2119 va_end (v); 2120 return s; 2121} 2122 2123/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2124 function prototypes and stuff, but not \xHH hex character constants. 2125 These do not provoke an error unfortunately, instead are silently treated 2126 as an "x". The following induces an error, until -std is added to get 2127 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2128 array size at least. It is necessary to write \x00 == 0 to get something 2129 that is true only with -std. */ 2130int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2131 2132/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2133 inside strings and character constants. */ 2134#define FOO(x) '\''x'\'' 2135int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2136 2137int test (int i, double x); 2138struct s1 {int (*f) (int a);}; 2139struct s2 {int (*f) (double a);}; 2140int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2141 int, int);' 2142 2143# Test code for whether the C compiler supports C89 (body of main). 2144ac_c_conftest_c89_main=' 2145ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2146' 2147 2148# Test code for whether the C compiler supports C99 (global declarations) 2149ac_c_conftest_c99_globals=' 2150// Does the compiler advertise C99 conformance? 2151#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2152# error "Compiler does not advertise C99 conformance" 2153#endif 2154 2155#include <stdbool.h> 2156extern int puts (const char *); 2157extern int printf (const char *, ...); 2158extern int dprintf (int, const char *, ...); 2159extern void *malloc (size_t); 2160 2161// Check varargs macros. These examples are taken from C99 6.10.3.5. 2162// dprintf is used instead of fprintf to avoid needing to declare 2163// FILE and stderr. 2164#define debug(...) dprintf (2, __VA_ARGS__) 2165#define showlist(...) puts (#__VA_ARGS__) 2166#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2167static void 2168test_varargs_macros (void) 2169{ 2170 int x = 1234; 2171 int y = 5678; 2172 debug ("Flag"); 2173 debug ("X = %d\n", x); 2174 showlist (The first, second, and third items.); 2175 report (x>y, "x is %d but y is %d", x, y); 2176} 2177 2178// Check long long types. 2179#define BIG64 18446744073709551615ull 2180#define BIG32 4294967295ul 2181#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2182#if !BIG_OK 2183 #error "your preprocessor is broken" 2184#endif 2185#if BIG_OK 2186#else 2187 #error "your preprocessor is broken" 2188#endif 2189static long long int bignum = -9223372036854775807LL; 2190static unsigned long long int ubignum = BIG64; 2191 2192struct incomplete_array 2193{ 2194 int datasize; 2195 double data[]; 2196}; 2197 2198struct named_init { 2199 int number; 2200 const wchar_t *name; 2201 double average; 2202}; 2203 2204typedef const char *ccp; 2205 2206static inline int 2207test_restrict (ccp restrict text) 2208{ 2209 // See if C++-style comments work. 2210 // Iterate through items via the restricted pointer. 2211 // Also check for declarations in for loops. 2212 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2213 continue; 2214 return 0; 2215} 2216 2217// Check varargs and va_copy. 2218static bool 2219test_varargs (const char *format, ...) 2220{ 2221 va_list args; 2222 va_start (args, format); 2223 va_list args_copy; 2224 va_copy (args_copy, args); 2225 2226 const char *str = ""; 2227 int number = 0; 2228 float fnumber = 0; 2229 2230 while (*format) 2231 { 2232 switch (*format++) 2233 { 2234 case '\''s'\'': // string 2235 str = va_arg (args_copy, const char *); 2236 break; 2237 case '\''d'\'': // int 2238 number = va_arg (args_copy, int); 2239 break; 2240 case '\''f'\'': // float 2241 fnumber = va_arg (args_copy, double); 2242 break; 2243 default: 2244 break; 2245 } 2246 } 2247 va_end (args_copy); 2248 va_end (args); 2249 2250 return *str && number && fnumber; 2251} 2252' 2253 2254# Test code for whether the C compiler supports C99 (body of main). 2255ac_c_conftest_c99_main=' 2256 // Check bool. 2257 _Bool success = false; 2258 success |= (argc != 0); 2259 2260 // Check restrict. 2261 if (test_restrict ("String literal") == 0) 2262 success = true; 2263 char *restrict newvar = "Another string"; 2264 2265 // Check varargs. 2266 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2267 test_varargs_macros (); 2268 2269 // Check flexible array members. 2270 struct incomplete_array *ia = 2271 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2272 ia->datasize = 10; 2273 for (int i = 0; i < ia->datasize; ++i) 2274 ia->data[i] = i * 1.234; 2275 2276 // Check named initializers. 2277 struct named_init ni = { 2278 .number = 34, 2279 .name = L"Test wide string", 2280 .average = 543.34343, 2281 }; 2282 2283 ni.number = 58; 2284 2285 int dynamic_array[ni.number]; 2286 dynamic_array[0] = argv[0][0]; 2287 dynamic_array[ni.number - 1] = 543; 2288 2289 // work around unused variable warnings 2290 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2291 || dynamic_array[ni.number - 1] != 543); 2292' 2293 2294# Test code for whether the C compiler supports C11 (global declarations) 2295ac_c_conftest_c11_globals=' 2296// Does the compiler advertise C11 conformance? 2297#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2298# error "Compiler does not advertise C11 conformance" 2299#endif 2300 2301// Check _Alignas. 2302char _Alignas (double) aligned_as_double; 2303char _Alignas (0) no_special_alignment; 2304extern char aligned_as_int; 2305char _Alignas (0) _Alignas (int) aligned_as_int; 2306 2307// Check _Alignof. 2308enum 2309{ 2310 int_alignment = _Alignof (int), 2311 int_array_alignment = _Alignof (int[100]), 2312 char_alignment = _Alignof (char) 2313}; 2314_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2315 2316// Check _Noreturn. 2317int _Noreturn does_not_return (void) { for (;;) continue; } 2318 2319// Check _Static_assert. 2320struct test_static_assert 2321{ 2322 int x; 2323 _Static_assert (sizeof (int) <= sizeof (long int), 2324 "_Static_assert does not work in struct"); 2325 long int y; 2326}; 2327 2328// Check UTF-8 literals. 2329#define u8 syntax error! 2330char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2331 2332// Check duplicate typedefs. 2333typedef long *long_ptr; 2334typedef long int *long_ptr; 2335typedef long_ptr long_ptr; 2336 2337// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2338struct anonymous 2339{ 2340 union { 2341 struct { int i; int j; }; 2342 struct { int k; long int l; } w; 2343 }; 2344 int m; 2345} v1; 2346' 2347 2348# Test code for whether the C compiler supports C11 (body of main). 2349ac_c_conftest_c11_main=' 2350 _Static_assert ((offsetof (struct anonymous, i) 2351 == offsetof (struct anonymous, w.k)), 2352 "Anonymous union alignment botch"); 2353 v1.i = 2; 2354 v1.w.k = 5; 2355 ok |= v1.i != 5; 2356' 2357 2358# Test code for whether the C compiler supports C11 (complete). 2359ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2360${ac_c_conftest_c99_globals} 2361${ac_c_conftest_c11_globals} 2362 2363int 2364main (int argc, char **argv) 2365{ 2366 int ok = 0; 2367 ${ac_c_conftest_c89_main} 2368 ${ac_c_conftest_c99_main} 2369 ${ac_c_conftest_c11_main} 2370 return ok; 2371} 2372" 2373 2374# Test code for whether the C compiler supports C99 (complete). 2375ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2376${ac_c_conftest_c99_globals} 2377 2378int 2379main (int argc, char **argv) 2380{ 2381 int ok = 0; 2382 ${ac_c_conftest_c89_main} 2383 ${ac_c_conftest_c99_main} 2384 return ok; 2385} 2386" 2387 2388# Test code for whether the C compiler supports C89 (complete). 2389ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2390 2391int 2392main (int argc, char **argv) 2393{ 2394 int ok = 0; 2395 ${ac_c_conftest_c89_main} 2396 return ok; 2397} 2398" 2399 2400as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2401as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2402as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2403as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2404as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2405as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2406as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2407as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2408as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2409 2410# Auxiliary files required by this configure script. 2411ac_aux_files="ar-lib config.guess config.sub compile missing install-sh" 2412 2413# Locations in which to look for auxiliary files. 2414ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2415 2416# Search for a directory containing all of the required auxiliary files, 2417# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2418# If we don't find one directory that contains all the files we need, 2419# we report the set of missing files from the *first* directory in 2420# $ac_aux_dir_candidates and give up. 2421ac_missing_aux_files="" 2422ac_first_candidate=: 2423printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2425as_found=false 2426for as_dir in $ac_aux_dir_candidates 2427do 2428 IFS=$as_save_IFS 2429 case $as_dir in #((( 2430 '') as_dir=./ ;; 2431 */) ;; 2432 *) as_dir=$as_dir/ ;; 2433 esac 2434 as_found=: 2435 2436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2437 ac_aux_dir_found=yes 2438 ac_install_sh= 2439 for ac_aux in $ac_aux_files 2440 do 2441 # As a special case, if "install-sh" is required, that requirement 2442 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2443 # and $ac_install_sh is set appropriately for whichever one is found. 2444 if test x"$ac_aux" = x"install-sh" 2445 then 2446 if test -f "${as_dir}install-sh"; then 2447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2448 ac_install_sh="${as_dir}install-sh -c" 2449 elif test -f "${as_dir}install.sh"; then 2450 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2451 ac_install_sh="${as_dir}install.sh -c" 2452 elif test -f "${as_dir}shtool"; then 2453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2454 ac_install_sh="${as_dir}shtool install -c" 2455 else 2456 ac_aux_dir_found=no 2457 if $ac_first_candidate; then 2458 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2459 else 2460 break 2461 fi 2462 fi 2463 else 2464 if test -f "${as_dir}${ac_aux}"; then 2465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2466 else 2467 ac_aux_dir_found=no 2468 if $ac_first_candidate; then 2469 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2470 else 2471 break 2472 fi 2473 fi 2474 fi 2475 done 2476 if test "$ac_aux_dir_found" = yes; then 2477 ac_aux_dir="$as_dir" 2478 break 2479 fi 2480 ac_first_candidate=false 2481 2482 as_found=false 2483done 2484IFS=$as_save_IFS 2485if $as_found 2486then : 2487 2488else $as_nop 2489 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2490fi 2491 2492 2493# These three variables are undocumented and unsupported, 2494# and are intended to be withdrawn in a future Autoconf release. 2495# They can cause serious problems if a builder's source tree is in a directory 2496# whose full name contains unusual characters. 2497if test -f "${ac_aux_dir}config.guess"; then 2498 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2499fi 2500if test -f "${ac_aux_dir}config.sub"; then 2501 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2502fi 2503if test -f "$ac_aux_dir/configure"; then 2504 ac_configure="$SHELL ${ac_aux_dir}configure" 2505fi 2506 2507# Check that the precious variables saved in the cache have kept the same 2508# value. 2509ac_cache_corrupted=false 2510for ac_var in $ac_precious_vars; do 2511 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2512 eval ac_new_set=\$ac_env_${ac_var}_set 2513 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2514 eval ac_new_val=\$ac_env_${ac_var}_value 2515 case $ac_old_set,$ac_new_set in 2516 set,) 2517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2518printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2519 ac_cache_corrupted=: ;; 2520 ,set) 2521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2522printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2523 ac_cache_corrupted=: ;; 2524 ,);; 2525 *) 2526 if test "x$ac_old_val" != "x$ac_new_val"; then 2527 # differences in whitespace do not lead to failure. 2528 ac_old_val_w=`echo x $ac_old_val` 2529 ac_new_val_w=`echo x $ac_new_val` 2530 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2532printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2533 ac_cache_corrupted=: 2534 else 2535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2536printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2537 eval $ac_var=\$ac_old_val 2538 fi 2539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2540printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2542printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2543 fi;; 2544 esac 2545 # Pass precious variables to config.status. 2546 if test "$ac_new_set" = set; then 2547 case $ac_new_val in 2548 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2549 *) ac_arg=$ac_var=$ac_new_val ;; 2550 esac 2551 case " $ac_configure_args " in 2552 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2553 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2554 esac 2555 fi 2556done 2557if $ac_cache_corrupted; then 2558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2559printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2561printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2562 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2563 and start over" "$LINENO" 5 2564fi 2565## -------------------- ## 2566## Main body of script. ## 2567## -------------------- ## 2568 2569ac_ext=c 2570ac_cpp='$CPP $CPPFLAGS' 2571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2573ac_compiler_gnu=$ac_cv_c_compiler_gnu 2574 2575 2576am__api_version='1.16' 2577 2578 2579 2580 # Find a good install program. We prefer a C program (faster), 2581# so one script is as good as another. But avoid the broken or 2582# incompatible versions: 2583# SysV /etc/install, /usr/sbin/install 2584# SunOS /usr/etc/install 2585# IRIX /sbin/install 2586# AIX /bin/install 2587# AmigaOS /C/install, which installs bootblocks on floppy discs 2588# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2589# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2590# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2591# OS/2's system install, which has a completely different semantic 2592# ./install, which can be erroneously created by make from ./install.sh. 2593# Reject install programs that cannot install multiple files. 2594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2595printf %s "checking for a BSD-compatible install... " >&6; } 2596if test -z "$INSTALL"; then 2597if test ${ac_cv_path_install+y} 2598then : 2599 printf %s "(cached) " >&6 2600else $as_nop 2601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2602for as_dir in $PATH 2603do 2604 IFS=$as_save_IFS 2605 case $as_dir in #((( 2606 '') as_dir=./ ;; 2607 */) ;; 2608 *) as_dir=$as_dir/ ;; 2609 esac 2610 # Account for fact that we put trailing slashes in our PATH walk. 2611case $as_dir in #(( 2612 ./ | /[cC]/* | \ 2613 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2614 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2615 /usr/ucb/* ) ;; 2616 *) 2617 # OSF1 and SCO ODT 3.0 have their own names for install. 2618 # Don't use installbsd from OSF since it installs stuff as root 2619 # by default. 2620 for ac_prog in ginstall scoinst install; do 2621 for ac_exec_ext in '' $ac_executable_extensions; do 2622 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2623 if test $ac_prog = install && 2624 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2625 # AIX install. It has an incompatible calling convention. 2626 : 2627 elif test $ac_prog = install && 2628 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2629 # program-specific install script used by HP pwplus--don't use. 2630 : 2631 else 2632 rm -rf conftest.one conftest.two conftest.dir 2633 echo one > conftest.one 2634 echo two > conftest.two 2635 mkdir conftest.dir 2636 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2637 test -s conftest.one && test -s conftest.two && 2638 test -s conftest.dir/conftest.one && 2639 test -s conftest.dir/conftest.two 2640 then 2641 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2642 break 3 2643 fi 2644 fi 2645 fi 2646 done 2647 done 2648 ;; 2649esac 2650 2651 done 2652IFS=$as_save_IFS 2653 2654rm -rf conftest.one conftest.two conftest.dir 2655 2656fi 2657 if test ${ac_cv_path_install+y}; then 2658 INSTALL=$ac_cv_path_install 2659 else 2660 # As a last resort, use the slow shell script. Don't cache a 2661 # value for INSTALL within a source directory, because that will 2662 # break other packages using the cache if that directory is 2663 # removed, or if the value is a relative name. 2664 INSTALL=$ac_install_sh 2665 fi 2666fi 2667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2668printf "%s\n" "$INSTALL" >&6; } 2669 2670# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2671# It thinks the first close brace ends the variable substitution. 2672test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2673 2674test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2675 2676test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2677 2678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2679printf %s "checking whether build environment is sane... " >&6; } 2680# Reject unsafe characters in $srcdir or the absolute working directory 2681# name. Accept space and tab only in the latter. 2682am_lf=' 2683' 2684case `pwd` in 2685 *[\\\"\#\$\&\'\`$am_lf]*) 2686 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2687esac 2688case $srcdir in 2689 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2690 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2691esac 2692 2693# Do 'set' in a subshell so we don't clobber the current shell's 2694# arguments. Must try -L first in case configure is actually a 2695# symlink; some systems play weird games with the mod time of symlinks 2696# (eg FreeBSD returns the mod time of the symlink's containing 2697# directory). 2698if ( 2699 am_has_slept=no 2700 for am_try in 1 2; do 2701 echo "timestamp, slept: $am_has_slept" > conftest.file 2702 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2703 if test "$*" = "X"; then 2704 # -L didn't work. 2705 set X `ls -t "$srcdir/configure" conftest.file` 2706 fi 2707 if test "$*" != "X $srcdir/configure conftest.file" \ 2708 && test "$*" != "X conftest.file $srcdir/configure"; then 2709 2710 # If neither matched, then we have a broken ls. This can happen 2711 # if, for instance, CONFIG_SHELL is bash and it inherits a 2712 # broken ls alias from the environment. This has actually 2713 # happened. Such a system could not be considered "sane". 2714 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2715 alias in your environment" "$LINENO" 5 2716 fi 2717 if test "$2" = conftest.file || test $am_try -eq 2; then 2718 break 2719 fi 2720 # Just in case. 2721 sleep 1 2722 am_has_slept=yes 2723 done 2724 test "$2" = conftest.file 2725 ) 2726then 2727 # Ok. 2728 : 2729else 2730 as_fn_error $? "newly created file is older than distributed files! 2731Check your system clock" "$LINENO" 5 2732fi 2733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2734printf "%s\n" "yes" >&6; } 2735# If we didn't sleep, we still need to ensure time stamps of config.status and 2736# generated files are strictly newer. 2737am_sleep_pid= 2738if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2739 ( sleep 1 ) & 2740 am_sleep_pid=$! 2741fi 2742 2743rm -f conftest.file 2744 2745test "$program_prefix" != NONE && 2746 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2747# Use a double $ so make ignores it. 2748test "$program_suffix" != NONE && 2749 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2750# Double any \ or $. 2751# By default was `s,x,x', remove it if useless. 2752ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2753program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2754 2755 2756# Expand $ac_aux_dir to an absolute path. 2757am_aux_dir=`cd "$ac_aux_dir" && pwd` 2758 2759 2760 if test x"${MISSING+set}" != xset; then 2761 MISSING="\${SHELL} '$am_aux_dir/missing'" 2762fi 2763# Use eval to expand $SHELL 2764if eval "$MISSING --is-lightweight"; then 2765 am_missing_run="$MISSING " 2766else 2767 am_missing_run= 2768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2769printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2770fi 2771 2772if test x"${install_sh+set}" != xset; then 2773 case $am_aux_dir in 2774 *\ * | *\ *) 2775 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2776 *) 2777 install_sh="\${SHELL} $am_aux_dir/install-sh" 2778 esac 2779fi 2780 2781# Installed binaries are usually stripped using 'strip' when the user 2782# run "make install-strip". However 'strip' might not be the right 2783# tool to use in cross-compilation environments, therefore Automake 2784# will honor the 'STRIP' environment variable to overrule this program. 2785if test "$cross_compiling" != no; then 2786 if test -n "$ac_tool_prefix"; then 2787 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2788set dummy ${ac_tool_prefix}strip; ac_word=$2 2789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2790printf %s "checking for $ac_word... " >&6; } 2791if test ${ac_cv_prog_STRIP+y} 2792then : 2793 printf %s "(cached) " >&6 2794else $as_nop 2795 if test -n "$STRIP"; then 2796 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2797else 2798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2799for as_dir in $PATH 2800do 2801 IFS=$as_save_IFS 2802 case $as_dir in #((( 2803 '') as_dir=./ ;; 2804 */) ;; 2805 *) as_dir=$as_dir/ ;; 2806 esac 2807 for ac_exec_ext in '' $ac_executable_extensions; do 2808 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2809 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2811 break 2 2812 fi 2813done 2814 done 2815IFS=$as_save_IFS 2816 2817fi 2818fi 2819STRIP=$ac_cv_prog_STRIP 2820if test -n "$STRIP"; then 2821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2822printf "%s\n" "$STRIP" >&6; } 2823else 2824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2825printf "%s\n" "no" >&6; } 2826fi 2827 2828 2829fi 2830if test -z "$ac_cv_prog_STRIP"; then 2831 ac_ct_STRIP=$STRIP 2832 # Extract the first word of "strip", so it can be a program name with args. 2833set dummy strip; ac_word=$2 2834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2835printf %s "checking for $ac_word... " >&6; } 2836if test ${ac_cv_prog_ac_ct_STRIP+y} 2837then : 2838 printf %s "(cached) " >&6 2839else $as_nop 2840 if test -n "$ac_ct_STRIP"; then 2841 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2842else 2843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2844for as_dir in $PATH 2845do 2846 IFS=$as_save_IFS 2847 case $as_dir in #((( 2848 '') as_dir=./ ;; 2849 */) ;; 2850 *) as_dir=$as_dir/ ;; 2851 esac 2852 for ac_exec_ext in '' $ac_executable_extensions; do 2853 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2854 ac_cv_prog_ac_ct_STRIP="strip" 2855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2856 break 2 2857 fi 2858done 2859 done 2860IFS=$as_save_IFS 2861 2862fi 2863fi 2864ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2865if test -n "$ac_ct_STRIP"; then 2866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2867printf "%s\n" "$ac_ct_STRIP" >&6; } 2868else 2869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2870printf "%s\n" "no" >&6; } 2871fi 2872 2873 if test "x$ac_ct_STRIP" = x; then 2874 STRIP=":" 2875 else 2876 case $cross_compiling:$ac_tool_warned in 2877yes:) 2878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2879printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2880ac_tool_warned=yes ;; 2881esac 2882 STRIP=$ac_ct_STRIP 2883 fi 2884else 2885 STRIP="$ac_cv_prog_STRIP" 2886fi 2887 2888fi 2889INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2890 2891 2892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2893printf %s "checking for a race-free mkdir -p... " >&6; } 2894if test -z "$MKDIR_P"; then 2895 if test ${ac_cv_path_mkdir+y} 2896then : 2897 printf %s "(cached) " >&6 2898else $as_nop 2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2900for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2901do 2902 IFS=$as_save_IFS 2903 case $as_dir in #((( 2904 '') as_dir=./ ;; 2905 */) ;; 2906 *) as_dir=$as_dir/ ;; 2907 esac 2908 for ac_prog in mkdir gmkdir; do 2909 for ac_exec_ext in '' $ac_executable_extensions; do 2910 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2911 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2912 'mkdir ('*'coreutils) '* | \ 2913 'BusyBox '* | \ 2914 'mkdir (fileutils) '4.1*) 2915 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2916 break 3;; 2917 esac 2918 done 2919 done 2920 done 2921IFS=$as_save_IFS 2922 2923fi 2924 2925 test -d ./--version && rmdir ./--version 2926 if test ${ac_cv_path_mkdir+y}; then 2927 MKDIR_P="$ac_cv_path_mkdir -p" 2928 else 2929 # As a last resort, use the slow shell script. Don't cache a 2930 # value for MKDIR_P within a source directory, because that will 2931 # break other packages using the cache if that directory is 2932 # removed, or if the value is a relative name. 2933 MKDIR_P="$ac_install_sh -d" 2934 fi 2935fi 2936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2937printf "%s\n" "$MKDIR_P" >&6; } 2938 2939for ac_prog in gawk mawk nawk awk 2940do 2941 # Extract the first word of "$ac_prog", so it can be a program name with args. 2942set dummy $ac_prog; ac_word=$2 2943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2944printf %s "checking for $ac_word... " >&6; } 2945if test ${ac_cv_prog_AWK+y} 2946then : 2947 printf %s "(cached) " >&6 2948else $as_nop 2949 if test -n "$AWK"; then 2950 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2951else 2952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2953for as_dir in $PATH 2954do 2955 IFS=$as_save_IFS 2956 case $as_dir in #((( 2957 '') as_dir=./ ;; 2958 */) ;; 2959 *) as_dir=$as_dir/ ;; 2960 esac 2961 for ac_exec_ext in '' $ac_executable_extensions; do 2962 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2963 ac_cv_prog_AWK="$ac_prog" 2964 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2965 break 2 2966 fi 2967done 2968 done 2969IFS=$as_save_IFS 2970 2971fi 2972fi 2973AWK=$ac_cv_prog_AWK 2974if test -n "$AWK"; then 2975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2976printf "%s\n" "$AWK" >&6; } 2977else 2978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2979printf "%s\n" "no" >&6; } 2980fi 2981 2982 2983 test -n "$AWK" && break 2984done 2985 2986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2987printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2988set x ${MAKE-make} 2989ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2990if eval test \${ac_cv_prog_make_${ac_make}_set+y} 2991then : 2992 printf %s "(cached) " >&6 2993else $as_nop 2994 cat >conftest.make <<\_ACEOF 2995SHELL = /bin/sh 2996all: 2997 @echo '@@@%%%=$(MAKE)=@@@%%%' 2998_ACEOF 2999# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3000case `${MAKE-make} -f conftest.make 2>/dev/null` in 3001 *@@@%%%=?*=@@@%%%*) 3002 eval ac_cv_prog_make_${ac_make}_set=yes;; 3003 *) 3004 eval ac_cv_prog_make_${ac_make}_set=no;; 3005esac 3006rm -f conftest.make 3007fi 3008if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3010printf "%s\n" "yes" >&6; } 3011 SET_MAKE= 3012else 3013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3014printf "%s\n" "no" >&6; } 3015 SET_MAKE="MAKE=${MAKE-make}" 3016fi 3017 3018rm -rf .tst 2>/dev/null 3019mkdir .tst 2>/dev/null 3020if test -d .tst; then 3021 am__leading_dot=. 3022else 3023 am__leading_dot=_ 3024fi 3025rmdir .tst 2>/dev/null 3026 3027# Check whether --enable-silent-rules was given. 3028if test ${enable_silent_rules+y} 3029then : 3030 enableval=$enable_silent_rules; 3031fi 3032 3033case $enable_silent_rules in # ((( 3034 yes) AM_DEFAULT_VERBOSITY=0;; 3035 no) AM_DEFAULT_VERBOSITY=1;; 3036 *) AM_DEFAULT_VERBOSITY=1;; 3037esac 3038am_make=${MAKE-make} 3039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3040printf %s "checking whether $am_make supports nested variables... " >&6; } 3041if test ${am_cv_make_support_nested_variables+y} 3042then : 3043 printf %s "(cached) " >&6 3044else $as_nop 3045 if printf "%s\n" 'TRUE=$(BAR$(V)) 3046BAR0=false 3047BAR1=true 3048V=1 3049am__doit: 3050 @$(TRUE) 3051.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3052 am_cv_make_support_nested_variables=yes 3053else 3054 am_cv_make_support_nested_variables=no 3055fi 3056fi 3057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3058printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3059if test $am_cv_make_support_nested_variables = yes; then 3060 AM_V='$(V)' 3061 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3062else 3063 AM_V=$AM_DEFAULT_VERBOSITY 3064 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3065fi 3066AM_BACKSLASH='\' 3067 3068if test "`cd $srcdir && pwd`" != "`pwd`"; then 3069 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3070 # is not polluted with repeated "-I." 3071 am__isrc=' -I$(srcdir)' 3072 # test to see if srcdir already configured 3073 if test -f $srcdir/config.status; then 3074 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3075 fi 3076fi 3077 3078# test whether we have cygpath 3079if test -z "$CYGPATH_W"; then 3080 if (cygpath --version) >/dev/null 2>/dev/null; then 3081 CYGPATH_W='cygpath -w' 3082 else 3083 CYGPATH_W=echo 3084 fi 3085fi 3086 3087 3088# Define the identity of the package. 3089 PACKAGE='xedit' 3090 VERSION='1.2.3' 3091 3092 3093printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3094 3095 3096printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3097 3098# Some tools Automake needs. 3099 3100ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3101 3102 3103AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3104 3105 3106AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3107 3108 3109AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3110 3111 3112MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3113 3114# For better backward compatibility. To be removed once Automake 1.9.x 3115# dies out for good. For more background, see: 3116# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3117# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3118mkdir_p='$(MKDIR_P)' 3119 3120# We need awk for the "check" target (and possibly the TAP driver). The 3121# system "awk" is bad on some platforms. 3122# Always define AMTAR for backward compatibility. Yes, it's still used 3123# in the wild :-( We should find a proper way to deprecate it ... 3124AMTAR='$${TAR-tar}' 3125 3126 3127# We'll loop over all known methods to create a tar archive until one works. 3128_am_tools='gnutar pax cpio none' 3129 3130am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3131 3132 3133 3134 3135 3136# Variables for tags utilities; see am/tags.am 3137if test -z "$CTAGS"; then 3138 CTAGS=ctags 3139fi 3140 3141if test -z "$ETAGS"; then 3142 ETAGS=etags 3143fi 3144 3145if test -z "$CSCOPE"; then 3146 CSCOPE=cscope 3147fi 3148 3149 3150 3151# POSIX will say in a future version that running "rm -f" with no argument 3152# is OK; and we want to be able to make that assumption in our Makefile 3153# recipes. So use an aggressive probe to check that the usage we want is 3154# actually supported "in the wild" to an acceptable degree. 3155# See automake bug#10828. 3156# To make any issue more visible, cause the running configure to be aborted 3157# by default if the 'rm' program in use doesn't match our expectations; the 3158# user can still override this though. 3159if rm -f && rm -fr && rm -rf; then : OK; else 3160 cat >&2 <<'END' 3161Oops! 3162 3163Your 'rm' program seems unable to run without file operands specified 3164on the command line, even when the '-f' option is present. This is contrary 3165to the behaviour of most rm programs out there, and not conforming with 3166the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3167 3168Please tell bug-automake@gnu.org about your system, including the value 3169of your $PATH and any error possibly output before this message. This 3170can help us improve future automake versions. 3171 3172END 3173 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3174 echo 'Configuration will proceed anyway, since you have set the' >&2 3175 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3176 echo >&2 3177 else 3178 cat >&2 <<'END' 3179Aborting the configuration process, to ensure you take notice of the issue. 3180 3181You can download and install GNU coreutils to get an 'rm' implementation 3182that behaves properly: <https://www.gnu.org/software/coreutils/>. 3183 3184If you want to complete the configuration process using your problematic 3185'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3186to "yes", and re-run configure. 3187 3188END 3189 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3190 fi 3191fi 3192 3193 3194# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215DEPDIR="${am__leading_dot}deps" 3216 3217ac_config_commands="$ac_config_commands depfiles" 3218 3219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3220printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3221cat > confinc.mk << 'END' 3222am__doit: 3223 @echo this is the am__doit target >confinc.out 3224.PHONY: am__doit 3225END 3226am__include="#" 3227am__quote= 3228# BSD make does it like this. 3229echo '.include "confinc.mk" # ignored' > confmf.BSD 3230# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3231echo 'include confinc.mk # ignored' > confmf.GNU 3232_am_result=no 3233for s in GNU BSD; do 3234 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3235 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3236 ac_status=$? 3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3238 (exit $ac_status); } 3239 case $?:`cat confinc.out 2>/dev/null` in #( 3240 '0:this is the am__doit target') : 3241 case $s in #( 3242 BSD) : 3243 am__include='.include' am__quote='"' ;; #( 3244 *) : 3245 am__include='include' am__quote='' ;; 3246esac ;; #( 3247 *) : 3248 ;; 3249esac 3250 if test "$am__include" != "#"; then 3251 _am_result="yes ($s style)" 3252 break 3253 fi 3254done 3255rm -f confinc.* confmf.* 3256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3257printf "%s\n" "${_am_result}" >&6; } 3258 3259# Check whether --enable-dependency-tracking was given. 3260if test ${enable_dependency_tracking+y} 3261then : 3262 enableval=$enable_dependency_tracking; 3263fi 3264 3265if test "x$enable_dependency_tracking" != xno; then 3266 am_depcomp="$ac_aux_dir/depcomp" 3267 AMDEPBACKSLASH='\' 3268 am__nodep='_no' 3269fi 3270 if test "x$enable_dependency_tracking" != xno; then 3271 AMDEP_TRUE= 3272 AMDEP_FALSE='#' 3273else 3274 AMDEP_TRUE='#' 3275 AMDEP_FALSE= 3276fi 3277 3278 3279ac_ext=c 3280ac_cpp='$CPP $CPPFLAGS' 3281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3283ac_compiler_gnu=$ac_cv_c_compiler_gnu 3284if test -n "$ac_tool_prefix"; then 3285 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3286set dummy ${ac_tool_prefix}gcc; ac_word=$2 3287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3288printf %s "checking for $ac_word... " >&6; } 3289if test ${ac_cv_prog_CC+y} 3290then : 3291 printf %s "(cached) " >&6 3292else $as_nop 3293 if test -n "$CC"; then 3294 ac_cv_prog_CC="$CC" # Let the user override the test. 3295else 3296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3297for as_dir in $PATH 3298do 3299 IFS=$as_save_IFS 3300 case $as_dir in #((( 3301 '') as_dir=./ ;; 3302 */) ;; 3303 *) as_dir=$as_dir/ ;; 3304 esac 3305 for ac_exec_ext in '' $ac_executable_extensions; do 3306 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3307 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3308 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3309 break 2 3310 fi 3311done 3312 done 3313IFS=$as_save_IFS 3314 3315fi 3316fi 3317CC=$ac_cv_prog_CC 3318if test -n "$CC"; then 3319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3320printf "%s\n" "$CC" >&6; } 3321else 3322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3323printf "%s\n" "no" >&6; } 3324fi 3325 3326 3327fi 3328if test -z "$ac_cv_prog_CC"; then 3329 ac_ct_CC=$CC 3330 # Extract the first word of "gcc", so it can be a program name with args. 3331set dummy gcc; ac_word=$2 3332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3333printf %s "checking for $ac_word... " >&6; } 3334if test ${ac_cv_prog_ac_ct_CC+y} 3335then : 3336 printf %s "(cached) " >&6 3337else $as_nop 3338 if test -n "$ac_ct_CC"; then 3339 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3340else 3341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3342for as_dir in $PATH 3343do 3344 IFS=$as_save_IFS 3345 case $as_dir in #((( 3346 '') as_dir=./ ;; 3347 */) ;; 3348 *) as_dir=$as_dir/ ;; 3349 esac 3350 for ac_exec_ext in '' $ac_executable_extensions; do 3351 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3352 ac_cv_prog_ac_ct_CC="gcc" 3353 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3354 break 2 3355 fi 3356done 3357 done 3358IFS=$as_save_IFS 3359 3360fi 3361fi 3362ac_ct_CC=$ac_cv_prog_ac_ct_CC 3363if test -n "$ac_ct_CC"; then 3364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3365printf "%s\n" "$ac_ct_CC" >&6; } 3366else 3367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3368printf "%s\n" "no" >&6; } 3369fi 3370 3371 if test "x$ac_ct_CC" = x; then 3372 CC="" 3373 else 3374 case $cross_compiling:$ac_tool_warned in 3375yes:) 3376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3377printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3378ac_tool_warned=yes ;; 3379esac 3380 CC=$ac_ct_CC 3381 fi 3382else 3383 CC="$ac_cv_prog_CC" 3384fi 3385 3386if test -z "$CC"; then 3387 if test -n "$ac_tool_prefix"; then 3388 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3389set dummy ${ac_tool_prefix}cc; ac_word=$2 3390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3391printf %s "checking for $ac_word... " >&6; } 3392if test ${ac_cv_prog_CC+y} 3393then : 3394 printf %s "(cached) " >&6 3395else $as_nop 3396 if test -n "$CC"; then 3397 ac_cv_prog_CC="$CC" # Let the user override the test. 3398else 3399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3400for as_dir in $PATH 3401do 3402 IFS=$as_save_IFS 3403 case $as_dir in #((( 3404 '') as_dir=./ ;; 3405 */) ;; 3406 *) as_dir=$as_dir/ ;; 3407 esac 3408 for ac_exec_ext in '' $ac_executable_extensions; do 3409 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3410 ac_cv_prog_CC="${ac_tool_prefix}cc" 3411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3412 break 2 3413 fi 3414done 3415 done 3416IFS=$as_save_IFS 3417 3418fi 3419fi 3420CC=$ac_cv_prog_CC 3421if test -n "$CC"; then 3422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3423printf "%s\n" "$CC" >&6; } 3424else 3425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3426printf "%s\n" "no" >&6; } 3427fi 3428 3429 3430 fi 3431fi 3432if test -z "$CC"; then 3433 # Extract the first word of "cc", so it can be a program name with args. 3434set dummy cc; ac_word=$2 3435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3436printf %s "checking for $ac_word... " >&6; } 3437if test ${ac_cv_prog_CC+y} 3438then : 3439 printf %s "(cached) " >&6 3440else $as_nop 3441 if test -n "$CC"; then 3442 ac_cv_prog_CC="$CC" # Let the user override the test. 3443else 3444 ac_prog_rejected=no 3445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3446for as_dir in $PATH 3447do 3448 IFS=$as_save_IFS 3449 case $as_dir in #((( 3450 '') as_dir=./ ;; 3451 */) ;; 3452 *) as_dir=$as_dir/ ;; 3453 esac 3454 for ac_exec_ext in '' $ac_executable_extensions; do 3455 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3456 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3457 ac_prog_rejected=yes 3458 continue 3459 fi 3460 ac_cv_prog_CC="cc" 3461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3462 break 2 3463 fi 3464done 3465 done 3466IFS=$as_save_IFS 3467 3468if test $ac_prog_rejected = yes; then 3469 # We found a bogon in the path, so make sure we never use it. 3470 set dummy $ac_cv_prog_CC 3471 shift 3472 if test $# != 0; then 3473 # We chose a different compiler from the bogus one. 3474 # However, it has the same basename, so the bogon will be chosen 3475 # first if we set CC to just the basename; use the full file name. 3476 shift 3477 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3478 fi 3479fi 3480fi 3481fi 3482CC=$ac_cv_prog_CC 3483if test -n "$CC"; then 3484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3485printf "%s\n" "$CC" >&6; } 3486else 3487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3488printf "%s\n" "no" >&6; } 3489fi 3490 3491 3492fi 3493if test -z "$CC"; then 3494 if test -n "$ac_tool_prefix"; then 3495 for ac_prog in cl.exe 3496 do 3497 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3498set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3500printf %s "checking for $ac_word... " >&6; } 3501if test ${ac_cv_prog_CC+y} 3502then : 3503 printf %s "(cached) " >&6 3504else $as_nop 3505 if test -n "$CC"; then 3506 ac_cv_prog_CC="$CC" # Let the user override the test. 3507else 3508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3509for as_dir in $PATH 3510do 3511 IFS=$as_save_IFS 3512 case $as_dir in #((( 3513 '') as_dir=./ ;; 3514 */) ;; 3515 *) as_dir=$as_dir/ ;; 3516 esac 3517 for ac_exec_ext in '' $ac_executable_extensions; do 3518 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3519 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3521 break 2 3522 fi 3523done 3524 done 3525IFS=$as_save_IFS 3526 3527fi 3528fi 3529CC=$ac_cv_prog_CC 3530if test -n "$CC"; then 3531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3532printf "%s\n" "$CC" >&6; } 3533else 3534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3535printf "%s\n" "no" >&6; } 3536fi 3537 3538 3539 test -n "$CC" && break 3540 done 3541fi 3542if test -z "$CC"; then 3543 ac_ct_CC=$CC 3544 for ac_prog in cl.exe 3545do 3546 # Extract the first word of "$ac_prog", so it can be a program name with args. 3547set dummy $ac_prog; ac_word=$2 3548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3549printf %s "checking for $ac_word... " >&6; } 3550if test ${ac_cv_prog_ac_ct_CC+y} 3551then : 3552 printf %s "(cached) " >&6 3553else $as_nop 3554 if test -n "$ac_ct_CC"; then 3555 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3556else 3557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3558for as_dir in $PATH 3559do 3560 IFS=$as_save_IFS 3561 case $as_dir in #((( 3562 '') as_dir=./ ;; 3563 */) ;; 3564 *) as_dir=$as_dir/ ;; 3565 esac 3566 for ac_exec_ext in '' $ac_executable_extensions; do 3567 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3568 ac_cv_prog_ac_ct_CC="$ac_prog" 3569 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3570 break 2 3571 fi 3572done 3573 done 3574IFS=$as_save_IFS 3575 3576fi 3577fi 3578ac_ct_CC=$ac_cv_prog_ac_ct_CC 3579if test -n "$ac_ct_CC"; then 3580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3581printf "%s\n" "$ac_ct_CC" >&6; } 3582else 3583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3584printf "%s\n" "no" >&6; } 3585fi 3586 3587 3588 test -n "$ac_ct_CC" && break 3589done 3590 3591 if test "x$ac_ct_CC" = x; then 3592 CC="" 3593 else 3594 case $cross_compiling:$ac_tool_warned in 3595yes:) 3596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3597printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3598ac_tool_warned=yes ;; 3599esac 3600 CC=$ac_ct_CC 3601 fi 3602fi 3603 3604fi 3605if test -z "$CC"; then 3606 if test -n "$ac_tool_prefix"; then 3607 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3608set dummy ${ac_tool_prefix}clang; ac_word=$2 3609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3610printf %s "checking for $ac_word... " >&6; } 3611if test ${ac_cv_prog_CC+y} 3612then : 3613 printf %s "(cached) " >&6 3614else $as_nop 3615 if test -n "$CC"; then 3616 ac_cv_prog_CC="$CC" # Let the user override the test. 3617else 3618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3619for as_dir in $PATH 3620do 3621 IFS=$as_save_IFS 3622 case $as_dir in #((( 3623 '') as_dir=./ ;; 3624 */) ;; 3625 *) as_dir=$as_dir/ ;; 3626 esac 3627 for ac_exec_ext in '' $ac_executable_extensions; do 3628 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3629 ac_cv_prog_CC="${ac_tool_prefix}clang" 3630 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3631 break 2 3632 fi 3633done 3634 done 3635IFS=$as_save_IFS 3636 3637fi 3638fi 3639CC=$ac_cv_prog_CC 3640if test -n "$CC"; then 3641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3642printf "%s\n" "$CC" >&6; } 3643else 3644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3645printf "%s\n" "no" >&6; } 3646fi 3647 3648 3649fi 3650if test -z "$ac_cv_prog_CC"; then 3651 ac_ct_CC=$CC 3652 # Extract the first word of "clang", so it can be a program name with args. 3653set dummy clang; ac_word=$2 3654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3655printf %s "checking for $ac_word... " >&6; } 3656if test ${ac_cv_prog_ac_ct_CC+y} 3657then : 3658 printf %s "(cached) " >&6 3659else $as_nop 3660 if test -n "$ac_ct_CC"; then 3661 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3662else 3663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3664for as_dir in $PATH 3665do 3666 IFS=$as_save_IFS 3667 case $as_dir in #((( 3668 '') as_dir=./ ;; 3669 */) ;; 3670 *) as_dir=$as_dir/ ;; 3671 esac 3672 for ac_exec_ext in '' $ac_executable_extensions; do 3673 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3674 ac_cv_prog_ac_ct_CC="clang" 3675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3676 break 2 3677 fi 3678done 3679 done 3680IFS=$as_save_IFS 3681 3682fi 3683fi 3684ac_ct_CC=$ac_cv_prog_ac_ct_CC 3685if test -n "$ac_ct_CC"; then 3686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3687printf "%s\n" "$ac_ct_CC" >&6; } 3688else 3689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3690printf "%s\n" "no" >&6; } 3691fi 3692 3693 if test "x$ac_ct_CC" = x; then 3694 CC="" 3695 else 3696 case $cross_compiling:$ac_tool_warned in 3697yes:) 3698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3699printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3700ac_tool_warned=yes ;; 3701esac 3702 CC=$ac_ct_CC 3703 fi 3704else 3705 CC="$ac_cv_prog_CC" 3706fi 3707 3708fi 3709 3710 3711test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3712printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3713as_fn_error $? "no acceptable C compiler found in \$PATH 3714See \`config.log' for more details" "$LINENO" 5; } 3715 3716# Provide some information about the compiler. 3717printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3718set X $ac_compile 3719ac_compiler=$2 3720for ac_option in --version -v -V -qversion -version; do 3721 { { ac_try="$ac_compiler $ac_option >&5" 3722case "(($ac_try" in 3723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3724 *) ac_try_echo=$ac_try;; 3725esac 3726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3727printf "%s\n" "$ac_try_echo"; } >&5 3728 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3729 ac_status=$? 3730 if test -s conftest.err; then 3731 sed '10a\ 3732... rest of stderr output deleted ... 3733 10q' conftest.err >conftest.er1 3734 cat conftest.er1 >&5 3735 fi 3736 rm -f conftest.er1 conftest.err 3737 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3738 test $ac_status = 0; } 3739done 3740 3741cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3742/* end confdefs.h. */ 3743 3744int 3745main (void) 3746{ 3747 3748 ; 3749 return 0; 3750} 3751_ACEOF 3752ac_clean_files_save=$ac_clean_files 3753ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3754# Try to create an executable without -o first, disregard a.out. 3755# It will help us diagnose broken compilers, and finding out an intuition 3756# of exeext. 3757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3758printf %s "checking whether the C compiler works... " >&6; } 3759ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3760 3761# The possible output files: 3762ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3763 3764ac_rmfiles= 3765for ac_file in $ac_files 3766do 3767 case $ac_file in 3768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3769 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3770 esac 3771done 3772rm -f $ac_rmfiles 3773 3774if { { ac_try="$ac_link_default" 3775case "(($ac_try" in 3776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3777 *) ac_try_echo=$ac_try;; 3778esac 3779eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3780printf "%s\n" "$ac_try_echo"; } >&5 3781 (eval "$ac_link_default") 2>&5 3782 ac_status=$? 3783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3784 test $ac_status = 0; } 3785then : 3786 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3787# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3788# in a Makefile. We should not override ac_cv_exeext if it was cached, 3789# so that the user can short-circuit this test for compilers unknown to 3790# Autoconf. 3791for ac_file in $ac_files '' 3792do 3793 test -f "$ac_file" || continue 3794 case $ac_file in 3795 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3796 ;; 3797 [ab].out ) 3798 # We found the default executable, but exeext='' is most 3799 # certainly right. 3800 break;; 3801 *.* ) 3802 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3803 then :; else 3804 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3805 fi 3806 # We set ac_cv_exeext here because the later test for it is not 3807 # safe: cross compilers may not add the suffix if given an `-o' 3808 # argument, so we may need to know it at that point already. 3809 # Even if this section looks crufty: it has the advantage of 3810 # actually working. 3811 break;; 3812 * ) 3813 break;; 3814 esac 3815done 3816test "$ac_cv_exeext" = no && ac_cv_exeext= 3817 3818else $as_nop 3819 ac_file='' 3820fi 3821if test -z "$ac_file" 3822then : 3823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3824printf "%s\n" "no" >&6; } 3825printf "%s\n" "$as_me: failed program was:" >&5 3826sed 's/^/| /' conftest.$ac_ext >&5 3827 3828{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3829printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3830as_fn_error 77 "C compiler cannot create executables 3831See \`config.log' for more details" "$LINENO" 5; } 3832else $as_nop 3833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3834printf "%s\n" "yes" >&6; } 3835fi 3836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3837printf %s "checking for C compiler default output file name... " >&6; } 3838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3839printf "%s\n" "$ac_file" >&6; } 3840ac_exeext=$ac_cv_exeext 3841 3842rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3843ac_clean_files=$ac_clean_files_save 3844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3845printf %s "checking for suffix of executables... " >&6; } 3846if { { ac_try="$ac_link" 3847case "(($ac_try" in 3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3849 *) ac_try_echo=$ac_try;; 3850esac 3851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3852printf "%s\n" "$ac_try_echo"; } >&5 3853 (eval "$ac_link") 2>&5 3854 ac_status=$? 3855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3856 test $ac_status = 0; } 3857then : 3858 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3859# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3860# work properly (i.e., refer to `conftest.exe'), while it won't with 3861# `rm'. 3862for ac_file in conftest.exe conftest conftest.*; do 3863 test -f "$ac_file" || continue 3864 case $ac_file in 3865 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3866 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3867 break;; 3868 * ) break;; 3869 esac 3870done 3871else $as_nop 3872 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3873printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3874as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3875See \`config.log' for more details" "$LINENO" 5; } 3876fi 3877rm -f conftest conftest$ac_cv_exeext 3878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3879printf "%s\n" "$ac_cv_exeext" >&6; } 3880 3881rm -f conftest.$ac_ext 3882EXEEXT=$ac_cv_exeext 3883ac_exeext=$EXEEXT 3884cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3885/* end confdefs.h. */ 3886#include <stdio.h> 3887int 3888main (void) 3889{ 3890FILE *f = fopen ("conftest.out", "w"); 3891 return ferror (f) || fclose (f) != 0; 3892 3893 ; 3894 return 0; 3895} 3896_ACEOF 3897ac_clean_files="$ac_clean_files conftest.out" 3898# Check that the compiler produces executables we can run. If not, either 3899# the compiler is broken, or we cross compile. 3900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3901printf %s "checking whether we are cross compiling... " >&6; } 3902if test "$cross_compiling" != yes; then 3903 { { ac_try="$ac_link" 3904case "(($ac_try" in 3905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3906 *) ac_try_echo=$ac_try;; 3907esac 3908eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3909printf "%s\n" "$ac_try_echo"; } >&5 3910 (eval "$ac_link") 2>&5 3911 ac_status=$? 3912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3913 test $ac_status = 0; } 3914 if { ac_try='./conftest$ac_cv_exeext' 3915 { { case "(($ac_try" in 3916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3917 *) ac_try_echo=$ac_try;; 3918esac 3919eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3920printf "%s\n" "$ac_try_echo"; } >&5 3921 (eval "$ac_try") 2>&5 3922 ac_status=$? 3923 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3924 test $ac_status = 0; }; }; then 3925 cross_compiling=no 3926 else 3927 if test "$cross_compiling" = maybe; then 3928 cross_compiling=yes 3929 else 3930 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3931printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3932as_fn_error 77 "cannot run C compiled programs. 3933If you meant to cross compile, use \`--host'. 3934See \`config.log' for more details" "$LINENO" 5; } 3935 fi 3936 fi 3937fi 3938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3939printf "%s\n" "$cross_compiling" >&6; } 3940 3941rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3942ac_clean_files=$ac_clean_files_save 3943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3944printf %s "checking for suffix of object files... " >&6; } 3945if test ${ac_cv_objext+y} 3946then : 3947 printf %s "(cached) " >&6 3948else $as_nop 3949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3950/* end confdefs.h. */ 3951 3952int 3953main (void) 3954{ 3955 3956 ; 3957 return 0; 3958} 3959_ACEOF 3960rm -f conftest.o conftest.obj 3961if { { ac_try="$ac_compile" 3962case "(($ac_try" in 3963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3964 *) ac_try_echo=$ac_try;; 3965esac 3966eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3967printf "%s\n" "$ac_try_echo"; } >&5 3968 (eval "$ac_compile") 2>&5 3969 ac_status=$? 3970 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3971 test $ac_status = 0; } 3972then : 3973 for ac_file in conftest.o conftest.obj conftest.*; do 3974 test -f "$ac_file" || continue; 3975 case $ac_file in 3976 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3977 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3978 break;; 3979 esac 3980done 3981else $as_nop 3982 printf "%s\n" "$as_me: failed program was:" >&5 3983sed 's/^/| /' conftest.$ac_ext >&5 3984 3985{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3986printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3987as_fn_error $? "cannot compute suffix of object files: cannot compile 3988See \`config.log' for more details" "$LINENO" 5; } 3989fi 3990rm -f conftest.$ac_cv_objext conftest.$ac_ext 3991fi 3992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3993printf "%s\n" "$ac_cv_objext" >&6; } 3994OBJEXT=$ac_cv_objext 3995ac_objext=$OBJEXT 3996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3997printf %s "checking whether the compiler supports GNU C... " >&6; } 3998if test ${ac_cv_c_compiler_gnu+y} 3999then : 4000 printf %s "(cached) " >&6 4001else $as_nop 4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4003/* end confdefs.h. */ 4004 4005int 4006main (void) 4007{ 4008#ifndef __GNUC__ 4009 choke me 4010#endif 4011 4012 ; 4013 return 0; 4014} 4015_ACEOF 4016if ac_fn_c_try_compile "$LINENO" 4017then : 4018 ac_compiler_gnu=yes 4019else $as_nop 4020 ac_compiler_gnu=no 4021fi 4022rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4023ac_cv_c_compiler_gnu=$ac_compiler_gnu 4024 4025fi 4026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4027printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4028ac_compiler_gnu=$ac_cv_c_compiler_gnu 4029 4030if test $ac_compiler_gnu = yes; then 4031 GCC=yes 4032else 4033 GCC= 4034fi 4035ac_test_CFLAGS=${CFLAGS+y} 4036ac_save_CFLAGS=$CFLAGS 4037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4038printf %s "checking whether $CC accepts -g... " >&6; } 4039if test ${ac_cv_prog_cc_g+y} 4040then : 4041 printf %s "(cached) " >&6 4042else $as_nop 4043 ac_save_c_werror_flag=$ac_c_werror_flag 4044 ac_c_werror_flag=yes 4045 ac_cv_prog_cc_g=no 4046 CFLAGS="-g" 4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4048/* end confdefs.h. */ 4049 4050int 4051main (void) 4052{ 4053 4054 ; 4055 return 0; 4056} 4057_ACEOF 4058if ac_fn_c_try_compile "$LINENO" 4059then : 4060 ac_cv_prog_cc_g=yes 4061else $as_nop 4062 CFLAGS="" 4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4064/* end confdefs.h. */ 4065 4066int 4067main (void) 4068{ 4069 4070 ; 4071 return 0; 4072} 4073_ACEOF 4074if ac_fn_c_try_compile "$LINENO" 4075then : 4076 4077else $as_nop 4078 ac_c_werror_flag=$ac_save_c_werror_flag 4079 CFLAGS="-g" 4080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4081/* end confdefs.h. */ 4082 4083int 4084main (void) 4085{ 4086 4087 ; 4088 return 0; 4089} 4090_ACEOF 4091if ac_fn_c_try_compile "$LINENO" 4092then : 4093 ac_cv_prog_cc_g=yes 4094fi 4095rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4096fi 4097rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4098fi 4099rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4100 ac_c_werror_flag=$ac_save_c_werror_flag 4101fi 4102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4103printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4104if test $ac_test_CFLAGS; then 4105 CFLAGS=$ac_save_CFLAGS 4106elif test $ac_cv_prog_cc_g = yes; then 4107 if test "$GCC" = yes; then 4108 CFLAGS="-g -O2" 4109 else 4110 CFLAGS="-g" 4111 fi 4112else 4113 if test "$GCC" = yes; then 4114 CFLAGS="-O2" 4115 else 4116 CFLAGS= 4117 fi 4118fi 4119ac_prog_cc_stdc=no 4120if test x$ac_prog_cc_stdc = xno 4121then : 4122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4123printf %s "checking for $CC option to enable C11 features... " >&6; } 4124if test ${ac_cv_prog_cc_c11+y} 4125then : 4126 printf %s "(cached) " >&6 4127else $as_nop 4128 ac_cv_prog_cc_c11=no 4129ac_save_CC=$CC 4130cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4131/* end confdefs.h. */ 4132$ac_c_conftest_c11_program 4133_ACEOF 4134for ac_arg in '' -std=gnu11 4135do 4136 CC="$ac_save_CC $ac_arg" 4137 if ac_fn_c_try_compile "$LINENO" 4138then : 4139 ac_cv_prog_cc_c11=$ac_arg 4140fi 4141rm -f core conftest.err conftest.$ac_objext conftest.beam 4142 test "x$ac_cv_prog_cc_c11" != "xno" && break 4143done 4144rm -f conftest.$ac_ext 4145CC=$ac_save_CC 4146fi 4147 4148if test "x$ac_cv_prog_cc_c11" = xno 4149then : 4150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4151printf "%s\n" "unsupported" >&6; } 4152else $as_nop 4153 if test "x$ac_cv_prog_cc_c11" = x 4154then : 4155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4156printf "%s\n" "none needed" >&6; } 4157else $as_nop 4158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4159printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4160 CC="$CC $ac_cv_prog_cc_c11" 4161fi 4162 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4163 ac_prog_cc_stdc=c11 4164fi 4165fi 4166if test x$ac_prog_cc_stdc = xno 4167then : 4168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4169printf %s "checking for $CC option to enable C99 features... " >&6; } 4170if test ${ac_cv_prog_cc_c99+y} 4171then : 4172 printf %s "(cached) " >&6 4173else $as_nop 4174 ac_cv_prog_cc_c99=no 4175ac_save_CC=$CC 4176cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4177/* end confdefs.h. */ 4178$ac_c_conftest_c99_program 4179_ACEOF 4180for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4181do 4182 CC="$ac_save_CC $ac_arg" 4183 if ac_fn_c_try_compile "$LINENO" 4184then : 4185 ac_cv_prog_cc_c99=$ac_arg 4186fi 4187rm -f core conftest.err conftest.$ac_objext conftest.beam 4188 test "x$ac_cv_prog_cc_c99" != "xno" && break 4189done 4190rm -f conftest.$ac_ext 4191CC=$ac_save_CC 4192fi 4193 4194if test "x$ac_cv_prog_cc_c99" = xno 4195then : 4196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4197printf "%s\n" "unsupported" >&6; } 4198else $as_nop 4199 if test "x$ac_cv_prog_cc_c99" = x 4200then : 4201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4202printf "%s\n" "none needed" >&6; } 4203else $as_nop 4204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4205printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4206 CC="$CC $ac_cv_prog_cc_c99" 4207fi 4208 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4209 ac_prog_cc_stdc=c99 4210fi 4211fi 4212if test x$ac_prog_cc_stdc = xno 4213then : 4214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4215printf %s "checking for $CC option to enable C89 features... " >&6; } 4216if test ${ac_cv_prog_cc_c89+y} 4217then : 4218 printf %s "(cached) " >&6 4219else $as_nop 4220 ac_cv_prog_cc_c89=no 4221ac_save_CC=$CC 4222cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4223/* end confdefs.h. */ 4224$ac_c_conftest_c89_program 4225_ACEOF 4226for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4227do 4228 CC="$ac_save_CC $ac_arg" 4229 if ac_fn_c_try_compile "$LINENO" 4230then : 4231 ac_cv_prog_cc_c89=$ac_arg 4232fi 4233rm -f core conftest.err conftest.$ac_objext conftest.beam 4234 test "x$ac_cv_prog_cc_c89" != "xno" && break 4235done 4236rm -f conftest.$ac_ext 4237CC=$ac_save_CC 4238fi 4239 4240if test "x$ac_cv_prog_cc_c89" = xno 4241then : 4242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4243printf "%s\n" "unsupported" >&6; } 4244else $as_nop 4245 if test "x$ac_cv_prog_cc_c89" = x 4246then : 4247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4248printf "%s\n" "none needed" >&6; } 4249else $as_nop 4250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4251printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4252 CC="$CC $ac_cv_prog_cc_c89" 4253fi 4254 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4255 ac_prog_cc_stdc=c89 4256fi 4257fi 4258 4259ac_ext=c 4260ac_cpp='$CPP $CPPFLAGS' 4261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4263ac_compiler_gnu=$ac_cv_c_compiler_gnu 4264 4265 4266 ac_ext=c 4267ac_cpp='$CPP $CPPFLAGS' 4268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4270ac_compiler_gnu=$ac_cv_c_compiler_gnu 4271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4272printf %s "checking whether $CC understands -c and -o together... " >&6; } 4273if test ${am_cv_prog_cc_c_o+y} 4274then : 4275 printf %s "(cached) " >&6 4276else $as_nop 4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4278/* end confdefs.h. */ 4279 4280int 4281main (void) 4282{ 4283 4284 ; 4285 return 0; 4286} 4287_ACEOF 4288 # Make sure it works both with $CC and with simple cc. 4289 # Following AC_PROG_CC_C_O, we do the test twice because some 4290 # compilers refuse to overwrite an existing .o file with -o, 4291 # though they will create one. 4292 am_cv_prog_cc_c_o=yes 4293 for am_i in 1 2; do 4294 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4295 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4296 ac_status=$? 4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4298 (exit $ac_status); } \ 4299 && test -f conftest2.$ac_objext; then 4300 : OK 4301 else 4302 am_cv_prog_cc_c_o=no 4303 break 4304 fi 4305 done 4306 rm -f core conftest* 4307 unset am_i 4308fi 4309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4310printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4311if test "$am_cv_prog_cc_c_o" != yes; then 4312 # Losing compiler, so override with the script. 4313 # FIXME: It is wrong to rewrite CC. 4314 # But if we don't then we get into trouble of one sort or another. 4315 # A longer-term fix would be to have automake use am__CC in this case, 4316 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4317 CC="$am_aux_dir/compile $CC" 4318fi 4319ac_ext=c 4320ac_cpp='$CPP $CPPFLAGS' 4321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4323ac_compiler_gnu=$ac_cv_c_compiler_gnu 4324 4325 4326depcc="$CC" am_compiler_list= 4327 4328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4329printf %s "checking dependency style of $depcc... " >&6; } 4330if test ${am_cv_CC_dependencies_compiler_type+y} 4331then : 4332 printf %s "(cached) " >&6 4333else $as_nop 4334 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4335 # We make a subdir and do the tests there. Otherwise we can end up 4336 # making bogus files that we don't know about and never remove. For 4337 # instance it was reported that on HP-UX the gcc test will end up 4338 # making a dummy file named 'D' -- because '-MD' means "put the output 4339 # in D". 4340 rm -rf conftest.dir 4341 mkdir conftest.dir 4342 # Copy depcomp to subdir because otherwise we won't find it if we're 4343 # using a relative directory. 4344 cp "$am_depcomp" conftest.dir 4345 cd conftest.dir 4346 # We will build objects and dependencies in a subdirectory because 4347 # it helps to detect inapplicable dependency modes. For instance 4348 # both Tru64's cc and ICC support -MD to output dependencies as a 4349 # side effect of compilation, but ICC will put the dependencies in 4350 # the current directory while Tru64 will put them in the object 4351 # directory. 4352 mkdir sub 4353 4354 am_cv_CC_dependencies_compiler_type=none 4355 if test "$am_compiler_list" = ""; then 4356 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4357 fi 4358 am__universal=false 4359 case " $depcc " in #( 4360 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4361 esac 4362 4363 for depmode in $am_compiler_list; do 4364 # Setup a source with many dependencies, because some compilers 4365 # like to wrap large dependency lists on column 80 (with \), and 4366 # we should not choose a depcomp mode which is confused by this. 4367 # 4368 # We need to recreate these files for each test, as the compiler may 4369 # overwrite some of them when testing with obscure command lines. 4370 # This happens at least with the AIX C compiler. 4371 : > sub/conftest.c 4372 for i in 1 2 3 4 5 6; do 4373 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4374 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4375 # Solaris 10 /bin/sh. 4376 echo '/* dummy */' > sub/conftst$i.h 4377 done 4378 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4379 4380 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4381 # mode. It turns out that the SunPro C++ compiler does not properly 4382 # handle '-M -o', and we need to detect this. Also, some Intel 4383 # versions had trouble with output in subdirs. 4384 am__obj=sub/conftest.${OBJEXT-o} 4385 am__minus_obj="-o $am__obj" 4386 case $depmode in 4387 gcc) 4388 # This depmode causes a compiler race in universal mode. 4389 test "$am__universal" = false || continue 4390 ;; 4391 nosideeffect) 4392 # After this tag, mechanisms are not by side-effect, so they'll 4393 # only be used when explicitly requested. 4394 if test "x$enable_dependency_tracking" = xyes; then 4395 continue 4396 else 4397 break 4398 fi 4399 ;; 4400 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4401 # This compiler won't grok '-c -o', but also, the minuso test has 4402 # not run yet. These depmodes are late enough in the game, and 4403 # so weak that their functioning should not be impacted. 4404 am__obj=conftest.${OBJEXT-o} 4405 am__minus_obj= 4406 ;; 4407 none) break ;; 4408 esac 4409 if depmode=$depmode \ 4410 source=sub/conftest.c object=$am__obj \ 4411 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4412 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4413 >/dev/null 2>conftest.err && 4414 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4415 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4416 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4417 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4418 # icc doesn't choke on unknown options, it will just issue warnings 4419 # or remarks (even with -Werror). So we grep stderr for any message 4420 # that says an option was ignored or not supported. 4421 # When given -MP, icc 7.0 and 7.1 complain thusly: 4422 # icc: Command line warning: ignoring option '-M'; no argument required 4423 # The diagnosis changed in icc 8.0: 4424 # icc: Command line remark: option '-MP' not supported 4425 if (grep 'ignoring option' conftest.err || 4426 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4427 am_cv_CC_dependencies_compiler_type=$depmode 4428 break 4429 fi 4430 fi 4431 done 4432 4433 cd .. 4434 rm -rf conftest.dir 4435else 4436 am_cv_CC_dependencies_compiler_type=none 4437fi 4438 4439fi 4440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4441printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4442CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4443 4444 if 4445 test "x$enable_dependency_tracking" != xno \ 4446 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4447 am__fastdepCC_TRUE= 4448 am__fastdepCC_FALSE='#' 4449else 4450 am__fastdepCC_TRUE='#' 4451 am__fastdepCC_FALSE= 4452fi 4453 4454 4455 4456 4457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4458printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4459if test ${ac_cv_c_undeclared_builtin_options+y} 4460then : 4461 printf %s "(cached) " >&6 4462else $as_nop 4463 ac_save_CFLAGS=$CFLAGS 4464 ac_cv_c_undeclared_builtin_options='cannot detect' 4465 for ac_arg in '' -fno-builtin; do 4466 CFLAGS="$ac_save_CFLAGS $ac_arg" 4467 # This test program should *not* compile successfully. 4468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4469/* end confdefs.h. */ 4470 4471int 4472main (void) 4473{ 4474(void) strchr; 4475 ; 4476 return 0; 4477} 4478_ACEOF 4479if ac_fn_c_try_compile "$LINENO" 4480then : 4481 4482else $as_nop 4483 # This test program should compile successfully. 4484 # No library function is consistently available on 4485 # freestanding implementations, so test against a dummy 4486 # declaration. Include always-available headers on the 4487 # off chance that they somehow elicit warnings. 4488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4489/* end confdefs.h. */ 4490#include <float.h> 4491#include <limits.h> 4492#include <stdarg.h> 4493#include <stddef.h> 4494extern void ac_decl (int, char *); 4495 4496int 4497main (void) 4498{ 4499(void) ac_decl (0, (char *) 0); 4500 (void) ac_decl; 4501 4502 ; 4503 return 0; 4504} 4505_ACEOF 4506if ac_fn_c_try_compile "$LINENO" 4507then : 4508 if test x"$ac_arg" = x 4509then : 4510 ac_cv_c_undeclared_builtin_options='none needed' 4511else $as_nop 4512 ac_cv_c_undeclared_builtin_options=$ac_arg 4513fi 4514 break 4515fi 4516rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4517fi 4518rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4519 done 4520 CFLAGS=$ac_save_CFLAGS 4521 4522fi 4523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4524printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4525 case $ac_cv_c_undeclared_builtin_options in #( 4526 'cannot detect') : 4527 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4528printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4529as_fn_error $? "cannot make $CC report undeclared builtins 4530See \`config.log' for more details" "$LINENO" 5; } ;; #( 4531 'none needed') : 4532 ac_c_undeclared_builtin_options='' ;; #( 4533 *) : 4534 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4535esac 4536 4537ac_header= ac_cache= 4538for ac_item in $ac_header_c_list 4539do 4540 if test $ac_cache; then 4541 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4542 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4543 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4544 fi 4545 ac_header= ac_cache= 4546 elif test $ac_header; then 4547 ac_cache=$ac_item 4548 else 4549 ac_header=$ac_item 4550 fi 4551done 4552 4553 4554 4555 4556 4557 4558 4559 4560if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4561then : 4562 4563printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4564 4565fi 4566 4567 4568 4569 4570ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4571if test "x$ac_cv_have_decl___clang__" = xyes 4572then : 4573 CLANGCC="yes" 4574else $as_nop 4575 CLANGCC="no" 4576fi 4577ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4578if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4579then : 4580 INTELCC="yes" 4581else $as_nop 4582 INTELCC="no" 4583fi 4584ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4585if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4586then : 4587 SUNCC="yes" 4588else $as_nop 4589 SUNCC="no" 4590fi 4591 4592 4593 4594 4595 4596 4597 4598 4599if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4600 if test -n "$ac_tool_prefix"; then 4601 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4602set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4604printf %s "checking for $ac_word... " >&6; } 4605if test ${ac_cv_path_PKG_CONFIG+y} 4606then : 4607 printf %s "(cached) " >&6 4608else $as_nop 4609 case $PKG_CONFIG in 4610 [\\/]* | ?:[\\/]*) 4611 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4612 ;; 4613 *) 4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4615for as_dir in $PATH 4616do 4617 IFS=$as_save_IFS 4618 case $as_dir in #((( 4619 '') as_dir=./ ;; 4620 */) ;; 4621 *) as_dir=$as_dir/ ;; 4622 esac 4623 for ac_exec_ext in '' $ac_executable_extensions; do 4624 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4625 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4627 break 2 4628 fi 4629done 4630 done 4631IFS=$as_save_IFS 4632 4633 ;; 4634esac 4635fi 4636PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4637if test -n "$PKG_CONFIG"; then 4638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4639printf "%s\n" "$PKG_CONFIG" >&6; } 4640else 4641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4642printf "%s\n" "no" >&6; } 4643fi 4644 4645 4646fi 4647if test -z "$ac_cv_path_PKG_CONFIG"; then 4648 ac_pt_PKG_CONFIG=$PKG_CONFIG 4649 # Extract the first word of "pkg-config", so it can be a program name with args. 4650set dummy pkg-config; ac_word=$2 4651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4652printf %s "checking for $ac_word... " >&6; } 4653if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4654then : 4655 printf %s "(cached) " >&6 4656else $as_nop 4657 case $ac_pt_PKG_CONFIG in 4658 [\\/]* | ?:[\\/]*) 4659 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4660 ;; 4661 *) 4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4663for as_dir in $PATH 4664do 4665 IFS=$as_save_IFS 4666 case $as_dir in #((( 4667 '') as_dir=./ ;; 4668 */) ;; 4669 *) as_dir=$as_dir/ ;; 4670 esac 4671 for ac_exec_ext in '' $ac_executable_extensions; do 4672 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4673 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4675 break 2 4676 fi 4677done 4678 done 4679IFS=$as_save_IFS 4680 4681 ;; 4682esac 4683fi 4684ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4685if test -n "$ac_pt_PKG_CONFIG"; then 4686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4687printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4688else 4689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4690printf "%s\n" "no" >&6; } 4691fi 4692 4693 if test "x$ac_pt_PKG_CONFIG" = x; then 4694 PKG_CONFIG="" 4695 else 4696 case $cross_compiling:$ac_tool_warned in 4697yes:) 4698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4699printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4700ac_tool_warned=yes ;; 4701esac 4702 PKG_CONFIG=$ac_pt_PKG_CONFIG 4703 fi 4704else 4705 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4706fi 4707 4708fi 4709if test -n "$PKG_CONFIG"; then 4710 _pkg_min_version=0.9.0 4711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4712printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4713 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4715printf "%s\n" "yes" >&6; } 4716 else 4717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4718printf "%s\n" "no" >&6; } 4719 PKG_CONFIG="" 4720 fi 4721fi 4722 4723 4724 # Make sure we can run config.sub. 4725$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4726 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4727 4728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4729printf %s "checking build system type... " >&6; } 4730if test ${ac_cv_build+y} 4731then : 4732 printf %s "(cached) " >&6 4733else $as_nop 4734 ac_build_alias=$build_alias 4735test "x$ac_build_alias" = x && 4736 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4737test "x$ac_build_alias" = x && 4738 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4739ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4740 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4741 4742fi 4743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4744printf "%s\n" "$ac_cv_build" >&6; } 4745case $ac_cv_build in 4746*-*-*) ;; 4747*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4748esac 4749build=$ac_cv_build 4750ac_save_IFS=$IFS; IFS='-' 4751set x $ac_cv_build 4752shift 4753build_cpu=$1 4754build_vendor=$2 4755shift; shift 4756# Remember, the first character of IFS is used to create $*, 4757# except with old shells: 4758build_os=$* 4759IFS=$ac_save_IFS 4760case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4761 4762 4763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4764printf %s "checking host system type... " >&6; } 4765if test ${ac_cv_host+y} 4766then : 4767 printf %s "(cached) " >&6 4768else $as_nop 4769 if test "x$host_alias" = x; then 4770 ac_cv_host=$ac_cv_build 4771else 4772 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4773 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4774fi 4775 4776fi 4777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4778printf "%s\n" "$ac_cv_host" >&6; } 4779case $ac_cv_host in 4780*-*-*) ;; 4781*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4782esac 4783host=$ac_cv_host 4784ac_save_IFS=$IFS; IFS='-' 4785set x $ac_cv_host 4786shift 4787host_cpu=$1 4788host_vendor=$2 4789shift; shift 4790# Remember, the first character of IFS is used to create $*, 4791# except with old shells: 4792host_os=$* 4793IFS=$ac_save_IFS 4794case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4795 4796 4797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4798printf %s "checking for a sed that does not truncate output... " >&6; } 4799if test ${ac_cv_path_SED+y} 4800then : 4801 printf %s "(cached) " >&6 4802else $as_nop 4803 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4804 for ac_i in 1 2 3 4 5 6 7; do 4805 ac_script="$ac_script$as_nl$ac_script" 4806 done 4807 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4808 { ac_script=; unset ac_script;} 4809 if test -z "$SED"; then 4810 ac_path_SED_found=false 4811 # Loop through the user's path and test for each of PROGNAME-LIST 4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4813for as_dir in $PATH 4814do 4815 IFS=$as_save_IFS 4816 case $as_dir in #((( 4817 '') as_dir=./ ;; 4818 */) ;; 4819 *) as_dir=$as_dir/ ;; 4820 esac 4821 for ac_prog in sed gsed 4822 do 4823 for ac_exec_ext in '' $ac_executable_extensions; do 4824 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4825 as_fn_executable_p "$ac_path_SED" || continue 4826# Check for GNU ac_path_SED and select it if it is found. 4827 # Check for GNU $ac_path_SED 4828case `"$ac_path_SED" --version 2>&1` in 4829*GNU*) 4830 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4831*) 4832 ac_count=0 4833 printf %s 0123456789 >"conftest.in" 4834 while : 4835 do 4836 cat "conftest.in" "conftest.in" >"conftest.tmp" 4837 mv "conftest.tmp" "conftest.in" 4838 cp "conftest.in" "conftest.nl" 4839 printf "%s\n" '' >> "conftest.nl" 4840 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4841 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4842 as_fn_arith $ac_count + 1 && ac_count=$as_val 4843 if test $ac_count -gt ${ac_path_SED_max-0}; then 4844 # Best one so far, save it but keep looking for a better one 4845 ac_cv_path_SED="$ac_path_SED" 4846 ac_path_SED_max=$ac_count 4847 fi 4848 # 10*(2^10) chars as input seems more than enough 4849 test $ac_count -gt 10 && break 4850 done 4851 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4852esac 4853 4854 $ac_path_SED_found && break 3 4855 done 4856 done 4857 done 4858IFS=$as_save_IFS 4859 if test -z "$ac_cv_path_SED"; then 4860 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4861 fi 4862else 4863 ac_cv_path_SED=$SED 4864fi 4865 4866fi 4867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4868printf "%s\n" "$ac_cv_path_SED" >&6; } 4869 SED="$ac_cv_path_SED" 4870 rm -f conftest.sed 4871 4872 4873 4874 4875 4876 4877# Check whether --enable-selective-werror was given. 4878if test ${enable_selective_werror+y} 4879then : 4880 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4881else $as_nop 4882 SELECTIVE_WERROR=yes 4883fi 4884 4885 4886 4887 4888 4889# -v is too short to test reliably with XORG_TESTSET_CFLAG 4890if test "x$SUNCC" = "xyes"; then 4891 BASE_CFLAGS="-v" 4892else 4893 BASE_CFLAGS="" 4894fi 4895 4896# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910xorg_testset_save_CFLAGS="$CFLAGS" 4911 4912if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4915printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4916if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4917then : 4918 printf %s "(cached) " >&6 4919else $as_nop 4920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4921/* end confdefs.h. */ 4922int i; 4923_ACEOF 4924if ac_fn_c_try_compile "$LINENO" 4925then : 4926 xorg_cv_cc_flag_unknown_warning_option=yes 4927else $as_nop 4928 xorg_cv_cc_flag_unknown_warning_option=no 4929fi 4930rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4931fi 4932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4933printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4934 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4935 CFLAGS="$xorg_testset_save_CFLAGS" 4936fi 4937 4938if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4941 fi 4942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4944printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4945if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4946then : 4947 printf %s "(cached) " >&6 4948else $as_nop 4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4950/* end confdefs.h. */ 4951int i; 4952_ACEOF 4953if ac_fn_c_try_compile "$LINENO" 4954then : 4955 xorg_cv_cc_flag_unused_command_line_argument=yes 4956else $as_nop 4957 xorg_cv_cc_flag_unused_command_line_argument=no 4958fi 4959rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4960fi 4961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4962printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4963 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4964 CFLAGS="$xorg_testset_save_CFLAGS" 4965fi 4966 4967found="no" 4968 4969 if test $found = "no" ; then 4970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4972 fi 4973 4974 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4976 fi 4977 4978 CFLAGS="$CFLAGS -Wall" 4979 4980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4981printf %s "checking if $CC supports -Wall... " >&6; } 4982 cacheid=xorg_cv_cc_flag__Wall 4983 if eval test \${$cacheid+y} 4984then : 4985 printf %s "(cached) " >&6 4986else $as_nop 4987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4988/* end confdefs.h. */ 4989int i; 4990int 4991main (void) 4992{ 4993 4994 ; 4995 return 0; 4996} 4997_ACEOF 4998if ac_fn_c_try_link "$LINENO" 4999then : 5000 eval $cacheid=yes 5001else $as_nop 5002 eval $cacheid=no 5003fi 5004rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5005 conftest$ac_exeext conftest.$ac_ext 5006fi 5007 5008 5009 CFLAGS="$xorg_testset_save_CFLAGS" 5010 5011 eval supported=\$$cacheid 5012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5013printf "%s\n" "$supported" >&6; } 5014 if test "$supported" = "yes" ; then 5015 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5016 found="yes" 5017 fi 5018 fi 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034xorg_testset_save_CFLAGS="$CFLAGS" 5035 5036if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5037 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5039printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5040if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5041then : 5042 printf %s "(cached) " >&6 5043else $as_nop 5044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5045/* end confdefs.h. */ 5046int i; 5047_ACEOF 5048if ac_fn_c_try_compile "$LINENO" 5049then : 5050 xorg_cv_cc_flag_unknown_warning_option=yes 5051else $as_nop 5052 xorg_cv_cc_flag_unknown_warning_option=no 5053fi 5054rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5055fi 5056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5057printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5058 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5059 CFLAGS="$xorg_testset_save_CFLAGS" 5060fi 5061 5062if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5065 fi 5066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5068printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5069if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5070then : 5071 printf %s "(cached) " >&6 5072else $as_nop 5073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5074/* end confdefs.h. */ 5075int i; 5076_ACEOF 5077if ac_fn_c_try_compile "$LINENO" 5078then : 5079 xorg_cv_cc_flag_unused_command_line_argument=yes 5080else $as_nop 5081 xorg_cv_cc_flag_unused_command_line_argument=no 5082fi 5083rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5084fi 5085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5086printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5087 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5088 CFLAGS="$xorg_testset_save_CFLAGS" 5089fi 5090 5091found="no" 5092 5093 if test $found = "no" ; then 5094 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5095 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5096 fi 5097 5098 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5100 fi 5101 5102 CFLAGS="$CFLAGS -Wpointer-arith" 5103 5104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5105printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5106 cacheid=xorg_cv_cc_flag__Wpointer_arith 5107 if eval test \${$cacheid+y} 5108then : 5109 printf %s "(cached) " >&6 5110else $as_nop 5111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5112/* end confdefs.h. */ 5113int i; 5114int 5115main (void) 5116{ 5117 5118 ; 5119 return 0; 5120} 5121_ACEOF 5122if ac_fn_c_try_link "$LINENO" 5123then : 5124 eval $cacheid=yes 5125else $as_nop 5126 eval $cacheid=no 5127fi 5128rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5129 conftest$ac_exeext conftest.$ac_ext 5130fi 5131 5132 5133 CFLAGS="$xorg_testset_save_CFLAGS" 5134 5135 eval supported=\$$cacheid 5136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5137printf "%s\n" "$supported" >&6; } 5138 if test "$supported" = "yes" ; then 5139 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5140 found="yes" 5141 fi 5142 fi 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158xorg_testset_save_CFLAGS="$CFLAGS" 5159 5160if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5161 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5163printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5164if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5165then : 5166 printf %s "(cached) " >&6 5167else $as_nop 5168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5169/* end confdefs.h. */ 5170int i; 5171_ACEOF 5172if ac_fn_c_try_compile "$LINENO" 5173then : 5174 xorg_cv_cc_flag_unknown_warning_option=yes 5175else $as_nop 5176 xorg_cv_cc_flag_unknown_warning_option=no 5177fi 5178rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5179fi 5180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5181printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5182 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5183 CFLAGS="$xorg_testset_save_CFLAGS" 5184fi 5185 5186if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5189 fi 5190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5192printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5193if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5194then : 5195 printf %s "(cached) " >&6 5196else $as_nop 5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5198/* end confdefs.h. */ 5199int i; 5200_ACEOF 5201if ac_fn_c_try_compile "$LINENO" 5202then : 5203 xorg_cv_cc_flag_unused_command_line_argument=yes 5204else $as_nop 5205 xorg_cv_cc_flag_unused_command_line_argument=no 5206fi 5207rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5208fi 5209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5210printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5211 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5212 CFLAGS="$xorg_testset_save_CFLAGS" 5213fi 5214 5215found="no" 5216 5217 if test $found = "no" ; then 5218 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5220 fi 5221 5222 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5224 fi 5225 5226 CFLAGS="$CFLAGS -Wmissing-declarations" 5227 5228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5229printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5230 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5231 if eval test \${$cacheid+y} 5232then : 5233 printf %s "(cached) " >&6 5234else $as_nop 5235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5236/* end confdefs.h. */ 5237int i; 5238int 5239main (void) 5240{ 5241 5242 ; 5243 return 0; 5244} 5245_ACEOF 5246if ac_fn_c_try_link "$LINENO" 5247then : 5248 eval $cacheid=yes 5249else $as_nop 5250 eval $cacheid=no 5251fi 5252rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5253 conftest$ac_exeext conftest.$ac_ext 5254fi 5255 5256 5257 CFLAGS="$xorg_testset_save_CFLAGS" 5258 5259 eval supported=\$$cacheid 5260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5261printf "%s\n" "$supported" >&6; } 5262 if test "$supported" = "yes" ; then 5263 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5264 found="yes" 5265 fi 5266 fi 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282xorg_testset_save_CFLAGS="$CFLAGS" 5283 5284if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5287printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5288if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5289then : 5290 printf %s "(cached) " >&6 5291else $as_nop 5292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5293/* end confdefs.h. */ 5294int i; 5295_ACEOF 5296if ac_fn_c_try_compile "$LINENO" 5297then : 5298 xorg_cv_cc_flag_unknown_warning_option=yes 5299else $as_nop 5300 xorg_cv_cc_flag_unknown_warning_option=no 5301fi 5302rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5303fi 5304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5305printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5306 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5307 CFLAGS="$xorg_testset_save_CFLAGS" 5308fi 5309 5310if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5312 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5313 fi 5314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5316printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5317if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5318then : 5319 printf %s "(cached) " >&6 5320else $as_nop 5321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5322/* end confdefs.h. */ 5323int i; 5324_ACEOF 5325if ac_fn_c_try_compile "$LINENO" 5326then : 5327 xorg_cv_cc_flag_unused_command_line_argument=yes 5328else $as_nop 5329 xorg_cv_cc_flag_unused_command_line_argument=no 5330fi 5331rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5332fi 5333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5334printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5335 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5336 CFLAGS="$xorg_testset_save_CFLAGS" 5337fi 5338 5339found="no" 5340 5341 if test $found = "no" ; then 5342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5343 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5344 fi 5345 5346 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5348 fi 5349 5350 CFLAGS="$CFLAGS -Wformat=2" 5351 5352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5353printf %s "checking if $CC supports -Wformat=2... " >&6; } 5354 cacheid=xorg_cv_cc_flag__Wformat_2 5355 if eval test \${$cacheid+y} 5356then : 5357 printf %s "(cached) " >&6 5358else $as_nop 5359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5360/* end confdefs.h. */ 5361int i; 5362int 5363main (void) 5364{ 5365 5366 ; 5367 return 0; 5368} 5369_ACEOF 5370if ac_fn_c_try_link "$LINENO" 5371then : 5372 eval $cacheid=yes 5373else $as_nop 5374 eval $cacheid=no 5375fi 5376rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5377 conftest$ac_exeext conftest.$ac_ext 5378fi 5379 5380 5381 CFLAGS="$xorg_testset_save_CFLAGS" 5382 5383 eval supported=\$$cacheid 5384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5385printf "%s\n" "$supported" >&6; } 5386 if test "$supported" = "yes" ; then 5387 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5388 found="yes" 5389 fi 5390 fi 5391 5392 if test $found = "no" ; then 5393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5394 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5395 fi 5396 5397 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5399 fi 5400 5401 CFLAGS="$CFLAGS -Wformat" 5402 5403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5404printf %s "checking if $CC supports -Wformat... " >&6; } 5405 cacheid=xorg_cv_cc_flag__Wformat 5406 if eval test \${$cacheid+y} 5407then : 5408 printf %s "(cached) " >&6 5409else $as_nop 5410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5411/* end confdefs.h. */ 5412int i; 5413int 5414main (void) 5415{ 5416 5417 ; 5418 return 0; 5419} 5420_ACEOF 5421if ac_fn_c_try_link "$LINENO" 5422then : 5423 eval $cacheid=yes 5424else $as_nop 5425 eval $cacheid=no 5426fi 5427rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5428 conftest$ac_exeext conftest.$ac_ext 5429fi 5430 5431 5432 CFLAGS="$xorg_testset_save_CFLAGS" 5433 5434 eval supported=\$$cacheid 5435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5436printf "%s\n" "$supported" >&6; } 5437 if test "$supported" = "yes" ; then 5438 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5439 found="yes" 5440 fi 5441 fi 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459xorg_testset_save_CFLAGS="$CFLAGS" 5460 5461if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5464printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5465if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5466then : 5467 printf %s "(cached) " >&6 5468else $as_nop 5469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5470/* end confdefs.h. */ 5471int i; 5472_ACEOF 5473if ac_fn_c_try_compile "$LINENO" 5474then : 5475 xorg_cv_cc_flag_unknown_warning_option=yes 5476else $as_nop 5477 xorg_cv_cc_flag_unknown_warning_option=no 5478fi 5479rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5480fi 5481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5482printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5483 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5484 CFLAGS="$xorg_testset_save_CFLAGS" 5485fi 5486 5487if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5490 fi 5491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5493printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5494if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5495then : 5496 printf %s "(cached) " >&6 5497else $as_nop 5498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5499/* end confdefs.h. */ 5500int i; 5501_ACEOF 5502if ac_fn_c_try_compile "$LINENO" 5503then : 5504 xorg_cv_cc_flag_unused_command_line_argument=yes 5505else $as_nop 5506 xorg_cv_cc_flag_unused_command_line_argument=no 5507fi 5508rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5509fi 5510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5511printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5512 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5513 CFLAGS="$xorg_testset_save_CFLAGS" 5514fi 5515 5516found="no" 5517 5518 if test $found = "no" ; then 5519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5521 fi 5522 5523 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5525 fi 5526 5527 CFLAGS="$CFLAGS -Wstrict-prototypes" 5528 5529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5530printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5531 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5532 if eval test \${$cacheid+y} 5533then : 5534 printf %s "(cached) " >&6 5535else $as_nop 5536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5537/* end confdefs.h. */ 5538int i; 5539int 5540main (void) 5541{ 5542 5543 ; 5544 return 0; 5545} 5546_ACEOF 5547if ac_fn_c_try_link "$LINENO" 5548then : 5549 eval $cacheid=yes 5550else $as_nop 5551 eval $cacheid=no 5552fi 5553rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5554 conftest$ac_exeext conftest.$ac_ext 5555fi 5556 5557 5558 CFLAGS="$xorg_testset_save_CFLAGS" 5559 5560 eval supported=\$$cacheid 5561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5562printf "%s\n" "$supported" >&6; } 5563 if test "$supported" = "yes" ; then 5564 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5565 found="yes" 5566 fi 5567 fi 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583xorg_testset_save_CFLAGS="$CFLAGS" 5584 5585if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5586 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5588printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5589if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5590then : 5591 printf %s "(cached) " >&6 5592else $as_nop 5593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5594/* end confdefs.h. */ 5595int i; 5596_ACEOF 5597if ac_fn_c_try_compile "$LINENO" 5598then : 5599 xorg_cv_cc_flag_unknown_warning_option=yes 5600else $as_nop 5601 xorg_cv_cc_flag_unknown_warning_option=no 5602fi 5603rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5604fi 5605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5606printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5607 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5608 CFLAGS="$xorg_testset_save_CFLAGS" 5609fi 5610 5611if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5612 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5613 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5614 fi 5615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5617printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5618if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5619then : 5620 printf %s "(cached) " >&6 5621else $as_nop 5622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5623/* end confdefs.h. */ 5624int i; 5625_ACEOF 5626if ac_fn_c_try_compile "$LINENO" 5627then : 5628 xorg_cv_cc_flag_unused_command_line_argument=yes 5629else $as_nop 5630 xorg_cv_cc_flag_unused_command_line_argument=no 5631fi 5632rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5633fi 5634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5635printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5636 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5637 CFLAGS="$xorg_testset_save_CFLAGS" 5638fi 5639 5640found="no" 5641 5642 if test $found = "no" ; then 5643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5644 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5645 fi 5646 5647 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5649 fi 5650 5651 CFLAGS="$CFLAGS -Wmissing-prototypes" 5652 5653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5654printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5655 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5656 if eval test \${$cacheid+y} 5657then : 5658 printf %s "(cached) " >&6 5659else $as_nop 5660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5661/* end confdefs.h. */ 5662int i; 5663int 5664main (void) 5665{ 5666 5667 ; 5668 return 0; 5669} 5670_ACEOF 5671if ac_fn_c_try_link "$LINENO" 5672then : 5673 eval $cacheid=yes 5674else $as_nop 5675 eval $cacheid=no 5676fi 5677rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5678 conftest$ac_exeext conftest.$ac_ext 5679fi 5680 5681 5682 CFLAGS="$xorg_testset_save_CFLAGS" 5683 5684 eval supported=\$$cacheid 5685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5686printf "%s\n" "$supported" >&6; } 5687 if test "$supported" = "yes" ; then 5688 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5689 found="yes" 5690 fi 5691 fi 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707xorg_testset_save_CFLAGS="$CFLAGS" 5708 5709if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5710 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5712printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5713if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5714then : 5715 printf %s "(cached) " >&6 5716else $as_nop 5717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5718/* end confdefs.h. */ 5719int i; 5720_ACEOF 5721if ac_fn_c_try_compile "$LINENO" 5722then : 5723 xorg_cv_cc_flag_unknown_warning_option=yes 5724else $as_nop 5725 xorg_cv_cc_flag_unknown_warning_option=no 5726fi 5727rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5728fi 5729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5730printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5731 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5732 CFLAGS="$xorg_testset_save_CFLAGS" 5733fi 5734 5735if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5737 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5738 fi 5739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5741printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5742if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5743then : 5744 printf %s "(cached) " >&6 5745else $as_nop 5746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5747/* end confdefs.h. */ 5748int i; 5749_ACEOF 5750if ac_fn_c_try_compile "$LINENO" 5751then : 5752 xorg_cv_cc_flag_unused_command_line_argument=yes 5753else $as_nop 5754 xorg_cv_cc_flag_unused_command_line_argument=no 5755fi 5756rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5757fi 5758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5759printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5760 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5761 CFLAGS="$xorg_testset_save_CFLAGS" 5762fi 5763 5764found="no" 5765 5766 if test $found = "no" ; then 5767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5768 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5769 fi 5770 5771 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5773 fi 5774 5775 CFLAGS="$CFLAGS -Wnested-externs" 5776 5777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5778printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5779 cacheid=xorg_cv_cc_flag__Wnested_externs 5780 if eval test \${$cacheid+y} 5781then : 5782 printf %s "(cached) " >&6 5783else $as_nop 5784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5785/* end confdefs.h. */ 5786int i; 5787int 5788main (void) 5789{ 5790 5791 ; 5792 return 0; 5793} 5794_ACEOF 5795if ac_fn_c_try_link "$LINENO" 5796then : 5797 eval $cacheid=yes 5798else $as_nop 5799 eval $cacheid=no 5800fi 5801rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5802 conftest$ac_exeext conftest.$ac_ext 5803fi 5804 5805 5806 CFLAGS="$xorg_testset_save_CFLAGS" 5807 5808 eval supported=\$$cacheid 5809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5810printf "%s\n" "$supported" >&6; } 5811 if test "$supported" = "yes" ; then 5812 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5813 found="yes" 5814 fi 5815 fi 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831xorg_testset_save_CFLAGS="$CFLAGS" 5832 5833if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5836printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5837if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5838then : 5839 printf %s "(cached) " >&6 5840else $as_nop 5841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5842/* end confdefs.h. */ 5843int i; 5844_ACEOF 5845if ac_fn_c_try_compile "$LINENO" 5846then : 5847 xorg_cv_cc_flag_unknown_warning_option=yes 5848else $as_nop 5849 xorg_cv_cc_flag_unknown_warning_option=no 5850fi 5851rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5852fi 5853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5854printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5855 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5856 CFLAGS="$xorg_testset_save_CFLAGS" 5857fi 5858 5859if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5861 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5862 fi 5863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5865printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5866if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5867then : 5868 printf %s "(cached) " >&6 5869else $as_nop 5870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5871/* end confdefs.h. */ 5872int i; 5873_ACEOF 5874if ac_fn_c_try_compile "$LINENO" 5875then : 5876 xorg_cv_cc_flag_unused_command_line_argument=yes 5877else $as_nop 5878 xorg_cv_cc_flag_unused_command_line_argument=no 5879fi 5880rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5881fi 5882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5883printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5884 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5885 CFLAGS="$xorg_testset_save_CFLAGS" 5886fi 5887 5888found="no" 5889 5890 if test $found = "no" ; then 5891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5893 fi 5894 5895 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5897 fi 5898 5899 CFLAGS="$CFLAGS -Wbad-function-cast" 5900 5901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5902printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 5903 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5904 if eval test \${$cacheid+y} 5905then : 5906 printf %s "(cached) " >&6 5907else $as_nop 5908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5909/* end confdefs.h. */ 5910int i; 5911int 5912main (void) 5913{ 5914 5915 ; 5916 return 0; 5917} 5918_ACEOF 5919if ac_fn_c_try_link "$LINENO" 5920then : 5921 eval $cacheid=yes 5922else $as_nop 5923 eval $cacheid=no 5924fi 5925rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5926 conftest$ac_exeext conftest.$ac_ext 5927fi 5928 5929 5930 CFLAGS="$xorg_testset_save_CFLAGS" 5931 5932 eval supported=\$$cacheid 5933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5934printf "%s\n" "$supported" >&6; } 5935 if test "$supported" = "yes" ; then 5936 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5937 found="yes" 5938 fi 5939 fi 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955xorg_testset_save_CFLAGS="$CFLAGS" 5956 5957if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5958 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5960printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5961if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5962then : 5963 printf %s "(cached) " >&6 5964else $as_nop 5965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5966/* end confdefs.h. */ 5967int i; 5968_ACEOF 5969if ac_fn_c_try_compile "$LINENO" 5970then : 5971 xorg_cv_cc_flag_unknown_warning_option=yes 5972else $as_nop 5973 xorg_cv_cc_flag_unknown_warning_option=no 5974fi 5975rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5976fi 5977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5978printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5979 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5980 CFLAGS="$xorg_testset_save_CFLAGS" 5981fi 5982 5983if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5986 fi 5987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5989printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5990if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5991then : 5992 printf %s "(cached) " >&6 5993else $as_nop 5994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5995/* end confdefs.h. */ 5996int i; 5997_ACEOF 5998if ac_fn_c_try_compile "$LINENO" 5999then : 6000 xorg_cv_cc_flag_unused_command_line_argument=yes 6001else $as_nop 6002 xorg_cv_cc_flag_unused_command_line_argument=no 6003fi 6004rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6005fi 6006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6007printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6008 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6009 CFLAGS="$xorg_testset_save_CFLAGS" 6010fi 6011 6012found="no" 6013 6014 if test $found = "no" ; then 6015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6016 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6017 fi 6018 6019 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6021 fi 6022 6023 CFLAGS="$CFLAGS -Wold-style-definition" 6024 6025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6026printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6027 cacheid=xorg_cv_cc_flag__Wold_style_definition 6028 if eval test \${$cacheid+y} 6029then : 6030 printf %s "(cached) " >&6 6031else $as_nop 6032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6033/* end confdefs.h. */ 6034int i; 6035int 6036main (void) 6037{ 6038 6039 ; 6040 return 0; 6041} 6042_ACEOF 6043if ac_fn_c_try_link "$LINENO" 6044then : 6045 eval $cacheid=yes 6046else $as_nop 6047 eval $cacheid=no 6048fi 6049rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6050 conftest$ac_exeext conftest.$ac_ext 6051fi 6052 6053 6054 CFLAGS="$xorg_testset_save_CFLAGS" 6055 6056 eval supported=\$$cacheid 6057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6058printf "%s\n" "$supported" >&6; } 6059 if test "$supported" = "yes" ; then 6060 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6061 found="yes" 6062 fi 6063 fi 6064 6065 if test $found = "no" ; then 6066 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6068 fi 6069 6070 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6072 fi 6073 6074 CFLAGS="$CFLAGS -fd" 6075 6076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6077printf %s "checking if $CC supports -fd... " >&6; } 6078 cacheid=xorg_cv_cc_flag__fd 6079 if eval test \${$cacheid+y} 6080then : 6081 printf %s "(cached) " >&6 6082else $as_nop 6083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6084/* end confdefs.h. */ 6085int i; 6086int 6087main (void) 6088{ 6089 6090 ; 6091 return 0; 6092} 6093_ACEOF 6094if ac_fn_c_try_link "$LINENO" 6095then : 6096 eval $cacheid=yes 6097else $as_nop 6098 eval $cacheid=no 6099fi 6100rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6101 conftest$ac_exeext conftest.$ac_ext 6102fi 6103 6104 6105 CFLAGS="$xorg_testset_save_CFLAGS" 6106 6107 eval supported=\$$cacheid 6108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6109printf "%s\n" "$supported" >&6; } 6110 if test "$supported" = "yes" ; then 6111 BASE_CFLAGS="$BASE_CFLAGS -fd" 6112 found="yes" 6113 fi 6114 fi 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130xorg_testset_save_CFLAGS="$CFLAGS" 6131 6132if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6133 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6135printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6136if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6137then : 6138 printf %s "(cached) " >&6 6139else $as_nop 6140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6141/* end confdefs.h. */ 6142int i; 6143_ACEOF 6144if ac_fn_c_try_compile "$LINENO" 6145then : 6146 xorg_cv_cc_flag_unknown_warning_option=yes 6147else $as_nop 6148 xorg_cv_cc_flag_unknown_warning_option=no 6149fi 6150rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6151fi 6152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6153printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6154 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6155 CFLAGS="$xorg_testset_save_CFLAGS" 6156fi 6157 6158if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6159 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6160 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6161 fi 6162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6164printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6165if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6166then : 6167 printf %s "(cached) " >&6 6168else $as_nop 6169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6170/* end confdefs.h. */ 6171int i; 6172_ACEOF 6173if ac_fn_c_try_compile "$LINENO" 6174then : 6175 xorg_cv_cc_flag_unused_command_line_argument=yes 6176else $as_nop 6177 xorg_cv_cc_flag_unused_command_line_argument=no 6178fi 6179rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6180fi 6181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6182printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6183 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6184 CFLAGS="$xorg_testset_save_CFLAGS" 6185fi 6186 6187found="no" 6188 6189 if test $found = "no" ; then 6190 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6191 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6192 fi 6193 6194 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6196 fi 6197 6198 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6199 6200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6201printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6202 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6203 if eval test \${$cacheid+y} 6204then : 6205 printf %s "(cached) " >&6 6206else $as_nop 6207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6208/* end confdefs.h. */ 6209int i; 6210int 6211main (void) 6212{ 6213 6214 ; 6215 return 0; 6216} 6217_ACEOF 6218if ac_fn_c_try_link "$LINENO" 6219then : 6220 eval $cacheid=yes 6221else $as_nop 6222 eval $cacheid=no 6223fi 6224rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6225 conftest$ac_exeext conftest.$ac_ext 6226fi 6227 6228 6229 CFLAGS="$xorg_testset_save_CFLAGS" 6230 6231 eval supported=\$$cacheid 6232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6233printf "%s\n" "$supported" >&6; } 6234 if test "$supported" = "yes" ; then 6235 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6236 found="yes" 6237 fi 6238 fi 6239 6240 6241 6242 6243 6244# This chunk adds additional warnings that could catch undesired effects. 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258xorg_testset_save_CFLAGS="$CFLAGS" 6259 6260if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6261 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6263printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6264if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6265then : 6266 printf %s "(cached) " >&6 6267else $as_nop 6268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6269/* end confdefs.h. */ 6270int i; 6271_ACEOF 6272if ac_fn_c_try_compile "$LINENO" 6273then : 6274 xorg_cv_cc_flag_unknown_warning_option=yes 6275else $as_nop 6276 xorg_cv_cc_flag_unknown_warning_option=no 6277fi 6278rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6279fi 6280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6281printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6282 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6283 CFLAGS="$xorg_testset_save_CFLAGS" 6284fi 6285 6286if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6288 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6289 fi 6290 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6292printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6293if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6294then : 6295 printf %s "(cached) " >&6 6296else $as_nop 6297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6298/* end confdefs.h. */ 6299int i; 6300_ACEOF 6301if ac_fn_c_try_compile "$LINENO" 6302then : 6303 xorg_cv_cc_flag_unused_command_line_argument=yes 6304else $as_nop 6305 xorg_cv_cc_flag_unused_command_line_argument=no 6306fi 6307rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6308fi 6309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6310printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6311 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6312 CFLAGS="$xorg_testset_save_CFLAGS" 6313fi 6314 6315found="no" 6316 6317 if test $found = "no" ; then 6318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6320 fi 6321 6322 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6324 fi 6325 6326 CFLAGS="$CFLAGS -Wunused" 6327 6328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6329printf %s "checking if $CC supports -Wunused... " >&6; } 6330 cacheid=xorg_cv_cc_flag__Wunused 6331 if eval test \${$cacheid+y} 6332then : 6333 printf %s "(cached) " >&6 6334else $as_nop 6335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6336/* end confdefs.h. */ 6337int i; 6338int 6339main (void) 6340{ 6341 6342 ; 6343 return 0; 6344} 6345_ACEOF 6346if ac_fn_c_try_link "$LINENO" 6347then : 6348 eval $cacheid=yes 6349else $as_nop 6350 eval $cacheid=no 6351fi 6352rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6353 conftest$ac_exeext conftest.$ac_ext 6354fi 6355 6356 6357 CFLAGS="$xorg_testset_save_CFLAGS" 6358 6359 eval supported=\$$cacheid 6360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6361printf "%s\n" "$supported" >&6; } 6362 if test "$supported" = "yes" ; then 6363 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6364 found="yes" 6365 fi 6366 fi 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382xorg_testset_save_CFLAGS="$CFLAGS" 6383 6384if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6385 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6387printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6388if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6389then : 6390 printf %s "(cached) " >&6 6391else $as_nop 6392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6393/* end confdefs.h. */ 6394int i; 6395_ACEOF 6396if ac_fn_c_try_compile "$LINENO" 6397then : 6398 xorg_cv_cc_flag_unknown_warning_option=yes 6399else $as_nop 6400 xorg_cv_cc_flag_unknown_warning_option=no 6401fi 6402rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6403fi 6404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6405printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6406 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6407 CFLAGS="$xorg_testset_save_CFLAGS" 6408fi 6409 6410if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6413 fi 6414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6416printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6417if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6418then : 6419 printf %s "(cached) " >&6 6420else $as_nop 6421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6422/* end confdefs.h. */ 6423int i; 6424_ACEOF 6425if ac_fn_c_try_compile "$LINENO" 6426then : 6427 xorg_cv_cc_flag_unused_command_line_argument=yes 6428else $as_nop 6429 xorg_cv_cc_flag_unused_command_line_argument=no 6430fi 6431rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6432fi 6433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6434printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6435 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6436 CFLAGS="$xorg_testset_save_CFLAGS" 6437fi 6438 6439found="no" 6440 6441 if test $found = "no" ; then 6442 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6444 fi 6445 6446 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6448 fi 6449 6450 CFLAGS="$CFLAGS -Wuninitialized" 6451 6452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6453printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6454 cacheid=xorg_cv_cc_flag__Wuninitialized 6455 if eval test \${$cacheid+y} 6456then : 6457 printf %s "(cached) " >&6 6458else $as_nop 6459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6460/* end confdefs.h. */ 6461int i; 6462int 6463main (void) 6464{ 6465 6466 ; 6467 return 0; 6468} 6469_ACEOF 6470if ac_fn_c_try_link "$LINENO" 6471then : 6472 eval $cacheid=yes 6473else $as_nop 6474 eval $cacheid=no 6475fi 6476rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6477 conftest$ac_exeext conftest.$ac_ext 6478fi 6479 6480 6481 CFLAGS="$xorg_testset_save_CFLAGS" 6482 6483 eval supported=\$$cacheid 6484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6485printf "%s\n" "$supported" >&6; } 6486 if test "$supported" = "yes" ; then 6487 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6488 found="yes" 6489 fi 6490 fi 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506xorg_testset_save_CFLAGS="$CFLAGS" 6507 6508if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6509 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6511printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6512if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6513then : 6514 printf %s "(cached) " >&6 6515else $as_nop 6516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6517/* end confdefs.h. */ 6518int i; 6519_ACEOF 6520if ac_fn_c_try_compile "$LINENO" 6521then : 6522 xorg_cv_cc_flag_unknown_warning_option=yes 6523else $as_nop 6524 xorg_cv_cc_flag_unknown_warning_option=no 6525fi 6526rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6527fi 6528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6529printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6530 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6531 CFLAGS="$xorg_testset_save_CFLAGS" 6532fi 6533 6534if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6536 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6537 fi 6538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6540printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6541if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6542then : 6543 printf %s "(cached) " >&6 6544else $as_nop 6545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6546/* end confdefs.h. */ 6547int i; 6548_ACEOF 6549if ac_fn_c_try_compile "$LINENO" 6550then : 6551 xorg_cv_cc_flag_unused_command_line_argument=yes 6552else $as_nop 6553 xorg_cv_cc_flag_unused_command_line_argument=no 6554fi 6555rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6556fi 6557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6558printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6559 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6560 CFLAGS="$xorg_testset_save_CFLAGS" 6561fi 6562 6563found="no" 6564 6565 if test $found = "no" ; then 6566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6567 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6568 fi 6569 6570 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6572 fi 6573 6574 CFLAGS="$CFLAGS -Wshadow" 6575 6576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6577printf %s "checking if $CC supports -Wshadow... " >&6; } 6578 cacheid=xorg_cv_cc_flag__Wshadow 6579 if eval test \${$cacheid+y} 6580then : 6581 printf %s "(cached) " >&6 6582else $as_nop 6583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6584/* end confdefs.h. */ 6585int i; 6586int 6587main (void) 6588{ 6589 6590 ; 6591 return 0; 6592} 6593_ACEOF 6594if ac_fn_c_try_link "$LINENO" 6595then : 6596 eval $cacheid=yes 6597else $as_nop 6598 eval $cacheid=no 6599fi 6600rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6601 conftest$ac_exeext conftest.$ac_ext 6602fi 6603 6604 6605 CFLAGS="$xorg_testset_save_CFLAGS" 6606 6607 eval supported=\$$cacheid 6608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6609printf "%s\n" "$supported" >&6; } 6610 if test "$supported" = "yes" ; then 6611 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6612 found="yes" 6613 fi 6614 fi 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630xorg_testset_save_CFLAGS="$CFLAGS" 6631 6632if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6633 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6635printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6636if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6637then : 6638 printf %s "(cached) " >&6 6639else $as_nop 6640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6641/* end confdefs.h. */ 6642int i; 6643_ACEOF 6644if ac_fn_c_try_compile "$LINENO" 6645then : 6646 xorg_cv_cc_flag_unknown_warning_option=yes 6647else $as_nop 6648 xorg_cv_cc_flag_unknown_warning_option=no 6649fi 6650rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6651fi 6652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6653printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6654 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6655 CFLAGS="$xorg_testset_save_CFLAGS" 6656fi 6657 6658if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6660 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6661 fi 6662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6664printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6665if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6666then : 6667 printf %s "(cached) " >&6 6668else $as_nop 6669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6670/* end confdefs.h. */ 6671int i; 6672_ACEOF 6673if ac_fn_c_try_compile "$LINENO" 6674then : 6675 xorg_cv_cc_flag_unused_command_line_argument=yes 6676else $as_nop 6677 xorg_cv_cc_flag_unused_command_line_argument=no 6678fi 6679rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6680fi 6681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6682printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6683 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6684 CFLAGS="$xorg_testset_save_CFLAGS" 6685fi 6686 6687found="no" 6688 6689 if test $found = "no" ; then 6690 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6691 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6692 fi 6693 6694 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6696 fi 6697 6698 CFLAGS="$CFLAGS -Wmissing-noreturn" 6699 6700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6701printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6702 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6703 if eval test \${$cacheid+y} 6704then : 6705 printf %s "(cached) " >&6 6706else $as_nop 6707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6708/* end confdefs.h. */ 6709int i; 6710int 6711main (void) 6712{ 6713 6714 ; 6715 return 0; 6716} 6717_ACEOF 6718if ac_fn_c_try_link "$LINENO" 6719then : 6720 eval $cacheid=yes 6721else $as_nop 6722 eval $cacheid=no 6723fi 6724rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6725 conftest$ac_exeext conftest.$ac_ext 6726fi 6727 6728 6729 CFLAGS="$xorg_testset_save_CFLAGS" 6730 6731 eval supported=\$$cacheid 6732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6733printf "%s\n" "$supported" >&6; } 6734 if test "$supported" = "yes" ; then 6735 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6736 found="yes" 6737 fi 6738 fi 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754xorg_testset_save_CFLAGS="$CFLAGS" 6755 6756if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6757 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6759printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6760if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6761then : 6762 printf %s "(cached) " >&6 6763else $as_nop 6764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6765/* end confdefs.h. */ 6766int i; 6767_ACEOF 6768if ac_fn_c_try_compile "$LINENO" 6769then : 6770 xorg_cv_cc_flag_unknown_warning_option=yes 6771else $as_nop 6772 xorg_cv_cc_flag_unknown_warning_option=no 6773fi 6774rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6775fi 6776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6777printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6778 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6779 CFLAGS="$xorg_testset_save_CFLAGS" 6780fi 6781 6782if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6784 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6785 fi 6786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6788printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6789if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6790then : 6791 printf %s "(cached) " >&6 6792else $as_nop 6793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6794/* end confdefs.h. */ 6795int i; 6796_ACEOF 6797if ac_fn_c_try_compile "$LINENO" 6798then : 6799 xorg_cv_cc_flag_unused_command_line_argument=yes 6800else $as_nop 6801 xorg_cv_cc_flag_unused_command_line_argument=no 6802fi 6803rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6804fi 6805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6806printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6807 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6808 CFLAGS="$xorg_testset_save_CFLAGS" 6809fi 6810 6811found="no" 6812 6813 if test $found = "no" ; then 6814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6815 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6816 fi 6817 6818 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6820 fi 6821 6822 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6823 6824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6825printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6826 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6827 if eval test \${$cacheid+y} 6828then : 6829 printf %s "(cached) " >&6 6830else $as_nop 6831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6832/* end confdefs.h. */ 6833int i; 6834int 6835main (void) 6836{ 6837 6838 ; 6839 return 0; 6840} 6841_ACEOF 6842if ac_fn_c_try_link "$LINENO" 6843then : 6844 eval $cacheid=yes 6845else $as_nop 6846 eval $cacheid=no 6847fi 6848rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6849 conftest$ac_exeext conftest.$ac_ext 6850fi 6851 6852 6853 CFLAGS="$xorg_testset_save_CFLAGS" 6854 6855 eval supported=\$$cacheid 6856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6857printf "%s\n" "$supported" >&6; } 6858 if test "$supported" = "yes" ; then 6859 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6860 found="yes" 6861 fi 6862 fi 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878xorg_testset_save_CFLAGS="$CFLAGS" 6879 6880if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6883printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6884if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6885then : 6886 printf %s "(cached) " >&6 6887else $as_nop 6888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6889/* end confdefs.h. */ 6890int i; 6891_ACEOF 6892if ac_fn_c_try_compile "$LINENO" 6893then : 6894 xorg_cv_cc_flag_unknown_warning_option=yes 6895else $as_nop 6896 xorg_cv_cc_flag_unknown_warning_option=no 6897fi 6898rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6899fi 6900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6901printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6902 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6903 CFLAGS="$xorg_testset_save_CFLAGS" 6904fi 6905 6906if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6908 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6909 fi 6910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6912printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6913if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6914then : 6915 printf %s "(cached) " >&6 6916else $as_nop 6917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6918/* end confdefs.h. */ 6919int i; 6920_ACEOF 6921if ac_fn_c_try_compile "$LINENO" 6922then : 6923 xorg_cv_cc_flag_unused_command_line_argument=yes 6924else $as_nop 6925 xorg_cv_cc_flag_unused_command_line_argument=no 6926fi 6927rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6928fi 6929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6930printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6931 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6932 CFLAGS="$xorg_testset_save_CFLAGS" 6933fi 6934 6935found="no" 6936 6937 if test $found = "no" ; then 6938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6939 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6940 fi 6941 6942 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6944 fi 6945 6946 CFLAGS="$CFLAGS -Wredundant-decls" 6947 6948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6949printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 6950 cacheid=xorg_cv_cc_flag__Wredundant_decls 6951 if eval test \${$cacheid+y} 6952then : 6953 printf %s "(cached) " >&6 6954else $as_nop 6955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6956/* end confdefs.h. */ 6957int i; 6958int 6959main (void) 6960{ 6961 6962 ; 6963 return 0; 6964} 6965_ACEOF 6966if ac_fn_c_try_link "$LINENO" 6967then : 6968 eval $cacheid=yes 6969else $as_nop 6970 eval $cacheid=no 6971fi 6972rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6973 conftest$ac_exeext conftest.$ac_ext 6974fi 6975 6976 6977 CFLAGS="$xorg_testset_save_CFLAGS" 6978 6979 eval supported=\$$cacheid 6980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6981printf "%s\n" "$supported" >&6; } 6982 if test "$supported" = "yes" ; then 6983 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6984 found="yes" 6985 fi 6986 fi 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002xorg_testset_save_CFLAGS="$CFLAGS" 7003 7004if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7005 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7007printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7008if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7009then : 7010 printf %s "(cached) " >&6 7011else $as_nop 7012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7013/* end confdefs.h. */ 7014int i; 7015_ACEOF 7016if ac_fn_c_try_compile "$LINENO" 7017then : 7018 xorg_cv_cc_flag_unknown_warning_option=yes 7019else $as_nop 7020 xorg_cv_cc_flag_unknown_warning_option=no 7021fi 7022rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7023fi 7024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7025printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7026 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7027 CFLAGS="$xorg_testset_save_CFLAGS" 7028fi 7029 7030if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7031 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7032 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7033 fi 7034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7036printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7037if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7038then : 7039 printf %s "(cached) " >&6 7040else $as_nop 7041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7042/* end confdefs.h. */ 7043int i; 7044_ACEOF 7045if ac_fn_c_try_compile "$LINENO" 7046then : 7047 xorg_cv_cc_flag_unused_command_line_argument=yes 7048else $as_nop 7049 xorg_cv_cc_flag_unused_command_line_argument=no 7050fi 7051rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7052fi 7053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7054printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7055 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7056 CFLAGS="$xorg_testset_save_CFLAGS" 7057fi 7058 7059found="no" 7060 7061 if test $found = "no" ; then 7062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7064 fi 7065 7066 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7068 fi 7069 7070 CFLAGS="$CFLAGS -Wlogical-op" 7071 7072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7073printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7074 cacheid=xorg_cv_cc_flag__Wlogical_op 7075 if eval test \${$cacheid+y} 7076then : 7077 printf %s "(cached) " >&6 7078else $as_nop 7079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7080/* end confdefs.h. */ 7081int i; 7082int 7083main (void) 7084{ 7085 7086 ; 7087 return 0; 7088} 7089_ACEOF 7090if ac_fn_c_try_link "$LINENO" 7091then : 7092 eval $cacheid=yes 7093else $as_nop 7094 eval $cacheid=no 7095fi 7096rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7097 conftest$ac_exeext conftest.$ac_ext 7098fi 7099 7100 7101 CFLAGS="$xorg_testset_save_CFLAGS" 7102 7103 eval supported=\$$cacheid 7104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7105printf "%s\n" "$supported" >&6; } 7106 if test "$supported" = "yes" ; then 7107 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7108 found="yes" 7109 fi 7110 fi 7111 7112 7113 7114# These are currently disabled because they are noisy. They will be enabled 7115# in the future once the codebase is sufficiently modernized to silence 7116# them. For now, I don't want them to drown out the other warnings. 7117# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7118# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7119# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7120 7121# Turn some warnings into errors, so we don't accidently get successful builds 7122# when there are problems that should be fixed. 7123 7124if test "x$SELECTIVE_WERROR" = "xyes" ; then 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138xorg_testset_save_CFLAGS="$CFLAGS" 7139 7140if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7141 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7143printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7144if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7145then : 7146 printf %s "(cached) " >&6 7147else $as_nop 7148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7149/* end confdefs.h. */ 7150int i; 7151_ACEOF 7152if ac_fn_c_try_compile "$LINENO" 7153then : 7154 xorg_cv_cc_flag_unknown_warning_option=yes 7155else $as_nop 7156 xorg_cv_cc_flag_unknown_warning_option=no 7157fi 7158rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7159fi 7160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7161printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7162 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7163 CFLAGS="$xorg_testset_save_CFLAGS" 7164fi 7165 7166if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7167 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7169 fi 7170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7172printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7173if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7174then : 7175 printf %s "(cached) " >&6 7176else $as_nop 7177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7178/* end confdefs.h. */ 7179int i; 7180_ACEOF 7181if ac_fn_c_try_compile "$LINENO" 7182then : 7183 xorg_cv_cc_flag_unused_command_line_argument=yes 7184else $as_nop 7185 xorg_cv_cc_flag_unused_command_line_argument=no 7186fi 7187rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7188fi 7189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7190printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7191 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7192 CFLAGS="$xorg_testset_save_CFLAGS" 7193fi 7194 7195found="no" 7196 7197 if test $found = "no" ; then 7198 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7199 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7200 fi 7201 7202 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7204 fi 7205 7206 CFLAGS="$CFLAGS -Werror=implicit" 7207 7208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7209printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7210 cacheid=xorg_cv_cc_flag__Werror_implicit 7211 if eval test \${$cacheid+y} 7212then : 7213 printf %s "(cached) " >&6 7214else $as_nop 7215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7216/* end confdefs.h. */ 7217int i; 7218int 7219main (void) 7220{ 7221 7222 ; 7223 return 0; 7224} 7225_ACEOF 7226if ac_fn_c_try_link "$LINENO" 7227then : 7228 eval $cacheid=yes 7229else $as_nop 7230 eval $cacheid=no 7231fi 7232rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7233 conftest$ac_exeext conftest.$ac_ext 7234fi 7235 7236 7237 CFLAGS="$xorg_testset_save_CFLAGS" 7238 7239 eval supported=\$$cacheid 7240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7241printf "%s\n" "$supported" >&6; } 7242 if test "$supported" = "yes" ; then 7243 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7244 found="yes" 7245 fi 7246 fi 7247 7248 if test $found = "no" ; then 7249 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7250 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7251 fi 7252 7253 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7255 fi 7256 7257 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7258 7259 { 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 7260printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7261 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7262 if eval test \${$cacheid+y} 7263then : 7264 printf %s "(cached) " >&6 7265else $as_nop 7266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7267/* end confdefs.h. */ 7268int i; 7269int 7270main (void) 7271{ 7272 7273 ; 7274 return 0; 7275} 7276_ACEOF 7277if ac_fn_c_try_link "$LINENO" 7278then : 7279 eval $cacheid=yes 7280else $as_nop 7281 eval $cacheid=no 7282fi 7283rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7284 conftest$ac_exeext conftest.$ac_ext 7285fi 7286 7287 7288 CFLAGS="$xorg_testset_save_CFLAGS" 7289 7290 eval supported=\$$cacheid 7291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7292printf "%s\n" "$supported" >&6; } 7293 if test "$supported" = "yes" ; then 7294 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7295 found="yes" 7296 fi 7297 fi 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313xorg_testset_save_CFLAGS="$CFLAGS" 7314 7315if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7316 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7318printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7319if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7320then : 7321 printf %s "(cached) " >&6 7322else $as_nop 7323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7324/* end confdefs.h. */ 7325int i; 7326_ACEOF 7327if ac_fn_c_try_compile "$LINENO" 7328then : 7329 xorg_cv_cc_flag_unknown_warning_option=yes 7330else $as_nop 7331 xorg_cv_cc_flag_unknown_warning_option=no 7332fi 7333rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7334fi 7335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7336printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7337 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7338 CFLAGS="$xorg_testset_save_CFLAGS" 7339fi 7340 7341if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7343 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7344 fi 7345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7347printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7348if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7349then : 7350 printf %s "(cached) " >&6 7351else $as_nop 7352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7353/* end confdefs.h. */ 7354int i; 7355_ACEOF 7356if ac_fn_c_try_compile "$LINENO" 7357then : 7358 xorg_cv_cc_flag_unused_command_line_argument=yes 7359else $as_nop 7360 xorg_cv_cc_flag_unused_command_line_argument=no 7361fi 7362rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7363fi 7364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7365printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7366 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7367 CFLAGS="$xorg_testset_save_CFLAGS" 7368fi 7369 7370found="no" 7371 7372 if test $found = "no" ; then 7373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7374 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7375 fi 7376 7377 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7379 fi 7380 7381 CFLAGS="$CFLAGS -Werror=nonnull" 7382 7383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7384printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7385 cacheid=xorg_cv_cc_flag__Werror_nonnull 7386 if eval test \${$cacheid+y} 7387then : 7388 printf %s "(cached) " >&6 7389else $as_nop 7390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7391/* end confdefs.h. */ 7392int i; 7393int 7394main (void) 7395{ 7396 7397 ; 7398 return 0; 7399} 7400_ACEOF 7401if ac_fn_c_try_link "$LINENO" 7402then : 7403 eval $cacheid=yes 7404else $as_nop 7405 eval $cacheid=no 7406fi 7407rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7408 conftest$ac_exeext conftest.$ac_ext 7409fi 7410 7411 7412 CFLAGS="$xorg_testset_save_CFLAGS" 7413 7414 eval supported=\$$cacheid 7415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7416printf "%s\n" "$supported" >&6; } 7417 if test "$supported" = "yes" ; then 7418 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7419 found="yes" 7420 fi 7421 fi 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437xorg_testset_save_CFLAGS="$CFLAGS" 7438 7439if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7442printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7443if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7444then : 7445 printf %s "(cached) " >&6 7446else $as_nop 7447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7448/* end confdefs.h. */ 7449int i; 7450_ACEOF 7451if ac_fn_c_try_compile "$LINENO" 7452then : 7453 xorg_cv_cc_flag_unknown_warning_option=yes 7454else $as_nop 7455 xorg_cv_cc_flag_unknown_warning_option=no 7456fi 7457rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7458fi 7459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7460printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7461 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7462 CFLAGS="$xorg_testset_save_CFLAGS" 7463fi 7464 7465if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7468 fi 7469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7471printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7472if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7473then : 7474 printf %s "(cached) " >&6 7475else $as_nop 7476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7477/* end confdefs.h. */ 7478int i; 7479_ACEOF 7480if ac_fn_c_try_compile "$LINENO" 7481then : 7482 xorg_cv_cc_flag_unused_command_line_argument=yes 7483else $as_nop 7484 xorg_cv_cc_flag_unused_command_line_argument=no 7485fi 7486rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7487fi 7488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7489printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7490 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7491 CFLAGS="$xorg_testset_save_CFLAGS" 7492fi 7493 7494found="no" 7495 7496 if test $found = "no" ; then 7497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7498 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7499 fi 7500 7501 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7503 fi 7504 7505 CFLAGS="$CFLAGS -Werror=init-self" 7506 7507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7508printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7509 cacheid=xorg_cv_cc_flag__Werror_init_self 7510 if eval test \${$cacheid+y} 7511then : 7512 printf %s "(cached) " >&6 7513else $as_nop 7514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7515/* end confdefs.h. */ 7516int i; 7517int 7518main (void) 7519{ 7520 7521 ; 7522 return 0; 7523} 7524_ACEOF 7525if ac_fn_c_try_link "$LINENO" 7526then : 7527 eval $cacheid=yes 7528else $as_nop 7529 eval $cacheid=no 7530fi 7531rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7532 conftest$ac_exeext conftest.$ac_ext 7533fi 7534 7535 7536 CFLAGS="$xorg_testset_save_CFLAGS" 7537 7538 eval supported=\$$cacheid 7539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7540printf "%s\n" "$supported" >&6; } 7541 if test "$supported" = "yes" ; then 7542 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7543 found="yes" 7544 fi 7545 fi 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561xorg_testset_save_CFLAGS="$CFLAGS" 7562 7563if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7564 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7566printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7567if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7568then : 7569 printf %s "(cached) " >&6 7570else $as_nop 7571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7572/* end confdefs.h. */ 7573int i; 7574_ACEOF 7575if ac_fn_c_try_compile "$LINENO" 7576then : 7577 xorg_cv_cc_flag_unknown_warning_option=yes 7578else $as_nop 7579 xorg_cv_cc_flag_unknown_warning_option=no 7580fi 7581rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7582fi 7583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7584printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7585 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7586 CFLAGS="$xorg_testset_save_CFLAGS" 7587fi 7588 7589if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7592 fi 7593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7595printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7596if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7597then : 7598 printf %s "(cached) " >&6 7599else $as_nop 7600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7601/* end confdefs.h. */ 7602int i; 7603_ACEOF 7604if ac_fn_c_try_compile "$LINENO" 7605then : 7606 xorg_cv_cc_flag_unused_command_line_argument=yes 7607else $as_nop 7608 xorg_cv_cc_flag_unused_command_line_argument=no 7609fi 7610rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7611fi 7612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7613printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7614 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7615 CFLAGS="$xorg_testset_save_CFLAGS" 7616fi 7617 7618found="no" 7619 7620 if test $found = "no" ; then 7621 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7622 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7623 fi 7624 7625 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7627 fi 7628 7629 CFLAGS="$CFLAGS -Werror=main" 7630 7631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7632printf %s "checking if $CC supports -Werror=main... " >&6; } 7633 cacheid=xorg_cv_cc_flag__Werror_main 7634 if eval test \${$cacheid+y} 7635then : 7636 printf %s "(cached) " >&6 7637else $as_nop 7638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7639/* end confdefs.h. */ 7640int i; 7641int 7642main (void) 7643{ 7644 7645 ; 7646 return 0; 7647} 7648_ACEOF 7649if ac_fn_c_try_link "$LINENO" 7650then : 7651 eval $cacheid=yes 7652else $as_nop 7653 eval $cacheid=no 7654fi 7655rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7656 conftest$ac_exeext conftest.$ac_ext 7657fi 7658 7659 7660 CFLAGS="$xorg_testset_save_CFLAGS" 7661 7662 eval supported=\$$cacheid 7663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7664printf "%s\n" "$supported" >&6; } 7665 if test "$supported" = "yes" ; then 7666 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7667 found="yes" 7668 fi 7669 fi 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685xorg_testset_save_CFLAGS="$CFLAGS" 7686 7687if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7688 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7690printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7691if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7692then : 7693 printf %s "(cached) " >&6 7694else $as_nop 7695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7696/* end confdefs.h. */ 7697int i; 7698_ACEOF 7699if ac_fn_c_try_compile "$LINENO" 7700then : 7701 xorg_cv_cc_flag_unknown_warning_option=yes 7702else $as_nop 7703 xorg_cv_cc_flag_unknown_warning_option=no 7704fi 7705rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7706fi 7707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7708printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7709 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7710 CFLAGS="$xorg_testset_save_CFLAGS" 7711fi 7712 7713if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7714 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7715 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7716 fi 7717 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7719printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7720if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7721then : 7722 printf %s "(cached) " >&6 7723else $as_nop 7724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7725/* end confdefs.h. */ 7726int i; 7727_ACEOF 7728if ac_fn_c_try_compile "$LINENO" 7729then : 7730 xorg_cv_cc_flag_unused_command_line_argument=yes 7731else $as_nop 7732 xorg_cv_cc_flag_unused_command_line_argument=no 7733fi 7734rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7735fi 7736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7737printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7738 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7739 CFLAGS="$xorg_testset_save_CFLAGS" 7740fi 7741 7742found="no" 7743 7744 if test $found = "no" ; then 7745 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7746 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7747 fi 7748 7749 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7751 fi 7752 7753 CFLAGS="$CFLAGS -Werror=missing-braces" 7754 7755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7756printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7757 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7758 if eval test \${$cacheid+y} 7759then : 7760 printf %s "(cached) " >&6 7761else $as_nop 7762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7763/* end confdefs.h. */ 7764int i; 7765int 7766main (void) 7767{ 7768 7769 ; 7770 return 0; 7771} 7772_ACEOF 7773if ac_fn_c_try_link "$LINENO" 7774then : 7775 eval $cacheid=yes 7776else $as_nop 7777 eval $cacheid=no 7778fi 7779rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7780 conftest$ac_exeext conftest.$ac_ext 7781fi 7782 7783 7784 CFLAGS="$xorg_testset_save_CFLAGS" 7785 7786 eval supported=\$$cacheid 7787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7788printf "%s\n" "$supported" >&6; } 7789 if test "$supported" = "yes" ; then 7790 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7791 found="yes" 7792 fi 7793 fi 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809xorg_testset_save_CFLAGS="$CFLAGS" 7810 7811if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7812 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7814printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7815if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7816then : 7817 printf %s "(cached) " >&6 7818else $as_nop 7819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7820/* end confdefs.h. */ 7821int i; 7822_ACEOF 7823if ac_fn_c_try_compile "$LINENO" 7824then : 7825 xorg_cv_cc_flag_unknown_warning_option=yes 7826else $as_nop 7827 xorg_cv_cc_flag_unknown_warning_option=no 7828fi 7829rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7830fi 7831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7832printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7833 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7834 CFLAGS="$xorg_testset_save_CFLAGS" 7835fi 7836 7837if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7838 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7839 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7840 fi 7841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7843printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7844if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7845then : 7846 printf %s "(cached) " >&6 7847else $as_nop 7848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7849/* end confdefs.h. */ 7850int i; 7851_ACEOF 7852if ac_fn_c_try_compile "$LINENO" 7853then : 7854 xorg_cv_cc_flag_unused_command_line_argument=yes 7855else $as_nop 7856 xorg_cv_cc_flag_unused_command_line_argument=no 7857fi 7858rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7859fi 7860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7861printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7862 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7863 CFLAGS="$xorg_testset_save_CFLAGS" 7864fi 7865 7866found="no" 7867 7868 if test $found = "no" ; then 7869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7871 fi 7872 7873 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7875 fi 7876 7877 CFLAGS="$CFLAGS -Werror=sequence-point" 7878 7879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7880printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 7881 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7882 if eval test \${$cacheid+y} 7883then : 7884 printf %s "(cached) " >&6 7885else $as_nop 7886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7887/* end confdefs.h. */ 7888int i; 7889int 7890main (void) 7891{ 7892 7893 ; 7894 return 0; 7895} 7896_ACEOF 7897if ac_fn_c_try_link "$LINENO" 7898then : 7899 eval $cacheid=yes 7900else $as_nop 7901 eval $cacheid=no 7902fi 7903rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7904 conftest$ac_exeext conftest.$ac_ext 7905fi 7906 7907 7908 CFLAGS="$xorg_testset_save_CFLAGS" 7909 7910 eval supported=\$$cacheid 7911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7912printf "%s\n" "$supported" >&6; } 7913 if test "$supported" = "yes" ; then 7914 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7915 found="yes" 7916 fi 7917 fi 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933xorg_testset_save_CFLAGS="$CFLAGS" 7934 7935if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7936 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7938printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7939if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7940then : 7941 printf %s "(cached) " >&6 7942else $as_nop 7943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7944/* end confdefs.h. */ 7945int i; 7946_ACEOF 7947if ac_fn_c_try_compile "$LINENO" 7948then : 7949 xorg_cv_cc_flag_unknown_warning_option=yes 7950else $as_nop 7951 xorg_cv_cc_flag_unknown_warning_option=no 7952fi 7953rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7954fi 7955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7956printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7957 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7958 CFLAGS="$xorg_testset_save_CFLAGS" 7959fi 7960 7961if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7964 fi 7965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7967printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7968if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7969then : 7970 printf %s "(cached) " >&6 7971else $as_nop 7972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7973/* end confdefs.h. */ 7974int i; 7975_ACEOF 7976if ac_fn_c_try_compile "$LINENO" 7977then : 7978 xorg_cv_cc_flag_unused_command_line_argument=yes 7979else $as_nop 7980 xorg_cv_cc_flag_unused_command_line_argument=no 7981fi 7982rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7983fi 7984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7985printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7986 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7987 CFLAGS="$xorg_testset_save_CFLAGS" 7988fi 7989 7990found="no" 7991 7992 if test $found = "no" ; then 7993 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7994 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7995 fi 7996 7997 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7999 fi 8000 8001 CFLAGS="$CFLAGS -Werror=return-type" 8002 8003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8004printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8005 cacheid=xorg_cv_cc_flag__Werror_return_type 8006 if eval test \${$cacheid+y} 8007then : 8008 printf %s "(cached) " >&6 8009else $as_nop 8010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8011/* end confdefs.h. */ 8012int i; 8013int 8014main (void) 8015{ 8016 8017 ; 8018 return 0; 8019} 8020_ACEOF 8021if ac_fn_c_try_link "$LINENO" 8022then : 8023 eval $cacheid=yes 8024else $as_nop 8025 eval $cacheid=no 8026fi 8027rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8028 conftest$ac_exeext conftest.$ac_ext 8029fi 8030 8031 8032 CFLAGS="$xorg_testset_save_CFLAGS" 8033 8034 eval supported=\$$cacheid 8035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8036printf "%s\n" "$supported" >&6; } 8037 if test "$supported" = "yes" ; then 8038 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8039 found="yes" 8040 fi 8041 fi 8042 8043 if test $found = "no" ; then 8044 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8046 fi 8047 8048 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8050 fi 8051 8052 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8053 8054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8055printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8056 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8057 if eval test \${$cacheid+y} 8058then : 8059 printf %s "(cached) " >&6 8060else $as_nop 8061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8062/* end confdefs.h. */ 8063int i; 8064int 8065main (void) 8066{ 8067 8068 ; 8069 return 0; 8070} 8071_ACEOF 8072if ac_fn_c_try_link "$LINENO" 8073then : 8074 eval $cacheid=yes 8075else $as_nop 8076 eval $cacheid=no 8077fi 8078rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8079 conftest$ac_exeext conftest.$ac_ext 8080fi 8081 8082 8083 CFLAGS="$xorg_testset_save_CFLAGS" 8084 8085 eval supported=\$$cacheid 8086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8087printf "%s\n" "$supported" >&6; } 8088 if test "$supported" = "yes" ; then 8089 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8090 found="yes" 8091 fi 8092 fi 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108xorg_testset_save_CFLAGS="$CFLAGS" 8109 8110if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8111 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8113printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8114if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8115then : 8116 printf %s "(cached) " >&6 8117else $as_nop 8118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8119/* end confdefs.h. */ 8120int i; 8121_ACEOF 8122if ac_fn_c_try_compile "$LINENO" 8123then : 8124 xorg_cv_cc_flag_unknown_warning_option=yes 8125else $as_nop 8126 xorg_cv_cc_flag_unknown_warning_option=no 8127fi 8128rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8129fi 8130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8131printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8132 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8133 CFLAGS="$xorg_testset_save_CFLAGS" 8134fi 8135 8136if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8137 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8138 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8139 fi 8140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8142printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8143if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8144then : 8145 printf %s "(cached) " >&6 8146else $as_nop 8147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8148/* end confdefs.h. */ 8149int i; 8150_ACEOF 8151if ac_fn_c_try_compile "$LINENO" 8152then : 8153 xorg_cv_cc_flag_unused_command_line_argument=yes 8154else $as_nop 8155 xorg_cv_cc_flag_unused_command_line_argument=no 8156fi 8157rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8158fi 8159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8160printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8161 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8162 CFLAGS="$xorg_testset_save_CFLAGS" 8163fi 8164 8165found="no" 8166 8167 if test $found = "no" ; then 8168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8170 fi 8171 8172 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8174 fi 8175 8176 CFLAGS="$CFLAGS -Werror=trigraphs" 8177 8178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8179printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8180 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8181 if eval test \${$cacheid+y} 8182then : 8183 printf %s "(cached) " >&6 8184else $as_nop 8185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8186/* end confdefs.h. */ 8187int i; 8188int 8189main (void) 8190{ 8191 8192 ; 8193 return 0; 8194} 8195_ACEOF 8196if ac_fn_c_try_link "$LINENO" 8197then : 8198 eval $cacheid=yes 8199else $as_nop 8200 eval $cacheid=no 8201fi 8202rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8203 conftest$ac_exeext conftest.$ac_ext 8204fi 8205 8206 8207 CFLAGS="$xorg_testset_save_CFLAGS" 8208 8209 eval supported=\$$cacheid 8210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8211printf "%s\n" "$supported" >&6; } 8212 if test "$supported" = "yes" ; then 8213 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8214 found="yes" 8215 fi 8216 fi 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232xorg_testset_save_CFLAGS="$CFLAGS" 8233 8234if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8237printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8238if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8239then : 8240 printf %s "(cached) " >&6 8241else $as_nop 8242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8243/* end confdefs.h. */ 8244int i; 8245_ACEOF 8246if ac_fn_c_try_compile "$LINENO" 8247then : 8248 xorg_cv_cc_flag_unknown_warning_option=yes 8249else $as_nop 8250 xorg_cv_cc_flag_unknown_warning_option=no 8251fi 8252rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8253fi 8254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8255printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8256 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8257 CFLAGS="$xorg_testset_save_CFLAGS" 8258fi 8259 8260if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8261 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8262 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8263 fi 8264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8266printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8267if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8268then : 8269 printf %s "(cached) " >&6 8270else $as_nop 8271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8272/* end confdefs.h. */ 8273int i; 8274_ACEOF 8275if ac_fn_c_try_compile "$LINENO" 8276then : 8277 xorg_cv_cc_flag_unused_command_line_argument=yes 8278else $as_nop 8279 xorg_cv_cc_flag_unused_command_line_argument=no 8280fi 8281rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8282fi 8283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8284printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8285 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8286 CFLAGS="$xorg_testset_save_CFLAGS" 8287fi 8288 8289found="no" 8290 8291 if test $found = "no" ; then 8292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8294 fi 8295 8296 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8298 fi 8299 8300 CFLAGS="$CFLAGS -Werror=array-bounds" 8301 8302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8303printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8304 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8305 if eval test \${$cacheid+y} 8306then : 8307 printf %s "(cached) " >&6 8308else $as_nop 8309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8310/* end confdefs.h. */ 8311int i; 8312int 8313main (void) 8314{ 8315 8316 ; 8317 return 0; 8318} 8319_ACEOF 8320if ac_fn_c_try_link "$LINENO" 8321then : 8322 eval $cacheid=yes 8323else $as_nop 8324 eval $cacheid=no 8325fi 8326rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8327 conftest$ac_exeext conftest.$ac_ext 8328fi 8329 8330 8331 CFLAGS="$xorg_testset_save_CFLAGS" 8332 8333 eval supported=\$$cacheid 8334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8335printf "%s\n" "$supported" >&6; } 8336 if test "$supported" = "yes" ; then 8337 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8338 found="yes" 8339 fi 8340 fi 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356xorg_testset_save_CFLAGS="$CFLAGS" 8357 8358if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8359 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8361printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8362if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8363then : 8364 printf %s "(cached) " >&6 8365else $as_nop 8366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8367/* end confdefs.h. */ 8368int i; 8369_ACEOF 8370if ac_fn_c_try_compile "$LINENO" 8371then : 8372 xorg_cv_cc_flag_unknown_warning_option=yes 8373else $as_nop 8374 xorg_cv_cc_flag_unknown_warning_option=no 8375fi 8376rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8377fi 8378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8379printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8380 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8381 CFLAGS="$xorg_testset_save_CFLAGS" 8382fi 8383 8384if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8385 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8386 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8387 fi 8388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8390printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8391if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8392then : 8393 printf %s "(cached) " >&6 8394else $as_nop 8395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8396/* end confdefs.h. */ 8397int i; 8398_ACEOF 8399if ac_fn_c_try_compile "$LINENO" 8400then : 8401 xorg_cv_cc_flag_unused_command_line_argument=yes 8402else $as_nop 8403 xorg_cv_cc_flag_unused_command_line_argument=no 8404fi 8405rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8406fi 8407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8408printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8409 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8410 CFLAGS="$xorg_testset_save_CFLAGS" 8411fi 8412 8413found="no" 8414 8415 if test $found = "no" ; then 8416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8418 fi 8419 8420 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8422 fi 8423 8424 CFLAGS="$CFLAGS -Werror=write-strings" 8425 8426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8427printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8428 cacheid=xorg_cv_cc_flag__Werror_write_strings 8429 if eval test \${$cacheid+y} 8430then : 8431 printf %s "(cached) " >&6 8432else $as_nop 8433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8434/* end confdefs.h. */ 8435int i; 8436int 8437main (void) 8438{ 8439 8440 ; 8441 return 0; 8442} 8443_ACEOF 8444if ac_fn_c_try_link "$LINENO" 8445then : 8446 eval $cacheid=yes 8447else $as_nop 8448 eval $cacheid=no 8449fi 8450rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8451 conftest$ac_exeext conftest.$ac_ext 8452fi 8453 8454 8455 CFLAGS="$xorg_testset_save_CFLAGS" 8456 8457 eval supported=\$$cacheid 8458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8459printf "%s\n" "$supported" >&6; } 8460 if test "$supported" = "yes" ; then 8461 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8462 found="yes" 8463 fi 8464 fi 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480xorg_testset_save_CFLAGS="$CFLAGS" 8481 8482if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8483 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8485printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8486if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8487then : 8488 printf %s "(cached) " >&6 8489else $as_nop 8490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8491/* end confdefs.h. */ 8492int i; 8493_ACEOF 8494if ac_fn_c_try_compile "$LINENO" 8495then : 8496 xorg_cv_cc_flag_unknown_warning_option=yes 8497else $as_nop 8498 xorg_cv_cc_flag_unknown_warning_option=no 8499fi 8500rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8501fi 8502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8503printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8504 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8505 CFLAGS="$xorg_testset_save_CFLAGS" 8506fi 8507 8508if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8509 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8510 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8511 fi 8512 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8514printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8515if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8516then : 8517 printf %s "(cached) " >&6 8518else $as_nop 8519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8520/* end confdefs.h. */ 8521int i; 8522_ACEOF 8523if ac_fn_c_try_compile "$LINENO" 8524then : 8525 xorg_cv_cc_flag_unused_command_line_argument=yes 8526else $as_nop 8527 xorg_cv_cc_flag_unused_command_line_argument=no 8528fi 8529rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8530fi 8531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8532printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8533 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8534 CFLAGS="$xorg_testset_save_CFLAGS" 8535fi 8536 8537found="no" 8538 8539 if test $found = "no" ; then 8540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8541 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8542 fi 8543 8544 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8546 fi 8547 8548 CFLAGS="$CFLAGS -Werror=address" 8549 8550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8551printf %s "checking if $CC supports -Werror=address... " >&6; } 8552 cacheid=xorg_cv_cc_flag__Werror_address 8553 if eval test \${$cacheid+y} 8554then : 8555 printf %s "(cached) " >&6 8556else $as_nop 8557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8558/* end confdefs.h. */ 8559int i; 8560int 8561main (void) 8562{ 8563 8564 ; 8565 return 0; 8566} 8567_ACEOF 8568if ac_fn_c_try_link "$LINENO" 8569then : 8570 eval $cacheid=yes 8571else $as_nop 8572 eval $cacheid=no 8573fi 8574rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8575 conftest$ac_exeext conftest.$ac_ext 8576fi 8577 8578 8579 CFLAGS="$xorg_testset_save_CFLAGS" 8580 8581 eval supported=\$$cacheid 8582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8583printf "%s\n" "$supported" >&6; } 8584 if test "$supported" = "yes" ; then 8585 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8586 found="yes" 8587 fi 8588 fi 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604xorg_testset_save_CFLAGS="$CFLAGS" 8605 8606if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8607 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8609printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8610if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8611then : 8612 printf %s "(cached) " >&6 8613else $as_nop 8614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8615/* end confdefs.h. */ 8616int i; 8617_ACEOF 8618if ac_fn_c_try_compile "$LINENO" 8619then : 8620 xorg_cv_cc_flag_unknown_warning_option=yes 8621else $as_nop 8622 xorg_cv_cc_flag_unknown_warning_option=no 8623fi 8624rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8625fi 8626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8627printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8628 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8629 CFLAGS="$xorg_testset_save_CFLAGS" 8630fi 8631 8632if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8634 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8635 fi 8636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8638printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8639if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8640then : 8641 printf %s "(cached) " >&6 8642else $as_nop 8643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8644/* end confdefs.h. */ 8645int i; 8646_ACEOF 8647if ac_fn_c_try_compile "$LINENO" 8648then : 8649 xorg_cv_cc_flag_unused_command_line_argument=yes 8650else $as_nop 8651 xorg_cv_cc_flag_unused_command_line_argument=no 8652fi 8653rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8654fi 8655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8656printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8657 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8658 CFLAGS="$xorg_testset_save_CFLAGS" 8659fi 8660 8661found="no" 8662 8663 if test $found = "no" ; then 8664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8666 fi 8667 8668 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8670 fi 8671 8672 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8673 8674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8675printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8676 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8677 if eval test \${$cacheid+y} 8678then : 8679 printf %s "(cached) " >&6 8680else $as_nop 8681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8682/* end confdefs.h. */ 8683int i; 8684int 8685main (void) 8686{ 8687 8688 ; 8689 return 0; 8690} 8691_ACEOF 8692if ac_fn_c_try_link "$LINENO" 8693then : 8694 eval $cacheid=yes 8695else $as_nop 8696 eval $cacheid=no 8697fi 8698rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8699 conftest$ac_exeext conftest.$ac_ext 8700fi 8701 8702 8703 CFLAGS="$xorg_testset_save_CFLAGS" 8704 8705 eval supported=\$$cacheid 8706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8707printf "%s\n" "$supported" >&6; } 8708 if test "$supported" = "yes" ; then 8709 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8710 found="yes" 8711 fi 8712 fi 8713 8714 if test $found = "no" ; then 8715 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8716 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8717 fi 8718 8719 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8721 fi 8722 8723 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8724 8725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8726printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8727 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8728 if eval test \${$cacheid+y} 8729then : 8730 printf %s "(cached) " >&6 8731else $as_nop 8732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8733/* end confdefs.h. */ 8734int i; 8735int 8736main (void) 8737{ 8738 8739 ; 8740 return 0; 8741} 8742_ACEOF 8743if ac_fn_c_try_link "$LINENO" 8744then : 8745 eval $cacheid=yes 8746else $as_nop 8747 eval $cacheid=no 8748fi 8749rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8750 conftest$ac_exeext conftest.$ac_ext 8751fi 8752 8753 8754 CFLAGS="$xorg_testset_save_CFLAGS" 8755 8756 eval supported=\$$cacheid 8757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8758printf "%s\n" "$supported" >&6; } 8759 if test "$supported" = "yes" ; then 8760 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8761 found="yes" 8762 fi 8763 fi 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779xorg_testset_save_CFLAGS="$CFLAGS" 8780 8781if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8782 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8784printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8785if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8786then : 8787 printf %s "(cached) " >&6 8788else $as_nop 8789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8790/* end confdefs.h. */ 8791int i; 8792_ACEOF 8793if ac_fn_c_try_compile "$LINENO" 8794then : 8795 xorg_cv_cc_flag_unknown_warning_option=yes 8796else $as_nop 8797 xorg_cv_cc_flag_unknown_warning_option=no 8798fi 8799rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8800fi 8801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8802printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8803 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8804 CFLAGS="$xorg_testset_save_CFLAGS" 8805fi 8806 8807if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8808 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8809 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8810 fi 8811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8813printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8814if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8815then : 8816 printf %s "(cached) " >&6 8817else $as_nop 8818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8819/* end confdefs.h. */ 8820int i; 8821_ACEOF 8822if ac_fn_c_try_compile "$LINENO" 8823then : 8824 xorg_cv_cc_flag_unused_command_line_argument=yes 8825else $as_nop 8826 xorg_cv_cc_flag_unused_command_line_argument=no 8827fi 8828rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8829fi 8830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8831printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8832 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8833 CFLAGS="$xorg_testset_save_CFLAGS" 8834fi 8835 8836found="no" 8837 8838 if test $found = "no" ; then 8839 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8840 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8841 fi 8842 8843 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8845 fi 8846 8847 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8848 8849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8850printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8851 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8852 if eval test \${$cacheid+y} 8853then : 8854 printf %s "(cached) " >&6 8855else $as_nop 8856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8857/* end confdefs.h. */ 8858int i; 8859int 8860main (void) 8861{ 8862 8863 ; 8864 return 0; 8865} 8866_ACEOF 8867if ac_fn_c_try_link "$LINENO" 8868then : 8869 eval $cacheid=yes 8870else $as_nop 8871 eval $cacheid=no 8872fi 8873rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8874 conftest$ac_exeext conftest.$ac_ext 8875fi 8876 8877 8878 CFLAGS="$xorg_testset_save_CFLAGS" 8879 8880 eval supported=\$$cacheid 8881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8882printf "%s\n" "$supported" >&6; } 8883 if test "$supported" = "yes" ; then 8884 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8885 found="yes" 8886 fi 8887 fi 8888 8889 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8890else 8891{ 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 8892printf "%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;} 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 -Wimplicit" 8975 8976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8977printf %s "checking if $CC supports -Wimplicit... " >&6; } 8978 cacheid=xorg_cv_cc_flag__Wimplicit 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 -Wimplicit" 9012 found="yes" 9013 fi 9014 fi 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030xorg_testset_save_CFLAGS="$CFLAGS" 9031 9032if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9035printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9036if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9037then : 9038 printf %s "(cached) " >&6 9039else $as_nop 9040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9041/* end confdefs.h. */ 9042int i; 9043_ACEOF 9044if ac_fn_c_try_compile "$LINENO" 9045then : 9046 xorg_cv_cc_flag_unknown_warning_option=yes 9047else $as_nop 9048 xorg_cv_cc_flag_unknown_warning_option=no 9049fi 9050rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9051fi 9052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9053printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9054 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9055 CFLAGS="$xorg_testset_save_CFLAGS" 9056fi 9057 9058if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9060 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9061 fi 9062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9064printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9065if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9066then : 9067 printf %s "(cached) " >&6 9068else $as_nop 9069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9070/* end confdefs.h. */ 9071int i; 9072_ACEOF 9073if ac_fn_c_try_compile "$LINENO" 9074then : 9075 xorg_cv_cc_flag_unused_command_line_argument=yes 9076else $as_nop 9077 xorg_cv_cc_flag_unused_command_line_argument=no 9078fi 9079rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9080fi 9081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9082printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9083 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9084 CFLAGS="$xorg_testset_save_CFLAGS" 9085fi 9086 9087found="no" 9088 9089 if test $found = "no" ; then 9090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9092 fi 9093 9094 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9096 fi 9097 9098 CFLAGS="$CFLAGS -Wnonnull" 9099 9100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9101printf %s "checking if $CC supports -Wnonnull... " >&6; } 9102 cacheid=xorg_cv_cc_flag__Wnonnull 9103 if eval test \${$cacheid+y} 9104then : 9105 printf %s "(cached) " >&6 9106else $as_nop 9107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9108/* end confdefs.h. */ 9109int i; 9110int 9111main (void) 9112{ 9113 9114 ; 9115 return 0; 9116} 9117_ACEOF 9118if ac_fn_c_try_link "$LINENO" 9119then : 9120 eval $cacheid=yes 9121else $as_nop 9122 eval $cacheid=no 9123fi 9124rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9125 conftest$ac_exeext conftest.$ac_ext 9126fi 9127 9128 9129 CFLAGS="$xorg_testset_save_CFLAGS" 9130 9131 eval supported=\$$cacheid 9132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9133printf "%s\n" "$supported" >&6; } 9134 if test "$supported" = "yes" ; then 9135 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9136 found="yes" 9137 fi 9138 fi 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154xorg_testset_save_CFLAGS="$CFLAGS" 9155 9156if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9157 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9159printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9160if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9161then : 9162 printf %s "(cached) " >&6 9163else $as_nop 9164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9165/* end confdefs.h. */ 9166int i; 9167_ACEOF 9168if ac_fn_c_try_compile "$LINENO" 9169then : 9170 xorg_cv_cc_flag_unknown_warning_option=yes 9171else $as_nop 9172 xorg_cv_cc_flag_unknown_warning_option=no 9173fi 9174rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9175fi 9176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9177printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9178 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9179 CFLAGS="$xorg_testset_save_CFLAGS" 9180fi 9181 9182if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9185 fi 9186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9188printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9189if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9190then : 9191 printf %s "(cached) " >&6 9192else $as_nop 9193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9194/* end confdefs.h. */ 9195int i; 9196_ACEOF 9197if ac_fn_c_try_compile "$LINENO" 9198then : 9199 xorg_cv_cc_flag_unused_command_line_argument=yes 9200else $as_nop 9201 xorg_cv_cc_flag_unused_command_line_argument=no 9202fi 9203rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9204fi 9205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9206printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9207 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9208 CFLAGS="$xorg_testset_save_CFLAGS" 9209fi 9210 9211found="no" 9212 9213 if test $found = "no" ; then 9214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9215 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9216 fi 9217 9218 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9220 fi 9221 9222 CFLAGS="$CFLAGS -Winit-self" 9223 9224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9225printf %s "checking if $CC supports -Winit-self... " >&6; } 9226 cacheid=xorg_cv_cc_flag__Winit_self 9227 if eval test \${$cacheid+y} 9228then : 9229 printf %s "(cached) " >&6 9230else $as_nop 9231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9232/* end confdefs.h. */ 9233int i; 9234int 9235main (void) 9236{ 9237 9238 ; 9239 return 0; 9240} 9241_ACEOF 9242if ac_fn_c_try_link "$LINENO" 9243then : 9244 eval $cacheid=yes 9245else $as_nop 9246 eval $cacheid=no 9247fi 9248rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9249 conftest$ac_exeext conftest.$ac_ext 9250fi 9251 9252 9253 CFLAGS="$xorg_testset_save_CFLAGS" 9254 9255 eval supported=\$$cacheid 9256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9257printf "%s\n" "$supported" >&6; } 9258 if test "$supported" = "yes" ; then 9259 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9260 found="yes" 9261 fi 9262 fi 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278xorg_testset_save_CFLAGS="$CFLAGS" 9279 9280if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9281 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9283printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9284if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9285then : 9286 printf %s "(cached) " >&6 9287else $as_nop 9288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9289/* end confdefs.h. */ 9290int i; 9291_ACEOF 9292if ac_fn_c_try_compile "$LINENO" 9293then : 9294 xorg_cv_cc_flag_unknown_warning_option=yes 9295else $as_nop 9296 xorg_cv_cc_flag_unknown_warning_option=no 9297fi 9298rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9299fi 9300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9301printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9302 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9303 CFLAGS="$xorg_testset_save_CFLAGS" 9304fi 9305 9306if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9307 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9308 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9309 fi 9310 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9312printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9313if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9314then : 9315 printf %s "(cached) " >&6 9316else $as_nop 9317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9318/* end confdefs.h. */ 9319int i; 9320_ACEOF 9321if ac_fn_c_try_compile "$LINENO" 9322then : 9323 xorg_cv_cc_flag_unused_command_line_argument=yes 9324else $as_nop 9325 xorg_cv_cc_flag_unused_command_line_argument=no 9326fi 9327rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9328fi 9329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9330printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9331 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9332 CFLAGS="$xorg_testset_save_CFLAGS" 9333fi 9334 9335found="no" 9336 9337 if test $found = "no" ; then 9338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9339 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9340 fi 9341 9342 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9344 fi 9345 9346 CFLAGS="$CFLAGS -Wmain" 9347 9348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9349printf %s "checking if $CC supports -Wmain... " >&6; } 9350 cacheid=xorg_cv_cc_flag__Wmain 9351 if eval test \${$cacheid+y} 9352then : 9353 printf %s "(cached) " >&6 9354else $as_nop 9355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9356/* end confdefs.h. */ 9357int i; 9358int 9359main (void) 9360{ 9361 9362 ; 9363 return 0; 9364} 9365_ACEOF 9366if ac_fn_c_try_link "$LINENO" 9367then : 9368 eval $cacheid=yes 9369else $as_nop 9370 eval $cacheid=no 9371fi 9372rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9373 conftest$ac_exeext conftest.$ac_ext 9374fi 9375 9376 9377 CFLAGS="$xorg_testset_save_CFLAGS" 9378 9379 eval supported=\$$cacheid 9380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9381printf "%s\n" "$supported" >&6; } 9382 if test "$supported" = "yes" ; then 9383 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9384 found="yes" 9385 fi 9386 fi 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402xorg_testset_save_CFLAGS="$CFLAGS" 9403 9404if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9407printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9408if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9409then : 9410 printf %s "(cached) " >&6 9411else $as_nop 9412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9413/* end confdefs.h. */ 9414int i; 9415_ACEOF 9416if ac_fn_c_try_compile "$LINENO" 9417then : 9418 xorg_cv_cc_flag_unknown_warning_option=yes 9419else $as_nop 9420 xorg_cv_cc_flag_unknown_warning_option=no 9421fi 9422rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9423fi 9424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9425printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9426 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9427 CFLAGS="$xorg_testset_save_CFLAGS" 9428fi 9429 9430if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9432 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9433 fi 9434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9436printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9437if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9438then : 9439 printf %s "(cached) " >&6 9440else $as_nop 9441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9442/* end confdefs.h. */ 9443int i; 9444_ACEOF 9445if ac_fn_c_try_compile "$LINENO" 9446then : 9447 xorg_cv_cc_flag_unused_command_line_argument=yes 9448else $as_nop 9449 xorg_cv_cc_flag_unused_command_line_argument=no 9450fi 9451rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9452fi 9453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9454printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9455 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9456 CFLAGS="$xorg_testset_save_CFLAGS" 9457fi 9458 9459found="no" 9460 9461 if test $found = "no" ; then 9462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9463 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9464 fi 9465 9466 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9468 fi 9469 9470 CFLAGS="$CFLAGS -Wmissing-braces" 9471 9472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9473printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9474 cacheid=xorg_cv_cc_flag__Wmissing_braces 9475 if eval test \${$cacheid+y} 9476then : 9477 printf %s "(cached) " >&6 9478else $as_nop 9479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9480/* end confdefs.h. */ 9481int i; 9482int 9483main (void) 9484{ 9485 9486 ; 9487 return 0; 9488} 9489_ACEOF 9490if ac_fn_c_try_link "$LINENO" 9491then : 9492 eval $cacheid=yes 9493else $as_nop 9494 eval $cacheid=no 9495fi 9496rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9497 conftest$ac_exeext conftest.$ac_ext 9498fi 9499 9500 9501 CFLAGS="$xorg_testset_save_CFLAGS" 9502 9503 eval supported=\$$cacheid 9504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9505printf "%s\n" "$supported" >&6; } 9506 if test "$supported" = "yes" ; then 9507 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9508 found="yes" 9509 fi 9510 fi 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526xorg_testset_save_CFLAGS="$CFLAGS" 9527 9528if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9529 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9531printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9532if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9533then : 9534 printf %s "(cached) " >&6 9535else $as_nop 9536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9537/* end confdefs.h. */ 9538int i; 9539_ACEOF 9540if ac_fn_c_try_compile "$LINENO" 9541then : 9542 xorg_cv_cc_flag_unknown_warning_option=yes 9543else $as_nop 9544 xorg_cv_cc_flag_unknown_warning_option=no 9545fi 9546rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9547fi 9548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9549printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9550 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9551 CFLAGS="$xorg_testset_save_CFLAGS" 9552fi 9553 9554if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9555 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9556 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9557 fi 9558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9560printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9561if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9562then : 9563 printf %s "(cached) " >&6 9564else $as_nop 9565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9566/* end confdefs.h. */ 9567int i; 9568_ACEOF 9569if ac_fn_c_try_compile "$LINENO" 9570then : 9571 xorg_cv_cc_flag_unused_command_line_argument=yes 9572else $as_nop 9573 xorg_cv_cc_flag_unused_command_line_argument=no 9574fi 9575rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9576fi 9577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9578printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9579 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9580 CFLAGS="$xorg_testset_save_CFLAGS" 9581fi 9582 9583found="no" 9584 9585 if test $found = "no" ; then 9586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9588 fi 9589 9590 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9592 fi 9593 9594 CFLAGS="$CFLAGS -Wsequence-point" 9595 9596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9597printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9598 cacheid=xorg_cv_cc_flag__Wsequence_point 9599 if eval test \${$cacheid+y} 9600then : 9601 printf %s "(cached) " >&6 9602else $as_nop 9603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9604/* end confdefs.h. */ 9605int i; 9606int 9607main (void) 9608{ 9609 9610 ; 9611 return 0; 9612} 9613_ACEOF 9614if ac_fn_c_try_link "$LINENO" 9615then : 9616 eval $cacheid=yes 9617else $as_nop 9618 eval $cacheid=no 9619fi 9620rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9621 conftest$ac_exeext conftest.$ac_ext 9622fi 9623 9624 9625 CFLAGS="$xorg_testset_save_CFLAGS" 9626 9627 eval supported=\$$cacheid 9628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9629printf "%s\n" "$supported" >&6; } 9630 if test "$supported" = "yes" ; then 9631 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9632 found="yes" 9633 fi 9634 fi 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650xorg_testset_save_CFLAGS="$CFLAGS" 9651 9652if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9655printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9656if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9657then : 9658 printf %s "(cached) " >&6 9659else $as_nop 9660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9661/* end confdefs.h. */ 9662int i; 9663_ACEOF 9664if ac_fn_c_try_compile "$LINENO" 9665then : 9666 xorg_cv_cc_flag_unknown_warning_option=yes 9667else $as_nop 9668 xorg_cv_cc_flag_unknown_warning_option=no 9669fi 9670rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9671fi 9672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9673printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9674 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9675 CFLAGS="$xorg_testset_save_CFLAGS" 9676fi 9677 9678if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9681 fi 9682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9684printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9685if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9686then : 9687 printf %s "(cached) " >&6 9688else $as_nop 9689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9690/* end confdefs.h. */ 9691int i; 9692_ACEOF 9693if ac_fn_c_try_compile "$LINENO" 9694then : 9695 xorg_cv_cc_flag_unused_command_line_argument=yes 9696else $as_nop 9697 xorg_cv_cc_flag_unused_command_line_argument=no 9698fi 9699rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9700fi 9701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9702printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9703 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9704 CFLAGS="$xorg_testset_save_CFLAGS" 9705fi 9706 9707found="no" 9708 9709 if test $found = "no" ; then 9710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9712 fi 9713 9714 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9716 fi 9717 9718 CFLAGS="$CFLAGS -Wreturn-type" 9719 9720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9721printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9722 cacheid=xorg_cv_cc_flag__Wreturn_type 9723 if eval test \${$cacheid+y} 9724then : 9725 printf %s "(cached) " >&6 9726else $as_nop 9727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9728/* end confdefs.h. */ 9729int i; 9730int 9731main (void) 9732{ 9733 9734 ; 9735 return 0; 9736} 9737_ACEOF 9738if ac_fn_c_try_link "$LINENO" 9739then : 9740 eval $cacheid=yes 9741else $as_nop 9742 eval $cacheid=no 9743fi 9744rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9745 conftest$ac_exeext conftest.$ac_ext 9746fi 9747 9748 9749 CFLAGS="$xorg_testset_save_CFLAGS" 9750 9751 eval supported=\$$cacheid 9752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9753printf "%s\n" "$supported" >&6; } 9754 if test "$supported" = "yes" ; then 9755 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9756 found="yes" 9757 fi 9758 fi 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774xorg_testset_save_CFLAGS="$CFLAGS" 9775 9776if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9779printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9780if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9781then : 9782 printf %s "(cached) " >&6 9783else $as_nop 9784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9785/* end confdefs.h. */ 9786int i; 9787_ACEOF 9788if ac_fn_c_try_compile "$LINENO" 9789then : 9790 xorg_cv_cc_flag_unknown_warning_option=yes 9791else $as_nop 9792 xorg_cv_cc_flag_unknown_warning_option=no 9793fi 9794rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9795fi 9796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9797printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9798 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9799 CFLAGS="$xorg_testset_save_CFLAGS" 9800fi 9801 9802if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9803 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9804 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9805 fi 9806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9808printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9809if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9810then : 9811 printf %s "(cached) " >&6 9812else $as_nop 9813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9814/* end confdefs.h. */ 9815int i; 9816_ACEOF 9817if ac_fn_c_try_compile "$LINENO" 9818then : 9819 xorg_cv_cc_flag_unused_command_line_argument=yes 9820else $as_nop 9821 xorg_cv_cc_flag_unused_command_line_argument=no 9822fi 9823rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9824fi 9825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9826printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9827 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9828 CFLAGS="$xorg_testset_save_CFLAGS" 9829fi 9830 9831found="no" 9832 9833 if test $found = "no" ; then 9834 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9835 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9836 fi 9837 9838 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9840 fi 9841 9842 CFLAGS="$CFLAGS -Wtrigraphs" 9843 9844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9845printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 9846 cacheid=xorg_cv_cc_flag__Wtrigraphs 9847 if eval test \${$cacheid+y} 9848then : 9849 printf %s "(cached) " >&6 9850else $as_nop 9851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9852/* end confdefs.h. */ 9853int i; 9854int 9855main (void) 9856{ 9857 9858 ; 9859 return 0; 9860} 9861_ACEOF 9862if ac_fn_c_try_link "$LINENO" 9863then : 9864 eval $cacheid=yes 9865else $as_nop 9866 eval $cacheid=no 9867fi 9868rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9869 conftest$ac_exeext conftest.$ac_ext 9870fi 9871 9872 9873 CFLAGS="$xorg_testset_save_CFLAGS" 9874 9875 eval supported=\$$cacheid 9876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9877printf "%s\n" "$supported" >&6; } 9878 if test "$supported" = "yes" ; then 9879 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9880 found="yes" 9881 fi 9882 fi 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898xorg_testset_save_CFLAGS="$CFLAGS" 9899 9900if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9901 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9903printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9904if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9905then : 9906 printf %s "(cached) " >&6 9907else $as_nop 9908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9909/* end confdefs.h. */ 9910int i; 9911_ACEOF 9912if ac_fn_c_try_compile "$LINENO" 9913then : 9914 xorg_cv_cc_flag_unknown_warning_option=yes 9915else $as_nop 9916 xorg_cv_cc_flag_unknown_warning_option=no 9917fi 9918rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9919fi 9920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9921printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9922 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9923 CFLAGS="$xorg_testset_save_CFLAGS" 9924fi 9925 9926if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9928 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9929 fi 9930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9932printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9933if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9934then : 9935 printf %s "(cached) " >&6 9936else $as_nop 9937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9938/* end confdefs.h. */ 9939int i; 9940_ACEOF 9941if ac_fn_c_try_compile "$LINENO" 9942then : 9943 xorg_cv_cc_flag_unused_command_line_argument=yes 9944else $as_nop 9945 xorg_cv_cc_flag_unused_command_line_argument=no 9946fi 9947rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9948fi 9949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9950printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9951 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9952 CFLAGS="$xorg_testset_save_CFLAGS" 9953fi 9954 9955found="no" 9956 9957 if test $found = "no" ; then 9958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9960 fi 9961 9962 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9964 fi 9965 9966 CFLAGS="$CFLAGS -Warray-bounds" 9967 9968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9969printf %s "checking if $CC supports -Warray-bounds... " >&6; } 9970 cacheid=xorg_cv_cc_flag__Warray_bounds 9971 if eval test \${$cacheid+y} 9972then : 9973 printf %s "(cached) " >&6 9974else $as_nop 9975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9976/* end confdefs.h. */ 9977int i; 9978int 9979main (void) 9980{ 9981 9982 ; 9983 return 0; 9984} 9985_ACEOF 9986if ac_fn_c_try_link "$LINENO" 9987then : 9988 eval $cacheid=yes 9989else $as_nop 9990 eval $cacheid=no 9991fi 9992rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9993 conftest$ac_exeext conftest.$ac_ext 9994fi 9995 9996 9997 CFLAGS="$xorg_testset_save_CFLAGS" 9998 9999 eval supported=\$$cacheid 10000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10001printf "%s\n" "$supported" >&6; } 10002 if test "$supported" = "yes" ; then 10003 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10004 found="yes" 10005 fi 10006 fi 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022xorg_testset_save_CFLAGS="$CFLAGS" 10023 10024if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10027printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10028if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10029then : 10030 printf %s "(cached) " >&6 10031else $as_nop 10032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10033/* end confdefs.h. */ 10034int i; 10035_ACEOF 10036if ac_fn_c_try_compile "$LINENO" 10037then : 10038 xorg_cv_cc_flag_unknown_warning_option=yes 10039else $as_nop 10040 xorg_cv_cc_flag_unknown_warning_option=no 10041fi 10042rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10043fi 10044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10045printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10046 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10047 CFLAGS="$xorg_testset_save_CFLAGS" 10048fi 10049 10050if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10051 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10052 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10053 fi 10054 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10056printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10057if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10058then : 10059 printf %s "(cached) " >&6 10060else $as_nop 10061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10062/* end confdefs.h. */ 10063int i; 10064_ACEOF 10065if ac_fn_c_try_compile "$LINENO" 10066then : 10067 xorg_cv_cc_flag_unused_command_line_argument=yes 10068else $as_nop 10069 xorg_cv_cc_flag_unused_command_line_argument=no 10070fi 10071rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10072fi 10073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10074printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10075 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10076 CFLAGS="$xorg_testset_save_CFLAGS" 10077fi 10078 10079found="no" 10080 10081 if test $found = "no" ; then 10082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10083 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10084 fi 10085 10086 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10088 fi 10089 10090 CFLAGS="$CFLAGS -Wwrite-strings" 10091 10092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10093printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10094 cacheid=xorg_cv_cc_flag__Wwrite_strings 10095 if eval test \${$cacheid+y} 10096then : 10097 printf %s "(cached) " >&6 10098else $as_nop 10099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10100/* end confdefs.h. */ 10101int i; 10102int 10103main (void) 10104{ 10105 10106 ; 10107 return 0; 10108} 10109_ACEOF 10110if ac_fn_c_try_link "$LINENO" 10111then : 10112 eval $cacheid=yes 10113else $as_nop 10114 eval $cacheid=no 10115fi 10116rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10117 conftest$ac_exeext conftest.$ac_ext 10118fi 10119 10120 10121 CFLAGS="$xorg_testset_save_CFLAGS" 10122 10123 eval supported=\$$cacheid 10124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10125printf "%s\n" "$supported" >&6; } 10126 if test "$supported" = "yes" ; then 10127 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10128 found="yes" 10129 fi 10130 fi 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146xorg_testset_save_CFLAGS="$CFLAGS" 10147 10148if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10149 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10151printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10152if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10153then : 10154 printf %s "(cached) " >&6 10155else $as_nop 10156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10157/* end confdefs.h. */ 10158int i; 10159_ACEOF 10160if ac_fn_c_try_compile "$LINENO" 10161then : 10162 xorg_cv_cc_flag_unknown_warning_option=yes 10163else $as_nop 10164 xorg_cv_cc_flag_unknown_warning_option=no 10165fi 10166rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10167fi 10168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10169printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10170 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10171 CFLAGS="$xorg_testset_save_CFLAGS" 10172fi 10173 10174if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10177 fi 10178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10180printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10181if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10182then : 10183 printf %s "(cached) " >&6 10184else $as_nop 10185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10186/* end confdefs.h. */ 10187int i; 10188_ACEOF 10189if ac_fn_c_try_compile "$LINENO" 10190then : 10191 xorg_cv_cc_flag_unused_command_line_argument=yes 10192else $as_nop 10193 xorg_cv_cc_flag_unused_command_line_argument=no 10194fi 10195rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10196fi 10197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10198printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10199 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10200 CFLAGS="$xorg_testset_save_CFLAGS" 10201fi 10202 10203found="no" 10204 10205 if test $found = "no" ; then 10206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10208 fi 10209 10210 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10212 fi 10213 10214 CFLAGS="$CFLAGS -Waddress" 10215 10216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10217printf %s "checking if $CC supports -Waddress... " >&6; } 10218 cacheid=xorg_cv_cc_flag__Waddress 10219 if eval test \${$cacheid+y} 10220then : 10221 printf %s "(cached) " >&6 10222else $as_nop 10223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10224/* end confdefs.h. */ 10225int i; 10226int 10227main (void) 10228{ 10229 10230 ; 10231 return 0; 10232} 10233_ACEOF 10234if ac_fn_c_try_link "$LINENO" 10235then : 10236 eval $cacheid=yes 10237else $as_nop 10238 eval $cacheid=no 10239fi 10240rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10241 conftest$ac_exeext conftest.$ac_ext 10242fi 10243 10244 10245 CFLAGS="$xorg_testset_save_CFLAGS" 10246 10247 eval supported=\$$cacheid 10248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10249printf "%s\n" "$supported" >&6; } 10250 if test "$supported" = "yes" ; then 10251 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10252 found="yes" 10253 fi 10254 fi 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270xorg_testset_save_CFLAGS="$CFLAGS" 10271 10272if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10273 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10275printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10276if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10277then : 10278 printf %s "(cached) " >&6 10279else $as_nop 10280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10281/* end confdefs.h. */ 10282int i; 10283_ACEOF 10284if ac_fn_c_try_compile "$LINENO" 10285then : 10286 xorg_cv_cc_flag_unknown_warning_option=yes 10287else $as_nop 10288 xorg_cv_cc_flag_unknown_warning_option=no 10289fi 10290rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10291fi 10292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10293printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10294 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10295 CFLAGS="$xorg_testset_save_CFLAGS" 10296fi 10297 10298if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10301 fi 10302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10304printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10305if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10306then : 10307 printf %s "(cached) " >&6 10308else $as_nop 10309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10310/* end confdefs.h. */ 10311int i; 10312_ACEOF 10313if ac_fn_c_try_compile "$LINENO" 10314then : 10315 xorg_cv_cc_flag_unused_command_line_argument=yes 10316else $as_nop 10317 xorg_cv_cc_flag_unused_command_line_argument=no 10318fi 10319rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10320fi 10321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10322printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10323 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10324 CFLAGS="$xorg_testset_save_CFLAGS" 10325fi 10326 10327found="no" 10328 10329 if test $found = "no" ; then 10330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10332 fi 10333 10334 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10336 fi 10337 10338 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10339 10340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10341printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10342 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10343 if eval test \${$cacheid+y} 10344then : 10345 printf %s "(cached) " >&6 10346else $as_nop 10347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10348/* end confdefs.h. */ 10349int i; 10350int 10351main (void) 10352{ 10353 10354 ; 10355 return 0; 10356} 10357_ACEOF 10358if ac_fn_c_try_link "$LINENO" 10359then : 10360 eval $cacheid=yes 10361else $as_nop 10362 eval $cacheid=no 10363fi 10364rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10365 conftest$ac_exeext conftest.$ac_ext 10366fi 10367 10368 10369 CFLAGS="$xorg_testset_save_CFLAGS" 10370 10371 eval supported=\$$cacheid 10372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10373printf "%s\n" "$supported" >&6; } 10374 if test "$supported" = "yes" ; then 10375 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10376 found="yes" 10377 fi 10378 fi 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394xorg_testset_save_CFLAGS="$CFLAGS" 10395 10396if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10397 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10399printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10400if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10401then : 10402 printf %s "(cached) " >&6 10403else $as_nop 10404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10405/* end confdefs.h. */ 10406int i; 10407_ACEOF 10408if ac_fn_c_try_compile "$LINENO" 10409then : 10410 xorg_cv_cc_flag_unknown_warning_option=yes 10411else $as_nop 10412 xorg_cv_cc_flag_unknown_warning_option=no 10413fi 10414rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10415fi 10416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10417printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10418 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10419 CFLAGS="$xorg_testset_save_CFLAGS" 10420fi 10421 10422if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10424 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10425 fi 10426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10428printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10429if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10430then : 10431 printf %s "(cached) " >&6 10432else $as_nop 10433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10434/* end confdefs.h. */ 10435int i; 10436_ACEOF 10437if ac_fn_c_try_compile "$LINENO" 10438then : 10439 xorg_cv_cc_flag_unused_command_line_argument=yes 10440else $as_nop 10441 xorg_cv_cc_flag_unused_command_line_argument=no 10442fi 10443rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10444fi 10445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10446printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10447 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10448 CFLAGS="$xorg_testset_save_CFLAGS" 10449fi 10450 10451found="no" 10452 10453 if test $found = "no" ; then 10454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10455 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10456 fi 10457 10458 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10460 fi 10461 10462 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10463 10464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10465printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10466 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10467 if eval test \${$cacheid+y} 10468then : 10469 printf %s "(cached) " >&6 10470else $as_nop 10471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10472/* end confdefs.h. */ 10473int i; 10474int 10475main (void) 10476{ 10477 10478 ; 10479 return 0; 10480} 10481_ACEOF 10482if ac_fn_c_try_link "$LINENO" 10483then : 10484 eval $cacheid=yes 10485else $as_nop 10486 eval $cacheid=no 10487fi 10488rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10489 conftest$ac_exeext conftest.$ac_ext 10490fi 10491 10492 10493 CFLAGS="$xorg_testset_save_CFLAGS" 10494 10495 eval supported=\$$cacheid 10496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10497printf "%s\n" "$supported" >&6; } 10498 if test "$supported" = "yes" ; then 10499 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10500 found="yes" 10501 fi 10502 fi 10503 10504 10505fi 10506 10507 10508 10509 10510 10511 10512 10513 CWARNFLAGS="$BASE_CFLAGS" 10514 if test "x$GCC" = xyes ; then 10515 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10516 fi 10517 10518 10519 10520 10521 10522 10523 10524 10525# Check whether --enable-strict-compilation was given. 10526if test ${enable_strict_compilation+y} 10527then : 10528 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10529else $as_nop 10530 STRICT_COMPILE=no 10531fi 10532 10533 10534 10535 10536 10537 10538STRICT_CFLAGS="" 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552xorg_testset_save_CFLAGS="$CFLAGS" 10553 10554if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10555 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10557printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10558if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10559then : 10560 printf %s "(cached) " >&6 10561else $as_nop 10562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10563/* end confdefs.h. */ 10564int i; 10565_ACEOF 10566if ac_fn_c_try_compile "$LINENO" 10567then : 10568 xorg_cv_cc_flag_unknown_warning_option=yes 10569else $as_nop 10570 xorg_cv_cc_flag_unknown_warning_option=no 10571fi 10572rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10573fi 10574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10575printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10576 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10577 CFLAGS="$xorg_testset_save_CFLAGS" 10578fi 10579 10580if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10583 fi 10584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10586printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10587if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10588then : 10589 printf %s "(cached) " >&6 10590else $as_nop 10591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10592/* end confdefs.h. */ 10593int i; 10594_ACEOF 10595if ac_fn_c_try_compile "$LINENO" 10596then : 10597 xorg_cv_cc_flag_unused_command_line_argument=yes 10598else $as_nop 10599 xorg_cv_cc_flag_unused_command_line_argument=no 10600fi 10601rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10602fi 10603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10604printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10605 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10606 CFLAGS="$xorg_testset_save_CFLAGS" 10607fi 10608 10609found="no" 10610 10611 if test $found = "no" ; then 10612 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10613 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10614 fi 10615 10616 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10618 fi 10619 10620 CFLAGS="$CFLAGS -pedantic" 10621 10622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10623printf %s "checking if $CC supports -pedantic... " >&6; } 10624 cacheid=xorg_cv_cc_flag__pedantic 10625 if eval test \${$cacheid+y} 10626then : 10627 printf %s "(cached) " >&6 10628else $as_nop 10629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10630/* end confdefs.h. */ 10631int i; 10632int 10633main (void) 10634{ 10635 10636 ; 10637 return 0; 10638} 10639_ACEOF 10640if ac_fn_c_try_link "$LINENO" 10641then : 10642 eval $cacheid=yes 10643else $as_nop 10644 eval $cacheid=no 10645fi 10646rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10647 conftest$ac_exeext conftest.$ac_ext 10648fi 10649 10650 10651 CFLAGS="$xorg_testset_save_CFLAGS" 10652 10653 eval supported=\$$cacheid 10654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10655printf "%s\n" "$supported" >&6; } 10656 if test "$supported" = "yes" ; then 10657 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10658 found="yes" 10659 fi 10660 fi 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676xorg_testset_save_CFLAGS="$CFLAGS" 10677 10678if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10679 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10681printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10682if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10683then : 10684 printf %s "(cached) " >&6 10685else $as_nop 10686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10687/* end confdefs.h. */ 10688int i; 10689_ACEOF 10690if ac_fn_c_try_compile "$LINENO" 10691then : 10692 xorg_cv_cc_flag_unknown_warning_option=yes 10693else $as_nop 10694 xorg_cv_cc_flag_unknown_warning_option=no 10695fi 10696rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10697fi 10698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10699printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10700 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10701 CFLAGS="$xorg_testset_save_CFLAGS" 10702fi 10703 10704if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10707 fi 10708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10710printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10711if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10712then : 10713 printf %s "(cached) " >&6 10714else $as_nop 10715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10716/* end confdefs.h. */ 10717int i; 10718_ACEOF 10719if ac_fn_c_try_compile "$LINENO" 10720then : 10721 xorg_cv_cc_flag_unused_command_line_argument=yes 10722else $as_nop 10723 xorg_cv_cc_flag_unused_command_line_argument=no 10724fi 10725rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10726fi 10727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10728printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10729 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10730 CFLAGS="$xorg_testset_save_CFLAGS" 10731fi 10732 10733found="no" 10734 10735 if test $found = "no" ; then 10736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10737 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10738 fi 10739 10740 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10742 fi 10743 10744 CFLAGS="$CFLAGS -Werror" 10745 10746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10747printf %s "checking if $CC supports -Werror... " >&6; } 10748 cacheid=xorg_cv_cc_flag__Werror 10749 if eval test \${$cacheid+y} 10750then : 10751 printf %s "(cached) " >&6 10752else $as_nop 10753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10754/* end confdefs.h. */ 10755int i; 10756int 10757main (void) 10758{ 10759 10760 ; 10761 return 0; 10762} 10763_ACEOF 10764if ac_fn_c_try_link "$LINENO" 10765then : 10766 eval $cacheid=yes 10767else $as_nop 10768 eval $cacheid=no 10769fi 10770rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10771 conftest$ac_exeext conftest.$ac_ext 10772fi 10773 10774 10775 CFLAGS="$xorg_testset_save_CFLAGS" 10776 10777 eval supported=\$$cacheid 10778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10779printf "%s\n" "$supported" >&6; } 10780 if test "$supported" = "yes" ; then 10781 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10782 found="yes" 10783 fi 10784 fi 10785 10786 if test $found = "no" ; then 10787 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10788 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10789 fi 10790 10791 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10792 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10793 fi 10794 10795 CFLAGS="$CFLAGS -errwarn" 10796 10797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10798printf %s "checking if $CC supports -errwarn... " >&6; } 10799 cacheid=xorg_cv_cc_flag__errwarn 10800 if eval test \${$cacheid+y} 10801then : 10802 printf %s "(cached) " >&6 10803else $as_nop 10804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10805/* end confdefs.h. */ 10806int i; 10807int 10808main (void) 10809{ 10810 10811 ; 10812 return 0; 10813} 10814_ACEOF 10815if ac_fn_c_try_link "$LINENO" 10816then : 10817 eval $cacheid=yes 10818else $as_nop 10819 eval $cacheid=no 10820fi 10821rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10822 conftest$ac_exeext conftest.$ac_ext 10823fi 10824 10825 10826 CFLAGS="$xorg_testset_save_CFLAGS" 10827 10828 eval supported=\$$cacheid 10829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10830printf "%s\n" "$supported" >&6; } 10831 if test "$supported" = "yes" ; then 10832 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10833 found="yes" 10834 fi 10835 fi 10836 10837 10838 10839# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10840# activate it with -Werror, so we add it here explicitly. 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854xorg_testset_save_CFLAGS="$CFLAGS" 10855 10856if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10857 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10859printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10860if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10861then : 10862 printf %s "(cached) " >&6 10863else $as_nop 10864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10865/* end confdefs.h. */ 10866int i; 10867_ACEOF 10868if ac_fn_c_try_compile "$LINENO" 10869then : 10870 xorg_cv_cc_flag_unknown_warning_option=yes 10871else $as_nop 10872 xorg_cv_cc_flag_unknown_warning_option=no 10873fi 10874rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10875fi 10876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10877printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10878 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10879 CFLAGS="$xorg_testset_save_CFLAGS" 10880fi 10881 10882if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10884 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10885 fi 10886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10888printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10889if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10890then : 10891 printf %s "(cached) " >&6 10892else $as_nop 10893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10894/* end confdefs.h. */ 10895int i; 10896_ACEOF 10897if ac_fn_c_try_compile "$LINENO" 10898then : 10899 xorg_cv_cc_flag_unused_command_line_argument=yes 10900else $as_nop 10901 xorg_cv_cc_flag_unused_command_line_argument=no 10902fi 10903rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10904fi 10905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10906printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10907 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10908 CFLAGS="$xorg_testset_save_CFLAGS" 10909fi 10910 10911found="no" 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 -Werror=attributes" 10923 10924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10925printf %s "checking if $CC supports -Werror=attributes... " >&6; } 10926 cacheid=xorg_cv_cc_flag__Werror_attributes 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 -Werror=attributes" 10960 found="yes" 10961 fi 10962 fi 10963 10964 10965 10966if test "x$STRICT_COMPILE" = "xyes"; then 10967 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10968 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10969fi 10970 10971 10972 10973 10974 10975 10976cat >>confdefs.h <<_ACEOF 10977#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10978_ACEOF 10979 10980 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10981 if test "x$PVM" = "x"; then 10982 PVM="0" 10983 fi 10984 10985printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 10986 10987 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10988 if test "x$PVP" = "x"; then 10989 PVP="0" 10990 fi 10991 10992printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 10993 10994 10995 10996CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 10997mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10998|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 10999touch \$(top_srcdir)/ChangeLog; \ 11000echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11001 11002 11003 11004 11005macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11006INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11007mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11008|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11009touch \$(top_srcdir)/INSTALL; \ 11010echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11011 11012 11013 11014 11015 11016 11017case $host_os in 11018 solaris*) 11019 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11020 # check for a man page file found in later versions that use 11021 # traditional section numbers instead 11022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11023printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11024if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11025then : 11026 printf %s "(cached) " >&6 11027else $as_nop 11028 test "$cross_compiling" = yes && 11029 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11030if test -r "/usr/share/man/man7/attributes.7"; then 11031 ac_cv_file__usr_share_man_man7_attributes_7=yes 11032else 11033 ac_cv_file__usr_share_man_man7_attributes_7=no 11034fi 11035fi 11036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11037printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11038if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11039then : 11040 SYSV_MAN_SECTIONS=false 11041else $as_nop 11042 SYSV_MAN_SECTIONS=true 11043fi 11044 11045 ;; 11046 *) SYSV_MAN_SECTIONS=false ;; 11047esac 11048 11049if test x$APP_MAN_SUFFIX = x ; then 11050 APP_MAN_SUFFIX=1 11051fi 11052if test x$APP_MAN_DIR = x ; then 11053 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11054fi 11055 11056if test x$LIB_MAN_SUFFIX = x ; then 11057 LIB_MAN_SUFFIX=3 11058fi 11059if test x$LIB_MAN_DIR = x ; then 11060 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11061fi 11062 11063if test x$FILE_MAN_SUFFIX = x ; then 11064 case $SYSV_MAN_SECTIONS in 11065 true) FILE_MAN_SUFFIX=4 ;; 11066 *) FILE_MAN_SUFFIX=5 ;; 11067 esac 11068fi 11069if test x$FILE_MAN_DIR = x ; then 11070 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11071fi 11072 11073if test x$MISC_MAN_SUFFIX = x ; then 11074 case $SYSV_MAN_SECTIONS in 11075 true) MISC_MAN_SUFFIX=5 ;; 11076 *) MISC_MAN_SUFFIX=7 ;; 11077 esac 11078fi 11079if test x$MISC_MAN_DIR = x ; then 11080 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11081fi 11082 11083if test x$DRIVER_MAN_SUFFIX = x ; then 11084 case $SYSV_MAN_SECTIONS in 11085 true) DRIVER_MAN_SUFFIX=7 ;; 11086 *) DRIVER_MAN_SUFFIX=4 ;; 11087 esac 11088fi 11089if test x$DRIVER_MAN_DIR = x ; then 11090 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11091fi 11092 11093if test x$ADMIN_MAN_SUFFIX = x ; then 11094 case $SYSV_MAN_SECTIONS in 11095 true) ADMIN_MAN_SUFFIX=1m ;; 11096 *) ADMIN_MAN_SUFFIX=8 ;; 11097 esac 11098fi 11099if test x$ADMIN_MAN_DIR = x ; then 11100 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11101fi 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117XORG_MAN_PAGE="X Version 11" 11118 11119MAN_SUBSTS="\ 11120 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11121 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11122 -e 's|__xservername__|Xorg|g' \ 11123 -e 's|__xconfigfile__|xorg.conf|g' \ 11124 -e 's|__projectroot__|\$(prefix)|g' \ 11125 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11126 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11127 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11128 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11129 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11130 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11131 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11132 11133 11134 11135# Check whether --enable-silent-rules was given. 11136if test ${enable_silent_rules+y} 11137then : 11138 enableval=$enable_silent_rules; 11139fi 11140 11141case $enable_silent_rules in # ((( 11142 yes) AM_DEFAULT_VERBOSITY=0;; 11143 no) AM_DEFAULT_VERBOSITY=1;; 11144 *) AM_DEFAULT_VERBOSITY=0;; 11145esac 11146am_make=${MAKE-make} 11147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11148printf %s "checking whether $am_make supports nested variables... " >&6; } 11149if test ${am_cv_make_support_nested_variables+y} 11150then : 11151 printf %s "(cached) " >&6 11152else $as_nop 11153 if printf "%s\n" 'TRUE=$(BAR$(V)) 11154BAR0=false 11155BAR1=true 11156V=1 11157am__doit: 11158 @$(TRUE) 11159.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11160 am_cv_make_support_nested_variables=yes 11161else 11162 am_cv_make_support_nested_variables=no 11163fi 11164fi 11165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11166printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11167if test $am_cv_make_support_nested_variables = yes; then 11168 AM_V='$(V)' 11169 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11170else 11171 AM_V=$AM_DEFAULT_VERBOSITY 11172 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11173fi 11174AM_BACKSLASH='\' 11175 11176 11177 11178ac_config_headers="$ac_config_headers config.h" 11179 11180 11181 11182 if test -n "$ac_tool_prefix"; then 11183 for ac_prog in ar lib "link -lib" 11184 do 11185 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11186set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11188printf %s "checking for $ac_word... " >&6; } 11189if test ${ac_cv_prog_AR+y} 11190then : 11191 printf %s "(cached) " >&6 11192else $as_nop 11193 if test -n "$AR"; then 11194 ac_cv_prog_AR="$AR" # Let the user override the test. 11195else 11196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11197for as_dir in $PATH 11198do 11199 IFS=$as_save_IFS 11200 case $as_dir in #((( 11201 '') as_dir=./ ;; 11202 */) ;; 11203 *) as_dir=$as_dir/ ;; 11204 esac 11205 for ac_exec_ext in '' $ac_executable_extensions; do 11206 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11207 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 11208 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11209 break 2 11210 fi 11211done 11212 done 11213IFS=$as_save_IFS 11214 11215fi 11216fi 11217AR=$ac_cv_prog_AR 11218if test -n "$AR"; then 11219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 11220printf "%s\n" "$AR" >&6; } 11221else 11222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11223printf "%s\n" "no" >&6; } 11224fi 11225 11226 11227 test -n "$AR" && break 11228 done 11229fi 11230if test -z "$AR"; then 11231 ac_ct_AR=$AR 11232 for ac_prog in ar lib "link -lib" 11233do 11234 # Extract the first word of "$ac_prog", so it can be a program name with args. 11235set dummy $ac_prog; ac_word=$2 11236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11237printf %s "checking for $ac_word... " >&6; } 11238if test ${ac_cv_prog_ac_ct_AR+y} 11239then : 11240 printf %s "(cached) " >&6 11241else $as_nop 11242 if test -n "$ac_ct_AR"; then 11243 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 11244else 11245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11246for as_dir in $PATH 11247do 11248 IFS=$as_save_IFS 11249 case $as_dir in #((( 11250 '') as_dir=./ ;; 11251 */) ;; 11252 *) as_dir=$as_dir/ ;; 11253 esac 11254 for ac_exec_ext in '' $ac_executable_extensions; do 11255 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11256 ac_cv_prog_ac_ct_AR="$ac_prog" 11257 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11258 break 2 11259 fi 11260done 11261 done 11262IFS=$as_save_IFS 11263 11264fi 11265fi 11266ac_ct_AR=$ac_cv_prog_ac_ct_AR 11267if test -n "$ac_ct_AR"; then 11268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 11269printf "%s\n" "$ac_ct_AR" >&6; } 11270else 11271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11272printf "%s\n" "no" >&6; } 11273fi 11274 11275 11276 test -n "$ac_ct_AR" && break 11277done 11278 11279 if test "x$ac_ct_AR" = x; then 11280 AR="false" 11281 else 11282 case $cross_compiling:$ac_tool_warned in 11283yes:) 11284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11285printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11286ac_tool_warned=yes ;; 11287esac 11288 AR=$ac_ct_AR 11289 fi 11290fi 11291 11292: ${AR=ar} 11293 11294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 11295printf %s "checking the archiver ($AR) interface... " >&6; } 11296if test ${am_cv_ar_interface+y} 11297then : 11298 printf %s "(cached) " >&6 11299else $as_nop 11300 ac_ext=c 11301ac_cpp='$CPP $CPPFLAGS' 11302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11304ac_compiler_gnu=$ac_cv_c_compiler_gnu 11305 11306 am_cv_ar_interface=ar 11307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11308/* end confdefs.h. */ 11309int some_variable = 0; 11310_ACEOF 11311if ac_fn_c_try_compile "$LINENO" 11312then : 11313 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 11314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 11315 (eval $am_ar_try) 2>&5 11316 ac_status=$? 11317 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11318 test $ac_status = 0; } 11319 if test "$ac_status" -eq 0; then 11320 am_cv_ar_interface=ar 11321 else 11322 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 11323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 11324 (eval $am_ar_try) 2>&5 11325 ac_status=$? 11326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11327 test $ac_status = 0; } 11328 if test "$ac_status" -eq 0; then 11329 am_cv_ar_interface=lib 11330 else 11331 am_cv_ar_interface=unknown 11332 fi 11333 fi 11334 rm -f conftest.lib libconftest.a 11335 11336fi 11337rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11338 ac_ext=c 11339ac_cpp='$CPP $CPPFLAGS' 11340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11342ac_compiler_gnu=$ac_cv_c_compiler_gnu 11343 11344fi 11345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 11346printf "%s\n" "$am_cv_ar_interface" >&6; } 11347 11348case $am_cv_ar_interface in 11349ar) 11350 ;; 11351lib) 11352 # Microsoft lib, so override with the ar-lib wrapper script. 11353 # FIXME: It is wrong to rewrite AR. 11354 # But if we don't then we get into trouble of one sort or another. 11355 # A longer-term fix would be to have automake use am__AR in this case, 11356 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 11357 # similar. 11358 AR="$am_aux_dir/ar-lib $AR" 11359 ;; 11360unknown) 11361 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 11362 ;; 11363esac 11364 11365if test -n "$ac_tool_prefix"; then 11366 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 11367set dummy ${ac_tool_prefix}ranlib; ac_word=$2 11368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11369printf %s "checking for $ac_word... " >&6; } 11370if test ${ac_cv_prog_RANLIB+y} 11371then : 11372 printf %s "(cached) " >&6 11373else $as_nop 11374 if test -n "$RANLIB"; then 11375 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 11376else 11377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11378for as_dir in $PATH 11379do 11380 IFS=$as_save_IFS 11381 case $as_dir in #((( 11382 '') as_dir=./ ;; 11383 */) ;; 11384 *) as_dir=$as_dir/ ;; 11385 esac 11386 for ac_exec_ext in '' $ac_executable_extensions; do 11387 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11388 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 11389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11390 break 2 11391 fi 11392done 11393 done 11394IFS=$as_save_IFS 11395 11396fi 11397fi 11398RANLIB=$ac_cv_prog_RANLIB 11399if test -n "$RANLIB"; then 11400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 11401printf "%s\n" "$RANLIB" >&6; } 11402else 11403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11404printf "%s\n" "no" >&6; } 11405fi 11406 11407 11408fi 11409if test -z "$ac_cv_prog_RANLIB"; then 11410 ac_ct_RANLIB=$RANLIB 11411 # Extract the first word of "ranlib", so it can be a program name with args. 11412set dummy ranlib; ac_word=$2 11413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11414printf %s "checking for $ac_word... " >&6; } 11415if test ${ac_cv_prog_ac_ct_RANLIB+y} 11416then : 11417 printf %s "(cached) " >&6 11418else $as_nop 11419 if test -n "$ac_ct_RANLIB"; then 11420 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 11421else 11422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11423for as_dir in $PATH 11424do 11425 IFS=$as_save_IFS 11426 case $as_dir in #((( 11427 '') as_dir=./ ;; 11428 */) ;; 11429 *) as_dir=$as_dir/ ;; 11430 esac 11431 for ac_exec_ext in '' $ac_executable_extensions; do 11432 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11433 ac_cv_prog_ac_ct_RANLIB="ranlib" 11434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11435 break 2 11436 fi 11437done 11438 done 11439IFS=$as_save_IFS 11440 11441fi 11442fi 11443ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 11444if test -n "$ac_ct_RANLIB"; then 11445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 11446printf "%s\n" "$ac_ct_RANLIB" >&6; } 11447else 11448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11449printf "%s\n" "no" >&6; } 11450fi 11451 11452 if test "x$ac_ct_RANLIB" = x; then 11453 RANLIB=":" 11454 else 11455 case $cross_compiling:$ac_tool_warned in 11456yes:) 11457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11458printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11459ac_tool_warned=yes ;; 11460esac 11461 RANLIB=$ac_ct_RANLIB 11462 fi 11463else 11464 RANLIB="$ac_cv_prog_RANLIB" 11465fi 11466 11467 11468 11469 11470 11471 11472 11473 11474if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11475 if test -n "$ac_tool_prefix"; then 11476 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11477set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11479printf %s "checking for $ac_word... " >&6; } 11480if test ${ac_cv_path_PKG_CONFIG+y} 11481then : 11482 printf %s "(cached) " >&6 11483else $as_nop 11484 case $PKG_CONFIG in 11485 [\\/]* | ?:[\\/]*) 11486 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11487 ;; 11488 *) 11489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11490for as_dir in $PATH 11491do 11492 IFS=$as_save_IFS 11493 case $as_dir in #((( 11494 '') as_dir=./ ;; 11495 */) ;; 11496 *) as_dir=$as_dir/ ;; 11497 esac 11498 for ac_exec_ext in '' $ac_executable_extensions; do 11499 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11500 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 11501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11502 break 2 11503 fi 11504done 11505 done 11506IFS=$as_save_IFS 11507 11508 ;; 11509esac 11510fi 11511PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11512if test -n "$PKG_CONFIG"; then 11513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11514printf "%s\n" "$PKG_CONFIG" >&6; } 11515else 11516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11517printf "%s\n" "no" >&6; } 11518fi 11519 11520 11521fi 11522if test -z "$ac_cv_path_PKG_CONFIG"; then 11523 ac_pt_PKG_CONFIG=$PKG_CONFIG 11524 # Extract the first word of "pkg-config", so it can be a program name with args. 11525set dummy pkg-config; ac_word=$2 11526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11527printf %s "checking for $ac_word... " >&6; } 11528if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 11529then : 11530 printf %s "(cached) " >&6 11531else $as_nop 11532 case $ac_pt_PKG_CONFIG in 11533 [\\/]* | ?:[\\/]*) 11534 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11535 ;; 11536 *) 11537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11538for as_dir in $PATH 11539do 11540 IFS=$as_save_IFS 11541 case $as_dir in #((( 11542 '') as_dir=./ ;; 11543 */) ;; 11544 *) as_dir=$as_dir/ ;; 11545 esac 11546 for ac_exec_ext in '' $ac_executable_extensions; do 11547 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11548 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 11549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11550 break 2 11551 fi 11552done 11553 done 11554IFS=$as_save_IFS 11555 11556 ;; 11557esac 11558fi 11559ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11560if test -n "$ac_pt_PKG_CONFIG"; then 11561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 11562printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 11563else 11564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11565printf "%s\n" "no" >&6; } 11566fi 11567 11568 if test "x$ac_pt_PKG_CONFIG" = x; then 11569 PKG_CONFIG="" 11570 else 11571 case $cross_compiling:$ac_tool_warned in 11572yes:) 11573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11574printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11575ac_tool_warned=yes ;; 11576esac 11577 PKG_CONFIG=$ac_pt_PKG_CONFIG 11578 fi 11579else 11580 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11581fi 11582 11583fi 11584if test -n "$PKG_CONFIG"; then 11585 _pkg_min_version=0.9.0 11586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 11587printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 11588 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11590printf "%s\n" "yes" >&6; } 11591 else 11592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11593printf "%s\n" "no" >&6; } 11594 PKG_CONFIG="" 11595 fi 11596fi 11597 11598 11599pkg_failed=no 11600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PKGDEPS" >&5 11601printf %s "checking for PKGDEPS... " >&6; } 11602 11603if test -n "$PKGDEPS_CFLAGS"; then 11604 pkg_cv_PKGDEPS_CFLAGS="$PKGDEPS_CFLAGS" 11605 elif test -n "$PKG_CONFIG"; then 11606 if test -n "$PKG_CONFIG" && \ 11607 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt >= 1.0 x11\""; } >&5 11608 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt >= 1.0 x11") 2>&5 11609 ac_status=$? 11610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11611 test $ac_status = 0; }; then 11612 pkg_cv_PKGDEPS_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt >= 1.0 x11" 2>/dev/null` 11613 test "x$?" != "x0" && pkg_failed=yes 11614else 11615 pkg_failed=yes 11616fi 11617 else 11618 pkg_failed=untried 11619fi 11620if test -n "$PKGDEPS_LIBS"; then 11621 pkg_cv_PKGDEPS_LIBS="$PKGDEPS_LIBS" 11622 elif test -n "$PKG_CONFIG"; then 11623 if test -n "$PKG_CONFIG" && \ 11624 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt >= 1.0 x11\""; } >&5 11625 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt >= 1.0 x11") 2>&5 11626 ac_status=$? 11627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11628 test $ac_status = 0; }; then 11629 pkg_cv_PKGDEPS_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt >= 1.0 x11" 2>/dev/null` 11630 test "x$?" != "x0" && pkg_failed=yes 11631else 11632 pkg_failed=yes 11633fi 11634 else 11635 pkg_failed=untried 11636fi 11637 11638 11639 11640if test $pkg_failed = yes; then 11641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11642printf "%s\n" "no" >&6; } 11643 11644if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11645 _pkg_short_errors_supported=yes 11646else 11647 _pkg_short_errors_supported=no 11648fi 11649 if test $_pkg_short_errors_supported = yes; then 11650 PKGDEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt >= 1.0 x11" 2>&1` 11651 else 11652 PKGDEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt >= 1.0 x11" 2>&1` 11653 fi 11654 # Put the nasty error message in config.log where it belongs 11655 echo "$PKGDEPS_PKG_ERRORS" >&5 11656 11657 as_fn_error $? "Package requirements (xaw7 xmu xt >= 1.0 x11) were not met: 11658 11659$PKGDEPS_PKG_ERRORS 11660 11661Consider adjusting the PKG_CONFIG_PATH environment variable if you 11662installed software in a non-standard prefix. 11663 11664Alternatively, you may set the environment variables PKGDEPS_CFLAGS 11665and PKGDEPS_LIBS to avoid the need to call pkg-config. 11666See the pkg-config man page for more details." "$LINENO" 5 11667elif test $pkg_failed = untried; then 11668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11669printf "%s\n" "no" >&6; } 11670 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11671printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11672as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11673is in your PATH or set the PKG_CONFIG environment variable to the full 11674path to pkg-config. 11675 11676Alternatively, you may set the environment variables PKGDEPS_CFLAGS 11677and PKGDEPS_LIBS to avoid the need to call pkg-config. 11678See the pkg-config man page for more details. 11679 11680To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11681See \`config.log' for more details" "$LINENO" 5; } 11682else 11683 PKGDEPS_CFLAGS=$pkg_cv_PKGDEPS_CFLAGS 11684 PKGDEPS_LIBS=$pkg_cv_PKGDEPS_LIBS 11685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11686printf "%s\n" "yes" >&6; } 11687 11688fi 11689 11690 11691# Check whether --with-lispdir was given. 11692if test ${with_lispdir+y} 11693then : 11694 withval=$with_lispdir; lispdir="$withval" 11695else $as_nop 11696 lispdir=${libdir}/X11/xedit/lisp 11697fi 11698 11699LISPDIR=$lispdir 11700 11701 11702ac_fn_check_decl "$LINENO" "_SC_PAGESIZE" "ac_cv_have_decl__SC_PAGESIZE" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 11703if test "x$ac_cv_have_decl__SC_PAGESIZE" = xyes 11704then : 11705 ac_have_decl=1 11706else $as_nop 11707 ac_have_decl=0 11708fi 11709printf "%s\n" "#define HAVE_DECL__SC_PAGESIZE $ac_have_decl" >>confdefs.h 11710 11711ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 11712if test "x$ac_cv_func_getpagesize" = xyes 11713then : 11714 printf "%s\n" "#define HAVE_GETPAGESIZE 1" >>confdefs.h 11715 11716fi 11717 11718 11719ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath" 11720if test "x$ac_cv_func_realpath" = xyes 11721then : 11722 11723else $as_nop 11724 have_realpath=yes 11725fi 11726 11727 if test x$have_realpath = xyes; then 11728 NEED_REALPATH_TRUE= 11729 NEED_REALPATH_FALSE='#' 11730else 11731 NEED_REALPATH_TRUE='#' 11732 NEED_REALPATH_FALSE= 11733fi 11734 11735ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 11736if test "x$ac_cv_func_strcasecmp" = xyes 11737then : 11738 11739else $as_nop 11740 have_strcasecmp=yes 11741fi 11742 11743 if test x$have_strcasecmp = xyes; then 11744 NEED_STRCASECMP_TRUE= 11745 NEED_STRCASECMP_FALSE='#' 11746else 11747 NEED_STRCASECMP_TRUE='#' 11748 NEED_STRCASECMP_FALSE= 11749fi 11750 11751ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" 11752if test "x$ac_cv_func_unsetenv" = xyes 11753then : 11754 11755else $as_nop 11756 have_unsetenv=yes 11757fi 11758 11759 if test x$have_unsetenv = xyes; then 11760 NEED_UNSETENV_TRUE= 11761 NEED_UNSETENV_FALSE='#' 11762else 11763 NEED_UNSETENV_TRUE='#' 11764 NEED_UNSETENV_FALSE= 11765fi 11766 11767 11768 11769pkg_failed=no 11770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5 11771printf %s "checking for APPDEFS... " >&6; } 11772 11773if test -n "$APPDEFS_CFLAGS"; then 11774 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS" 11775 elif test -n "$PKG_CONFIG"; then 11776 if test -n "$PKG_CONFIG" && \ 11777 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 11778 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 11779 ac_status=$? 11780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11781 test $ac_status = 0; }; then 11782 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null` 11783 test "x$?" != "x0" && pkg_failed=yes 11784else 11785 pkg_failed=yes 11786fi 11787 else 11788 pkg_failed=untried 11789fi 11790if test -n "$APPDEFS_LIBS"; then 11791 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS" 11792 elif test -n "$PKG_CONFIG"; then 11793 if test -n "$PKG_CONFIG" && \ 11794 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 11795 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 11796 ac_status=$? 11797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11798 test $ac_status = 0; }; then 11799 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null` 11800 test "x$?" != "x0" && pkg_failed=yes 11801else 11802 pkg_failed=yes 11803fi 11804 else 11805 pkg_failed=untried 11806fi 11807 11808 11809 11810if test $pkg_failed = yes; then 11811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11812printf "%s\n" "no" >&6; } 11813 11814if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11815 _pkg_short_errors_supported=yes 11816else 11817 _pkg_short_errors_supported=no 11818fi 11819 if test $_pkg_short_errors_supported = yes; then 11820 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1` 11821 else 11822 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1` 11823 fi 11824 # Put the nasty error message in config.log where it belongs 11825 echo "$APPDEFS_PKG_ERRORS" >&5 11826 11827 as_fn_error $? "Package requirements (xt) were not met: 11828 11829$APPDEFS_PKG_ERRORS 11830 11831Consider adjusting the PKG_CONFIG_PATH environment variable if you 11832installed software in a non-standard prefix. 11833 11834Alternatively, you may set the environment variables APPDEFS_CFLAGS 11835and APPDEFS_LIBS to avoid the need to call pkg-config. 11836See the pkg-config man page for more details." "$LINENO" 5 11837elif test $pkg_failed = untried; then 11838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11839printf "%s\n" "no" >&6; } 11840 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11841printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11842as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11843is in your PATH or set the PKG_CONFIG environment variable to the full 11844path to pkg-config. 11845 11846Alternatively, you may set the environment variables APPDEFS_CFLAGS 11847and APPDEFS_LIBS to avoid the need to call pkg-config. 11848See the pkg-config man page for more details. 11849 11850To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11851See \`config.log' for more details" "$LINENO" 5; } 11852else 11853 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS 11854 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS 11855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11856printf "%s\n" "yes" >&6; } 11857 11858fi 11859xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 11860 11861# Check whether --with-appdefaultdir was given. 11862if test ${with_appdefaultdir+y} 11863then : 11864 withval=$with_appdefaultdir; appdefaultdir="$withval" 11865else $as_nop 11866 appdefaultdir="${xt_appdefaultdir}" 11867fi 11868 11869 11870 11871 11872ac_config_files="$ac_config_files Makefile man/Makefile" 11873 11874cat >confcache <<\_ACEOF 11875# This file is a shell script that caches the results of configure 11876# tests run on this system so they can be shared between configure 11877# scripts and configure runs, see configure's option --config-cache. 11878# It is not useful on other systems. If it contains results you don't 11879# want to keep, you may remove or edit it. 11880# 11881# config.status only pays attention to the cache file if you give it 11882# the --recheck option to rerun configure. 11883# 11884# `ac_cv_env_foo' variables (set or unset) will be overridden when 11885# loading this file, other *unset* `ac_cv_foo' will be assigned the 11886# following values. 11887 11888_ACEOF 11889 11890# The following way of writing the cache mishandles newlines in values, 11891# but we know of no workaround that is simple, portable, and efficient. 11892# So, we kill variables containing newlines. 11893# Ultrix sh set writes to stderr and can't be redirected directly, 11894# and sets the high bit in the cache file unless we assign to the vars. 11895( 11896 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11897 eval ac_val=\$$ac_var 11898 case $ac_val in #( 11899 *${as_nl}*) 11900 case $ac_var in #( 11901 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11902printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11903 esac 11904 case $ac_var in #( 11905 _ | IFS | as_nl) ;; #( 11906 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11907 *) { eval $ac_var=; unset $ac_var;} ;; 11908 esac ;; 11909 esac 11910 done 11911 11912 (set) 2>&1 | 11913 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11914 *${as_nl}ac_space=\ *) 11915 # `set' does not quote correctly, so add quotes: double-quote 11916 # substitution turns \\\\ into \\, and sed turns \\ into \. 11917 sed -n \ 11918 "s/'/'\\\\''/g; 11919 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11920 ;; #( 11921 *) 11922 # `set' quotes correctly as required by POSIX, so do not add quotes. 11923 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11924 ;; 11925 esac | 11926 sort 11927) | 11928 sed ' 11929 /^ac_cv_env_/b end 11930 t clear 11931 :clear 11932 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11933 t end 11934 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11935 :end' >>confcache 11936if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11937 if test -w "$cache_file"; then 11938 if test "x$cache_file" != "x/dev/null"; then 11939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11940printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11941 if test ! -f "$cache_file" || test -h "$cache_file"; then 11942 cat confcache >"$cache_file" 11943 else 11944 case $cache_file in #( 11945 */* | ?:*) 11946 mv -f confcache "$cache_file"$$ && 11947 mv -f "$cache_file"$$ "$cache_file" ;; #( 11948 *) 11949 mv -f confcache "$cache_file" ;; 11950 esac 11951 fi 11952 fi 11953 else 11954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11955printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11956 fi 11957fi 11958rm -f confcache 11959 11960test "x$prefix" = xNONE && prefix=$ac_default_prefix 11961# Let make expand exec_prefix. 11962test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11963 11964DEFS=-DHAVE_CONFIG_H 11965 11966ac_libobjs= 11967ac_ltlibobjs= 11968U= 11969for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11970 # 1. Remove the extension, and $U if already installed. 11971 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11972 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11973 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11974 # will be set to the directory where LIBOBJS objects are built. 11975 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11976 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11977done 11978LIBOBJS=$ac_libobjs 11979 11980LTLIBOBJS=$ac_ltlibobjs 11981 11982 11983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11984printf %s "checking that generated files are newer than configure... " >&6; } 11985 if test -n "$am_sleep_pid"; then 11986 # Hide warnings about reused PIDs. 11987 wait $am_sleep_pid 2>/dev/null 11988 fi 11989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11990printf "%s\n" "done" >&6; } 11991 if test -n "$EXEEXT"; then 11992 am__EXEEXT_TRUE= 11993 am__EXEEXT_FALSE='#' 11994else 11995 am__EXEEXT_TRUE='#' 11996 am__EXEEXT_FALSE= 11997fi 11998 11999if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12000 as_fn_error $? "conditional \"AMDEP\" was never defined. 12001Usually this means the macro was only invoked conditionally." "$LINENO" 5 12002fi 12003if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12004 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12005Usually this means the macro was only invoked conditionally." "$LINENO" 5 12006fi 12007if test -z "${NEED_REALPATH_TRUE}" && test -z "${NEED_REALPATH_FALSE}"; then 12008 as_fn_error $? "conditional \"NEED_REALPATH\" was never defined. 12009Usually this means the macro was only invoked conditionally." "$LINENO" 5 12010fi 12011if test -z "${NEED_STRCASECMP_TRUE}" && test -z "${NEED_STRCASECMP_FALSE}"; then 12012 as_fn_error $? "conditional \"NEED_STRCASECMP\" was never defined. 12013Usually this means the macro was only invoked conditionally." "$LINENO" 5 12014fi 12015if test -z "${NEED_UNSETENV_TRUE}" && test -z "${NEED_UNSETENV_FALSE}"; then 12016 as_fn_error $? "conditional \"NEED_UNSETENV\" was never defined. 12017Usually this means the macro was only invoked conditionally." "$LINENO" 5 12018fi 12019 12020: "${CONFIG_STATUS=./config.status}" 12021ac_write_fail=0 12022ac_clean_files_save=$ac_clean_files 12023ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12025printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 12026as_write_fail=0 12027cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12028#! $SHELL 12029# Generated by $as_me. 12030# Run this file to recreate the current configuration. 12031# Compiler output produced by configure, useful for debugging 12032# configure, is in config.log if it exists. 12033 12034debug=false 12035ac_cs_recheck=false 12036ac_cs_silent=false 12037 12038SHELL=\${CONFIG_SHELL-$SHELL} 12039export SHELL 12040_ASEOF 12041cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12042## -------------------- ## 12043## M4sh Initialization. ## 12044## -------------------- ## 12045 12046# Be more Bourne compatible 12047DUALCASE=1; export DUALCASE # for MKS sh 12048as_nop=: 12049if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 12050then : 12051 emulate sh 12052 NULLCMD=: 12053 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12054 # is contrary to our usage. Disable this feature. 12055 alias -g '${1+"$@"}'='"$@"' 12056 setopt NO_GLOB_SUBST 12057else $as_nop 12058 case `(set -o) 2>/dev/null` in #( 12059 *posix*) : 12060 set -o posix ;; #( 12061 *) : 12062 ;; 12063esac 12064fi 12065 12066 12067 12068# Reset variables that may have inherited troublesome values from 12069# the environment. 12070 12071# IFS needs to be set, to space, tab, and newline, in precisely that order. 12072# (If _AS_PATH_WALK were called with IFS unset, it would have the 12073# side effect of setting IFS to empty, thus disabling word splitting.) 12074# Quoting is to prevent editors from complaining about space-tab. 12075as_nl=' 12076' 12077export as_nl 12078IFS=" "" $as_nl" 12079 12080PS1='$ ' 12081PS2='> ' 12082PS4='+ ' 12083 12084# Ensure predictable behavior from utilities with locale-dependent output. 12085LC_ALL=C 12086export LC_ALL 12087LANGUAGE=C 12088export LANGUAGE 12089 12090# We cannot yet rely on "unset" to work, but we need these variables 12091# to be unset--not just set to an empty or harmless value--now, to 12092# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 12093# also avoids known problems related to "unset" and subshell syntax 12094# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 12095for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 12096do eval test \${$as_var+y} \ 12097 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12098done 12099 12100# Ensure that fds 0, 1, and 2 are open. 12101if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 12102if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 12103if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 12104 12105# The user is always right. 12106if ${PATH_SEPARATOR+false} :; then 12107 PATH_SEPARATOR=: 12108 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12109 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12110 PATH_SEPARATOR=';' 12111 } 12112fi 12113 12114 12115# Find who we are. Look in the path if we contain no directory separator. 12116as_myself= 12117case $0 in #(( 12118 *[\\/]* ) as_myself=$0 ;; 12119 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12120for as_dir in $PATH 12121do 12122 IFS=$as_save_IFS 12123 case $as_dir in #((( 12124 '') as_dir=./ ;; 12125 */) ;; 12126 *) as_dir=$as_dir/ ;; 12127 esac 12128 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 12129 done 12130IFS=$as_save_IFS 12131 12132 ;; 12133esac 12134# We did not find ourselves, most probably we were run as `sh COMMAND' 12135# in which case we are not to be found in the path. 12136if test "x$as_myself" = x; then 12137 as_myself=$0 12138fi 12139if test ! -f "$as_myself"; then 12140 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12141 exit 1 12142fi 12143 12144 12145 12146# as_fn_error STATUS ERROR [LINENO LOG_FD] 12147# ---------------------------------------- 12148# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12149# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12150# script with STATUS, using 1 if that was 0. 12151as_fn_error () 12152{ 12153 as_status=$1; test $as_status -eq 0 && as_status=1 12154 if test "$4"; then 12155 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12156 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12157 fi 12158 printf "%s\n" "$as_me: error: $2" >&2 12159 as_fn_exit $as_status 12160} # as_fn_error 12161 12162 12163 12164# as_fn_set_status STATUS 12165# ----------------------- 12166# Set $? to STATUS, without forking. 12167as_fn_set_status () 12168{ 12169 return $1 12170} # as_fn_set_status 12171 12172# as_fn_exit STATUS 12173# ----------------- 12174# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12175as_fn_exit () 12176{ 12177 set +e 12178 as_fn_set_status $1 12179 exit $1 12180} # as_fn_exit 12181 12182# as_fn_unset VAR 12183# --------------- 12184# Portably unset VAR. 12185as_fn_unset () 12186{ 12187 { eval $1=; unset $1;} 12188} 12189as_unset=as_fn_unset 12190 12191# as_fn_append VAR VALUE 12192# ---------------------- 12193# Append the text in VALUE to the end of the definition contained in VAR. Take 12194# advantage of any shell optimizations that allow amortized linear growth over 12195# repeated appends, instead of the typical quadratic growth present in naive 12196# implementations. 12197if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 12198then : 12199 eval 'as_fn_append () 12200 { 12201 eval $1+=\$2 12202 }' 12203else $as_nop 12204 as_fn_append () 12205 { 12206 eval $1=\$$1\$2 12207 } 12208fi # as_fn_append 12209 12210# as_fn_arith ARG... 12211# ------------------ 12212# Perform arithmetic evaluation on the ARGs, and store the result in the 12213# global $as_val. Take advantage of shells that can avoid forks. The arguments 12214# must be portable across $(()) and expr. 12215if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 12216then : 12217 eval 'as_fn_arith () 12218 { 12219 as_val=$(( $* )) 12220 }' 12221else $as_nop 12222 as_fn_arith () 12223 { 12224 as_val=`expr "$@" || test $? -eq 1` 12225 } 12226fi # as_fn_arith 12227 12228 12229if expr a : '\(a\)' >/dev/null 2>&1 && 12230 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12231 as_expr=expr 12232else 12233 as_expr=false 12234fi 12235 12236if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12237 as_basename=basename 12238else 12239 as_basename=false 12240fi 12241 12242if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12243 as_dirname=dirname 12244else 12245 as_dirname=false 12246fi 12247 12248as_me=`$as_basename -- "$0" || 12249$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12250 X"$0" : 'X\(//\)$' \| \ 12251 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12252printf "%s\n" X/"$0" | 12253 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12254 s//\1/ 12255 q 12256 } 12257 /^X\/\(\/\/\)$/{ 12258 s//\1/ 12259 q 12260 } 12261 /^X\/\(\/\).*/{ 12262 s//\1/ 12263 q 12264 } 12265 s/.*/./; q'` 12266 12267# Avoid depending upon Character Ranges. 12268as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12269as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12270as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12271as_cr_digits='0123456789' 12272as_cr_alnum=$as_cr_Letters$as_cr_digits 12273 12274 12275# Determine whether it's possible to make 'echo' print without a newline. 12276# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 12277# for compatibility with existing Makefiles. 12278ECHO_C= ECHO_N= ECHO_T= 12279case `echo -n x` in #((((( 12280-n*) 12281 case `echo 'xy\c'` in 12282 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12283 xy) ECHO_C='\c';; 12284 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12285 ECHO_T=' ';; 12286 esac;; 12287*) 12288 ECHO_N='-n';; 12289esac 12290 12291# For backward compatibility with old third-party macros, we provide 12292# the shell variables $as_echo and $as_echo_n. New code should use 12293# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12294as_echo='printf %s\n' 12295as_echo_n='printf %s' 12296 12297rm -f conf$$ conf$$.exe conf$$.file 12298if test -d conf$$.dir; then 12299 rm -f conf$$.dir/conf$$.file 12300else 12301 rm -f conf$$.dir 12302 mkdir conf$$.dir 2>/dev/null 12303fi 12304if (echo >conf$$.file) 2>/dev/null; then 12305 if ln -s conf$$.file conf$$ 2>/dev/null; then 12306 as_ln_s='ln -s' 12307 # ... but there are two gotchas: 12308 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12309 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12310 # In both cases, we have to default to `cp -pR'. 12311 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12312 as_ln_s='cp -pR' 12313 elif ln conf$$.file conf$$ 2>/dev/null; then 12314 as_ln_s=ln 12315 else 12316 as_ln_s='cp -pR' 12317 fi 12318else 12319 as_ln_s='cp -pR' 12320fi 12321rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12322rmdir conf$$.dir 2>/dev/null 12323 12324 12325# as_fn_mkdir_p 12326# ------------- 12327# Create "$as_dir" as a directory, including parents if necessary. 12328as_fn_mkdir_p () 12329{ 12330 12331 case $as_dir in #( 12332 -*) as_dir=./$as_dir;; 12333 esac 12334 test -d "$as_dir" || eval $as_mkdir_p || { 12335 as_dirs= 12336 while :; do 12337 case $as_dir in #( 12338 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12339 *) as_qdir=$as_dir;; 12340 esac 12341 as_dirs="'$as_qdir' $as_dirs" 12342 as_dir=`$as_dirname -- "$as_dir" || 12343$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12344 X"$as_dir" : 'X\(//\)[^/]' \| \ 12345 X"$as_dir" : 'X\(//\)$' \| \ 12346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12347printf "%s\n" X"$as_dir" | 12348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12349 s//\1/ 12350 q 12351 } 12352 /^X\(\/\/\)[^/].*/{ 12353 s//\1/ 12354 q 12355 } 12356 /^X\(\/\/\)$/{ 12357 s//\1/ 12358 q 12359 } 12360 /^X\(\/\).*/{ 12361 s//\1/ 12362 q 12363 } 12364 s/.*/./; q'` 12365 test -d "$as_dir" && break 12366 done 12367 test -z "$as_dirs" || eval "mkdir $as_dirs" 12368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12369 12370 12371} # as_fn_mkdir_p 12372if mkdir -p . 2>/dev/null; then 12373 as_mkdir_p='mkdir -p "$as_dir"' 12374else 12375 test -d ./-p && rmdir ./-p 12376 as_mkdir_p=false 12377fi 12378 12379 12380# as_fn_executable_p FILE 12381# ----------------------- 12382# Test if FILE is an executable regular file. 12383as_fn_executable_p () 12384{ 12385 test -f "$1" && test -x "$1" 12386} # as_fn_executable_p 12387as_test_x='test -x' 12388as_executable_p=as_fn_executable_p 12389 12390# Sed expression to map a string onto a valid CPP name. 12391as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12392 12393# Sed expression to map a string onto a valid variable name. 12394as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12395 12396 12397exec 6>&1 12398## ----------------------------------- ## 12399## Main body of $CONFIG_STATUS script. ## 12400## ----------------------------------- ## 12401_ASEOF 12402test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12403 12404cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12405# Save the log message, to keep $0 and so on meaningful, and to 12406# report actual input values of CONFIG_FILES etc. instead of their 12407# values after options handling. 12408ac_log=" 12409This file was extended by xedit $as_me 1.2.3, which was 12410generated by GNU Autoconf 2.71. Invocation command line was 12411 12412 CONFIG_FILES = $CONFIG_FILES 12413 CONFIG_HEADERS = $CONFIG_HEADERS 12414 CONFIG_LINKS = $CONFIG_LINKS 12415 CONFIG_COMMANDS = $CONFIG_COMMANDS 12416 $ $0 $@ 12417 12418on `(hostname || uname -n) 2>/dev/null | sed 1q` 12419" 12420 12421_ACEOF 12422 12423case $ac_config_files in *" 12424"*) set x $ac_config_files; shift; ac_config_files=$*;; 12425esac 12426 12427case $ac_config_headers in *" 12428"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12429esac 12430 12431 12432cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12433# Files that config.status was made for. 12434config_files="$ac_config_files" 12435config_headers="$ac_config_headers" 12436config_commands="$ac_config_commands" 12437 12438_ACEOF 12439 12440cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12441ac_cs_usage="\ 12442\`$as_me' instantiates files and other configuration actions 12443from templates according to the current configuration. Unless the files 12444and actions are specified as TAGs, all are instantiated by default. 12445 12446Usage: $0 [OPTION]... [TAG]... 12447 12448 -h, --help print this help, then exit 12449 -V, --version print version number and configuration settings, then exit 12450 --config print configuration, then exit 12451 -q, --quiet, --silent 12452 do not print progress messages 12453 -d, --debug don't remove temporary files 12454 --recheck update $as_me by reconfiguring in the same conditions 12455 --file=FILE[:TEMPLATE] 12456 instantiate the configuration file FILE 12457 --header=FILE[:TEMPLATE] 12458 instantiate the configuration header FILE 12459 12460Configuration files: 12461$config_files 12462 12463Configuration headers: 12464$config_headers 12465 12466Configuration commands: 12467$config_commands 12468 12469Report bugs to <https://gitlab.freedesktop.org/xorg/app/xedit/issues>." 12470 12471_ACEOF 12472ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12473ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12474cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12475ac_cs_config='$ac_cs_config_escaped' 12476ac_cs_version="\\ 12477xedit config.status 1.2.3 12478configured by $0, generated by GNU Autoconf 2.71, 12479 with options \\"\$ac_cs_config\\" 12480 12481Copyright (C) 2021 Free Software Foundation, Inc. 12482This config.status script is free software; the Free Software Foundation 12483gives unlimited permission to copy, distribute and modify it." 12484 12485ac_pwd='$ac_pwd' 12486srcdir='$srcdir' 12487INSTALL='$INSTALL' 12488MKDIR_P='$MKDIR_P' 12489AWK='$AWK' 12490test -n "\$AWK" || AWK=awk 12491_ACEOF 12492 12493cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12494# The default lists apply if the user does not specify any file. 12495ac_need_defaults=: 12496while test $# != 0 12497do 12498 case $1 in 12499 --*=?*) 12500 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12501 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12502 ac_shift=: 12503 ;; 12504 --*=) 12505 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12506 ac_optarg= 12507 ac_shift=: 12508 ;; 12509 *) 12510 ac_option=$1 12511 ac_optarg=$2 12512 ac_shift=shift 12513 ;; 12514 esac 12515 12516 case $ac_option in 12517 # Handling of the options. 12518 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12519 ac_cs_recheck=: ;; 12520 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12521 printf "%s\n" "$ac_cs_version"; exit ;; 12522 --config | --confi | --conf | --con | --co | --c ) 12523 printf "%s\n" "$ac_cs_config"; exit ;; 12524 --debug | --debu | --deb | --de | --d | -d ) 12525 debug=: ;; 12526 --file | --fil | --fi | --f ) 12527 $ac_shift 12528 case $ac_optarg in 12529 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12530 '') as_fn_error $? "missing file argument" ;; 12531 esac 12532 as_fn_append CONFIG_FILES " '$ac_optarg'" 12533 ac_need_defaults=false;; 12534 --header | --heade | --head | --hea ) 12535 $ac_shift 12536 case $ac_optarg in 12537 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12538 esac 12539 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12540 ac_need_defaults=false;; 12541 --he | --h) 12542 # Conflict between --help and --header 12543 as_fn_error $? "ambiguous option: \`$1' 12544Try \`$0 --help' for more information.";; 12545 --help | --hel | -h ) 12546 printf "%s\n" "$ac_cs_usage"; exit ;; 12547 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12548 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12549 ac_cs_silent=: ;; 12550 12551 # This is an error. 12552 -*) as_fn_error $? "unrecognized option: \`$1' 12553Try \`$0 --help' for more information." ;; 12554 12555 *) as_fn_append ac_config_targets " $1" 12556 ac_need_defaults=false ;; 12557 12558 esac 12559 shift 12560done 12561 12562ac_configure_extra_args= 12563 12564if $ac_cs_silent; then 12565 exec 6>/dev/null 12566 ac_configure_extra_args="$ac_configure_extra_args --silent" 12567fi 12568 12569_ACEOF 12570cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12571if \$ac_cs_recheck; then 12572 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12573 shift 12574 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12575 CONFIG_SHELL='$SHELL' 12576 export CONFIG_SHELL 12577 exec "\$@" 12578fi 12579 12580_ACEOF 12581cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12582exec 5>>config.log 12583{ 12584 echo 12585 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12586## Running $as_me. ## 12587_ASBOX 12588 printf "%s\n" "$ac_log" 12589} >&5 12590 12591_ACEOF 12592cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12593# 12594# INIT-COMMANDS 12595# 12596AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12597 12598_ACEOF 12599 12600cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12601 12602# Handling of arguments. 12603for ac_config_target in $ac_config_targets 12604do 12605 case $ac_config_target in 12606 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12607 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12608 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12609 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12610 12611 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12612 esac 12613done 12614 12615 12616# If the user did not use the arguments to specify the items to instantiate, 12617# then the envvar interface is used. Set only those that are not. 12618# We use the long form for the default assignment because of an extremely 12619# bizarre bug on SunOS 4.1.3. 12620if $ac_need_defaults; then 12621 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12622 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12623 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12624fi 12625 12626# Have a temporary directory for convenience. Make it in the build tree 12627# simply because there is no reason against having it here, and in addition, 12628# creating and moving files from /tmp can sometimes cause problems. 12629# Hook for its removal unless debugging. 12630# Note that there is a small window in which the directory will not be cleaned: 12631# after its creation but before its name has been assigned to `$tmp'. 12632$debug || 12633{ 12634 tmp= ac_tmp= 12635 trap 'exit_status=$? 12636 : "${ac_tmp:=$tmp}" 12637 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12638' 0 12639 trap 'as_fn_exit 1' 1 2 13 15 12640} 12641# Create a (secure) tmp directory for tmp files. 12642 12643{ 12644 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12645 test -d "$tmp" 12646} || 12647{ 12648 tmp=./conf$$-$RANDOM 12649 (umask 077 && mkdir "$tmp") 12650} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12651ac_tmp=$tmp 12652 12653# Set up the scripts for CONFIG_FILES section. 12654# No need to generate them if there are no CONFIG_FILES. 12655# This happens for instance with `./config.status config.h'. 12656if test -n "$CONFIG_FILES"; then 12657 12658 12659ac_cr=`echo X | tr X '\015'` 12660# On cygwin, bash can eat \r inside `` if the user requested igncr. 12661# But we know of no other shell where ac_cr would be empty at this 12662# point, so we can use a bashism as a fallback. 12663if test "x$ac_cr" = x; then 12664 eval ac_cr=\$\'\\r\' 12665fi 12666ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12667if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12668 ac_cs_awk_cr='\\r' 12669else 12670 ac_cs_awk_cr=$ac_cr 12671fi 12672 12673echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12674_ACEOF 12675 12676 12677{ 12678 echo "cat >conf$$subs.awk <<_ACEOF" && 12679 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12680 echo "_ACEOF" 12681} >conf$$subs.sh || 12682 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12683ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12684ac_delim='%!_!# ' 12685for ac_last_try in false false false false false :; do 12686 . ./conf$$subs.sh || 12687 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12688 12689 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12690 if test $ac_delim_n = $ac_delim_num; then 12691 break 12692 elif $ac_last_try; then 12693 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12694 else 12695 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12696 fi 12697done 12698rm -f conf$$subs.sh 12699 12700cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12701cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12702_ACEOF 12703sed -n ' 12704h 12705s/^/S["/; s/!.*/"]=/ 12706p 12707g 12708s/^[^!]*!// 12709:repl 12710t repl 12711s/'"$ac_delim"'$// 12712t delim 12713:nl 12714h 12715s/\(.\{148\}\)..*/\1/ 12716t more1 12717s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12718p 12719n 12720b repl 12721:more1 12722s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12723p 12724g 12725s/.\{148\}// 12726t nl 12727:delim 12728h 12729s/\(.\{148\}\)..*/\1/ 12730t more2 12731s/["\\]/\\&/g; s/^/"/; s/$/"/ 12732p 12733b 12734:more2 12735s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12736p 12737g 12738s/.\{148\}// 12739t delim 12740' <conf$$subs.awk | sed ' 12741/^[^""]/{ 12742 N 12743 s/\n// 12744} 12745' >>$CONFIG_STATUS || ac_write_fail=1 12746rm -f conf$$subs.awk 12747cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12748_ACAWK 12749cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12750 for (key in S) S_is_set[key] = 1 12751 FS = "" 12752 12753} 12754{ 12755 line = $ 0 12756 nfields = split(line, field, "@") 12757 substed = 0 12758 len = length(field[1]) 12759 for (i = 2; i < nfields; i++) { 12760 key = field[i] 12761 keylen = length(key) 12762 if (S_is_set[key]) { 12763 value = S[key] 12764 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12765 len += length(value) + length(field[++i]) 12766 substed = 1 12767 } else 12768 len += 1 + keylen 12769 } 12770 12771 print line 12772} 12773 12774_ACAWK 12775_ACEOF 12776cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12777if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12778 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12779else 12780 cat 12781fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12782 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12783_ACEOF 12784 12785# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12786# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12787# trailing colons and then remove the whole line if VPATH becomes empty 12788# (actually we leave an empty line to preserve line numbers). 12789if test "x$srcdir" = x.; then 12790 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12791h 12792s/// 12793s/^/:/ 12794s/[ ]*$/:/ 12795s/:\$(srcdir):/:/g 12796s/:\${srcdir}:/:/g 12797s/:@srcdir@:/:/g 12798s/^:*// 12799s/:*$// 12800x 12801s/\(=[ ]*\).*/\1/ 12802G 12803s/\n// 12804s/^[^=]*=[ ]*$// 12805}' 12806fi 12807 12808cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12809fi # test -n "$CONFIG_FILES" 12810 12811# Set up the scripts for CONFIG_HEADERS section. 12812# No need to generate them if there are no CONFIG_HEADERS. 12813# This happens for instance with `./config.status Makefile'. 12814if test -n "$CONFIG_HEADERS"; then 12815cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12816BEGIN { 12817_ACEOF 12818 12819# Transform confdefs.h into an awk script `defines.awk', embedded as 12820# here-document in config.status, that substitutes the proper values into 12821# config.h.in to produce config.h. 12822 12823# Create a delimiter string that does not exist in confdefs.h, to ease 12824# handling of long lines. 12825ac_delim='%!_!# ' 12826for ac_last_try in false false :; do 12827 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12828 if test -z "$ac_tt"; then 12829 break 12830 elif $ac_last_try; then 12831 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12832 else 12833 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12834 fi 12835done 12836 12837# For the awk script, D is an array of macro values keyed by name, 12838# likewise P contains macro parameters if any. Preserve backslash 12839# newline sequences. 12840 12841ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12842sed -n ' 12843s/.\{148\}/&'"$ac_delim"'/g 12844t rset 12845:rset 12846s/^[ ]*#[ ]*define[ ][ ]*/ / 12847t def 12848d 12849:def 12850s/\\$// 12851t bsnl 12852s/["\\]/\\&/g 12853s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12854D["\1"]=" \3"/p 12855s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12856d 12857:bsnl 12858s/["\\]/\\&/g 12859s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12860D["\1"]=" \3\\\\\\n"\\/p 12861t cont 12862s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12863t cont 12864d 12865:cont 12866n 12867s/.\{148\}/&'"$ac_delim"'/g 12868t clear 12869:clear 12870s/\\$// 12871t bsnlc 12872s/["\\]/\\&/g; s/^/"/; s/$/"/p 12873d 12874:bsnlc 12875s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12876b cont 12877' <confdefs.h | sed ' 12878s/'"$ac_delim"'/"\\\ 12879"/g' >>$CONFIG_STATUS || ac_write_fail=1 12880 12881cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12882 for (key in D) D_is_set[key] = 1 12883 FS = "" 12884} 12885/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12886 line = \$ 0 12887 split(line, arg, " ") 12888 if (arg[1] == "#") { 12889 defundef = arg[2] 12890 mac1 = arg[3] 12891 } else { 12892 defundef = substr(arg[1], 2) 12893 mac1 = arg[2] 12894 } 12895 split(mac1, mac2, "(") #) 12896 macro = mac2[1] 12897 prefix = substr(line, 1, index(line, defundef) - 1) 12898 if (D_is_set[macro]) { 12899 # Preserve the white space surrounding the "#". 12900 print prefix "define", macro P[macro] D[macro] 12901 next 12902 } else { 12903 # Replace #undef with comments. This is necessary, for example, 12904 # in the case of _POSIX_SOURCE, which is predefined and required 12905 # on some systems where configure will not decide to define it. 12906 if (defundef == "undef") { 12907 print "/*", prefix defundef, macro, "*/" 12908 next 12909 } 12910 } 12911} 12912{ print } 12913_ACAWK 12914_ACEOF 12915cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12916 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12917fi # test -n "$CONFIG_HEADERS" 12918 12919 12920eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12921shift 12922for ac_tag 12923do 12924 case $ac_tag in 12925 :[FHLC]) ac_mode=$ac_tag; continue;; 12926 esac 12927 case $ac_mode$ac_tag in 12928 :[FHL]*:*);; 12929 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12930 :[FH]-) ac_tag=-:-;; 12931 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12932 esac 12933 ac_save_IFS=$IFS 12934 IFS=: 12935 set x $ac_tag 12936 IFS=$ac_save_IFS 12937 shift 12938 ac_file=$1 12939 shift 12940 12941 case $ac_mode in 12942 :L) ac_source=$1;; 12943 :[FH]) 12944 ac_file_inputs= 12945 for ac_f 12946 do 12947 case $ac_f in 12948 -) ac_f="$ac_tmp/stdin";; 12949 *) # Look for the file first in the build tree, then in the source tree 12950 # (if the path is not absolute). The absolute path cannot be DOS-style, 12951 # because $ac_f cannot contain `:'. 12952 test -f "$ac_f" || 12953 case $ac_f in 12954 [\\/$]*) false;; 12955 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12956 esac || 12957 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12958 esac 12959 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12960 as_fn_append ac_file_inputs " '$ac_f'" 12961 done 12962 12963 # Let's still pretend it is `configure' which instantiates (i.e., don't 12964 # use $as_me), people would be surprised to read: 12965 # /* config.h. Generated by config.status. */ 12966 configure_input='Generated from '` 12967 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12968 `' by configure.' 12969 if test x"$ac_file" != x-; then 12970 configure_input="$ac_file. $configure_input" 12971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12972printf "%s\n" "$as_me: creating $ac_file" >&6;} 12973 fi 12974 # Neutralize special characters interpreted by sed in replacement strings. 12975 case $configure_input in #( 12976 *\&* | *\|* | *\\* ) 12977 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12978 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12979 *) ac_sed_conf_input=$configure_input;; 12980 esac 12981 12982 case $ac_tag in 12983 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12984 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12985 esac 12986 ;; 12987 esac 12988 12989 ac_dir=`$as_dirname -- "$ac_file" || 12990$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12991 X"$ac_file" : 'X\(//\)[^/]' \| \ 12992 X"$ac_file" : 'X\(//\)$' \| \ 12993 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12994printf "%s\n" X"$ac_file" | 12995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12996 s//\1/ 12997 q 12998 } 12999 /^X\(\/\/\)[^/].*/{ 13000 s//\1/ 13001 q 13002 } 13003 /^X\(\/\/\)$/{ 13004 s//\1/ 13005 q 13006 } 13007 /^X\(\/\).*/{ 13008 s//\1/ 13009 q 13010 } 13011 s/.*/./; q'` 13012 as_dir="$ac_dir"; as_fn_mkdir_p 13013 ac_builddir=. 13014 13015case "$ac_dir" in 13016.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13017*) 13018 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 13019 # A ".." for each directory in $ac_dir_suffix. 13020 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13021 case $ac_top_builddir_sub in 13022 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13023 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13024 esac ;; 13025esac 13026ac_abs_top_builddir=$ac_pwd 13027ac_abs_builddir=$ac_pwd$ac_dir_suffix 13028# for backward compatibility: 13029ac_top_builddir=$ac_top_build_prefix 13030 13031case $srcdir in 13032 .) # We are building in place. 13033 ac_srcdir=. 13034 ac_top_srcdir=$ac_top_builddir_sub 13035 ac_abs_top_srcdir=$ac_pwd ;; 13036 [\\/]* | ?:[\\/]* ) # Absolute name. 13037 ac_srcdir=$srcdir$ac_dir_suffix; 13038 ac_top_srcdir=$srcdir 13039 ac_abs_top_srcdir=$srcdir ;; 13040 *) # Relative name. 13041 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13042 ac_top_srcdir=$ac_top_build_prefix$srcdir 13043 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13044esac 13045ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13046 13047 13048 case $ac_mode in 13049 :F) 13050 # 13051 # CONFIG_FILE 13052 # 13053 13054 case $INSTALL in 13055 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13056 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13057 esac 13058 ac_MKDIR_P=$MKDIR_P 13059 case $MKDIR_P in 13060 [\\/$]* | ?:[\\/]* ) ;; 13061 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13062 esac 13063_ACEOF 13064 13065cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13066# If the template does not know about datarootdir, expand it. 13067# FIXME: This hack should be removed a few years after 2.60. 13068ac_datarootdir_hack=; ac_datarootdir_seen= 13069ac_sed_dataroot=' 13070/datarootdir/ { 13071 p 13072 q 13073} 13074/@datadir@/p 13075/@docdir@/p 13076/@infodir@/p 13077/@localedir@/p 13078/@mandir@/p' 13079case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13080*datarootdir*) ac_datarootdir_seen=yes;; 13081*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13083printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13084_ACEOF 13085cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13086 ac_datarootdir_hack=' 13087 s&@datadir@&$datadir&g 13088 s&@docdir@&$docdir&g 13089 s&@infodir@&$infodir&g 13090 s&@localedir@&$localedir&g 13091 s&@mandir@&$mandir&g 13092 s&\\\${datarootdir}&$datarootdir&g' ;; 13093esac 13094_ACEOF 13095 13096# Neutralize VPATH when `$srcdir' = `.'. 13097# Shell code in configure.ac might set extrasub. 13098# FIXME: do we really want to maintain this feature? 13099cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13100ac_sed_extra="$ac_vpsub 13101$extrasub 13102_ACEOF 13103cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13104:t 13105/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13106s|@configure_input@|$ac_sed_conf_input|;t t 13107s&@top_builddir@&$ac_top_builddir_sub&;t t 13108s&@top_build_prefix@&$ac_top_build_prefix&;t t 13109s&@srcdir@&$ac_srcdir&;t t 13110s&@abs_srcdir@&$ac_abs_srcdir&;t t 13111s&@top_srcdir@&$ac_top_srcdir&;t t 13112s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13113s&@builddir@&$ac_builddir&;t t 13114s&@abs_builddir@&$ac_abs_builddir&;t t 13115s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13116s&@INSTALL@&$ac_INSTALL&;t t 13117s&@MKDIR_P@&$ac_MKDIR_P&;t t 13118$ac_datarootdir_hack 13119" 13120eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13121 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13122 13123test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13124 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13125 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13126 "$ac_tmp/out"`; test -z "$ac_out"; } && 13127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13128which seems to be undefined. Please make sure it is defined" >&5 13129printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13130which seems to be undefined. Please make sure it is defined" >&2;} 13131 13132 rm -f "$ac_tmp/stdin" 13133 case $ac_file in 13134 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13135 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13136 esac \ 13137 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13138 ;; 13139 :H) 13140 # 13141 # CONFIG_HEADER 13142 # 13143 if test x"$ac_file" != x-; then 13144 { 13145 printf "%s\n" "/* $configure_input */" >&1 \ 13146 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13147 } >"$ac_tmp/config.h" \ 13148 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13149 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13151printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 13152 else 13153 rm -f "$ac_file" 13154 mv "$ac_tmp/config.h" "$ac_file" \ 13155 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13156 fi 13157 else 13158 printf "%s\n" "/* $configure_input */" >&1 \ 13159 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13160 || as_fn_error $? "could not create -" "$LINENO" 5 13161 fi 13162# Compute "$ac_file"'s index in $config_headers. 13163_am_arg="$ac_file" 13164_am_stamp_count=1 13165for _am_header in $config_headers :; do 13166 case $_am_header in 13167 $_am_arg | $_am_arg:* ) 13168 break ;; 13169 * ) 13170 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13171 esac 13172done 13173echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13174$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13175 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13176 X"$_am_arg" : 'X\(//\)$' \| \ 13177 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13178printf "%s\n" X"$_am_arg" | 13179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13180 s//\1/ 13181 q 13182 } 13183 /^X\(\/\/\)[^/].*/{ 13184 s//\1/ 13185 q 13186 } 13187 /^X\(\/\/\)$/{ 13188 s//\1/ 13189 q 13190 } 13191 /^X\(\/\).*/{ 13192 s//\1/ 13193 q 13194 } 13195 s/.*/./; q'`/stamp-h$_am_stamp_count 13196 ;; 13197 13198 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13199printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 13200 ;; 13201 esac 13202 13203 13204 case $ac_file$ac_mode in 13205 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13206 # Older Autoconf quotes --file arguments for eval, but not when files 13207 # are listed without --file. Let's play safe and only enable the eval 13208 # if we detect the quoting. 13209 # TODO: see whether this extra hack can be removed once we start 13210 # requiring Autoconf 2.70 or later. 13211 case $CONFIG_FILES in #( 13212 *\'*) : 13213 eval set x "$CONFIG_FILES" ;; #( 13214 *) : 13215 set x $CONFIG_FILES ;; #( 13216 *) : 13217 ;; 13218esac 13219 shift 13220 # Used to flag and report bootstrapping failures. 13221 am_rc=0 13222 for am_mf 13223 do 13224 # Strip MF so we end up with the name of the file. 13225 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 13226 # Check whether this is an Automake generated Makefile which includes 13227 # dependency-tracking related rules and includes. 13228 # Grep'ing the whole file directly is not great: AIX grep has a line 13229 # limit of 2048, but all sed's we know have understand at least 4000. 13230 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13231 || continue 13232 am_dirpart=`$as_dirname -- "$am_mf" || 13233$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13234 X"$am_mf" : 'X\(//\)[^/]' \| \ 13235 X"$am_mf" : 'X\(//\)$' \| \ 13236 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13237printf "%s\n" X"$am_mf" | 13238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13239 s//\1/ 13240 q 13241 } 13242 /^X\(\/\/\)[^/].*/{ 13243 s//\1/ 13244 q 13245 } 13246 /^X\(\/\/\)$/{ 13247 s//\1/ 13248 q 13249 } 13250 /^X\(\/\).*/{ 13251 s//\1/ 13252 q 13253 } 13254 s/.*/./; q'` 13255 am_filepart=`$as_basename -- "$am_mf" || 13256$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13257 X"$am_mf" : 'X\(//\)$' \| \ 13258 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13259printf "%s\n" X/"$am_mf" | 13260 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13261 s//\1/ 13262 q 13263 } 13264 /^X\/\(\/\/\)$/{ 13265 s//\1/ 13266 q 13267 } 13268 /^X\/\(\/\).*/{ 13269 s//\1/ 13270 q 13271 } 13272 s/.*/./; q'` 13273 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13274 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13275 | $MAKE -f - am--depfiles" >&5 13276 (cd "$am_dirpart" \ 13277 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13278 | $MAKE -f - am--depfiles) >&5 2>&5 13279 ac_status=$? 13280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13281 (exit $ac_status); } || am_rc=$? 13282 done 13283 if test $am_rc -ne 0; then 13284 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13285printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 13286as_fn_error $? "Something went wrong bootstrapping makefile fragments 13287 for automatic dependency tracking. If GNU make was not used, consider 13288 re-running the configure script with MAKE=\"gmake\" (or whatever is 13289 necessary). You can also try re-running configure with the 13290 '--disable-dependency-tracking' option to at least be able to build 13291 the package (albeit without support for automatic dependency tracking). 13292See \`config.log' for more details" "$LINENO" 5; } 13293 fi 13294 { am_dirpart=; unset am_dirpart;} 13295 { am_filepart=; unset am_filepart;} 13296 { am_mf=; unset am_mf;} 13297 { am_rc=; unset am_rc;} 13298 rm -f conftest-deps.mk 13299} 13300 ;; 13301 13302 esac 13303done # for ac_tag 13304 13305 13306as_fn_exit 0 13307_ACEOF 13308ac_clean_files=$ac_clean_files_save 13309 13310test $ac_write_fail = 0 || 13311 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13312 13313 13314# configure is writing to config.log, and then calls config.status. 13315# config.status does its own redirection, appending to config.log. 13316# Unfortunately, on DOS this fails, as config.log is still kept open 13317# by configure, so config.status won't be able to write to it; its 13318# output is simply discarded. So we exec the FD to /dev/null, 13319# effectively closing config.log, so it can be properly (re)opened and 13320# appended to by config.status. When coming back to configure, we 13321# need to make the FD available again. 13322if test "$no_create" != yes; then 13323 ac_cs_success=: 13324 ac_config_status_args= 13325 test "$silent" = yes && 13326 ac_config_status_args="$ac_config_status_args --quiet" 13327 exec 5>/dev/null 13328 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13329 exec 5>>config.log 13330 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13331 # would make configure fail if this is the last instruction. 13332 $ac_cs_success || as_fn_exit 1 13333fi 13334if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13336printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13337fi 13338 13339 13340