configure revision d3173433
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.72 for fonttosfnt 1.2.4. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/fonttosfnt/-/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else case e in #( 29 e) case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as 'sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed 'exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 144then : 145 emulate sh 146 NULLCMD=: 147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 148 # is contrary to our usage. Disable this feature. 149 alias -g '\${1+\"\$@\"}'='\"\$@\"' 150 setopt NO_GLOB_SUBST 151else case e in #( 152 e) case \`(set -o) 2>/dev/null\` in #( 153 *posix*) : 154 set -o posix ;; #( 155 *) : 156 ;; 157esac ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else case e in #( 176 e) exitcode=1; echo positional parameters were not saved. ;; 177esac 178fi 179test x\$exitcode = x0 || exit 1 180blah=\$(echo \$(echo blah)) 181test x\"\$blah\" = xblah || exit 1 182test -x / || exit 1" 183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 187test \$(( 1 + 1 )) = 2 || exit 1" 188 if (eval "$as_required") 2>/dev/null 189then : 190 as_have_required=yes 191else case e in #( 192 e) as_have_required=no ;; 193esac 194fi 195 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 196then : 197 198else case e in #( 199 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 200as_found=false 201for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 202do 203 IFS=$as_save_IFS 204 case $as_dir in #((( 205 '') as_dir=./ ;; 206 */) ;; 207 *) as_dir=$as_dir/ ;; 208 esac 209 as_found=: 210 case $as_dir in #( 211 /*) 212 for as_base in sh bash ksh sh5; do 213 # Try only shells that exist, to save several forks. 214 as_shell=$as_dir$as_base 215 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 216 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 217then : 218 CONFIG_SHELL=$as_shell as_have_required=yes 219 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 220then : 221 break 2 222fi 223fi 224 done;; 225 esac 226 as_found=false 227done 228IFS=$as_save_IFS 229if $as_found 230then : 231 232else case e in #( 233 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 235then : 236 CONFIG_SHELL=$SHELL as_have_required=yes 237fi ;; 238esac 239fi 240 241 242 if test "x$CONFIG_SHELL" != x 243then : 244 export CONFIG_SHELL 245 # We cannot yet assume a decent shell, so we have to provide a 246# neutralization value for shells without unset; and this also 247# works around shells that cannot unset nonexistent variables. 248# Preserve -v and -x to the replacement shell. 249BASH_ENV=/dev/null 250ENV=/dev/null 251(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 252case $- in # (((( 253 *v*x* | *x*v* ) as_opts=-vx ;; 254 *v* ) as_opts=-v ;; 255 *x* ) as_opts=-x ;; 256 * ) as_opts= ;; 257esac 258exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 259# Admittedly, this is quite paranoid, since all the known shells bail 260# out after a failed 'exec'. 261printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 262exit 255 263fi 264 265 if test x$as_have_required = xno 266then : 267 printf "%s\n" "$0: This script requires a shell more modern than all" 268 printf "%s\n" "$0: the shells that I found on your system." 269 if test ${ZSH_VERSION+y} ; then 270 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 271 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 272 else 273 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 274$0: https://gitlab.freedesktop.org/xorg/app/fonttosfnt/-/issues 275$0: about your system, including any error possibly output 276$0: before this message. Then install a modern shell, or 277$0: manually run the script under such a shell if you do 278$0: have one." 279 fi 280 exit 1 281fi ;; 282esac 283fi 284fi 285SHELL=${CONFIG_SHELL-/bin/sh} 286export SHELL 287# Unset more variables known to interfere with behavior of common tools. 288CLICOLOR_FORCE= GREP_OPTIONS= 289unset CLICOLOR_FORCE GREP_OPTIONS 290 291## --------------------- ## 292## M4sh Shell Functions. ## 293## --------------------- ## 294# as_fn_unset VAR 295# --------------- 296# Portably unset VAR. 297as_fn_unset () 298{ 299 { eval $1=; unset $1;} 300} 301as_unset=as_fn_unset 302 303 304# as_fn_set_status STATUS 305# ----------------------- 306# Set $? to STATUS, without forking. 307as_fn_set_status () 308{ 309 return $1 310} # as_fn_set_status 311 312# as_fn_exit STATUS 313# ----------------- 314# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 315as_fn_exit () 316{ 317 set +e 318 as_fn_set_status $1 319 exit $1 320} # as_fn_exit 321 322# as_fn_mkdir_p 323# ------------- 324# Create "$as_dir" as a directory, including parents if necessary. 325as_fn_mkdir_p () 326{ 327 328 case $as_dir in #( 329 -*) as_dir=./$as_dir;; 330 esac 331 test -d "$as_dir" || eval $as_mkdir_p || { 332 as_dirs= 333 while :; do 334 case $as_dir in #( 335 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 336 *) as_qdir=$as_dir;; 337 esac 338 as_dirs="'$as_qdir' $as_dirs" 339 as_dir=`$as_dirname -- "$as_dir" || 340$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 341 X"$as_dir" : 'X\(//\)[^/]' \| \ 342 X"$as_dir" : 'X\(//\)$' \| \ 343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 344printf "%s\n" X"$as_dir" | 345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 346 s//\1/ 347 q 348 } 349 /^X\(\/\/\)[^/].*/{ 350 s//\1/ 351 q 352 } 353 /^X\(\/\/\)$/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\).*/{ 358 s//\1/ 359 q 360 } 361 s/.*/./; q'` 362 test -d "$as_dir" && break 363 done 364 test -z "$as_dirs" || eval "mkdir $as_dirs" 365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 366 367 368} # as_fn_mkdir_p 369 370# as_fn_executable_p FILE 371# ----------------------- 372# Test if FILE is an executable regular file. 373as_fn_executable_p () 374{ 375 test -f "$1" && test -x "$1" 376} # as_fn_executable_p 377# as_fn_append VAR VALUE 378# ---------------------- 379# Append the text in VALUE to the end of the definition contained in VAR. Take 380# advantage of any shell optimizations that allow amortized linear growth over 381# repeated appends, instead of the typical quadratic growth present in naive 382# implementations. 383if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 384then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else case e in #( 390 e) as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } ;; 394esac 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 403then : 404 eval 'as_fn_arith () 405 { 406 as_val=$(( $* )) 407 }' 408else case e in #( 409 e) as_fn_arith () 410 { 411 as_val=`expr "$@" || test $? -eq 1` 412 } ;; 413esac 414fi # as_fn_arith 415 416 417# as_fn_error STATUS ERROR [LINENO LOG_FD] 418# ---------------------------------------- 419# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 420# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 421# script with STATUS, using 1 if that was 0. 422as_fn_error () 423{ 424 as_status=$1; test $as_status -eq 0 && as_status=1 425 if test "$4"; then 426 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 428 fi 429 printf "%s\n" "$as_me: error: $2" >&2 430 as_fn_exit $as_status 431} # as_fn_error 432 433if expr a : '\(a\)' >/dev/null 2>&1 && 434 test "X`expr 00001 : '.*\(...\)'`" = X001; then 435 as_expr=expr 436else 437 as_expr=false 438fi 439 440if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 441 as_basename=basename 442else 443 as_basename=false 444fi 445 446if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 447 as_dirname=dirname 448else 449 as_dirname=false 450fi 451 452as_me=`$as_basename -- "$0" || 453$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 454 X"$0" : 'X\(//\)$' \| \ 455 X"$0" : 'X\(/\)' \| . 2>/dev/null || 456printf "%s\n" X/"$0" | 457 sed '/^.*\/\([^/][^/]*\)\/*$/{ 458 s//\1/ 459 q 460 } 461 /^X\/\(\/\/\)$/{ 462 s//\1/ 463 q 464 } 465 /^X\/\(\/\).*/{ 466 s//\1/ 467 q 468 } 469 s/.*/./; q'` 470 471# Avoid depending upon Character Ranges. 472as_cr_letters='abcdefghijklmnopqrstuvwxyz' 473as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 474as_cr_Letters=$as_cr_letters$as_cr_LETTERS 475as_cr_digits='0123456789' 476as_cr_alnum=$as_cr_Letters$as_cr_digits 477 478 479 as_lineno_1=$LINENO as_lineno_1a=$LINENO 480 as_lineno_2=$LINENO as_lineno_2a=$LINENO 481 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 482 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 483 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 484 sed -n ' 485 p 486 /[$]LINENO/= 487 ' <$as_myself | 488 sed ' 489 t clear 490 :clear 491 s/[$]LINENO.*/&-/ 492 t lineno 493 b 494 :lineno 495 N 496 :loop 497 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 498 t loop 499 s/-\n.*// 500 ' >$as_me.lineno && 501 chmod +x "$as_me.lineno" || 502 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 503 504 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 505 # already done that, so ensure we don't try to do so again and fall 506 # in an infinite loop. This has already happened in practice. 507 _as_can_reexec=no; export _as_can_reexec 508 # Don't try to exec as it changes $[0], causing all sort of problems 509 # (the dirname of $[0] is not the place where we might find the 510 # original and so on. Autoconf is especially sensitive to this). 511 . "./$as_me.lineno" 512 # Exit status is that of the last command. 513 exit 514} 515 516 517# Determine whether it's possible to make 'echo' print without a newline. 518# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 519# for compatibility with existing Makefiles. 520ECHO_C= ECHO_N= ECHO_T= 521case `echo -n x` in #((((( 522-n*) 523 case `echo 'xy\c'` in 524 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 525 xy) ECHO_C='\c';; 526 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 527 ECHO_T=' ';; 528 esac;; 529*) 530 ECHO_N='-n';; 531esac 532 533# For backward compatibility with old third-party macros, we provide 534# the shell variables $as_echo and $as_echo_n. New code should use 535# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 536as_echo='printf %s\n' 537as_echo_n='printf %s' 538 539rm -f conf$$ conf$$.exe conf$$.file 540if test -d conf$$.dir; then 541 rm -f conf$$.dir/conf$$.file 542else 543 rm -f conf$$.dir 544 mkdir conf$$.dir 2>/dev/null 545fi 546if (echo >conf$$.file) 2>/dev/null; then 547 if ln -s conf$$.file conf$$ 2>/dev/null; then 548 as_ln_s='ln -s' 549 # ... but there are two gotchas: 550 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 551 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 552 # In both cases, we have to default to 'cp -pR'. 553 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 554 as_ln_s='cp -pR' 555 elif ln conf$$.file conf$$ 2>/dev/null; then 556 as_ln_s=ln 557 else 558 as_ln_s='cp -pR' 559 fi 560else 561 as_ln_s='cp -pR' 562fi 563rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 564rmdir conf$$.dir 2>/dev/null 565 566if mkdir -p . 2>/dev/null; then 567 as_mkdir_p='mkdir -p "$as_dir"' 568else 569 test -d ./-p && rmdir ./-p 570 as_mkdir_p=false 571fi 572 573as_test_x='test -x' 574as_executable_p=as_fn_executable_p 575 576# Sed expression to map a string onto a valid CPP name. 577as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 578as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 579 580# Sed expression to map a string onto a valid variable name. 581as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 582as_tr_sh="eval sed '$as_sed_sh'" # deprecated 583 584 585test -n "$DJDIR" || exec 7<&0 </dev/null 586exec 6>&1 587 588# Name of the host. 589# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 590# so uname gets run too. 591ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 592 593# 594# Initializations. 595# 596ac_default_prefix=/usr/local 597ac_clean_files= 598ac_config_libobj_dir=. 599LIBOBJS= 600cross_compiling=no 601subdirs= 602MFLAGS= 603MAKEFLAGS= 604 605# Identity of this package. 606PACKAGE_NAME='fonttosfnt' 607PACKAGE_TARNAME='fonttosfnt' 608PACKAGE_VERSION='1.2.4' 609PACKAGE_STRING='fonttosfnt 1.2.4' 610PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/fonttosfnt/-/issues' 611PACKAGE_URL='' 612 613ac_unique_file="Makefile.am" 614# Factoring default headers for most tests. 615ac_includes_default="\ 616#include <stddef.h> 617#ifdef HAVE_STDIO_H 618# include <stdio.h> 619#endif 620#ifdef HAVE_STDLIB_H 621# include <stdlib.h> 622#endif 623#ifdef HAVE_STRING_H 624# include <string.h> 625#endif 626#ifdef HAVE_INTTYPES_H 627# include <inttypes.h> 628#endif 629#ifdef HAVE_STDINT_H 630# include <stdint.h> 631#endif 632#ifdef HAVE_STRINGS_H 633# include <strings.h> 634#endif 635#ifdef HAVE_SYS_TYPES_H 636# include <sys/types.h> 637#endif 638#ifdef HAVE_SYS_STAT_H 639# include <sys/stat.h> 640#endif 641#ifdef HAVE_UNISTD_H 642# include <unistd.h> 643#endif" 644 645ac_header_c_list= 646ac_subst_vars='am__EXEEXT_FALSE 647am__EXEEXT_TRUE 648LTLIBOBJS 649LIBOBJS 650FONTTOSFNT_LIBS 651FONTTOSFNT_CFLAGS 652NEED_SETENV_FALSE 653NEED_SETENV_TRUE 654MAN_SUBSTS 655XORG_MAN_PAGE 656ADMIN_MAN_DIR 657DRIVER_MAN_DIR 658MISC_MAN_DIR 659FILE_MAN_DIR 660LIB_MAN_DIR 661APP_MAN_DIR 662ADMIN_MAN_SUFFIX 663DRIVER_MAN_SUFFIX 664MISC_MAN_SUFFIX 665FILE_MAN_SUFFIX 666LIB_MAN_SUFFIX 667APP_MAN_SUFFIX 668SED 669host_os 670host_vendor 671host_cpu 672host 673build_os 674build_vendor 675build_cpu 676build 677INSTALL_CMD 678PKG_CONFIG_LIBDIR 679PKG_CONFIG_PATH 680PKG_CONFIG 681CHANGELOG_CMD 682STRICT_CFLAGS 683CWARNFLAGS 684BASE_CFLAGS 685am__fastdepCC_FALSE 686am__fastdepCC_TRUE 687CCDEPMODE 688am__nodep 689AMDEPBACKSLASH 690AMDEP_FALSE 691AMDEP_TRUE 692am__include 693DEPDIR 694OBJEXT 695EXEEXT 696ac_ct_CC 697CPPFLAGS 698LDFLAGS 699CFLAGS 700CC 701am__xargs_n 702am__rm_f_notfound 703AM_BACKSLASH 704AM_DEFAULT_VERBOSITY 705AM_DEFAULT_V 706AM_V 707CSCOPE 708ETAGS 709CTAGS 710am__untar 711am__tar 712AMTAR 713am__leading_dot 714SET_MAKE 715AWK 716mkdir_p 717MKDIR_P 718INSTALL_STRIP_PROGRAM 719STRIP 720install_sh 721MAKEINFO 722AUTOHEADER 723AUTOMAKE 724AUTOCONF 725ACLOCAL 726VERSION 727PACKAGE 728CYGPATH_W 729am__isrc 730INSTALL_DATA 731INSTALL_SCRIPT 732INSTALL_PROGRAM 733target_alias 734host_alias 735build_alias 736LIBS 737ECHO_T 738ECHO_N 739ECHO_C 740DEFS 741mandir 742localedir 743libdir 744psdir 745pdfdir 746dvidir 747htmldir 748infodir 749docdir 750oldincludedir 751includedir 752runstatedir 753localstatedir 754sharedstatedir 755sysconfdir 756datadir 757datarootdir 758libexecdir 759sbindir 760bindir 761program_transform_name 762prefix 763exec_prefix 764PACKAGE_URL 765PACKAGE_BUGREPORT 766PACKAGE_STRING 767PACKAGE_VERSION 768PACKAGE_TARNAME 769PACKAGE_NAME 770PATH_SEPARATOR 771SHELL 772am__quote' 773ac_subst_files='' 774ac_user_opts=' 775enable_option_checking 776enable_silent_rules 777enable_dependency_tracking 778enable_selective_werror 779enable_strict_compilation 780' 781 ac_precious_vars='build_alias 782host_alias 783target_alias 784CC 785CFLAGS 786LDFLAGS 787LIBS 788CPPFLAGS 789PKG_CONFIG 790PKG_CONFIG_PATH 791PKG_CONFIG_LIBDIR 792FONTTOSFNT_CFLAGS 793FONTTOSFNT_LIBS' 794 795 796# Initialize some variables set by options. 797ac_init_help= 798ac_init_version=false 799ac_unrecognized_opts= 800ac_unrecognized_sep= 801# The variables have the same names as the options, with 802# dashes changed to underlines. 803cache_file=/dev/null 804exec_prefix=NONE 805no_create= 806no_recursion= 807prefix=NONE 808program_prefix=NONE 809program_suffix=NONE 810program_transform_name=s,x,x, 811silent= 812site= 813srcdir= 814verbose= 815x_includes=NONE 816x_libraries=NONE 817 818# Installation directory options. 819# These are left unexpanded so users can "make install exec_prefix=/foo" 820# and all the variables that are supposed to be based on exec_prefix 821# by default will actually change. 822# Use braces instead of parens because sh, perl, etc. also accept them. 823# (The list follows the same order as the GNU Coding Standards.) 824bindir='${exec_prefix}/bin' 825sbindir='${exec_prefix}/sbin' 826libexecdir='${exec_prefix}/libexec' 827datarootdir='${prefix}/share' 828datadir='${datarootdir}' 829sysconfdir='${prefix}/etc' 830sharedstatedir='${prefix}/com' 831localstatedir='${prefix}/var' 832runstatedir='${localstatedir}/run' 833includedir='${prefix}/include' 834oldincludedir='/usr/include' 835docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 836infodir='${datarootdir}/info' 837htmldir='${docdir}' 838dvidir='${docdir}' 839pdfdir='${docdir}' 840psdir='${docdir}' 841libdir='${exec_prefix}/lib' 842localedir='${datarootdir}/locale' 843mandir='${datarootdir}/man' 844 845ac_prev= 846ac_dashdash= 847for ac_option 848do 849 # If the previous option needs an argument, assign it. 850 if test -n "$ac_prev"; then 851 eval $ac_prev=\$ac_option 852 ac_prev= 853 continue 854 fi 855 856 case $ac_option in 857 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 858 *=) ac_optarg= ;; 859 *) ac_optarg=yes ;; 860 esac 861 862 case $ac_dashdash$ac_option in 863 --) 864 ac_dashdash=yes ;; 865 866 -bindir | --bindir | --bindi | --bind | --bin | --bi) 867 ac_prev=bindir ;; 868 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 869 bindir=$ac_optarg ;; 870 871 -build | --build | --buil | --bui | --bu) 872 ac_prev=build_alias ;; 873 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 874 build_alias=$ac_optarg ;; 875 876 -cache-file | --cache-file | --cache-fil | --cache-fi \ 877 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 878 ac_prev=cache_file ;; 879 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 880 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 881 cache_file=$ac_optarg ;; 882 883 --config-cache | -C) 884 cache_file=config.cache ;; 885 886 -datadir | --datadir | --datadi | --datad) 887 ac_prev=datadir ;; 888 -datadir=* | --datadir=* | --datadi=* | --datad=*) 889 datadir=$ac_optarg ;; 890 891 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 892 | --dataroo | --dataro | --datar) 893 ac_prev=datarootdir ;; 894 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 895 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 896 datarootdir=$ac_optarg ;; 897 898 -disable-* | --disable-*) 899 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 900 # Reject names that are not valid shell variable names. 901 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 902 as_fn_error $? "invalid feature name: '$ac_useropt'" 903 ac_useropt_orig=$ac_useropt 904 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 905 case $ac_user_opts in 906 *" 907"enable_$ac_useropt" 908"*) ;; 909 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 910 ac_unrecognized_sep=', ';; 911 esac 912 eval enable_$ac_useropt=no ;; 913 914 -docdir | --docdir | --docdi | --doc | --do) 915 ac_prev=docdir ;; 916 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 917 docdir=$ac_optarg ;; 918 919 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 920 ac_prev=dvidir ;; 921 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 922 dvidir=$ac_optarg ;; 923 924 -enable-* | --enable-*) 925 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 926 # Reject names that are not valid shell variable names. 927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 928 as_fn_error $? "invalid feature name: '$ac_useropt'" 929 ac_useropt_orig=$ac_useropt 930 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 931 case $ac_user_opts in 932 *" 933"enable_$ac_useropt" 934"*) ;; 935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 936 ac_unrecognized_sep=', ';; 937 esac 938 eval enable_$ac_useropt=\$ac_optarg ;; 939 940 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 941 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 942 | --exec | --exe | --ex) 943 ac_prev=exec_prefix ;; 944 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 945 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 946 | --exec=* | --exe=* | --ex=*) 947 exec_prefix=$ac_optarg ;; 948 949 -gas | --gas | --ga | --g) 950 # Obsolete; use --with-gas. 951 with_gas=yes ;; 952 953 -help | --help | --hel | --he | -h) 954 ac_init_help=long ;; 955 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 956 ac_init_help=recursive ;; 957 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 958 ac_init_help=short ;; 959 960 -host | --host | --hos | --ho) 961 ac_prev=host_alias ;; 962 -host=* | --host=* | --hos=* | --ho=*) 963 host_alias=$ac_optarg ;; 964 965 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 966 ac_prev=htmldir ;; 967 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 968 | --ht=*) 969 htmldir=$ac_optarg ;; 970 971 -includedir | --includedir | --includedi | --included | --include \ 972 | --includ | --inclu | --incl | --inc) 973 ac_prev=includedir ;; 974 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 975 | --includ=* | --inclu=* | --incl=* | --inc=*) 976 includedir=$ac_optarg ;; 977 978 -infodir | --infodir | --infodi | --infod | --info | --inf) 979 ac_prev=infodir ;; 980 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 981 infodir=$ac_optarg ;; 982 983 -libdir | --libdir | --libdi | --libd) 984 ac_prev=libdir ;; 985 -libdir=* | --libdir=* | --libdi=* | --libd=*) 986 libdir=$ac_optarg ;; 987 988 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 989 | --libexe | --libex | --libe) 990 ac_prev=libexecdir ;; 991 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 992 | --libexe=* | --libex=* | --libe=*) 993 libexecdir=$ac_optarg ;; 994 995 -localedir | --localedir | --localedi | --localed | --locale) 996 ac_prev=localedir ;; 997 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 998 localedir=$ac_optarg ;; 999 1000 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1001 | --localstate | --localstat | --localsta | --localst | --locals) 1002 ac_prev=localstatedir ;; 1003 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1004 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1005 localstatedir=$ac_optarg ;; 1006 1007 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1008 ac_prev=mandir ;; 1009 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1010 mandir=$ac_optarg ;; 1011 1012 -nfp | --nfp | --nf) 1013 # Obsolete; use --without-fp. 1014 with_fp=no ;; 1015 1016 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1017 | --no-cr | --no-c | -n) 1018 no_create=yes ;; 1019 1020 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1021 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1022 no_recursion=yes ;; 1023 1024 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1025 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1026 | --oldin | --oldi | --old | --ol | --o) 1027 ac_prev=oldincludedir ;; 1028 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1029 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1030 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1031 oldincludedir=$ac_optarg ;; 1032 1033 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1034 ac_prev=prefix ;; 1035 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1036 prefix=$ac_optarg ;; 1037 1038 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1039 | --program-pre | --program-pr | --program-p) 1040 ac_prev=program_prefix ;; 1041 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1042 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1043 program_prefix=$ac_optarg ;; 1044 1045 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1046 | --program-suf | --program-su | --program-s) 1047 ac_prev=program_suffix ;; 1048 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1049 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1050 program_suffix=$ac_optarg ;; 1051 1052 -program-transform-name | --program-transform-name \ 1053 | --program-transform-nam | --program-transform-na \ 1054 | --program-transform-n | --program-transform- \ 1055 | --program-transform | --program-transfor \ 1056 | --program-transfo | --program-transf \ 1057 | --program-trans | --program-tran \ 1058 | --progr-tra | --program-tr | --program-t) 1059 ac_prev=program_transform_name ;; 1060 -program-transform-name=* | --program-transform-name=* \ 1061 | --program-transform-nam=* | --program-transform-na=* \ 1062 | --program-transform-n=* | --program-transform-=* \ 1063 | --program-transform=* | --program-transfor=* \ 1064 | --program-transfo=* | --program-transf=* \ 1065 | --program-trans=* | --program-tran=* \ 1066 | --progr-tra=* | --program-tr=* | --program-t=*) 1067 program_transform_name=$ac_optarg ;; 1068 1069 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1070 ac_prev=pdfdir ;; 1071 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1072 pdfdir=$ac_optarg ;; 1073 1074 -psdir | --psdir | --psdi | --psd | --ps) 1075 ac_prev=psdir ;; 1076 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1077 psdir=$ac_optarg ;; 1078 1079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1080 | -silent | --silent | --silen | --sile | --sil) 1081 silent=yes ;; 1082 1083 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1084 | --runstate | --runstat | --runsta | --runst | --runs \ 1085 | --run | --ru | --r) 1086 ac_prev=runstatedir ;; 1087 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1088 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1089 | --run=* | --ru=* | --r=*) 1090 runstatedir=$ac_optarg ;; 1091 1092 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1093 ac_prev=sbindir ;; 1094 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1095 | --sbi=* | --sb=*) 1096 sbindir=$ac_optarg ;; 1097 1098 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1099 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1100 | --sharedst | --shareds | --shared | --share | --shar \ 1101 | --sha | --sh) 1102 ac_prev=sharedstatedir ;; 1103 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1104 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1105 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1106 | --sha=* | --sh=*) 1107 sharedstatedir=$ac_optarg ;; 1108 1109 -site | --site | --sit) 1110 ac_prev=site ;; 1111 -site=* | --site=* | --sit=*) 1112 site=$ac_optarg ;; 1113 1114 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1115 ac_prev=srcdir ;; 1116 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1117 srcdir=$ac_optarg ;; 1118 1119 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1120 | --syscon | --sysco | --sysc | --sys | --sy) 1121 ac_prev=sysconfdir ;; 1122 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1123 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1124 sysconfdir=$ac_optarg ;; 1125 1126 -target | --target | --targe | --targ | --tar | --ta | --t) 1127 ac_prev=target_alias ;; 1128 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1129 target_alias=$ac_optarg ;; 1130 1131 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1132 verbose=yes ;; 1133 1134 -version | --version | --versio | --versi | --vers | -V) 1135 ac_init_version=: ;; 1136 1137 -with-* | --with-*) 1138 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1139 # Reject names that are not valid shell variable names. 1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1141 as_fn_error $? "invalid package name: '$ac_useropt'" 1142 ac_useropt_orig=$ac_useropt 1143 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1144 case $ac_user_opts in 1145 *" 1146"with_$ac_useropt" 1147"*) ;; 1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1149 ac_unrecognized_sep=', ';; 1150 esac 1151 eval with_$ac_useropt=\$ac_optarg ;; 1152 1153 -without-* | --without-*) 1154 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1155 # Reject names that are not valid shell variable names. 1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1157 as_fn_error $? "invalid package name: '$ac_useropt'" 1158 ac_useropt_orig=$ac_useropt 1159 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1160 case $ac_user_opts in 1161 *" 1162"with_$ac_useropt" 1163"*) ;; 1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1165 ac_unrecognized_sep=', ';; 1166 esac 1167 eval with_$ac_useropt=no ;; 1168 1169 --x) 1170 # Obsolete; use --with-x. 1171 with_x=yes ;; 1172 1173 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1174 | --x-incl | --x-inc | --x-in | --x-i) 1175 ac_prev=x_includes ;; 1176 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1177 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1178 x_includes=$ac_optarg ;; 1179 1180 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1181 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1182 ac_prev=x_libraries ;; 1183 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1184 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1185 x_libraries=$ac_optarg ;; 1186 1187 -*) as_fn_error $? "unrecognized option: '$ac_option' 1188Try '$0 --help' for more information" 1189 ;; 1190 1191 *=*) 1192 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1193 # Reject names that are not valid shell variable names. 1194 case $ac_envvar in #( 1195 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1196 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1197 esac 1198 eval $ac_envvar=\$ac_optarg 1199 export $ac_envvar ;; 1200 1201 *) 1202 # FIXME: should be removed in autoconf 3.0. 1203 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1204 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1205 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1206 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1207 ;; 1208 1209 esac 1210done 1211 1212if test -n "$ac_prev"; then 1213 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1214 as_fn_error $? "missing argument to $ac_option" 1215fi 1216 1217if test -n "$ac_unrecognized_opts"; then 1218 case $enable_option_checking in 1219 no) ;; 1220 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1221 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1222 esac 1223fi 1224 1225# Check all directory arguments for consistency. 1226for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1227 datadir sysconfdir sharedstatedir localstatedir includedir \ 1228 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1229 libdir localedir mandir runstatedir 1230do 1231 eval ac_val=\$$ac_var 1232 # Remove trailing slashes. 1233 case $ac_val in 1234 */ ) 1235 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1236 eval $ac_var=\$ac_val;; 1237 esac 1238 # Be sure to have absolute directory names. 1239 case $ac_val in 1240 [\\/$]* | ?:[\\/]* ) continue;; 1241 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1242 esac 1243 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1244done 1245 1246# There might be people who depend on the old broken behavior: '$host' 1247# used to hold the argument of --host etc. 1248# FIXME: To remove some day. 1249build=$build_alias 1250host=$host_alias 1251target=$target_alias 1252 1253# FIXME: To remove some day. 1254if test "x$host_alias" != x; then 1255 if test "x$build_alias" = x; then 1256 cross_compiling=maybe 1257 elif test "x$build_alias" != "x$host_alias"; then 1258 cross_compiling=yes 1259 fi 1260fi 1261 1262ac_tool_prefix= 1263test -n "$host_alias" && ac_tool_prefix=$host_alias- 1264 1265test "$silent" = yes && exec 6>/dev/null 1266 1267 1268ac_pwd=`pwd` && test -n "$ac_pwd" && 1269ac_ls_di=`ls -di .` && 1270ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1271 as_fn_error $? "working directory cannot be determined" 1272test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1273 as_fn_error $? "pwd does not report name of working directory" 1274 1275 1276# Find the source files, if location was not specified. 1277if test -z "$srcdir"; then 1278 ac_srcdir_defaulted=yes 1279 # Try the directory containing this script, then the parent directory. 1280 ac_confdir=`$as_dirname -- "$as_myself" || 1281$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1282 X"$as_myself" : 'X\(//\)[^/]' \| \ 1283 X"$as_myself" : 'X\(//\)$' \| \ 1284 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1285printf "%s\n" X"$as_myself" | 1286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1287 s//\1/ 1288 q 1289 } 1290 /^X\(\/\/\)[^/].*/{ 1291 s//\1/ 1292 q 1293 } 1294 /^X\(\/\/\)$/{ 1295 s//\1/ 1296 q 1297 } 1298 /^X\(\/\).*/{ 1299 s//\1/ 1300 q 1301 } 1302 s/.*/./; q'` 1303 srcdir=$ac_confdir 1304 if test ! -r "$srcdir/$ac_unique_file"; then 1305 srcdir=.. 1306 fi 1307else 1308 ac_srcdir_defaulted=no 1309fi 1310if test ! -r "$srcdir/$ac_unique_file"; then 1311 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1312 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1313fi 1314ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1315ac_abs_confdir=`( 1316 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1317 pwd)` 1318# When building in place, set srcdir=. 1319if test "$ac_abs_confdir" = "$ac_pwd"; then 1320 srcdir=. 1321fi 1322# Remove unnecessary trailing slashes from srcdir. 1323# Double slashes in file names in object file debugging info 1324# mess up M-x gdb in Emacs. 1325case $srcdir in 1326*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1327esac 1328for ac_var in $ac_precious_vars; do 1329 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1330 eval ac_env_${ac_var}_value=\$${ac_var} 1331 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1332 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1333done 1334 1335# 1336# Report the --help message. 1337# 1338if test "$ac_init_help" = "long"; then 1339 # Omit some internal or obsolete options to make the list less imposing. 1340 # This message is too long to be a string in the A/UX 3.1 sh. 1341 cat <<_ACEOF 1342'configure' configures fonttosfnt 1.2.4 to adapt to many kinds of systems. 1343 1344Usage: $0 [OPTION]... [VAR=VALUE]... 1345 1346To assign environment variables (e.g., CC, CFLAGS...), specify them as 1347VAR=VALUE. See below for descriptions of some of the useful variables. 1348 1349Defaults for the options are specified in brackets. 1350 1351Configuration: 1352 -h, --help display this help and exit 1353 --help=short display options specific to this package 1354 --help=recursive display the short help of all the included packages 1355 -V, --version display version information and exit 1356 -q, --quiet, --silent do not print 'checking ...' messages 1357 --cache-file=FILE cache test results in FILE [disabled] 1358 -C, --config-cache alias for '--cache-file=config.cache' 1359 -n, --no-create do not create output files 1360 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1361 1362Installation directories: 1363 --prefix=PREFIX install architecture-independent files in PREFIX 1364 [$ac_default_prefix] 1365 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1366 [PREFIX] 1367 1368By default, 'make install' will install all the files in 1369'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1370an installation prefix other than '$ac_default_prefix' using '--prefix', 1371for instance '--prefix=\$HOME'. 1372 1373For better control, use the options below. 1374 1375Fine tuning of the installation directories: 1376 --bindir=DIR user executables [EPREFIX/bin] 1377 --sbindir=DIR system admin executables [EPREFIX/sbin] 1378 --libexecdir=DIR program executables [EPREFIX/libexec] 1379 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1380 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1381 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1382 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1383 --libdir=DIR object code libraries [EPREFIX/lib] 1384 --includedir=DIR C header files [PREFIX/include] 1385 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1386 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1387 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1388 --infodir=DIR info documentation [DATAROOTDIR/info] 1389 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1390 --mandir=DIR man documentation [DATAROOTDIR/man] 1391 --docdir=DIR documentation root [DATAROOTDIR/doc/fonttosfnt] 1392 --htmldir=DIR html documentation [DOCDIR] 1393 --dvidir=DIR dvi documentation [DOCDIR] 1394 --pdfdir=DIR pdf documentation [DOCDIR] 1395 --psdir=DIR ps documentation [DOCDIR] 1396_ACEOF 1397 1398 cat <<\_ACEOF 1399 1400Program names: 1401 --program-prefix=PREFIX prepend PREFIX to installed program names 1402 --program-suffix=SUFFIX append SUFFIX to installed program names 1403 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1404 1405System types: 1406 --build=BUILD configure for building on BUILD [guessed] 1407 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1408_ACEOF 1409fi 1410 1411if test -n "$ac_init_help"; then 1412 case $ac_init_help in 1413 short | recursive ) echo "Configuration of fonttosfnt 1.2.4:";; 1414 esac 1415 cat <<\_ACEOF 1416 1417Optional Features: 1418 --disable-option-checking ignore unrecognized --enable/--with options 1419 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1420 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1421 --enable-silent-rules less verbose build output (undo: "make V=1") 1422 --disable-silent-rules verbose build output (undo: "make V=0") 1423 --enable-dependency-tracking 1424 do not reject slow dependency extractors 1425 --disable-dependency-tracking 1426 speeds up one-time build 1427 --disable-selective-werror 1428 Turn off selective compiler errors. (default: 1429 enabled) 1430 --enable-strict-compilation 1431 Enable all warnings from compiler and make them 1432 errors (default: disabled) 1433 1434Some influential environment variables: 1435 CC C compiler command 1436 CFLAGS C compiler flags 1437 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1438 nonstandard directory <lib dir> 1439 LIBS libraries to pass to the linker, e.g. -l<library> 1440 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1441 you have headers in a nonstandard directory <include dir> 1442 PKG_CONFIG path to pkg-config utility 1443 PKG_CONFIG_PATH 1444 directories to add to pkg-config's search path 1445 PKG_CONFIG_LIBDIR 1446 path overriding pkg-config's built-in search path 1447 FONTTOSFNT_CFLAGS 1448 C compiler flags for FONTTOSFNT, overriding pkg-config 1449 FONTTOSFNT_LIBS 1450 linker flags for FONTTOSFNT, overriding pkg-config 1451 1452Use these variables to override the choices made by 'configure' or to help 1453it to find libraries and programs with nonstandard names/locations. 1454 1455Report bugs to <https://gitlab.freedesktop.org/xorg/app/fonttosfnt/-/issues>. 1456_ACEOF 1457ac_status=$? 1458fi 1459 1460if test "$ac_init_help" = "recursive"; then 1461 # If there are subdirs, report their specific --help. 1462 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1463 test -d "$ac_dir" || 1464 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1465 continue 1466 ac_builddir=. 1467 1468case "$ac_dir" in 1469.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1470*) 1471 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1472 # A ".." for each directory in $ac_dir_suffix. 1473 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1474 case $ac_top_builddir_sub in 1475 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1476 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1477 esac ;; 1478esac 1479ac_abs_top_builddir=$ac_pwd 1480ac_abs_builddir=$ac_pwd$ac_dir_suffix 1481# for backward compatibility: 1482ac_top_builddir=$ac_top_build_prefix 1483 1484case $srcdir in 1485 .) # We are building in place. 1486 ac_srcdir=. 1487 ac_top_srcdir=$ac_top_builddir_sub 1488 ac_abs_top_srcdir=$ac_pwd ;; 1489 [\\/]* | ?:[\\/]* ) # Absolute name. 1490 ac_srcdir=$srcdir$ac_dir_suffix; 1491 ac_top_srcdir=$srcdir 1492 ac_abs_top_srcdir=$srcdir ;; 1493 *) # Relative name. 1494 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1495 ac_top_srcdir=$ac_top_build_prefix$srcdir 1496 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1497esac 1498ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1499 1500 cd "$ac_dir" || { ac_status=$?; continue; } 1501 # Check for configure.gnu first; this name is used for a wrapper for 1502 # Metaconfig's "Configure" on case-insensitive file systems. 1503 if test -f "$ac_srcdir/configure.gnu"; then 1504 echo && 1505 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1506 elif test -f "$ac_srcdir/configure"; then 1507 echo && 1508 $SHELL "$ac_srcdir/configure" --help=recursive 1509 else 1510 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1511 fi || ac_status=$? 1512 cd "$ac_pwd" || { ac_status=$?; break; } 1513 done 1514fi 1515 1516test -n "$ac_init_help" && exit $ac_status 1517if $ac_init_version; then 1518 cat <<\_ACEOF 1519fonttosfnt configure 1.2.4 1520generated by GNU Autoconf 2.72 1521 1522Copyright (C) 2023 Free Software Foundation, Inc. 1523This configure script is free software; the Free Software Foundation 1524gives unlimited permission to copy, distribute and modify it. 1525_ACEOF 1526 exit 1527fi 1528 1529## ------------------------ ## 1530## Autoconf initialization. ## 1531## ------------------------ ## 1532 1533# ac_fn_c_try_compile LINENO 1534# -------------------------- 1535# Try to compile conftest.$ac_ext, and return whether this succeeded. 1536ac_fn_c_try_compile () 1537{ 1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1539 rm -f conftest.$ac_objext conftest.beam 1540 if { { ac_try="$ac_compile" 1541case "(($ac_try" in 1542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1543 *) ac_try_echo=$ac_try;; 1544esac 1545eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1546printf "%s\n" "$ac_try_echo"; } >&5 1547 (eval "$ac_compile") 2>conftest.err 1548 ac_status=$? 1549 if test -s conftest.err; then 1550 grep -v '^ *+' conftest.err >conftest.er1 1551 cat conftest.er1 >&5 1552 mv -f conftest.er1 conftest.err 1553 fi 1554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1555 test $ac_status = 0; } && { 1556 test -z "$ac_c_werror_flag" || 1557 test ! -s conftest.err 1558 } && test -s conftest.$ac_objext 1559then : 1560 ac_retval=0 1561else case e in #( 1562 e) printf "%s\n" "$as_me: failed program was:" >&5 1563sed 's/^/| /' conftest.$ac_ext >&5 1564 1565 ac_retval=1 ;; 1566esac 1567fi 1568 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1569 as_fn_set_status $ac_retval 1570 1571} # ac_fn_c_try_compile 1572 1573# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1574# ------------------------------------------------------------------ 1575# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1576# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1577ac_fn_check_decl () 1578{ 1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1580 as_decl_name=`echo $2|sed 's/ *(.*//'` 1581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1582printf %s "checking whether $as_decl_name is declared... " >&6; } 1583if eval test \${$3+y} 1584then : 1585 printf %s "(cached) " >&6 1586else case e in #( 1587 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1588 eval ac_save_FLAGS=\$$6 1589 as_fn_append $6 " $5" 1590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1591/* end confdefs.h. */ 1592$4 1593int 1594main (void) 1595{ 1596#ifndef $as_decl_name 1597#ifdef __cplusplus 1598 (void) $as_decl_use; 1599#else 1600 (void) $as_decl_name; 1601#endif 1602#endif 1603 1604 ; 1605 return 0; 1606} 1607_ACEOF 1608if ac_fn_c_try_compile "$LINENO" 1609then : 1610 eval "$3=yes" 1611else case e in #( 1612 e) eval "$3=no" ;; 1613esac 1614fi 1615rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1616 eval $6=\$ac_save_FLAGS 1617 ;; 1618esac 1619fi 1620eval ac_res=\$$3 1621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1622printf "%s\n" "$ac_res" >&6; } 1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1624 1625} # ac_fn_check_decl 1626 1627# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1628# ------------------------------------------------------- 1629# Tests whether HEADER exists and can be compiled using the include files in 1630# INCLUDES, setting the cache variable VAR accordingly. 1631ac_fn_c_check_header_compile () 1632{ 1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1635printf %s "checking for $2... " >&6; } 1636if eval test \${$3+y} 1637then : 1638 printf %s "(cached) " >&6 1639else case e in #( 1640 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1641/* end confdefs.h. */ 1642$4 1643#include <$2> 1644_ACEOF 1645if ac_fn_c_try_compile "$LINENO" 1646then : 1647 eval "$3=yes" 1648else case e in #( 1649 e) eval "$3=no" ;; 1650esac 1651fi 1652rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1653esac 1654fi 1655eval ac_res=\$$3 1656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1657printf "%s\n" "$ac_res" >&6; } 1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1659 1660} # ac_fn_c_check_header_compile 1661 1662# ac_fn_c_try_link LINENO 1663# ----------------------- 1664# Try to link conftest.$ac_ext, and return whether this succeeded. 1665ac_fn_c_try_link () 1666{ 1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1668 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1669 if { { ac_try="$ac_link" 1670case "(($ac_try" in 1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1672 *) ac_try_echo=$ac_try;; 1673esac 1674eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1675printf "%s\n" "$ac_try_echo"; } >&5 1676 (eval "$ac_link") 2>conftest.err 1677 ac_status=$? 1678 if test -s conftest.err; then 1679 grep -v '^ *+' conftest.err >conftest.er1 1680 cat conftest.er1 >&5 1681 mv -f conftest.er1 conftest.err 1682 fi 1683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1684 test $ac_status = 0; } && { 1685 test -z "$ac_c_werror_flag" || 1686 test ! -s conftest.err 1687 } && test -s conftest$ac_exeext && { 1688 test "$cross_compiling" = yes || 1689 test -x conftest$ac_exeext 1690 } 1691then : 1692 ac_retval=0 1693else case e in #( 1694 e) printf "%s\n" "$as_me: failed program was:" >&5 1695sed 's/^/| /' conftest.$ac_ext >&5 1696 1697 ac_retval=1 ;; 1698esac 1699fi 1700 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1701 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1702 # interfere with the next link command; also delete a directory that is 1703 # left behind by Apple's compiler. We do this before executing the actions. 1704 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1706 as_fn_set_status $ac_retval 1707 1708} # ac_fn_c_try_link 1709 1710# ac_fn_c_check_func LINENO FUNC VAR 1711# ---------------------------------- 1712# Tests whether FUNC exists, setting the cache variable VAR accordingly 1713ac_fn_c_check_func () 1714{ 1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1717printf %s "checking for $2... " >&6; } 1718if eval test \${$3+y} 1719then : 1720 printf %s "(cached) " >&6 1721else case e in #( 1722 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1723/* end confdefs.h. */ 1724/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1725 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1726#define $2 innocuous_$2 1727 1728/* System header to define __stub macros and hopefully few prototypes, 1729 which can conflict with char $2 (void); below. */ 1730 1731#include <limits.h> 1732#undef $2 1733 1734/* Override any GCC internal prototype to avoid an error. 1735 Use char because int might match the return type of a GCC 1736 builtin and then its argument prototype would still apply. */ 1737#ifdef __cplusplus 1738extern "C" 1739#endif 1740char $2 (void); 1741/* The GNU C library defines this for functions which it implements 1742 to always fail with ENOSYS. Some functions are actually named 1743 something starting with __ and the normal name is an alias. */ 1744#if defined __stub_$2 || defined __stub___$2 1745choke me 1746#endif 1747 1748int 1749main (void) 1750{ 1751return $2 (); 1752 ; 1753 return 0; 1754} 1755_ACEOF 1756if ac_fn_c_try_link "$LINENO" 1757then : 1758 eval "$3=yes" 1759else case e in #( 1760 e) eval "$3=no" ;; 1761esac 1762fi 1763rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1764 conftest$ac_exeext conftest.$ac_ext ;; 1765esac 1766fi 1767eval ac_res=\$$3 1768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1769printf "%s\n" "$ac_res" >&6; } 1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1771 1772} # ac_fn_c_check_func 1773ac_configure_args_raw= 1774for ac_arg 1775do 1776 case $ac_arg in 1777 *\'*) 1778 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1779 esac 1780 as_fn_append ac_configure_args_raw " '$ac_arg'" 1781done 1782 1783case $ac_configure_args_raw in 1784 *$as_nl*) 1785 ac_safe_unquote= ;; 1786 *) 1787 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1788 ac_unsafe_a="$ac_unsafe_z#~" 1789 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1790 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1791esac 1792 1793cat >config.log <<_ACEOF 1794This file contains any messages produced by compilers while 1795running configure, to aid debugging if configure makes a mistake. 1796 1797It was created by fonttosfnt $as_me 1.2.4, which was 1798generated by GNU Autoconf 2.72. Invocation command line was 1799 1800 $ $0$ac_configure_args_raw 1801 1802_ACEOF 1803exec 5>>config.log 1804{ 1805cat <<_ASUNAME 1806## --------- ## 1807## Platform. ## 1808## --------- ## 1809 1810hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1811uname -m = `(uname -m) 2>/dev/null || echo unknown` 1812uname -r = `(uname -r) 2>/dev/null || echo unknown` 1813uname -s = `(uname -s) 2>/dev/null || echo unknown` 1814uname -v = `(uname -v) 2>/dev/null || echo unknown` 1815 1816/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1817/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1818 1819/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1820/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1821/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1822/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1823/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1824/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1825/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1826 1827_ASUNAME 1828 1829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1830for as_dir in $PATH 1831do 1832 IFS=$as_save_IFS 1833 case $as_dir in #((( 1834 '') as_dir=./ ;; 1835 */) ;; 1836 *) as_dir=$as_dir/ ;; 1837 esac 1838 printf "%s\n" "PATH: $as_dir" 1839 done 1840IFS=$as_save_IFS 1841 1842} >&5 1843 1844cat >&5 <<_ACEOF 1845 1846 1847## ----------- ## 1848## Core tests. ## 1849## ----------- ## 1850 1851_ACEOF 1852 1853 1854# Keep a trace of the command line. 1855# Strip out --no-create and --no-recursion so they do not pile up. 1856# Strip out --silent because we don't want to record it for future runs. 1857# Also quote any args containing shell meta-characters. 1858# Make two passes to allow for proper duplicate-argument suppression. 1859ac_configure_args= 1860ac_configure_args0= 1861ac_configure_args1= 1862ac_must_keep_next=false 1863for ac_pass in 1 2 1864do 1865 for ac_arg 1866 do 1867 case $ac_arg in 1868 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1869 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1870 | -silent | --silent | --silen | --sile | --sil) 1871 continue ;; 1872 *\'*) 1873 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1874 esac 1875 case $ac_pass in 1876 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1877 2) 1878 as_fn_append ac_configure_args1 " '$ac_arg'" 1879 if test $ac_must_keep_next = true; then 1880 ac_must_keep_next=false # Got value, back to normal. 1881 else 1882 case $ac_arg in 1883 *=* | --config-cache | -C | -disable-* | --disable-* \ 1884 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1885 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1886 | -with-* | --with-* | -without-* | --without-* | --x) 1887 case "$ac_configure_args0 " in 1888 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1889 esac 1890 ;; 1891 -* ) ac_must_keep_next=true ;; 1892 esac 1893 fi 1894 as_fn_append ac_configure_args " '$ac_arg'" 1895 ;; 1896 esac 1897 done 1898done 1899{ ac_configure_args0=; unset ac_configure_args0;} 1900{ ac_configure_args1=; unset ac_configure_args1;} 1901 1902# When interrupted or exit'd, cleanup temporary files, and complete 1903# config.log. We remove comments because anyway the quotes in there 1904# would cause problems or look ugly. 1905# WARNING: Use '\'' to represent an apostrophe within the trap. 1906# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1907trap 'exit_status=$? 1908 # Sanitize IFS. 1909 IFS=" "" $as_nl" 1910 # Save into config.log some information that might help in debugging. 1911 { 1912 echo 1913 1914 printf "%s\n" "## ---------------- ## 1915## Cache variables. ## 1916## ---------------- ##" 1917 echo 1918 # The following way of writing the cache mishandles newlines in values, 1919( 1920 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1921 eval ac_val=\$$ac_var 1922 case $ac_val in #( 1923 *${as_nl}*) 1924 case $ac_var in #( 1925 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1926printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1927 esac 1928 case $ac_var in #( 1929 _ | IFS | as_nl) ;; #( 1930 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1931 *) { eval $ac_var=; unset $ac_var;} ;; 1932 esac ;; 1933 esac 1934 done 1935 (set) 2>&1 | 1936 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1937 *${as_nl}ac_space=\ *) 1938 sed -n \ 1939 "s/'\''/'\''\\\\'\'''\''/g; 1940 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1941 ;; #( 1942 *) 1943 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1944 ;; 1945 esac | 1946 sort 1947) 1948 echo 1949 1950 printf "%s\n" "## ----------------- ## 1951## Output variables. ## 1952## ----------------- ##" 1953 echo 1954 for ac_var in $ac_subst_vars 1955 do 1956 eval ac_val=\$$ac_var 1957 case $ac_val in 1958 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1959 esac 1960 printf "%s\n" "$ac_var='\''$ac_val'\''" 1961 done | sort 1962 echo 1963 1964 if test -n "$ac_subst_files"; then 1965 printf "%s\n" "## ------------------- ## 1966## File substitutions. ## 1967## ------------------- ##" 1968 echo 1969 for ac_var in $ac_subst_files 1970 do 1971 eval ac_val=\$$ac_var 1972 case $ac_val in 1973 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1974 esac 1975 printf "%s\n" "$ac_var='\''$ac_val'\''" 1976 done | sort 1977 echo 1978 fi 1979 1980 if test -s confdefs.h; then 1981 printf "%s\n" "## ----------- ## 1982## confdefs.h. ## 1983## ----------- ##" 1984 echo 1985 cat confdefs.h 1986 echo 1987 fi 1988 test "$ac_signal" != 0 && 1989 printf "%s\n" "$as_me: caught signal $ac_signal" 1990 printf "%s\n" "$as_me: exit $exit_status" 1991 } >&5 1992 rm -f core *.core core.conftest.* && 1993 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1994 exit $exit_status 1995' 0 1996for ac_signal in 1 2 13 15; do 1997 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1998done 1999ac_signal=0 2000 2001# confdefs.h avoids OS command line length limits that DEFS can exceed. 2002rm -f -r conftest* confdefs.h 2003 2004printf "%s\n" "/* confdefs.h */" > confdefs.h 2005 2006# Predefined preprocessor variables. 2007 2008printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2009 2010printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2011 2012printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2013 2014printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2015 2016printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2017 2018printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2019 2020 2021# Let the site file select an alternate cache file if it wants to. 2022# Prefer an explicitly selected file to automatically selected ones. 2023if test -n "$CONFIG_SITE"; then 2024 ac_site_files="$CONFIG_SITE" 2025elif test "x$prefix" != xNONE; then 2026 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2027else 2028 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2029fi 2030 2031for ac_site_file in $ac_site_files 2032do 2033 case $ac_site_file in #( 2034 */*) : 2035 ;; #( 2036 *) : 2037 ac_site_file=./$ac_site_file ;; 2038esac 2039 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2041printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2042 sed 's/^/| /' "$ac_site_file" >&5 2043 . "$ac_site_file" \ 2044 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2045printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2046as_fn_error $? "failed to load site script $ac_site_file 2047See 'config.log' for more details" "$LINENO" 5; } 2048 fi 2049done 2050 2051if test -r "$cache_file"; then 2052 # Some versions of bash will fail to source /dev/null (special files 2053 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2054 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2056printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2057 case $cache_file in 2058 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2059 *) . "./$cache_file";; 2060 esac 2061 fi 2062else 2063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2064printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2065 >$cache_file 2066fi 2067 2068# Test code for whether the C compiler supports C89 (global declarations) 2069ac_c_conftest_c89_globals=' 2070/* Does the compiler advertise C89 conformance? 2071 Do not test the value of __STDC__, because some compilers set it to 0 2072 while being otherwise adequately conformant. */ 2073#if !defined __STDC__ 2074# error "Compiler does not advertise C89 conformance" 2075#endif 2076 2077#include <stddef.h> 2078#include <stdarg.h> 2079struct stat; 2080/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2081struct buf { int x; }; 2082struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2083static char *e (char **p, int i) 2084{ 2085 return p[i]; 2086} 2087static char *f (char * (*g) (char **, int), char **p, ...) 2088{ 2089 char *s; 2090 va_list v; 2091 va_start (v,p); 2092 s = g (p, va_arg (v,int)); 2093 va_end (v); 2094 return s; 2095} 2096 2097/* C89 style stringification. */ 2098#define noexpand_stringify(a) #a 2099const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2100 2101/* C89 style token pasting. Exercises some of the corner cases that 2102 e.g. old MSVC gets wrong, but not very hard. */ 2103#define noexpand_concat(a,b) a##b 2104#define expand_concat(a,b) noexpand_concat(a,b) 2105extern int vA; 2106extern int vbee; 2107#define aye A 2108#define bee B 2109int *pvA = &expand_concat(v,aye); 2110int *pvbee = &noexpand_concat(v,bee); 2111 2112/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2113 function prototypes and stuff, but not \xHH hex character constants. 2114 These do not provoke an error unfortunately, instead are silently treated 2115 as an "x". The following induces an error, until -std is added to get 2116 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2117 array size at least. It is necessary to write \x00 == 0 to get something 2118 that is true only with -std. */ 2119int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2120 2121/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2122 inside strings and character constants. */ 2123#define FOO(x) '\''x'\'' 2124int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2125 2126int test (int i, double x); 2127struct s1 {int (*f) (int a);}; 2128struct s2 {int (*f) (double a);}; 2129int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2130 int, int);' 2131 2132# Test code for whether the C compiler supports C89 (body of main). 2133ac_c_conftest_c89_main=' 2134ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2135' 2136 2137# Test code for whether the C compiler supports C99 (global declarations) 2138ac_c_conftest_c99_globals=' 2139/* Does the compiler advertise C99 conformance? */ 2140#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2141# error "Compiler does not advertise C99 conformance" 2142#endif 2143 2144// See if C++-style comments work. 2145 2146#include <stdbool.h> 2147extern int puts (const char *); 2148extern int printf (const char *, ...); 2149extern int dprintf (int, const char *, ...); 2150extern void *malloc (size_t); 2151extern void free (void *); 2152 2153// Check varargs macros. These examples are taken from C99 6.10.3.5. 2154// dprintf is used instead of fprintf to avoid needing to declare 2155// FILE and stderr. 2156#define debug(...) dprintf (2, __VA_ARGS__) 2157#define showlist(...) puts (#__VA_ARGS__) 2158#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2159static void 2160test_varargs_macros (void) 2161{ 2162 int x = 1234; 2163 int y = 5678; 2164 debug ("Flag"); 2165 debug ("X = %d\n", x); 2166 showlist (The first, second, and third items.); 2167 report (x>y, "x is %d but y is %d", x, y); 2168} 2169 2170// Check long long types. 2171#define BIG64 18446744073709551615ull 2172#define BIG32 4294967295ul 2173#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2174#if !BIG_OK 2175 #error "your preprocessor is broken" 2176#endif 2177#if BIG_OK 2178#else 2179 #error "your preprocessor is broken" 2180#endif 2181static long long int bignum = -9223372036854775807LL; 2182static unsigned long long int ubignum = BIG64; 2183 2184struct incomplete_array 2185{ 2186 int datasize; 2187 double data[]; 2188}; 2189 2190struct named_init { 2191 int number; 2192 const wchar_t *name; 2193 double average; 2194}; 2195 2196typedef const char *ccp; 2197 2198static inline int 2199test_restrict (ccp restrict text) 2200{ 2201 // Iterate through items via the restricted pointer. 2202 // Also check for declarations in for loops. 2203 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2204 continue; 2205 return 0; 2206} 2207 2208// Check varargs and va_copy. 2209static bool 2210test_varargs (const char *format, ...) 2211{ 2212 va_list args; 2213 va_start (args, format); 2214 va_list args_copy; 2215 va_copy (args_copy, args); 2216 2217 const char *str = ""; 2218 int number = 0; 2219 float fnumber = 0; 2220 2221 while (*format) 2222 { 2223 switch (*format++) 2224 { 2225 case '\''s'\'': // string 2226 str = va_arg (args_copy, const char *); 2227 break; 2228 case '\''d'\'': // int 2229 number = va_arg (args_copy, int); 2230 break; 2231 case '\''f'\'': // float 2232 fnumber = va_arg (args_copy, double); 2233 break; 2234 default: 2235 break; 2236 } 2237 } 2238 va_end (args_copy); 2239 va_end (args); 2240 2241 return *str && number && fnumber; 2242} 2243' 2244 2245# Test code for whether the C compiler supports C99 (body of main). 2246ac_c_conftest_c99_main=' 2247 // Check bool. 2248 _Bool success = false; 2249 success |= (argc != 0); 2250 2251 // Check restrict. 2252 if (test_restrict ("String literal") == 0) 2253 success = true; 2254 char *restrict newvar = "Another string"; 2255 2256 // Check varargs. 2257 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2258 test_varargs_macros (); 2259 2260 // Check flexible array members. 2261 struct incomplete_array *ia = 2262 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2263 ia->datasize = 10; 2264 for (int i = 0; i < ia->datasize; ++i) 2265 ia->data[i] = i * 1.234; 2266 // Work around memory leak warnings. 2267 free (ia); 2268 2269 // Check named initializers. 2270 struct named_init ni = { 2271 .number = 34, 2272 .name = L"Test wide string", 2273 .average = 543.34343, 2274 }; 2275 2276 ni.number = 58; 2277 2278 int dynamic_array[ni.number]; 2279 dynamic_array[0] = argv[0][0]; 2280 dynamic_array[ni.number - 1] = 543; 2281 2282 // work around unused variable warnings 2283 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2284 || dynamic_array[ni.number - 1] != 543); 2285' 2286 2287# Test code for whether the C compiler supports C11 (global declarations) 2288ac_c_conftest_c11_globals=' 2289/* Does the compiler advertise C11 conformance? */ 2290#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2291# error "Compiler does not advertise C11 conformance" 2292#endif 2293 2294// Check _Alignas. 2295char _Alignas (double) aligned_as_double; 2296char _Alignas (0) no_special_alignment; 2297extern char aligned_as_int; 2298char _Alignas (0) _Alignas (int) aligned_as_int; 2299 2300// Check _Alignof. 2301enum 2302{ 2303 int_alignment = _Alignof (int), 2304 int_array_alignment = _Alignof (int[100]), 2305 char_alignment = _Alignof (char) 2306}; 2307_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2308 2309// Check _Noreturn. 2310int _Noreturn does_not_return (void) { for (;;) continue; } 2311 2312// Check _Static_assert. 2313struct test_static_assert 2314{ 2315 int x; 2316 _Static_assert (sizeof (int) <= sizeof (long int), 2317 "_Static_assert does not work in struct"); 2318 long int y; 2319}; 2320 2321// Check UTF-8 literals. 2322#define u8 syntax error! 2323char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2324 2325// Check duplicate typedefs. 2326typedef long *long_ptr; 2327typedef long int *long_ptr; 2328typedef long_ptr long_ptr; 2329 2330// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2331struct anonymous 2332{ 2333 union { 2334 struct { int i; int j; }; 2335 struct { int k; long int l; } w; 2336 }; 2337 int m; 2338} v1; 2339' 2340 2341# Test code for whether the C compiler supports C11 (body of main). 2342ac_c_conftest_c11_main=' 2343 _Static_assert ((offsetof (struct anonymous, i) 2344 == offsetof (struct anonymous, w.k)), 2345 "Anonymous union alignment botch"); 2346 v1.i = 2; 2347 v1.w.k = 5; 2348 ok |= v1.i != 5; 2349' 2350 2351# Test code for whether the C compiler supports C11 (complete). 2352ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2353${ac_c_conftest_c99_globals} 2354${ac_c_conftest_c11_globals} 2355 2356int 2357main (int argc, char **argv) 2358{ 2359 int ok = 0; 2360 ${ac_c_conftest_c89_main} 2361 ${ac_c_conftest_c99_main} 2362 ${ac_c_conftest_c11_main} 2363 return ok; 2364} 2365" 2366 2367# Test code for whether the C compiler supports C99 (complete). 2368ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2369${ac_c_conftest_c99_globals} 2370 2371int 2372main (int argc, char **argv) 2373{ 2374 int ok = 0; 2375 ${ac_c_conftest_c89_main} 2376 ${ac_c_conftest_c99_main} 2377 return ok; 2378} 2379" 2380 2381# Test code for whether the C compiler supports C89 (complete). 2382ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2383 2384int 2385main (int argc, char **argv) 2386{ 2387 int ok = 0; 2388 ${ac_c_conftest_c89_main} 2389 return ok; 2390} 2391" 2392 2393as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2394as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2395as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2396as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2397as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2398as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2399as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2400as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2401as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2402 2403# Auxiliary files required by this configure script. 2404ac_aux_files="config.guess config.sub compile missing install-sh" 2405 2406# Locations in which to look for auxiliary files. 2407ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2408 2409# Search for a directory containing all of the required auxiliary files, 2410# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2411# If we don't find one directory that contains all the files we need, 2412# we report the set of missing files from the *first* directory in 2413# $ac_aux_dir_candidates and give up. 2414ac_missing_aux_files="" 2415ac_first_candidate=: 2416printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2418as_found=false 2419for as_dir in $ac_aux_dir_candidates 2420do 2421 IFS=$as_save_IFS 2422 case $as_dir in #((( 2423 '') as_dir=./ ;; 2424 */) ;; 2425 *) as_dir=$as_dir/ ;; 2426 esac 2427 as_found=: 2428 2429 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2430 ac_aux_dir_found=yes 2431 ac_install_sh= 2432 for ac_aux in $ac_aux_files 2433 do 2434 # As a special case, if "install-sh" is required, that requirement 2435 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2436 # and $ac_install_sh is set appropriately for whichever one is found. 2437 if test x"$ac_aux" = x"install-sh" 2438 then 2439 if test -f "${as_dir}install-sh"; then 2440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2441 ac_install_sh="${as_dir}install-sh -c" 2442 elif test -f "${as_dir}install.sh"; then 2443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2444 ac_install_sh="${as_dir}install.sh -c" 2445 elif test -f "${as_dir}shtool"; then 2446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2447 ac_install_sh="${as_dir}shtool install -c" 2448 else 2449 ac_aux_dir_found=no 2450 if $ac_first_candidate; then 2451 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2452 else 2453 break 2454 fi 2455 fi 2456 else 2457 if test -f "${as_dir}${ac_aux}"; then 2458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2459 else 2460 ac_aux_dir_found=no 2461 if $ac_first_candidate; then 2462 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2463 else 2464 break 2465 fi 2466 fi 2467 fi 2468 done 2469 if test "$ac_aux_dir_found" = yes; then 2470 ac_aux_dir="$as_dir" 2471 break 2472 fi 2473 ac_first_candidate=false 2474 2475 as_found=false 2476done 2477IFS=$as_save_IFS 2478if $as_found 2479then : 2480 2481else case e in #( 2482 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2483esac 2484fi 2485 2486 2487# These three variables are undocumented and unsupported, 2488# and are intended to be withdrawn in a future Autoconf release. 2489# They can cause serious problems if a builder's source tree is in a directory 2490# whose full name contains unusual characters. 2491if test -f "${ac_aux_dir}config.guess"; then 2492 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2493fi 2494if test -f "${ac_aux_dir}config.sub"; then 2495 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2496fi 2497if test -f "$ac_aux_dir/configure"; then 2498 ac_configure="$SHELL ${ac_aux_dir}configure" 2499fi 2500 2501# Check that the precious variables saved in the cache have kept the same 2502# value. 2503ac_cache_corrupted=false 2504for ac_var in $ac_precious_vars; do 2505 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2506 eval ac_new_set=\$ac_env_${ac_var}_set 2507 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2508 eval ac_new_val=\$ac_env_${ac_var}_value 2509 case $ac_old_set,$ac_new_set in 2510 set,) 2511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2512printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2513 ac_cache_corrupted=: ;; 2514 ,set) 2515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2516printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2517 ac_cache_corrupted=: ;; 2518 ,);; 2519 *) 2520 if test "x$ac_old_val" != "x$ac_new_val"; then 2521 # differences in whitespace do not lead to failure. 2522 ac_old_val_w=`echo x $ac_old_val` 2523 ac_new_val_w=`echo x $ac_new_val` 2524 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2526printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2527 ac_cache_corrupted=: 2528 else 2529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2530printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2531 eval $ac_var=\$ac_old_val 2532 fi 2533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2534printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2536printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2537 fi;; 2538 esac 2539 # Pass precious variables to config.status. 2540 if test "$ac_new_set" = set; then 2541 case $ac_new_val in 2542 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2543 *) ac_arg=$ac_var=$ac_new_val ;; 2544 esac 2545 case " $ac_configure_args " in 2546 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2547 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2548 esac 2549 fi 2550done 2551if $ac_cache_corrupted; then 2552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2553printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2555printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2556 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2557 and start over" "$LINENO" 5 2558fi 2559## -------------------- ## 2560## Main body of script. ## 2561## -------------------- ## 2562 2563ac_ext=c 2564ac_cpp='$CPP $CPPFLAGS' 2565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2567ac_compiler_gnu=$ac_cv_c_compiler_gnu 2568 2569 2570 2571ac_config_headers="$ac_config_headers config.h" 2572 2573 2574# Initialize Automake 2575am__api_version='1.17' 2576 2577 2578 2579 # Find a good install program. We prefer a C program (faster), 2580# so one script is as good as another. But avoid the broken or 2581# incompatible versions: 2582# SysV /etc/install, /usr/sbin/install 2583# SunOS /usr/etc/install 2584# IRIX /sbin/install 2585# AIX /bin/install 2586# AmigaOS /C/install, which installs bootblocks on floppy discs 2587# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2588# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2589# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2590# OS/2's system install, which has a completely different semantic 2591# ./install, which can be erroneously created by make from ./install.sh. 2592# Reject install programs that cannot install multiple files. 2593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2594printf %s "checking for a BSD-compatible install... " >&6; } 2595if test -z "$INSTALL"; then 2596if test ${ac_cv_path_install+y} 2597then : 2598 printf %s "(cached) " >&6 2599else case e in #( 2600 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2601for as_dir in $PATH 2602do 2603 IFS=$as_save_IFS 2604 case $as_dir in #((( 2605 '') as_dir=./ ;; 2606 */) ;; 2607 *) as_dir=$as_dir/ ;; 2608 esac 2609 # Account for fact that we put trailing slashes in our PATH walk. 2610case $as_dir in #(( 2611 ./ | /[cC]/* | \ 2612 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2613 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2614 /usr/ucb/* ) ;; 2615 *) 2616 # OSF1 and SCO ODT 3.0 have their own names for install. 2617 # Don't use installbsd from OSF since it installs stuff as root 2618 # by default. 2619 for ac_prog in ginstall scoinst install; do 2620 for ac_exec_ext in '' $ac_executable_extensions; do 2621 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2622 if test $ac_prog = install && 2623 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2624 # AIX install. It has an incompatible calling convention. 2625 : 2626 elif test $ac_prog = install && 2627 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2628 # program-specific install script used by HP pwplus--don't use. 2629 : 2630 else 2631 rm -rf conftest.one conftest.two conftest.dir 2632 echo one > conftest.one 2633 echo two > conftest.two 2634 mkdir conftest.dir 2635 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2636 test -s conftest.one && test -s conftest.two && 2637 test -s conftest.dir/conftest.one && 2638 test -s conftest.dir/conftest.two 2639 then 2640 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2641 break 3 2642 fi 2643 fi 2644 fi 2645 done 2646 done 2647 ;; 2648esac 2649 2650 done 2651IFS=$as_save_IFS 2652 2653rm -rf conftest.one conftest.two conftest.dir 2654 ;; 2655esac 2656fi 2657 if test ${ac_cv_path_install+y}; then 2658 INSTALL=$ac_cv_path_install 2659 else 2660 # As a last resort, use the slow shell script. Don't cache a 2661 # value for INSTALL within a source directory, because that will 2662 # break other packages using the cache if that directory is 2663 # removed, or if the value is a relative name. 2664 INSTALL=$ac_install_sh 2665 fi 2666fi 2667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2668printf "%s\n" "$INSTALL" >&6; } 2669 2670# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2671# It thinks the first close brace ends the variable substitution. 2672test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2673 2674test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2675 2676test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2677 2678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 2679printf %s "checking whether sleep supports fractional seconds... " >&6; } 2680if test ${am_cv_sleep_fractional_seconds+y} 2681then : 2682 printf %s "(cached) " >&6 2683else case e in #( 2684 e) if sleep 0.001 2>/dev/null 2685then : 2686 am_cv_sleep_fractional_seconds=yes 2687else case e in #( 2688 e) am_cv_sleep_fractional_seconds=no ;; 2689esac 2690fi 2691 ;; 2692esac 2693fi 2694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 2695printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 2696 2697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 2698printf %s "checking filesystem timestamp resolution... " >&6; } 2699if test ${am_cv_filesystem_timestamp_resolution+y} 2700then : 2701 printf %s "(cached) " >&6 2702else case e in #( 2703 e) # Default to the worst case. 2704am_cv_filesystem_timestamp_resolution=2 2705 2706# Only try to go finer than 1 sec if sleep can do it. 2707# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 2708# - 1 sec is not much of a win compared to 2 sec, and 2709# - it takes 2 seconds to perform the test whether 1 sec works. 2710# 2711# Instead, just use the default 2s on platforms that have 1s resolution, 2712# accept the extra 1s delay when using $sleep in the Automake tests, in 2713# exchange for not incurring the 2s delay for running the test for all 2714# packages. 2715# 2716am_try_resolutions= 2717if test "$am_cv_sleep_fractional_seconds" = yes; then 2718 # Even a millisecond often causes a bunch of false positives, 2719 # so just try a hundredth of a second. The time saved between .001 and 2720 # .01 is not terribly consequential. 2721 am_try_resolutions="0.01 0.1 $am_try_resolutions" 2722fi 2723 2724# In order to catch current-generation FAT out, we must *modify* files 2725# that already exist; the *creation* timestamp is finer. Use names 2726# that make ls -t sort them differently when they have equal 2727# timestamps than when they have distinct timestamps, keeping 2728# in mind that ls -t prints the *newest* file first. 2729rm -f conftest.ts? 2730: > conftest.ts1 2731: > conftest.ts2 2732: > conftest.ts3 2733 2734# Make sure ls -t actually works. Do 'set' in a subshell so we don't 2735# clobber the current shell's arguments. (Outer-level square brackets 2736# are removed by m4; they're present so that m4 does not expand 2737# <dollar><star>; be careful, easy to get confused.) 2738if ( 2739 set X `ls -t conftest.ts[12]` && 2740 { 2741 test "$*" != "X conftest.ts1 conftest.ts2" || 2742 test "$*" != "X conftest.ts2 conftest.ts1"; 2743 } 2744); then :; else 2745 # If neither matched, then we have a broken ls. This can happen 2746 # if, for instance, CONFIG_SHELL is bash and it inherits a 2747 # broken ls alias from the environment. This has actually 2748 # happened. Such a system could not be considered "sane". 2749 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 2750 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2751printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2752as_fn_error $? "ls -t produces unexpected output. 2753Make sure there is not a broken ls alias in your environment. 2754See 'config.log' for more details" "$LINENO" 5; } 2755fi 2756 2757for am_try_res in $am_try_resolutions; do 2758 # Any one fine-grained sleep might happen to cross the boundary 2759 # between two values of a coarser actual resolution, but if we do 2760 # two fine-grained sleeps in a row, at least one of them will fall 2761 # entirely within a coarse interval. 2762 echo alpha > conftest.ts1 2763 sleep $am_try_res 2764 echo beta > conftest.ts2 2765 sleep $am_try_res 2766 echo gamma > conftest.ts3 2767 2768 # We assume that 'ls -t' will make use of high-resolution 2769 # timestamps if the operating system supports them at all. 2770 if (set X `ls -t conftest.ts?` && 2771 test "$2" = conftest.ts3 && 2772 test "$3" = conftest.ts2 && 2773 test "$4" = conftest.ts1); then 2774 # 2775 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 2776 # because we don't need to test make. 2777 make_ok=true 2778 if test $am_try_res != 1; then 2779 # But if we've succeeded so far with a subsecond resolution, we 2780 # have one more thing to check: make. It can happen that 2781 # everything else supports the subsecond mtimes, but make doesn't; 2782 # notably on macOS, which ships make 3.81 from 2006 (the last one 2783 # released under GPLv2). https://bugs.gnu.org/68808 2784 # 2785 # We test $MAKE if it is defined in the environment, else "make". 2786 # It might get overridden later, but our hope is that in practice 2787 # it does not matter: it is the system "make" which is (by far) 2788 # the most likely to be broken, whereas if the user overrides it, 2789 # probably they did so with a better, or at least not worse, make. 2790 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 2791 # 2792 # Create a Makefile (real tab character here): 2793 rm -f conftest.mk 2794 echo 'conftest.ts1: conftest.ts2' >conftest.mk 2795 echo ' touch conftest.ts2' >>conftest.mk 2796 # 2797 # Now, running 2798 # touch conftest.ts1; touch conftest.ts2; make 2799 # should touch ts1 because ts2 is newer. This could happen by luck, 2800 # but most often, it will fail if make's support is insufficient. So 2801 # test for several consecutive successes. 2802 # 2803 # (We reuse conftest.ts[12] because we still want to modify existing 2804 # files, not create new ones, per above.) 2805 n=0 2806 make=${MAKE-make} 2807 until test $n -eq 3; do 2808 echo one > conftest.ts1 2809 sleep $am_try_res 2810 echo two > conftest.ts2 # ts2 should now be newer than ts1 2811 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 2812 make_ok=false 2813 break # out of $n loop 2814 fi 2815 n=`expr $n + 1` 2816 done 2817 fi 2818 # 2819 if $make_ok; then 2820 # Everything we know to check worked out, so call this resolution good. 2821 am_cv_filesystem_timestamp_resolution=$am_try_res 2822 break # out of $am_try_res loop 2823 fi 2824 # Otherwise, we'll go on to check the next resolution. 2825 fi 2826done 2827rm -f conftest.ts? 2828# (end _am_filesystem_timestamp_resolution) 2829 ;; 2830esac 2831fi 2832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 2833printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 2834 2835# This check should not be cached, as it may vary across builds of 2836# different projects. 2837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2838printf %s "checking whether build environment is sane... " >&6; } 2839# Reject unsafe characters in $srcdir or the absolute working directory 2840# name. Accept space and tab only in the latter. 2841am_lf=' 2842' 2843case `pwd` in 2844 *[\\\"\#\$\&\'\`$am_lf]*) 2845 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2846esac 2847case $srcdir in 2848 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2849 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2850esac 2851 2852# Do 'set' in a subshell so we don't clobber the current shell's 2853# arguments. Must try -L first in case configure is actually a 2854# symlink; some systems play weird games with the mod time of symlinks 2855# (eg FreeBSD returns the mod time of the symlink's containing 2856# directory). 2857am_build_env_is_sane=no 2858am_has_slept=no 2859rm -f conftest.file 2860for am_try in 1 2; do 2861 echo "timestamp, slept: $am_has_slept" > conftest.file 2862 if ( 2863 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2864 if test "$*" = "X"; then 2865 # -L didn't work. 2866 set X `ls -t "$srcdir/configure" conftest.file` 2867 fi 2868 test "$2" = conftest.file 2869 ); then 2870 am_build_env_is_sane=yes 2871 break 2872 fi 2873 # Just in case. 2874 sleep "$am_cv_filesystem_timestamp_resolution" 2875 am_has_slept=yes 2876done 2877 2878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 2879printf "%s\n" "$am_build_env_is_sane" >&6; } 2880if test "$am_build_env_is_sane" = no; then 2881 as_fn_error $? "newly created file is older than distributed files! 2882Check your system clock" "$LINENO" 5 2883fi 2884 2885# If we didn't sleep, we still need to ensure time stamps of config.status and 2886# generated files are strictly newer. 2887am_sleep_pid= 2888if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 2889then : 2890 2891else case e in #( 2892 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 2893 am_sleep_pid=$! 2894 ;; 2895esac 2896fi 2897 2898rm -f conftest.file 2899 2900test "$program_prefix" != NONE && 2901 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2902# Use a double $ so make ignores it. 2903test "$program_suffix" != NONE && 2904 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2905# Double any \ or $. 2906# By default was 's,x,x', remove it if useless. 2907ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2908program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2909 2910 2911# Expand $ac_aux_dir to an absolute path. 2912am_aux_dir=`cd "$ac_aux_dir" && pwd` 2913 2914 2915 if test x"${MISSING+set}" != xset; then 2916 MISSING="\${SHELL} '$am_aux_dir/missing'" 2917fi 2918# Use eval to expand $SHELL 2919if eval "$MISSING --is-lightweight"; then 2920 am_missing_run="$MISSING " 2921else 2922 am_missing_run= 2923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2924printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2925fi 2926 2927if test x"${install_sh+set}" != xset; then 2928 case $am_aux_dir in 2929 *\ * | *\ *) 2930 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2931 *) 2932 install_sh="\${SHELL} $am_aux_dir/install-sh" 2933 esac 2934fi 2935 2936# Installed binaries are usually stripped using 'strip' when the user 2937# run "make install-strip". However 'strip' might not be the right 2938# tool to use in cross-compilation environments, therefore Automake 2939# will honor the 'STRIP' environment variable to overrule this program. 2940if test "$cross_compiling" != no; then 2941 if test -n "$ac_tool_prefix"; then 2942 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2943set dummy ${ac_tool_prefix}strip; ac_word=$2 2944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2945printf %s "checking for $ac_word... " >&6; } 2946if test ${ac_cv_prog_STRIP+y} 2947then : 2948 printf %s "(cached) " >&6 2949else case e in #( 2950 e) if test -n "$STRIP"; then 2951 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2952else 2953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2954for as_dir in $PATH 2955do 2956 IFS=$as_save_IFS 2957 case $as_dir in #((( 2958 '') as_dir=./ ;; 2959 */) ;; 2960 *) as_dir=$as_dir/ ;; 2961 esac 2962 for ac_exec_ext in '' $ac_executable_extensions; do 2963 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2964 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2965 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2966 break 2 2967 fi 2968done 2969 done 2970IFS=$as_save_IFS 2971 2972fi ;; 2973esac 2974fi 2975STRIP=$ac_cv_prog_STRIP 2976if test -n "$STRIP"; then 2977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2978printf "%s\n" "$STRIP" >&6; } 2979else 2980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2981printf "%s\n" "no" >&6; } 2982fi 2983 2984 2985fi 2986if test -z "$ac_cv_prog_STRIP"; then 2987 ac_ct_STRIP=$STRIP 2988 # Extract the first word of "strip", so it can be a program name with args. 2989set dummy strip; ac_word=$2 2990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2991printf %s "checking for $ac_word... " >&6; } 2992if test ${ac_cv_prog_ac_ct_STRIP+y} 2993then : 2994 printf %s "(cached) " >&6 2995else case e in #( 2996 e) if test -n "$ac_ct_STRIP"; then 2997 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2998else 2999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3000for as_dir in $PATH 3001do 3002 IFS=$as_save_IFS 3003 case $as_dir in #((( 3004 '') as_dir=./ ;; 3005 */) ;; 3006 *) as_dir=$as_dir/ ;; 3007 esac 3008 for ac_exec_ext in '' $ac_executable_extensions; do 3009 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3010 ac_cv_prog_ac_ct_STRIP="strip" 3011 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3012 break 2 3013 fi 3014done 3015 done 3016IFS=$as_save_IFS 3017 3018fi ;; 3019esac 3020fi 3021ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3022if test -n "$ac_ct_STRIP"; then 3023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3024printf "%s\n" "$ac_ct_STRIP" >&6; } 3025else 3026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3027printf "%s\n" "no" >&6; } 3028fi 3029 3030 if test "x$ac_ct_STRIP" = x; then 3031 STRIP=":" 3032 else 3033 case $cross_compiling:$ac_tool_warned in 3034yes:) 3035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3036printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3037ac_tool_warned=yes ;; 3038esac 3039 STRIP=$ac_ct_STRIP 3040 fi 3041else 3042 STRIP="$ac_cv_prog_STRIP" 3043fi 3044 3045fi 3046INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3047 3048 3049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3050printf %s "checking for a race-free mkdir -p... " >&6; } 3051if test -z "$MKDIR_P"; then 3052 if test ${ac_cv_path_mkdir+y} 3053then : 3054 printf %s "(cached) " >&6 3055else case e in #( 3056 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3057for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3058do 3059 IFS=$as_save_IFS 3060 case $as_dir in #((( 3061 '') as_dir=./ ;; 3062 */) ;; 3063 *) as_dir=$as_dir/ ;; 3064 esac 3065 for ac_prog in mkdir gmkdir; do 3066 for ac_exec_ext in '' $ac_executable_extensions; do 3067 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3068 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3069 'mkdir ('*'coreutils) '* | \ 3070 *'BusyBox '* | \ 3071 'mkdir (fileutils) '4.1*) 3072 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3073 break 3;; 3074 esac 3075 done 3076 done 3077 done 3078IFS=$as_save_IFS 3079 ;; 3080esac 3081fi 3082 3083 test -d ./--version && rmdir ./--version 3084 if test ${ac_cv_path_mkdir+y}; then 3085 MKDIR_P="$ac_cv_path_mkdir -p" 3086 else 3087 # As a last resort, use plain mkdir -p, 3088 # in the hope it doesn't have the bugs of ancient mkdir. 3089 MKDIR_P='mkdir -p' 3090 fi 3091fi 3092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3093printf "%s\n" "$MKDIR_P" >&6; } 3094 3095for ac_prog in gawk mawk nawk awk 3096do 3097 # Extract the first word of "$ac_prog", so it can be a program name with args. 3098set dummy $ac_prog; ac_word=$2 3099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3100printf %s "checking for $ac_word... " >&6; } 3101if test ${ac_cv_prog_AWK+y} 3102then : 3103 printf %s "(cached) " >&6 3104else case e in #( 3105 e) if test -n "$AWK"; then 3106 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3107else 3108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3109for as_dir in $PATH 3110do 3111 IFS=$as_save_IFS 3112 case $as_dir in #((( 3113 '') as_dir=./ ;; 3114 */) ;; 3115 *) as_dir=$as_dir/ ;; 3116 esac 3117 for ac_exec_ext in '' $ac_executable_extensions; do 3118 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3119 ac_cv_prog_AWK="$ac_prog" 3120 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3121 break 2 3122 fi 3123done 3124 done 3125IFS=$as_save_IFS 3126 3127fi ;; 3128esac 3129fi 3130AWK=$ac_cv_prog_AWK 3131if test -n "$AWK"; then 3132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3133printf "%s\n" "$AWK" >&6; } 3134else 3135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3136printf "%s\n" "no" >&6; } 3137fi 3138 3139 3140 test -n "$AWK" && break 3141done 3142 3143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3144printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3145set x ${MAKE-make} 3146ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3147if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3148then : 3149 printf %s "(cached) " >&6 3150else case e in #( 3151 e) cat >conftest.make <<\_ACEOF 3152SHELL = /bin/sh 3153all: 3154 @echo '@@@%%%=$(MAKE)=@@@%%%' 3155_ACEOF 3156# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3157case `${MAKE-make} -f conftest.make 2>/dev/null` in 3158 *@@@%%%=?*=@@@%%%*) 3159 eval ac_cv_prog_make_${ac_make}_set=yes;; 3160 *) 3161 eval ac_cv_prog_make_${ac_make}_set=no;; 3162esac 3163rm -f conftest.make ;; 3164esac 3165fi 3166if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3168printf "%s\n" "yes" >&6; } 3169 SET_MAKE= 3170else 3171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3172printf "%s\n" "no" >&6; } 3173 SET_MAKE="MAKE=${MAKE-make}" 3174fi 3175 3176rm -rf .tst 2>/dev/null 3177mkdir .tst 2>/dev/null 3178if test -d .tst; then 3179 am__leading_dot=. 3180else 3181 am__leading_dot=_ 3182fi 3183rmdir .tst 2>/dev/null 3184 3185AM_DEFAULT_VERBOSITY=1 3186# Check whether --enable-silent-rules was given. 3187if test ${enable_silent_rules+y} 3188then : 3189 enableval=$enable_silent_rules; 3190fi 3191 3192am_make=${MAKE-make} 3193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3194printf %s "checking whether $am_make supports nested variables... " >&6; } 3195if test ${am_cv_make_support_nested_variables+y} 3196then : 3197 printf %s "(cached) " >&6 3198else case e in #( 3199 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 3200BAR0=false 3201BAR1=true 3202V=1 3203am__doit: 3204 @$(TRUE) 3205.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3206 am_cv_make_support_nested_variables=yes 3207else 3208 am_cv_make_support_nested_variables=no 3209fi ;; 3210esac 3211fi 3212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3213printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3214AM_BACKSLASH='\' 3215 3216am__rm_f_notfound= 3217if (rm -f && rm -fr && rm -rf) 2>/dev/null 3218then : 3219 3220else case e in #( 3221 e) am__rm_f_notfound='""' ;; 3222esac 3223fi 3224 3225 3226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 3227printf %s "checking xargs -n works... " >&6; } 3228if test ${am_cv_xargs_n_works+y} 3229then : 3230 printf %s "(cached) " >&6 3231else case e in #( 3232 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 32333" 3234then : 3235 am_cv_xargs_n_works=yes 3236else case e in #( 3237 e) am_cv_xargs_n_works=no ;; 3238esac 3239fi ;; 3240esac 3241fi 3242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 3243printf "%s\n" "$am_cv_xargs_n_works" >&6; } 3244if test "$am_cv_xargs_n_works" = yes 3245then : 3246 am__xargs_n='xargs -n' 3247else case e in #( 3248 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 3249 ;; 3250esac 3251fi 3252 3253if test "`cd $srcdir && pwd`" != "`pwd`"; then 3254 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3255 # is not polluted with repeated "-I." 3256 am__isrc=' -I$(srcdir)' 3257 # test to see if srcdir already configured 3258 if test -f $srcdir/config.status; then 3259 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3260 fi 3261fi 3262 3263# test whether we have cygpath 3264if test -z "$CYGPATH_W"; then 3265 if (cygpath --version) >/dev/null 2>/dev/null; then 3266 CYGPATH_W='cygpath -w' 3267 else 3268 CYGPATH_W=echo 3269 fi 3270fi 3271 3272 3273# Define the identity of the package. 3274 PACKAGE='fonttosfnt' 3275 VERSION='1.2.4' 3276 3277 3278printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3279 3280 3281printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3282 3283# Some tools Automake needs. 3284 3285ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3286 3287 3288AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3289 3290 3291AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3292 3293 3294AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3295 3296 3297MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3298 3299# For better backward compatibility. To be removed once Automake 1.9.x 3300# dies out for good. For more background, see: 3301# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3302# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3303mkdir_p='$(MKDIR_P)' 3304 3305# We need awk for the "check" target (and possibly the TAP driver). The 3306# system "awk" is bad on some platforms. 3307# Always define AMTAR for backward compatibility. Yes, it's still used 3308# in the wild :-( We should find a proper way to deprecate it ... 3309AMTAR='$${TAR-tar}' 3310 3311 3312# We'll loop over all known methods to create a tar archive until one works. 3313_am_tools='gnutar pax cpio none' 3314 3315am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3316 3317 3318 3319 3320 3321# Variables for tags utilities; see am/tags.am 3322if test -z "$CTAGS"; then 3323 CTAGS=ctags 3324fi 3325 3326if test -z "$ETAGS"; then 3327 ETAGS=etags 3328fi 3329 3330if test -z "$CSCOPE"; then 3331 CSCOPE=cscope 3332fi 3333 3334 3335 3336 3337 3338 3339 3340 3341# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362DEPDIR="${am__leading_dot}deps" 3363 3364ac_config_commands="$ac_config_commands depfiles" 3365 3366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3367printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3368cat > confinc.mk << 'END' 3369am__doit: 3370 @echo this is the am__doit target >confinc.out 3371.PHONY: am__doit 3372END 3373am__include="#" 3374am__quote= 3375# BSD make does it like this. 3376echo '.include "confinc.mk" # ignored' > confmf.BSD 3377# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3378echo 'include confinc.mk # ignored' > confmf.GNU 3379_am_result=no 3380for s in GNU BSD; do 3381 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3382 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3383 ac_status=$? 3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3385 (exit $ac_status); } 3386 case $?:`cat confinc.out 2>/dev/null` in #( 3387 '0:this is the am__doit target') : 3388 case $s in #( 3389 BSD) : 3390 am__include='.include' am__quote='"' ;; #( 3391 *) : 3392 am__include='include' am__quote='' ;; 3393esac ;; #( 3394 *) : 3395 ;; 3396esac 3397 if test "$am__include" != "#"; then 3398 _am_result="yes ($s style)" 3399 break 3400 fi 3401done 3402rm -f confinc.* confmf.* 3403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3404printf "%s\n" "${_am_result}" >&6; } 3405 3406# Check whether --enable-dependency-tracking was given. 3407if test ${enable_dependency_tracking+y} 3408then : 3409 enableval=$enable_dependency_tracking; 3410fi 3411 3412if test "x$enable_dependency_tracking" != xno; then 3413 am_depcomp="$ac_aux_dir/depcomp" 3414 AMDEPBACKSLASH='\' 3415 am__nodep='_no' 3416fi 3417 if test "x$enable_dependency_tracking" != xno; then 3418 AMDEP_TRUE= 3419 AMDEP_FALSE='#' 3420else 3421 AMDEP_TRUE='#' 3422 AMDEP_FALSE= 3423fi 3424 3425 3426ac_ext=c 3427ac_cpp='$CPP $CPPFLAGS' 3428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3430ac_compiler_gnu=$ac_cv_c_compiler_gnu 3431if test -n "$ac_tool_prefix"; then 3432 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3433set dummy ${ac_tool_prefix}gcc; ac_word=$2 3434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3435printf %s "checking for $ac_word... " >&6; } 3436if test ${ac_cv_prog_CC+y} 3437then : 3438 printf %s "(cached) " >&6 3439else case e in #( 3440 e) if test -n "$CC"; then 3441 ac_cv_prog_CC="$CC" # Let the user override the test. 3442else 3443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3444for as_dir in $PATH 3445do 3446 IFS=$as_save_IFS 3447 case $as_dir in #((( 3448 '') as_dir=./ ;; 3449 */) ;; 3450 *) as_dir=$as_dir/ ;; 3451 esac 3452 for ac_exec_ext in '' $ac_executable_extensions; do 3453 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3454 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3456 break 2 3457 fi 3458done 3459 done 3460IFS=$as_save_IFS 3461 3462fi ;; 3463esac 3464fi 3465CC=$ac_cv_prog_CC 3466if test -n "$CC"; then 3467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3468printf "%s\n" "$CC" >&6; } 3469else 3470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3471printf "%s\n" "no" >&6; } 3472fi 3473 3474 3475fi 3476if test -z "$ac_cv_prog_CC"; then 3477 ac_ct_CC=$CC 3478 # Extract the first word of "gcc", so it can be a program name with args. 3479set dummy gcc; ac_word=$2 3480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3481printf %s "checking for $ac_word... " >&6; } 3482if test ${ac_cv_prog_ac_ct_CC+y} 3483then : 3484 printf %s "(cached) " >&6 3485else case e in #( 3486 e) if test -n "$ac_ct_CC"; then 3487 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3488else 3489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3490for as_dir in $PATH 3491do 3492 IFS=$as_save_IFS 3493 case $as_dir in #((( 3494 '') as_dir=./ ;; 3495 */) ;; 3496 *) as_dir=$as_dir/ ;; 3497 esac 3498 for ac_exec_ext in '' $ac_executable_extensions; do 3499 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3500 ac_cv_prog_ac_ct_CC="gcc" 3501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3502 break 2 3503 fi 3504done 3505 done 3506IFS=$as_save_IFS 3507 3508fi ;; 3509esac 3510fi 3511ac_ct_CC=$ac_cv_prog_ac_ct_CC 3512if test -n "$ac_ct_CC"; then 3513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3514printf "%s\n" "$ac_ct_CC" >&6; } 3515else 3516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3517printf "%s\n" "no" >&6; } 3518fi 3519 3520 if test "x$ac_ct_CC" = x; then 3521 CC="" 3522 else 3523 case $cross_compiling:$ac_tool_warned in 3524yes:) 3525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3526printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3527ac_tool_warned=yes ;; 3528esac 3529 CC=$ac_ct_CC 3530 fi 3531else 3532 CC="$ac_cv_prog_CC" 3533fi 3534 3535if test -z "$CC"; then 3536 if test -n "$ac_tool_prefix"; then 3537 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3538set dummy ${ac_tool_prefix}cc; ac_word=$2 3539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3540printf %s "checking for $ac_word... " >&6; } 3541if test ${ac_cv_prog_CC+y} 3542then : 3543 printf %s "(cached) " >&6 3544else case e in #( 3545 e) if test -n "$CC"; then 3546 ac_cv_prog_CC="$CC" # Let the user override the test. 3547else 3548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3549for as_dir in $PATH 3550do 3551 IFS=$as_save_IFS 3552 case $as_dir in #((( 3553 '') as_dir=./ ;; 3554 */) ;; 3555 *) as_dir=$as_dir/ ;; 3556 esac 3557 for ac_exec_ext in '' $ac_executable_extensions; do 3558 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3559 ac_cv_prog_CC="${ac_tool_prefix}cc" 3560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3561 break 2 3562 fi 3563done 3564 done 3565IFS=$as_save_IFS 3566 3567fi ;; 3568esac 3569fi 3570CC=$ac_cv_prog_CC 3571if test -n "$CC"; then 3572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3573printf "%s\n" "$CC" >&6; } 3574else 3575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3576printf "%s\n" "no" >&6; } 3577fi 3578 3579 3580 fi 3581fi 3582if test -z "$CC"; then 3583 # Extract the first word of "cc", so it can be a program name with args. 3584set dummy cc; ac_word=$2 3585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3586printf %s "checking for $ac_word... " >&6; } 3587if test ${ac_cv_prog_CC+y} 3588then : 3589 printf %s "(cached) " >&6 3590else case e in #( 3591 e) if test -n "$CC"; then 3592 ac_cv_prog_CC="$CC" # Let the user override the test. 3593else 3594 ac_prog_rejected=no 3595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3596for as_dir in $PATH 3597do 3598 IFS=$as_save_IFS 3599 case $as_dir in #((( 3600 '') as_dir=./ ;; 3601 */) ;; 3602 *) as_dir=$as_dir/ ;; 3603 esac 3604 for ac_exec_ext in '' $ac_executable_extensions; do 3605 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3606 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3607 ac_prog_rejected=yes 3608 continue 3609 fi 3610 ac_cv_prog_CC="cc" 3611 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3612 break 2 3613 fi 3614done 3615 done 3616IFS=$as_save_IFS 3617 3618if test $ac_prog_rejected = yes; then 3619 # We found a bogon in the path, so make sure we never use it. 3620 set dummy $ac_cv_prog_CC 3621 shift 3622 if test $# != 0; then 3623 # We chose a different compiler from the bogus one. 3624 # However, it has the same basename, so the bogon will be chosen 3625 # first if we set CC to just the basename; use the full file name. 3626 shift 3627 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3628 fi 3629fi 3630fi ;; 3631esac 3632fi 3633CC=$ac_cv_prog_CC 3634if test -n "$CC"; then 3635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3636printf "%s\n" "$CC" >&6; } 3637else 3638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3639printf "%s\n" "no" >&6; } 3640fi 3641 3642 3643fi 3644if test -z "$CC"; then 3645 if test -n "$ac_tool_prefix"; then 3646 for ac_prog in cl.exe 3647 do 3648 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3649set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3651printf %s "checking for $ac_word... " >&6; } 3652if test ${ac_cv_prog_CC+y} 3653then : 3654 printf %s "(cached) " >&6 3655else case e in #( 3656 e) if test -n "$CC"; then 3657 ac_cv_prog_CC="$CC" # Let the user override the test. 3658else 3659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3660for as_dir in $PATH 3661do 3662 IFS=$as_save_IFS 3663 case $as_dir in #((( 3664 '') as_dir=./ ;; 3665 */) ;; 3666 *) as_dir=$as_dir/ ;; 3667 esac 3668 for ac_exec_ext in '' $ac_executable_extensions; do 3669 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3670 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3672 break 2 3673 fi 3674done 3675 done 3676IFS=$as_save_IFS 3677 3678fi ;; 3679esac 3680fi 3681CC=$ac_cv_prog_CC 3682if test -n "$CC"; then 3683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3684printf "%s\n" "$CC" >&6; } 3685else 3686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3687printf "%s\n" "no" >&6; } 3688fi 3689 3690 3691 test -n "$CC" && break 3692 done 3693fi 3694if test -z "$CC"; then 3695 ac_ct_CC=$CC 3696 for ac_prog in cl.exe 3697do 3698 # Extract the first word of "$ac_prog", so it can be a program name with args. 3699set dummy $ac_prog; ac_word=$2 3700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3701printf %s "checking for $ac_word... " >&6; } 3702if test ${ac_cv_prog_ac_ct_CC+y} 3703then : 3704 printf %s "(cached) " >&6 3705else case e in #( 3706 e) if test -n "$ac_ct_CC"; then 3707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3708else 3709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3710for as_dir in $PATH 3711do 3712 IFS=$as_save_IFS 3713 case $as_dir in #((( 3714 '') as_dir=./ ;; 3715 */) ;; 3716 *) as_dir=$as_dir/ ;; 3717 esac 3718 for ac_exec_ext in '' $ac_executable_extensions; do 3719 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3720 ac_cv_prog_ac_ct_CC="$ac_prog" 3721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3722 break 2 3723 fi 3724done 3725 done 3726IFS=$as_save_IFS 3727 3728fi ;; 3729esac 3730fi 3731ac_ct_CC=$ac_cv_prog_ac_ct_CC 3732if test -n "$ac_ct_CC"; then 3733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3734printf "%s\n" "$ac_ct_CC" >&6; } 3735else 3736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3737printf "%s\n" "no" >&6; } 3738fi 3739 3740 3741 test -n "$ac_ct_CC" && break 3742done 3743 3744 if test "x$ac_ct_CC" = x; then 3745 CC="" 3746 else 3747 case $cross_compiling:$ac_tool_warned in 3748yes:) 3749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3750printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3751ac_tool_warned=yes ;; 3752esac 3753 CC=$ac_ct_CC 3754 fi 3755fi 3756 3757fi 3758if test -z "$CC"; then 3759 if test -n "$ac_tool_prefix"; then 3760 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3761set dummy ${ac_tool_prefix}clang; ac_word=$2 3762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3763printf %s "checking for $ac_word... " >&6; } 3764if test ${ac_cv_prog_CC+y} 3765then : 3766 printf %s "(cached) " >&6 3767else case e in #( 3768 e) if test -n "$CC"; then 3769 ac_cv_prog_CC="$CC" # Let the user override the test. 3770else 3771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3772for as_dir in $PATH 3773do 3774 IFS=$as_save_IFS 3775 case $as_dir in #((( 3776 '') as_dir=./ ;; 3777 */) ;; 3778 *) as_dir=$as_dir/ ;; 3779 esac 3780 for ac_exec_ext in '' $ac_executable_extensions; do 3781 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3782 ac_cv_prog_CC="${ac_tool_prefix}clang" 3783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3784 break 2 3785 fi 3786done 3787 done 3788IFS=$as_save_IFS 3789 3790fi ;; 3791esac 3792fi 3793CC=$ac_cv_prog_CC 3794if test -n "$CC"; then 3795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3796printf "%s\n" "$CC" >&6; } 3797else 3798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3799printf "%s\n" "no" >&6; } 3800fi 3801 3802 3803fi 3804if test -z "$ac_cv_prog_CC"; then 3805 ac_ct_CC=$CC 3806 # Extract the first word of "clang", so it can be a program name with args. 3807set dummy clang; ac_word=$2 3808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3809printf %s "checking for $ac_word... " >&6; } 3810if test ${ac_cv_prog_ac_ct_CC+y} 3811then : 3812 printf %s "(cached) " >&6 3813else case e in #( 3814 e) if test -n "$ac_ct_CC"; then 3815 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3816else 3817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3818for as_dir in $PATH 3819do 3820 IFS=$as_save_IFS 3821 case $as_dir in #((( 3822 '') as_dir=./ ;; 3823 */) ;; 3824 *) as_dir=$as_dir/ ;; 3825 esac 3826 for ac_exec_ext in '' $ac_executable_extensions; do 3827 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3828 ac_cv_prog_ac_ct_CC="clang" 3829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3830 break 2 3831 fi 3832done 3833 done 3834IFS=$as_save_IFS 3835 3836fi ;; 3837esac 3838fi 3839ac_ct_CC=$ac_cv_prog_ac_ct_CC 3840if test -n "$ac_ct_CC"; then 3841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3842printf "%s\n" "$ac_ct_CC" >&6; } 3843else 3844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3845printf "%s\n" "no" >&6; } 3846fi 3847 3848 if test "x$ac_ct_CC" = x; then 3849 CC="" 3850 else 3851 case $cross_compiling:$ac_tool_warned in 3852yes:) 3853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3854printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3855ac_tool_warned=yes ;; 3856esac 3857 CC=$ac_ct_CC 3858 fi 3859else 3860 CC="$ac_cv_prog_CC" 3861fi 3862 3863fi 3864 3865 3866test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3867printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3868as_fn_error $? "no acceptable C compiler found in \$PATH 3869See 'config.log' for more details" "$LINENO" 5; } 3870 3871# Provide some information about the compiler. 3872printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3873set X $ac_compile 3874ac_compiler=$2 3875for ac_option in --version -v -V -qversion -version; do 3876 { { ac_try="$ac_compiler $ac_option >&5" 3877case "(($ac_try" in 3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3879 *) ac_try_echo=$ac_try;; 3880esac 3881eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3882printf "%s\n" "$ac_try_echo"; } >&5 3883 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3884 ac_status=$? 3885 if test -s conftest.err; then 3886 sed '10a\ 3887... rest of stderr output deleted ... 3888 10q' conftest.err >conftest.er1 3889 cat conftest.er1 >&5 3890 fi 3891 rm -f conftest.er1 conftest.err 3892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3893 test $ac_status = 0; } 3894done 3895 3896cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3897/* end confdefs.h. */ 3898 3899int 3900main (void) 3901{ 3902 3903 ; 3904 return 0; 3905} 3906_ACEOF 3907ac_clean_files_save=$ac_clean_files 3908ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3909# Try to create an executable without -o first, disregard a.out. 3910# It will help us diagnose broken compilers, and finding out an intuition 3911# of exeext. 3912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3913printf %s "checking whether the C compiler works... " >&6; } 3914ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3915 3916# The possible output files: 3917ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3918 3919ac_rmfiles= 3920for ac_file in $ac_files 3921do 3922 case $ac_file in 3923 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3924 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3925 esac 3926done 3927rm -f $ac_rmfiles 3928 3929if { { ac_try="$ac_link_default" 3930case "(($ac_try" in 3931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3932 *) ac_try_echo=$ac_try;; 3933esac 3934eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3935printf "%s\n" "$ac_try_echo"; } >&5 3936 (eval "$ac_link_default") 2>&5 3937 ac_status=$? 3938 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3939 test $ac_status = 0; } 3940then : 3941 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3942# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3943# in a Makefile. We should not override ac_cv_exeext if it was cached, 3944# so that the user can short-circuit this test for compilers unknown to 3945# Autoconf. 3946for ac_file in $ac_files '' 3947do 3948 test -f "$ac_file" || continue 3949 case $ac_file in 3950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3951 ;; 3952 [ab].out ) 3953 # We found the default executable, but exeext='' is most 3954 # certainly right. 3955 break;; 3956 *.* ) 3957 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3958 then :; else 3959 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3960 fi 3961 # We set ac_cv_exeext here because the later test for it is not 3962 # safe: cross compilers may not add the suffix if given an '-o' 3963 # argument, so we may need to know it at that point already. 3964 # Even if this section looks crufty: it has the advantage of 3965 # actually working. 3966 break;; 3967 * ) 3968 break;; 3969 esac 3970done 3971test "$ac_cv_exeext" = no && ac_cv_exeext= 3972 3973else case e in #( 3974 e) ac_file='' ;; 3975esac 3976fi 3977if test -z "$ac_file" 3978then : 3979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3980printf "%s\n" "no" >&6; } 3981printf "%s\n" "$as_me: failed program was:" >&5 3982sed 's/^/| /' conftest.$ac_ext >&5 3983 3984{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3985printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3986as_fn_error 77 "C compiler cannot create executables 3987See 'config.log' for more details" "$LINENO" 5; } 3988else case e in #( 3989 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3990printf "%s\n" "yes" >&6; } ;; 3991esac 3992fi 3993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3994printf %s "checking for C compiler default output file name... " >&6; } 3995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3996printf "%s\n" "$ac_file" >&6; } 3997ac_exeext=$ac_cv_exeext 3998 3999rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4000ac_clean_files=$ac_clean_files_save 4001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4002printf %s "checking for suffix of executables... " >&6; } 4003if { { ac_try="$ac_link" 4004case "(($ac_try" in 4005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4006 *) ac_try_echo=$ac_try;; 4007esac 4008eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4009printf "%s\n" "$ac_try_echo"; } >&5 4010 (eval "$ac_link") 2>&5 4011 ac_status=$? 4012 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4013 test $ac_status = 0; } 4014then : 4015 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 4016# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 4017# work properly (i.e., refer to 'conftest.exe'), while it won't with 4018# 'rm'. 4019for ac_file in conftest.exe conftest conftest.*; do 4020 test -f "$ac_file" || continue 4021 case $ac_file in 4022 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4023 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4024 break;; 4025 * ) break;; 4026 esac 4027done 4028else case e in #( 4029 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4030printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4031as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4032See 'config.log' for more details" "$LINENO" 5; } ;; 4033esac 4034fi 4035rm -f conftest conftest$ac_cv_exeext 4036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4037printf "%s\n" "$ac_cv_exeext" >&6; } 4038 4039rm -f conftest.$ac_ext 4040EXEEXT=$ac_cv_exeext 4041ac_exeext=$EXEEXT 4042cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4043/* end confdefs.h. */ 4044#include <stdio.h> 4045int 4046main (void) 4047{ 4048FILE *f = fopen ("conftest.out", "w"); 4049 if (!f) 4050 return 1; 4051 return ferror (f) || fclose (f) != 0; 4052 4053 ; 4054 return 0; 4055} 4056_ACEOF 4057ac_clean_files="$ac_clean_files conftest.out" 4058# Check that the compiler produces executables we can run. If not, either 4059# the compiler is broken, or we cross compile. 4060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4061printf %s "checking whether we are cross compiling... " >&6; } 4062if test "$cross_compiling" != yes; then 4063 { { ac_try="$ac_link" 4064case "(($ac_try" in 4065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4066 *) ac_try_echo=$ac_try;; 4067esac 4068eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4069printf "%s\n" "$ac_try_echo"; } >&5 4070 (eval "$ac_link") 2>&5 4071 ac_status=$? 4072 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4073 test $ac_status = 0; } 4074 if { ac_try='./conftest$ac_cv_exeext' 4075 { { case "(($ac_try" in 4076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4077 *) ac_try_echo=$ac_try;; 4078esac 4079eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4080printf "%s\n" "$ac_try_echo"; } >&5 4081 (eval "$ac_try") 2>&5 4082 ac_status=$? 4083 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4084 test $ac_status = 0; }; }; then 4085 cross_compiling=no 4086 else 4087 if test "$cross_compiling" = maybe; then 4088 cross_compiling=yes 4089 else 4090 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4091printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4092as_fn_error 77 "cannot run C compiled programs. 4093If you meant to cross compile, use '--host'. 4094See 'config.log' for more details" "$LINENO" 5; } 4095 fi 4096 fi 4097fi 4098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4099printf "%s\n" "$cross_compiling" >&6; } 4100 4101rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 4102 conftest.o conftest.obj conftest.out 4103ac_clean_files=$ac_clean_files_save 4104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4105printf %s "checking for suffix of object files... " >&6; } 4106if test ${ac_cv_objext+y} 4107then : 4108 printf %s "(cached) " >&6 4109else case e in #( 4110 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4111/* end confdefs.h. */ 4112 4113int 4114main (void) 4115{ 4116 4117 ; 4118 return 0; 4119} 4120_ACEOF 4121rm -f conftest.o conftest.obj 4122if { { ac_try="$ac_compile" 4123case "(($ac_try" in 4124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4125 *) ac_try_echo=$ac_try;; 4126esac 4127eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4128printf "%s\n" "$ac_try_echo"; } >&5 4129 (eval "$ac_compile") 2>&5 4130 ac_status=$? 4131 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4132 test $ac_status = 0; } 4133then : 4134 for ac_file in conftest.o conftest.obj conftest.*; do 4135 test -f "$ac_file" || continue; 4136 case $ac_file in 4137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4138 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4139 break;; 4140 esac 4141done 4142else case e in #( 4143 e) printf "%s\n" "$as_me: failed program was:" >&5 4144sed 's/^/| /' conftest.$ac_ext >&5 4145 4146{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4147printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4148as_fn_error $? "cannot compute suffix of object files: cannot compile 4149See 'config.log' for more details" "$LINENO" 5; } ;; 4150esac 4151fi 4152rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4153esac 4154fi 4155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4156printf "%s\n" "$ac_cv_objext" >&6; } 4157OBJEXT=$ac_cv_objext 4158ac_objext=$OBJEXT 4159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4160printf %s "checking whether the compiler supports GNU C... " >&6; } 4161if test ${ac_cv_c_compiler_gnu+y} 4162then : 4163 printf %s "(cached) " >&6 4164else case e in #( 4165 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4166/* end confdefs.h. */ 4167 4168int 4169main (void) 4170{ 4171#ifndef __GNUC__ 4172 choke me 4173#endif 4174 4175 ; 4176 return 0; 4177} 4178_ACEOF 4179if ac_fn_c_try_compile "$LINENO" 4180then : 4181 ac_compiler_gnu=yes 4182else case e in #( 4183 e) ac_compiler_gnu=no ;; 4184esac 4185fi 4186rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4187ac_cv_c_compiler_gnu=$ac_compiler_gnu 4188 ;; 4189esac 4190fi 4191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4192printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4193ac_compiler_gnu=$ac_cv_c_compiler_gnu 4194 4195if test $ac_compiler_gnu = yes; then 4196 GCC=yes 4197else 4198 GCC= 4199fi 4200ac_test_CFLAGS=${CFLAGS+y} 4201ac_save_CFLAGS=$CFLAGS 4202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4203printf %s "checking whether $CC accepts -g... " >&6; } 4204if test ${ac_cv_prog_cc_g+y} 4205then : 4206 printf %s "(cached) " >&6 4207else case e in #( 4208 e) ac_save_c_werror_flag=$ac_c_werror_flag 4209 ac_c_werror_flag=yes 4210 ac_cv_prog_cc_g=no 4211 CFLAGS="-g" 4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4213/* end confdefs.h. */ 4214 4215int 4216main (void) 4217{ 4218 4219 ; 4220 return 0; 4221} 4222_ACEOF 4223if ac_fn_c_try_compile "$LINENO" 4224then : 4225 ac_cv_prog_cc_g=yes 4226else case e in #( 4227 e) CFLAGS="" 4228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4229/* end confdefs.h. */ 4230 4231int 4232main (void) 4233{ 4234 4235 ; 4236 return 0; 4237} 4238_ACEOF 4239if ac_fn_c_try_compile "$LINENO" 4240then : 4241 4242else case e in #( 4243 e) ac_c_werror_flag=$ac_save_c_werror_flag 4244 CFLAGS="-g" 4245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4246/* end confdefs.h. */ 4247 4248int 4249main (void) 4250{ 4251 4252 ; 4253 return 0; 4254} 4255_ACEOF 4256if ac_fn_c_try_compile "$LINENO" 4257then : 4258 ac_cv_prog_cc_g=yes 4259fi 4260rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4261esac 4262fi 4263rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4264esac 4265fi 4266rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4267 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4268esac 4269fi 4270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4271printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4272if test $ac_test_CFLAGS; then 4273 CFLAGS=$ac_save_CFLAGS 4274elif test $ac_cv_prog_cc_g = yes; then 4275 if test "$GCC" = yes; then 4276 CFLAGS="-g -O2" 4277 else 4278 CFLAGS="-g" 4279 fi 4280else 4281 if test "$GCC" = yes; then 4282 CFLAGS="-O2" 4283 else 4284 CFLAGS= 4285 fi 4286fi 4287ac_prog_cc_stdc=no 4288if test x$ac_prog_cc_stdc = xno 4289then : 4290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4291printf %s "checking for $CC option to enable C11 features... " >&6; } 4292if test ${ac_cv_prog_cc_c11+y} 4293then : 4294 printf %s "(cached) " >&6 4295else case e in #( 4296 e) ac_cv_prog_cc_c11=no 4297ac_save_CC=$CC 4298cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4299/* end confdefs.h. */ 4300$ac_c_conftest_c11_program 4301_ACEOF 4302for ac_arg in '' -std=gnu11 4303do 4304 CC="$ac_save_CC $ac_arg" 4305 if ac_fn_c_try_compile "$LINENO" 4306then : 4307 ac_cv_prog_cc_c11=$ac_arg 4308fi 4309rm -f core conftest.err conftest.$ac_objext conftest.beam 4310 test "x$ac_cv_prog_cc_c11" != "xno" && break 4311done 4312rm -f conftest.$ac_ext 4313CC=$ac_save_CC ;; 4314esac 4315fi 4316 4317if test "x$ac_cv_prog_cc_c11" = xno 4318then : 4319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4320printf "%s\n" "unsupported" >&6; } 4321else case e in #( 4322 e) if test "x$ac_cv_prog_cc_c11" = x 4323then : 4324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4325printf "%s\n" "none needed" >&6; } 4326else case e in #( 4327 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4328printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4329 CC="$CC $ac_cv_prog_cc_c11" ;; 4330esac 4331fi 4332 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4333 ac_prog_cc_stdc=c11 ;; 4334esac 4335fi 4336fi 4337if test x$ac_prog_cc_stdc = xno 4338then : 4339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4340printf %s "checking for $CC option to enable C99 features... " >&6; } 4341if test ${ac_cv_prog_cc_c99+y} 4342then : 4343 printf %s "(cached) " >&6 4344else case e in #( 4345 e) ac_cv_prog_cc_c99=no 4346ac_save_CC=$CC 4347cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4348/* end confdefs.h. */ 4349$ac_c_conftest_c99_program 4350_ACEOF 4351for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4352do 4353 CC="$ac_save_CC $ac_arg" 4354 if ac_fn_c_try_compile "$LINENO" 4355then : 4356 ac_cv_prog_cc_c99=$ac_arg 4357fi 4358rm -f core conftest.err conftest.$ac_objext conftest.beam 4359 test "x$ac_cv_prog_cc_c99" != "xno" && break 4360done 4361rm -f conftest.$ac_ext 4362CC=$ac_save_CC ;; 4363esac 4364fi 4365 4366if test "x$ac_cv_prog_cc_c99" = xno 4367then : 4368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4369printf "%s\n" "unsupported" >&6; } 4370else case e in #( 4371 e) if test "x$ac_cv_prog_cc_c99" = x 4372then : 4373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4374printf "%s\n" "none needed" >&6; } 4375else case e in #( 4376 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4377printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4378 CC="$CC $ac_cv_prog_cc_c99" ;; 4379esac 4380fi 4381 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4382 ac_prog_cc_stdc=c99 ;; 4383esac 4384fi 4385fi 4386if test x$ac_prog_cc_stdc = xno 4387then : 4388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4389printf %s "checking for $CC option to enable C89 features... " >&6; } 4390if test ${ac_cv_prog_cc_c89+y} 4391then : 4392 printf %s "(cached) " >&6 4393else case e in #( 4394 e) ac_cv_prog_cc_c89=no 4395ac_save_CC=$CC 4396cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4397/* end confdefs.h. */ 4398$ac_c_conftest_c89_program 4399_ACEOF 4400for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4401do 4402 CC="$ac_save_CC $ac_arg" 4403 if ac_fn_c_try_compile "$LINENO" 4404then : 4405 ac_cv_prog_cc_c89=$ac_arg 4406fi 4407rm -f core conftest.err conftest.$ac_objext conftest.beam 4408 test "x$ac_cv_prog_cc_c89" != "xno" && break 4409done 4410rm -f conftest.$ac_ext 4411CC=$ac_save_CC ;; 4412esac 4413fi 4414 4415if test "x$ac_cv_prog_cc_c89" = xno 4416then : 4417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4418printf "%s\n" "unsupported" >&6; } 4419else case e in #( 4420 e) if test "x$ac_cv_prog_cc_c89" = x 4421then : 4422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4423printf "%s\n" "none needed" >&6; } 4424else case e in #( 4425 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4426printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4427 CC="$CC $ac_cv_prog_cc_c89" ;; 4428esac 4429fi 4430 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4431 ac_prog_cc_stdc=c89 ;; 4432esac 4433fi 4434fi 4435 4436ac_ext=c 4437ac_cpp='$CPP $CPPFLAGS' 4438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4440ac_compiler_gnu=$ac_cv_c_compiler_gnu 4441 4442 4443 ac_ext=c 4444ac_cpp='$CPP $CPPFLAGS' 4445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4447ac_compiler_gnu=$ac_cv_c_compiler_gnu 4448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4449printf %s "checking whether $CC understands -c and -o together... " >&6; } 4450if test ${am_cv_prog_cc_c_o+y} 4451then : 4452 printf %s "(cached) " >&6 4453else case e in #( 4454 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4455/* end confdefs.h. */ 4456 4457int 4458main (void) 4459{ 4460 4461 ; 4462 return 0; 4463} 4464_ACEOF 4465 # Make sure it works both with $CC and with simple cc. 4466 # Following AC_PROG_CC_C_O, we do the test twice because some 4467 # compilers refuse to overwrite an existing .o file with -o, 4468 # though they will create one. 4469 am_cv_prog_cc_c_o=yes 4470 for am_i in 1 2; do 4471 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4472 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4473 ac_status=$? 4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4475 (exit $ac_status); } \ 4476 && test -f conftest2.$ac_objext; then 4477 : OK 4478 else 4479 am_cv_prog_cc_c_o=no 4480 break 4481 fi 4482 done 4483 rm -f core conftest* 4484 unset am_i ;; 4485esac 4486fi 4487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4488printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4489if test "$am_cv_prog_cc_c_o" != yes; then 4490 # Losing compiler, so override with the script. 4491 # FIXME: It is wrong to rewrite CC. 4492 # But if we don't then we get into trouble of one sort or another. 4493 # A longer-term fix would be to have automake use am__CC in this case, 4494 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4495 CC="$am_aux_dir/compile $CC" 4496fi 4497ac_ext=c 4498ac_cpp='$CPP $CPPFLAGS' 4499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4501ac_compiler_gnu=$ac_cv_c_compiler_gnu 4502 4503 4504depcc="$CC" am_compiler_list= 4505 4506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4507printf %s "checking dependency style of $depcc... " >&6; } 4508if test ${am_cv_CC_dependencies_compiler_type+y} 4509then : 4510 printf %s "(cached) " >&6 4511else case e in #( 4512 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4513 # We make a subdir and do the tests there. Otherwise we can end up 4514 # making bogus files that we don't know about and never remove. For 4515 # instance it was reported that on HP-UX the gcc test will end up 4516 # making a dummy file named 'D' -- because '-MD' means "put the output 4517 # in D". 4518 rm -rf conftest.dir 4519 mkdir conftest.dir 4520 # Copy depcomp to subdir because otherwise we won't find it if we're 4521 # using a relative directory. 4522 cp "$am_depcomp" conftest.dir 4523 cd conftest.dir 4524 # We will build objects and dependencies in a subdirectory because 4525 # it helps to detect inapplicable dependency modes. For instance 4526 # both Tru64's cc and ICC support -MD to output dependencies as a 4527 # side effect of compilation, but ICC will put the dependencies in 4528 # the current directory while Tru64 will put them in the object 4529 # directory. 4530 mkdir sub 4531 4532 am_cv_CC_dependencies_compiler_type=none 4533 if test "$am_compiler_list" = ""; then 4534 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4535 fi 4536 am__universal=false 4537 case " $depcc " in #( 4538 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4539 esac 4540 4541 for depmode in $am_compiler_list; do 4542 # Setup a source with many dependencies, because some compilers 4543 # like to wrap large dependency lists on column 80 (with \), and 4544 # we should not choose a depcomp mode which is confused by this. 4545 # 4546 # We need to recreate these files for each test, as the compiler may 4547 # overwrite some of them when testing with obscure command lines. 4548 # This happens at least with the AIX C compiler. 4549 : > sub/conftest.c 4550 for i in 1 2 3 4 5 6; do 4551 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4552 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4553 # Solaris 10 /bin/sh. 4554 echo '/* dummy */' > sub/conftst$i.h 4555 done 4556 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4557 4558 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4559 # mode. It turns out that the SunPro C++ compiler does not properly 4560 # handle '-M -o', and we need to detect this. Also, some Intel 4561 # versions had trouble with output in subdirs. 4562 am__obj=sub/conftest.${OBJEXT-o} 4563 am__minus_obj="-o $am__obj" 4564 case $depmode in 4565 gcc) 4566 # This depmode causes a compiler race in universal mode. 4567 test "$am__universal" = false || continue 4568 ;; 4569 nosideeffect) 4570 # After this tag, mechanisms are not by side-effect, so they'll 4571 # only be used when explicitly requested. 4572 if test "x$enable_dependency_tracking" = xyes; then 4573 continue 4574 else 4575 break 4576 fi 4577 ;; 4578 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4579 # This compiler won't grok '-c -o', but also, the minuso test has 4580 # not run yet. These depmodes are late enough in the game, and 4581 # so weak that their functioning should not be impacted. 4582 am__obj=conftest.${OBJEXT-o} 4583 am__minus_obj= 4584 ;; 4585 none) break ;; 4586 esac 4587 if depmode=$depmode \ 4588 source=sub/conftest.c object=$am__obj \ 4589 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4590 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4591 >/dev/null 2>conftest.err && 4592 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4593 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4594 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4595 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4596 # icc doesn't choke on unknown options, it will just issue warnings 4597 # or remarks (even with -Werror). So we grep stderr for any message 4598 # that says an option was ignored or not supported. 4599 # When given -MP, icc 7.0 and 7.1 complain thus: 4600 # icc: Command line warning: ignoring option '-M'; no argument required 4601 # The diagnosis changed in icc 8.0: 4602 # icc: Command line remark: option '-MP' not supported 4603 if (grep 'ignoring option' conftest.err || 4604 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4605 am_cv_CC_dependencies_compiler_type=$depmode 4606 break 4607 fi 4608 fi 4609 done 4610 4611 cd .. 4612 rm -rf conftest.dir 4613else 4614 am_cv_CC_dependencies_compiler_type=none 4615fi 4616 ;; 4617esac 4618fi 4619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4620printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4621CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4622 4623 if 4624 test "x$enable_dependency_tracking" != xno \ 4625 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4626 am__fastdepCC_TRUE= 4627 am__fastdepCC_FALSE='#' 4628else 4629 am__fastdepCC_TRUE='#' 4630 am__fastdepCC_FALSE= 4631fi 4632 4633 4634 4635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4636printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4637if test ${ac_cv_c_undeclared_builtin_options+y} 4638then : 4639 printf %s "(cached) " >&6 4640else case e in #( 4641 e) ac_save_CFLAGS=$CFLAGS 4642 ac_cv_c_undeclared_builtin_options='cannot detect' 4643 for ac_arg in '' -fno-builtin; do 4644 CFLAGS="$ac_save_CFLAGS $ac_arg" 4645 # This test program should *not* compile successfully. 4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4647/* end confdefs.h. */ 4648 4649int 4650main (void) 4651{ 4652(void) strchr; 4653 ; 4654 return 0; 4655} 4656_ACEOF 4657if ac_fn_c_try_compile "$LINENO" 4658then : 4659 4660else case e in #( 4661 e) # This test program should compile successfully. 4662 # No library function is consistently available on 4663 # freestanding implementations, so test against a dummy 4664 # declaration. Include always-available headers on the 4665 # off chance that they somehow elicit warnings. 4666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4667/* end confdefs.h. */ 4668#include <float.h> 4669#include <limits.h> 4670#include <stdarg.h> 4671#include <stddef.h> 4672extern void ac_decl (int, char *); 4673 4674int 4675main (void) 4676{ 4677(void) ac_decl (0, (char *) 0); 4678 (void) ac_decl; 4679 4680 ; 4681 return 0; 4682} 4683_ACEOF 4684if ac_fn_c_try_compile "$LINENO" 4685then : 4686 if test x"$ac_arg" = x 4687then : 4688 ac_cv_c_undeclared_builtin_options='none needed' 4689else case e in #( 4690 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 4691esac 4692fi 4693 break 4694fi 4695rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4696esac 4697fi 4698rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4699 done 4700 CFLAGS=$ac_save_CFLAGS 4701 ;; 4702esac 4703fi 4704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4705printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4706 case $ac_cv_c_undeclared_builtin_options in #( 4707 'cannot detect') : 4708 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4709printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4710as_fn_error $? "cannot make $CC report undeclared builtins 4711See 'config.log' for more details" "$LINENO" 5; } ;; #( 4712 'none needed') : 4713 ac_c_undeclared_builtin_options='' ;; #( 4714 *) : 4715 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4716esac 4717 4718ac_header= ac_cache= 4719for ac_item in $ac_header_c_list 4720do 4721 if test $ac_cache; then 4722 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4723 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4724 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4725 fi 4726 ac_header= ac_cache= 4727 elif test $ac_header; then 4728 ac_cache=$ac_item 4729 else 4730 ac_header=$ac_item 4731 fi 4732done 4733 4734 4735 4736 4737 4738 4739 4740 4741if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4742then : 4743 4744printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4745 4746fi 4747 4748 4749 4750 4751ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4752if test "x$ac_cv_have_decl___clang__" = xyes 4753then : 4754 CLANGCC="yes" 4755else case e in #( 4756 e) CLANGCC="no" ;; 4757esac 4758fi 4759ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4760if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4761then : 4762 INTELCC="yes" 4763else case e in #( 4764 e) INTELCC="no" ;; 4765esac 4766fi 4767ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4768if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4769then : 4770 SUNCC="yes" 4771else case e in #( 4772 e) SUNCC="no" ;; 4773esac 4774fi 4775 4776 4777 4778 4779 4780 4781 4782 4783if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4784 if test -n "$ac_tool_prefix"; then 4785 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4786set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4788printf %s "checking for $ac_word... " >&6; } 4789if test ${ac_cv_path_PKG_CONFIG+y} 4790then : 4791 printf %s "(cached) " >&6 4792else case e in #( 4793 e) case $PKG_CONFIG in 4794 [\\/]* | ?:[\\/]*) 4795 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4796 ;; 4797 *) 4798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4799for as_dir in $PATH 4800do 4801 IFS=$as_save_IFS 4802 case $as_dir in #((( 4803 '') as_dir=./ ;; 4804 */) ;; 4805 *) as_dir=$as_dir/ ;; 4806 esac 4807 for ac_exec_ext in '' $ac_executable_extensions; do 4808 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4809 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4811 break 2 4812 fi 4813done 4814 done 4815IFS=$as_save_IFS 4816 4817 ;; 4818esac ;; 4819esac 4820fi 4821PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4822if test -n "$PKG_CONFIG"; then 4823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4824printf "%s\n" "$PKG_CONFIG" >&6; } 4825else 4826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4827printf "%s\n" "no" >&6; } 4828fi 4829 4830 4831fi 4832if test -z "$ac_cv_path_PKG_CONFIG"; then 4833 ac_pt_PKG_CONFIG=$PKG_CONFIG 4834 # Extract the first word of "pkg-config", so it can be a program name with args. 4835set dummy pkg-config; ac_word=$2 4836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4837printf %s "checking for $ac_word... " >&6; } 4838if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4839then : 4840 printf %s "(cached) " >&6 4841else case e in #( 4842 e) case $ac_pt_PKG_CONFIG in 4843 [\\/]* | ?:[\\/]*) 4844 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4845 ;; 4846 *) 4847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4848for as_dir in $PATH 4849do 4850 IFS=$as_save_IFS 4851 case $as_dir in #((( 4852 '') as_dir=./ ;; 4853 */) ;; 4854 *) as_dir=$as_dir/ ;; 4855 esac 4856 for ac_exec_ext in '' $ac_executable_extensions; do 4857 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4858 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4860 break 2 4861 fi 4862done 4863 done 4864IFS=$as_save_IFS 4865 4866 ;; 4867esac ;; 4868esac 4869fi 4870ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4871if test -n "$ac_pt_PKG_CONFIG"; then 4872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4873printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4874else 4875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4876printf "%s\n" "no" >&6; } 4877fi 4878 4879 if test "x$ac_pt_PKG_CONFIG" = x; then 4880 PKG_CONFIG="" 4881 else 4882 case $cross_compiling:$ac_tool_warned in 4883yes:) 4884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4885printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4886ac_tool_warned=yes ;; 4887esac 4888 PKG_CONFIG=$ac_pt_PKG_CONFIG 4889 fi 4890else 4891 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4892fi 4893 4894fi 4895if test -n "$PKG_CONFIG"; then 4896 _pkg_min_version=0.9.0 4897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4898printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4899 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4901printf "%s\n" "yes" >&6; } 4902 else 4903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4904printf "%s\n" "no" >&6; } 4905 PKG_CONFIG="" 4906 fi 4907fi 4908 4909 4910 # Make sure we can run config.sub. 4911$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4912 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4913 4914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4915printf %s "checking build system type... " >&6; } 4916if test ${ac_cv_build+y} 4917then : 4918 printf %s "(cached) " >&6 4919else case e in #( 4920 e) ac_build_alias=$build_alias 4921test "x$ac_build_alias" = x && 4922 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4923test "x$ac_build_alias" = x && 4924 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4925ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4926 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4927 ;; 4928esac 4929fi 4930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4931printf "%s\n" "$ac_cv_build" >&6; } 4932case $ac_cv_build in 4933*-*-*) ;; 4934*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4935esac 4936build=$ac_cv_build 4937ac_save_IFS=$IFS; IFS='-' 4938set x $ac_cv_build 4939shift 4940build_cpu=$1 4941build_vendor=$2 4942shift; shift 4943# Remember, the first character of IFS is used to create $*, 4944# except with old shells: 4945build_os=$* 4946IFS=$ac_save_IFS 4947case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4948 4949 4950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4951printf %s "checking host system type... " >&6; } 4952if test ${ac_cv_host+y} 4953then : 4954 printf %s "(cached) " >&6 4955else case e in #( 4956 e) if test "x$host_alias" = x; then 4957 ac_cv_host=$ac_cv_build 4958else 4959 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4960 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4961fi 4962 ;; 4963esac 4964fi 4965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4966printf "%s\n" "$ac_cv_host" >&6; } 4967case $ac_cv_host in 4968*-*-*) ;; 4969*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4970esac 4971host=$ac_cv_host 4972ac_save_IFS=$IFS; IFS='-' 4973set x $ac_cv_host 4974shift 4975host_cpu=$1 4976host_vendor=$2 4977shift; shift 4978# Remember, the first character of IFS is used to create $*, 4979# except with old shells: 4980host_os=$* 4981IFS=$ac_save_IFS 4982case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4983 4984 4985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4986printf %s "checking for a sed that does not truncate output... " >&6; } 4987if test ${ac_cv_path_SED+y} 4988then : 4989 printf %s "(cached) " >&6 4990else case e in #( 4991 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4992 for ac_i in 1 2 3 4 5 6 7; do 4993 ac_script="$ac_script$as_nl$ac_script" 4994 done 4995 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4996 { ac_script=; unset ac_script;} 4997 if test -z "$SED"; then 4998 ac_path_SED_found=false 4999 # Loop through the user's path and test for each of PROGNAME-LIST 5000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5001for as_dir in $PATH 5002do 5003 IFS=$as_save_IFS 5004 case $as_dir in #((( 5005 '') as_dir=./ ;; 5006 */) ;; 5007 *) as_dir=$as_dir/ ;; 5008 esac 5009 for ac_prog in sed gsed 5010 do 5011 for ac_exec_ext in '' $ac_executable_extensions; do 5012 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5013 as_fn_executable_p "$ac_path_SED" || continue 5014# Check for GNU ac_path_SED and select it if it is found. 5015 # Check for GNU $ac_path_SED 5016case `"$ac_path_SED" --version 2>&1` in #( 5017*GNU*) 5018 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5019#( 5020*) 5021 ac_count=0 5022 printf %s 0123456789 >"conftest.in" 5023 while : 5024 do 5025 cat "conftest.in" "conftest.in" >"conftest.tmp" 5026 mv "conftest.tmp" "conftest.in" 5027 cp "conftest.in" "conftest.nl" 5028 printf "%s\n" '' >> "conftest.nl" 5029 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5030 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5031 as_fn_arith $ac_count + 1 && ac_count=$as_val 5032 if test $ac_count -gt ${ac_path_SED_max-0}; then 5033 # Best one so far, save it but keep looking for a better one 5034 ac_cv_path_SED="$ac_path_SED" 5035 ac_path_SED_max=$ac_count 5036 fi 5037 # 10*(2^10) chars as input seems more than enough 5038 test $ac_count -gt 10 && break 5039 done 5040 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5041esac 5042 5043 $ac_path_SED_found && break 3 5044 done 5045 done 5046 done 5047IFS=$as_save_IFS 5048 if test -z "$ac_cv_path_SED"; then 5049 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5050 fi 5051else 5052 ac_cv_path_SED=$SED 5053fi 5054 ;; 5055esac 5056fi 5057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5058printf "%s\n" "$ac_cv_path_SED" >&6; } 5059 SED="$ac_cv_path_SED" 5060 rm -f conftest.sed 5061 5062 5063 5064 5065 5066 5067# Check whether --enable-selective-werror was given. 5068if test ${enable_selective_werror+y} 5069then : 5070 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5071else case e in #( 5072 e) SELECTIVE_WERROR=yes ;; 5073esac 5074fi 5075 5076 5077 5078 5079 5080# -v is too short to test reliably with XORG_TESTSET_CFLAG 5081if test "x$SUNCC" = "xyes"; then 5082 BASE_CFLAGS="-v" 5083else 5084 BASE_CFLAGS="" 5085fi 5086 5087# This chunk of warnings were those that existed in the legacy CWARNFLAGS 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101xorg_testset_save_CFLAGS="$CFLAGS" 5102 5103if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5106printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5107if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5108then : 5109 printf %s "(cached) " >&6 5110else case e in #( 5111 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5112/* end confdefs.h. */ 5113int i; 5114_ACEOF 5115if ac_fn_c_try_compile "$LINENO" 5116then : 5117 xorg_cv_cc_flag_unknown_warning_option=yes 5118else case e in #( 5119 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5120esac 5121fi 5122rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5123esac 5124fi 5125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5126printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5127 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5128 CFLAGS="$xorg_testset_save_CFLAGS" 5129fi 5130 5131if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5133 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5134 fi 5135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5137printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5138if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5139then : 5140 printf %s "(cached) " >&6 5141else case e in #( 5142 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5143/* end confdefs.h. */ 5144int i; 5145_ACEOF 5146if ac_fn_c_try_compile "$LINENO" 5147then : 5148 xorg_cv_cc_flag_unused_command_line_argument=yes 5149else case e in #( 5150 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5151esac 5152fi 5153rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5154esac 5155fi 5156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5157printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5158 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5159 CFLAGS="$xorg_testset_save_CFLAGS" 5160fi 5161 5162found="no" 5163 5164 if test $found = "no" ; then 5165 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5166 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5167 fi 5168 5169 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5171 fi 5172 5173 CFLAGS="$CFLAGS -Wall" 5174 5175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5176printf %s "checking if $CC supports -Wall... " >&6; } 5177 cacheid=xorg_cv_cc_flag__Wall 5178 if eval test \${$cacheid+y} 5179then : 5180 printf %s "(cached) " >&6 5181else case e in #( 5182 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5183/* end confdefs.h. */ 5184int i; 5185int 5186main (void) 5187{ 5188 5189 ; 5190 return 0; 5191} 5192_ACEOF 5193if ac_fn_c_try_link "$LINENO" 5194then : 5195 eval $cacheid=yes 5196else case e in #( 5197 e) eval $cacheid=no ;; 5198esac 5199fi 5200rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5201 conftest$ac_exeext conftest.$ac_ext ;; 5202esac 5203fi 5204 5205 5206 CFLAGS="$xorg_testset_save_CFLAGS" 5207 5208 eval supported=\$$cacheid 5209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5210printf "%s\n" "$supported" >&6; } 5211 if test "$supported" = "yes" ; then 5212 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5213 found="yes" 5214 fi 5215 fi 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231xorg_testset_save_CFLAGS="$CFLAGS" 5232 5233if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5236printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5237if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5238then : 5239 printf %s "(cached) " >&6 5240else case e in #( 5241 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5242/* end confdefs.h. */ 5243int i; 5244_ACEOF 5245if ac_fn_c_try_compile "$LINENO" 5246then : 5247 xorg_cv_cc_flag_unknown_warning_option=yes 5248else case e in #( 5249 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5250esac 5251fi 5252rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5253esac 5254fi 5255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5256printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5257 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5258 CFLAGS="$xorg_testset_save_CFLAGS" 5259fi 5260 5261if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5264 fi 5265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5267printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5268if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5269then : 5270 printf %s "(cached) " >&6 5271else case e in #( 5272 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5273/* end confdefs.h. */ 5274int i; 5275_ACEOF 5276if ac_fn_c_try_compile "$LINENO" 5277then : 5278 xorg_cv_cc_flag_unused_command_line_argument=yes 5279else case e in #( 5280 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5281esac 5282fi 5283rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5284esac 5285fi 5286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5287printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5288 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5289 CFLAGS="$xorg_testset_save_CFLAGS" 5290fi 5291 5292found="no" 5293 5294 if test $found = "no" ; then 5295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5297 fi 5298 5299 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5301 fi 5302 5303 CFLAGS="$CFLAGS -Wpointer-arith" 5304 5305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5306printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5307 cacheid=xorg_cv_cc_flag__Wpointer_arith 5308 if eval test \${$cacheid+y} 5309then : 5310 printf %s "(cached) " >&6 5311else case e in #( 5312 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5313/* end confdefs.h. */ 5314int i; 5315int 5316main (void) 5317{ 5318 5319 ; 5320 return 0; 5321} 5322_ACEOF 5323if ac_fn_c_try_link "$LINENO" 5324then : 5325 eval $cacheid=yes 5326else case e in #( 5327 e) eval $cacheid=no ;; 5328esac 5329fi 5330rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5331 conftest$ac_exeext conftest.$ac_ext ;; 5332esac 5333fi 5334 5335 5336 CFLAGS="$xorg_testset_save_CFLAGS" 5337 5338 eval supported=\$$cacheid 5339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5340printf "%s\n" "$supported" >&6; } 5341 if test "$supported" = "yes" ; then 5342 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5343 found="yes" 5344 fi 5345 fi 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361xorg_testset_save_CFLAGS="$CFLAGS" 5362 5363if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5364 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5366printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5367if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5368then : 5369 printf %s "(cached) " >&6 5370else case e in #( 5371 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5372/* end confdefs.h. */ 5373int i; 5374_ACEOF 5375if ac_fn_c_try_compile "$LINENO" 5376then : 5377 xorg_cv_cc_flag_unknown_warning_option=yes 5378else case e in #( 5379 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5380esac 5381fi 5382rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5383esac 5384fi 5385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5386printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5387 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5388 CFLAGS="$xorg_testset_save_CFLAGS" 5389fi 5390 5391if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5393 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5394 fi 5395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5397printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5398if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5399then : 5400 printf %s "(cached) " >&6 5401else case e in #( 5402 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5403/* end confdefs.h. */ 5404int i; 5405_ACEOF 5406if ac_fn_c_try_compile "$LINENO" 5407then : 5408 xorg_cv_cc_flag_unused_command_line_argument=yes 5409else case e in #( 5410 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5411esac 5412fi 5413rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5414esac 5415fi 5416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5417printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5418 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5419 CFLAGS="$xorg_testset_save_CFLAGS" 5420fi 5421 5422found="no" 5423 5424 if test $found = "no" ; then 5425 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5426 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5427 fi 5428 5429 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5431 fi 5432 5433 CFLAGS="$CFLAGS -Wmissing-declarations" 5434 5435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5436printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5437 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5438 if eval test \${$cacheid+y} 5439then : 5440 printf %s "(cached) " >&6 5441else case e in #( 5442 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5443/* end confdefs.h. */ 5444int i; 5445int 5446main (void) 5447{ 5448 5449 ; 5450 return 0; 5451} 5452_ACEOF 5453if ac_fn_c_try_link "$LINENO" 5454then : 5455 eval $cacheid=yes 5456else case e in #( 5457 e) eval $cacheid=no ;; 5458esac 5459fi 5460rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5461 conftest$ac_exeext conftest.$ac_ext ;; 5462esac 5463fi 5464 5465 5466 CFLAGS="$xorg_testset_save_CFLAGS" 5467 5468 eval supported=\$$cacheid 5469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5470printf "%s\n" "$supported" >&6; } 5471 if test "$supported" = "yes" ; then 5472 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5473 found="yes" 5474 fi 5475 fi 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491xorg_testset_save_CFLAGS="$CFLAGS" 5492 5493if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5494 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5496printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5497if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5498then : 5499 printf %s "(cached) " >&6 5500else case e in #( 5501 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5502/* end confdefs.h. */ 5503int i; 5504_ACEOF 5505if ac_fn_c_try_compile "$LINENO" 5506then : 5507 xorg_cv_cc_flag_unknown_warning_option=yes 5508else case e in #( 5509 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5510esac 5511fi 5512rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5513esac 5514fi 5515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5516printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5517 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5518 CFLAGS="$xorg_testset_save_CFLAGS" 5519fi 5520 5521if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5524 fi 5525 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5527printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5528if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5529then : 5530 printf %s "(cached) " >&6 5531else case e in #( 5532 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5533/* end confdefs.h. */ 5534int i; 5535_ACEOF 5536if ac_fn_c_try_compile "$LINENO" 5537then : 5538 xorg_cv_cc_flag_unused_command_line_argument=yes 5539else case e in #( 5540 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5541esac 5542fi 5543rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5544esac 5545fi 5546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5547printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5548 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5549 CFLAGS="$xorg_testset_save_CFLAGS" 5550fi 5551 5552found="no" 5553 5554 if test $found = "no" ; then 5555 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5556 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5557 fi 5558 5559 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5561 fi 5562 5563 CFLAGS="$CFLAGS -Wformat=2" 5564 5565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5566printf %s "checking if $CC supports -Wformat=2... " >&6; } 5567 cacheid=xorg_cv_cc_flag__Wformat_2 5568 if eval test \${$cacheid+y} 5569then : 5570 printf %s "(cached) " >&6 5571else case e in #( 5572 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5573/* end confdefs.h. */ 5574int i; 5575int 5576main (void) 5577{ 5578 5579 ; 5580 return 0; 5581} 5582_ACEOF 5583if ac_fn_c_try_link "$LINENO" 5584then : 5585 eval $cacheid=yes 5586else case e in #( 5587 e) eval $cacheid=no ;; 5588esac 5589fi 5590rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5591 conftest$ac_exeext conftest.$ac_ext ;; 5592esac 5593fi 5594 5595 5596 CFLAGS="$xorg_testset_save_CFLAGS" 5597 5598 eval supported=\$$cacheid 5599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5600printf "%s\n" "$supported" >&6; } 5601 if test "$supported" = "yes" ; then 5602 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5603 found="yes" 5604 fi 5605 fi 5606 5607 if test $found = "no" ; then 5608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5610 fi 5611 5612 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5614 fi 5615 5616 CFLAGS="$CFLAGS -Wformat" 5617 5618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5619printf %s "checking if $CC supports -Wformat... " >&6; } 5620 cacheid=xorg_cv_cc_flag__Wformat 5621 if eval test \${$cacheid+y} 5622then : 5623 printf %s "(cached) " >&6 5624else case e in #( 5625 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5626/* end confdefs.h. */ 5627int i; 5628int 5629main (void) 5630{ 5631 5632 ; 5633 return 0; 5634} 5635_ACEOF 5636if ac_fn_c_try_link "$LINENO" 5637then : 5638 eval $cacheid=yes 5639else case e in #( 5640 e) eval $cacheid=no ;; 5641esac 5642fi 5643rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5644 conftest$ac_exeext conftest.$ac_ext ;; 5645esac 5646fi 5647 5648 5649 CFLAGS="$xorg_testset_save_CFLAGS" 5650 5651 eval supported=\$$cacheid 5652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5653printf "%s\n" "$supported" >&6; } 5654 if test "$supported" = "yes" ; then 5655 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5656 found="yes" 5657 fi 5658 fi 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676xorg_testset_save_CFLAGS="$CFLAGS" 5677 5678if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5679 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5681printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5682if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5683then : 5684 printf %s "(cached) " >&6 5685else case e in #( 5686 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5687/* end confdefs.h. */ 5688int i; 5689_ACEOF 5690if ac_fn_c_try_compile "$LINENO" 5691then : 5692 xorg_cv_cc_flag_unknown_warning_option=yes 5693else case e in #( 5694 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5695esac 5696fi 5697rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5698esac 5699fi 5700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5701printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5702 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5703 CFLAGS="$xorg_testset_save_CFLAGS" 5704fi 5705 5706if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5708 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5709 fi 5710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5712printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5713if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5714then : 5715 printf %s "(cached) " >&6 5716else case e in #( 5717 e) 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_unused_command_line_argument=yes 5724else case e in #( 5725 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5726esac 5727fi 5728rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5729esac 5730fi 5731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5732printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5733 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5734 CFLAGS="$xorg_testset_save_CFLAGS" 5735fi 5736 5737found="no" 5738 5739 if test $found = "no" ; then 5740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5742 fi 5743 5744 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5746 fi 5747 5748 CFLAGS="$CFLAGS -Wstrict-prototypes" 5749 5750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5751printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5752 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5753 if eval test \${$cacheid+y} 5754then : 5755 printf %s "(cached) " >&6 5756else case e in #( 5757 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5758/* end confdefs.h. */ 5759int i; 5760int 5761main (void) 5762{ 5763 5764 ; 5765 return 0; 5766} 5767_ACEOF 5768if ac_fn_c_try_link "$LINENO" 5769then : 5770 eval $cacheid=yes 5771else case e in #( 5772 e) eval $cacheid=no ;; 5773esac 5774fi 5775rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5776 conftest$ac_exeext conftest.$ac_ext ;; 5777esac 5778fi 5779 5780 5781 CFLAGS="$xorg_testset_save_CFLAGS" 5782 5783 eval supported=\$$cacheid 5784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5785printf "%s\n" "$supported" >&6; } 5786 if test "$supported" = "yes" ; then 5787 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5788 found="yes" 5789 fi 5790 fi 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806xorg_testset_save_CFLAGS="$CFLAGS" 5807 5808if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5809 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5811printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5812if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5813then : 5814 printf %s "(cached) " >&6 5815else case e in #( 5816 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5817/* end confdefs.h. */ 5818int i; 5819_ACEOF 5820if ac_fn_c_try_compile "$LINENO" 5821then : 5822 xorg_cv_cc_flag_unknown_warning_option=yes 5823else case e in #( 5824 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5825esac 5826fi 5827rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5828esac 5829fi 5830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5831printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5832 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5833 CFLAGS="$xorg_testset_save_CFLAGS" 5834fi 5835 5836if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5837 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5839 fi 5840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5842printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5843if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5844then : 5845 printf %s "(cached) " >&6 5846else case e in #( 5847 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5848/* end confdefs.h. */ 5849int i; 5850_ACEOF 5851if ac_fn_c_try_compile "$LINENO" 5852then : 5853 xorg_cv_cc_flag_unused_command_line_argument=yes 5854else case e in #( 5855 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5856esac 5857fi 5858rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5859esac 5860fi 5861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5862printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5863 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5864 CFLAGS="$xorg_testset_save_CFLAGS" 5865fi 5866 5867found="no" 5868 5869 if test $found = "no" ; then 5870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5871 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5872 fi 5873 5874 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5876 fi 5877 5878 CFLAGS="$CFLAGS -Wmissing-prototypes" 5879 5880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5881printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5882 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5883 if eval test \${$cacheid+y} 5884then : 5885 printf %s "(cached) " >&6 5886else case e in #( 5887 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5888/* end confdefs.h. */ 5889int i; 5890int 5891main (void) 5892{ 5893 5894 ; 5895 return 0; 5896} 5897_ACEOF 5898if ac_fn_c_try_link "$LINENO" 5899then : 5900 eval $cacheid=yes 5901else case e in #( 5902 e) eval $cacheid=no ;; 5903esac 5904fi 5905rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5906 conftest$ac_exeext conftest.$ac_ext ;; 5907esac 5908fi 5909 5910 5911 CFLAGS="$xorg_testset_save_CFLAGS" 5912 5913 eval supported=\$$cacheid 5914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5915printf "%s\n" "$supported" >&6; } 5916 if test "$supported" = "yes" ; then 5917 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5918 found="yes" 5919 fi 5920 fi 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936xorg_testset_save_CFLAGS="$CFLAGS" 5937 5938if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5939 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5941printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5942if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5943then : 5944 printf %s "(cached) " >&6 5945else case e in #( 5946 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5947/* end confdefs.h. */ 5948int i; 5949_ACEOF 5950if ac_fn_c_try_compile "$LINENO" 5951then : 5952 xorg_cv_cc_flag_unknown_warning_option=yes 5953else case e in #( 5954 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5955esac 5956fi 5957rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5958esac 5959fi 5960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5961printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5962 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5963 CFLAGS="$xorg_testset_save_CFLAGS" 5964fi 5965 5966if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5969 fi 5970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5972printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5973if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5974then : 5975 printf %s "(cached) " >&6 5976else case e in #( 5977 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5978/* end confdefs.h. */ 5979int i; 5980_ACEOF 5981if ac_fn_c_try_compile "$LINENO" 5982then : 5983 xorg_cv_cc_flag_unused_command_line_argument=yes 5984else case e in #( 5985 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5986esac 5987fi 5988rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5989esac 5990fi 5991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5992printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5993 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5994 CFLAGS="$xorg_testset_save_CFLAGS" 5995fi 5996 5997found="no" 5998 5999 if test $found = "no" ; then 6000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6002 fi 6003 6004 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6006 fi 6007 6008 CFLAGS="$CFLAGS -Wnested-externs" 6009 6010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 6011printf %s "checking if $CC supports -Wnested-externs... " >&6; } 6012 cacheid=xorg_cv_cc_flag__Wnested_externs 6013 if eval test \${$cacheid+y} 6014then : 6015 printf %s "(cached) " >&6 6016else case e in #( 6017 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6018/* end confdefs.h. */ 6019int i; 6020int 6021main (void) 6022{ 6023 6024 ; 6025 return 0; 6026} 6027_ACEOF 6028if ac_fn_c_try_link "$LINENO" 6029then : 6030 eval $cacheid=yes 6031else case e in #( 6032 e) eval $cacheid=no ;; 6033esac 6034fi 6035rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6036 conftest$ac_exeext conftest.$ac_ext ;; 6037esac 6038fi 6039 6040 6041 CFLAGS="$xorg_testset_save_CFLAGS" 6042 6043 eval supported=\$$cacheid 6044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6045printf "%s\n" "$supported" >&6; } 6046 if test "$supported" = "yes" ; then 6047 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 6048 found="yes" 6049 fi 6050 fi 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066xorg_testset_save_CFLAGS="$CFLAGS" 6067 6068if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6069 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6071printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6072if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6073then : 6074 printf %s "(cached) " >&6 6075else case e in #( 6076 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6077/* end confdefs.h. */ 6078int i; 6079_ACEOF 6080if ac_fn_c_try_compile "$LINENO" 6081then : 6082 xorg_cv_cc_flag_unknown_warning_option=yes 6083else case e in #( 6084 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6085esac 6086fi 6087rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6088esac 6089fi 6090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6091printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6092 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6093 CFLAGS="$xorg_testset_save_CFLAGS" 6094fi 6095 6096if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6098 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6099 fi 6100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6102printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6103if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6104then : 6105 printf %s "(cached) " >&6 6106else case e in #( 6107 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6108/* end confdefs.h. */ 6109int i; 6110_ACEOF 6111if ac_fn_c_try_compile "$LINENO" 6112then : 6113 xorg_cv_cc_flag_unused_command_line_argument=yes 6114else case e in #( 6115 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6116esac 6117fi 6118rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6119esac 6120fi 6121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6122printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6123 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6124 CFLAGS="$xorg_testset_save_CFLAGS" 6125fi 6126 6127found="no" 6128 6129 if test $found = "no" ; then 6130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6131 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6132 fi 6133 6134 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6136 fi 6137 6138 CFLAGS="$CFLAGS -Wbad-function-cast" 6139 6140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6141printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6142 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6143 if eval test \${$cacheid+y} 6144then : 6145 printf %s "(cached) " >&6 6146else case e in #( 6147 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6148/* end confdefs.h. */ 6149int i; 6150int 6151main (void) 6152{ 6153 6154 ; 6155 return 0; 6156} 6157_ACEOF 6158if ac_fn_c_try_link "$LINENO" 6159then : 6160 eval $cacheid=yes 6161else case e in #( 6162 e) eval $cacheid=no ;; 6163esac 6164fi 6165rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6166 conftest$ac_exeext conftest.$ac_ext ;; 6167esac 6168fi 6169 6170 6171 CFLAGS="$xorg_testset_save_CFLAGS" 6172 6173 eval supported=\$$cacheid 6174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6175printf "%s\n" "$supported" >&6; } 6176 if test "$supported" = "yes" ; then 6177 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6178 found="yes" 6179 fi 6180 fi 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196xorg_testset_save_CFLAGS="$CFLAGS" 6197 6198if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6199 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6201printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6202if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6203then : 6204 printf %s "(cached) " >&6 6205else case e in #( 6206 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6207/* end confdefs.h. */ 6208int i; 6209_ACEOF 6210if ac_fn_c_try_compile "$LINENO" 6211then : 6212 xorg_cv_cc_flag_unknown_warning_option=yes 6213else case e in #( 6214 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6215esac 6216fi 6217rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6218esac 6219fi 6220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6221printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6222 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6223 CFLAGS="$xorg_testset_save_CFLAGS" 6224fi 6225 6226if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6228 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6229 fi 6230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6232printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6233if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6234then : 6235 printf %s "(cached) " >&6 6236else case e in #( 6237 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6238/* end confdefs.h. */ 6239int i; 6240_ACEOF 6241if ac_fn_c_try_compile "$LINENO" 6242then : 6243 xorg_cv_cc_flag_unused_command_line_argument=yes 6244else case e in #( 6245 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6246esac 6247fi 6248rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6249esac 6250fi 6251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6252printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6253 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6254 CFLAGS="$xorg_testset_save_CFLAGS" 6255fi 6256 6257found="no" 6258 6259 if test $found = "no" ; then 6260 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6261 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6262 fi 6263 6264 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6266 fi 6267 6268 CFLAGS="$CFLAGS -Wold-style-definition" 6269 6270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6271printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6272 cacheid=xorg_cv_cc_flag__Wold_style_definition 6273 if eval test \${$cacheid+y} 6274then : 6275 printf %s "(cached) " >&6 6276else case e in #( 6277 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6278/* end confdefs.h. */ 6279int i; 6280int 6281main (void) 6282{ 6283 6284 ; 6285 return 0; 6286} 6287_ACEOF 6288if ac_fn_c_try_link "$LINENO" 6289then : 6290 eval $cacheid=yes 6291else case e in #( 6292 e) eval $cacheid=no ;; 6293esac 6294fi 6295rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6296 conftest$ac_exeext conftest.$ac_ext ;; 6297esac 6298fi 6299 6300 6301 CFLAGS="$xorg_testset_save_CFLAGS" 6302 6303 eval supported=\$$cacheid 6304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6305printf "%s\n" "$supported" >&6; } 6306 if test "$supported" = "yes" ; then 6307 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6308 found="yes" 6309 fi 6310 fi 6311 6312 if test $found = "no" ; then 6313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6315 fi 6316 6317 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6319 fi 6320 6321 CFLAGS="$CFLAGS -fd" 6322 6323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6324printf %s "checking if $CC supports -fd... " >&6; } 6325 cacheid=xorg_cv_cc_flag__fd 6326 if eval test \${$cacheid+y} 6327then : 6328 printf %s "(cached) " >&6 6329else case e in #( 6330 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6331/* end confdefs.h. */ 6332int i; 6333int 6334main (void) 6335{ 6336 6337 ; 6338 return 0; 6339} 6340_ACEOF 6341if ac_fn_c_try_link "$LINENO" 6342then : 6343 eval $cacheid=yes 6344else case e in #( 6345 e) eval $cacheid=no ;; 6346esac 6347fi 6348rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6349 conftest$ac_exeext conftest.$ac_ext ;; 6350esac 6351fi 6352 6353 6354 CFLAGS="$xorg_testset_save_CFLAGS" 6355 6356 eval supported=\$$cacheid 6357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6358printf "%s\n" "$supported" >&6; } 6359 if test "$supported" = "yes" ; then 6360 BASE_CFLAGS="$BASE_CFLAGS -fd" 6361 found="yes" 6362 fi 6363 fi 6364 6365 6366 6367 6368 6369# This chunk adds additional warnings that could catch undesired effects. 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383xorg_testset_save_CFLAGS="$CFLAGS" 6384 6385if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6386 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6388printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6389if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6390then : 6391 printf %s "(cached) " >&6 6392else case e in #( 6393 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6394/* end confdefs.h. */ 6395int i; 6396_ACEOF 6397if ac_fn_c_try_compile "$LINENO" 6398then : 6399 xorg_cv_cc_flag_unknown_warning_option=yes 6400else case e in #( 6401 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6402esac 6403fi 6404rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6405esac 6406fi 6407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6408printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6409 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6410 CFLAGS="$xorg_testset_save_CFLAGS" 6411fi 6412 6413if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6415 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6416 fi 6417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6419printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6420if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6421then : 6422 printf %s "(cached) " >&6 6423else case e in #( 6424 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6425/* end confdefs.h. */ 6426int i; 6427_ACEOF 6428if ac_fn_c_try_compile "$LINENO" 6429then : 6430 xorg_cv_cc_flag_unused_command_line_argument=yes 6431else case e in #( 6432 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6433esac 6434fi 6435rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6436esac 6437fi 6438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6439printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6440 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6441 CFLAGS="$xorg_testset_save_CFLAGS" 6442fi 6443 6444found="no" 6445 6446 if test $found = "no" ; then 6447 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6448 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6449 fi 6450 6451 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6453 fi 6454 6455 CFLAGS="$CFLAGS -Wunused" 6456 6457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6458printf %s "checking if $CC supports -Wunused... " >&6; } 6459 cacheid=xorg_cv_cc_flag__Wunused 6460 if eval test \${$cacheid+y} 6461then : 6462 printf %s "(cached) " >&6 6463else case e in #( 6464 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6465/* end confdefs.h. */ 6466int i; 6467int 6468main (void) 6469{ 6470 6471 ; 6472 return 0; 6473} 6474_ACEOF 6475if ac_fn_c_try_link "$LINENO" 6476then : 6477 eval $cacheid=yes 6478else case e in #( 6479 e) eval $cacheid=no ;; 6480esac 6481fi 6482rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6483 conftest$ac_exeext conftest.$ac_ext ;; 6484esac 6485fi 6486 6487 6488 CFLAGS="$xorg_testset_save_CFLAGS" 6489 6490 eval supported=\$$cacheid 6491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6492printf "%s\n" "$supported" >&6; } 6493 if test "$supported" = "yes" ; then 6494 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6495 found="yes" 6496 fi 6497 fi 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513xorg_testset_save_CFLAGS="$CFLAGS" 6514 6515if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6516 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6518printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6519if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6520then : 6521 printf %s "(cached) " >&6 6522else case e in #( 6523 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6524/* end confdefs.h. */ 6525int i; 6526_ACEOF 6527if ac_fn_c_try_compile "$LINENO" 6528then : 6529 xorg_cv_cc_flag_unknown_warning_option=yes 6530else case e in #( 6531 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6532esac 6533fi 6534rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6535esac 6536fi 6537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6538printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6539 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6540 CFLAGS="$xorg_testset_save_CFLAGS" 6541fi 6542 6543if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6544 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6545 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6546 fi 6547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6549printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6550if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6551then : 6552 printf %s "(cached) " >&6 6553else case e in #( 6554 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6555/* end confdefs.h. */ 6556int i; 6557_ACEOF 6558if ac_fn_c_try_compile "$LINENO" 6559then : 6560 xorg_cv_cc_flag_unused_command_line_argument=yes 6561else case e in #( 6562 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6563esac 6564fi 6565rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6566esac 6567fi 6568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6569printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6570 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6571 CFLAGS="$xorg_testset_save_CFLAGS" 6572fi 6573 6574found="no" 6575 6576 if test $found = "no" ; then 6577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6578 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6579 fi 6580 6581 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6583 fi 6584 6585 CFLAGS="$CFLAGS -Wuninitialized" 6586 6587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6588printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6589 cacheid=xorg_cv_cc_flag__Wuninitialized 6590 if eval test \${$cacheid+y} 6591then : 6592 printf %s "(cached) " >&6 6593else case e in #( 6594 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6595/* end confdefs.h. */ 6596int i; 6597int 6598main (void) 6599{ 6600 6601 ; 6602 return 0; 6603} 6604_ACEOF 6605if ac_fn_c_try_link "$LINENO" 6606then : 6607 eval $cacheid=yes 6608else case e in #( 6609 e) eval $cacheid=no ;; 6610esac 6611fi 6612rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6613 conftest$ac_exeext conftest.$ac_ext ;; 6614esac 6615fi 6616 6617 6618 CFLAGS="$xorg_testset_save_CFLAGS" 6619 6620 eval supported=\$$cacheid 6621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6622printf "%s\n" "$supported" >&6; } 6623 if test "$supported" = "yes" ; then 6624 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6625 found="yes" 6626 fi 6627 fi 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643xorg_testset_save_CFLAGS="$CFLAGS" 6644 6645if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6646 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6648printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6649if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6650then : 6651 printf %s "(cached) " >&6 6652else case e in #( 6653 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6654/* end confdefs.h. */ 6655int i; 6656_ACEOF 6657if ac_fn_c_try_compile "$LINENO" 6658then : 6659 xorg_cv_cc_flag_unknown_warning_option=yes 6660else case e in #( 6661 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6662esac 6663fi 6664rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6665esac 6666fi 6667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6668printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6669 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6670 CFLAGS="$xorg_testset_save_CFLAGS" 6671fi 6672 6673if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6676 fi 6677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6679printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6680if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6681then : 6682 printf %s "(cached) " >&6 6683else case e in #( 6684 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6685/* end confdefs.h. */ 6686int i; 6687_ACEOF 6688if ac_fn_c_try_compile "$LINENO" 6689then : 6690 xorg_cv_cc_flag_unused_command_line_argument=yes 6691else case e in #( 6692 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6693esac 6694fi 6695rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6696esac 6697fi 6698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6699printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6700 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6701 CFLAGS="$xorg_testset_save_CFLAGS" 6702fi 6703 6704found="no" 6705 6706 if test $found = "no" ; then 6707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6708 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6709 fi 6710 6711 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6712 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6713 fi 6714 6715 CFLAGS="$CFLAGS -Wshadow" 6716 6717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6718printf %s "checking if $CC supports -Wshadow... " >&6; } 6719 cacheid=xorg_cv_cc_flag__Wshadow 6720 if eval test \${$cacheid+y} 6721then : 6722 printf %s "(cached) " >&6 6723else case e in #( 6724 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6725/* end confdefs.h. */ 6726int i; 6727int 6728main (void) 6729{ 6730 6731 ; 6732 return 0; 6733} 6734_ACEOF 6735if ac_fn_c_try_link "$LINENO" 6736then : 6737 eval $cacheid=yes 6738else case e in #( 6739 e) eval $cacheid=no ;; 6740esac 6741fi 6742rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6743 conftest$ac_exeext conftest.$ac_ext ;; 6744esac 6745fi 6746 6747 6748 CFLAGS="$xorg_testset_save_CFLAGS" 6749 6750 eval supported=\$$cacheid 6751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6752printf "%s\n" "$supported" >&6; } 6753 if test "$supported" = "yes" ; then 6754 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6755 found="yes" 6756 fi 6757 fi 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773xorg_testset_save_CFLAGS="$CFLAGS" 6774 6775if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6778printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6779if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6780then : 6781 printf %s "(cached) " >&6 6782else case e in #( 6783 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6784/* end confdefs.h. */ 6785int i; 6786_ACEOF 6787if ac_fn_c_try_compile "$LINENO" 6788then : 6789 xorg_cv_cc_flag_unknown_warning_option=yes 6790else case e in #( 6791 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6792esac 6793fi 6794rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6795esac 6796fi 6797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6798printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6799 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6800 CFLAGS="$xorg_testset_save_CFLAGS" 6801fi 6802 6803if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6805 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6806 fi 6807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6809printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6810if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6811then : 6812 printf %s "(cached) " >&6 6813else case e in #( 6814 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6815/* end confdefs.h. */ 6816int i; 6817_ACEOF 6818if ac_fn_c_try_compile "$LINENO" 6819then : 6820 xorg_cv_cc_flag_unused_command_line_argument=yes 6821else case e in #( 6822 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6823esac 6824fi 6825rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6826esac 6827fi 6828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6829printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6830 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6831 CFLAGS="$xorg_testset_save_CFLAGS" 6832fi 6833 6834found="no" 6835 6836 if test $found = "no" ; then 6837 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6839 fi 6840 6841 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6842 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6843 fi 6844 6845 CFLAGS="$CFLAGS -Wmissing-noreturn" 6846 6847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6848printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6849 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6850 if eval test \${$cacheid+y} 6851then : 6852 printf %s "(cached) " >&6 6853else case e in #( 6854 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6855/* end confdefs.h. */ 6856int i; 6857int 6858main (void) 6859{ 6860 6861 ; 6862 return 0; 6863} 6864_ACEOF 6865if ac_fn_c_try_link "$LINENO" 6866then : 6867 eval $cacheid=yes 6868else case e in #( 6869 e) eval $cacheid=no ;; 6870esac 6871fi 6872rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6873 conftest$ac_exeext conftest.$ac_ext ;; 6874esac 6875fi 6876 6877 6878 CFLAGS="$xorg_testset_save_CFLAGS" 6879 6880 eval supported=\$$cacheid 6881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6882printf "%s\n" "$supported" >&6; } 6883 if test "$supported" = "yes" ; then 6884 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6885 found="yes" 6886 fi 6887 fi 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903xorg_testset_save_CFLAGS="$CFLAGS" 6904 6905if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6906 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6908printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6909if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6910then : 6911 printf %s "(cached) " >&6 6912else case e in #( 6913 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6914/* end confdefs.h. */ 6915int i; 6916_ACEOF 6917if ac_fn_c_try_compile "$LINENO" 6918then : 6919 xorg_cv_cc_flag_unknown_warning_option=yes 6920else case e in #( 6921 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6922esac 6923fi 6924rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6925esac 6926fi 6927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6928printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6929 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6930 CFLAGS="$xorg_testset_save_CFLAGS" 6931fi 6932 6933if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6935 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6936 fi 6937 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6939printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6940if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6941then : 6942 printf %s "(cached) " >&6 6943else case e in #( 6944 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6945/* end confdefs.h. */ 6946int i; 6947_ACEOF 6948if ac_fn_c_try_compile "$LINENO" 6949then : 6950 xorg_cv_cc_flag_unused_command_line_argument=yes 6951else case e in #( 6952 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6953esac 6954fi 6955rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6956esac 6957fi 6958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6959printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6960 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6961 CFLAGS="$xorg_testset_save_CFLAGS" 6962fi 6963 6964found="no" 6965 6966 if test $found = "no" ; then 6967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6969 fi 6970 6971 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6973 fi 6974 6975 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6976 6977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6978printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6979 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6980 if eval test \${$cacheid+y} 6981then : 6982 printf %s "(cached) " >&6 6983else case e in #( 6984 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6985/* end confdefs.h. */ 6986int i; 6987int 6988main (void) 6989{ 6990 6991 ; 6992 return 0; 6993} 6994_ACEOF 6995if ac_fn_c_try_link "$LINENO" 6996then : 6997 eval $cacheid=yes 6998else case e in #( 6999 e) eval $cacheid=no ;; 7000esac 7001fi 7002rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7003 conftest$ac_exeext conftest.$ac_ext ;; 7004esac 7005fi 7006 7007 7008 CFLAGS="$xorg_testset_save_CFLAGS" 7009 7010 eval supported=\$$cacheid 7011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7012printf "%s\n" "$supported" >&6; } 7013 if test "$supported" = "yes" ; then 7014 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7015 found="yes" 7016 fi 7017 fi 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033xorg_testset_save_CFLAGS="$CFLAGS" 7034 7035if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7036 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7038printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7039if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7040then : 7041 printf %s "(cached) " >&6 7042else case e in #( 7043 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7044/* end confdefs.h. */ 7045int i; 7046_ACEOF 7047if ac_fn_c_try_compile "$LINENO" 7048then : 7049 xorg_cv_cc_flag_unknown_warning_option=yes 7050else case e in #( 7051 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7052esac 7053fi 7054rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7055esac 7056fi 7057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7058printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7059 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7060 CFLAGS="$xorg_testset_save_CFLAGS" 7061fi 7062 7063if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7064 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7065 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7066 fi 7067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7069printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7070if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7071then : 7072 printf %s "(cached) " >&6 7073else case e in #( 7074 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7075/* end confdefs.h. */ 7076int i; 7077_ACEOF 7078if ac_fn_c_try_compile "$LINENO" 7079then : 7080 xorg_cv_cc_flag_unused_command_line_argument=yes 7081else case e in #( 7082 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7083esac 7084fi 7085rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7086esac 7087fi 7088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7089printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7090 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7091 CFLAGS="$xorg_testset_save_CFLAGS" 7092fi 7093 7094found="no" 7095 7096 if test $found = "no" ; then 7097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7098 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7099 fi 7100 7101 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7103 fi 7104 7105 CFLAGS="$CFLAGS -Wredundant-decls" 7106 7107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7108printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7109 cacheid=xorg_cv_cc_flag__Wredundant_decls 7110 if eval test \${$cacheid+y} 7111then : 7112 printf %s "(cached) " >&6 7113else case e in #( 7114 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7115/* end confdefs.h. */ 7116int i; 7117int 7118main (void) 7119{ 7120 7121 ; 7122 return 0; 7123} 7124_ACEOF 7125if ac_fn_c_try_link "$LINENO" 7126then : 7127 eval $cacheid=yes 7128else case e in #( 7129 e) eval $cacheid=no ;; 7130esac 7131fi 7132rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7133 conftest$ac_exeext conftest.$ac_ext ;; 7134esac 7135fi 7136 7137 7138 CFLAGS="$xorg_testset_save_CFLAGS" 7139 7140 eval supported=\$$cacheid 7141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7142printf "%s\n" "$supported" >&6; } 7143 if test "$supported" = "yes" ; then 7144 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7145 found="yes" 7146 fi 7147 fi 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163xorg_testset_save_CFLAGS="$CFLAGS" 7164 7165if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7166 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7168printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7169if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7170then : 7171 printf %s "(cached) " >&6 7172else case e in #( 7173 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7174/* end confdefs.h. */ 7175int i; 7176_ACEOF 7177if ac_fn_c_try_compile "$LINENO" 7178then : 7179 xorg_cv_cc_flag_unknown_warning_option=yes 7180else case e in #( 7181 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7182esac 7183fi 7184rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7185esac 7186fi 7187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7188printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7189 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7190 CFLAGS="$xorg_testset_save_CFLAGS" 7191fi 7192 7193if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7196 fi 7197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7199printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7200if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7201then : 7202 printf %s "(cached) " >&6 7203else case e in #( 7204 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7205/* end confdefs.h. */ 7206int i; 7207_ACEOF 7208if ac_fn_c_try_compile "$LINENO" 7209then : 7210 xorg_cv_cc_flag_unused_command_line_argument=yes 7211else case e in #( 7212 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7213esac 7214fi 7215rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7216esac 7217fi 7218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7219printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7220 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7221 CFLAGS="$xorg_testset_save_CFLAGS" 7222fi 7223 7224found="no" 7225 7226 if test $found = "no" ; then 7227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7228 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7229 fi 7230 7231 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7233 fi 7234 7235 CFLAGS="$CFLAGS -Wlogical-op" 7236 7237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7238printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7239 cacheid=xorg_cv_cc_flag__Wlogical_op 7240 if eval test \${$cacheid+y} 7241then : 7242 printf %s "(cached) " >&6 7243else case e in #( 7244 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7245/* end confdefs.h. */ 7246int i; 7247int 7248main (void) 7249{ 7250 7251 ; 7252 return 0; 7253} 7254_ACEOF 7255if ac_fn_c_try_link "$LINENO" 7256then : 7257 eval $cacheid=yes 7258else case e in #( 7259 e) eval $cacheid=no ;; 7260esac 7261fi 7262rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7263 conftest$ac_exeext conftest.$ac_ext ;; 7264esac 7265fi 7266 7267 7268 CFLAGS="$xorg_testset_save_CFLAGS" 7269 7270 eval supported=\$$cacheid 7271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7272printf "%s\n" "$supported" >&6; } 7273 if test "$supported" = "yes" ; then 7274 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7275 found="yes" 7276 fi 7277 fi 7278 7279 7280 7281# These are currently disabled because they are noisy. They will be enabled 7282# in the future once the codebase is sufficiently modernized to silence 7283# them. For now, I don't want them to drown out the other warnings. 7284# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7285# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7286# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7287 7288# Turn some warnings into errors, so we don't accidentally get successful builds 7289# when there are problems that should be fixed. 7290 7291if test "x$SELECTIVE_WERROR" = "xyes" ; then 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305xorg_testset_save_CFLAGS="$CFLAGS" 7306 7307if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7308 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7310printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7311if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7312then : 7313 printf %s "(cached) " >&6 7314else case e in #( 7315 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7316/* end confdefs.h. */ 7317int i; 7318_ACEOF 7319if ac_fn_c_try_compile "$LINENO" 7320then : 7321 xorg_cv_cc_flag_unknown_warning_option=yes 7322else case e in #( 7323 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7324esac 7325fi 7326rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7327esac 7328fi 7329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7330printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7331 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7332 CFLAGS="$xorg_testset_save_CFLAGS" 7333fi 7334 7335if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7337 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7338 fi 7339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7341printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7342if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7343then : 7344 printf %s "(cached) " >&6 7345else case e in #( 7346 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7347/* end confdefs.h. */ 7348int i; 7349_ACEOF 7350if ac_fn_c_try_compile "$LINENO" 7351then : 7352 xorg_cv_cc_flag_unused_command_line_argument=yes 7353else case e in #( 7354 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7355esac 7356fi 7357rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7358esac 7359fi 7360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7361printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7362 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7363 CFLAGS="$xorg_testset_save_CFLAGS" 7364fi 7365 7366found="no" 7367 7368 if test $found = "no" ; then 7369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7370 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7371 fi 7372 7373 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7375 fi 7376 7377 CFLAGS="$CFLAGS -Werror=implicit" 7378 7379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7380printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7381 cacheid=xorg_cv_cc_flag__Werror_implicit 7382 if eval test \${$cacheid+y} 7383then : 7384 printf %s "(cached) " >&6 7385else case e in #( 7386 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7387/* end confdefs.h. */ 7388int i; 7389int 7390main (void) 7391{ 7392 7393 ; 7394 return 0; 7395} 7396_ACEOF 7397if ac_fn_c_try_link "$LINENO" 7398then : 7399 eval $cacheid=yes 7400else case e in #( 7401 e) eval $cacheid=no ;; 7402esac 7403fi 7404rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7405 conftest$ac_exeext conftest.$ac_ext ;; 7406esac 7407fi 7408 7409 7410 CFLAGS="$xorg_testset_save_CFLAGS" 7411 7412 eval supported=\$$cacheid 7413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7414printf "%s\n" "$supported" >&6; } 7415 if test "$supported" = "yes" ; then 7416 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7417 found="yes" 7418 fi 7419 fi 7420 7421 if test $found = "no" ; then 7422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7424 fi 7425 7426 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7428 fi 7429 7430 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7431 7432 { 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 7433printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7434 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7435 if eval test \${$cacheid+y} 7436then : 7437 printf %s "(cached) " >&6 7438else case e in #( 7439 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7440/* end confdefs.h. */ 7441int i; 7442int 7443main (void) 7444{ 7445 7446 ; 7447 return 0; 7448} 7449_ACEOF 7450if ac_fn_c_try_link "$LINENO" 7451then : 7452 eval $cacheid=yes 7453else case e in #( 7454 e) eval $cacheid=no ;; 7455esac 7456fi 7457rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7458 conftest$ac_exeext conftest.$ac_ext ;; 7459esac 7460fi 7461 7462 7463 CFLAGS="$xorg_testset_save_CFLAGS" 7464 7465 eval supported=\$$cacheid 7466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7467printf "%s\n" "$supported" >&6; } 7468 if test "$supported" = "yes" ; then 7469 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7470 found="yes" 7471 fi 7472 fi 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488xorg_testset_save_CFLAGS="$CFLAGS" 7489 7490if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7491 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7493printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7494if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7495then : 7496 printf %s "(cached) " >&6 7497else case e in #( 7498 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7499/* end confdefs.h. */ 7500int i; 7501_ACEOF 7502if ac_fn_c_try_compile "$LINENO" 7503then : 7504 xorg_cv_cc_flag_unknown_warning_option=yes 7505else case e in #( 7506 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7507esac 7508fi 7509rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7510esac 7511fi 7512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7513printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7514 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7515 CFLAGS="$xorg_testset_save_CFLAGS" 7516fi 7517 7518if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7521 fi 7522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7524printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7525if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7526then : 7527 printf %s "(cached) " >&6 7528else case e in #( 7529 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7530/* end confdefs.h. */ 7531int i; 7532_ACEOF 7533if ac_fn_c_try_compile "$LINENO" 7534then : 7535 xorg_cv_cc_flag_unused_command_line_argument=yes 7536else case e in #( 7537 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7538esac 7539fi 7540rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7541esac 7542fi 7543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7544printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7545 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7546 CFLAGS="$xorg_testset_save_CFLAGS" 7547fi 7548 7549found="no" 7550 7551 if test $found = "no" ; then 7552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7553 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7554 fi 7555 7556 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7558 fi 7559 7560 CFLAGS="$CFLAGS -Werror=nonnull" 7561 7562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7563printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7564 cacheid=xorg_cv_cc_flag__Werror_nonnull 7565 if eval test \${$cacheid+y} 7566then : 7567 printf %s "(cached) " >&6 7568else case e in #( 7569 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7570/* end confdefs.h. */ 7571int i; 7572int 7573main (void) 7574{ 7575 7576 ; 7577 return 0; 7578} 7579_ACEOF 7580if ac_fn_c_try_link "$LINENO" 7581then : 7582 eval $cacheid=yes 7583else case e in #( 7584 e) eval $cacheid=no ;; 7585esac 7586fi 7587rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7588 conftest$ac_exeext conftest.$ac_ext ;; 7589esac 7590fi 7591 7592 7593 CFLAGS="$xorg_testset_save_CFLAGS" 7594 7595 eval supported=\$$cacheid 7596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7597printf "%s\n" "$supported" >&6; } 7598 if test "$supported" = "yes" ; then 7599 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7600 found="yes" 7601 fi 7602 fi 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618xorg_testset_save_CFLAGS="$CFLAGS" 7619 7620if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7621 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7623printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7624if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7625then : 7626 printf %s "(cached) " >&6 7627else case e in #( 7628 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7629/* end confdefs.h. */ 7630int i; 7631_ACEOF 7632if ac_fn_c_try_compile "$LINENO" 7633then : 7634 xorg_cv_cc_flag_unknown_warning_option=yes 7635else case e in #( 7636 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7637esac 7638fi 7639rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7640esac 7641fi 7642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7643printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7644 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7645 CFLAGS="$xorg_testset_save_CFLAGS" 7646fi 7647 7648if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7650 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7651 fi 7652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7654printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7655if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7656then : 7657 printf %s "(cached) " >&6 7658else case e in #( 7659 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7660/* end confdefs.h. */ 7661int i; 7662_ACEOF 7663if ac_fn_c_try_compile "$LINENO" 7664then : 7665 xorg_cv_cc_flag_unused_command_line_argument=yes 7666else case e in #( 7667 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7668esac 7669fi 7670rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7671esac 7672fi 7673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7674printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7675 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7676 CFLAGS="$xorg_testset_save_CFLAGS" 7677fi 7678 7679found="no" 7680 7681 if test $found = "no" ; then 7682 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7684 fi 7685 7686 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7688 fi 7689 7690 CFLAGS="$CFLAGS -Werror=init-self" 7691 7692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7693printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7694 cacheid=xorg_cv_cc_flag__Werror_init_self 7695 if eval test \${$cacheid+y} 7696then : 7697 printf %s "(cached) " >&6 7698else case e in #( 7699 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7700/* end confdefs.h. */ 7701int i; 7702int 7703main (void) 7704{ 7705 7706 ; 7707 return 0; 7708} 7709_ACEOF 7710if ac_fn_c_try_link "$LINENO" 7711then : 7712 eval $cacheid=yes 7713else case e in #( 7714 e) eval $cacheid=no ;; 7715esac 7716fi 7717rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7718 conftest$ac_exeext conftest.$ac_ext ;; 7719esac 7720fi 7721 7722 7723 CFLAGS="$xorg_testset_save_CFLAGS" 7724 7725 eval supported=\$$cacheid 7726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7727printf "%s\n" "$supported" >&6; } 7728 if test "$supported" = "yes" ; then 7729 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7730 found="yes" 7731 fi 7732 fi 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748xorg_testset_save_CFLAGS="$CFLAGS" 7749 7750if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7751 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7753printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7754if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7755then : 7756 printf %s "(cached) " >&6 7757else case e in #( 7758 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7759/* end confdefs.h. */ 7760int i; 7761_ACEOF 7762if ac_fn_c_try_compile "$LINENO" 7763then : 7764 xorg_cv_cc_flag_unknown_warning_option=yes 7765else case e in #( 7766 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7767esac 7768fi 7769rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7770esac 7771fi 7772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7773printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7774 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7775 CFLAGS="$xorg_testset_save_CFLAGS" 7776fi 7777 7778if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7780 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7781 fi 7782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7784printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7785if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7786then : 7787 printf %s "(cached) " >&6 7788else case e in #( 7789 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7790/* end confdefs.h. */ 7791int i; 7792_ACEOF 7793if ac_fn_c_try_compile "$LINENO" 7794then : 7795 xorg_cv_cc_flag_unused_command_line_argument=yes 7796else case e in #( 7797 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7798esac 7799fi 7800rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7801esac 7802fi 7803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7804printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7805 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7806 CFLAGS="$xorg_testset_save_CFLAGS" 7807fi 7808 7809found="no" 7810 7811 if test $found = "no" ; then 7812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7814 fi 7815 7816 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7818 fi 7819 7820 CFLAGS="$CFLAGS -Werror=main" 7821 7822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7823printf %s "checking if $CC supports -Werror=main... " >&6; } 7824 cacheid=xorg_cv_cc_flag__Werror_main 7825 if eval test \${$cacheid+y} 7826then : 7827 printf %s "(cached) " >&6 7828else case e in #( 7829 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7830/* end confdefs.h. */ 7831int i; 7832int 7833main (void) 7834{ 7835 7836 ; 7837 return 0; 7838} 7839_ACEOF 7840if ac_fn_c_try_link "$LINENO" 7841then : 7842 eval $cacheid=yes 7843else case e in #( 7844 e) eval $cacheid=no ;; 7845esac 7846fi 7847rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7848 conftest$ac_exeext conftest.$ac_ext ;; 7849esac 7850fi 7851 7852 7853 CFLAGS="$xorg_testset_save_CFLAGS" 7854 7855 eval supported=\$$cacheid 7856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7857printf "%s\n" "$supported" >&6; } 7858 if test "$supported" = "yes" ; then 7859 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7860 found="yes" 7861 fi 7862 fi 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878xorg_testset_save_CFLAGS="$CFLAGS" 7879 7880if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7883printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7884if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7885then : 7886 printf %s "(cached) " >&6 7887else case e in #( 7888 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7889/* end confdefs.h. */ 7890int i; 7891_ACEOF 7892if ac_fn_c_try_compile "$LINENO" 7893then : 7894 xorg_cv_cc_flag_unknown_warning_option=yes 7895else case e in #( 7896 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7897esac 7898fi 7899rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7900esac 7901fi 7902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7903printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7904 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7905 CFLAGS="$xorg_testset_save_CFLAGS" 7906fi 7907 7908if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7911 fi 7912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7914printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7915if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7916then : 7917 printf %s "(cached) " >&6 7918else case e in #( 7919 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7920/* end confdefs.h. */ 7921int i; 7922_ACEOF 7923if ac_fn_c_try_compile "$LINENO" 7924then : 7925 xorg_cv_cc_flag_unused_command_line_argument=yes 7926else case e in #( 7927 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7928esac 7929fi 7930rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7931esac 7932fi 7933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7934printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7935 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7936 CFLAGS="$xorg_testset_save_CFLAGS" 7937fi 7938 7939found="no" 7940 7941 if test $found = "no" ; then 7942 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7944 fi 7945 7946 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7948 fi 7949 7950 CFLAGS="$CFLAGS -Werror=missing-braces" 7951 7952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7953printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7954 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7955 if eval test \${$cacheid+y} 7956then : 7957 printf %s "(cached) " >&6 7958else case e in #( 7959 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7960/* end confdefs.h. */ 7961int i; 7962int 7963main (void) 7964{ 7965 7966 ; 7967 return 0; 7968} 7969_ACEOF 7970if ac_fn_c_try_link "$LINENO" 7971then : 7972 eval $cacheid=yes 7973else case e in #( 7974 e) eval $cacheid=no ;; 7975esac 7976fi 7977rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7978 conftest$ac_exeext conftest.$ac_ext ;; 7979esac 7980fi 7981 7982 7983 CFLAGS="$xorg_testset_save_CFLAGS" 7984 7985 eval supported=\$$cacheid 7986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7987printf "%s\n" "$supported" >&6; } 7988 if test "$supported" = "yes" ; then 7989 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7990 found="yes" 7991 fi 7992 fi 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008xorg_testset_save_CFLAGS="$CFLAGS" 8009 8010if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8011 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8013printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8014if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8015then : 8016 printf %s "(cached) " >&6 8017else case e in #( 8018 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8019/* end confdefs.h. */ 8020int i; 8021_ACEOF 8022if ac_fn_c_try_compile "$LINENO" 8023then : 8024 xorg_cv_cc_flag_unknown_warning_option=yes 8025else case e in #( 8026 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8027esac 8028fi 8029rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8030esac 8031fi 8032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8033printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8034 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8035 CFLAGS="$xorg_testset_save_CFLAGS" 8036fi 8037 8038if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8040 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8041 fi 8042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8044printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8045if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8046then : 8047 printf %s "(cached) " >&6 8048else case e in #( 8049 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8050/* end confdefs.h. */ 8051int i; 8052_ACEOF 8053if ac_fn_c_try_compile "$LINENO" 8054then : 8055 xorg_cv_cc_flag_unused_command_line_argument=yes 8056else case e in #( 8057 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8058esac 8059fi 8060rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8061esac 8062fi 8063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8064printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8065 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8066 CFLAGS="$xorg_testset_save_CFLAGS" 8067fi 8068 8069found="no" 8070 8071 if test $found = "no" ; then 8072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8073 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8074 fi 8075 8076 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8078 fi 8079 8080 CFLAGS="$CFLAGS -Werror=sequence-point" 8081 8082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8083printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8084 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8085 if eval test \${$cacheid+y} 8086then : 8087 printf %s "(cached) " >&6 8088else case e in #( 8089 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8090/* end confdefs.h. */ 8091int i; 8092int 8093main (void) 8094{ 8095 8096 ; 8097 return 0; 8098} 8099_ACEOF 8100if ac_fn_c_try_link "$LINENO" 8101then : 8102 eval $cacheid=yes 8103else case e in #( 8104 e) eval $cacheid=no ;; 8105esac 8106fi 8107rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8108 conftest$ac_exeext conftest.$ac_ext ;; 8109esac 8110fi 8111 8112 8113 CFLAGS="$xorg_testset_save_CFLAGS" 8114 8115 eval supported=\$$cacheid 8116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8117printf "%s\n" "$supported" >&6; } 8118 if test "$supported" = "yes" ; then 8119 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8120 found="yes" 8121 fi 8122 fi 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138xorg_testset_save_CFLAGS="$CFLAGS" 8139 8140if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8141 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8143printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8144if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8145then : 8146 printf %s "(cached) " >&6 8147else case e in #( 8148 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8149/* end confdefs.h. */ 8150int i; 8151_ACEOF 8152if ac_fn_c_try_compile "$LINENO" 8153then : 8154 xorg_cv_cc_flag_unknown_warning_option=yes 8155else case e in #( 8156 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8157esac 8158fi 8159rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8160esac 8161fi 8162{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8163printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8164 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8165 CFLAGS="$xorg_testset_save_CFLAGS" 8166fi 8167 8168if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8171 fi 8172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8174printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8175if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8176then : 8177 printf %s "(cached) " >&6 8178else case e in #( 8179 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8180/* end confdefs.h. */ 8181int i; 8182_ACEOF 8183if ac_fn_c_try_compile "$LINENO" 8184then : 8185 xorg_cv_cc_flag_unused_command_line_argument=yes 8186else case e in #( 8187 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8188esac 8189fi 8190rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8191esac 8192fi 8193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8194printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8195 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8196 CFLAGS="$xorg_testset_save_CFLAGS" 8197fi 8198 8199found="no" 8200 8201 if test $found = "no" ; then 8202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8204 fi 8205 8206 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8208 fi 8209 8210 CFLAGS="$CFLAGS -Werror=return-type" 8211 8212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8213printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8214 cacheid=xorg_cv_cc_flag__Werror_return_type 8215 if eval test \${$cacheid+y} 8216then : 8217 printf %s "(cached) " >&6 8218else case e in #( 8219 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8220/* end confdefs.h. */ 8221int i; 8222int 8223main (void) 8224{ 8225 8226 ; 8227 return 0; 8228} 8229_ACEOF 8230if ac_fn_c_try_link "$LINENO" 8231then : 8232 eval $cacheid=yes 8233else case e in #( 8234 e) eval $cacheid=no ;; 8235esac 8236fi 8237rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8238 conftest$ac_exeext conftest.$ac_ext ;; 8239esac 8240fi 8241 8242 8243 CFLAGS="$xorg_testset_save_CFLAGS" 8244 8245 eval supported=\$$cacheid 8246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8247printf "%s\n" "$supported" >&6; } 8248 if test "$supported" = "yes" ; then 8249 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8250 found="yes" 8251 fi 8252 fi 8253 8254 if test $found = "no" ; then 8255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8257 fi 8258 8259 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8261 fi 8262 8263 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8264 8265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8266printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8267 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8268 if eval test \${$cacheid+y} 8269then : 8270 printf %s "(cached) " >&6 8271else case e in #( 8272 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8273/* end confdefs.h. */ 8274int i; 8275int 8276main (void) 8277{ 8278 8279 ; 8280 return 0; 8281} 8282_ACEOF 8283if ac_fn_c_try_link "$LINENO" 8284then : 8285 eval $cacheid=yes 8286else case e in #( 8287 e) eval $cacheid=no ;; 8288esac 8289fi 8290rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8291 conftest$ac_exeext conftest.$ac_ext ;; 8292esac 8293fi 8294 8295 8296 CFLAGS="$xorg_testset_save_CFLAGS" 8297 8298 eval supported=\$$cacheid 8299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8300printf "%s\n" "$supported" >&6; } 8301 if test "$supported" = "yes" ; then 8302 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8303 found="yes" 8304 fi 8305 fi 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321xorg_testset_save_CFLAGS="$CFLAGS" 8322 8323if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8324 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8326printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8327if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8328then : 8329 printf %s "(cached) " >&6 8330else case e in #( 8331 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8332/* end confdefs.h. */ 8333int i; 8334_ACEOF 8335if ac_fn_c_try_compile "$LINENO" 8336then : 8337 xorg_cv_cc_flag_unknown_warning_option=yes 8338else case e in #( 8339 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8340esac 8341fi 8342rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8343esac 8344fi 8345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8346printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8347 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8348 CFLAGS="$xorg_testset_save_CFLAGS" 8349fi 8350 8351if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8352 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8353 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8354 fi 8355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8357printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8358if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8359then : 8360 printf %s "(cached) " >&6 8361else case e in #( 8362 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8363/* end confdefs.h. */ 8364int i; 8365_ACEOF 8366if ac_fn_c_try_compile "$LINENO" 8367then : 8368 xorg_cv_cc_flag_unused_command_line_argument=yes 8369else case e in #( 8370 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8371esac 8372fi 8373rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8374esac 8375fi 8376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8377printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8378 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8379 CFLAGS="$xorg_testset_save_CFLAGS" 8380fi 8381 8382found="no" 8383 8384 if test $found = "no" ; then 8385 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8386 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8387 fi 8388 8389 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8391 fi 8392 8393 CFLAGS="$CFLAGS -Werror=trigraphs" 8394 8395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8396printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8397 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8398 if eval test \${$cacheid+y} 8399then : 8400 printf %s "(cached) " >&6 8401else case e in #( 8402 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8403/* end confdefs.h. */ 8404int i; 8405int 8406main (void) 8407{ 8408 8409 ; 8410 return 0; 8411} 8412_ACEOF 8413if ac_fn_c_try_link "$LINENO" 8414then : 8415 eval $cacheid=yes 8416else case e in #( 8417 e) eval $cacheid=no ;; 8418esac 8419fi 8420rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8421 conftest$ac_exeext conftest.$ac_ext ;; 8422esac 8423fi 8424 8425 8426 CFLAGS="$xorg_testset_save_CFLAGS" 8427 8428 eval supported=\$$cacheid 8429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8430printf "%s\n" "$supported" >&6; } 8431 if test "$supported" = "yes" ; then 8432 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8433 found="yes" 8434 fi 8435 fi 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451xorg_testset_save_CFLAGS="$CFLAGS" 8452 8453if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8454 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8456printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8457if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8458then : 8459 printf %s "(cached) " >&6 8460else case e in #( 8461 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8462/* end confdefs.h. */ 8463int i; 8464_ACEOF 8465if ac_fn_c_try_compile "$LINENO" 8466then : 8467 xorg_cv_cc_flag_unknown_warning_option=yes 8468else case e in #( 8469 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8470esac 8471fi 8472rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8473esac 8474fi 8475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8476printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8477 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8478 CFLAGS="$xorg_testset_save_CFLAGS" 8479fi 8480 8481if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8482 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8483 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8484 fi 8485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8487printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8488if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8489then : 8490 printf %s "(cached) " >&6 8491else case e in #( 8492 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8493/* end confdefs.h. */ 8494int i; 8495_ACEOF 8496if ac_fn_c_try_compile "$LINENO" 8497then : 8498 xorg_cv_cc_flag_unused_command_line_argument=yes 8499else case e in #( 8500 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8501esac 8502fi 8503rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8504esac 8505fi 8506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8507printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8508 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8509 CFLAGS="$xorg_testset_save_CFLAGS" 8510fi 8511 8512found="no" 8513 8514 if test $found = "no" ; then 8515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8516 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8517 fi 8518 8519 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8521 fi 8522 8523 CFLAGS="$CFLAGS -Werror=array-bounds" 8524 8525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8526printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8527 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8528 if eval test \${$cacheid+y} 8529then : 8530 printf %s "(cached) " >&6 8531else case e in #( 8532 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8533/* end confdefs.h. */ 8534int i; 8535int 8536main (void) 8537{ 8538 8539 ; 8540 return 0; 8541} 8542_ACEOF 8543if ac_fn_c_try_link "$LINENO" 8544then : 8545 eval $cacheid=yes 8546else case e in #( 8547 e) eval $cacheid=no ;; 8548esac 8549fi 8550rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8551 conftest$ac_exeext conftest.$ac_ext ;; 8552esac 8553fi 8554 8555 8556 CFLAGS="$xorg_testset_save_CFLAGS" 8557 8558 eval supported=\$$cacheid 8559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8560printf "%s\n" "$supported" >&6; } 8561 if test "$supported" = "yes" ; then 8562 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8563 found="yes" 8564 fi 8565 fi 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581xorg_testset_save_CFLAGS="$CFLAGS" 8582 8583if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8586printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8587if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8588then : 8589 printf %s "(cached) " >&6 8590else case e in #( 8591 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8592/* end confdefs.h. */ 8593int i; 8594_ACEOF 8595if ac_fn_c_try_compile "$LINENO" 8596then : 8597 xorg_cv_cc_flag_unknown_warning_option=yes 8598else case e in #( 8599 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8600esac 8601fi 8602rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8603esac 8604fi 8605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8606printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8607 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8608 CFLAGS="$xorg_testset_save_CFLAGS" 8609fi 8610 8611if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8612 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8613 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8614 fi 8615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8617printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8618if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8619then : 8620 printf %s "(cached) " >&6 8621else case e in #( 8622 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8623/* end confdefs.h. */ 8624int i; 8625_ACEOF 8626if ac_fn_c_try_compile "$LINENO" 8627then : 8628 xorg_cv_cc_flag_unused_command_line_argument=yes 8629else case e in #( 8630 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8631esac 8632fi 8633rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8634esac 8635fi 8636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8637printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8638 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8639 CFLAGS="$xorg_testset_save_CFLAGS" 8640fi 8641 8642found="no" 8643 8644 if test $found = "no" ; then 8645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8646 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8647 fi 8648 8649 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8651 fi 8652 8653 CFLAGS="$CFLAGS -Werror=write-strings" 8654 8655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8656printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8657 cacheid=xorg_cv_cc_flag__Werror_write_strings 8658 if eval test \${$cacheid+y} 8659then : 8660 printf %s "(cached) " >&6 8661else case e in #( 8662 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8663/* end confdefs.h. */ 8664int i; 8665int 8666main (void) 8667{ 8668 8669 ; 8670 return 0; 8671} 8672_ACEOF 8673if ac_fn_c_try_link "$LINENO" 8674then : 8675 eval $cacheid=yes 8676else case e in #( 8677 e) eval $cacheid=no ;; 8678esac 8679fi 8680rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8681 conftest$ac_exeext conftest.$ac_ext ;; 8682esac 8683fi 8684 8685 8686 CFLAGS="$xorg_testset_save_CFLAGS" 8687 8688 eval supported=\$$cacheid 8689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8690printf "%s\n" "$supported" >&6; } 8691 if test "$supported" = "yes" ; then 8692 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8693 found="yes" 8694 fi 8695 fi 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711xorg_testset_save_CFLAGS="$CFLAGS" 8712 8713if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8716printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8717if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8718then : 8719 printf %s "(cached) " >&6 8720else case e in #( 8721 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8722/* end confdefs.h. */ 8723int i; 8724_ACEOF 8725if ac_fn_c_try_compile "$LINENO" 8726then : 8727 xorg_cv_cc_flag_unknown_warning_option=yes 8728else case e in #( 8729 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8730esac 8731fi 8732rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8733esac 8734fi 8735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8736printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8737 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8738 CFLAGS="$xorg_testset_save_CFLAGS" 8739fi 8740 8741if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8744 fi 8745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8747printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8748if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8749then : 8750 printf %s "(cached) " >&6 8751else case e in #( 8752 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8753/* end confdefs.h. */ 8754int i; 8755_ACEOF 8756if ac_fn_c_try_compile "$LINENO" 8757then : 8758 xorg_cv_cc_flag_unused_command_line_argument=yes 8759else case e in #( 8760 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8761esac 8762fi 8763rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8764esac 8765fi 8766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8767printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8768 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8769 CFLAGS="$xorg_testset_save_CFLAGS" 8770fi 8771 8772found="no" 8773 8774 if test $found = "no" ; then 8775 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8777 fi 8778 8779 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8781 fi 8782 8783 CFLAGS="$CFLAGS -Werror=address" 8784 8785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8786printf %s "checking if $CC supports -Werror=address... " >&6; } 8787 cacheid=xorg_cv_cc_flag__Werror_address 8788 if eval test \${$cacheid+y} 8789then : 8790 printf %s "(cached) " >&6 8791else case e in #( 8792 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8793/* end confdefs.h. */ 8794int i; 8795int 8796main (void) 8797{ 8798 8799 ; 8800 return 0; 8801} 8802_ACEOF 8803if ac_fn_c_try_link "$LINENO" 8804then : 8805 eval $cacheid=yes 8806else case e in #( 8807 e) eval $cacheid=no ;; 8808esac 8809fi 8810rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8811 conftest$ac_exeext conftest.$ac_ext ;; 8812esac 8813fi 8814 8815 8816 CFLAGS="$xorg_testset_save_CFLAGS" 8817 8818 eval supported=\$$cacheid 8819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8820printf "%s\n" "$supported" >&6; } 8821 if test "$supported" = "yes" ; then 8822 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8823 found="yes" 8824 fi 8825 fi 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841xorg_testset_save_CFLAGS="$CFLAGS" 8842 8843if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8846printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8847if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8848then : 8849 printf %s "(cached) " >&6 8850else case e in #( 8851 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8852/* end confdefs.h. */ 8853int i; 8854_ACEOF 8855if ac_fn_c_try_compile "$LINENO" 8856then : 8857 xorg_cv_cc_flag_unknown_warning_option=yes 8858else case e in #( 8859 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8860esac 8861fi 8862rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8863esac 8864fi 8865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8866printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8867 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8868 CFLAGS="$xorg_testset_save_CFLAGS" 8869fi 8870 8871if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8872 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8873 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8874 fi 8875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8877printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8878if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8879then : 8880 printf %s "(cached) " >&6 8881else case e in #( 8882 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8883/* end confdefs.h. */ 8884int i; 8885_ACEOF 8886if ac_fn_c_try_compile "$LINENO" 8887then : 8888 xorg_cv_cc_flag_unused_command_line_argument=yes 8889else case e in #( 8890 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8891esac 8892fi 8893rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8894esac 8895fi 8896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8897printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8898 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8899 CFLAGS="$xorg_testset_save_CFLAGS" 8900fi 8901 8902found="no" 8903 8904 if test $found = "no" ; then 8905 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8906 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8907 fi 8908 8909 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8911 fi 8912 8913 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8914 8915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8916printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8917 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8918 if eval test \${$cacheid+y} 8919then : 8920 printf %s "(cached) " >&6 8921else case e in #( 8922 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8923/* end confdefs.h. */ 8924int i; 8925int 8926main (void) 8927{ 8928 8929 ; 8930 return 0; 8931} 8932_ACEOF 8933if ac_fn_c_try_link "$LINENO" 8934then : 8935 eval $cacheid=yes 8936else case e in #( 8937 e) eval $cacheid=no ;; 8938esac 8939fi 8940rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8941 conftest$ac_exeext conftest.$ac_ext ;; 8942esac 8943fi 8944 8945 8946 CFLAGS="$xorg_testset_save_CFLAGS" 8947 8948 eval supported=\$$cacheid 8949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8950printf "%s\n" "$supported" >&6; } 8951 if test "$supported" = "yes" ; then 8952 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8953 found="yes" 8954 fi 8955 fi 8956 8957 if test $found = "no" ; then 8958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8960 fi 8961 8962 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8964 fi 8965 8966 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8967 8968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8969printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8970 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8971 if eval test \${$cacheid+y} 8972then : 8973 printf %s "(cached) " >&6 8974else case e in #( 8975 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8976/* end confdefs.h. */ 8977int i; 8978int 8979main (void) 8980{ 8981 8982 ; 8983 return 0; 8984} 8985_ACEOF 8986if ac_fn_c_try_link "$LINENO" 8987then : 8988 eval $cacheid=yes 8989else case e in #( 8990 e) eval $cacheid=no ;; 8991esac 8992fi 8993rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8994 conftest$ac_exeext conftest.$ac_ext ;; 8995esac 8996fi 8997 8998 8999 CFLAGS="$xorg_testset_save_CFLAGS" 9000 9001 eval supported=\$$cacheid 9002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9003printf "%s\n" "$supported" >&6; } 9004 if test "$supported" = "yes" ; then 9005 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9006 found="yes" 9007 fi 9008 fi 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024xorg_testset_save_CFLAGS="$CFLAGS" 9025 9026if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9027 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9029printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9030if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9031then : 9032 printf %s "(cached) " >&6 9033else case e in #( 9034 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9035/* end confdefs.h. */ 9036int i; 9037_ACEOF 9038if ac_fn_c_try_compile "$LINENO" 9039then : 9040 xorg_cv_cc_flag_unknown_warning_option=yes 9041else case e in #( 9042 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9043esac 9044fi 9045rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9046esac 9047fi 9048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9049printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9050 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9051 CFLAGS="$xorg_testset_save_CFLAGS" 9052fi 9053 9054if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9057 fi 9058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9060printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9061if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9062then : 9063 printf %s "(cached) " >&6 9064else case e in #( 9065 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9066/* end confdefs.h. */ 9067int i; 9068_ACEOF 9069if ac_fn_c_try_compile "$LINENO" 9070then : 9071 xorg_cv_cc_flag_unused_command_line_argument=yes 9072else case e in #( 9073 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9074esac 9075fi 9076rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9077esac 9078fi 9079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9080printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9081 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9082 CFLAGS="$xorg_testset_save_CFLAGS" 9083fi 9084 9085found="no" 9086 9087 if test $found = "no" ; then 9088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9090 fi 9091 9092 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9094 fi 9095 9096 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9097 9098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9099printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9100 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9101 if eval test \${$cacheid+y} 9102then : 9103 printf %s "(cached) " >&6 9104else case e in #( 9105 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9106/* end confdefs.h. */ 9107int i; 9108int 9109main (void) 9110{ 9111 9112 ; 9113 return 0; 9114} 9115_ACEOF 9116if ac_fn_c_try_link "$LINENO" 9117then : 9118 eval $cacheid=yes 9119else case e in #( 9120 e) eval $cacheid=no ;; 9121esac 9122fi 9123rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9124 conftest$ac_exeext conftest.$ac_ext ;; 9125esac 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 -Werror=pointer-to-int-cast" 9136 found="yes" 9137 fi 9138 fi 9139 9140 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9141else 9142{ 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 9143printf "%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;} 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157xorg_testset_save_CFLAGS="$CFLAGS" 9158 9159if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9160 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9162printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9163if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9164then : 9165 printf %s "(cached) " >&6 9166else case e in #( 9167 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9168/* end confdefs.h. */ 9169int i; 9170_ACEOF 9171if ac_fn_c_try_compile "$LINENO" 9172then : 9173 xorg_cv_cc_flag_unknown_warning_option=yes 9174else case e in #( 9175 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9176esac 9177fi 9178rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9179esac 9180fi 9181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9182printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9183 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9184 CFLAGS="$xorg_testset_save_CFLAGS" 9185fi 9186 9187if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9190 fi 9191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9193printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9194if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9195then : 9196 printf %s "(cached) " >&6 9197else case e in #( 9198 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9199/* end confdefs.h. */ 9200int i; 9201_ACEOF 9202if ac_fn_c_try_compile "$LINENO" 9203then : 9204 xorg_cv_cc_flag_unused_command_line_argument=yes 9205else case e in #( 9206 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9207esac 9208fi 9209rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9210esac 9211fi 9212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9213printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9214 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9215 CFLAGS="$xorg_testset_save_CFLAGS" 9216fi 9217 9218found="no" 9219 9220 if test $found = "no" ; then 9221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9223 fi 9224 9225 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9227 fi 9228 9229 CFLAGS="$CFLAGS -Wimplicit" 9230 9231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9232printf %s "checking if $CC supports -Wimplicit... " >&6; } 9233 cacheid=xorg_cv_cc_flag__Wimplicit 9234 if eval test \${$cacheid+y} 9235then : 9236 printf %s "(cached) " >&6 9237else case e in #( 9238 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9239/* end confdefs.h. */ 9240int i; 9241int 9242main (void) 9243{ 9244 9245 ; 9246 return 0; 9247} 9248_ACEOF 9249if ac_fn_c_try_link "$LINENO" 9250then : 9251 eval $cacheid=yes 9252else case e in #( 9253 e) eval $cacheid=no ;; 9254esac 9255fi 9256rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9257 conftest$ac_exeext conftest.$ac_ext ;; 9258esac 9259fi 9260 9261 9262 CFLAGS="$xorg_testset_save_CFLAGS" 9263 9264 eval supported=\$$cacheid 9265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9266printf "%s\n" "$supported" >&6; } 9267 if test "$supported" = "yes" ; then 9268 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9269 found="yes" 9270 fi 9271 fi 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287xorg_testset_save_CFLAGS="$CFLAGS" 9288 9289if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9290 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9292printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9293if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9294then : 9295 printf %s "(cached) " >&6 9296else case e in #( 9297 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9298/* end confdefs.h. */ 9299int i; 9300_ACEOF 9301if ac_fn_c_try_compile "$LINENO" 9302then : 9303 xorg_cv_cc_flag_unknown_warning_option=yes 9304else case e in #( 9305 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9306esac 9307fi 9308rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9309esac 9310fi 9311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9312printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9313 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9314 CFLAGS="$xorg_testset_save_CFLAGS" 9315fi 9316 9317if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9320 fi 9321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9323printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9324if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9325then : 9326 printf %s "(cached) " >&6 9327else case e in #( 9328 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9329/* end confdefs.h. */ 9330int i; 9331_ACEOF 9332if ac_fn_c_try_compile "$LINENO" 9333then : 9334 xorg_cv_cc_flag_unused_command_line_argument=yes 9335else case e in #( 9336 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9337esac 9338fi 9339rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9340esac 9341fi 9342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9343printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9344 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9345 CFLAGS="$xorg_testset_save_CFLAGS" 9346fi 9347 9348found="no" 9349 9350 if test $found = "no" ; then 9351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9352 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9353 fi 9354 9355 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9357 fi 9358 9359 CFLAGS="$CFLAGS -Wnonnull" 9360 9361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9362printf %s "checking if $CC supports -Wnonnull... " >&6; } 9363 cacheid=xorg_cv_cc_flag__Wnonnull 9364 if eval test \${$cacheid+y} 9365then : 9366 printf %s "(cached) " >&6 9367else case e in #( 9368 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9369/* end confdefs.h. */ 9370int i; 9371int 9372main (void) 9373{ 9374 9375 ; 9376 return 0; 9377} 9378_ACEOF 9379if ac_fn_c_try_link "$LINENO" 9380then : 9381 eval $cacheid=yes 9382else case e in #( 9383 e) eval $cacheid=no ;; 9384esac 9385fi 9386rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9387 conftest$ac_exeext conftest.$ac_ext ;; 9388esac 9389fi 9390 9391 9392 CFLAGS="$xorg_testset_save_CFLAGS" 9393 9394 eval supported=\$$cacheid 9395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9396printf "%s\n" "$supported" >&6; } 9397 if test "$supported" = "yes" ; then 9398 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9399 found="yes" 9400 fi 9401 fi 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417xorg_testset_save_CFLAGS="$CFLAGS" 9418 9419if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9420 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9422printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9423if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9424then : 9425 printf %s "(cached) " >&6 9426else case e in #( 9427 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9428/* end confdefs.h. */ 9429int i; 9430_ACEOF 9431if ac_fn_c_try_compile "$LINENO" 9432then : 9433 xorg_cv_cc_flag_unknown_warning_option=yes 9434else case e in #( 9435 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9436esac 9437fi 9438rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9439esac 9440fi 9441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9442printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9443 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9444 CFLAGS="$xorg_testset_save_CFLAGS" 9445fi 9446 9447if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9449 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9450 fi 9451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9453printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9454if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9455then : 9456 printf %s "(cached) " >&6 9457else case e in #( 9458 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9459/* end confdefs.h. */ 9460int i; 9461_ACEOF 9462if ac_fn_c_try_compile "$LINENO" 9463then : 9464 xorg_cv_cc_flag_unused_command_line_argument=yes 9465else case e in #( 9466 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9467esac 9468fi 9469rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9470esac 9471fi 9472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9473printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9474 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9475 CFLAGS="$xorg_testset_save_CFLAGS" 9476fi 9477 9478found="no" 9479 9480 if test $found = "no" ; then 9481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9483 fi 9484 9485 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9487 fi 9488 9489 CFLAGS="$CFLAGS -Winit-self" 9490 9491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9492printf %s "checking if $CC supports -Winit-self... " >&6; } 9493 cacheid=xorg_cv_cc_flag__Winit_self 9494 if eval test \${$cacheid+y} 9495then : 9496 printf %s "(cached) " >&6 9497else case e in #( 9498 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9499/* end confdefs.h. */ 9500int i; 9501int 9502main (void) 9503{ 9504 9505 ; 9506 return 0; 9507} 9508_ACEOF 9509if ac_fn_c_try_link "$LINENO" 9510then : 9511 eval $cacheid=yes 9512else case e in #( 9513 e) eval $cacheid=no ;; 9514esac 9515fi 9516rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9517 conftest$ac_exeext conftest.$ac_ext ;; 9518esac 9519fi 9520 9521 9522 CFLAGS="$xorg_testset_save_CFLAGS" 9523 9524 eval supported=\$$cacheid 9525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9526printf "%s\n" "$supported" >&6; } 9527 if test "$supported" = "yes" ; then 9528 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9529 found="yes" 9530 fi 9531 fi 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547xorg_testset_save_CFLAGS="$CFLAGS" 9548 9549if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9550 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9552printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9553if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9554then : 9555 printf %s "(cached) " >&6 9556else case e in #( 9557 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9558/* end confdefs.h. */ 9559int i; 9560_ACEOF 9561if ac_fn_c_try_compile "$LINENO" 9562then : 9563 xorg_cv_cc_flag_unknown_warning_option=yes 9564else case e in #( 9565 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9566esac 9567fi 9568rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9569esac 9570fi 9571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9572printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9573 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9574 CFLAGS="$xorg_testset_save_CFLAGS" 9575fi 9576 9577if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9579 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9580 fi 9581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9583printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9584if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9585then : 9586 printf %s "(cached) " >&6 9587else case e in #( 9588 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9589/* end confdefs.h. */ 9590int i; 9591_ACEOF 9592if ac_fn_c_try_compile "$LINENO" 9593then : 9594 xorg_cv_cc_flag_unused_command_line_argument=yes 9595else case e in #( 9596 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9597esac 9598fi 9599rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9600esac 9601fi 9602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9603printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9604 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9605 CFLAGS="$xorg_testset_save_CFLAGS" 9606fi 9607 9608found="no" 9609 9610 if test $found = "no" ; then 9611 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9612 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9613 fi 9614 9615 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9617 fi 9618 9619 CFLAGS="$CFLAGS -Wmain" 9620 9621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9622printf %s "checking if $CC supports -Wmain... " >&6; } 9623 cacheid=xorg_cv_cc_flag__Wmain 9624 if eval test \${$cacheid+y} 9625then : 9626 printf %s "(cached) " >&6 9627else case e in #( 9628 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9629/* end confdefs.h. */ 9630int i; 9631int 9632main (void) 9633{ 9634 9635 ; 9636 return 0; 9637} 9638_ACEOF 9639if ac_fn_c_try_link "$LINENO" 9640then : 9641 eval $cacheid=yes 9642else case e in #( 9643 e) eval $cacheid=no ;; 9644esac 9645fi 9646rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9647 conftest$ac_exeext conftest.$ac_ext ;; 9648esac 9649fi 9650 9651 9652 CFLAGS="$xorg_testset_save_CFLAGS" 9653 9654 eval supported=\$$cacheid 9655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9656printf "%s\n" "$supported" >&6; } 9657 if test "$supported" = "yes" ; then 9658 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9659 found="yes" 9660 fi 9661 fi 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677xorg_testset_save_CFLAGS="$CFLAGS" 9678 9679if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9682printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9683if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9684then : 9685 printf %s "(cached) " >&6 9686else case e in #( 9687 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9688/* end confdefs.h. */ 9689int i; 9690_ACEOF 9691if ac_fn_c_try_compile "$LINENO" 9692then : 9693 xorg_cv_cc_flag_unknown_warning_option=yes 9694else case e in #( 9695 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9696esac 9697fi 9698rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9699esac 9700fi 9701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9702printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9703 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9704 CFLAGS="$xorg_testset_save_CFLAGS" 9705fi 9706 9707if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9710 fi 9711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9713printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9714if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9715then : 9716 printf %s "(cached) " >&6 9717else case e in #( 9718 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9719/* end confdefs.h. */ 9720int i; 9721_ACEOF 9722if ac_fn_c_try_compile "$LINENO" 9723then : 9724 xorg_cv_cc_flag_unused_command_line_argument=yes 9725else case e in #( 9726 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9727esac 9728fi 9729rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9730esac 9731fi 9732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9733printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9734 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9735 CFLAGS="$xorg_testset_save_CFLAGS" 9736fi 9737 9738found="no" 9739 9740 if test $found = "no" ; then 9741 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9743 fi 9744 9745 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9747 fi 9748 9749 CFLAGS="$CFLAGS -Wmissing-braces" 9750 9751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9752printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9753 cacheid=xorg_cv_cc_flag__Wmissing_braces 9754 if eval test \${$cacheid+y} 9755then : 9756 printf %s "(cached) " >&6 9757else case e in #( 9758 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9759/* end confdefs.h. */ 9760int i; 9761int 9762main (void) 9763{ 9764 9765 ; 9766 return 0; 9767} 9768_ACEOF 9769if ac_fn_c_try_link "$LINENO" 9770then : 9771 eval $cacheid=yes 9772else case e in #( 9773 e) eval $cacheid=no ;; 9774esac 9775fi 9776rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9777 conftest$ac_exeext conftest.$ac_ext ;; 9778esac 9779fi 9780 9781 9782 CFLAGS="$xorg_testset_save_CFLAGS" 9783 9784 eval supported=\$$cacheid 9785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9786printf "%s\n" "$supported" >&6; } 9787 if test "$supported" = "yes" ; then 9788 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9789 found="yes" 9790 fi 9791 fi 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807xorg_testset_save_CFLAGS="$CFLAGS" 9808 9809if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9812printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9813if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9814then : 9815 printf %s "(cached) " >&6 9816else case e in #( 9817 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9818/* end confdefs.h. */ 9819int i; 9820_ACEOF 9821if ac_fn_c_try_compile "$LINENO" 9822then : 9823 xorg_cv_cc_flag_unknown_warning_option=yes 9824else case e in #( 9825 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9826esac 9827fi 9828rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9829esac 9830fi 9831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9832printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9833 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9834 CFLAGS="$xorg_testset_save_CFLAGS" 9835fi 9836 9837if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9838 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9839 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9840 fi 9841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9843printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9844if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9845then : 9846 printf %s "(cached) " >&6 9847else case e in #( 9848 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9849/* end confdefs.h. */ 9850int i; 9851_ACEOF 9852if ac_fn_c_try_compile "$LINENO" 9853then : 9854 xorg_cv_cc_flag_unused_command_line_argument=yes 9855else case e in #( 9856 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9857esac 9858fi 9859rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9860esac 9861fi 9862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9863printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9864 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9865 CFLAGS="$xorg_testset_save_CFLAGS" 9866fi 9867 9868found="no" 9869 9870 if test $found = "no" ; then 9871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9873 fi 9874 9875 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9877 fi 9878 9879 CFLAGS="$CFLAGS -Wsequence-point" 9880 9881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9882printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9883 cacheid=xorg_cv_cc_flag__Wsequence_point 9884 if eval test \${$cacheid+y} 9885then : 9886 printf %s "(cached) " >&6 9887else case e in #( 9888 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9889/* end confdefs.h. */ 9890int i; 9891int 9892main (void) 9893{ 9894 9895 ; 9896 return 0; 9897} 9898_ACEOF 9899if ac_fn_c_try_link "$LINENO" 9900then : 9901 eval $cacheid=yes 9902else case e in #( 9903 e) eval $cacheid=no ;; 9904esac 9905fi 9906rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9907 conftest$ac_exeext conftest.$ac_ext ;; 9908esac 9909fi 9910 9911 9912 CFLAGS="$xorg_testset_save_CFLAGS" 9913 9914 eval supported=\$$cacheid 9915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9916printf "%s\n" "$supported" >&6; } 9917 if test "$supported" = "yes" ; then 9918 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9919 found="yes" 9920 fi 9921 fi 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937xorg_testset_save_CFLAGS="$CFLAGS" 9938 9939if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9942printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9943if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9944then : 9945 printf %s "(cached) " >&6 9946else case e in #( 9947 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9948/* end confdefs.h. */ 9949int i; 9950_ACEOF 9951if ac_fn_c_try_compile "$LINENO" 9952then : 9953 xorg_cv_cc_flag_unknown_warning_option=yes 9954else case e in #( 9955 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9956esac 9957fi 9958rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9959esac 9960fi 9961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9962printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9963 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9964 CFLAGS="$xorg_testset_save_CFLAGS" 9965fi 9966 9967if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9968 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9970 fi 9971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9973printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9974if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9975then : 9976 printf %s "(cached) " >&6 9977else case e in #( 9978 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9979/* end confdefs.h. */ 9980int i; 9981_ACEOF 9982if ac_fn_c_try_compile "$LINENO" 9983then : 9984 xorg_cv_cc_flag_unused_command_line_argument=yes 9985else case e in #( 9986 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9987esac 9988fi 9989rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9990esac 9991fi 9992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9993printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9994 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9995 CFLAGS="$xorg_testset_save_CFLAGS" 9996fi 9997 9998found="no" 9999 10000 if test $found = "no" ; then 10001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10002 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10003 fi 10004 10005 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10007 fi 10008 10009 CFLAGS="$CFLAGS -Wreturn-type" 10010 10011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 10012printf %s "checking if $CC supports -Wreturn-type... " >&6; } 10013 cacheid=xorg_cv_cc_flag__Wreturn_type 10014 if eval test \${$cacheid+y} 10015then : 10016 printf %s "(cached) " >&6 10017else case e in #( 10018 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10019/* end confdefs.h. */ 10020int i; 10021int 10022main (void) 10023{ 10024 10025 ; 10026 return 0; 10027} 10028_ACEOF 10029if ac_fn_c_try_link "$LINENO" 10030then : 10031 eval $cacheid=yes 10032else case e in #( 10033 e) eval $cacheid=no ;; 10034esac 10035fi 10036rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10037 conftest$ac_exeext conftest.$ac_ext ;; 10038esac 10039fi 10040 10041 10042 CFLAGS="$xorg_testset_save_CFLAGS" 10043 10044 eval supported=\$$cacheid 10045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10046printf "%s\n" "$supported" >&6; } 10047 if test "$supported" = "yes" ; then 10048 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 10049 found="yes" 10050 fi 10051 fi 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067xorg_testset_save_CFLAGS="$CFLAGS" 10068 10069if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10072printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10073if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10074then : 10075 printf %s "(cached) " >&6 10076else case e in #( 10077 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10078/* end confdefs.h. */ 10079int i; 10080_ACEOF 10081if ac_fn_c_try_compile "$LINENO" 10082then : 10083 xorg_cv_cc_flag_unknown_warning_option=yes 10084else case e in #( 10085 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10086esac 10087fi 10088rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10089esac 10090fi 10091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10092printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10093 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10094 CFLAGS="$xorg_testset_save_CFLAGS" 10095fi 10096 10097if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10099 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10100 fi 10101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10103printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10104if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10105then : 10106 printf %s "(cached) " >&6 10107else case e in #( 10108 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10109/* end confdefs.h. */ 10110int i; 10111_ACEOF 10112if ac_fn_c_try_compile "$LINENO" 10113then : 10114 xorg_cv_cc_flag_unused_command_line_argument=yes 10115else case e in #( 10116 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10117esac 10118fi 10119rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10120esac 10121fi 10122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10123printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10124 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10125 CFLAGS="$xorg_testset_save_CFLAGS" 10126fi 10127 10128found="no" 10129 10130 if test $found = "no" ; then 10131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10133 fi 10134 10135 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10137 fi 10138 10139 CFLAGS="$CFLAGS -Wtrigraphs" 10140 10141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10142printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10143 cacheid=xorg_cv_cc_flag__Wtrigraphs 10144 if eval test \${$cacheid+y} 10145then : 10146 printf %s "(cached) " >&6 10147else case e in #( 10148 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10149/* end confdefs.h. */ 10150int i; 10151int 10152main (void) 10153{ 10154 10155 ; 10156 return 0; 10157} 10158_ACEOF 10159if ac_fn_c_try_link "$LINENO" 10160then : 10161 eval $cacheid=yes 10162else case e in #( 10163 e) eval $cacheid=no ;; 10164esac 10165fi 10166rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10167 conftest$ac_exeext conftest.$ac_ext ;; 10168esac 10169fi 10170 10171 10172 CFLAGS="$xorg_testset_save_CFLAGS" 10173 10174 eval supported=\$$cacheid 10175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10176printf "%s\n" "$supported" >&6; } 10177 if test "$supported" = "yes" ; then 10178 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10179 found="yes" 10180 fi 10181 fi 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197xorg_testset_save_CFLAGS="$CFLAGS" 10198 10199if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10202printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10203if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10204then : 10205 printf %s "(cached) " >&6 10206else case e in #( 10207 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10208/* end confdefs.h. */ 10209int i; 10210_ACEOF 10211if ac_fn_c_try_compile "$LINENO" 10212then : 10213 xorg_cv_cc_flag_unknown_warning_option=yes 10214else case e in #( 10215 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10216esac 10217fi 10218rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10219esac 10220fi 10221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10222printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10223 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10224 CFLAGS="$xorg_testset_save_CFLAGS" 10225fi 10226 10227if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10230 fi 10231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10233printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10234if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10235then : 10236 printf %s "(cached) " >&6 10237else case e in #( 10238 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10239/* end confdefs.h. */ 10240int i; 10241_ACEOF 10242if ac_fn_c_try_compile "$LINENO" 10243then : 10244 xorg_cv_cc_flag_unused_command_line_argument=yes 10245else case e in #( 10246 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10247esac 10248fi 10249rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10250esac 10251fi 10252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10253printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10254 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10255 CFLAGS="$xorg_testset_save_CFLAGS" 10256fi 10257 10258found="no" 10259 10260 if test $found = "no" ; then 10261 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10262 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10263 fi 10264 10265 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10267 fi 10268 10269 CFLAGS="$CFLAGS -Warray-bounds" 10270 10271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10272printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10273 cacheid=xorg_cv_cc_flag__Warray_bounds 10274 if eval test \${$cacheid+y} 10275then : 10276 printf %s "(cached) " >&6 10277else case e in #( 10278 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10279/* end confdefs.h. */ 10280int i; 10281int 10282main (void) 10283{ 10284 10285 ; 10286 return 0; 10287} 10288_ACEOF 10289if ac_fn_c_try_link "$LINENO" 10290then : 10291 eval $cacheid=yes 10292else case e in #( 10293 e) eval $cacheid=no ;; 10294esac 10295fi 10296rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10297 conftest$ac_exeext conftest.$ac_ext ;; 10298esac 10299fi 10300 10301 10302 CFLAGS="$xorg_testset_save_CFLAGS" 10303 10304 eval supported=\$$cacheid 10305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10306printf "%s\n" "$supported" >&6; } 10307 if test "$supported" = "yes" ; then 10308 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10309 found="yes" 10310 fi 10311 fi 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327xorg_testset_save_CFLAGS="$CFLAGS" 10328 10329if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10332printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10333if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10334then : 10335 printf %s "(cached) " >&6 10336else case e in #( 10337 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10338/* end confdefs.h. */ 10339int i; 10340_ACEOF 10341if ac_fn_c_try_compile "$LINENO" 10342then : 10343 xorg_cv_cc_flag_unknown_warning_option=yes 10344else case e in #( 10345 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10346esac 10347fi 10348rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10349esac 10350fi 10351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10352printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10353 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10354 CFLAGS="$xorg_testset_save_CFLAGS" 10355fi 10356 10357if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10359 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10360 fi 10361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10363printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10364if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10365then : 10366 printf %s "(cached) " >&6 10367else case e in #( 10368 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10369/* end confdefs.h. */ 10370int i; 10371_ACEOF 10372if ac_fn_c_try_compile "$LINENO" 10373then : 10374 xorg_cv_cc_flag_unused_command_line_argument=yes 10375else case e in #( 10376 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10377esac 10378fi 10379rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10380esac 10381fi 10382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10383printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10384 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10385 CFLAGS="$xorg_testset_save_CFLAGS" 10386fi 10387 10388found="no" 10389 10390 if test $found = "no" ; then 10391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10392 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10393 fi 10394 10395 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10397 fi 10398 10399 CFLAGS="$CFLAGS -Wwrite-strings" 10400 10401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10402printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10403 cacheid=xorg_cv_cc_flag__Wwrite_strings 10404 if eval test \${$cacheid+y} 10405then : 10406 printf %s "(cached) " >&6 10407else case e in #( 10408 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10409/* end confdefs.h. */ 10410int i; 10411int 10412main (void) 10413{ 10414 10415 ; 10416 return 0; 10417} 10418_ACEOF 10419if ac_fn_c_try_link "$LINENO" 10420then : 10421 eval $cacheid=yes 10422else case e in #( 10423 e) eval $cacheid=no ;; 10424esac 10425fi 10426rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10427 conftest$ac_exeext conftest.$ac_ext ;; 10428esac 10429fi 10430 10431 10432 CFLAGS="$xorg_testset_save_CFLAGS" 10433 10434 eval supported=\$$cacheid 10435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10436printf "%s\n" "$supported" >&6; } 10437 if test "$supported" = "yes" ; then 10438 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10439 found="yes" 10440 fi 10441 fi 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457xorg_testset_save_CFLAGS="$CFLAGS" 10458 10459if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10460 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10462printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10463if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10464then : 10465 printf %s "(cached) " >&6 10466else case e in #( 10467 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10468/* end confdefs.h. */ 10469int i; 10470_ACEOF 10471if ac_fn_c_try_compile "$LINENO" 10472then : 10473 xorg_cv_cc_flag_unknown_warning_option=yes 10474else case e in #( 10475 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10476esac 10477fi 10478rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10479esac 10480fi 10481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10482printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10483 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10484 CFLAGS="$xorg_testset_save_CFLAGS" 10485fi 10486 10487if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10490 fi 10491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10493printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10494if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10495then : 10496 printf %s "(cached) " >&6 10497else case e in #( 10498 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10499/* end confdefs.h. */ 10500int i; 10501_ACEOF 10502if ac_fn_c_try_compile "$LINENO" 10503then : 10504 xorg_cv_cc_flag_unused_command_line_argument=yes 10505else case e in #( 10506 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10507esac 10508fi 10509rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10510esac 10511fi 10512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10513printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10514 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10515 CFLAGS="$xorg_testset_save_CFLAGS" 10516fi 10517 10518found="no" 10519 10520 if test $found = "no" ; then 10521 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10522 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10523 fi 10524 10525 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10527 fi 10528 10529 CFLAGS="$CFLAGS -Waddress" 10530 10531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10532printf %s "checking if $CC supports -Waddress... " >&6; } 10533 cacheid=xorg_cv_cc_flag__Waddress 10534 if eval test \${$cacheid+y} 10535then : 10536 printf %s "(cached) " >&6 10537else case e in #( 10538 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10539/* end confdefs.h. */ 10540int i; 10541int 10542main (void) 10543{ 10544 10545 ; 10546 return 0; 10547} 10548_ACEOF 10549if ac_fn_c_try_link "$LINENO" 10550then : 10551 eval $cacheid=yes 10552else case e in #( 10553 e) eval $cacheid=no ;; 10554esac 10555fi 10556rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10557 conftest$ac_exeext conftest.$ac_ext ;; 10558esac 10559fi 10560 10561 10562 CFLAGS="$xorg_testset_save_CFLAGS" 10563 10564 eval supported=\$$cacheid 10565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10566printf "%s\n" "$supported" >&6; } 10567 if test "$supported" = "yes" ; then 10568 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10569 found="yes" 10570 fi 10571 fi 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587xorg_testset_save_CFLAGS="$CFLAGS" 10588 10589if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10590 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10592printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10593if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10594then : 10595 printf %s "(cached) " >&6 10596else case e in #( 10597 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10598/* end confdefs.h. */ 10599int i; 10600_ACEOF 10601if ac_fn_c_try_compile "$LINENO" 10602then : 10603 xorg_cv_cc_flag_unknown_warning_option=yes 10604else case e in #( 10605 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10606esac 10607fi 10608rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10609esac 10610fi 10611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10612printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10613 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10614 CFLAGS="$xorg_testset_save_CFLAGS" 10615fi 10616 10617if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10618 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10619 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10620 fi 10621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10623printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10624if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10625then : 10626 printf %s "(cached) " >&6 10627else case e in #( 10628 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10629/* end confdefs.h. */ 10630int i; 10631_ACEOF 10632if ac_fn_c_try_compile "$LINENO" 10633then : 10634 xorg_cv_cc_flag_unused_command_line_argument=yes 10635else case e in #( 10636 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10637esac 10638fi 10639rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10640esac 10641fi 10642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10643printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10644 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10645 CFLAGS="$xorg_testset_save_CFLAGS" 10646fi 10647 10648found="no" 10649 10650 if test $found = "no" ; then 10651 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10652 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10653 fi 10654 10655 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10657 fi 10658 10659 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10660 10661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10662printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10663 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10664 if eval test \${$cacheid+y} 10665then : 10666 printf %s "(cached) " >&6 10667else case e in #( 10668 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10669/* end confdefs.h. */ 10670int i; 10671int 10672main (void) 10673{ 10674 10675 ; 10676 return 0; 10677} 10678_ACEOF 10679if ac_fn_c_try_link "$LINENO" 10680then : 10681 eval $cacheid=yes 10682else case e in #( 10683 e) eval $cacheid=no ;; 10684esac 10685fi 10686rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10687 conftest$ac_exeext conftest.$ac_ext ;; 10688esac 10689fi 10690 10691 10692 CFLAGS="$xorg_testset_save_CFLAGS" 10693 10694 eval supported=\$$cacheid 10695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10696printf "%s\n" "$supported" >&6; } 10697 if test "$supported" = "yes" ; then 10698 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10699 found="yes" 10700 fi 10701 fi 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717xorg_testset_save_CFLAGS="$CFLAGS" 10718 10719if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10722printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10723if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10724then : 10725 printf %s "(cached) " >&6 10726else case e in #( 10727 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10728/* end confdefs.h. */ 10729int i; 10730_ACEOF 10731if ac_fn_c_try_compile "$LINENO" 10732then : 10733 xorg_cv_cc_flag_unknown_warning_option=yes 10734else case e in #( 10735 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10736esac 10737fi 10738rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10739esac 10740fi 10741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10742printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10743 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10744 CFLAGS="$xorg_testset_save_CFLAGS" 10745fi 10746 10747if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10749 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10750 fi 10751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10753printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10754if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10755then : 10756 printf %s "(cached) " >&6 10757else case e in #( 10758 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10759/* end confdefs.h. */ 10760int i; 10761_ACEOF 10762if ac_fn_c_try_compile "$LINENO" 10763then : 10764 xorg_cv_cc_flag_unused_command_line_argument=yes 10765else case e in #( 10766 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10767esac 10768fi 10769rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10770esac 10771fi 10772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10773printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10774 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10775 CFLAGS="$xorg_testset_save_CFLAGS" 10776fi 10777 10778found="no" 10779 10780 if test $found = "no" ; then 10781 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10782 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10783 fi 10784 10785 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10787 fi 10788 10789 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10790 10791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10792printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10793 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10794 if eval test \${$cacheid+y} 10795then : 10796 printf %s "(cached) " >&6 10797else case e in #( 10798 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10799/* end confdefs.h. */ 10800int i; 10801int 10802main (void) 10803{ 10804 10805 ; 10806 return 0; 10807} 10808_ACEOF 10809if ac_fn_c_try_link "$LINENO" 10810then : 10811 eval $cacheid=yes 10812else case e in #( 10813 e) eval $cacheid=no ;; 10814esac 10815fi 10816rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10817 conftest$ac_exeext conftest.$ac_ext ;; 10818esac 10819fi 10820 10821 10822 CFLAGS="$xorg_testset_save_CFLAGS" 10823 10824 eval supported=\$$cacheid 10825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10826printf "%s\n" "$supported" >&6; } 10827 if test "$supported" = "yes" ; then 10828 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10829 found="yes" 10830 fi 10831 fi 10832 10833 10834fi 10835 10836 10837 10838 10839 10840 10841 10842 CWARNFLAGS="$BASE_CFLAGS" 10843 if test "x$GCC" = xyes ; then 10844 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10845 fi 10846 10847 10848 10849 10850 10851 10852 10853 10854# Check whether --enable-strict-compilation was given. 10855if test ${enable_strict_compilation+y} 10856then : 10857 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10858else case e in #( 10859 e) STRICT_COMPILE=no ;; 10860esac 10861fi 10862 10863 10864 10865 10866 10867 10868STRICT_CFLAGS="" 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882xorg_testset_save_CFLAGS="$CFLAGS" 10883 10884if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10885 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10887printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10888if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10889then : 10890 printf %s "(cached) " >&6 10891else case e in #( 10892 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10893/* end confdefs.h. */ 10894int i; 10895_ACEOF 10896if ac_fn_c_try_compile "$LINENO" 10897then : 10898 xorg_cv_cc_flag_unknown_warning_option=yes 10899else case e in #( 10900 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10901esac 10902fi 10903rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10904esac 10905fi 10906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10907printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10908 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10909 CFLAGS="$xorg_testset_save_CFLAGS" 10910fi 10911 10912if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10915 fi 10916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10918printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10919if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10920then : 10921 printf %s "(cached) " >&6 10922else case e in #( 10923 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10924/* end confdefs.h. */ 10925int i; 10926_ACEOF 10927if ac_fn_c_try_compile "$LINENO" 10928then : 10929 xorg_cv_cc_flag_unused_command_line_argument=yes 10930else case e in #( 10931 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10932esac 10933fi 10934rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10935esac 10936fi 10937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10938printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10939 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10940 CFLAGS="$xorg_testset_save_CFLAGS" 10941fi 10942 10943found="no" 10944 10945 if test $found = "no" ; then 10946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10947 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10948 fi 10949 10950 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10952 fi 10953 10954 CFLAGS="$CFLAGS -pedantic" 10955 10956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10957printf %s "checking if $CC supports -pedantic... " >&6; } 10958 cacheid=xorg_cv_cc_flag__pedantic 10959 if eval test \${$cacheid+y} 10960then : 10961 printf %s "(cached) " >&6 10962else case e in #( 10963 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10964/* end confdefs.h. */ 10965int i; 10966int 10967main (void) 10968{ 10969 10970 ; 10971 return 0; 10972} 10973_ACEOF 10974if ac_fn_c_try_link "$LINENO" 10975then : 10976 eval $cacheid=yes 10977else case e in #( 10978 e) eval $cacheid=no ;; 10979esac 10980fi 10981rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10982 conftest$ac_exeext conftest.$ac_ext ;; 10983esac 10984fi 10985 10986 10987 CFLAGS="$xorg_testset_save_CFLAGS" 10988 10989 eval supported=\$$cacheid 10990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10991printf "%s\n" "$supported" >&6; } 10992 if test "$supported" = "yes" ; then 10993 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10994 found="yes" 10995 fi 10996 fi 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012xorg_testset_save_CFLAGS="$CFLAGS" 11013 11014if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11015 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11017printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11018if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11019then : 11020 printf %s "(cached) " >&6 11021else case e in #( 11022 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11023/* end confdefs.h. */ 11024int i; 11025_ACEOF 11026if ac_fn_c_try_compile "$LINENO" 11027then : 11028 xorg_cv_cc_flag_unknown_warning_option=yes 11029else case e in #( 11030 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11031esac 11032fi 11033rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11034esac 11035fi 11036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11037printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11038 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11039 CFLAGS="$xorg_testset_save_CFLAGS" 11040fi 11041 11042if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11044 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11045 fi 11046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11048printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11049if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11050then : 11051 printf %s "(cached) " >&6 11052else case e in #( 11053 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11054/* end confdefs.h. */ 11055int i; 11056_ACEOF 11057if ac_fn_c_try_compile "$LINENO" 11058then : 11059 xorg_cv_cc_flag_unused_command_line_argument=yes 11060else case e in #( 11061 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11062esac 11063fi 11064rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11065esac 11066fi 11067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11068printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11069 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11070 CFLAGS="$xorg_testset_save_CFLAGS" 11071fi 11072 11073found="no" 11074 11075 if test $found = "no" ; then 11076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11078 fi 11079 11080 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11082 fi 11083 11084 CFLAGS="$CFLAGS -Werror" 11085 11086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11087printf %s "checking if $CC supports -Werror... " >&6; } 11088 cacheid=xorg_cv_cc_flag__Werror 11089 if eval test \${$cacheid+y} 11090then : 11091 printf %s "(cached) " >&6 11092else case e in #( 11093 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11094/* end confdefs.h. */ 11095int i; 11096int 11097main (void) 11098{ 11099 11100 ; 11101 return 0; 11102} 11103_ACEOF 11104if ac_fn_c_try_link "$LINENO" 11105then : 11106 eval $cacheid=yes 11107else case e in #( 11108 e) eval $cacheid=no ;; 11109esac 11110fi 11111rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11112 conftest$ac_exeext conftest.$ac_ext ;; 11113esac 11114fi 11115 11116 11117 CFLAGS="$xorg_testset_save_CFLAGS" 11118 11119 eval supported=\$$cacheid 11120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11121printf "%s\n" "$supported" >&6; } 11122 if test "$supported" = "yes" ; then 11123 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11124 found="yes" 11125 fi 11126 fi 11127 11128 if test $found = "no" ; then 11129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11131 fi 11132 11133 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11135 fi 11136 11137 CFLAGS="$CFLAGS -errwarn" 11138 11139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11140printf %s "checking if $CC supports -errwarn... " >&6; } 11141 cacheid=xorg_cv_cc_flag__errwarn 11142 if eval test \${$cacheid+y} 11143then : 11144 printf %s "(cached) " >&6 11145else case e in #( 11146 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11147/* end confdefs.h. */ 11148int i; 11149int 11150main (void) 11151{ 11152 11153 ; 11154 return 0; 11155} 11156_ACEOF 11157if ac_fn_c_try_link "$LINENO" 11158then : 11159 eval $cacheid=yes 11160else case e in #( 11161 e) eval $cacheid=no ;; 11162esac 11163fi 11164rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11165 conftest$ac_exeext conftest.$ac_ext ;; 11166esac 11167fi 11168 11169 11170 CFLAGS="$xorg_testset_save_CFLAGS" 11171 11172 eval supported=\$$cacheid 11173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11174printf "%s\n" "$supported" >&6; } 11175 if test "$supported" = "yes" ; then 11176 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11177 found="yes" 11178 fi 11179 fi 11180 11181 11182 11183# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11184# activate it with -Werror, so we add it here explicitly. 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198xorg_testset_save_CFLAGS="$CFLAGS" 11199 11200if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11203printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11204if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11205then : 11206 printf %s "(cached) " >&6 11207else case e in #( 11208 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11209/* end confdefs.h. */ 11210int i; 11211_ACEOF 11212if ac_fn_c_try_compile "$LINENO" 11213then : 11214 xorg_cv_cc_flag_unknown_warning_option=yes 11215else case e in #( 11216 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11217esac 11218fi 11219rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11220esac 11221fi 11222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11223printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11224 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11225 CFLAGS="$xorg_testset_save_CFLAGS" 11226fi 11227 11228if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11231 fi 11232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11234printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11235if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11236then : 11237 printf %s "(cached) " >&6 11238else case e in #( 11239 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11240/* end confdefs.h. */ 11241int i; 11242_ACEOF 11243if ac_fn_c_try_compile "$LINENO" 11244then : 11245 xorg_cv_cc_flag_unused_command_line_argument=yes 11246else case e in #( 11247 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11248esac 11249fi 11250rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11251esac 11252fi 11253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11254printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11255 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11256 CFLAGS="$xorg_testset_save_CFLAGS" 11257fi 11258 11259found="no" 11260 11261 if test $found = "no" ; then 11262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11264 fi 11265 11266 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11268 fi 11269 11270 CFLAGS="$CFLAGS -Werror=attributes" 11271 11272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11273printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11274 cacheid=xorg_cv_cc_flag__Werror_attributes 11275 if eval test \${$cacheid+y} 11276then : 11277 printf %s "(cached) " >&6 11278else case e in #( 11279 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11280/* end confdefs.h. */ 11281int i; 11282int 11283main (void) 11284{ 11285 11286 ; 11287 return 0; 11288} 11289_ACEOF 11290if ac_fn_c_try_link "$LINENO" 11291then : 11292 eval $cacheid=yes 11293else case e in #( 11294 e) eval $cacheid=no ;; 11295esac 11296fi 11297rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11298 conftest$ac_exeext conftest.$ac_ext ;; 11299esac 11300fi 11301 11302 11303 CFLAGS="$xorg_testset_save_CFLAGS" 11304 11305 eval supported=\$$cacheid 11306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11307printf "%s\n" "$supported" >&6; } 11308 if test "$supported" = "yes" ; then 11309 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11310 found="yes" 11311 fi 11312 fi 11313 11314 11315 11316if test "x$STRICT_COMPILE" = "xyes"; then 11317 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11318 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11319fi 11320 11321 11322 11323 11324 11325 11326 11327 11328cat >>confdefs.h <<_ACEOF 11329#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11330_ACEOF 11331 11332 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11333 if test "x$PVM" = "x"; then 11334 PVM="0" 11335 fi 11336 11337printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11338 11339 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11340 if test "x$PVP" = "x"; then 11341 PVP="0" 11342 fi 11343 11344printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11345 11346 11347 11348CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11349mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11350|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11351touch \$(top_srcdir)/ChangeLog; \ 11352echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11353 11354 11355 11356 11357macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11358INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11359mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11360|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11361touch \$(top_srcdir)/INSTALL; \ 11362echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11363 11364 11365 11366 11367 11368 11369case $host_os in 11370 solaris*) 11371 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11372 # check for a man page file found in later versions that use 11373 # traditional section numbers instead 11374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11375printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11376if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11377then : 11378 printf %s "(cached) " >&6 11379else case e in #( 11380 e) test "$cross_compiling" = yes && 11381 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11382if test -r "/usr/share/man/man7/attributes.7"; then 11383 ac_cv_file__usr_share_man_man7_attributes_7=yes 11384else 11385 ac_cv_file__usr_share_man_man7_attributes_7=no 11386fi ;; 11387esac 11388fi 11389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11390printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11391if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11392then : 11393 SYSV_MAN_SECTIONS=false 11394else case e in #( 11395 e) SYSV_MAN_SECTIONS=true ;; 11396esac 11397fi 11398 11399 ;; 11400 *) SYSV_MAN_SECTIONS=false ;; 11401esac 11402 11403if test x$APP_MAN_SUFFIX = x ; then 11404 APP_MAN_SUFFIX=1 11405fi 11406if test x$APP_MAN_DIR = x ; then 11407 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11408fi 11409 11410if test x$LIB_MAN_SUFFIX = x ; then 11411 LIB_MAN_SUFFIX=3 11412fi 11413if test x$LIB_MAN_DIR = x ; then 11414 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11415fi 11416 11417if test x$FILE_MAN_SUFFIX = x ; then 11418 case $SYSV_MAN_SECTIONS in 11419 true) FILE_MAN_SUFFIX=4 ;; 11420 *) FILE_MAN_SUFFIX=5 ;; 11421 esac 11422fi 11423if test x$FILE_MAN_DIR = x ; then 11424 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11425fi 11426 11427if test x$MISC_MAN_SUFFIX = x ; then 11428 case $SYSV_MAN_SECTIONS in 11429 true) MISC_MAN_SUFFIX=5 ;; 11430 *) MISC_MAN_SUFFIX=7 ;; 11431 esac 11432fi 11433if test x$MISC_MAN_DIR = x ; then 11434 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11435fi 11436 11437if test x$DRIVER_MAN_SUFFIX = x ; then 11438 case $SYSV_MAN_SECTIONS in 11439 true) DRIVER_MAN_SUFFIX=7 ;; 11440 *) DRIVER_MAN_SUFFIX=4 ;; 11441 esac 11442fi 11443if test x$DRIVER_MAN_DIR = x ; then 11444 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11445fi 11446 11447if test x$ADMIN_MAN_SUFFIX = x ; then 11448 case $SYSV_MAN_SECTIONS in 11449 true) ADMIN_MAN_SUFFIX=1m ;; 11450 *) ADMIN_MAN_SUFFIX=8 ;; 11451 esac 11452fi 11453if test x$ADMIN_MAN_DIR = x ; then 11454 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11455fi 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471XORG_MAN_PAGE="X Version 11" 11472 11473MAN_SUBSTS="\ 11474 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11475 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11476 -e 's|__xservername__|Xorg|g' \ 11477 -e 's|__xconfigfile__|xorg.conf|g' \ 11478 -e 's|__projectroot__|\$(prefix)|g' \ 11479 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11480 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11481 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11482 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11483 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11484 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11485 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11486 11487 11488 11489 11490AM_DEFAULT_VERBOSITY=0 11491 11492 11493 11494ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv" 11495if test "x$ac_cv_func_setenv" = xyes 11496then : 11497 have_setenv=yes 11498else case e in #( 11499 e) have_setenv=no ;; 11500esac 11501fi 11502 11503ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" 11504if test "x$ac_cv_func_vasprintf" = xyes 11505then : 11506 printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h 11507 11508fi 11509 11510ac_fn_check_decl "$LINENO" "va_copy" "ac_cv_have_decl_va_copy" " 11511 $ac_includes_default 11512 #include <stdarg.h> 11513 11514" "$ac_c_undeclared_builtin_options" "CFLAGS" 11515if test "x$ac_cv_have_decl_va_copy" = xyes 11516then : 11517 ac_have_decl=1 11518else case e in #( 11519 e) ac_have_decl=0 ;; 11520esac 11521fi 11522printf "%s\n" "#define HAVE_DECL_VA_COPY $ac_have_decl" >>confdefs.h 11523 11524 11525 if test x$have_setenv = xno; then 11526 NEED_SETENV_TRUE= 11527 NEED_SETENV_FALSE='#' 11528else 11529 NEED_SETENV_TRUE='#' 11530 NEED_SETENV_FALSE= 11531fi 11532 11533 11534# Checks for pkg-config packages 11535 11536pkg_failed=no 11537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FONTTOSFNT" >&5 11538printf %s "checking for FONTTOSFNT... " >&6; } 11539 11540if test -n "$FONTTOSFNT_CFLAGS"; then 11541 pkg_cv_FONTTOSFNT_CFLAGS="$FONTTOSFNT_CFLAGS" 11542 elif test -n "$PKG_CONFIG"; then 11543 if test -n "$PKG_CONFIG" && \ 11544 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto freetype2 fontenc\""; } >&5 11545 ($PKG_CONFIG --exists --print-errors "xproto freetype2 fontenc") 2>&5 11546 ac_status=$? 11547 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11548 test $ac_status = 0; }; then 11549 pkg_cv_FONTTOSFNT_CFLAGS=`$PKG_CONFIG --cflags "xproto freetype2 fontenc" 2>/dev/null` 11550 test "x$?" != "x0" && pkg_failed=yes 11551else 11552 pkg_failed=yes 11553fi 11554 else 11555 pkg_failed=untried 11556fi 11557if test -n "$FONTTOSFNT_LIBS"; then 11558 pkg_cv_FONTTOSFNT_LIBS="$FONTTOSFNT_LIBS" 11559 elif test -n "$PKG_CONFIG"; then 11560 if test -n "$PKG_CONFIG" && \ 11561 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto freetype2 fontenc\""; } >&5 11562 ($PKG_CONFIG --exists --print-errors "xproto freetype2 fontenc") 2>&5 11563 ac_status=$? 11564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11565 test $ac_status = 0; }; then 11566 pkg_cv_FONTTOSFNT_LIBS=`$PKG_CONFIG --libs "xproto freetype2 fontenc" 2>/dev/null` 11567 test "x$?" != "x0" && pkg_failed=yes 11568else 11569 pkg_failed=yes 11570fi 11571 else 11572 pkg_failed=untried 11573fi 11574 11575 11576 11577if test $pkg_failed = yes; then 11578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11579printf "%s\n" "no" >&6; } 11580 11581if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11582 _pkg_short_errors_supported=yes 11583else 11584 _pkg_short_errors_supported=no 11585fi 11586 if test $_pkg_short_errors_supported = yes; then 11587 FONTTOSFNT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto freetype2 fontenc" 2>&1` 11588 else 11589 FONTTOSFNT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto freetype2 fontenc" 2>&1` 11590 fi 11591 # Put the nasty error message in config.log where it belongs 11592 echo "$FONTTOSFNT_PKG_ERRORS" >&5 11593 11594 as_fn_error $? "Package requirements (xproto freetype2 fontenc) were not met: 11595 11596$FONTTOSFNT_PKG_ERRORS 11597 11598Consider adjusting the PKG_CONFIG_PATH environment variable if you 11599installed software in a non-standard prefix. 11600 11601Alternatively, you may set the environment variables FONTTOSFNT_CFLAGS 11602and FONTTOSFNT_LIBS to avoid the need to call pkg-config. 11603See the pkg-config man page for more details." "$LINENO" 5 11604elif test $pkg_failed = untried; then 11605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11606printf "%s\n" "no" >&6; } 11607 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11608printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11609as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11610is in your PATH or set the PKG_CONFIG environment variable to the full 11611path to pkg-config. 11612 11613Alternatively, you may set the environment variables FONTTOSFNT_CFLAGS 11614and FONTTOSFNT_LIBS to avoid the need to call pkg-config. 11615See the pkg-config man page for more details. 11616 11617To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11618See 'config.log' for more details" "$LINENO" 5; } 11619else 11620 FONTTOSFNT_CFLAGS=$pkg_cv_FONTTOSFNT_CFLAGS 11621 FONTTOSFNT_LIBS=$pkg_cv_FONTTOSFNT_LIBS 11622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11623printf "%s\n" "yes" >&6; } 11624 11625fi 11626 11627 11628ac_config_files="$ac_config_files Makefile man/Makefile" 11629 11630cat >confcache <<\_ACEOF 11631# This file is a shell script that caches the results of configure 11632# tests run on this system so they can be shared between configure 11633# scripts and configure runs, see configure's option --config-cache. 11634# It is not useful on other systems. If it contains results you don't 11635# want to keep, you may remove or edit it. 11636# 11637# config.status only pays attention to the cache file if you give it 11638# the --recheck option to rerun configure. 11639# 11640# 'ac_cv_env_foo' variables (set or unset) will be overridden when 11641# loading this file, other *unset* 'ac_cv_foo' will be assigned the 11642# following values. 11643 11644_ACEOF 11645 11646# The following way of writing the cache mishandles newlines in values, 11647# but we know of no workaround that is simple, portable, and efficient. 11648# So, we kill variables containing newlines. 11649# Ultrix sh set writes to stderr and can't be redirected directly, 11650# and sets the high bit in the cache file unless we assign to the vars. 11651( 11652 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11653 eval ac_val=\$$ac_var 11654 case $ac_val in #( 11655 *${as_nl}*) 11656 case $ac_var in #( 11657 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11658printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11659 esac 11660 case $ac_var in #( 11661 _ | IFS | as_nl) ;; #( 11662 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11663 *) { eval $ac_var=; unset $ac_var;} ;; 11664 esac ;; 11665 esac 11666 done 11667 11668 (set) 2>&1 | 11669 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11670 *${as_nl}ac_space=\ *) 11671 # 'set' does not quote correctly, so add quotes: double-quote 11672 # substitution turns \\\\ into \\, and sed turns \\ into \. 11673 sed -n \ 11674 "s/'/'\\\\''/g; 11675 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11676 ;; #( 11677 *) 11678 # 'set' quotes correctly as required by POSIX, so do not add quotes. 11679 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11680 ;; 11681 esac | 11682 sort 11683) | 11684 sed ' 11685 /^ac_cv_env_/b end 11686 t clear 11687 :clear 11688 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11689 t end 11690 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11691 :end' >>confcache 11692if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11693 if test -w "$cache_file"; then 11694 if test "x$cache_file" != "x/dev/null"; then 11695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11696printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11697 if test ! -f "$cache_file" || test -h "$cache_file"; then 11698 cat confcache >"$cache_file" 11699 else 11700 case $cache_file in #( 11701 */* | ?:*) 11702 mv -f confcache "$cache_file"$$ && 11703 mv -f "$cache_file"$$ "$cache_file" ;; #( 11704 *) 11705 mv -f confcache "$cache_file" ;; 11706 esac 11707 fi 11708 fi 11709 else 11710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11711printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11712 fi 11713fi 11714rm -f confcache 11715 11716test "x$prefix" = xNONE && prefix=$ac_default_prefix 11717# Let make expand exec_prefix. 11718test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11719 11720DEFS=-DHAVE_CONFIG_H 11721 11722ac_libobjs= 11723ac_ltlibobjs= 11724U= 11725for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11726 # 1. Remove the extension, and $U if already installed. 11727 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11728 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11729 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11730 # will be set to the directory where LIBOBJS objects are built. 11731 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11732 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11733done 11734LIBOBJS=$ac_libobjs 11735 11736LTLIBOBJS=$ac_ltlibobjs 11737 11738 11739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11740printf %s "checking that generated files are newer than configure... " >&6; } 11741 if test -n "$am_sleep_pid"; then 11742 # Hide warnings about reused PIDs. 11743 wait $am_sleep_pid 2>/dev/null 11744 fi 11745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11746printf "%s\n" "done" >&6; } 11747case $enable_silent_rules in # ((( 11748 yes) AM_DEFAULT_VERBOSITY=0;; 11749 no) AM_DEFAULT_VERBOSITY=1;; 11750esac 11751if test $am_cv_make_support_nested_variables = yes; then 11752 AM_V='$(V)' 11753 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11754else 11755 AM_V=$AM_DEFAULT_VERBOSITY 11756 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11757fi 11758 11759 if test -n "$EXEEXT"; then 11760 am__EXEEXT_TRUE= 11761 am__EXEEXT_FALSE='#' 11762else 11763 am__EXEEXT_TRUE='#' 11764 am__EXEEXT_FALSE= 11765fi 11766 11767if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11768 as_fn_error $? "conditional \"AMDEP\" was never defined. 11769Usually this means the macro was only invoked conditionally." "$LINENO" 5 11770fi 11771if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11772 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11773Usually this means the macro was only invoked conditionally." "$LINENO" 5 11774fi 11775if test -z "${NEED_SETENV_TRUE}" && test -z "${NEED_SETENV_FALSE}"; then 11776 as_fn_error $? "conditional \"NEED_SETENV\" was never defined. 11777Usually this means the macro was only invoked conditionally." "$LINENO" 5 11778fi 11779 11780: "${CONFIG_STATUS=./config.status}" 11781ac_write_fail=0 11782ac_clean_files_save=$ac_clean_files 11783ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11785printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11786as_write_fail=0 11787cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11788#! $SHELL 11789# Generated by $as_me. 11790# Run this file to recreate the current configuration. 11791# Compiler output produced by configure, useful for debugging 11792# configure, is in config.log if it exists. 11793 11794debug=false 11795ac_cs_recheck=false 11796ac_cs_silent=false 11797 11798SHELL=\${CONFIG_SHELL-$SHELL} 11799export SHELL 11800_ASEOF 11801cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11802## -------------------- ## 11803## M4sh Initialization. ## 11804## -------------------- ## 11805 11806# Be more Bourne compatible 11807DUALCASE=1; export DUALCASE # for MKS sh 11808if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11809then : 11810 emulate sh 11811 NULLCMD=: 11812 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11813 # is contrary to our usage. Disable this feature. 11814 alias -g '${1+"$@"}'='"$@"' 11815 setopt NO_GLOB_SUBST 11816else case e in #( 11817 e) case `(set -o) 2>/dev/null` in #( 11818 *posix*) : 11819 set -o posix ;; #( 11820 *) : 11821 ;; 11822esac ;; 11823esac 11824fi 11825 11826 11827 11828# Reset variables that may have inherited troublesome values from 11829# the environment. 11830 11831# IFS needs to be set, to space, tab, and newline, in precisely that order. 11832# (If _AS_PATH_WALK were called with IFS unset, it would have the 11833# side effect of setting IFS to empty, thus disabling word splitting.) 11834# Quoting is to prevent editors from complaining about space-tab. 11835as_nl=' 11836' 11837export as_nl 11838IFS=" "" $as_nl" 11839 11840PS1='$ ' 11841PS2='> ' 11842PS4='+ ' 11843 11844# Ensure predictable behavior from utilities with locale-dependent output. 11845LC_ALL=C 11846export LC_ALL 11847LANGUAGE=C 11848export LANGUAGE 11849 11850# We cannot yet rely on "unset" to work, but we need these variables 11851# to be unset--not just set to an empty or harmless value--now, to 11852# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 11853# also avoids known problems related to "unset" and subshell syntax 11854# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 11855for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 11856do eval test \${$as_var+y} \ 11857 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11858done 11859 11860# Ensure that fds 0, 1, and 2 are open. 11861if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 11862if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 11863if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 11864 11865# The user is always right. 11866if ${PATH_SEPARATOR+false} :; then 11867 PATH_SEPARATOR=: 11868 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11869 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11870 PATH_SEPARATOR=';' 11871 } 11872fi 11873 11874 11875# Find who we are. Look in the path if we contain no directory separator. 11876as_myself= 11877case $0 in #(( 11878 *[\\/]* ) as_myself=$0 ;; 11879 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11880for as_dir in $PATH 11881do 11882 IFS=$as_save_IFS 11883 case $as_dir in #((( 11884 '') as_dir=./ ;; 11885 */) ;; 11886 *) as_dir=$as_dir/ ;; 11887 esac 11888 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 11889 done 11890IFS=$as_save_IFS 11891 11892 ;; 11893esac 11894# We did not find ourselves, most probably we were run as 'sh COMMAND' 11895# in which case we are not to be found in the path. 11896if test "x$as_myself" = x; then 11897 as_myself=$0 11898fi 11899if test ! -f "$as_myself"; then 11900 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11901 exit 1 11902fi 11903 11904 11905 11906# as_fn_error STATUS ERROR [LINENO LOG_FD] 11907# ---------------------------------------- 11908# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11909# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11910# script with STATUS, using 1 if that was 0. 11911as_fn_error () 11912{ 11913 as_status=$1; test $as_status -eq 0 && as_status=1 11914 if test "$4"; then 11915 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11916 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11917 fi 11918 printf "%s\n" "$as_me: error: $2" >&2 11919 as_fn_exit $as_status 11920} # as_fn_error 11921 11922 11923# as_fn_set_status STATUS 11924# ----------------------- 11925# Set $? to STATUS, without forking. 11926as_fn_set_status () 11927{ 11928 return $1 11929} # as_fn_set_status 11930 11931# as_fn_exit STATUS 11932# ----------------- 11933# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11934as_fn_exit () 11935{ 11936 set +e 11937 as_fn_set_status $1 11938 exit $1 11939} # as_fn_exit 11940 11941# as_fn_unset VAR 11942# --------------- 11943# Portably unset VAR. 11944as_fn_unset () 11945{ 11946 { eval $1=; unset $1;} 11947} 11948as_unset=as_fn_unset 11949 11950# as_fn_append VAR VALUE 11951# ---------------------- 11952# Append the text in VALUE to the end of the definition contained in VAR. Take 11953# advantage of any shell optimizations that allow amortized linear growth over 11954# repeated appends, instead of the typical quadratic growth present in naive 11955# implementations. 11956if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 11957then : 11958 eval 'as_fn_append () 11959 { 11960 eval $1+=\$2 11961 }' 11962else case e in #( 11963 e) as_fn_append () 11964 { 11965 eval $1=\$$1\$2 11966 } ;; 11967esac 11968fi # as_fn_append 11969 11970# as_fn_arith ARG... 11971# ------------------ 11972# Perform arithmetic evaluation on the ARGs, and store the result in the 11973# global $as_val. Take advantage of shells that can avoid forks. The arguments 11974# must be portable across $(()) and expr. 11975if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 11976then : 11977 eval 'as_fn_arith () 11978 { 11979 as_val=$(( $* )) 11980 }' 11981else case e in #( 11982 e) as_fn_arith () 11983 { 11984 as_val=`expr "$@" || test $? -eq 1` 11985 } ;; 11986esac 11987fi # as_fn_arith 11988 11989 11990if expr a : '\(a\)' >/dev/null 2>&1 && 11991 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11992 as_expr=expr 11993else 11994 as_expr=false 11995fi 11996 11997if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11998 as_basename=basename 11999else 12000 as_basename=false 12001fi 12002 12003if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12004 as_dirname=dirname 12005else 12006 as_dirname=false 12007fi 12008 12009as_me=`$as_basename -- "$0" || 12010$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12011 X"$0" : 'X\(//\)$' \| \ 12012 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12013printf "%s\n" X/"$0" | 12014 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12015 s//\1/ 12016 q 12017 } 12018 /^X\/\(\/\/\)$/{ 12019 s//\1/ 12020 q 12021 } 12022 /^X\/\(\/\).*/{ 12023 s//\1/ 12024 q 12025 } 12026 s/.*/./; q'` 12027 12028# Avoid depending upon Character Ranges. 12029as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12030as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12031as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12032as_cr_digits='0123456789' 12033as_cr_alnum=$as_cr_Letters$as_cr_digits 12034 12035 12036# Determine whether it's possible to make 'echo' print without a newline. 12037# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 12038# for compatibility with existing Makefiles. 12039ECHO_C= ECHO_N= ECHO_T= 12040case `echo -n x` in #((((( 12041-n*) 12042 case `echo 'xy\c'` in 12043 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12044 xy) ECHO_C='\c';; 12045 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12046 ECHO_T=' ';; 12047 esac;; 12048*) 12049 ECHO_N='-n';; 12050esac 12051 12052# For backward compatibility with old third-party macros, we provide 12053# the shell variables $as_echo and $as_echo_n. New code should use 12054# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12055as_echo='printf %s\n' 12056as_echo_n='printf %s' 12057 12058rm -f conf$$ conf$$.exe conf$$.file 12059if test -d conf$$.dir; then 12060 rm -f conf$$.dir/conf$$.file 12061else 12062 rm -f conf$$.dir 12063 mkdir conf$$.dir 2>/dev/null 12064fi 12065if (echo >conf$$.file) 2>/dev/null; then 12066 if ln -s conf$$.file conf$$ 2>/dev/null; then 12067 as_ln_s='ln -s' 12068 # ... but there are two gotchas: 12069 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 12070 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 12071 # In both cases, we have to default to 'cp -pR'. 12072 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12073 as_ln_s='cp -pR' 12074 elif ln conf$$.file conf$$ 2>/dev/null; then 12075 as_ln_s=ln 12076 else 12077 as_ln_s='cp -pR' 12078 fi 12079else 12080 as_ln_s='cp -pR' 12081fi 12082rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12083rmdir conf$$.dir 2>/dev/null 12084 12085 12086# as_fn_mkdir_p 12087# ------------- 12088# Create "$as_dir" as a directory, including parents if necessary. 12089as_fn_mkdir_p () 12090{ 12091 12092 case $as_dir in #( 12093 -*) as_dir=./$as_dir;; 12094 esac 12095 test -d "$as_dir" || eval $as_mkdir_p || { 12096 as_dirs= 12097 while :; do 12098 case $as_dir in #( 12099 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12100 *) as_qdir=$as_dir;; 12101 esac 12102 as_dirs="'$as_qdir' $as_dirs" 12103 as_dir=`$as_dirname -- "$as_dir" || 12104$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12105 X"$as_dir" : 'X\(//\)[^/]' \| \ 12106 X"$as_dir" : 'X\(//\)$' \| \ 12107 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12108printf "%s\n" X"$as_dir" | 12109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12110 s//\1/ 12111 q 12112 } 12113 /^X\(\/\/\)[^/].*/{ 12114 s//\1/ 12115 q 12116 } 12117 /^X\(\/\/\)$/{ 12118 s//\1/ 12119 q 12120 } 12121 /^X\(\/\).*/{ 12122 s//\1/ 12123 q 12124 } 12125 s/.*/./; q'` 12126 test -d "$as_dir" && break 12127 done 12128 test -z "$as_dirs" || eval "mkdir $as_dirs" 12129 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12130 12131 12132} # as_fn_mkdir_p 12133if mkdir -p . 2>/dev/null; then 12134 as_mkdir_p='mkdir -p "$as_dir"' 12135else 12136 test -d ./-p && rmdir ./-p 12137 as_mkdir_p=false 12138fi 12139 12140 12141# as_fn_executable_p FILE 12142# ----------------------- 12143# Test if FILE is an executable regular file. 12144as_fn_executable_p () 12145{ 12146 test -f "$1" && test -x "$1" 12147} # as_fn_executable_p 12148as_test_x='test -x' 12149as_executable_p=as_fn_executable_p 12150 12151# Sed expression to map a string onto a valid CPP name. 12152as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 12153as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 12154 12155# Sed expression to map a string onto a valid variable name. 12156as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 12157as_tr_sh="eval sed '$as_sed_sh'" # deprecated 12158 12159 12160exec 6>&1 12161## ----------------------------------- ## 12162## Main body of $CONFIG_STATUS script. ## 12163## ----------------------------------- ## 12164_ASEOF 12165test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12166 12167cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12168# Save the log message, to keep $0 and so on meaningful, and to 12169# report actual input values of CONFIG_FILES etc. instead of their 12170# values after options handling. 12171ac_log=" 12172This file was extended by fonttosfnt $as_me 1.2.4, which was 12173generated by GNU Autoconf 2.72. Invocation command line was 12174 12175 CONFIG_FILES = $CONFIG_FILES 12176 CONFIG_HEADERS = $CONFIG_HEADERS 12177 CONFIG_LINKS = $CONFIG_LINKS 12178 CONFIG_COMMANDS = $CONFIG_COMMANDS 12179 $ $0 $@ 12180 12181on `(hostname || uname -n) 2>/dev/null | sed 1q` 12182" 12183 12184_ACEOF 12185 12186case $ac_config_files in *" 12187"*) set x $ac_config_files; shift; ac_config_files=$*;; 12188esac 12189 12190case $ac_config_headers in *" 12191"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12192esac 12193 12194 12195cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12196# Files that config.status was made for. 12197config_files="$ac_config_files" 12198config_headers="$ac_config_headers" 12199config_commands="$ac_config_commands" 12200 12201_ACEOF 12202 12203cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12204ac_cs_usage="\ 12205'$as_me' instantiates files and other configuration actions 12206from templates according to the current configuration. Unless the files 12207and actions are specified as TAGs, all are instantiated by default. 12208 12209Usage: $0 [OPTION]... [TAG]... 12210 12211 -h, --help print this help, then exit 12212 -V, --version print version number and configuration settings, then exit 12213 --config print configuration, then exit 12214 -q, --quiet, --silent 12215 do not print progress messages 12216 -d, --debug don't remove temporary files 12217 --recheck update $as_me by reconfiguring in the same conditions 12218 --file=FILE[:TEMPLATE] 12219 instantiate the configuration file FILE 12220 --header=FILE[:TEMPLATE] 12221 instantiate the configuration header FILE 12222 12223Configuration files: 12224$config_files 12225 12226Configuration headers: 12227$config_headers 12228 12229Configuration commands: 12230$config_commands 12231 12232Report bugs to <https://gitlab.freedesktop.org/xorg/app/fonttosfnt/-/issues>." 12233 12234_ACEOF 12235ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12236ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12237cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12238ac_cs_config='$ac_cs_config_escaped' 12239ac_cs_version="\\ 12240fonttosfnt config.status 1.2.4 12241configured by $0, generated by GNU Autoconf 2.72, 12242 with options \\"\$ac_cs_config\\" 12243 12244Copyright (C) 2023 Free Software Foundation, Inc. 12245This config.status script is free software; the Free Software Foundation 12246gives unlimited permission to copy, distribute and modify it." 12247 12248ac_pwd='$ac_pwd' 12249srcdir='$srcdir' 12250INSTALL='$INSTALL' 12251MKDIR_P='$MKDIR_P' 12252AWK='$AWK' 12253test -n "\$AWK" || AWK=awk 12254_ACEOF 12255 12256cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12257# The default lists apply if the user does not specify any file. 12258ac_need_defaults=: 12259while test $# != 0 12260do 12261 case $1 in 12262 --*=?*) 12263 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12264 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12265 ac_shift=: 12266 ;; 12267 --*=) 12268 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12269 ac_optarg= 12270 ac_shift=: 12271 ;; 12272 *) 12273 ac_option=$1 12274 ac_optarg=$2 12275 ac_shift=shift 12276 ;; 12277 esac 12278 12279 case $ac_option in 12280 # Handling of the options. 12281 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12282 ac_cs_recheck=: ;; 12283 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12284 printf "%s\n" "$ac_cs_version"; exit ;; 12285 --config | --confi | --conf | --con | --co | --c ) 12286 printf "%s\n" "$ac_cs_config"; exit ;; 12287 --debug | --debu | --deb | --de | --d | -d ) 12288 debug=: ;; 12289 --file | --fil | --fi | --f ) 12290 $ac_shift 12291 case $ac_optarg in 12292 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12293 '') as_fn_error $? "missing file argument" ;; 12294 esac 12295 as_fn_append CONFIG_FILES " '$ac_optarg'" 12296 ac_need_defaults=false;; 12297 --header | --heade | --head | --hea ) 12298 $ac_shift 12299 case $ac_optarg in 12300 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12301 esac 12302 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12303 ac_need_defaults=false;; 12304 --he | --h) 12305 # Conflict between --help and --header 12306 as_fn_error $? "ambiguous option: '$1' 12307Try '$0 --help' for more information.";; 12308 --help | --hel | -h ) 12309 printf "%s\n" "$ac_cs_usage"; exit ;; 12310 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12311 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12312 ac_cs_silent=: ;; 12313 12314 # This is an error. 12315 -*) as_fn_error $? "unrecognized option: '$1' 12316Try '$0 --help' for more information." ;; 12317 12318 *) as_fn_append ac_config_targets " $1" 12319 ac_need_defaults=false ;; 12320 12321 esac 12322 shift 12323done 12324 12325ac_configure_extra_args= 12326 12327if $ac_cs_silent; then 12328 exec 6>/dev/null 12329 ac_configure_extra_args="$ac_configure_extra_args --silent" 12330fi 12331 12332_ACEOF 12333cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12334if \$ac_cs_recheck; then 12335 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12336 shift 12337 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12338 CONFIG_SHELL='$SHELL' 12339 export CONFIG_SHELL 12340 exec "\$@" 12341fi 12342 12343_ACEOF 12344cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12345exec 5>>config.log 12346{ 12347 echo 12348 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12349## Running $as_me. ## 12350_ASBOX 12351 printf "%s\n" "$ac_log" 12352} >&5 12353 12354_ACEOF 12355cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12356# 12357# INIT-COMMANDS 12358# 12359AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12360 12361_ACEOF 12362 12363cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12364 12365# Handling of arguments. 12366for ac_config_target in $ac_config_targets 12367do 12368 case $ac_config_target in 12369 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12370 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12371 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12372 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12373 12374 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 12375 esac 12376done 12377 12378 12379# If the user did not use the arguments to specify the items to instantiate, 12380# then the envvar interface is used. Set only those that are not. 12381# We use the long form for the default assignment because of an extremely 12382# bizarre bug on SunOS 4.1.3. 12383if $ac_need_defaults; then 12384 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12385 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12386 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12387fi 12388 12389# Have a temporary directory for convenience. Make it in the build tree 12390# simply because there is no reason against having it here, and in addition, 12391# creating and moving files from /tmp can sometimes cause problems. 12392# Hook for its removal unless debugging. 12393# Note that there is a small window in which the directory will not be cleaned: 12394# after its creation but before its name has been assigned to '$tmp'. 12395$debug || 12396{ 12397 tmp= ac_tmp= 12398 trap 'exit_status=$? 12399 : "${ac_tmp:=$tmp}" 12400 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12401' 0 12402 trap 'as_fn_exit 1' 1 2 13 15 12403} 12404# Create a (secure) tmp directory for tmp files. 12405 12406{ 12407 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12408 test -d "$tmp" 12409} || 12410{ 12411 tmp=./conf$$-$RANDOM 12412 (umask 077 && mkdir "$tmp") 12413} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12414ac_tmp=$tmp 12415 12416# Set up the scripts for CONFIG_FILES section. 12417# No need to generate them if there are no CONFIG_FILES. 12418# This happens for instance with './config.status config.h'. 12419if test -n "$CONFIG_FILES"; then 12420 12421 12422ac_cr=`echo X | tr X '\015'` 12423# On cygwin, bash can eat \r inside `` if the user requested igncr. 12424# But we know of no other shell where ac_cr would be empty at this 12425# point, so we can use a bashism as a fallback. 12426if test "x$ac_cr" = x; then 12427 eval ac_cr=\$\'\\r\' 12428fi 12429ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12430if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12431 ac_cs_awk_cr='\\r' 12432else 12433 ac_cs_awk_cr=$ac_cr 12434fi 12435 12436echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12437_ACEOF 12438 12439 12440{ 12441 echo "cat >conf$$subs.awk <<_ACEOF" && 12442 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12443 echo "_ACEOF" 12444} >conf$$subs.sh || 12445 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12446ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12447ac_delim='%!_!# ' 12448for ac_last_try in false false false false false :; do 12449 . ./conf$$subs.sh || 12450 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12451 12452 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12453 if test $ac_delim_n = $ac_delim_num; then 12454 break 12455 elif $ac_last_try; then 12456 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12457 else 12458 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12459 fi 12460done 12461rm -f conf$$subs.sh 12462 12463cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12464cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12465_ACEOF 12466sed -n ' 12467h 12468s/^/S["/; s/!.*/"]=/ 12469p 12470g 12471s/^[^!]*!// 12472:repl 12473t repl 12474s/'"$ac_delim"'$// 12475t delim 12476:nl 12477h 12478s/\(.\{148\}\)..*/\1/ 12479t more1 12480s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12481p 12482n 12483b repl 12484:more1 12485s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12486p 12487g 12488s/.\{148\}// 12489t nl 12490:delim 12491h 12492s/\(.\{148\}\)..*/\1/ 12493t more2 12494s/["\\]/\\&/g; s/^/"/; s/$/"/ 12495p 12496b 12497:more2 12498s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12499p 12500g 12501s/.\{148\}// 12502t delim 12503' <conf$$subs.awk | sed ' 12504/^[^""]/{ 12505 N 12506 s/\n// 12507} 12508' >>$CONFIG_STATUS || ac_write_fail=1 12509rm -f conf$$subs.awk 12510cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12511_ACAWK 12512cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12513 for (key in S) S_is_set[key] = 1 12514 FS = "" 12515 12516} 12517{ 12518 line = $ 0 12519 nfields = split(line, field, "@") 12520 substed = 0 12521 len = length(field[1]) 12522 for (i = 2; i < nfields; i++) { 12523 key = field[i] 12524 keylen = length(key) 12525 if (S_is_set[key]) { 12526 value = S[key] 12527 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12528 len += length(value) + length(field[++i]) 12529 substed = 1 12530 } else 12531 len += 1 + keylen 12532 } 12533 12534 print line 12535} 12536 12537_ACAWK 12538_ACEOF 12539cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12540if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12541 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12542else 12543 cat 12544fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12545 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12546_ACEOF 12547 12548# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12549# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12550# trailing colons and then remove the whole line if VPATH becomes empty 12551# (actually we leave an empty line to preserve line numbers). 12552if test "x$srcdir" = x.; then 12553 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12554h 12555s/// 12556s/^/:/ 12557s/[ ]*$/:/ 12558s/:\$(srcdir):/:/g 12559s/:\${srcdir}:/:/g 12560s/:@srcdir@:/:/g 12561s/^:*// 12562s/:*$// 12563x 12564s/\(=[ ]*\).*/\1/ 12565G 12566s/\n// 12567s/^[^=]*=[ ]*$// 12568}' 12569fi 12570 12571cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12572fi # test -n "$CONFIG_FILES" 12573 12574# Set up the scripts for CONFIG_HEADERS section. 12575# No need to generate them if there are no CONFIG_HEADERS. 12576# This happens for instance with './config.status Makefile'. 12577if test -n "$CONFIG_HEADERS"; then 12578cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12579BEGIN { 12580_ACEOF 12581 12582# Transform confdefs.h into an awk script 'defines.awk', embedded as 12583# here-document in config.status, that substitutes the proper values into 12584# config.h.in to produce config.h. 12585 12586# Create a delimiter string that does not exist in confdefs.h, to ease 12587# handling of long lines. 12588ac_delim='%!_!# ' 12589for ac_last_try in false false :; do 12590 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12591 if test -z "$ac_tt"; then 12592 break 12593 elif $ac_last_try; then 12594 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12595 else 12596 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12597 fi 12598done 12599 12600# For the awk script, D is an array of macro values keyed by name, 12601# likewise P contains macro parameters if any. Preserve backslash 12602# newline sequences. 12603 12604ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12605sed -n ' 12606s/.\{148\}/&'"$ac_delim"'/g 12607t rset 12608:rset 12609s/^[ ]*#[ ]*define[ ][ ]*/ / 12610t def 12611d 12612:def 12613s/\\$// 12614t bsnl 12615s/["\\]/\\&/g 12616s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12617D["\1"]=" \3"/p 12618s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12619d 12620:bsnl 12621s/["\\]/\\&/g 12622s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12623D["\1"]=" \3\\\\\\n"\\/p 12624t cont 12625s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12626t cont 12627d 12628:cont 12629n 12630s/.\{148\}/&'"$ac_delim"'/g 12631t clear 12632:clear 12633s/\\$// 12634t bsnlc 12635s/["\\]/\\&/g; s/^/"/; s/$/"/p 12636d 12637:bsnlc 12638s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12639b cont 12640' <confdefs.h | sed ' 12641s/'"$ac_delim"'/"\\\ 12642"/g' >>$CONFIG_STATUS || ac_write_fail=1 12643 12644cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12645 for (key in D) D_is_set[key] = 1 12646 FS = "" 12647} 12648/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12649 line = \$ 0 12650 split(line, arg, " ") 12651 if (arg[1] == "#") { 12652 defundef = arg[2] 12653 mac1 = arg[3] 12654 } else { 12655 defundef = substr(arg[1], 2) 12656 mac1 = arg[2] 12657 } 12658 split(mac1, mac2, "(") #) 12659 macro = mac2[1] 12660 prefix = substr(line, 1, index(line, defundef) - 1) 12661 if (D_is_set[macro]) { 12662 # Preserve the white space surrounding the "#". 12663 print prefix "define", macro P[macro] D[macro] 12664 next 12665 } else { 12666 # Replace #undef with comments. This is necessary, for example, 12667 # in the case of _POSIX_SOURCE, which is predefined and required 12668 # on some systems where configure will not decide to define it. 12669 if (defundef == "undef") { 12670 print "/*", prefix defundef, macro, "*/" 12671 next 12672 } 12673 } 12674} 12675{ print } 12676_ACAWK 12677_ACEOF 12678cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12679 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12680fi # test -n "$CONFIG_HEADERS" 12681 12682 12683eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12684shift 12685for ac_tag 12686do 12687 case $ac_tag in 12688 :[FHLC]) ac_mode=$ac_tag; continue;; 12689 esac 12690 case $ac_mode$ac_tag in 12691 :[FHL]*:*);; 12692 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 12693 :[FH]-) ac_tag=-:-;; 12694 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12695 esac 12696 ac_save_IFS=$IFS 12697 IFS=: 12698 set x $ac_tag 12699 IFS=$ac_save_IFS 12700 shift 12701 ac_file=$1 12702 shift 12703 12704 case $ac_mode in 12705 :L) ac_source=$1;; 12706 :[FH]) 12707 ac_file_inputs= 12708 for ac_f 12709 do 12710 case $ac_f in 12711 -) ac_f="$ac_tmp/stdin";; 12712 *) # Look for the file first in the build tree, then in the source tree 12713 # (if the path is not absolute). The absolute path cannot be DOS-style, 12714 # because $ac_f cannot contain ':'. 12715 test -f "$ac_f" || 12716 case $ac_f in 12717 [\\/$]*) false;; 12718 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12719 esac || 12720 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 12721 esac 12722 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12723 as_fn_append ac_file_inputs " '$ac_f'" 12724 done 12725 12726 # Let's still pretend it is 'configure' which instantiates (i.e., don't 12727 # use $as_me), people would be surprised to read: 12728 # /* config.h. Generated by config.status. */ 12729 configure_input='Generated from '` 12730 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12731 `' by configure.' 12732 if test x"$ac_file" != x-; then 12733 configure_input="$ac_file. $configure_input" 12734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12735printf "%s\n" "$as_me: creating $ac_file" >&6;} 12736 fi 12737 # Neutralize special characters interpreted by sed in replacement strings. 12738 case $configure_input in #( 12739 *\&* | *\|* | *\\* ) 12740 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12741 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12742 *) ac_sed_conf_input=$configure_input;; 12743 esac 12744 12745 case $ac_tag in 12746 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12747 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12748 esac 12749 ;; 12750 esac 12751 12752 ac_dir=`$as_dirname -- "$ac_file" || 12753$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12754 X"$ac_file" : 'X\(//\)[^/]' \| \ 12755 X"$ac_file" : 'X\(//\)$' \| \ 12756 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12757printf "%s\n" X"$ac_file" | 12758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12759 s//\1/ 12760 q 12761 } 12762 /^X\(\/\/\)[^/].*/{ 12763 s//\1/ 12764 q 12765 } 12766 /^X\(\/\/\)$/{ 12767 s//\1/ 12768 q 12769 } 12770 /^X\(\/\).*/{ 12771 s//\1/ 12772 q 12773 } 12774 s/.*/./; q'` 12775 as_dir="$ac_dir"; as_fn_mkdir_p 12776 ac_builddir=. 12777 12778case "$ac_dir" in 12779.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12780*) 12781 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12782 # A ".." for each directory in $ac_dir_suffix. 12783 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12784 case $ac_top_builddir_sub in 12785 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12786 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12787 esac ;; 12788esac 12789ac_abs_top_builddir=$ac_pwd 12790ac_abs_builddir=$ac_pwd$ac_dir_suffix 12791# for backward compatibility: 12792ac_top_builddir=$ac_top_build_prefix 12793 12794case $srcdir in 12795 .) # We are building in place. 12796 ac_srcdir=. 12797 ac_top_srcdir=$ac_top_builddir_sub 12798 ac_abs_top_srcdir=$ac_pwd ;; 12799 [\\/]* | ?:[\\/]* ) # Absolute name. 12800 ac_srcdir=$srcdir$ac_dir_suffix; 12801 ac_top_srcdir=$srcdir 12802 ac_abs_top_srcdir=$srcdir ;; 12803 *) # Relative name. 12804 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12805 ac_top_srcdir=$ac_top_build_prefix$srcdir 12806 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12807esac 12808ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12809 12810 12811 case $ac_mode in 12812 :F) 12813 # 12814 # CONFIG_FILE 12815 # 12816 12817 case $INSTALL in 12818 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12819 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12820 esac 12821 ac_MKDIR_P=$MKDIR_P 12822 case $MKDIR_P in 12823 [\\/$]* | ?:[\\/]* ) ;; 12824 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12825 esac 12826_ACEOF 12827 12828cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12829# If the template does not know about datarootdir, expand it. 12830# FIXME: This hack should be removed a few years after 2.60. 12831ac_datarootdir_hack=; ac_datarootdir_seen= 12832ac_sed_dataroot=' 12833/datarootdir/ { 12834 p 12835 q 12836} 12837/@datadir@/p 12838/@docdir@/p 12839/@infodir@/p 12840/@localedir@/p 12841/@mandir@/p' 12842case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12843*datarootdir*) ac_datarootdir_seen=yes;; 12844*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12846printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12847_ACEOF 12848cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12849 ac_datarootdir_hack=' 12850 s&@datadir@&$datadir&g 12851 s&@docdir@&$docdir&g 12852 s&@infodir@&$infodir&g 12853 s&@localedir@&$localedir&g 12854 s&@mandir@&$mandir&g 12855 s&\\\${datarootdir}&$datarootdir&g' ;; 12856esac 12857_ACEOF 12858 12859# Neutralize VPATH when '$srcdir' = '.'. 12860# Shell code in configure.ac might set extrasub. 12861# FIXME: do we really want to maintain this feature? 12862cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12863ac_sed_extra="$ac_vpsub 12864$extrasub 12865_ACEOF 12866cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12867:t 12868/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12869s|@configure_input@|$ac_sed_conf_input|;t t 12870s&@top_builddir@&$ac_top_builddir_sub&;t t 12871s&@top_build_prefix@&$ac_top_build_prefix&;t t 12872s&@srcdir@&$ac_srcdir&;t t 12873s&@abs_srcdir@&$ac_abs_srcdir&;t t 12874s&@top_srcdir@&$ac_top_srcdir&;t t 12875s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12876s&@builddir@&$ac_builddir&;t t 12877s&@abs_builddir@&$ac_abs_builddir&;t t 12878s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12879s&@INSTALL@&$ac_INSTALL&;t t 12880s&@MKDIR_P@&$ac_MKDIR_P&;t t 12881$ac_datarootdir_hack 12882" 12883eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12884 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12885 12886test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12887 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12888 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12889 "$ac_tmp/out"`; test -z "$ac_out"; } && 12890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 12891which seems to be undefined. Please make sure it is defined" >&5 12892printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 12893which seems to be undefined. Please make sure it is defined" >&2;} 12894 12895 rm -f "$ac_tmp/stdin" 12896 case $ac_file in 12897 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12898 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12899 esac \ 12900 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12901 ;; 12902 :H) 12903 # 12904 # CONFIG_HEADER 12905 # 12906 if test x"$ac_file" != x-; then 12907 { 12908 printf "%s\n" "/* $configure_input */" >&1 \ 12909 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12910 } >"$ac_tmp/config.h" \ 12911 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12912 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12914printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 12915 else 12916 rm -f "$ac_file" 12917 mv "$ac_tmp/config.h" "$ac_file" \ 12918 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12919 fi 12920 else 12921 printf "%s\n" "/* $configure_input */" >&1 \ 12922 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12923 || as_fn_error $? "could not create -" "$LINENO" 5 12924 fi 12925# Compute "$ac_file"'s index in $config_headers. 12926_am_arg="$ac_file" 12927_am_stamp_count=1 12928for _am_header in $config_headers :; do 12929 case $_am_header in 12930 $_am_arg | $_am_arg:* ) 12931 break ;; 12932 * ) 12933 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12934 esac 12935done 12936echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12937$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12938 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12939 X"$_am_arg" : 'X\(//\)$' \| \ 12940 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12941printf "%s\n" X"$_am_arg" | 12942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12943 s//\1/ 12944 q 12945 } 12946 /^X\(\/\/\)[^/].*/{ 12947 s//\1/ 12948 q 12949 } 12950 /^X\(\/\/\)$/{ 12951 s//\1/ 12952 q 12953 } 12954 /^X\(\/\).*/{ 12955 s//\1/ 12956 q 12957 } 12958 s/.*/./; q'`/stamp-h$_am_stamp_count 12959 ;; 12960 12961 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12962printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 12963 ;; 12964 esac 12965 12966 12967 case $ac_file$ac_mode in 12968 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12969 # Older Autoconf quotes --file arguments for eval, but not when files 12970 # are listed without --file. Let's play safe and only enable the eval 12971 # if we detect the quoting. 12972 # TODO: see whether this extra hack can be removed once we start 12973 # requiring Autoconf 2.70 or later. 12974 case $CONFIG_FILES in #( 12975 *\'*) : 12976 eval set x "$CONFIG_FILES" ;; #( 12977 *) : 12978 set x $CONFIG_FILES ;; #( 12979 *) : 12980 ;; 12981esac 12982 shift 12983 # Used to flag and report bootstrapping failures. 12984 am_rc=0 12985 for am_mf 12986 do 12987 # Strip MF so we end up with the name of the file. 12988 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 12989 # Check whether this is an Automake generated Makefile which includes 12990 # dependency-tracking related rules and includes. 12991 # Grep'ing the whole file directly is not great: AIX grep has a line 12992 # limit of 2048, but all sed's we know have understand at least 4000. 12993 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 12994 || continue 12995 am_dirpart=`$as_dirname -- "$am_mf" || 12996$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12997 X"$am_mf" : 'X\(//\)[^/]' \| \ 12998 X"$am_mf" : 'X\(//\)$' \| \ 12999 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13000printf "%s\n" X"$am_mf" | 13001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13002 s//\1/ 13003 q 13004 } 13005 /^X\(\/\/\)[^/].*/{ 13006 s//\1/ 13007 q 13008 } 13009 /^X\(\/\/\)$/{ 13010 s//\1/ 13011 q 13012 } 13013 /^X\(\/\).*/{ 13014 s//\1/ 13015 q 13016 } 13017 s/.*/./; q'` 13018 am_filepart=`$as_basename -- "$am_mf" || 13019$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13020 X"$am_mf" : 'X\(//\)$' \| \ 13021 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13022printf "%s\n" X/"$am_mf" | 13023 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13024 s//\1/ 13025 q 13026 } 13027 /^X\/\(\/\/\)$/{ 13028 s//\1/ 13029 q 13030 } 13031 /^X\/\(\/\).*/{ 13032 s//\1/ 13033 q 13034 } 13035 s/.*/./; q'` 13036 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13037 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13038 | $MAKE -f - am--depfiles" >&5 13039 (cd "$am_dirpart" \ 13040 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13041 | $MAKE -f - am--depfiles) >&5 2>&5 13042 ac_status=$? 13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13044 (exit $ac_status); } || am_rc=$? 13045 done 13046 if test $am_rc -ne 0; then 13047 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13048printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13049as_fn_error $? "Something went wrong bootstrapping makefile fragments 13050 for automatic dependency tracking. If GNU make was not used, consider 13051 re-running the configure script with MAKE=\"gmake\" (or whatever is 13052 necessary). You can also try re-running configure with the 13053 '--disable-dependency-tracking' option to at least be able to build 13054 the package (albeit without support for automatic dependency tracking). 13055See 'config.log' for more details" "$LINENO" 5; } 13056 fi 13057 { am_dirpart=; unset am_dirpart;} 13058 { am_filepart=; unset am_filepart;} 13059 { am_mf=; unset am_mf;} 13060 { am_rc=; unset am_rc;} 13061 rm -f conftest-deps.mk 13062} 13063 ;; 13064 13065 esac 13066done # for ac_tag 13067 13068 13069as_fn_exit 0 13070_ACEOF 13071ac_clean_files=$ac_clean_files_save 13072 13073test $ac_write_fail = 0 || 13074 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13075 13076 13077# configure is writing to config.log, and then calls config.status. 13078# config.status does its own redirection, appending to config.log. 13079# Unfortunately, on DOS this fails, as config.log is still kept open 13080# by configure, so config.status won't be able to write to it; its 13081# output is simply discarded. So we exec the FD to /dev/null, 13082# effectively closing config.log, so it can be properly (re)opened and 13083# appended to by config.status. When coming back to configure, we 13084# need to make the FD available again. 13085if test "$no_create" != yes; then 13086 ac_cs_success=: 13087 ac_config_status_args= 13088 test "$silent" = yes && 13089 ac_config_status_args="$ac_config_status_args --quiet" 13090 exec 5>/dev/null 13091 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13092 exec 5>>config.log 13093 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13094 # would make configure fail if this is the last instruction. 13095 $ac_cs_success || as_fn_exit 1 13096fi 13097if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13099printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13100fi 13101 13102 13103