configure revision 49bee38c
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for xprop 1.2.6.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xprop/-/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else $as_nop
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
100    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed `exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146  emulate sh
147  NULLCMD=:
148  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149  # is contrary to our usage.  Disable this feature.
150  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151  setopt NO_GLOB_SUBST
152else \$as_nop
153  case \`(set -o) 2>/dev/null\` in #(
154  *posix*) :
155    set -o posix ;; #(
156  *) :
157     ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else \$as_nop
176  exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186test \$(( 1 + 1 )) = 2 || exit 1"
187  if (eval "$as_required") 2>/dev/null
188then :
189  as_have_required=yes
190else $as_nop
191  as_have_required=no
192fi
193  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194then :
195
196else $as_nop
197  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198as_found=false
199for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200do
201  IFS=$as_save_IFS
202  case $as_dir in #(((
203    '') as_dir=./ ;;
204    */) ;;
205    *) as_dir=$as_dir/ ;;
206  esac
207  as_found=:
208  case $as_dir in #(
209	 /*)
210	   for as_base in sh bash ksh sh5; do
211	     # Try only shells that exist, to save several forks.
212	     as_shell=$as_dir$as_base
213	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215then :
216  CONFIG_SHELL=$as_shell as_have_required=yes
217		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218then :
219  break 2
220fi
221fi
222	   done;;
223       esac
224  as_found=false
225done
226IFS=$as_save_IFS
227if $as_found
228then :
229
230else $as_nop
231  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233then :
234  CONFIG_SHELL=$SHELL as_have_required=yes
235fi
236fi
237
238
239      if test "x$CONFIG_SHELL" != x
240then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno
263then :
264  printf "%s\n" "$0: This script requires a shell more modern than all"
265  printf "%s\n" "$0: the shells that I found on your system."
266  if test ${ZSH_VERSION+y} ; then
267    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269  else
270    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
271$0: https://gitlab.freedesktop.org/xorg/app/xprop/-/issues
272$0: about your system, including any error possibly output
273$0: before this message. Then install a modern shell, or
274$0: manually run the script under such a shell if you do
275$0: have one."
276  fi
277  exit 1
278fi
279fi
280fi
281SHELL=${CONFIG_SHELL-/bin/sh}
282export SHELL
283# Unset more variables known to interfere with behavior of common tools.
284CLICOLOR_FORCE= GREP_OPTIONS=
285unset CLICOLOR_FORCE GREP_OPTIONS
286
287## --------------------- ##
288## M4sh Shell Functions. ##
289## --------------------- ##
290# as_fn_unset VAR
291# ---------------
292# Portably unset VAR.
293as_fn_unset ()
294{
295  { eval $1=; unset $1;}
296}
297as_unset=as_fn_unset
298
299
300# as_fn_set_status STATUS
301# -----------------------
302# Set $? to STATUS, without forking.
303as_fn_set_status ()
304{
305  return $1
306} # as_fn_set_status
307
308# as_fn_exit STATUS
309# -----------------
310# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
311as_fn_exit ()
312{
313  set +e
314  as_fn_set_status $1
315  exit $1
316} # as_fn_exit
317# as_fn_nop
318# ---------
319# Do nothing but, unlike ":", preserve the value of $?.
320as_fn_nop ()
321{
322  return $?
323}
324as_nop=as_fn_nop
325
326# as_fn_mkdir_p
327# -------------
328# Create "$as_dir" as a directory, including parents if necessary.
329as_fn_mkdir_p ()
330{
331
332  case $as_dir in #(
333  -*) as_dir=./$as_dir;;
334  esac
335  test -d "$as_dir" || eval $as_mkdir_p || {
336    as_dirs=
337    while :; do
338      case $as_dir in #(
339      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340      *) as_qdir=$as_dir;;
341      esac
342      as_dirs="'$as_qdir' $as_dirs"
343      as_dir=`$as_dirname -- "$as_dir" ||
344$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345	 X"$as_dir" : 'X\(//\)[^/]' \| \
346	 X"$as_dir" : 'X\(//\)$' \| \
347	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348printf "%s\n" X"$as_dir" |
349    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350	    s//\1/
351	    q
352	  }
353	  /^X\(\/\/\)[^/].*/{
354	    s//\1/
355	    q
356	  }
357	  /^X\(\/\/\)$/{
358	    s//\1/
359	    q
360	  }
361	  /^X\(\/\).*/{
362	    s//\1/
363	    q
364	  }
365	  s/.*/./; q'`
366      test -d "$as_dir" && break
367    done
368    test -z "$as_dirs" || eval "mkdir $as_dirs"
369  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372} # as_fn_mkdir_p
373
374# as_fn_executable_p FILE
375# -----------------------
376# Test if FILE is an executable regular file.
377as_fn_executable_p ()
378{
379  test -f "$1" && test -x "$1"
380} # as_fn_executable_p
381# as_fn_append VAR VALUE
382# ----------------------
383# Append the text in VALUE to the end of the definition contained in VAR. Take
384# advantage of any shell optimizations that allow amortized linear growth over
385# repeated appends, instead of the typical quadratic growth present in naive
386# implementations.
387if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388then :
389  eval 'as_fn_append ()
390  {
391    eval $1+=\$2
392  }'
393else $as_nop
394  as_fn_append ()
395  {
396    eval $1=\$$1\$2
397  }
398fi # as_fn_append
399
400# as_fn_arith ARG...
401# ------------------
402# Perform arithmetic evaluation on the ARGs, and store the result in the
403# global $as_val. Take advantage of shells that can avoid forks. The arguments
404# must be portable across $(()) and expr.
405if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
406then :
407  eval 'as_fn_arith ()
408  {
409    as_val=$(( $* ))
410  }'
411else $as_nop
412  as_fn_arith ()
413  {
414    as_val=`expr "$@" || test $? -eq 1`
415  }
416fi # as_fn_arith
417
418# as_fn_nop
419# ---------
420# Do nothing but, unlike ":", preserve the value of $?.
421as_fn_nop ()
422{
423  return $?
424}
425as_nop=as_fn_nop
426
427# as_fn_error STATUS ERROR [LINENO LOG_FD]
428# ----------------------------------------
429# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
430# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
431# script with STATUS, using 1 if that was 0.
432as_fn_error ()
433{
434  as_status=$1; test $as_status -eq 0 && as_status=1
435  if test "$4"; then
436    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
437    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
438  fi
439  printf "%s\n" "$as_me: error: $2" >&2
440  as_fn_exit $as_status
441} # as_fn_error
442
443if expr a : '\(a\)' >/dev/null 2>&1 &&
444   test "X`expr 00001 : '.*\(...\)'`" = X001; then
445  as_expr=expr
446else
447  as_expr=false
448fi
449
450if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
451  as_basename=basename
452else
453  as_basename=false
454fi
455
456if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
457  as_dirname=dirname
458else
459  as_dirname=false
460fi
461
462as_me=`$as_basename -- "$0" ||
463$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
464	 X"$0" : 'X\(//\)$' \| \
465	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
466printf "%s\n" X/"$0" |
467    sed '/^.*\/\([^/][^/]*\)\/*$/{
468	    s//\1/
469	    q
470	  }
471	  /^X\/\(\/\/\)$/{
472	    s//\1/
473	    q
474	  }
475	  /^X\/\(\/\).*/{
476	    s//\1/
477	    q
478	  }
479	  s/.*/./; q'`
480
481# Avoid depending upon Character Ranges.
482as_cr_letters='abcdefghijklmnopqrstuvwxyz'
483as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
484as_cr_Letters=$as_cr_letters$as_cr_LETTERS
485as_cr_digits='0123456789'
486as_cr_alnum=$as_cr_Letters$as_cr_digits
487
488
489  as_lineno_1=$LINENO as_lineno_1a=$LINENO
490  as_lineno_2=$LINENO as_lineno_2a=$LINENO
491  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
492  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
493  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
494  sed -n '
495    p
496    /[$]LINENO/=
497  ' <$as_myself |
498    sed '
499      s/[$]LINENO.*/&-/
500      t lineno
501      b
502      :lineno
503      N
504      :loop
505      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506      t loop
507      s/-\n.*//
508    ' >$as_me.lineno &&
509  chmod +x "$as_me.lineno" ||
510    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511
512  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513  # already done that, so ensure we don't try to do so again and fall
514  # in an infinite loop.  This has already happened in practice.
515  _as_can_reexec=no; export _as_can_reexec
516  # Don't try to exec as it changes $[0], causing all sort of problems
517  # (the dirname of $[0] is not the place where we might find the
518  # original and so on.  Autoconf is especially sensitive to this).
519  . "./$as_me.lineno"
520  # Exit status is that of the last command.
521  exit
522}
523
524
525# Determine whether it's possible to make 'echo' print without a newline.
526# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527# for compatibility with existing Makefiles.
528ECHO_C= ECHO_N= ECHO_T=
529case `echo -n x` in #(((((
530-n*)
531  case `echo 'xy\c'` in
532  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
533  xy)  ECHO_C='\c';;
534  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
535       ECHO_T='	';;
536  esac;;
537*)
538  ECHO_N='-n';;
539esac
540
541# For backward compatibility with old third-party macros, we provide
542# the shell variables $as_echo and $as_echo_n.  New code should use
543# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544as_echo='printf %s\n'
545as_echo_n='printf %s'
546
547
548rm -f conf$$ conf$$.exe conf$$.file
549if test -d conf$$.dir; then
550  rm -f conf$$.dir/conf$$.file
551else
552  rm -f conf$$.dir
553  mkdir conf$$.dir 2>/dev/null
554fi
555if (echo >conf$$.file) 2>/dev/null; then
556  if ln -s conf$$.file conf$$ 2>/dev/null; then
557    as_ln_s='ln -s'
558    # ... but there are two gotchas:
559    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
560    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
561    # In both cases, we have to default to `cp -pR'.
562    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
563      as_ln_s='cp -pR'
564  elif ln conf$$.file conf$$ 2>/dev/null; then
565    as_ln_s=ln
566  else
567    as_ln_s='cp -pR'
568  fi
569else
570  as_ln_s='cp -pR'
571fi
572rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
573rmdir conf$$.dir 2>/dev/null
574
575if mkdir -p . 2>/dev/null; then
576  as_mkdir_p='mkdir -p "$as_dir"'
577else
578  test -d ./-p && rmdir ./-p
579  as_mkdir_p=false
580fi
581
582as_test_x='test -x'
583as_executable_p=as_fn_executable_p
584
585# Sed expression to map a string onto a valid CPP name.
586as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
587
588# Sed expression to map a string onto a valid variable name.
589as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
590
591
592test -n "$DJDIR" || exec 7<&0 </dev/null
593exec 6>&1
594
595# Name of the host.
596# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
597# so uname gets run too.
598ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
599
600#
601# Initializations.
602#
603ac_default_prefix=/usr/local
604ac_clean_files=
605ac_config_libobj_dir=.
606LIBOBJS=
607cross_compiling=no
608subdirs=
609MFLAGS=
610MAKEFLAGS=
611
612# Identity of this package.
613PACKAGE_NAME='xprop'
614PACKAGE_TARNAME='xprop'
615PACKAGE_VERSION='1.2.6'
616PACKAGE_STRING='xprop 1.2.6'
617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xprop/-/issues'
618PACKAGE_URL=''
619
620ac_unique_file="Makefile.am"
621# Factoring default headers for most tests.
622ac_includes_default="\
623#include <stddef.h>
624#ifdef HAVE_STDIO_H
625# include <stdio.h>
626#endif
627#ifdef HAVE_STDLIB_H
628# include <stdlib.h>
629#endif
630#ifdef HAVE_STRING_H
631# include <string.h>
632#endif
633#ifdef HAVE_INTTYPES_H
634# include <inttypes.h>
635#endif
636#ifdef HAVE_STDINT_H
637# include <stdint.h>
638#endif
639#ifdef HAVE_STRINGS_H
640# include <strings.h>
641#endif
642#ifdef HAVE_SYS_TYPES_H
643# include <sys/types.h>
644#endif
645#ifdef HAVE_SYS_STAT_H
646# include <sys/stat.h>
647#endif
648#ifdef HAVE_UNISTD_H
649# include <unistd.h>
650#endif"
651
652ac_header_c_list=
653ac_subst_vars='am__EXEEXT_FALSE
654am__EXEEXT_TRUE
655LTLIBOBJS
656LIBOBJS
657LINT_FALSE
658LINT_TRUE
659LINT_FLAGS
660LINT
661XPROP_LIBS
662XPROP_CFLAGS
663MAN_SUBSTS
664XORG_MAN_PAGE
665ADMIN_MAN_DIR
666DRIVER_MAN_DIR
667MISC_MAN_DIR
668FILE_MAN_DIR
669LIB_MAN_DIR
670APP_MAN_DIR
671ADMIN_MAN_SUFFIX
672DRIVER_MAN_SUFFIX
673MISC_MAN_SUFFIX
674FILE_MAN_SUFFIX
675LIB_MAN_SUFFIX
676APP_MAN_SUFFIX
677SED
678host_os
679host_vendor
680host_cpu
681host
682build_os
683build_vendor
684build_cpu
685build
686INSTALL_CMD
687PKG_CONFIG_LIBDIR
688PKG_CONFIG_PATH
689PKG_CONFIG
690CHANGELOG_CMD
691STRICT_CFLAGS
692CWARNFLAGS
693BASE_CFLAGS
694am__fastdepCC_FALSE
695am__fastdepCC_TRUE
696CCDEPMODE
697am__nodep
698AMDEPBACKSLASH
699AMDEP_FALSE
700AMDEP_TRUE
701am__include
702DEPDIR
703OBJEXT
704EXEEXT
705ac_ct_CC
706CPPFLAGS
707LDFLAGS
708CFLAGS
709CC
710AM_BACKSLASH
711AM_DEFAULT_VERBOSITY
712AM_DEFAULT_V
713AM_V
714CSCOPE
715ETAGS
716CTAGS
717am__untar
718am__tar
719AMTAR
720am__leading_dot
721SET_MAKE
722AWK
723mkdir_p
724MKDIR_P
725INSTALL_STRIP_PROGRAM
726STRIP
727install_sh
728MAKEINFO
729AUTOHEADER
730AUTOMAKE
731AUTOCONF
732ACLOCAL
733VERSION
734PACKAGE
735CYGPATH_W
736am__isrc
737INSTALL_DATA
738INSTALL_SCRIPT
739INSTALL_PROGRAM
740target_alias
741host_alias
742build_alias
743LIBS
744ECHO_T
745ECHO_N
746ECHO_C
747DEFS
748mandir
749localedir
750libdir
751psdir
752pdfdir
753dvidir
754htmldir
755infodir
756docdir
757oldincludedir
758includedir
759runstatedir
760localstatedir
761sharedstatedir
762sysconfdir
763datadir
764datarootdir
765libexecdir
766sbindir
767bindir
768program_transform_name
769prefix
770exec_prefix
771PACKAGE_URL
772PACKAGE_BUGREPORT
773PACKAGE_STRING
774PACKAGE_VERSION
775PACKAGE_TARNAME
776PACKAGE_NAME
777PATH_SEPARATOR
778SHELL
779am__quote'
780ac_subst_files=''
781ac_user_opts='
782enable_option_checking
783enable_silent_rules
784enable_dependency_tracking
785enable_selective_werror
786enable_strict_compilation
787with_lint
788'
789      ac_precious_vars='build_alias
790host_alias
791target_alias
792CC
793CFLAGS
794LDFLAGS
795LIBS
796CPPFLAGS
797PKG_CONFIG
798PKG_CONFIG_PATH
799PKG_CONFIG_LIBDIR
800XPROP_CFLAGS
801XPROP_LIBS
802LINT
803LINT_FLAGS'
804
805
806# Initialize some variables set by options.
807ac_init_help=
808ac_init_version=false
809ac_unrecognized_opts=
810ac_unrecognized_sep=
811# The variables have the same names as the options, with
812# dashes changed to underlines.
813cache_file=/dev/null
814exec_prefix=NONE
815no_create=
816no_recursion=
817prefix=NONE
818program_prefix=NONE
819program_suffix=NONE
820program_transform_name=s,x,x,
821silent=
822site=
823srcdir=
824verbose=
825x_includes=NONE
826x_libraries=NONE
827
828# Installation directory options.
829# These are left unexpanded so users can "make install exec_prefix=/foo"
830# and all the variables that are supposed to be based on exec_prefix
831# by default will actually change.
832# Use braces instead of parens because sh, perl, etc. also accept them.
833# (The list follows the same order as the GNU Coding Standards.)
834bindir='${exec_prefix}/bin'
835sbindir='${exec_prefix}/sbin'
836libexecdir='${exec_prefix}/libexec'
837datarootdir='${prefix}/share'
838datadir='${datarootdir}'
839sysconfdir='${prefix}/etc'
840sharedstatedir='${prefix}/com'
841localstatedir='${prefix}/var'
842runstatedir='${localstatedir}/run'
843includedir='${prefix}/include'
844oldincludedir='/usr/include'
845docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
846infodir='${datarootdir}/info'
847htmldir='${docdir}'
848dvidir='${docdir}'
849pdfdir='${docdir}'
850psdir='${docdir}'
851libdir='${exec_prefix}/lib'
852localedir='${datarootdir}/locale'
853mandir='${datarootdir}/man'
854
855ac_prev=
856ac_dashdash=
857for ac_option
858do
859  # If the previous option needs an argument, assign it.
860  if test -n "$ac_prev"; then
861    eval $ac_prev=\$ac_option
862    ac_prev=
863    continue
864  fi
865
866  case $ac_option in
867  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
868  *=)   ac_optarg= ;;
869  *)    ac_optarg=yes ;;
870  esac
871
872  case $ac_dashdash$ac_option in
873  --)
874    ac_dashdash=yes ;;
875
876  -bindir | --bindir | --bindi | --bind | --bin | --bi)
877    ac_prev=bindir ;;
878  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
879    bindir=$ac_optarg ;;
880
881  -build | --build | --buil | --bui | --bu)
882    ac_prev=build_alias ;;
883  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
884    build_alias=$ac_optarg ;;
885
886  -cache-file | --cache-file | --cache-fil | --cache-fi \
887  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
888    ac_prev=cache_file ;;
889  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
890  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
891    cache_file=$ac_optarg ;;
892
893  --config-cache | -C)
894    cache_file=config.cache ;;
895
896  -datadir | --datadir | --datadi | --datad)
897    ac_prev=datadir ;;
898  -datadir=* | --datadir=* | --datadi=* | --datad=*)
899    datadir=$ac_optarg ;;
900
901  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
902  | --dataroo | --dataro | --datar)
903    ac_prev=datarootdir ;;
904  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
905  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
906    datarootdir=$ac_optarg ;;
907
908  -disable-* | --disable-*)
909    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
910    # Reject names that are not valid shell variable names.
911    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912      as_fn_error $? "invalid feature name: \`$ac_useropt'"
913    ac_useropt_orig=$ac_useropt
914    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
915    case $ac_user_opts in
916      *"
917"enable_$ac_useropt"
918"*) ;;
919      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
920	 ac_unrecognized_sep=', ';;
921    esac
922    eval enable_$ac_useropt=no ;;
923
924  -docdir | --docdir | --docdi | --doc | --do)
925    ac_prev=docdir ;;
926  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
927    docdir=$ac_optarg ;;
928
929  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
930    ac_prev=dvidir ;;
931  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
932    dvidir=$ac_optarg ;;
933
934  -enable-* | --enable-*)
935    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
936    # Reject names that are not valid shell variable names.
937    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938      as_fn_error $? "invalid feature name: \`$ac_useropt'"
939    ac_useropt_orig=$ac_useropt
940    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
941    case $ac_user_opts in
942      *"
943"enable_$ac_useropt"
944"*) ;;
945      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
946	 ac_unrecognized_sep=', ';;
947    esac
948    eval enable_$ac_useropt=\$ac_optarg ;;
949
950  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952  | --exec | --exe | --ex)
953    ac_prev=exec_prefix ;;
954  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956  | --exec=* | --exe=* | --ex=*)
957    exec_prefix=$ac_optarg ;;
958
959  -gas | --gas | --ga | --g)
960    # Obsolete; use --with-gas.
961    with_gas=yes ;;
962
963  -help | --help | --hel | --he | -h)
964    ac_init_help=long ;;
965  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966    ac_init_help=recursive ;;
967  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968    ac_init_help=short ;;
969
970  -host | --host | --hos | --ho)
971    ac_prev=host_alias ;;
972  -host=* | --host=* | --hos=* | --ho=*)
973    host_alias=$ac_optarg ;;
974
975  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976    ac_prev=htmldir ;;
977  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978  | --ht=*)
979    htmldir=$ac_optarg ;;
980
981  -includedir | --includedir | --includedi | --included | --include \
982  | --includ | --inclu | --incl | --inc)
983    ac_prev=includedir ;;
984  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985  | --includ=* | --inclu=* | --incl=* | --inc=*)
986    includedir=$ac_optarg ;;
987
988  -infodir | --infodir | --infodi | --infod | --info | --inf)
989    ac_prev=infodir ;;
990  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991    infodir=$ac_optarg ;;
992
993  -libdir | --libdir | --libdi | --libd)
994    ac_prev=libdir ;;
995  -libdir=* | --libdir=* | --libdi=* | --libd=*)
996    libdir=$ac_optarg ;;
997
998  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999  | --libexe | --libex | --libe)
1000    ac_prev=libexecdir ;;
1001  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002  | --libexe=* | --libex=* | --libe=*)
1003    libexecdir=$ac_optarg ;;
1004
1005  -localedir | --localedir | --localedi | --localed | --locale)
1006    ac_prev=localedir ;;
1007  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008    localedir=$ac_optarg ;;
1009
1010  -localstatedir | --localstatedir | --localstatedi | --localstated \
1011  | --localstate | --localstat | --localsta | --localst | --locals)
1012    ac_prev=localstatedir ;;
1013  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015    localstatedir=$ac_optarg ;;
1016
1017  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018    ac_prev=mandir ;;
1019  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020    mandir=$ac_optarg ;;
1021
1022  -nfp | --nfp | --nf)
1023    # Obsolete; use --without-fp.
1024    with_fp=no ;;
1025
1026  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027  | --no-cr | --no-c | -n)
1028    no_create=yes ;;
1029
1030  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032    no_recursion=yes ;;
1033
1034  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036  | --oldin | --oldi | --old | --ol | --o)
1037    ac_prev=oldincludedir ;;
1038  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041    oldincludedir=$ac_optarg ;;
1042
1043  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044    ac_prev=prefix ;;
1045  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046    prefix=$ac_optarg ;;
1047
1048  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049  | --program-pre | --program-pr | --program-p)
1050    ac_prev=program_prefix ;;
1051  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053    program_prefix=$ac_optarg ;;
1054
1055  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056  | --program-suf | --program-su | --program-s)
1057    ac_prev=program_suffix ;;
1058  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060    program_suffix=$ac_optarg ;;
1061
1062  -program-transform-name | --program-transform-name \
1063  | --program-transform-nam | --program-transform-na \
1064  | --program-transform-n | --program-transform- \
1065  | --program-transform | --program-transfor \
1066  | --program-transfo | --program-transf \
1067  | --program-trans | --program-tran \
1068  | --progr-tra | --program-tr | --program-t)
1069    ac_prev=program_transform_name ;;
1070  -program-transform-name=* | --program-transform-name=* \
1071  | --program-transform-nam=* | --program-transform-na=* \
1072  | --program-transform-n=* | --program-transform-=* \
1073  | --program-transform=* | --program-transfor=* \
1074  | --program-transfo=* | --program-transf=* \
1075  | --program-trans=* | --program-tran=* \
1076  | --progr-tra=* | --program-tr=* | --program-t=*)
1077    program_transform_name=$ac_optarg ;;
1078
1079  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080    ac_prev=pdfdir ;;
1081  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082    pdfdir=$ac_optarg ;;
1083
1084  -psdir | --psdir | --psdi | --psd | --ps)
1085    ac_prev=psdir ;;
1086  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087    psdir=$ac_optarg ;;
1088
1089  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090  | -silent | --silent | --silen | --sile | --sil)
1091    silent=yes ;;
1092
1093  -runstatedir | --runstatedir | --runstatedi | --runstated \
1094  | --runstate | --runstat | --runsta | --runst | --runs \
1095  | --run | --ru | --r)
1096    ac_prev=runstatedir ;;
1097  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1098  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1099  | --run=* | --ru=* | --r=*)
1100    runstatedir=$ac_optarg ;;
1101
1102  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103    ac_prev=sbindir ;;
1104  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105  | --sbi=* | --sb=*)
1106    sbindir=$ac_optarg ;;
1107
1108  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110  | --sharedst | --shareds | --shared | --share | --shar \
1111  | --sha | --sh)
1112    ac_prev=sharedstatedir ;;
1113  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116  | --sha=* | --sh=*)
1117    sharedstatedir=$ac_optarg ;;
1118
1119  -site | --site | --sit)
1120    ac_prev=site ;;
1121  -site=* | --site=* | --sit=*)
1122    site=$ac_optarg ;;
1123
1124  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125    ac_prev=srcdir ;;
1126  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127    srcdir=$ac_optarg ;;
1128
1129  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130  | --syscon | --sysco | --sysc | --sys | --sy)
1131    ac_prev=sysconfdir ;;
1132  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134    sysconfdir=$ac_optarg ;;
1135
1136  -target | --target | --targe | --targ | --tar | --ta | --t)
1137    ac_prev=target_alias ;;
1138  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139    target_alias=$ac_optarg ;;
1140
1141  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142    verbose=yes ;;
1143
1144  -version | --version | --versio | --versi | --vers | -V)
1145    ac_init_version=: ;;
1146
1147  -with-* | --with-*)
1148    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149    # Reject names that are not valid shell variable names.
1150    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151      as_fn_error $? "invalid package name: \`$ac_useropt'"
1152    ac_useropt_orig=$ac_useropt
1153    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1154    case $ac_user_opts in
1155      *"
1156"with_$ac_useropt"
1157"*) ;;
1158      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1159	 ac_unrecognized_sep=', ';;
1160    esac
1161    eval with_$ac_useropt=\$ac_optarg ;;
1162
1163  -without-* | --without-*)
1164    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1165    # Reject names that are not valid shell variable names.
1166    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167      as_fn_error $? "invalid package name: \`$ac_useropt'"
1168    ac_useropt_orig=$ac_useropt
1169    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1170    case $ac_user_opts in
1171      *"
1172"with_$ac_useropt"
1173"*) ;;
1174      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1175	 ac_unrecognized_sep=', ';;
1176    esac
1177    eval with_$ac_useropt=no ;;
1178
1179  --x)
1180    # Obsolete; use --with-x.
1181    with_x=yes ;;
1182
1183  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1184  | --x-incl | --x-inc | --x-in | --x-i)
1185    ac_prev=x_includes ;;
1186  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1187  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1188    x_includes=$ac_optarg ;;
1189
1190  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1191  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1192    ac_prev=x_libraries ;;
1193  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1194  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1195    x_libraries=$ac_optarg ;;
1196
1197  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1198Try \`$0 --help' for more information"
1199    ;;
1200
1201  *=*)
1202    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1203    # Reject names that are not valid shell variable names.
1204    case $ac_envvar in #(
1205      '' | [0-9]* | *[!_$as_cr_alnum]* )
1206      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1207    esac
1208    eval $ac_envvar=\$ac_optarg
1209    export $ac_envvar ;;
1210
1211  *)
1212    # FIXME: should be removed in autoconf 3.0.
1213    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1214    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1216    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1217    ;;
1218
1219  esac
1220done
1221
1222if test -n "$ac_prev"; then
1223  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1224  as_fn_error $? "missing argument to $ac_option"
1225fi
1226
1227if test -n "$ac_unrecognized_opts"; then
1228  case $enable_option_checking in
1229    no) ;;
1230    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1231    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1232  esac
1233fi
1234
1235# Check all directory arguments for consistency.
1236for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1237		datadir sysconfdir sharedstatedir localstatedir includedir \
1238		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1239		libdir localedir mandir runstatedir
1240do
1241  eval ac_val=\$$ac_var
1242  # Remove trailing slashes.
1243  case $ac_val in
1244    */ )
1245      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1246      eval $ac_var=\$ac_val;;
1247  esac
1248  # Be sure to have absolute directory names.
1249  case $ac_val in
1250    [\\/$]* | ?:[\\/]* )  continue;;
1251    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1252  esac
1253  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1254done
1255
1256# There might be people who depend on the old broken behavior: `$host'
1257# used to hold the argument of --host etc.
1258# FIXME: To remove some day.
1259build=$build_alias
1260host=$host_alias
1261target=$target_alias
1262
1263# FIXME: To remove some day.
1264if test "x$host_alias" != x; then
1265  if test "x$build_alias" = x; then
1266    cross_compiling=maybe
1267  elif test "x$build_alias" != "x$host_alias"; then
1268    cross_compiling=yes
1269  fi
1270fi
1271
1272ac_tool_prefix=
1273test -n "$host_alias" && ac_tool_prefix=$host_alias-
1274
1275test "$silent" = yes && exec 6>/dev/null
1276
1277
1278ac_pwd=`pwd` && test -n "$ac_pwd" &&
1279ac_ls_di=`ls -di .` &&
1280ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1281  as_fn_error $? "working directory cannot be determined"
1282test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1283  as_fn_error $? "pwd does not report name of working directory"
1284
1285
1286# Find the source files, if location was not specified.
1287if test -z "$srcdir"; then
1288  ac_srcdir_defaulted=yes
1289  # Try the directory containing this script, then the parent directory.
1290  ac_confdir=`$as_dirname -- "$as_myself" ||
1291$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292	 X"$as_myself" : 'X\(//\)[^/]' \| \
1293	 X"$as_myself" : 'X\(//\)$' \| \
1294	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1295printf "%s\n" X"$as_myself" |
1296    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297	    s//\1/
1298	    q
1299	  }
1300	  /^X\(\/\/\)[^/].*/{
1301	    s//\1/
1302	    q
1303	  }
1304	  /^X\(\/\/\)$/{
1305	    s//\1/
1306	    q
1307	  }
1308	  /^X\(\/\).*/{
1309	    s//\1/
1310	    q
1311	  }
1312	  s/.*/./; q'`
1313  srcdir=$ac_confdir
1314  if test ! -r "$srcdir/$ac_unique_file"; then
1315    srcdir=..
1316  fi
1317else
1318  ac_srcdir_defaulted=no
1319fi
1320if test ! -r "$srcdir/$ac_unique_file"; then
1321  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1322  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1323fi
1324ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1325ac_abs_confdir=`(
1326	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1327	pwd)`
1328# When building in place, set srcdir=.
1329if test "$ac_abs_confdir" = "$ac_pwd"; then
1330  srcdir=.
1331fi
1332# Remove unnecessary trailing slashes from srcdir.
1333# Double slashes in file names in object file debugging info
1334# mess up M-x gdb in Emacs.
1335case $srcdir in
1336*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1337esac
1338for ac_var in $ac_precious_vars; do
1339  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1340  eval ac_env_${ac_var}_value=\$${ac_var}
1341  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1342  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1343done
1344
1345#
1346# Report the --help message.
1347#
1348if test "$ac_init_help" = "long"; then
1349  # Omit some internal or obsolete options to make the list less imposing.
1350  # This message is too long to be a string in the A/UX 3.1 sh.
1351  cat <<_ACEOF
1352\`configure' configures xprop 1.2.6 to adapt to many kinds of systems.
1353
1354Usage: $0 [OPTION]... [VAR=VALUE]...
1355
1356To assign environment variables (e.g., CC, CFLAGS...), specify them as
1357VAR=VALUE.  See below for descriptions of some of the useful variables.
1358
1359Defaults for the options are specified in brackets.
1360
1361Configuration:
1362  -h, --help              display this help and exit
1363      --help=short        display options specific to this package
1364      --help=recursive    display the short help of all the included packages
1365  -V, --version           display version information and exit
1366  -q, --quiet, --silent   do not print \`checking ...' messages
1367      --cache-file=FILE   cache test results in FILE [disabled]
1368  -C, --config-cache      alias for \`--cache-file=config.cache'
1369  -n, --no-create         do not create output files
1370      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1371
1372Installation directories:
1373  --prefix=PREFIX         install architecture-independent files in PREFIX
1374                          [$ac_default_prefix]
1375  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1376                          [PREFIX]
1377
1378By default, \`make install' will install all the files in
1379\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1380an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1381for instance \`--prefix=\$HOME'.
1382
1383For better control, use the options below.
1384
1385Fine tuning of the installation directories:
1386  --bindir=DIR            user executables [EPREFIX/bin]
1387  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1388  --libexecdir=DIR        program executables [EPREFIX/libexec]
1389  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1390  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1391  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1392  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1393  --libdir=DIR            object code libraries [EPREFIX/lib]
1394  --includedir=DIR        C header files [PREFIX/include]
1395  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1396  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1397  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1398  --infodir=DIR           info documentation [DATAROOTDIR/info]
1399  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1400  --mandir=DIR            man documentation [DATAROOTDIR/man]
1401  --docdir=DIR            documentation root [DATAROOTDIR/doc/xprop]
1402  --htmldir=DIR           html documentation [DOCDIR]
1403  --dvidir=DIR            dvi documentation [DOCDIR]
1404  --pdfdir=DIR            pdf documentation [DOCDIR]
1405  --psdir=DIR             ps documentation [DOCDIR]
1406_ACEOF
1407
1408  cat <<\_ACEOF
1409
1410Program names:
1411  --program-prefix=PREFIX            prepend PREFIX to installed program names
1412  --program-suffix=SUFFIX            append SUFFIX to installed program names
1413  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1414
1415System types:
1416  --build=BUILD     configure for building on BUILD [guessed]
1417  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1418_ACEOF
1419fi
1420
1421if test -n "$ac_init_help"; then
1422  case $ac_init_help in
1423     short | recursive ) echo "Configuration of xprop 1.2.6:";;
1424   esac
1425  cat <<\_ACEOF
1426
1427Optional Features:
1428  --disable-option-checking  ignore unrecognized --enable/--with options
1429  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1430  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1431  --enable-silent-rules   less verbose build output (undo: "make V=1")
1432  --disable-silent-rules  verbose build output (undo: "make V=0")
1433  --enable-dependency-tracking
1434                          do not reject slow dependency extractors
1435  --disable-dependency-tracking
1436                          speeds up one-time build
1437  --disable-selective-werror
1438                          Turn off selective compiler errors. (default:
1439                          enabled)
1440  --enable-strict-compilation
1441                          Enable all warnings from compiler and make them
1442                          errors (default: disabled)
1443
1444Optional Packages:
1445  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1446  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1447  --with-lint             Use a lint-style source code checker (default:
1448                          disabled)
1449
1450Some influential environment variables:
1451  CC          C compiler command
1452  CFLAGS      C compiler flags
1453  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1454              nonstandard directory <lib dir>
1455  LIBS        libraries to pass to the linker, e.g. -l<library>
1456  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1457              you have headers in a nonstandard directory <include dir>
1458  PKG_CONFIG  path to pkg-config utility
1459  PKG_CONFIG_PATH
1460              directories to add to pkg-config's search path
1461  PKG_CONFIG_LIBDIR
1462              path overriding pkg-config's built-in search path
1463  XPROP_CFLAGS
1464              C compiler flags for XPROP, overriding pkg-config
1465  XPROP_LIBS  linker flags for XPROP, overriding pkg-config
1466  LINT        Path to a lint-style command
1467  LINT_FLAGS  Flags for the lint-style command
1468
1469Use these variables to override the choices made by `configure' or to help
1470it to find libraries and programs with nonstandard names/locations.
1471
1472Report bugs to <https://gitlab.freedesktop.org/xorg/app/xprop/-/issues>.
1473_ACEOF
1474ac_status=$?
1475fi
1476
1477if test "$ac_init_help" = "recursive"; then
1478  # If there are subdirs, report their specific --help.
1479  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1480    test -d "$ac_dir" ||
1481      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1482      continue
1483    ac_builddir=.
1484
1485case "$ac_dir" in
1486.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1487*)
1488  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1489  # A ".." for each directory in $ac_dir_suffix.
1490  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1491  case $ac_top_builddir_sub in
1492  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1494  esac ;;
1495esac
1496ac_abs_top_builddir=$ac_pwd
1497ac_abs_builddir=$ac_pwd$ac_dir_suffix
1498# for backward compatibility:
1499ac_top_builddir=$ac_top_build_prefix
1500
1501case $srcdir in
1502  .)  # We are building in place.
1503    ac_srcdir=.
1504    ac_top_srcdir=$ac_top_builddir_sub
1505    ac_abs_top_srcdir=$ac_pwd ;;
1506  [\\/]* | ?:[\\/]* )  # Absolute name.
1507    ac_srcdir=$srcdir$ac_dir_suffix;
1508    ac_top_srcdir=$srcdir
1509    ac_abs_top_srcdir=$srcdir ;;
1510  *) # Relative name.
1511    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1512    ac_top_srcdir=$ac_top_build_prefix$srcdir
1513    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1514esac
1515ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1516
1517    cd "$ac_dir" || { ac_status=$?; continue; }
1518    # Check for configure.gnu first; this name is used for a wrapper for
1519    # Metaconfig's "Configure" on case-insensitive file systems.
1520    if test -f "$ac_srcdir/configure.gnu"; then
1521      echo &&
1522      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523    elif test -f "$ac_srcdir/configure"; then
1524      echo &&
1525      $SHELL "$ac_srcdir/configure" --help=recursive
1526    else
1527      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1528    fi || ac_status=$?
1529    cd "$ac_pwd" || { ac_status=$?; break; }
1530  done
1531fi
1532
1533test -n "$ac_init_help" && exit $ac_status
1534if $ac_init_version; then
1535  cat <<\_ACEOF
1536xprop configure 1.2.6
1537generated by GNU Autoconf 2.71
1538
1539Copyright (C) 2021 Free Software Foundation, Inc.
1540This configure script is free software; the Free Software Foundation
1541gives unlimited permission to copy, distribute and modify it.
1542_ACEOF
1543  exit
1544fi
1545
1546## ------------------------ ##
1547## Autoconf initialization. ##
1548## ------------------------ ##
1549
1550# ac_fn_c_try_compile LINENO
1551# --------------------------
1552# Try to compile conftest.$ac_ext, and return whether this succeeded.
1553ac_fn_c_try_compile ()
1554{
1555  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556  rm -f conftest.$ac_objext conftest.beam
1557  if { { ac_try="$ac_compile"
1558case "(($ac_try" in
1559  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560  *) ac_try_echo=$ac_try;;
1561esac
1562eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563printf "%s\n" "$ac_try_echo"; } >&5
1564  (eval "$ac_compile") 2>conftest.err
1565  ac_status=$?
1566  if test -s conftest.err; then
1567    grep -v '^ *+' conftest.err >conftest.er1
1568    cat conftest.er1 >&5
1569    mv -f conftest.er1 conftest.err
1570  fi
1571  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572  test $ac_status = 0; } && {
1573	 test -z "$ac_c_werror_flag" ||
1574	 test ! -s conftest.err
1575       } && test -s conftest.$ac_objext
1576then :
1577  ac_retval=0
1578else $as_nop
1579  printf "%s\n" "$as_me: failed program was:" >&5
1580sed 's/^/| /' conftest.$ac_ext >&5
1581
1582	ac_retval=1
1583fi
1584  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1585  as_fn_set_status $ac_retval
1586
1587} # ac_fn_c_try_compile
1588
1589# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1590# ------------------------------------------------------------------
1591# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1592# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1593ac_fn_check_decl ()
1594{
1595  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596  as_decl_name=`echo $2|sed 's/ *(.*//'`
1597  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1598printf %s "checking whether $as_decl_name is declared... " >&6; }
1599if eval test \${$3+y}
1600then :
1601  printf %s "(cached) " >&6
1602else $as_nop
1603  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1604  eval ac_save_FLAGS=\$$6
1605  as_fn_append $6 " $5"
1606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1607/* end confdefs.h.  */
1608$4
1609int
1610main (void)
1611{
1612#ifndef $as_decl_name
1613#ifdef __cplusplus
1614  (void) $as_decl_use;
1615#else
1616  (void) $as_decl_name;
1617#endif
1618#endif
1619
1620  ;
1621  return 0;
1622}
1623_ACEOF
1624if ac_fn_c_try_compile "$LINENO"
1625then :
1626  eval "$3=yes"
1627else $as_nop
1628  eval "$3=no"
1629fi
1630rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1631  eval $6=\$ac_save_FLAGS
1632
1633fi
1634eval ac_res=\$$3
1635	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1636printf "%s\n" "$ac_res" >&6; }
1637  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1638
1639} # ac_fn_check_decl
1640
1641# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1642# -------------------------------------------------------
1643# Tests whether HEADER exists and can be compiled using the include files in
1644# INCLUDES, setting the cache variable VAR accordingly.
1645ac_fn_c_check_header_compile ()
1646{
1647  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1649printf %s "checking for $2... " >&6; }
1650if eval test \${$3+y}
1651then :
1652  printf %s "(cached) " >&6
1653else $as_nop
1654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655/* end confdefs.h.  */
1656$4
1657#include <$2>
1658_ACEOF
1659if ac_fn_c_try_compile "$LINENO"
1660then :
1661  eval "$3=yes"
1662else $as_nop
1663  eval "$3=no"
1664fi
1665rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1666fi
1667eval ac_res=\$$3
1668	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1669printf "%s\n" "$ac_res" >&6; }
1670  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671
1672} # ac_fn_c_check_header_compile
1673
1674# ac_fn_c_try_link LINENO
1675# -----------------------
1676# Try to link conftest.$ac_ext, and return whether this succeeded.
1677ac_fn_c_try_link ()
1678{
1679  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1681  if { { ac_try="$ac_link"
1682case "(($ac_try" in
1683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684  *) ac_try_echo=$ac_try;;
1685esac
1686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687printf "%s\n" "$ac_try_echo"; } >&5
1688  (eval "$ac_link") 2>conftest.err
1689  ac_status=$?
1690  if test -s conftest.err; then
1691    grep -v '^ *+' conftest.err >conftest.er1
1692    cat conftest.er1 >&5
1693    mv -f conftest.er1 conftest.err
1694  fi
1695  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696  test $ac_status = 0; } && {
1697	 test -z "$ac_c_werror_flag" ||
1698	 test ! -s conftest.err
1699       } && test -s conftest$ac_exeext && {
1700	 test "$cross_compiling" = yes ||
1701	 test -x conftest$ac_exeext
1702       }
1703then :
1704  ac_retval=0
1705else $as_nop
1706  printf "%s\n" "$as_me: failed program was:" >&5
1707sed 's/^/| /' conftest.$ac_ext >&5
1708
1709	ac_retval=1
1710fi
1711  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1712  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1713  # interfere with the next link command; also delete a directory that is
1714  # left behind by Apple's compiler.  We do this before executing the actions.
1715  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1716  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717  as_fn_set_status $ac_retval
1718
1719} # ac_fn_c_try_link
1720ac_configure_args_raw=
1721for ac_arg
1722do
1723  case $ac_arg in
1724  *\'*)
1725    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1726  esac
1727  as_fn_append ac_configure_args_raw " '$ac_arg'"
1728done
1729
1730case $ac_configure_args_raw in
1731  *$as_nl*)
1732    ac_safe_unquote= ;;
1733  *)
1734    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1735    ac_unsafe_a="$ac_unsafe_z#~"
1736    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1737    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1738esac
1739
1740cat >config.log <<_ACEOF
1741This file contains any messages produced by compilers while
1742running configure, to aid debugging if configure makes a mistake.
1743
1744It was created by xprop $as_me 1.2.6, which was
1745generated by GNU Autoconf 2.71.  Invocation command line was
1746
1747  $ $0$ac_configure_args_raw
1748
1749_ACEOF
1750exec 5>>config.log
1751{
1752cat <<_ASUNAME
1753## --------- ##
1754## Platform. ##
1755## --------- ##
1756
1757hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1758uname -m = `(uname -m) 2>/dev/null || echo unknown`
1759uname -r = `(uname -r) 2>/dev/null || echo unknown`
1760uname -s = `(uname -s) 2>/dev/null || echo unknown`
1761uname -v = `(uname -v) 2>/dev/null || echo unknown`
1762
1763/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1764/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1765
1766/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1767/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1768/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1769/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1770/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1771/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1772/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1773
1774_ASUNAME
1775
1776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1777for as_dir in $PATH
1778do
1779  IFS=$as_save_IFS
1780  case $as_dir in #(((
1781    '') as_dir=./ ;;
1782    */) ;;
1783    *) as_dir=$as_dir/ ;;
1784  esac
1785    printf "%s\n" "PATH: $as_dir"
1786  done
1787IFS=$as_save_IFS
1788
1789} >&5
1790
1791cat >&5 <<_ACEOF
1792
1793
1794## ----------- ##
1795## Core tests. ##
1796## ----------- ##
1797
1798_ACEOF
1799
1800
1801# Keep a trace of the command line.
1802# Strip out --no-create and --no-recursion so they do not pile up.
1803# Strip out --silent because we don't want to record it for future runs.
1804# Also quote any args containing shell meta-characters.
1805# Make two passes to allow for proper duplicate-argument suppression.
1806ac_configure_args=
1807ac_configure_args0=
1808ac_configure_args1=
1809ac_must_keep_next=false
1810for ac_pass in 1 2
1811do
1812  for ac_arg
1813  do
1814    case $ac_arg in
1815    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1816    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1817    | -silent | --silent | --silen | --sile | --sil)
1818      continue ;;
1819    *\'*)
1820      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1821    esac
1822    case $ac_pass in
1823    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1824    2)
1825      as_fn_append ac_configure_args1 " '$ac_arg'"
1826      if test $ac_must_keep_next = true; then
1827	ac_must_keep_next=false # Got value, back to normal.
1828      else
1829	case $ac_arg in
1830	  *=* | --config-cache | -C | -disable-* | --disable-* \
1831	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1832	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1833	  | -with-* | --with-* | -without-* | --without-* | --x)
1834	    case "$ac_configure_args0 " in
1835	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1836	    esac
1837	    ;;
1838	  -* ) ac_must_keep_next=true ;;
1839	esac
1840      fi
1841      as_fn_append ac_configure_args " '$ac_arg'"
1842      ;;
1843    esac
1844  done
1845done
1846{ ac_configure_args0=; unset ac_configure_args0;}
1847{ ac_configure_args1=; unset ac_configure_args1;}
1848
1849# When interrupted or exit'd, cleanup temporary files, and complete
1850# config.log.  We remove comments because anyway the quotes in there
1851# would cause problems or look ugly.
1852# WARNING: Use '\'' to represent an apostrophe within the trap.
1853# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1854trap 'exit_status=$?
1855  # Sanitize IFS.
1856  IFS=" ""	$as_nl"
1857  # Save into config.log some information that might help in debugging.
1858  {
1859    echo
1860
1861    printf "%s\n" "## ---------------- ##
1862## Cache variables. ##
1863## ---------------- ##"
1864    echo
1865    # The following way of writing the cache mishandles newlines in values,
1866(
1867  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1868    eval ac_val=\$$ac_var
1869    case $ac_val in #(
1870    *${as_nl}*)
1871      case $ac_var in #(
1872      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1873printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1874      esac
1875      case $ac_var in #(
1876      _ | IFS | as_nl) ;; #(
1877      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1878      *) { eval $ac_var=; unset $ac_var;} ;;
1879      esac ;;
1880    esac
1881  done
1882  (set) 2>&1 |
1883    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1884    *${as_nl}ac_space=\ *)
1885      sed -n \
1886	"s/'\''/'\''\\\\'\'''\''/g;
1887	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1888      ;; #(
1889    *)
1890      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1891      ;;
1892    esac |
1893    sort
1894)
1895    echo
1896
1897    printf "%s\n" "## ----------------- ##
1898## Output variables. ##
1899## ----------------- ##"
1900    echo
1901    for ac_var in $ac_subst_vars
1902    do
1903      eval ac_val=\$$ac_var
1904      case $ac_val in
1905      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1906      esac
1907      printf "%s\n" "$ac_var='\''$ac_val'\''"
1908    done | sort
1909    echo
1910
1911    if test -n "$ac_subst_files"; then
1912      printf "%s\n" "## ------------------- ##
1913## File substitutions. ##
1914## ------------------- ##"
1915      echo
1916      for ac_var in $ac_subst_files
1917      do
1918	eval ac_val=\$$ac_var
1919	case $ac_val in
1920	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1921	esac
1922	printf "%s\n" "$ac_var='\''$ac_val'\''"
1923      done | sort
1924      echo
1925    fi
1926
1927    if test -s confdefs.h; then
1928      printf "%s\n" "## ----------- ##
1929## confdefs.h. ##
1930## ----------- ##"
1931      echo
1932      cat confdefs.h
1933      echo
1934    fi
1935    test "$ac_signal" != 0 &&
1936      printf "%s\n" "$as_me: caught signal $ac_signal"
1937    printf "%s\n" "$as_me: exit $exit_status"
1938  } >&5
1939  rm -f core *.core core.conftest.* &&
1940    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1941    exit $exit_status
1942' 0
1943for ac_signal in 1 2 13 15; do
1944  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1945done
1946ac_signal=0
1947
1948# confdefs.h avoids OS command line length limits that DEFS can exceed.
1949rm -f -r conftest* confdefs.h
1950
1951printf "%s\n" "/* confdefs.h */" > confdefs.h
1952
1953# Predefined preprocessor variables.
1954
1955printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1956
1957printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1958
1959printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1960
1961printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1962
1963printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1964
1965printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1966
1967
1968# Let the site file select an alternate cache file if it wants to.
1969# Prefer an explicitly selected file to automatically selected ones.
1970if test -n "$CONFIG_SITE"; then
1971  ac_site_files="$CONFIG_SITE"
1972elif test "x$prefix" != xNONE; then
1973  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1974else
1975  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1976fi
1977
1978for ac_site_file in $ac_site_files
1979do
1980  case $ac_site_file in #(
1981  */*) :
1982     ;; #(
1983  *) :
1984    ac_site_file=./$ac_site_file ;;
1985esac
1986  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1987    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1988printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1989    sed 's/^/| /' "$ac_site_file" >&5
1990    . "$ac_site_file" \
1991      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1992printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1993as_fn_error $? "failed to load site script $ac_site_file
1994See \`config.log' for more details" "$LINENO" 5; }
1995  fi
1996done
1997
1998if test -r "$cache_file"; then
1999  # Some versions of bash will fail to source /dev/null (special files
2000  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2001  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2002    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2003printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2004    case $cache_file in
2005      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2006      *)                      . "./$cache_file";;
2007    esac
2008  fi
2009else
2010  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2011printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2012  >$cache_file
2013fi
2014
2015# Test code for whether the C compiler supports C89 (global declarations)
2016ac_c_conftest_c89_globals='
2017/* Does the compiler advertise C89 conformance?
2018   Do not test the value of __STDC__, because some compilers set it to 0
2019   while being otherwise adequately conformant. */
2020#if !defined __STDC__
2021# error "Compiler does not advertise C89 conformance"
2022#endif
2023
2024#include <stddef.h>
2025#include <stdarg.h>
2026struct stat;
2027/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2028struct buf { int x; };
2029struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2030static char *e (p, i)
2031     char **p;
2032     int i;
2033{
2034  return p[i];
2035}
2036static char *f (char * (*g) (char **, int), char **p, ...)
2037{
2038  char *s;
2039  va_list v;
2040  va_start (v,p);
2041  s = g (p, va_arg (v,int));
2042  va_end (v);
2043  return s;
2044}
2045
2046/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2047   function prototypes and stuff, but not \xHH hex character constants.
2048   These do not provoke an error unfortunately, instead are silently treated
2049   as an "x".  The following induces an error, until -std is added to get
2050   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2051   array size at least.  It is necessary to write \x00 == 0 to get something
2052   that is true only with -std.  */
2053int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2054
2055/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2056   inside strings and character constants.  */
2057#define FOO(x) '\''x'\''
2058int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2059
2060int test (int i, double x);
2061struct s1 {int (*f) (int a);};
2062struct s2 {int (*f) (double a);};
2063int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2064               int, int);'
2065
2066# Test code for whether the C compiler supports C89 (body of main).
2067ac_c_conftest_c89_main='
2068ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2069'
2070
2071# Test code for whether the C compiler supports C99 (global declarations)
2072ac_c_conftest_c99_globals='
2073// Does the compiler advertise C99 conformance?
2074#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2075# error "Compiler does not advertise C99 conformance"
2076#endif
2077
2078#include <stdbool.h>
2079extern int puts (const char *);
2080extern int printf (const char *, ...);
2081extern int dprintf (int, const char *, ...);
2082extern void *malloc (size_t);
2083
2084// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2085// dprintf is used instead of fprintf to avoid needing to declare
2086// FILE and stderr.
2087#define debug(...) dprintf (2, __VA_ARGS__)
2088#define showlist(...) puts (#__VA_ARGS__)
2089#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2090static void
2091test_varargs_macros (void)
2092{
2093  int x = 1234;
2094  int y = 5678;
2095  debug ("Flag");
2096  debug ("X = %d\n", x);
2097  showlist (The first, second, and third items.);
2098  report (x>y, "x is %d but y is %d", x, y);
2099}
2100
2101// Check long long types.
2102#define BIG64 18446744073709551615ull
2103#define BIG32 4294967295ul
2104#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2105#if !BIG_OK
2106  #error "your preprocessor is broken"
2107#endif
2108#if BIG_OK
2109#else
2110  #error "your preprocessor is broken"
2111#endif
2112static long long int bignum = -9223372036854775807LL;
2113static unsigned long long int ubignum = BIG64;
2114
2115struct incomplete_array
2116{
2117  int datasize;
2118  double data[];
2119};
2120
2121struct named_init {
2122  int number;
2123  const wchar_t *name;
2124  double average;
2125};
2126
2127typedef const char *ccp;
2128
2129static inline int
2130test_restrict (ccp restrict text)
2131{
2132  // See if C++-style comments work.
2133  // Iterate through items via the restricted pointer.
2134  // Also check for declarations in for loops.
2135  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2136    continue;
2137  return 0;
2138}
2139
2140// Check varargs and va_copy.
2141static bool
2142test_varargs (const char *format, ...)
2143{
2144  va_list args;
2145  va_start (args, format);
2146  va_list args_copy;
2147  va_copy (args_copy, args);
2148
2149  const char *str = "";
2150  int number = 0;
2151  float fnumber = 0;
2152
2153  while (*format)
2154    {
2155      switch (*format++)
2156	{
2157	case '\''s'\'': // string
2158	  str = va_arg (args_copy, const char *);
2159	  break;
2160	case '\''d'\'': // int
2161	  number = va_arg (args_copy, int);
2162	  break;
2163	case '\''f'\'': // float
2164	  fnumber = va_arg (args_copy, double);
2165	  break;
2166	default:
2167	  break;
2168	}
2169    }
2170  va_end (args_copy);
2171  va_end (args);
2172
2173  return *str && number && fnumber;
2174}
2175'
2176
2177# Test code for whether the C compiler supports C99 (body of main).
2178ac_c_conftest_c99_main='
2179  // Check bool.
2180  _Bool success = false;
2181  success |= (argc != 0);
2182
2183  // Check restrict.
2184  if (test_restrict ("String literal") == 0)
2185    success = true;
2186  char *restrict newvar = "Another string";
2187
2188  // Check varargs.
2189  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2190  test_varargs_macros ();
2191
2192  // Check flexible array members.
2193  struct incomplete_array *ia =
2194    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2195  ia->datasize = 10;
2196  for (int i = 0; i < ia->datasize; ++i)
2197    ia->data[i] = i * 1.234;
2198
2199  // Check named initializers.
2200  struct named_init ni = {
2201    .number = 34,
2202    .name = L"Test wide string",
2203    .average = 543.34343,
2204  };
2205
2206  ni.number = 58;
2207
2208  int dynamic_array[ni.number];
2209  dynamic_array[0] = argv[0][0];
2210  dynamic_array[ni.number - 1] = 543;
2211
2212  // work around unused variable warnings
2213  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2214	 || dynamic_array[ni.number - 1] != 543);
2215'
2216
2217# Test code for whether the C compiler supports C11 (global declarations)
2218ac_c_conftest_c11_globals='
2219// Does the compiler advertise C11 conformance?
2220#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2221# error "Compiler does not advertise C11 conformance"
2222#endif
2223
2224// Check _Alignas.
2225char _Alignas (double) aligned_as_double;
2226char _Alignas (0) no_special_alignment;
2227extern char aligned_as_int;
2228char _Alignas (0) _Alignas (int) aligned_as_int;
2229
2230// Check _Alignof.
2231enum
2232{
2233  int_alignment = _Alignof (int),
2234  int_array_alignment = _Alignof (int[100]),
2235  char_alignment = _Alignof (char)
2236};
2237_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2238
2239// Check _Noreturn.
2240int _Noreturn does_not_return (void) { for (;;) continue; }
2241
2242// Check _Static_assert.
2243struct test_static_assert
2244{
2245  int x;
2246  _Static_assert (sizeof (int) <= sizeof (long int),
2247                  "_Static_assert does not work in struct");
2248  long int y;
2249};
2250
2251// Check UTF-8 literals.
2252#define u8 syntax error!
2253char const utf8_literal[] = u8"happens to be ASCII" "another string";
2254
2255// Check duplicate typedefs.
2256typedef long *long_ptr;
2257typedef long int *long_ptr;
2258typedef long_ptr long_ptr;
2259
2260// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2261struct anonymous
2262{
2263  union {
2264    struct { int i; int j; };
2265    struct { int k; long int l; } w;
2266  };
2267  int m;
2268} v1;
2269'
2270
2271# Test code for whether the C compiler supports C11 (body of main).
2272ac_c_conftest_c11_main='
2273  _Static_assert ((offsetof (struct anonymous, i)
2274		   == offsetof (struct anonymous, w.k)),
2275		  "Anonymous union alignment botch");
2276  v1.i = 2;
2277  v1.w.k = 5;
2278  ok |= v1.i != 5;
2279'
2280
2281# Test code for whether the C compiler supports C11 (complete).
2282ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2283${ac_c_conftest_c99_globals}
2284${ac_c_conftest_c11_globals}
2285
2286int
2287main (int argc, char **argv)
2288{
2289  int ok = 0;
2290  ${ac_c_conftest_c89_main}
2291  ${ac_c_conftest_c99_main}
2292  ${ac_c_conftest_c11_main}
2293  return ok;
2294}
2295"
2296
2297# Test code for whether the C compiler supports C99 (complete).
2298ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2299${ac_c_conftest_c99_globals}
2300
2301int
2302main (int argc, char **argv)
2303{
2304  int ok = 0;
2305  ${ac_c_conftest_c89_main}
2306  ${ac_c_conftest_c99_main}
2307  return ok;
2308}
2309"
2310
2311# Test code for whether the C compiler supports C89 (complete).
2312ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2313
2314int
2315main (int argc, char **argv)
2316{
2317  int ok = 0;
2318  ${ac_c_conftest_c89_main}
2319  return ok;
2320}
2321"
2322
2323as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2324as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2325as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2326as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2327as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2328as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2329as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2330as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2331as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2332
2333# Auxiliary files required by this configure script.
2334ac_aux_files="config.guess config.sub compile missing install-sh"
2335
2336# Locations in which to look for auxiliary files.
2337ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2338
2339# Search for a directory containing all of the required auxiliary files,
2340# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2341# If we don't find one directory that contains all the files we need,
2342# we report the set of missing files from the *first* directory in
2343# $ac_aux_dir_candidates and give up.
2344ac_missing_aux_files=""
2345ac_first_candidate=:
2346printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348as_found=false
2349for as_dir in $ac_aux_dir_candidates
2350do
2351  IFS=$as_save_IFS
2352  case $as_dir in #(((
2353    '') as_dir=./ ;;
2354    */) ;;
2355    *) as_dir=$as_dir/ ;;
2356  esac
2357  as_found=:
2358
2359  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2360  ac_aux_dir_found=yes
2361  ac_install_sh=
2362  for ac_aux in $ac_aux_files
2363  do
2364    # As a special case, if "install-sh" is required, that requirement
2365    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2366    # and $ac_install_sh is set appropriately for whichever one is found.
2367    if test x"$ac_aux" = x"install-sh"
2368    then
2369      if test -f "${as_dir}install-sh"; then
2370        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2371        ac_install_sh="${as_dir}install-sh -c"
2372      elif test -f "${as_dir}install.sh"; then
2373        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2374        ac_install_sh="${as_dir}install.sh -c"
2375      elif test -f "${as_dir}shtool"; then
2376        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2377        ac_install_sh="${as_dir}shtool install -c"
2378      else
2379        ac_aux_dir_found=no
2380        if $ac_first_candidate; then
2381          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2382        else
2383          break
2384        fi
2385      fi
2386    else
2387      if test -f "${as_dir}${ac_aux}"; then
2388        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2389      else
2390        ac_aux_dir_found=no
2391        if $ac_first_candidate; then
2392          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2393        else
2394          break
2395        fi
2396      fi
2397    fi
2398  done
2399  if test "$ac_aux_dir_found" = yes; then
2400    ac_aux_dir="$as_dir"
2401    break
2402  fi
2403  ac_first_candidate=false
2404
2405  as_found=false
2406done
2407IFS=$as_save_IFS
2408if $as_found
2409then :
2410
2411else $as_nop
2412  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2413fi
2414
2415
2416# These three variables are undocumented and unsupported,
2417# and are intended to be withdrawn in a future Autoconf release.
2418# They can cause serious problems if a builder's source tree is in a directory
2419# whose full name contains unusual characters.
2420if test -f "${ac_aux_dir}config.guess"; then
2421  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2422fi
2423if test -f "${ac_aux_dir}config.sub"; then
2424  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2425fi
2426if test -f "$ac_aux_dir/configure"; then
2427  ac_configure="$SHELL ${ac_aux_dir}configure"
2428fi
2429
2430# Check that the precious variables saved in the cache have kept the same
2431# value.
2432ac_cache_corrupted=false
2433for ac_var in $ac_precious_vars; do
2434  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2435  eval ac_new_set=\$ac_env_${ac_var}_set
2436  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2437  eval ac_new_val=\$ac_env_${ac_var}_value
2438  case $ac_old_set,$ac_new_set in
2439    set,)
2440      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2441printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2442      ac_cache_corrupted=: ;;
2443    ,set)
2444      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2445printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2446      ac_cache_corrupted=: ;;
2447    ,);;
2448    *)
2449      if test "x$ac_old_val" != "x$ac_new_val"; then
2450	# differences in whitespace do not lead to failure.
2451	ac_old_val_w=`echo x $ac_old_val`
2452	ac_new_val_w=`echo x $ac_new_val`
2453	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2454	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2455printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2456	  ac_cache_corrupted=:
2457	else
2458	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2459printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2460	  eval $ac_var=\$ac_old_val
2461	fi
2462	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2463printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2464	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2465printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2466      fi;;
2467  esac
2468  # Pass precious variables to config.status.
2469  if test "$ac_new_set" = set; then
2470    case $ac_new_val in
2471    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2472    *) ac_arg=$ac_var=$ac_new_val ;;
2473    esac
2474    case " $ac_configure_args " in
2475      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2476      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2477    esac
2478  fi
2479done
2480if $ac_cache_corrupted; then
2481  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2482printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2483  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2484printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2485  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2486	    and start over" "$LINENO" 5
2487fi
2488## -------------------- ##
2489## Main body of script. ##
2490## -------------------- ##
2491
2492ac_ext=c
2493ac_cpp='$CPP $CPPFLAGS'
2494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2496ac_compiler_gnu=$ac_cv_c_compiler_gnu
2497
2498
2499
2500ac_config_headers="$ac_config_headers config.h"
2501
2502
2503# Initialize Automake
2504am__api_version='1.16'
2505
2506
2507
2508  # Find a good install program.  We prefer a C program (faster),
2509# so one script is as good as another.  But avoid the broken or
2510# incompatible versions:
2511# SysV /etc/install, /usr/sbin/install
2512# SunOS /usr/etc/install
2513# IRIX /sbin/install
2514# AIX /bin/install
2515# AmigaOS /C/install, which installs bootblocks on floppy discs
2516# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2517# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2518# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2519# OS/2's system install, which has a completely different semantic
2520# ./install, which can be erroneously created by make from ./install.sh.
2521# Reject install programs that cannot install multiple files.
2522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2523printf %s "checking for a BSD-compatible install... " >&6; }
2524if test -z "$INSTALL"; then
2525if test ${ac_cv_path_install+y}
2526then :
2527  printf %s "(cached) " >&6
2528else $as_nop
2529  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530for as_dir in $PATH
2531do
2532  IFS=$as_save_IFS
2533  case $as_dir in #(((
2534    '') as_dir=./ ;;
2535    */) ;;
2536    *) as_dir=$as_dir/ ;;
2537  esac
2538    # Account for fact that we put trailing slashes in our PATH walk.
2539case $as_dir in #((
2540  ./ | /[cC]/* | \
2541  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2542  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2543  /usr/ucb/* ) ;;
2544  *)
2545    # OSF1 and SCO ODT 3.0 have their own names for install.
2546    # Don't use installbsd from OSF since it installs stuff as root
2547    # by default.
2548    for ac_prog in ginstall scoinst install; do
2549      for ac_exec_ext in '' $ac_executable_extensions; do
2550	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2551	  if test $ac_prog = install &&
2552	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2553	    # AIX install.  It has an incompatible calling convention.
2554	    :
2555	  elif test $ac_prog = install &&
2556	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2557	    # program-specific install script used by HP pwplus--don't use.
2558	    :
2559	  else
2560	    rm -rf conftest.one conftest.two conftest.dir
2561	    echo one > conftest.one
2562	    echo two > conftest.two
2563	    mkdir conftest.dir
2564	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2565	      test -s conftest.one && test -s conftest.two &&
2566	      test -s conftest.dir/conftest.one &&
2567	      test -s conftest.dir/conftest.two
2568	    then
2569	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2570	      break 3
2571	    fi
2572	  fi
2573	fi
2574      done
2575    done
2576    ;;
2577esac
2578
2579  done
2580IFS=$as_save_IFS
2581
2582rm -rf conftest.one conftest.two conftest.dir
2583
2584fi
2585  if test ${ac_cv_path_install+y}; then
2586    INSTALL=$ac_cv_path_install
2587  else
2588    # As a last resort, use the slow shell script.  Don't cache a
2589    # value for INSTALL within a source directory, because that will
2590    # break other packages using the cache if that directory is
2591    # removed, or if the value is a relative name.
2592    INSTALL=$ac_install_sh
2593  fi
2594fi
2595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2596printf "%s\n" "$INSTALL" >&6; }
2597
2598# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2599# It thinks the first close brace ends the variable substitution.
2600test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2601
2602test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2603
2604test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2605
2606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2607printf %s "checking whether build environment is sane... " >&6; }
2608# Reject unsafe characters in $srcdir or the absolute working directory
2609# name.  Accept space and tab only in the latter.
2610am_lf='
2611'
2612case `pwd` in
2613  *[\\\"\#\$\&\'\`$am_lf]*)
2614    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2615esac
2616case $srcdir in
2617  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2618    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2619esac
2620
2621# Do 'set' in a subshell so we don't clobber the current shell's
2622# arguments.  Must try -L first in case configure is actually a
2623# symlink; some systems play weird games with the mod time of symlinks
2624# (eg FreeBSD returns the mod time of the symlink's containing
2625# directory).
2626if (
2627   am_has_slept=no
2628   for am_try in 1 2; do
2629     echo "timestamp, slept: $am_has_slept" > conftest.file
2630     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2631     if test "$*" = "X"; then
2632	# -L didn't work.
2633	set X `ls -t "$srcdir/configure" conftest.file`
2634     fi
2635     if test "$*" != "X $srcdir/configure conftest.file" \
2636	&& test "$*" != "X conftest.file $srcdir/configure"; then
2637
2638	# If neither matched, then we have a broken ls.  This can happen
2639	# if, for instance, CONFIG_SHELL is bash and it inherits a
2640	# broken ls alias from the environment.  This has actually
2641	# happened.  Such a system could not be considered "sane".
2642	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2643  alias in your environment" "$LINENO" 5
2644     fi
2645     if test "$2" = conftest.file || test $am_try -eq 2; then
2646       break
2647     fi
2648     # Just in case.
2649     sleep 1
2650     am_has_slept=yes
2651   done
2652   test "$2" = conftest.file
2653   )
2654then
2655   # Ok.
2656   :
2657else
2658   as_fn_error $? "newly created file is older than distributed files!
2659Check your system clock" "$LINENO" 5
2660fi
2661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2662printf "%s\n" "yes" >&6; }
2663# If we didn't sleep, we still need to ensure time stamps of config.status and
2664# generated files are strictly newer.
2665am_sleep_pid=
2666if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2667  ( sleep 1 ) &
2668  am_sleep_pid=$!
2669fi
2670
2671rm -f conftest.file
2672
2673test "$program_prefix" != NONE &&
2674  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2675# Use a double $ so make ignores it.
2676test "$program_suffix" != NONE &&
2677  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2678# Double any \ or $.
2679# By default was `s,x,x', remove it if useless.
2680ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2681program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2682
2683
2684# Expand $ac_aux_dir to an absolute path.
2685am_aux_dir=`cd "$ac_aux_dir" && pwd`
2686
2687
2688  if test x"${MISSING+set}" != xset; then
2689  MISSING="\${SHELL} '$am_aux_dir/missing'"
2690fi
2691# Use eval to expand $SHELL
2692if eval "$MISSING --is-lightweight"; then
2693  am_missing_run="$MISSING "
2694else
2695  am_missing_run=
2696  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2697printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2698fi
2699
2700if test x"${install_sh+set}" != xset; then
2701  case $am_aux_dir in
2702  *\ * | *\	*)
2703    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2704  *)
2705    install_sh="\${SHELL} $am_aux_dir/install-sh"
2706  esac
2707fi
2708
2709# Installed binaries are usually stripped using 'strip' when the user
2710# run "make install-strip".  However 'strip' might not be the right
2711# tool to use in cross-compilation environments, therefore Automake
2712# will honor the 'STRIP' environment variable to overrule this program.
2713if test "$cross_compiling" != no; then
2714  if test -n "$ac_tool_prefix"; then
2715  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2716set dummy ${ac_tool_prefix}strip; ac_word=$2
2717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2718printf %s "checking for $ac_word... " >&6; }
2719if test ${ac_cv_prog_STRIP+y}
2720then :
2721  printf %s "(cached) " >&6
2722else $as_nop
2723  if test -n "$STRIP"; then
2724  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2725else
2726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727for as_dir in $PATH
2728do
2729  IFS=$as_save_IFS
2730  case $as_dir in #(((
2731    '') as_dir=./ ;;
2732    */) ;;
2733    *) as_dir=$as_dir/ ;;
2734  esac
2735    for ac_exec_ext in '' $ac_executable_extensions; do
2736  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2737    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2738    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2739    break 2
2740  fi
2741done
2742  done
2743IFS=$as_save_IFS
2744
2745fi
2746fi
2747STRIP=$ac_cv_prog_STRIP
2748if test -n "$STRIP"; then
2749  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2750printf "%s\n" "$STRIP" >&6; }
2751else
2752  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2753printf "%s\n" "no" >&6; }
2754fi
2755
2756
2757fi
2758if test -z "$ac_cv_prog_STRIP"; then
2759  ac_ct_STRIP=$STRIP
2760  # Extract the first word of "strip", so it can be a program name with args.
2761set dummy strip; ac_word=$2
2762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2763printf %s "checking for $ac_word... " >&6; }
2764if test ${ac_cv_prog_ac_ct_STRIP+y}
2765then :
2766  printf %s "(cached) " >&6
2767else $as_nop
2768  if test -n "$ac_ct_STRIP"; then
2769  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2770else
2771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772for as_dir in $PATH
2773do
2774  IFS=$as_save_IFS
2775  case $as_dir in #(((
2776    '') as_dir=./ ;;
2777    */) ;;
2778    *) as_dir=$as_dir/ ;;
2779  esac
2780    for ac_exec_ext in '' $ac_executable_extensions; do
2781  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2782    ac_cv_prog_ac_ct_STRIP="strip"
2783    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2784    break 2
2785  fi
2786done
2787  done
2788IFS=$as_save_IFS
2789
2790fi
2791fi
2792ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2793if test -n "$ac_ct_STRIP"; then
2794  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2795printf "%s\n" "$ac_ct_STRIP" >&6; }
2796else
2797  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2798printf "%s\n" "no" >&6; }
2799fi
2800
2801  if test "x$ac_ct_STRIP" = x; then
2802    STRIP=":"
2803  else
2804    case $cross_compiling:$ac_tool_warned in
2805yes:)
2806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2807printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2808ac_tool_warned=yes ;;
2809esac
2810    STRIP=$ac_ct_STRIP
2811  fi
2812else
2813  STRIP="$ac_cv_prog_STRIP"
2814fi
2815
2816fi
2817INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2818
2819
2820  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2821printf %s "checking for a race-free mkdir -p... " >&6; }
2822if test -z "$MKDIR_P"; then
2823  if test ${ac_cv_path_mkdir+y}
2824then :
2825  printf %s "(cached) " >&6
2826else $as_nop
2827  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2829do
2830  IFS=$as_save_IFS
2831  case $as_dir in #(((
2832    '') as_dir=./ ;;
2833    */) ;;
2834    *) as_dir=$as_dir/ ;;
2835  esac
2836    for ac_prog in mkdir gmkdir; do
2837	 for ac_exec_ext in '' $ac_executable_extensions; do
2838	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2839	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2840	     'mkdir ('*'coreutils) '* | \
2841	     'BusyBox '* | \
2842	     'mkdir (fileutils) '4.1*)
2843	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2844	       break 3;;
2845	   esac
2846	 done
2847       done
2848  done
2849IFS=$as_save_IFS
2850
2851fi
2852
2853  test -d ./--version && rmdir ./--version
2854  if test ${ac_cv_path_mkdir+y}; then
2855    MKDIR_P="$ac_cv_path_mkdir -p"
2856  else
2857    # As a last resort, use the slow shell script.  Don't cache a
2858    # value for MKDIR_P within a source directory, because that will
2859    # break other packages using the cache if that directory is
2860    # removed, or if the value is a relative name.
2861    MKDIR_P="$ac_install_sh -d"
2862  fi
2863fi
2864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2865printf "%s\n" "$MKDIR_P" >&6; }
2866
2867for ac_prog in gawk mawk nawk awk
2868do
2869  # Extract the first word of "$ac_prog", so it can be a program name with args.
2870set dummy $ac_prog; ac_word=$2
2871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872printf %s "checking for $ac_word... " >&6; }
2873if test ${ac_cv_prog_AWK+y}
2874then :
2875  printf %s "(cached) " >&6
2876else $as_nop
2877  if test -n "$AWK"; then
2878  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2879else
2880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881for as_dir in $PATH
2882do
2883  IFS=$as_save_IFS
2884  case $as_dir in #(((
2885    '') as_dir=./ ;;
2886    */) ;;
2887    *) as_dir=$as_dir/ ;;
2888  esac
2889    for ac_exec_ext in '' $ac_executable_extensions; do
2890  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2891    ac_cv_prog_AWK="$ac_prog"
2892    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2893    break 2
2894  fi
2895done
2896  done
2897IFS=$as_save_IFS
2898
2899fi
2900fi
2901AWK=$ac_cv_prog_AWK
2902if test -n "$AWK"; then
2903  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2904printf "%s\n" "$AWK" >&6; }
2905else
2906  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907printf "%s\n" "no" >&6; }
2908fi
2909
2910
2911  test -n "$AWK" && break
2912done
2913
2914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2915printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2916set x ${MAKE-make}
2917ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2918if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2919then :
2920  printf %s "(cached) " >&6
2921else $as_nop
2922  cat >conftest.make <<\_ACEOF
2923SHELL = /bin/sh
2924all:
2925	@echo '@@@%%%=$(MAKE)=@@@%%%'
2926_ACEOF
2927# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2928case `${MAKE-make} -f conftest.make 2>/dev/null` in
2929  *@@@%%%=?*=@@@%%%*)
2930    eval ac_cv_prog_make_${ac_make}_set=yes;;
2931  *)
2932    eval ac_cv_prog_make_${ac_make}_set=no;;
2933esac
2934rm -f conftest.make
2935fi
2936if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2937  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2938printf "%s\n" "yes" >&6; }
2939  SET_MAKE=
2940else
2941  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942printf "%s\n" "no" >&6; }
2943  SET_MAKE="MAKE=${MAKE-make}"
2944fi
2945
2946rm -rf .tst 2>/dev/null
2947mkdir .tst 2>/dev/null
2948if test -d .tst; then
2949  am__leading_dot=.
2950else
2951  am__leading_dot=_
2952fi
2953rmdir .tst 2>/dev/null
2954
2955# Check whether --enable-silent-rules was given.
2956if test ${enable_silent_rules+y}
2957then :
2958  enableval=$enable_silent_rules;
2959fi
2960
2961case $enable_silent_rules in # (((
2962  yes) AM_DEFAULT_VERBOSITY=0;;
2963   no) AM_DEFAULT_VERBOSITY=1;;
2964    *) AM_DEFAULT_VERBOSITY=1;;
2965esac
2966am_make=${MAKE-make}
2967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2968printf %s "checking whether $am_make supports nested variables... " >&6; }
2969if test ${am_cv_make_support_nested_variables+y}
2970then :
2971  printf %s "(cached) " >&6
2972else $as_nop
2973  if printf "%s\n" 'TRUE=$(BAR$(V))
2974BAR0=false
2975BAR1=true
2976V=1
2977am__doit:
2978	@$(TRUE)
2979.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2980  am_cv_make_support_nested_variables=yes
2981else
2982  am_cv_make_support_nested_variables=no
2983fi
2984fi
2985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2986printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
2987if test $am_cv_make_support_nested_variables = yes; then
2988    AM_V='$(V)'
2989  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2990else
2991  AM_V=$AM_DEFAULT_VERBOSITY
2992  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2993fi
2994AM_BACKSLASH='\'
2995
2996if test "`cd $srcdir && pwd`" != "`pwd`"; then
2997  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2998  # is not polluted with repeated "-I."
2999  am__isrc=' -I$(srcdir)'
3000  # test to see if srcdir already configured
3001  if test -f $srcdir/config.status; then
3002    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3003  fi
3004fi
3005
3006# test whether we have cygpath
3007if test -z "$CYGPATH_W"; then
3008  if (cygpath --version) >/dev/null 2>/dev/null; then
3009    CYGPATH_W='cygpath -w'
3010  else
3011    CYGPATH_W=echo
3012  fi
3013fi
3014
3015
3016# Define the identity of the package.
3017 PACKAGE='xprop'
3018 VERSION='1.2.6'
3019
3020
3021printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3022
3023
3024printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3025
3026# Some tools Automake needs.
3027
3028ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3029
3030
3031AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3032
3033
3034AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3035
3036
3037AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3038
3039
3040MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3041
3042# For better backward compatibility.  To be removed once Automake 1.9.x
3043# dies out for good.  For more background, see:
3044# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3045# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3046mkdir_p='$(MKDIR_P)'
3047
3048# We need awk for the "check" target (and possibly the TAP driver).  The
3049# system "awk" is bad on some platforms.
3050# Always define AMTAR for backward compatibility.  Yes, it's still used
3051# in the wild :-(  We should find a proper way to deprecate it ...
3052AMTAR='$${TAR-tar}'
3053
3054
3055# We'll loop over all known methods to create a tar archive until one works.
3056_am_tools='gnutar  pax cpio none'
3057
3058am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3059
3060
3061
3062
3063
3064# Variables for tags utilities; see am/tags.am
3065if test -z "$CTAGS"; then
3066  CTAGS=ctags
3067fi
3068
3069if test -z "$ETAGS"; then
3070  ETAGS=etags
3071fi
3072
3073if test -z "$CSCOPE"; then
3074  CSCOPE=cscope
3075fi
3076
3077
3078
3079# POSIX will say in a future version that running "rm -f" with no argument
3080# is OK; and we want to be able to make that assumption in our Makefile
3081# recipes.  So use an aggressive probe to check that the usage we want is
3082# actually supported "in the wild" to an acceptable degree.
3083# See automake bug#10828.
3084# To make any issue more visible, cause the running configure to be aborted
3085# by default if the 'rm' program in use doesn't match our expectations; the
3086# user can still override this though.
3087if rm -f && rm -fr && rm -rf; then : OK; else
3088  cat >&2 <<'END'
3089Oops!
3090
3091Your 'rm' program seems unable to run without file operands specified
3092on the command line, even when the '-f' option is present.  This is contrary
3093to the behaviour of most rm programs out there, and not conforming with
3094the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3095
3096Please tell bug-automake@gnu.org about your system, including the value
3097of your $PATH and any error possibly output before this message.  This
3098can help us improve future automake versions.
3099
3100END
3101  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3102    echo 'Configuration will proceed anyway, since you have set the' >&2
3103    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3104    echo >&2
3105  else
3106    cat >&2 <<'END'
3107Aborting the configuration process, to ensure you take notice of the issue.
3108
3109You can download and install GNU coreutils to get an 'rm' implementation
3110that behaves properly: <https://www.gnu.org/software/coreutils/>.
3111
3112If you want to complete the configuration process using your problematic
3113'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3114to "yes", and re-run configure.
3115
3116END
3117    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3118  fi
3119fi
3120
3121
3122# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143DEPDIR="${am__leading_dot}deps"
3144
3145ac_config_commands="$ac_config_commands depfiles"
3146
3147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3148printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3149cat > confinc.mk << 'END'
3150am__doit:
3151	@echo this is the am__doit target >confinc.out
3152.PHONY: am__doit
3153END
3154am__include="#"
3155am__quote=
3156# BSD make does it like this.
3157echo '.include "confinc.mk" # ignored' > confmf.BSD
3158# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3159echo 'include confinc.mk # ignored' > confmf.GNU
3160_am_result=no
3161for s in GNU BSD; do
3162  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3163   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3164   ac_status=$?
3165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166   (exit $ac_status); }
3167  case $?:`cat confinc.out 2>/dev/null` in #(
3168  '0:this is the am__doit target') :
3169    case $s in #(
3170  BSD) :
3171    am__include='.include' am__quote='"' ;; #(
3172  *) :
3173    am__include='include' am__quote='' ;;
3174esac ;; #(
3175  *) :
3176     ;;
3177esac
3178  if test "$am__include" != "#"; then
3179    _am_result="yes ($s style)"
3180    break
3181  fi
3182done
3183rm -f confinc.* confmf.*
3184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3185printf "%s\n" "${_am_result}" >&6; }
3186
3187# Check whether --enable-dependency-tracking was given.
3188if test ${enable_dependency_tracking+y}
3189then :
3190  enableval=$enable_dependency_tracking;
3191fi
3192
3193if test "x$enable_dependency_tracking" != xno; then
3194  am_depcomp="$ac_aux_dir/depcomp"
3195  AMDEPBACKSLASH='\'
3196  am__nodep='_no'
3197fi
3198 if test "x$enable_dependency_tracking" != xno; then
3199  AMDEP_TRUE=
3200  AMDEP_FALSE='#'
3201else
3202  AMDEP_TRUE='#'
3203  AMDEP_FALSE=
3204fi
3205
3206
3207ac_ext=c
3208ac_cpp='$CPP $CPPFLAGS'
3209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3211ac_compiler_gnu=$ac_cv_c_compiler_gnu
3212if test -n "$ac_tool_prefix"; then
3213  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3214set dummy ${ac_tool_prefix}gcc; ac_word=$2
3215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3216printf %s "checking for $ac_word... " >&6; }
3217if test ${ac_cv_prog_CC+y}
3218then :
3219  printf %s "(cached) " >&6
3220else $as_nop
3221  if test -n "$CC"; then
3222  ac_cv_prog_CC="$CC" # Let the user override the test.
3223else
3224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225for as_dir in $PATH
3226do
3227  IFS=$as_save_IFS
3228  case $as_dir in #(((
3229    '') as_dir=./ ;;
3230    */) ;;
3231    *) as_dir=$as_dir/ ;;
3232  esac
3233    for ac_exec_ext in '' $ac_executable_extensions; do
3234  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3235    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3236    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3237    break 2
3238  fi
3239done
3240  done
3241IFS=$as_save_IFS
3242
3243fi
3244fi
3245CC=$ac_cv_prog_CC
3246if test -n "$CC"; then
3247  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3248printf "%s\n" "$CC" >&6; }
3249else
3250  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3251printf "%s\n" "no" >&6; }
3252fi
3253
3254
3255fi
3256if test -z "$ac_cv_prog_CC"; then
3257  ac_ct_CC=$CC
3258  # Extract the first word of "gcc", so it can be a program name with args.
3259set dummy gcc; ac_word=$2
3260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3261printf %s "checking for $ac_word... " >&6; }
3262if test ${ac_cv_prog_ac_ct_CC+y}
3263then :
3264  printf %s "(cached) " >&6
3265else $as_nop
3266  if test -n "$ac_ct_CC"; then
3267  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3268else
3269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270for as_dir in $PATH
3271do
3272  IFS=$as_save_IFS
3273  case $as_dir in #(((
3274    '') as_dir=./ ;;
3275    */) ;;
3276    *) as_dir=$as_dir/ ;;
3277  esac
3278    for ac_exec_ext in '' $ac_executable_extensions; do
3279  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3280    ac_cv_prog_ac_ct_CC="gcc"
3281    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3282    break 2
3283  fi
3284done
3285  done
3286IFS=$as_save_IFS
3287
3288fi
3289fi
3290ac_ct_CC=$ac_cv_prog_ac_ct_CC
3291if test -n "$ac_ct_CC"; then
3292  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3293printf "%s\n" "$ac_ct_CC" >&6; }
3294else
3295  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296printf "%s\n" "no" >&6; }
3297fi
3298
3299  if test "x$ac_ct_CC" = x; then
3300    CC=""
3301  else
3302    case $cross_compiling:$ac_tool_warned in
3303yes:)
3304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3305printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3306ac_tool_warned=yes ;;
3307esac
3308    CC=$ac_ct_CC
3309  fi
3310else
3311  CC="$ac_cv_prog_CC"
3312fi
3313
3314if test -z "$CC"; then
3315          if test -n "$ac_tool_prefix"; then
3316    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3317set dummy ${ac_tool_prefix}cc; ac_word=$2
3318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3319printf %s "checking for $ac_word... " >&6; }
3320if test ${ac_cv_prog_CC+y}
3321then :
3322  printf %s "(cached) " >&6
3323else $as_nop
3324  if test -n "$CC"; then
3325  ac_cv_prog_CC="$CC" # Let the user override the test.
3326else
3327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328for as_dir in $PATH
3329do
3330  IFS=$as_save_IFS
3331  case $as_dir in #(((
3332    '') as_dir=./ ;;
3333    */) ;;
3334    *) as_dir=$as_dir/ ;;
3335  esac
3336    for ac_exec_ext in '' $ac_executable_extensions; do
3337  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3338    ac_cv_prog_CC="${ac_tool_prefix}cc"
3339    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3340    break 2
3341  fi
3342done
3343  done
3344IFS=$as_save_IFS
3345
3346fi
3347fi
3348CC=$ac_cv_prog_CC
3349if test -n "$CC"; then
3350  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3351printf "%s\n" "$CC" >&6; }
3352else
3353  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3354printf "%s\n" "no" >&6; }
3355fi
3356
3357
3358  fi
3359fi
3360if test -z "$CC"; then
3361  # Extract the first word of "cc", so it can be a program name with args.
3362set dummy cc; ac_word=$2
3363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3364printf %s "checking for $ac_word... " >&6; }
3365if test ${ac_cv_prog_CC+y}
3366then :
3367  printf %s "(cached) " >&6
3368else $as_nop
3369  if test -n "$CC"; then
3370  ac_cv_prog_CC="$CC" # Let the user override the test.
3371else
3372  ac_prog_rejected=no
3373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374for as_dir in $PATH
3375do
3376  IFS=$as_save_IFS
3377  case $as_dir in #(((
3378    '') as_dir=./ ;;
3379    */) ;;
3380    *) as_dir=$as_dir/ ;;
3381  esac
3382    for ac_exec_ext in '' $ac_executable_extensions; do
3383  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3384    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3385       ac_prog_rejected=yes
3386       continue
3387     fi
3388    ac_cv_prog_CC="cc"
3389    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3390    break 2
3391  fi
3392done
3393  done
3394IFS=$as_save_IFS
3395
3396if test $ac_prog_rejected = yes; then
3397  # We found a bogon in the path, so make sure we never use it.
3398  set dummy $ac_cv_prog_CC
3399  shift
3400  if test $# != 0; then
3401    # We chose a different compiler from the bogus one.
3402    # However, it has the same basename, so the bogon will be chosen
3403    # first if we set CC to just the basename; use the full file name.
3404    shift
3405    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3406  fi
3407fi
3408fi
3409fi
3410CC=$ac_cv_prog_CC
3411if test -n "$CC"; then
3412  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3413printf "%s\n" "$CC" >&6; }
3414else
3415  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3416printf "%s\n" "no" >&6; }
3417fi
3418
3419
3420fi
3421if test -z "$CC"; then
3422  if test -n "$ac_tool_prefix"; then
3423  for ac_prog in cl.exe
3424  do
3425    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3426set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3428printf %s "checking for $ac_word... " >&6; }
3429if test ${ac_cv_prog_CC+y}
3430then :
3431  printf %s "(cached) " >&6
3432else $as_nop
3433  if test -n "$CC"; then
3434  ac_cv_prog_CC="$CC" # Let the user override the test.
3435else
3436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437for as_dir in $PATH
3438do
3439  IFS=$as_save_IFS
3440  case $as_dir in #(((
3441    '') as_dir=./ ;;
3442    */) ;;
3443    *) as_dir=$as_dir/ ;;
3444  esac
3445    for ac_exec_ext in '' $ac_executable_extensions; do
3446  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3447    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3448    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3449    break 2
3450  fi
3451done
3452  done
3453IFS=$as_save_IFS
3454
3455fi
3456fi
3457CC=$ac_cv_prog_CC
3458if test -n "$CC"; then
3459  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3460printf "%s\n" "$CC" >&6; }
3461else
3462  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3463printf "%s\n" "no" >&6; }
3464fi
3465
3466
3467    test -n "$CC" && break
3468  done
3469fi
3470if test -z "$CC"; then
3471  ac_ct_CC=$CC
3472  for ac_prog in cl.exe
3473do
3474  # Extract the first word of "$ac_prog", so it can be a program name with args.
3475set dummy $ac_prog; ac_word=$2
3476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3477printf %s "checking for $ac_word... " >&6; }
3478if test ${ac_cv_prog_ac_ct_CC+y}
3479then :
3480  printf %s "(cached) " >&6
3481else $as_nop
3482  if test -n "$ac_ct_CC"; then
3483  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3484else
3485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3486for as_dir in $PATH
3487do
3488  IFS=$as_save_IFS
3489  case $as_dir in #(((
3490    '') as_dir=./ ;;
3491    */) ;;
3492    *) as_dir=$as_dir/ ;;
3493  esac
3494    for ac_exec_ext in '' $ac_executable_extensions; do
3495  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3496    ac_cv_prog_ac_ct_CC="$ac_prog"
3497    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3498    break 2
3499  fi
3500done
3501  done
3502IFS=$as_save_IFS
3503
3504fi
3505fi
3506ac_ct_CC=$ac_cv_prog_ac_ct_CC
3507if test -n "$ac_ct_CC"; then
3508  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3509printf "%s\n" "$ac_ct_CC" >&6; }
3510else
3511  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512printf "%s\n" "no" >&6; }
3513fi
3514
3515
3516  test -n "$ac_ct_CC" && break
3517done
3518
3519  if test "x$ac_ct_CC" = x; then
3520    CC=""
3521  else
3522    case $cross_compiling:$ac_tool_warned in
3523yes:)
3524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3525printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3526ac_tool_warned=yes ;;
3527esac
3528    CC=$ac_ct_CC
3529  fi
3530fi
3531
3532fi
3533if test -z "$CC"; then
3534  if test -n "$ac_tool_prefix"; then
3535  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3536set dummy ${ac_tool_prefix}clang; ac_word=$2
3537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538printf %s "checking for $ac_word... " >&6; }
3539if test ${ac_cv_prog_CC+y}
3540then :
3541  printf %s "(cached) " >&6
3542else $as_nop
3543  if test -n "$CC"; then
3544  ac_cv_prog_CC="$CC" # Let the user override the test.
3545else
3546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547for as_dir in $PATH
3548do
3549  IFS=$as_save_IFS
3550  case $as_dir in #(((
3551    '') as_dir=./ ;;
3552    */) ;;
3553    *) as_dir=$as_dir/ ;;
3554  esac
3555    for ac_exec_ext in '' $ac_executable_extensions; do
3556  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3557    ac_cv_prog_CC="${ac_tool_prefix}clang"
3558    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3559    break 2
3560  fi
3561done
3562  done
3563IFS=$as_save_IFS
3564
3565fi
3566fi
3567CC=$ac_cv_prog_CC
3568if test -n "$CC"; then
3569  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3570printf "%s\n" "$CC" >&6; }
3571else
3572  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573printf "%s\n" "no" >&6; }
3574fi
3575
3576
3577fi
3578if test -z "$ac_cv_prog_CC"; then
3579  ac_ct_CC=$CC
3580  # Extract the first word of "clang", so it can be a program name with args.
3581set dummy clang; ac_word=$2
3582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3583printf %s "checking for $ac_word... " >&6; }
3584if test ${ac_cv_prog_ac_ct_CC+y}
3585then :
3586  printf %s "(cached) " >&6
3587else $as_nop
3588  if test -n "$ac_ct_CC"; then
3589  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3590else
3591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592for as_dir in $PATH
3593do
3594  IFS=$as_save_IFS
3595  case $as_dir in #(((
3596    '') as_dir=./ ;;
3597    */) ;;
3598    *) as_dir=$as_dir/ ;;
3599  esac
3600    for ac_exec_ext in '' $ac_executable_extensions; do
3601  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3602    ac_cv_prog_ac_ct_CC="clang"
3603    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3604    break 2
3605  fi
3606done
3607  done
3608IFS=$as_save_IFS
3609
3610fi
3611fi
3612ac_ct_CC=$ac_cv_prog_ac_ct_CC
3613if test -n "$ac_ct_CC"; then
3614  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3615printf "%s\n" "$ac_ct_CC" >&6; }
3616else
3617  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3618printf "%s\n" "no" >&6; }
3619fi
3620
3621  if test "x$ac_ct_CC" = x; then
3622    CC=""
3623  else
3624    case $cross_compiling:$ac_tool_warned in
3625yes:)
3626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3627printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3628ac_tool_warned=yes ;;
3629esac
3630    CC=$ac_ct_CC
3631  fi
3632else
3633  CC="$ac_cv_prog_CC"
3634fi
3635
3636fi
3637
3638
3639test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3640printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3641as_fn_error $? "no acceptable C compiler found in \$PATH
3642See \`config.log' for more details" "$LINENO" 5; }
3643
3644# Provide some information about the compiler.
3645printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3646set X $ac_compile
3647ac_compiler=$2
3648for ac_option in --version -v -V -qversion -version; do
3649  { { ac_try="$ac_compiler $ac_option >&5"
3650case "(($ac_try" in
3651  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3652  *) ac_try_echo=$ac_try;;
3653esac
3654eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3655printf "%s\n" "$ac_try_echo"; } >&5
3656  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3657  ac_status=$?
3658  if test -s conftest.err; then
3659    sed '10a\
3660... rest of stderr output deleted ...
3661         10q' conftest.err >conftest.er1
3662    cat conftest.er1 >&5
3663  fi
3664  rm -f conftest.er1 conftest.err
3665  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3666  test $ac_status = 0; }
3667done
3668
3669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3670/* end confdefs.h.  */
3671
3672int
3673main (void)
3674{
3675
3676  ;
3677  return 0;
3678}
3679_ACEOF
3680ac_clean_files_save=$ac_clean_files
3681ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3682# Try to create an executable without -o first, disregard a.out.
3683# It will help us diagnose broken compilers, and finding out an intuition
3684# of exeext.
3685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3686printf %s "checking whether the C compiler works... " >&6; }
3687ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3688
3689# The possible output files:
3690ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3691
3692ac_rmfiles=
3693for ac_file in $ac_files
3694do
3695  case $ac_file in
3696    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3697    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3698  esac
3699done
3700rm -f $ac_rmfiles
3701
3702if { { ac_try="$ac_link_default"
3703case "(($ac_try" in
3704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705  *) ac_try_echo=$ac_try;;
3706esac
3707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3708printf "%s\n" "$ac_try_echo"; } >&5
3709  (eval "$ac_link_default") 2>&5
3710  ac_status=$?
3711  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3712  test $ac_status = 0; }
3713then :
3714  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3715# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3716# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3717# so that the user can short-circuit this test for compilers unknown to
3718# Autoconf.
3719for ac_file in $ac_files ''
3720do
3721  test -f "$ac_file" || continue
3722  case $ac_file in
3723    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3724	;;
3725    [ab].out )
3726	# We found the default executable, but exeext='' is most
3727	# certainly right.
3728	break;;
3729    *.* )
3730	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3731	then :; else
3732	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3733	fi
3734	# We set ac_cv_exeext here because the later test for it is not
3735	# safe: cross compilers may not add the suffix if given an `-o'
3736	# argument, so we may need to know it at that point already.
3737	# Even if this section looks crufty: it has the advantage of
3738	# actually working.
3739	break;;
3740    * )
3741	break;;
3742  esac
3743done
3744test "$ac_cv_exeext" = no && ac_cv_exeext=
3745
3746else $as_nop
3747  ac_file=''
3748fi
3749if test -z "$ac_file"
3750then :
3751  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3752printf "%s\n" "no" >&6; }
3753printf "%s\n" "$as_me: failed program was:" >&5
3754sed 's/^/| /' conftest.$ac_ext >&5
3755
3756{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3757printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3758as_fn_error 77 "C compiler cannot create executables
3759See \`config.log' for more details" "$LINENO" 5; }
3760else $as_nop
3761  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3762printf "%s\n" "yes" >&6; }
3763fi
3764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3765printf %s "checking for C compiler default output file name... " >&6; }
3766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3767printf "%s\n" "$ac_file" >&6; }
3768ac_exeext=$ac_cv_exeext
3769
3770rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3771ac_clean_files=$ac_clean_files_save
3772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3773printf %s "checking for suffix of executables... " >&6; }
3774if { { ac_try="$ac_link"
3775case "(($ac_try" in
3776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777  *) ac_try_echo=$ac_try;;
3778esac
3779eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3780printf "%s\n" "$ac_try_echo"; } >&5
3781  (eval "$ac_link") 2>&5
3782  ac_status=$?
3783  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3784  test $ac_status = 0; }
3785then :
3786  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3787# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3788# work properly (i.e., refer to `conftest.exe'), while it won't with
3789# `rm'.
3790for ac_file in conftest.exe conftest conftest.*; do
3791  test -f "$ac_file" || continue
3792  case $ac_file in
3793    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3794    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3795	  break;;
3796    * ) break;;
3797  esac
3798done
3799else $as_nop
3800  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3801printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3802as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3803See \`config.log' for more details" "$LINENO" 5; }
3804fi
3805rm -f conftest conftest$ac_cv_exeext
3806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3807printf "%s\n" "$ac_cv_exeext" >&6; }
3808
3809rm -f conftest.$ac_ext
3810EXEEXT=$ac_cv_exeext
3811ac_exeext=$EXEEXT
3812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813/* end confdefs.h.  */
3814#include <stdio.h>
3815int
3816main (void)
3817{
3818FILE *f = fopen ("conftest.out", "w");
3819 return ferror (f) || fclose (f) != 0;
3820
3821  ;
3822  return 0;
3823}
3824_ACEOF
3825ac_clean_files="$ac_clean_files conftest.out"
3826# Check that the compiler produces executables we can run.  If not, either
3827# the compiler is broken, or we cross compile.
3828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3829printf %s "checking whether we are cross compiling... " >&6; }
3830if test "$cross_compiling" != yes; then
3831  { { ac_try="$ac_link"
3832case "(($ac_try" in
3833  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3834  *) ac_try_echo=$ac_try;;
3835esac
3836eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3837printf "%s\n" "$ac_try_echo"; } >&5
3838  (eval "$ac_link") 2>&5
3839  ac_status=$?
3840  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3841  test $ac_status = 0; }
3842  if { ac_try='./conftest$ac_cv_exeext'
3843  { { case "(($ac_try" in
3844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845  *) ac_try_echo=$ac_try;;
3846esac
3847eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3848printf "%s\n" "$ac_try_echo"; } >&5
3849  (eval "$ac_try") 2>&5
3850  ac_status=$?
3851  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3852  test $ac_status = 0; }; }; then
3853    cross_compiling=no
3854  else
3855    if test "$cross_compiling" = maybe; then
3856	cross_compiling=yes
3857    else
3858	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3859printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3860as_fn_error 77 "cannot run C compiled programs.
3861If you meant to cross compile, use \`--host'.
3862See \`config.log' for more details" "$LINENO" 5; }
3863    fi
3864  fi
3865fi
3866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3867printf "%s\n" "$cross_compiling" >&6; }
3868
3869rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3870ac_clean_files=$ac_clean_files_save
3871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3872printf %s "checking for suffix of object files... " >&6; }
3873if test ${ac_cv_objext+y}
3874then :
3875  printf %s "(cached) " >&6
3876else $as_nop
3877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878/* end confdefs.h.  */
3879
3880int
3881main (void)
3882{
3883
3884  ;
3885  return 0;
3886}
3887_ACEOF
3888rm -f conftest.o conftest.obj
3889if { { ac_try="$ac_compile"
3890case "(($ac_try" in
3891  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892  *) ac_try_echo=$ac_try;;
3893esac
3894eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3895printf "%s\n" "$ac_try_echo"; } >&5
3896  (eval "$ac_compile") 2>&5
3897  ac_status=$?
3898  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3899  test $ac_status = 0; }
3900then :
3901  for ac_file in conftest.o conftest.obj conftest.*; do
3902  test -f "$ac_file" || continue;
3903  case $ac_file in
3904    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3905    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3906       break;;
3907  esac
3908done
3909else $as_nop
3910  printf "%s\n" "$as_me: failed program was:" >&5
3911sed 's/^/| /' conftest.$ac_ext >&5
3912
3913{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3914printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3915as_fn_error $? "cannot compute suffix of object files: cannot compile
3916See \`config.log' for more details" "$LINENO" 5; }
3917fi
3918rm -f conftest.$ac_cv_objext conftest.$ac_ext
3919fi
3920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3921printf "%s\n" "$ac_cv_objext" >&6; }
3922OBJEXT=$ac_cv_objext
3923ac_objext=$OBJEXT
3924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3925printf %s "checking whether the compiler supports GNU C... " >&6; }
3926if test ${ac_cv_c_compiler_gnu+y}
3927then :
3928  printf %s "(cached) " >&6
3929else $as_nop
3930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3931/* end confdefs.h.  */
3932
3933int
3934main (void)
3935{
3936#ifndef __GNUC__
3937       choke me
3938#endif
3939
3940  ;
3941  return 0;
3942}
3943_ACEOF
3944if ac_fn_c_try_compile "$LINENO"
3945then :
3946  ac_compiler_gnu=yes
3947else $as_nop
3948  ac_compiler_gnu=no
3949fi
3950rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3951ac_cv_c_compiler_gnu=$ac_compiler_gnu
3952
3953fi
3954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3955printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3956ac_compiler_gnu=$ac_cv_c_compiler_gnu
3957
3958if test $ac_compiler_gnu = yes; then
3959  GCC=yes
3960else
3961  GCC=
3962fi
3963ac_test_CFLAGS=${CFLAGS+y}
3964ac_save_CFLAGS=$CFLAGS
3965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3966printf %s "checking whether $CC accepts -g... " >&6; }
3967if test ${ac_cv_prog_cc_g+y}
3968then :
3969  printf %s "(cached) " >&6
3970else $as_nop
3971  ac_save_c_werror_flag=$ac_c_werror_flag
3972   ac_c_werror_flag=yes
3973   ac_cv_prog_cc_g=no
3974   CFLAGS="-g"
3975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3976/* end confdefs.h.  */
3977
3978int
3979main (void)
3980{
3981
3982  ;
3983  return 0;
3984}
3985_ACEOF
3986if ac_fn_c_try_compile "$LINENO"
3987then :
3988  ac_cv_prog_cc_g=yes
3989else $as_nop
3990  CFLAGS=""
3991      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3992/* end confdefs.h.  */
3993
3994int
3995main (void)
3996{
3997
3998  ;
3999  return 0;
4000}
4001_ACEOF
4002if ac_fn_c_try_compile "$LINENO"
4003then :
4004
4005else $as_nop
4006  ac_c_werror_flag=$ac_save_c_werror_flag
4007	 CFLAGS="-g"
4008	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4009/* end confdefs.h.  */
4010
4011int
4012main (void)
4013{
4014
4015  ;
4016  return 0;
4017}
4018_ACEOF
4019if ac_fn_c_try_compile "$LINENO"
4020then :
4021  ac_cv_prog_cc_g=yes
4022fi
4023rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4024fi
4025rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4026fi
4027rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4028   ac_c_werror_flag=$ac_save_c_werror_flag
4029fi
4030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4031printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4032if test $ac_test_CFLAGS; then
4033  CFLAGS=$ac_save_CFLAGS
4034elif test $ac_cv_prog_cc_g = yes; then
4035  if test "$GCC" = yes; then
4036    CFLAGS="-g -O2"
4037  else
4038    CFLAGS="-g"
4039  fi
4040else
4041  if test "$GCC" = yes; then
4042    CFLAGS="-O2"
4043  else
4044    CFLAGS=
4045  fi
4046fi
4047ac_prog_cc_stdc=no
4048if test x$ac_prog_cc_stdc = xno
4049then :
4050  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4051printf %s "checking for $CC option to enable C11 features... " >&6; }
4052if test ${ac_cv_prog_cc_c11+y}
4053then :
4054  printf %s "(cached) " >&6
4055else $as_nop
4056  ac_cv_prog_cc_c11=no
4057ac_save_CC=$CC
4058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059/* end confdefs.h.  */
4060$ac_c_conftest_c11_program
4061_ACEOF
4062for ac_arg in '' -std=gnu11
4063do
4064  CC="$ac_save_CC $ac_arg"
4065  if ac_fn_c_try_compile "$LINENO"
4066then :
4067  ac_cv_prog_cc_c11=$ac_arg
4068fi
4069rm -f core conftest.err conftest.$ac_objext conftest.beam
4070  test "x$ac_cv_prog_cc_c11" != "xno" && break
4071done
4072rm -f conftest.$ac_ext
4073CC=$ac_save_CC
4074fi
4075
4076if test "x$ac_cv_prog_cc_c11" = xno
4077then :
4078  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4079printf "%s\n" "unsupported" >&6; }
4080else $as_nop
4081  if test "x$ac_cv_prog_cc_c11" = x
4082then :
4083  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4084printf "%s\n" "none needed" >&6; }
4085else $as_nop
4086  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4087printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4088     CC="$CC $ac_cv_prog_cc_c11"
4089fi
4090  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4091  ac_prog_cc_stdc=c11
4092fi
4093fi
4094if test x$ac_prog_cc_stdc = xno
4095then :
4096  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4097printf %s "checking for $CC option to enable C99 features... " >&6; }
4098if test ${ac_cv_prog_cc_c99+y}
4099then :
4100  printf %s "(cached) " >&6
4101else $as_nop
4102  ac_cv_prog_cc_c99=no
4103ac_save_CC=$CC
4104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105/* end confdefs.h.  */
4106$ac_c_conftest_c99_program
4107_ACEOF
4108for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4109do
4110  CC="$ac_save_CC $ac_arg"
4111  if ac_fn_c_try_compile "$LINENO"
4112then :
4113  ac_cv_prog_cc_c99=$ac_arg
4114fi
4115rm -f core conftest.err conftest.$ac_objext conftest.beam
4116  test "x$ac_cv_prog_cc_c99" != "xno" && break
4117done
4118rm -f conftest.$ac_ext
4119CC=$ac_save_CC
4120fi
4121
4122if test "x$ac_cv_prog_cc_c99" = xno
4123then :
4124  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4125printf "%s\n" "unsupported" >&6; }
4126else $as_nop
4127  if test "x$ac_cv_prog_cc_c99" = x
4128then :
4129  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4130printf "%s\n" "none needed" >&6; }
4131else $as_nop
4132  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4133printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4134     CC="$CC $ac_cv_prog_cc_c99"
4135fi
4136  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4137  ac_prog_cc_stdc=c99
4138fi
4139fi
4140if test x$ac_prog_cc_stdc = xno
4141then :
4142  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4143printf %s "checking for $CC option to enable C89 features... " >&6; }
4144if test ${ac_cv_prog_cc_c89+y}
4145then :
4146  printf %s "(cached) " >&6
4147else $as_nop
4148  ac_cv_prog_cc_c89=no
4149ac_save_CC=$CC
4150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4151/* end confdefs.h.  */
4152$ac_c_conftest_c89_program
4153_ACEOF
4154for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4155do
4156  CC="$ac_save_CC $ac_arg"
4157  if ac_fn_c_try_compile "$LINENO"
4158then :
4159  ac_cv_prog_cc_c89=$ac_arg
4160fi
4161rm -f core conftest.err conftest.$ac_objext conftest.beam
4162  test "x$ac_cv_prog_cc_c89" != "xno" && break
4163done
4164rm -f conftest.$ac_ext
4165CC=$ac_save_CC
4166fi
4167
4168if test "x$ac_cv_prog_cc_c89" = xno
4169then :
4170  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4171printf "%s\n" "unsupported" >&6; }
4172else $as_nop
4173  if test "x$ac_cv_prog_cc_c89" = x
4174then :
4175  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4176printf "%s\n" "none needed" >&6; }
4177else $as_nop
4178  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4179printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4180     CC="$CC $ac_cv_prog_cc_c89"
4181fi
4182  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4183  ac_prog_cc_stdc=c89
4184fi
4185fi
4186
4187ac_ext=c
4188ac_cpp='$CPP $CPPFLAGS'
4189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4191ac_compiler_gnu=$ac_cv_c_compiler_gnu
4192
4193
4194  ac_ext=c
4195ac_cpp='$CPP $CPPFLAGS'
4196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4198ac_compiler_gnu=$ac_cv_c_compiler_gnu
4199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4200printf %s "checking whether $CC understands -c and -o together... " >&6; }
4201if test ${am_cv_prog_cc_c_o+y}
4202then :
4203  printf %s "(cached) " >&6
4204else $as_nop
4205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4206/* end confdefs.h.  */
4207
4208int
4209main (void)
4210{
4211
4212  ;
4213  return 0;
4214}
4215_ACEOF
4216  # Make sure it works both with $CC and with simple cc.
4217  # Following AC_PROG_CC_C_O, we do the test twice because some
4218  # compilers refuse to overwrite an existing .o file with -o,
4219  # though they will create one.
4220  am_cv_prog_cc_c_o=yes
4221  for am_i in 1 2; do
4222    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4223   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4224   ac_status=$?
4225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226   (exit $ac_status); } \
4227         && test -f conftest2.$ac_objext; then
4228      : OK
4229    else
4230      am_cv_prog_cc_c_o=no
4231      break
4232    fi
4233  done
4234  rm -f core conftest*
4235  unset am_i
4236fi
4237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4238printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4239if test "$am_cv_prog_cc_c_o" != yes; then
4240   # Losing compiler, so override with the script.
4241   # FIXME: It is wrong to rewrite CC.
4242   # But if we don't then we get into trouble of one sort or another.
4243   # A longer-term fix would be to have automake use am__CC in this case,
4244   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4245   CC="$am_aux_dir/compile $CC"
4246fi
4247ac_ext=c
4248ac_cpp='$CPP $CPPFLAGS'
4249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4251ac_compiler_gnu=$ac_cv_c_compiler_gnu
4252
4253
4254depcc="$CC"   am_compiler_list=
4255
4256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4257printf %s "checking dependency style of $depcc... " >&6; }
4258if test ${am_cv_CC_dependencies_compiler_type+y}
4259then :
4260  printf %s "(cached) " >&6
4261else $as_nop
4262  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4263  # We make a subdir and do the tests there.  Otherwise we can end up
4264  # making bogus files that we don't know about and never remove.  For
4265  # instance it was reported that on HP-UX the gcc test will end up
4266  # making a dummy file named 'D' -- because '-MD' means "put the output
4267  # in D".
4268  rm -rf conftest.dir
4269  mkdir conftest.dir
4270  # Copy depcomp to subdir because otherwise we won't find it if we're
4271  # using a relative directory.
4272  cp "$am_depcomp" conftest.dir
4273  cd conftest.dir
4274  # We will build objects and dependencies in a subdirectory because
4275  # it helps to detect inapplicable dependency modes.  For instance
4276  # both Tru64's cc and ICC support -MD to output dependencies as a
4277  # side effect of compilation, but ICC will put the dependencies in
4278  # the current directory while Tru64 will put them in the object
4279  # directory.
4280  mkdir sub
4281
4282  am_cv_CC_dependencies_compiler_type=none
4283  if test "$am_compiler_list" = ""; then
4284     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4285  fi
4286  am__universal=false
4287  case " $depcc " in #(
4288     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4289     esac
4290
4291  for depmode in $am_compiler_list; do
4292    # Setup a source with many dependencies, because some compilers
4293    # like to wrap large dependency lists on column 80 (with \), and
4294    # we should not choose a depcomp mode which is confused by this.
4295    #
4296    # We need to recreate these files for each test, as the compiler may
4297    # overwrite some of them when testing with obscure command lines.
4298    # This happens at least with the AIX C compiler.
4299    : > sub/conftest.c
4300    for i in 1 2 3 4 5 6; do
4301      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4302      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4303      # Solaris 10 /bin/sh.
4304      echo '/* dummy */' > sub/conftst$i.h
4305    done
4306    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4307
4308    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4309    # mode.  It turns out that the SunPro C++ compiler does not properly
4310    # handle '-M -o', and we need to detect this.  Also, some Intel
4311    # versions had trouble with output in subdirs.
4312    am__obj=sub/conftest.${OBJEXT-o}
4313    am__minus_obj="-o $am__obj"
4314    case $depmode in
4315    gcc)
4316      # This depmode causes a compiler race in universal mode.
4317      test "$am__universal" = false || continue
4318      ;;
4319    nosideeffect)
4320      # After this tag, mechanisms are not by side-effect, so they'll
4321      # only be used when explicitly requested.
4322      if test "x$enable_dependency_tracking" = xyes; then
4323	continue
4324      else
4325	break
4326      fi
4327      ;;
4328    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4329      # This compiler won't grok '-c -o', but also, the minuso test has
4330      # not run yet.  These depmodes are late enough in the game, and
4331      # so weak that their functioning should not be impacted.
4332      am__obj=conftest.${OBJEXT-o}
4333      am__minus_obj=
4334      ;;
4335    none) break ;;
4336    esac
4337    if depmode=$depmode \
4338       source=sub/conftest.c object=$am__obj \
4339       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4340       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4341         >/dev/null 2>conftest.err &&
4342       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4343       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4344       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4345       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4346      # icc doesn't choke on unknown options, it will just issue warnings
4347      # or remarks (even with -Werror).  So we grep stderr for any message
4348      # that says an option was ignored or not supported.
4349      # When given -MP, icc 7.0 and 7.1 complain thusly:
4350      #   icc: Command line warning: ignoring option '-M'; no argument required
4351      # The diagnosis changed in icc 8.0:
4352      #   icc: Command line remark: option '-MP' not supported
4353      if (grep 'ignoring option' conftest.err ||
4354          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4355        am_cv_CC_dependencies_compiler_type=$depmode
4356        break
4357      fi
4358    fi
4359  done
4360
4361  cd ..
4362  rm -rf conftest.dir
4363else
4364  am_cv_CC_dependencies_compiler_type=none
4365fi
4366
4367fi
4368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4369printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4370CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4371
4372 if
4373  test "x$enable_dependency_tracking" != xno \
4374  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4375  am__fastdepCC_TRUE=
4376  am__fastdepCC_FALSE='#'
4377else
4378  am__fastdepCC_TRUE='#'
4379  am__fastdepCC_FALSE=
4380fi
4381
4382
4383
4384
4385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4386printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4387if test ${ac_cv_c_undeclared_builtin_options+y}
4388then :
4389  printf %s "(cached) " >&6
4390else $as_nop
4391  ac_save_CFLAGS=$CFLAGS
4392   ac_cv_c_undeclared_builtin_options='cannot detect'
4393   for ac_arg in '' -fno-builtin; do
4394     CFLAGS="$ac_save_CFLAGS $ac_arg"
4395     # This test program should *not* compile successfully.
4396     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397/* end confdefs.h.  */
4398
4399int
4400main (void)
4401{
4402(void) strchr;
4403  ;
4404  return 0;
4405}
4406_ACEOF
4407if ac_fn_c_try_compile "$LINENO"
4408then :
4409
4410else $as_nop
4411  # This test program should compile successfully.
4412        # No library function is consistently available on
4413        # freestanding implementations, so test against a dummy
4414        # declaration.  Include always-available headers on the
4415        # off chance that they somehow elicit warnings.
4416        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417/* end confdefs.h.  */
4418#include <float.h>
4419#include <limits.h>
4420#include <stdarg.h>
4421#include <stddef.h>
4422extern void ac_decl (int, char *);
4423
4424int
4425main (void)
4426{
4427(void) ac_decl (0, (char *) 0);
4428  (void) ac_decl;
4429
4430  ;
4431  return 0;
4432}
4433_ACEOF
4434if ac_fn_c_try_compile "$LINENO"
4435then :
4436  if test x"$ac_arg" = x
4437then :
4438  ac_cv_c_undeclared_builtin_options='none needed'
4439else $as_nop
4440  ac_cv_c_undeclared_builtin_options=$ac_arg
4441fi
4442          break
4443fi
4444rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4445fi
4446rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4447    done
4448    CFLAGS=$ac_save_CFLAGS
4449
4450fi
4451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4452printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4453  case $ac_cv_c_undeclared_builtin_options in #(
4454  'cannot detect') :
4455    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4456printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4457as_fn_error $? "cannot make $CC report undeclared builtins
4458See \`config.log' for more details" "$LINENO" 5; } ;; #(
4459  'none needed') :
4460    ac_c_undeclared_builtin_options='' ;; #(
4461  *) :
4462    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4463esac
4464
4465ac_header= ac_cache=
4466for ac_item in $ac_header_c_list
4467do
4468  if test $ac_cache; then
4469    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4470    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4471      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4472    fi
4473    ac_header= ac_cache=
4474  elif test $ac_header; then
4475    ac_cache=$ac_item
4476  else
4477    ac_header=$ac_item
4478  fi
4479done
4480
4481
4482
4483
4484
4485
4486
4487
4488if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4489then :
4490
4491printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4492
4493fi
4494
4495
4496
4497
4498ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4499if test "x$ac_cv_have_decl___clang__" = xyes
4500then :
4501  CLANGCC="yes"
4502else $as_nop
4503  CLANGCC="no"
4504fi
4505ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4506if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4507then :
4508  INTELCC="yes"
4509else $as_nop
4510  INTELCC="no"
4511fi
4512ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4513if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4514then :
4515  SUNCC="yes"
4516else $as_nop
4517  SUNCC="no"
4518fi
4519
4520
4521
4522
4523
4524
4525
4526
4527if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4528	if test -n "$ac_tool_prefix"; then
4529  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4530set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4532printf %s "checking for $ac_word... " >&6; }
4533if test ${ac_cv_path_PKG_CONFIG+y}
4534then :
4535  printf %s "(cached) " >&6
4536else $as_nop
4537  case $PKG_CONFIG in
4538  [\\/]* | ?:[\\/]*)
4539  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4540  ;;
4541  *)
4542  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543for as_dir in $PATH
4544do
4545  IFS=$as_save_IFS
4546  case $as_dir in #(((
4547    '') as_dir=./ ;;
4548    */) ;;
4549    *) as_dir=$as_dir/ ;;
4550  esac
4551    for ac_exec_ext in '' $ac_executable_extensions; do
4552  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4553    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4554    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4555    break 2
4556  fi
4557done
4558  done
4559IFS=$as_save_IFS
4560
4561  ;;
4562esac
4563fi
4564PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4565if test -n "$PKG_CONFIG"; then
4566  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4567printf "%s\n" "$PKG_CONFIG" >&6; }
4568else
4569  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4570printf "%s\n" "no" >&6; }
4571fi
4572
4573
4574fi
4575if test -z "$ac_cv_path_PKG_CONFIG"; then
4576  ac_pt_PKG_CONFIG=$PKG_CONFIG
4577  # Extract the first word of "pkg-config", so it can be a program name with args.
4578set dummy pkg-config; ac_word=$2
4579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4580printf %s "checking for $ac_word... " >&6; }
4581if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4582then :
4583  printf %s "(cached) " >&6
4584else $as_nop
4585  case $ac_pt_PKG_CONFIG in
4586  [\\/]* | ?:[\\/]*)
4587  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4588  ;;
4589  *)
4590  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591for as_dir in $PATH
4592do
4593  IFS=$as_save_IFS
4594  case $as_dir in #(((
4595    '') as_dir=./ ;;
4596    */) ;;
4597    *) as_dir=$as_dir/ ;;
4598  esac
4599    for ac_exec_ext in '' $ac_executable_extensions; do
4600  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4601    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4602    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4603    break 2
4604  fi
4605done
4606  done
4607IFS=$as_save_IFS
4608
4609  ;;
4610esac
4611fi
4612ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4613if test -n "$ac_pt_PKG_CONFIG"; then
4614  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4615printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4616else
4617  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4618printf "%s\n" "no" >&6; }
4619fi
4620
4621  if test "x$ac_pt_PKG_CONFIG" = x; then
4622    PKG_CONFIG=""
4623  else
4624    case $cross_compiling:$ac_tool_warned in
4625yes:)
4626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4627printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4628ac_tool_warned=yes ;;
4629esac
4630    PKG_CONFIG=$ac_pt_PKG_CONFIG
4631  fi
4632else
4633  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4634fi
4635
4636fi
4637if test -n "$PKG_CONFIG"; then
4638	_pkg_min_version=0.9.0
4639	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4640printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4641	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4642		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4643printf "%s\n" "yes" >&6; }
4644	else
4645		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4646printf "%s\n" "no" >&6; }
4647		PKG_CONFIG=""
4648	fi
4649fi
4650
4651
4652  # Make sure we can run config.sub.
4653$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4654  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4655
4656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4657printf %s "checking build system type... " >&6; }
4658if test ${ac_cv_build+y}
4659then :
4660  printf %s "(cached) " >&6
4661else $as_nop
4662  ac_build_alias=$build_alias
4663test "x$ac_build_alias" = x &&
4664  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4665test "x$ac_build_alias" = x &&
4666  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4667ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4668  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4669
4670fi
4671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4672printf "%s\n" "$ac_cv_build" >&6; }
4673case $ac_cv_build in
4674*-*-*) ;;
4675*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4676esac
4677build=$ac_cv_build
4678ac_save_IFS=$IFS; IFS='-'
4679set x $ac_cv_build
4680shift
4681build_cpu=$1
4682build_vendor=$2
4683shift; shift
4684# Remember, the first character of IFS is used to create $*,
4685# except with old shells:
4686build_os=$*
4687IFS=$ac_save_IFS
4688case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4689
4690
4691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4692printf %s "checking host system type... " >&6; }
4693if test ${ac_cv_host+y}
4694then :
4695  printf %s "(cached) " >&6
4696else $as_nop
4697  if test "x$host_alias" = x; then
4698  ac_cv_host=$ac_cv_build
4699else
4700  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4701    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4702fi
4703
4704fi
4705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4706printf "%s\n" "$ac_cv_host" >&6; }
4707case $ac_cv_host in
4708*-*-*) ;;
4709*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4710esac
4711host=$ac_cv_host
4712ac_save_IFS=$IFS; IFS='-'
4713set x $ac_cv_host
4714shift
4715host_cpu=$1
4716host_vendor=$2
4717shift; shift
4718# Remember, the first character of IFS is used to create $*,
4719# except with old shells:
4720host_os=$*
4721IFS=$ac_save_IFS
4722case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4723
4724
4725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4726printf %s "checking for a sed that does not truncate output... " >&6; }
4727if test ${ac_cv_path_SED+y}
4728then :
4729  printf %s "(cached) " >&6
4730else $as_nop
4731            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4732     for ac_i in 1 2 3 4 5 6 7; do
4733       ac_script="$ac_script$as_nl$ac_script"
4734     done
4735     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4736     { ac_script=; unset ac_script;}
4737     if test -z "$SED"; then
4738  ac_path_SED_found=false
4739  # Loop through the user's path and test for each of PROGNAME-LIST
4740  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741for as_dir in $PATH
4742do
4743  IFS=$as_save_IFS
4744  case $as_dir in #(((
4745    '') as_dir=./ ;;
4746    */) ;;
4747    *) as_dir=$as_dir/ ;;
4748  esac
4749    for ac_prog in sed gsed
4750   do
4751    for ac_exec_ext in '' $ac_executable_extensions; do
4752      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4753      as_fn_executable_p "$ac_path_SED" || continue
4754# Check for GNU ac_path_SED and select it if it is found.
4755  # Check for GNU $ac_path_SED
4756case `"$ac_path_SED" --version 2>&1` in
4757*GNU*)
4758  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4759*)
4760  ac_count=0
4761  printf %s 0123456789 >"conftest.in"
4762  while :
4763  do
4764    cat "conftest.in" "conftest.in" >"conftest.tmp"
4765    mv "conftest.tmp" "conftest.in"
4766    cp "conftest.in" "conftest.nl"
4767    printf "%s\n" '' >> "conftest.nl"
4768    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4769    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4770    as_fn_arith $ac_count + 1 && ac_count=$as_val
4771    if test $ac_count -gt ${ac_path_SED_max-0}; then
4772      # Best one so far, save it but keep looking for a better one
4773      ac_cv_path_SED="$ac_path_SED"
4774      ac_path_SED_max=$ac_count
4775    fi
4776    # 10*(2^10) chars as input seems more than enough
4777    test $ac_count -gt 10 && break
4778  done
4779  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4780esac
4781
4782      $ac_path_SED_found && break 3
4783    done
4784  done
4785  done
4786IFS=$as_save_IFS
4787  if test -z "$ac_cv_path_SED"; then
4788    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4789  fi
4790else
4791  ac_cv_path_SED=$SED
4792fi
4793
4794fi
4795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4796printf "%s\n" "$ac_cv_path_SED" >&6; }
4797 SED="$ac_cv_path_SED"
4798  rm -f conftest.sed
4799
4800
4801
4802
4803
4804
4805# Check whether --enable-selective-werror was given.
4806if test ${enable_selective_werror+y}
4807then :
4808  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4809else $as_nop
4810  SELECTIVE_WERROR=yes
4811fi
4812
4813
4814
4815
4816
4817# -v is too short to test reliably with XORG_TESTSET_CFLAG
4818if test "x$SUNCC" = "xyes"; then
4819    BASE_CFLAGS="-v"
4820else
4821    BASE_CFLAGS=""
4822fi
4823
4824# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838xorg_testset_save_CFLAGS="$CFLAGS"
4839
4840if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4841	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4842	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4843printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4844if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4845then :
4846  printf %s "(cached) " >&6
4847else $as_nop
4848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4849/* end confdefs.h.  */
4850int i;
4851_ACEOF
4852if ac_fn_c_try_compile "$LINENO"
4853then :
4854  xorg_cv_cc_flag_unknown_warning_option=yes
4855else $as_nop
4856  xorg_cv_cc_flag_unknown_warning_option=no
4857fi
4858rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4859fi
4860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4861printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4862	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4863	CFLAGS="$xorg_testset_save_CFLAGS"
4864fi
4865
4866if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4867	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4868		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4869	fi
4870	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4871	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4872printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4873if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4874then :
4875  printf %s "(cached) " >&6
4876else $as_nop
4877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4878/* end confdefs.h.  */
4879int i;
4880_ACEOF
4881if ac_fn_c_try_compile "$LINENO"
4882then :
4883  xorg_cv_cc_flag_unused_command_line_argument=yes
4884else $as_nop
4885  xorg_cv_cc_flag_unused_command_line_argument=no
4886fi
4887rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4888fi
4889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4890printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4891	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4892	CFLAGS="$xorg_testset_save_CFLAGS"
4893fi
4894
4895found="no"
4896
4897	if test $found = "no" ; then
4898		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4899			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4900		fi
4901
4902		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4903			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4904		fi
4905
4906		CFLAGS="$CFLAGS -Wall"
4907
4908		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4909printf %s "checking if $CC supports -Wall... " >&6; }
4910		cacheid=xorg_cv_cc_flag__Wall
4911		if eval test \${$cacheid+y}
4912then :
4913  printf %s "(cached) " >&6
4914else $as_nop
4915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4916/* end confdefs.h.  */
4917int i;
4918int
4919main (void)
4920{
4921
4922  ;
4923  return 0;
4924}
4925_ACEOF
4926if ac_fn_c_try_link "$LINENO"
4927then :
4928  eval $cacheid=yes
4929else $as_nop
4930  eval $cacheid=no
4931fi
4932rm -f core conftest.err conftest.$ac_objext conftest.beam \
4933    conftest$ac_exeext conftest.$ac_ext
4934fi
4935
4936
4937		CFLAGS="$xorg_testset_save_CFLAGS"
4938
4939		eval supported=\$$cacheid
4940		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4941printf "%s\n" "$supported" >&6; }
4942		if test "$supported" = "yes" ; then
4943			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4944			found="yes"
4945		fi
4946	fi
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962xorg_testset_save_CFLAGS="$CFLAGS"
4963
4964if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4965	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4966	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4967printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4968if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4969then :
4970  printf %s "(cached) " >&6
4971else $as_nop
4972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4973/* end confdefs.h.  */
4974int i;
4975_ACEOF
4976if ac_fn_c_try_compile "$LINENO"
4977then :
4978  xorg_cv_cc_flag_unknown_warning_option=yes
4979else $as_nop
4980  xorg_cv_cc_flag_unknown_warning_option=no
4981fi
4982rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4983fi
4984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4985printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4986	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4987	CFLAGS="$xorg_testset_save_CFLAGS"
4988fi
4989
4990if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4991	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4992		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4993	fi
4994	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4995	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4996printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4997if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4998then :
4999  printf %s "(cached) " >&6
5000else $as_nop
5001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5002/* end confdefs.h.  */
5003int i;
5004_ACEOF
5005if ac_fn_c_try_compile "$LINENO"
5006then :
5007  xorg_cv_cc_flag_unused_command_line_argument=yes
5008else $as_nop
5009  xorg_cv_cc_flag_unused_command_line_argument=no
5010fi
5011rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5012fi
5013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5014printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5015	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5016	CFLAGS="$xorg_testset_save_CFLAGS"
5017fi
5018
5019found="no"
5020
5021	if test $found = "no" ; then
5022		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5023			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5024		fi
5025
5026		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5027			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5028		fi
5029
5030		CFLAGS="$CFLAGS -Wpointer-arith"
5031
5032		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5033printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5034		cacheid=xorg_cv_cc_flag__Wpointer_arith
5035		if eval test \${$cacheid+y}
5036then :
5037  printf %s "(cached) " >&6
5038else $as_nop
5039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040/* end confdefs.h.  */
5041int i;
5042int
5043main (void)
5044{
5045
5046  ;
5047  return 0;
5048}
5049_ACEOF
5050if ac_fn_c_try_link "$LINENO"
5051then :
5052  eval $cacheid=yes
5053else $as_nop
5054  eval $cacheid=no
5055fi
5056rm -f core conftest.err conftest.$ac_objext conftest.beam \
5057    conftest$ac_exeext conftest.$ac_ext
5058fi
5059
5060
5061		CFLAGS="$xorg_testset_save_CFLAGS"
5062
5063		eval supported=\$$cacheid
5064		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5065printf "%s\n" "$supported" >&6; }
5066		if test "$supported" = "yes" ; then
5067			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5068			found="yes"
5069		fi
5070	fi
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086xorg_testset_save_CFLAGS="$CFLAGS"
5087
5088if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5089	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5090	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5091printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5092if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5093then :
5094  printf %s "(cached) " >&6
5095else $as_nop
5096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5097/* end confdefs.h.  */
5098int i;
5099_ACEOF
5100if ac_fn_c_try_compile "$LINENO"
5101then :
5102  xorg_cv_cc_flag_unknown_warning_option=yes
5103else $as_nop
5104  xorg_cv_cc_flag_unknown_warning_option=no
5105fi
5106rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5107fi
5108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5109printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5110	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5111	CFLAGS="$xorg_testset_save_CFLAGS"
5112fi
5113
5114if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5115	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5116		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5117	fi
5118	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5119	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5120printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5121if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5122then :
5123  printf %s "(cached) " >&6
5124else $as_nop
5125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5126/* end confdefs.h.  */
5127int i;
5128_ACEOF
5129if ac_fn_c_try_compile "$LINENO"
5130then :
5131  xorg_cv_cc_flag_unused_command_line_argument=yes
5132else $as_nop
5133  xorg_cv_cc_flag_unused_command_line_argument=no
5134fi
5135rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5136fi
5137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5138printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5139	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5140	CFLAGS="$xorg_testset_save_CFLAGS"
5141fi
5142
5143found="no"
5144
5145	if test $found = "no" ; then
5146		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5147			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5148		fi
5149
5150		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5151			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5152		fi
5153
5154		CFLAGS="$CFLAGS -Wmissing-declarations"
5155
5156		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5157printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5158		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5159		if eval test \${$cacheid+y}
5160then :
5161  printf %s "(cached) " >&6
5162else $as_nop
5163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5164/* end confdefs.h.  */
5165int i;
5166int
5167main (void)
5168{
5169
5170  ;
5171  return 0;
5172}
5173_ACEOF
5174if ac_fn_c_try_link "$LINENO"
5175then :
5176  eval $cacheid=yes
5177else $as_nop
5178  eval $cacheid=no
5179fi
5180rm -f core conftest.err conftest.$ac_objext conftest.beam \
5181    conftest$ac_exeext conftest.$ac_ext
5182fi
5183
5184
5185		CFLAGS="$xorg_testset_save_CFLAGS"
5186
5187		eval supported=\$$cacheid
5188		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5189printf "%s\n" "$supported" >&6; }
5190		if test "$supported" = "yes" ; then
5191			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5192			found="yes"
5193		fi
5194	fi
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210xorg_testset_save_CFLAGS="$CFLAGS"
5211
5212if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5213	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5214	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5215printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5216if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5217then :
5218  printf %s "(cached) " >&6
5219else $as_nop
5220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5221/* end confdefs.h.  */
5222int i;
5223_ACEOF
5224if ac_fn_c_try_compile "$LINENO"
5225then :
5226  xorg_cv_cc_flag_unknown_warning_option=yes
5227else $as_nop
5228  xorg_cv_cc_flag_unknown_warning_option=no
5229fi
5230rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5231fi
5232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5233printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5234	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5235	CFLAGS="$xorg_testset_save_CFLAGS"
5236fi
5237
5238if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5239	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5240		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5241	fi
5242	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5243	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5244printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5245if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5246then :
5247  printf %s "(cached) " >&6
5248else $as_nop
5249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5250/* end confdefs.h.  */
5251int i;
5252_ACEOF
5253if ac_fn_c_try_compile "$LINENO"
5254then :
5255  xorg_cv_cc_flag_unused_command_line_argument=yes
5256else $as_nop
5257  xorg_cv_cc_flag_unused_command_line_argument=no
5258fi
5259rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5260fi
5261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5262printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5263	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5264	CFLAGS="$xorg_testset_save_CFLAGS"
5265fi
5266
5267found="no"
5268
5269	if test $found = "no" ; then
5270		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5271			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5272		fi
5273
5274		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5275			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5276		fi
5277
5278		CFLAGS="$CFLAGS -Wformat=2"
5279
5280		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5281printf %s "checking if $CC supports -Wformat=2... " >&6; }
5282		cacheid=xorg_cv_cc_flag__Wformat_2
5283		if eval test \${$cacheid+y}
5284then :
5285  printf %s "(cached) " >&6
5286else $as_nop
5287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5288/* end confdefs.h.  */
5289int i;
5290int
5291main (void)
5292{
5293
5294  ;
5295  return 0;
5296}
5297_ACEOF
5298if ac_fn_c_try_link "$LINENO"
5299then :
5300  eval $cacheid=yes
5301else $as_nop
5302  eval $cacheid=no
5303fi
5304rm -f core conftest.err conftest.$ac_objext conftest.beam \
5305    conftest$ac_exeext conftest.$ac_ext
5306fi
5307
5308
5309		CFLAGS="$xorg_testset_save_CFLAGS"
5310
5311		eval supported=\$$cacheid
5312		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5313printf "%s\n" "$supported" >&6; }
5314		if test "$supported" = "yes" ; then
5315			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5316			found="yes"
5317		fi
5318	fi
5319
5320	if test $found = "no" ; then
5321		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5322			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5323		fi
5324
5325		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5326			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5327		fi
5328
5329		CFLAGS="$CFLAGS -Wformat"
5330
5331		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5332printf %s "checking if $CC supports -Wformat... " >&6; }
5333		cacheid=xorg_cv_cc_flag__Wformat
5334		if eval test \${$cacheid+y}
5335then :
5336  printf %s "(cached) " >&6
5337else $as_nop
5338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5339/* end confdefs.h.  */
5340int i;
5341int
5342main (void)
5343{
5344
5345  ;
5346  return 0;
5347}
5348_ACEOF
5349if ac_fn_c_try_link "$LINENO"
5350then :
5351  eval $cacheid=yes
5352else $as_nop
5353  eval $cacheid=no
5354fi
5355rm -f core conftest.err conftest.$ac_objext conftest.beam \
5356    conftest$ac_exeext conftest.$ac_ext
5357fi
5358
5359
5360		CFLAGS="$xorg_testset_save_CFLAGS"
5361
5362		eval supported=\$$cacheid
5363		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5364printf "%s\n" "$supported" >&6; }
5365		if test "$supported" = "yes" ; then
5366			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5367			found="yes"
5368		fi
5369	fi
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387xorg_testset_save_CFLAGS="$CFLAGS"
5388
5389if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5390	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5391	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5392printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5393if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5394then :
5395  printf %s "(cached) " >&6
5396else $as_nop
5397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5398/* end confdefs.h.  */
5399int i;
5400_ACEOF
5401if ac_fn_c_try_compile "$LINENO"
5402then :
5403  xorg_cv_cc_flag_unknown_warning_option=yes
5404else $as_nop
5405  xorg_cv_cc_flag_unknown_warning_option=no
5406fi
5407rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5408fi
5409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5410printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5411	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5412	CFLAGS="$xorg_testset_save_CFLAGS"
5413fi
5414
5415if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5416	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5417		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5418	fi
5419	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5420	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5421printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5422if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5423then :
5424  printf %s "(cached) " >&6
5425else $as_nop
5426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5427/* end confdefs.h.  */
5428int i;
5429_ACEOF
5430if ac_fn_c_try_compile "$LINENO"
5431then :
5432  xorg_cv_cc_flag_unused_command_line_argument=yes
5433else $as_nop
5434  xorg_cv_cc_flag_unused_command_line_argument=no
5435fi
5436rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5437fi
5438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5439printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5440	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5441	CFLAGS="$xorg_testset_save_CFLAGS"
5442fi
5443
5444found="no"
5445
5446	if test $found = "no" ; then
5447		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5448			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5449		fi
5450
5451		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5452			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5453		fi
5454
5455		CFLAGS="$CFLAGS -Wstrict-prototypes"
5456
5457		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5458printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5459		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5460		if eval test \${$cacheid+y}
5461then :
5462  printf %s "(cached) " >&6
5463else $as_nop
5464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5465/* end confdefs.h.  */
5466int i;
5467int
5468main (void)
5469{
5470
5471  ;
5472  return 0;
5473}
5474_ACEOF
5475if ac_fn_c_try_link "$LINENO"
5476then :
5477  eval $cacheid=yes
5478else $as_nop
5479  eval $cacheid=no
5480fi
5481rm -f core conftest.err conftest.$ac_objext conftest.beam \
5482    conftest$ac_exeext conftest.$ac_ext
5483fi
5484
5485
5486		CFLAGS="$xorg_testset_save_CFLAGS"
5487
5488		eval supported=\$$cacheid
5489		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5490printf "%s\n" "$supported" >&6; }
5491		if test "$supported" = "yes" ; then
5492			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5493			found="yes"
5494		fi
5495	fi
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511xorg_testset_save_CFLAGS="$CFLAGS"
5512
5513if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5514	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5515	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5516printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5517if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5518then :
5519  printf %s "(cached) " >&6
5520else $as_nop
5521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5522/* end confdefs.h.  */
5523int i;
5524_ACEOF
5525if ac_fn_c_try_compile "$LINENO"
5526then :
5527  xorg_cv_cc_flag_unknown_warning_option=yes
5528else $as_nop
5529  xorg_cv_cc_flag_unknown_warning_option=no
5530fi
5531rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5532fi
5533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5534printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5535	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5536	CFLAGS="$xorg_testset_save_CFLAGS"
5537fi
5538
5539if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5540	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5541		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5542	fi
5543	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5544	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5545printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5546if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5547then :
5548  printf %s "(cached) " >&6
5549else $as_nop
5550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5551/* end confdefs.h.  */
5552int i;
5553_ACEOF
5554if ac_fn_c_try_compile "$LINENO"
5555then :
5556  xorg_cv_cc_flag_unused_command_line_argument=yes
5557else $as_nop
5558  xorg_cv_cc_flag_unused_command_line_argument=no
5559fi
5560rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5561fi
5562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5563printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5564	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5565	CFLAGS="$xorg_testset_save_CFLAGS"
5566fi
5567
5568found="no"
5569
5570	if test $found = "no" ; then
5571		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5572			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5573		fi
5574
5575		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5576			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5577		fi
5578
5579		CFLAGS="$CFLAGS -Wmissing-prototypes"
5580
5581		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5582printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5583		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5584		if eval test \${$cacheid+y}
5585then :
5586  printf %s "(cached) " >&6
5587else $as_nop
5588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589/* end confdefs.h.  */
5590int i;
5591int
5592main (void)
5593{
5594
5595  ;
5596  return 0;
5597}
5598_ACEOF
5599if ac_fn_c_try_link "$LINENO"
5600then :
5601  eval $cacheid=yes
5602else $as_nop
5603  eval $cacheid=no
5604fi
5605rm -f core conftest.err conftest.$ac_objext conftest.beam \
5606    conftest$ac_exeext conftest.$ac_ext
5607fi
5608
5609
5610		CFLAGS="$xorg_testset_save_CFLAGS"
5611
5612		eval supported=\$$cacheid
5613		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5614printf "%s\n" "$supported" >&6; }
5615		if test "$supported" = "yes" ; then
5616			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5617			found="yes"
5618		fi
5619	fi
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635xorg_testset_save_CFLAGS="$CFLAGS"
5636
5637if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5638	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5639	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5640printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5641if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5642then :
5643  printf %s "(cached) " >&6
5644else $as_nop
5645  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646/* end confdefs.h.  */
5647int i;
5648_ACEOF
5649if ac_fn_c_try_compile "$LINENO"
5650then :
5651  xorg_cv_cc_flag_unknown_warning_option=yes
5652else $as_nop
5653  xorg_cv_cc_flag_unknown_warning_option=no
5654fi
5655rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5656fi
5657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5658printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5659	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5660	CFLAGS="$xorg_testset_save_CFLAGS"
5661fi
5662
5663if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5664	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5665		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5666	fi
5667	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5668	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5669printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5670if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5671then :
5672  printf %s "(cached) " >&6
5673else $as_nop
5674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5675/* end confdefs.h.  */
5676int i;
5677_ACEOF
5678if ac_fn_c_try_compile "$LINENO"
5679then :
5680  xorg_cv_cc_flag_unused_command_line_argument=yes
5681else $as_nop
5682  xorg_cv_cc_flag_unused_command_line_argument=no
5683fi
5684rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5685fi
5686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5687printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5688	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5689	CFLAGS="$xorg_testset_save_CFLAGS"
5690fi
5691
5692found="no"
5693
5694	if test $found = "no" ; then
5695		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5696			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5697		fi
5698
5699		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5700			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5701		fi
5702
5703		CFLAGS="$CFLAGS -Wnested-externs"
5704
5705		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5706printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5707		cacheid=xorg_cv_cc_flag__Wnested_externs
5708		if eval test \${$cacheid+y}
5709then :
5710  printf %s "(cached) " >&6
5711else $as_nop
5712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5713/* end confdefs.h.  */
5714int i;
5715int
5716main (void)
5717{
5718
5719  ;
5720  return 0;
5721}
5722_ACEOF
5723if ac_fn_c_try_link "$LINENO"
5724then :
5725  eval $cacheid=yes
5726else $as_nop
5727  eval $cacheid=no
5728fi
5729rm -f core conftest.err conftest.$ac_objext conftest.beam \
5730    conftest$ac_exeext conftest.$ac_ext
5731fi
5732
5733
5734		CFLAGS="$xorg_testset_save_CFLAGS"
5735
5736		eval supported=\$$cacheid
5737		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5738printf "%s\n" "$supported" >&6; }
5739		if test "$supported" = "yes" ; then
5740			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5741			found="yes"
5742		fi
5743	fi
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759xorg_testset_save_CFLAGS="$CFLAGS"
5760
5761if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5762	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5763	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5764printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5765if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5766then :
5767  printf %s "(cached) " >&6
5768else $as_nop
5769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5770/* end confdefs.h.  */
5771int i;
5772_ACEOF
5773if ac_fn_c_try_compile "$LINENO"
5774then :
5775  xorg_cv_cc_flag_unknown_warning_option=yes
5776else $as_nop
5777  xorg_cv_cc_flag_unknown_warning_option=no
5778fi
5779rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5780fi
5781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5782printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5783	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5784	CFLAGS="$xorg_testset_save_CFLAGS"
5785fi
5786
5787if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5788	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5789		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5790	fi
5791	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5792	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5793printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5794if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5795then :
5796  printf %s "(cached) " >&6
5797else $as_nop
5798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5799/* end confdefs.h.  */
5800int i;
5801_ACEOF
5802if ac_fn_c_try_compile "$LINENO"
5803then :
5804  xorg_cv_cc_flag_unused_command_line_argument=yes
5805else $as_nop
5806  xorg_cv_cc_flag_unused_command_line_argument=no
5807fi
5808rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5809fi
5810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5811printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5812	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5813	CFLAGS="$xorg_testset_save_CFLAGS"
5814fi
5815
5816found="no"
5817
5818	if test $found = "no" ; then
5819		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5820			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5821		fi
5822
5823		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5824			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5825		fi
5826
5827		CFLAGS="$CFLAGS -Wbad-function-cast"
5828
5829		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5830printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5831		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5832		if eval test \${$cacheid+y}
5833then :
5834  printf %s "(cached) " >&6
5835else $as_nop
5836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5837/* end confdefs.h.  */
5838int i;
5839int
5840main (void)
5841{
5842
5843  ;
5844  return 0;
5845}
5846_ACEOF
5847if ac_fn_c_try_link "$LINENO"
5848then :
5849  eval $cacheid=yes
5850else $as_nop
5851  eval $cacheid=no
5852fi
5853rm -f core conftest.err conftest.$ac_objext conftest.beam \
5854    conftest$ac_exeext conftest.$ac_ext
5855fi
5856
5857
5858		CFLAGS="$xorg_testset_save_CFLAGS"
5859
5860		eval supported=\$$cacheid
5861		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5862printf "%s\n" "$supported" >&6; }
5863		if test "$supported" = "yes" ; then
5864			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5865			found="yes"
5866		fi
5867	fi
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883xorg_testset_save_CFLAGS="$CFLAGS"
5884
5885if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5886	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5887	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5888printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5889if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5890then :
5891  printf %s "(cached) " >&6
5892else $as_nop
5893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5894/* end confdefs.h.  */
5895int i;
5896_ACEOF
5897if ac_fn_c_try_compile "$LINENO"
5898then :
5899  xorg_cv_cc_flag_unknown_warning_option=yes
5900else $as_nop
5901  xorg_cv_cc_flag_unknown_warning_option=no
5902fi
5903rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5904fi
5905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5906printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5907	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5908	CFLAGS="$xorg_testset_save_CFLAGS"
5909fi
5910
5911if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5912	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5913		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5914	fi
5915	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5916	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5917printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5918if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5919then :
5920  printf %s "(cached) " >&6
5921else $as_nop
5922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5923/* end confdefs.h.  */
5924int i;
5925_ACEOF
5926if ac_fn_c_try_compile "$LINENO"
5927then :
5928  xorg_cv_cc_flag_unused_command_line_argument=yes
5929else $as_nop
5930  xorg_cv_cc_flag_unused_command_line_argument=no
5931fi
5932rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5933fi
5934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5935printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5936	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5937	CFLAGS="$xorg_testset_save_CFLAGS"
5938fi
5939
5940found="no"
5941
5942	if test $found = "no" ; then
5943		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5944			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5945		fi
5946
5947		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5948			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5949		fi
5950
5951		CFLAGS="$CFLAGS -Wold-style-definition"
5952
5953		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5954printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
5955		cacheid=xorg_cv_cc_flag__Wold_style_definition
5956		if eval test \${$cacheid+y}
5957then :
5958  printf %s "(cached) " >&6
5959else $as_nop
5960  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5961/* end confdefs.h.  */
5962int i;
5963int
5964main (void)
5965{
5966
5967  ;
5968  return 0;
5969}
5970_ACEOF
5971if ac_fn_c_try_link "$LINENO"
5972then :
5973  eval $cacheid=yes
5974else $as_nop
5975  eval $cacheid=no
5976fi
5977rm -f core conftest.err conftest.$ac_objext conftest.beam \
5978    conftest$ac_exeext conftest.$ac_ext
5979fi
5980
5981
5982		CFLAGS="$xorg_testset_save_CFLAGS"
5983
5984		eval supported=\$$cacheid
5985		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5986printf "%s\n" "$supported" >&6; }
5987		if test "$supported" = "yes" ; then
5988			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5989			found="yes"
5990		fi
5991	fi
5992
5993	if test $found = "no" ; then
5994		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5995			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5996		fi
5997
5998		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5999			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6000		fi
6001
6002		CFLAGS="$CFLAGS -fd"
6003
6004		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6005printf %s "checking if $CC supports -fd... " >&6; }
6006		cacheid=xorg_cv_cc_flag__fd
6007		if eval test \${$cacheid+y}
6008then :
6009  printf %s "(cached) " >&6
6010else $as_nop
6011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6012/* end confdefs.h.  */
6013int i;
6014int
6015main (void)
6016{
6017
6018  ;
6019  return 0;
6020}
6021_ACEOF
6022if ac_fn_c_try_link "$LINENO"
6023then :
6024  eval $cacheid=yes
6025else $as_nop
6026  eval $cacheid=no
6027fi
6028rm -f core conftest.err conftest.$ac_objext conftest.beam \
6029    conftest$ac_exeext conftest.$ac_ext
6030fi
6031
6032
6033		CFLAGS="$xorg_testset_save_CFLAGS"
6034
6035		eval supported=\$$cacheid
6036		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6037printf "%s\n" "$supported" >&6; }
6038		if test "$supported" = "yes" ; then
6039			BASE_CFLAGS="$BASE_CFLAGS -fd"
6040			found="yes"
6041		fi
6042	fi
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058xorg_testset_save_CFLAGS="$CFLAGS"
6059
6060if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6061	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6062	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6063printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6064if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6065then :
6066  printf %s "(cached) " >&6
6067else $as_nop
6068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6069/* end confdefs.h.  */
6070int i;
6071_ACEOF
6072if ac_fn_c_try_compile "$LINENO"
6073then :
6074  xorg_cv_cc_flag_unknown_warning_option=yes
6075else $as_nop
6076  xorg_cv_cc_flag_unknown_warning_option=no
6077fi
6078rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6079fi
6080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6081printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6082	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6083	CFLAGS="$xorg_testset_save_CFLAGS"
6084fi
6085
6086if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6087	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6088		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6089	fi
6090	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6091	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6092printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6093if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6094then :
6095  printf %s "(cached) " >&6
6096else $as_nop
6097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6098/* end confdefs.h.  */
6099int i;
6100_ACEOF
6101if ac_fn_c_try_compile "$LINENO"
6102then :
6103  xorg_cv_cc_flag_unused_command_line_argument=yes
6104else $as_nop
6105  xorg_cv_cc_flag_unused_command_line_argument=no
6106fi
6107rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6108fi
6109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6110printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6111	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6112	CFLAGS="$xorg_testset_save_CFLAGS"
6113fi
6114
6115found="no"
6116
6117	if test $found = "no" ; then
6118		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6119			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6120		fi
6121
6122		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6123			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6124		fi
6125
6126		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6127
6128		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6129printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6130		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6131		if eval test \${$cacheid+y}
6132then :
6133  printf %s "(cached) " >&6
6134else $as_nop
6135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6136/* end confdefs.h.  */
6137int i;
6138int
6139main (void)
6140{
6141
6142  ;
6143  return 0;
6144}
6145_ACEOF
6146if ac_fn_c_try_link "$LINENO"
6147then :
6148  eval $cacheid=yes
6149else $as_nop
6150  eval $cacheid=no
6151fi
6152rm -f core conftest.err conftest.$ac_objext conftest.beam \
6153    conftest$ac_exeext conftest.$ac_ext
6154fi
6155
6156
6157		CFLAGS="$xorg_testset_save_CFLAGS"
6158
6159		eval supported=\$$cacheid
6160		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6161printf "%s\n" "$supported" >&6; }
6162		if test "$supported" = "yes" ; then
6163			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6164			found="yes"
6165		fi
6166	fi
6167
6168
6169
6170
6171
6172# This chunk adds additional warnings that could catch undesired effects.
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186xorg_testset_save_CFLAGS="$CFLAGS"
6187
6188if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6189	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6190	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6191printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6192if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6193then :
6194  printf %s "(cached) " >&6
6195else $as_nop
6196  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197/* end confdefs.h.  */
6198int i;
6199_ACEOF
6200if ac_fn_c_try_compile "$LINENO"
6201then :
6202  xorg_cv_cc_flag_unknown_warning_option=yes
6203else $as_nop
6204  xorg_cv_cc_flag_unknown_warning_option=no
6205fi
6206rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6207fi
6208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6209printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6210	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6211	CFLAGS="$xorg_testset_save_CFLAGS"
6212fi
6213
6214if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6215	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6216		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6217	fi
6218	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6219	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6220printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6221if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6222then :
6223  printf %s "(cached) " >&6
6224else $as_nop
6225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6226/* end confdefs.h.  */
6227int i;
6228_ACEOF
6229if ac_fn_c_try_compile "$LINENO"
6230then :
6231  xorg_cv_cc_flag_unused_command_line_argument=yes
6232else $as_nop
6233  xorg_cv_cc_flag_unused_command_line_argument=no
6234fi
6235rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6236fi
6237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6238printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6239	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6240	CFLAGS="$xorg_testset_save_CFLAGS"
6241fi
6242
6243found="no"
6244
6245	if test $found = "no" ; then
6246		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6247			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6248		fi
6249
6250		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6251			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6252		fi
6253
6254		CFLAGS="$CFLAGS -Wunused"
6255
6256		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6257printf %s "checking if $CC supports -Wunused... " >&6; }
6258		cacheid=xorg_cv_cc_flag__Wunused
6259		if eval test \${$cacheid+y}
6260then :
6261  printf %s "(cached) " >&6
6262else $as_nop
6263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6264/* end confdefs.h.  */
6265int i;
6266int
6267main (void)
6268{
6269
6270  ;
6271  return 0;
6272}
6273_ACEOF
6274if ac_fn_c_try_link "$LINENO"
6275then :
6276  eval $cacheid=yes
6277else $as_nop
6278  eval $cacheid=no
6279fi
6280rm -f core conftest.err conftest.$ac_objext conftest.beam \
6281    conftest$ac_exeext conftest.$ac_ext
6282fi
6283
6284
6285		CFLAGS="$xorg_testset_save_CFLAGS"
6286
6287		eval supported=\$$cacheid
6288		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6289printf "%s\n" "$supported" >&6; }
6290		if test "$supported" = "yes" ; then
6291			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6292			found="yes"
6293		fi
6294	fi
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310xorg_testset_save_CFLAGS="$CFLAGS"
6311
6312if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6313	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6314	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6315printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6316if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6317then :
6318  printf %s "(cached) " >&6
6319else $as_nop
6320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6321/* end confdefs.h.  */
6322int i;
6323_ACEOF
6324if ac_fn_c_try_compile "$LINENO"
6325then :
6326  xorg_cv_cc_flag_unknown_warning_option=yes
6327else $as_nop
6328  xorg_cv_cc_flag_unknown_warning_option=no
6329fi
6330rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6331fi
6332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6333printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6334	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6335	CFLAGS="$xorg_testset_save_CFLAGS"
6336fi
6337
6338if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6339	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6340		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6341	fi
6342	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6343	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6344printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6345if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6346then :
6347  printf %s "(cached) " >&6
6348else $as_nop
6349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6350/* end confdefs.h.  */
6351int i;
6352_ACEOF
6353if ac_fn_c_try_compile "$LINENO"
6354then :
6355  xorg_cv_cc_flag_unused_command_line_argument=yes
6356else $as_nop
6357  xorg_cv_cc_flag_unused_command_line_argument=no
6358fi
6359rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6360fi
6361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6362printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6363	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6364	CFLAGS="$xorg_testset_save_CFLAGS"
6365fi
6366
6367found="no"
6368
6369	if test $found = "no" ; then
6370		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6371			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6372		fi
6373
6374		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6375			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6376		fi
6377
6378		CFLAGS="$CFLAGS -Wuninitialized"
6379
6380		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6381printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6382		cacheid=xorg_cv_cc_flag__Wuninitialized
6383		if eval test \${$cacheid+y}
6384then :
6385  printf %s "(cached) " >&6
6386else $as_nop
6387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6388/* end confdefs.h.  */
6389int i;
6390int
6391main (void)
6392{
6393
6394  ;
6395  return 0;
6396}
6397_ACEOF
6398if ac_fn_c_try_link "$LINENO"
6399then :
6400  eval $cacheid=yes
6401else $as_nop
6402  eval $cacheid=no
6403fi
6404rm -f core conftest.err conftest.$ac_objext conftest.beam \
6405    conftest$ac_exeext conftest.$ac_ext
6406fi
6407
6408
6409		CFLAGS="$xorg_testset_save_CFLAGS"
6410
6411		eval supported=\$$cacheid
6412		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6413printf "%s\n" "$supported" >&6; }
6414		if test "$supported" = "yes" ; then
6415			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6416			found="yes"
6417		fi
6418	fi
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434xorg_testset_save_CFLAGS="$CFLAGS"
6435
6436if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6437	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6438	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6439printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6440if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6441then :
6442  printf %s "(cached) " >&6
6443else $as_nop
6444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6445/* end confdefs.h.  */
6446int i;
6447_ACEOF
6448if ac_fn_c_try_compile "$LINENO"
6449then :
6450  xorg_cv_cc_flag_unknown_warning_option=yes
6451else $as_nop
6452  xorg_cv_cc_flag_unknown_warning_option=no
6453fi
6454rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6455fi
6456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6457printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6458	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6459	CFLAGS="$xorg_testset_save_CFLAGS"
6460fi
6461
6462if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6463	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6464		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6465	fi
6466	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6467	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6468printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6469if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6470then :
6471  printf %s "(cached) " >&6
6472else $as_nop
6473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6474/* end confdefs.h.  */
6475int i;
6476_ACEOF
6477if ac_fn_c_try_compile "$LINENO"
6478then :
6479  xorg_cv_cc_flag_unused_command_line_argument=yes
6480else $as_nop
6481  xorg_cv_cc_flag_unused_command_line_argument=no
6482fi
6483rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6484fi
6485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6486printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6487	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6488	CFLAGS="$xorg_testset_save_CFLAGS"
6489fi
6490
6491found="no"
6492
6493	if test $found = "no" ; then
6494		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6495			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6496		fi
6497
6498		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6499			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6500		fi
6501
6502		CFLAGS="$CFLAGS -Wshadow"
6503
6504		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6505printf %s "checking if $CC supports -Wshadow... " >&6; }
6506		cacheid=xorg_cv_cc_flag__Wshadow
6507		if eval test \${$cacheid+y}
6508then :
6509  printf %s "(cached) " >&6
6510else $as_nop
6511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6512/* end confdefs.h.  */
6513int i;
6514int
6515main (void)
6516{
6517
6518  ;
6519  return 0;
6520}
6521_ACEOF
6522if ac_fn_c_try_link "$LINENO"
6523then :
6524  eval $cacheid=yes
6525else $as_nop
6526  eval $cacheid=no
6527fi
6528rm -f core conftest.err conftest.$ac_objext conftest.beam \
6529    conftest$ac_exeext conftest.$ac_ext
6530fi
6531
6532
6533		CFLAGS="$xorg_testset_save_CFLAGS"
6534
6535		eval supported=\$$cacheid
6536		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6537printf "%s\n" "$supported" >&6; }
6538		if test "$supported" = "yes" ; then
6539			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6540			found="yes"
6541		fi
6542	fi
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558xorg_testset_save_CFLAGS="$CFLAGS"
6559
6560if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6561	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6562	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6563printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6564if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6565then :
6566  printf %s "(cached) " >&6
6567else $as_nop
6568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6569/* end confdefs.h.  */
6570int i;
6571_ACEOF
6572if ac_fn_c_try_compile "$LINENO"
6573then :
6574  xorg_cv_cc_flag_unknown_warning_option=yes
6575else $as_nop
6576  xorg_cv_cc_flag_unknown_warning_option=no
6577fi
6578rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6579fi
6580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6581printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6582	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6583	CFLAGS="$xorg_testset_save_CFLAGS"
6584fi
6585
6586if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6587	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6588		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6589	fi
6590	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6591	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6592printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6593if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6594then :
6595  printf %s "(cached) " >&6
6596else $as_nop
6597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6598/* end confdefs.h.  */
6599int i;
6600_ACEOF
6601if ac_fn_c_try_compile "$LINENO"
6602then :
6603  xorg_cv_cc_flag_unused_command_line_argument=yes
6604else $as_nop
6605  xorg_cv_cc_flag_unused_command_line_argument=no
6606fi
6607rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6608fi
6609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6610printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6611	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6612	CFLAGS="$xorg_testset_save_CFLAGS"
6613fi
6614
6615found="no"
6616
6617	if test $found = "no" ; then
6618		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6619			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6620		fi
6621
6622		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6623			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6624		fi
6625
6626		CFLAGS="$CFLAGS -Wmissing-noreturn"
6627
6628		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6629printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6630		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6631		if eval test \${$cacheid+y}
6632then :
6633  printf %s "(cached) " >&6
6634else $as_nop
6635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6636/* end confdefs.h.  */
6637int i;
6638int
6639main (void)
6640{
6641
6642  ;
6643  return 0;
6644}
6645_ACEOF
6646if ac_fn_c_try_link "$LINENO"
6647then :
6648  eval $cacheid=yes
6649else $as_nop
6650  eval $cacheid=no
6651fi
6652rm -f core conftest.err conftest.$ac_objext conftest.beam \
6653    conftest$ac_exeext conftest.$ac_ext
6654fi
6655
6656
6657		CFLAGS="$xorg_testset_save_CFLAGS"
6658
6659		eval supported=\$$cacheid
6660		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6661printf "%s\n" "$supported" >&6; }
6662		if test "$supported" = "yes" ; then
6663			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6664			found="yes"
6665		fi
6666	fi
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682xorg_testset_save_CFLAGS="$CFLAGS"
6683
6684if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6685	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6686	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6687printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6688if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6689then :
6690  printf %s "(cached) " >&6
6691else $as_nop
6692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6693/* end confdefs.h.  */
6694int i;
6695_ACEOF
6696if ac_fn_c_try_compile "$LINENO"
6697then :
6698  xorg_cv_cc_flag_unknown_warning_option=yes
6699else $as_nop
6700  xorg_cv_cc_flag_unknown_warning_option=no
6701fi
6702rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6703fi
6704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6705printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6706	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6707	CFLAGS="$xorg_testset_save_CFLAGS"
6708fi
6709
6710if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6711	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6712		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6713	fi
6714	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6715	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6716printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6717if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6718then :
6719  printf %s "(cached) " >&6
6720else $as_nop
6721  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6722/* end confdefs.h.  */
6723int i;
6724_ACEOF
6725if ac_fn_c_try_compile "$LINENO"
6726then :
6727  xorg_cv_cc_flag_unused_command_line_argument=yes
6728else $as_nop
6729  xorg_cv_cc_flag_unused_command_line_argument=no
6730fi
6731rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6732fi
6733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6734printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6735	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6736	CFLAGS="$xorg_testset_save_CFLAGS"
6737fi
6738
6739found="no"
6740
6741	if test $found = "no" ; then
6742		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6743			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6744		fi
6745
6746		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6747			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6748		fi
6749
6750		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6751
6752		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6753printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6754		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6755		if eval test \${$cacheid+y}
6756then :
6757  printf %s "(cached) " >&6
6758else $as_nop
6759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6760/* end confdefs.h.  */
6761int i;
6762int
6763main (void)
6764{
6765
6766  ;
6767  return 0;
6768}
6769_ACEOF
6770if ac_fn_c_try_link "$LINENO"
6771then :
6772  eval $cacheid=yes
6773else $as_nop
6774  eval $cacheid=no
6775fi
6776rm -f core conftest.err conftest.$ac_objext conftest.beam \
6777    conftest$ac_exeext conftest.$ac_ext
6778fi
6779
6780
6781		CFLAGS="$xorg_testset_save_CFLAGS"
6782
6783		eval supported=\$$cacheid
6784		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6785printf "%s\n" "$supported" >&6; }
6786		if test "$supported" = "yes" ; then
6787			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6788			found="yes"
6789		fi
6790	fi
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806xorg_testset_save_CFLAGS="$CFLAGS"
6807
6808if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6809	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6810	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6811printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6812if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6813then :
6814  printf %s "(cached) " >&6
6815else $as_nop
6816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6817/* end confdefs.h.  */
6818int i;
6819_ACEOF
6820if ac_fn_c_try_compile "$LINENO"
6821then :
6822  xorg_cv_cc_flag_unknown_warning_option=yes
6823else $as_nop
6824  xorg_cv_cc_flag_unknown_warning_option=no
6825fi
6826rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6827fi
6828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6829printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6830	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6831	CFLAGS="$xorg_testset_save_CFLAGS"
6832fi
6833
6834if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6835	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6836		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6837	fi
6838	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6839	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6840printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6841if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6842then :
6843  printf %s "(cached) " >&6
6844else $as_nop
6845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6846/* end confdefs.h.  */
6847int i;
6848_ACEOF
6849if ac_fn_c_try_compile "$LINENO"
6850then :
6851  xorg_cv_cc_flag_unused_command_line_argument=yes
6852else $as_nop
6853  xorg_cv_cc_flag_unused_command_line_argument=no
6854fi
6855rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6856fi
6857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6858printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6859	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6860	CFLAGS="$xorg_testset_save_CFLAGS"
6861fi
6862
6863found="no"
6864
6865	if test $found = "no" ; then
6866		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6867			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6868		fi
6869
6870		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6871			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6872		fi
6873
6874		CFLAGS="$CFLAGS -Wredundant-decls"
6875
6876		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6877printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
6878		cacheid=xorg_cv_cc_flag__Wredundant_decls
6879		if eval test \${$cacheid+y}
6880then :
6881  printf %s "(cached) " >&6
6882else $as_nop
6883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884/* end confdefs.h.  */
6885int i;
6886int
6887main (void)
6888{
6889
6890  ;
6891  return 0;
6892}
6893_ACEOF
6894if ac_fn_c_try_link "$LINENO"
6895then :
6896  eval $cacheid=yes
6897else $as_nop
6898  eval $cacheid=no
6899fi
6900rm -f core conftest.err conftest.$ac_objext conftest.beam \
6901    conftest$ac_exeext conftest.$ac_ext
6902fi
6903
6904
6905		CFLAGS="$xorg_testset_save_CFLAGS"
6906
6907		eval supported=\$$cacheid
6908		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6909printf "%s\n" "$supported" >&6; }
6910		if test "$supported" = "yes" ; then
6911			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6912			found="yes"
6913		fi
6914	fi
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930xorg_testset_save_CFLAGS="$CFLAGS"
6931
6932if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6933	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6934	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6935printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6936if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6937then :
6938  printf %s "(cached) " >&6
6939else $as_nop
6940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6941/* end confdefs.h.  */
6942int i;
6943_ACEOF
6944if ac_fn_c_try_compile "$LINENO"
6945then :
6946  xorg_cv_cc_flag_unknown_warning_option=yes
6947else $as_nop
6948  xorg_cv_cc_flag_unknown_warning_option=no
6949fi
6950rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6951fi
6952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6953printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6954	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6955	CFLAGS="$xorg_testset_save_CFLAGS"
6956fi
6957
6958if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6959	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6960		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6961	fi
6962	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6963	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6964printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6965if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6966then :
6967  printf %s "(cached) " >&6
6968else $as_nop
6969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970/* end confdefs.h.  */
6971int i;
6972_ACEOF
6973if ac_fn_c_try_compile "$LINENO"
6974then :
6975  xorg_cv_cc_flag_unused_command_line_argument=yes
6976else $as_nop
6977  xorg_cv_cc_flag_unused_command_line_argument=no
6978fi
6979rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6980fi
6981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6982printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6983	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6984	CFLAGS="$xorg_testset_save_CFLAGS"
6985fi
6986
6987found="no"
6988
6989	if test $found = "no" ; then
6990		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6991			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6992		fi
6993
6994		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6995			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6996		fi
6997
6998		CFLAGS="$CFLAGS -Wlogical-op"
6999
7000		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7001printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7002		cacheid=xorg_cv_cc_flag__Wlogical_op
7003		if eval test \${$cacheid+y}
7004then :
7005  printf %s "(cached) " >&6
7006else $as_nop
7007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7008/* end confdefs.h.  */
7009int i;
7010int
7011main (void)
7012{
7013
7014  ;
7015  return 0;
7016}
7017_ACEOF
7018if ac_fn_c_try_link "$LINENO"
7019then :
7020  eval $cacheid=yes
7021else $as_nop
7022  eval $cacheid=no
7023fi
7024rm -f core conftest.err conftest.$ac_objext conftest.beam \
7025    conftest$ac_exeext conftest.$ac_ext
7026fi
7027
7028
7029		CFLAGS="$xorg_testset_save_CFLAGS"
7030
7031		eval supported=\$$cacheid
7032		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7033printf "%s\n" "$supported" >&6; }
7034		if test "$supported" = "yes" ; then
7035			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7036			found="yes"
7037		fi
7038	fi
7039
7040
7041
7042# These are currently disabled because they are noisy.  They will be enabled
7043# in the future once the codebase is sufficiently modernized to silence
7044# them.  For now, I don't want them to drown out the other warnings.
7045# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7046# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7047# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7048
7049# Turn some warnings into errors, so we don't accidently get successful builds
7050# when there are problems that should be fixed.
7051
7052if test "x$SELECTIVE_WERROR" = "xyes" ; then
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066xorg_testset_save_CFLAGS="$CFLAGS"
7067
7068if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7069	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7070	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7071printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7072if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7073then :
7074  printf %s "(cached) " >&6
7075else $as_nop
7076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7077/* end confdefs.h.  */
7078int i;
7079_ACEOF
7080if ac_fn_c_try_compile "$LINENO"
7081then :
7082  xorg_cv_cc_flag_unknown_warning_option=yes
7083else $as_nop
7084  xorg_cv_cc_flag_unknown_warning_option=no
7085fi
7086rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7087fi
7088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7089printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7090	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7091	CFLAGS="$xorg_testset_save_CFLAGS"
7092fi
7093
7094if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7095	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7096		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7097	fi
7098	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7099	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7100printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7101if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7102then :
7103  printf %s "(cached) " >&6
7104else $as_nop
7105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7106/* end confdefs.h.  */
7107int i;
7108_ACEOF
7109if ac_fn_c_try_compile "$LINENO"
7110then :
7111  xorg_cv_cc_flag_unused_command_line_argument=yes
7112else $as_nop
7113  xorg_cv_cc_flag_unused_command_line_argument=no
7114fi
7115rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7116fi
7117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7118printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7119	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7120	CFLAGS="$xorg_testset_save_CFLAGS"
7121fi
7122
7123found="no"
7124
7125	if test $found = "no" ; then
7126		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7127			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7128		fi
7129
7130		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7131			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7132		fi
7133
7134		CFLAGS="$CFLAGS -Werror=implicit"
7135
7136		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7137printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7138		cacheid=xorg_cv_cc_flag__Werror_implicit
7139		if eval test \${$cacheid+y}
7140then :
7141  printf %s "(cached) " >&6
7142else $as_nop
7143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7144/* end confdefs.h.  */
7145int i;
7146int
7147main (void)
7148{
7149
7150  ;
7151  return 0;
7152}
7153_ACEOF
7154if ac_fn_c_try_link "$LINENO"
7155then :
7156  eval $cacheid=yes
7157else $as_nop
7158  eval $cacheid=no
7159fi
7160rm -f core conftest.err conftest.$ac_objext conftest.beam \
7161    conftest$ac_exeext conftest.$ac_ext
7162fi
7163
7164
7165		CFLAGS="$xorg_testset_save_CFLAGS"
7166
7167		eval supported=\$$cacheid
7168		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7169printf "%s\n" "$supported" >&6; }
7170		if test "$supported" = "yes" ; then
7171			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7172			found="yes"
7173		fi
7174	fi
7175
7176	if test $found = "no" ; then
7177		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7178			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7179		fi
7180
7181		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7182			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7183		fi
7184
7185		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7186
7187		{ 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
7188printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7189		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7190		if eval test \${$cacheid+y}
7191then :
7192  printf %s "(cached) " >&6
7193else $as_nop
7194  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7195/* end confdefs.h.  */
7196int i;
7197int
7198main (void)
7199{
7200
7201  ;
7202  return 0;
7203}
7204_ACEOF
7205if ac_fn_c_try_link "$LINENO"
7206then :
7207  eval $cacheid=yes
7208else $as_nop
7209  eval $cacheid=no
7210fi
7211rm -f core conftest.err conftest.$ac_objext conftest.beam \
7212    conftest$ac_exeext conftest.$ac_ext
7213fi
7214
7215
7216		CFLAGS="$xorg_testset_save_CFLAGS"
7217
7218		eval supported=\$$cacheid
7219		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7220printf "%s\n" "$supported" >&6; }
7221		if test "$supported" = "yes" ; then
7222			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7223			found="yes"
7224		fi
7225	fi
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241xorg_testset_save_CFLAGS="$CFLAGS"
7242
7243if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7244	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7245	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7246printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7247if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7248then :
7249  printf %s "(cached) " >&6
7250else $as_nop
7251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7252/* end confdefs.h.  */
7253int i;
7254_ACEOF
7255if ac_fn_c_try_compile "$LINENO"
7256then :
7257  xorg_cv_cc_flag_unknown_warning_option=yes
7258else $as_nop
7259  xorg_cv_cc_flag_unknown_warning_option=no
7260fi
7261rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7262fi
7263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7264printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7265	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7266	CFLAGS="$xorg_testset_save_CFLAGS"
7267fi
7268
7269if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7270	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7271		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7272	fi
7273	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7274	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7275printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7276if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7277then :
7278  printf %s "(cached) " >&6
7279else $as_nop
7280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7281/* end confdefs.h.  */
7282int i;
7283_ACEOF
7284if ac_fn_c_try_compile "$LINENO"
7285then :
7286  xorg_cv_cc_flag_unused_command_line_argument=yes
7287else $as_nop
7288  xorg_cv_cc_flag_unused_command_line_argument=no
7289fi
7290rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7291fi
7292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7293printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7294	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7295	CFLAGS="$xorg_testset_save_CFLAGS"
7296fi
7297
7298found="no"
7299
7300	if test $found = "no" ; then
7301		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7302			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7303		fi
7304
7305		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7306			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7307		fi
7308
7309		CFLAGS="$CFLAGS -Werror=nonnull"
7310
7311		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7312printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7313		cacheid=xorg_cv_cc_flag__Werror_nonnull
7314		if eval test \${$cacheid+y}
7315then :
7316  printf %s "(cached) " >&6
7317else $as_nop
7318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7319/* end confdefs.h.  */
7320int i;
7321int
7322main (void)
7323{
7324
7325  ;
7326  return 0;
7327}
7328_ACEOF
7329if ac_fn_c_try_link "$LINENO"
7330then :
7331  eval $cacheid=yes
7332else $as_nop
7333  eval $cacheid=no
7334fi
7335rm -f core conftest.err conftest.$ac_objext conftest.beam \
7336    conftest$ac_exeext conftest.$ac_ext
7337fi
7338
7339
7340		CFLAGS="$xorg_testset_save_CFLAGS"
7341
7342		eval supported=\$$cacheid
7343		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7344printf "%s\n" "$supported" >&6; }
7345		if test "$supported" = "yes" ; then
7346			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7347			found="yes"
7348		fi
7349	fi
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365xorg_testset_save_CFLAGS="$CFLAGS"
7366
7367if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7368	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7369	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7370printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7371if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7372then :
7373  printf %s "(cached) " >&6
7374else $as_nop
7375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7376/* end confdefs.h.  */
7377int i;
7378_ACEOF
7379if ac_fn_c_try_compile "$LINENO"
7380then :
7381  xorg_cv_cc_flag_unknown_warning_option=yes
7382else $as_nop
7383  xorg_cv_cc_flag_unknown_warning_option=no
7384fi
7385rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7386fi
7387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7388printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7389	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7390	CFLAGS="$xorg_testset_save_CFLAGS"
7391fi
7392
7393if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7394	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7395		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7396	fi
7397	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7398	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7399printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7400if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7401then :
7402  printf %s "(cached) " >&6
7403else $as_nop
7404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7405/* end confdefs.h.  */
7406int i;
7407_ACEOF
7408if ac_fn_c_try_compile "$LINENO"
7409then :
7410  xorg_cv_cc_flag_unused_command_line_argument=yes
7411else $as_nop
7412  xorg_cv_cc_flag_unused_command_line_argument=no
7413fi
7414rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7415fi
7416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7417printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7418	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7419	CFLAGS="$xorg_testset_save_CFLAGS"
7420fi
7421
7422found="no"
7423
7424	if test $found = "no" ; then
7425		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7426			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7427		fi
7428
7429		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7430			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7431		fi
7432
7433		CFLAGS="$CFLAGS -Werror=init-self"
7434
7435		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7436printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7437		cacheid=xorg_cv_cc_flag__Werror_init_self
7438		if eval test \${$cacheid+y}
7439then :
7440  printf %s "(cached) " >&6
7441else $as_nop
7442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7443/* end confdefs.h.  */
7444int i;
7445int
7446main (void)
7447{
7448
7449  ;
7450  return 0;
7451}
7452_ACEOF
7453if ac_fn_c_try_link "$LINENO"
7454then :
7455  eval $cacheid=yes
7456else $as_nop
7457  eval $cacheid=no
7458fi
7459rm -f core conftest.err conftest.$ac_objext conftest.beam \
7460    conftest$ac_exeext conftest.$ac_ext
7461fi
7462
7463
7464		CFLAGS="$xorg_testset_save_CFLAGS"
7465
7466		eval supported=\$$cacheid
7467		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7468printf "%s\n" "$supported" >&6; }
7469		if test "$supported" = "yes" ; then
7470			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7471			found="yes"
7472		fi
7473	fi
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489xorg_testset_save_CFLAGS="$CFLAGS"
7490
7491if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7492	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7493	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7494printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7495if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7496then :
7497  printf %s "(cached) " >&6
7498else $as_nop
7499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7500/* end confdefs.h.  */
7501int i;
7502_ACEOF
7503if ac_fn_c_try_compile "$LINENO"
7504then :
7505  xorg_cv_cc_flag_unknown_warning_option=yes
7506else $as_nop
7507  xorg_cv_cc_flag_unknown_warning_option=no
7508fi
7509rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7510fi
7511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7512printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7513	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7514	CFLAGS="$xorg_testset_save_CFLAGS"
7515fi
7516
7517if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7518	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7519		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7520	fi
7521	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7522	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7523printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7524if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7525then :
7526  printf %s "(cached) " >&6
7527else $as_nop
7528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7529/* end confdefs.h.  */
7530int i;
7531_ACEOF
7532if ac_fn_c_try_compile "$LINENO"
7533then :
7534  xorg_cv_cc_flag_unused_command_line_argument=yes
7535else $as_nop
7536  xorg_cv_cc_flag_unused_command_line_argument=no
7537fi
7538rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7539fi
7540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7541printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7542	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7543	CFLAGS="$xorg_testset_save_CFLAGS"
7544fi
7545
7546found="no"
7547
7548	if test $found = "no" ; then
7549		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7550			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7551		fi
7552
7553		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7554			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7555		fi
7556
7557		CFLAGS="$CFLAGS -Werror=main"
7558
7559		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7560printf %s "checking if $CC supports -Werror=main... " >&6; }
7561		cacheid=xorg_cv_cc_flag__Werror_main
7562		if eval test \${$cacheid+y}
7563then :
7564  printf %s "(cached) " >&6
7565else $as_nop
7566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7567/* end confdefs.h.  */
7568int i;
7569int
7570main (void)
7571{
7572
7573  ;
7574  return 0;
7575}
7576_ACEOF
7577if ac_fn_c_try_link "$LINENO"
7578then :
7579  eval $cacheid=yes
7580else $as_nop
7581  eval $cacheid=no
7582fi
7583rm -f core conftest.err conftest.$ac_objext conftest.beam \
7584    conftest$ac_exeext conftest.$ac_ext
7585fi
7586
7587
7588		CFLAGS="$xorg_testset_save_CFLAGS"
7589
7590		eval supported=\$$cacheid
7591		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7592printf "%s\n" "$supported" >&6; }
7593		if test "$supported" = "yes" ; then
7594			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7595			found="yes"
7596		fi
7597	fi
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613xorg_testset_save_CFLAGS="$CFLAGS"
7614
7615if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7616	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7617	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7618printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7619if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7620then :
7621  printf %s "(cached) " >&6
7622else $as_nop
7623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7624/* end confdefs.h.  */
7625int i;
7626_ACEOF
7627if ac_fn_c_try_compile "$LINENO"
7628then :
7629  xorg_cv_cc_flag_unknown_warning_option=yes
7630else $as_nop
7631  xorg_cv_cc_flag_unknown_warning_option=no
7632fi
7633rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7634fi
7635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7636printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7637	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7638	CFLAGS="$xorg_testset_save_CFLAGS"
7639fi
7640
7641if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7642	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7643		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7644	fi
7645	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7646	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7647printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7648if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7649then :
7650  printf %s "(cached) " >&6
7651else $as_nop
7652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7653/* end confdefs.h.  */
7654int i;
7655_ACEOF
7656if ac_fn_c_try_compile "$LINENO"
7657then :
7658  xorg_cv_cc_flag_unused_command_line_argument=yes
7659else $as_nop
7660  xorg_cv_cc_flag_unused_command_line_argument=no
7661fi
7662rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7663fi
7664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7665printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7666	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7667	CFLAGS="$xorg_testset_save_CFLAGS"
7668fi
7669
7670found="no"
7671
7672	if test $found = "no" ; then
7673		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7674			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7675		fi
7676
7677		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7678			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7679		fi
7680
7681		CFLAGS="$CFLAGS -Werror=missing-braces"
7682
7683		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7684printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7685		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7686		if eval test \${$cacheid+y}
7687then :
7688  printf %s "(cached) " >&6
7689else $as_nop
7690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7691/* end confdefs.h.  */
7692int i;
7693int
7694main (void)
7695{
7696
7697  ;
7698  return 0;
7699}
7700_ACEOF
7701if ac_fn_c_try_link "$LINENO"
7702then :
7703  eval $cacheid=yes
7704else $as_nop
7705  eval $cacheid=no
7706fi
7707rm -f core conftest.err conftest.$ac_objext conftest.beam \
7708    conftest$ac_exeext conftest.$ac_ext
7709fi
7710
7711
7712		CFLAGS="$xorg_testset_save_CFLAGS"
7713
7714		eval supported=\$$cacheid
7715		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7716printf "%s\n" "$supported" >&6; }
7717		if test "$supported" = "yes" ; then
7718			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7719			found="yes"
7720		fi
7721	fi
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737xorg_testset_save_CFLAGS="$CFLAGS"
7738
7739if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7740	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7741	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7742printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7743if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7744then :
7745  printf %s "(cached) " >&6
7746else $as_nop
7747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7748/* end confdefs.h.  */
7749int i;
7750_ACEOF
7751if ac_fn_c_try_compile "$LINENO"
7752then :
7753  xorg_cv_cc_flag_unknown_warning_option=yes
7754else $as_nop
7755  xorg_cv_cc_flag_unknown_warning_option=no
7756fi
7757rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7758fi
7759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7760printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7761	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7762	CFLAGS="$xorg_testset_save_CFLAGS"
7763fi
7764
7765if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7766	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7767		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7768	fi
7769	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7770	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7771printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7772if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7773then :
7774  printf %s "(cached) " >&6
7775else $as_nop
7776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7777/* end confdefs.h.  */
7778int i;
7779_ACEOF
7780if ac_fn_c_try_compile "$LINENO"
7781then :
7782  xorg_cv_cc_flag_unused_command_line_argument=yes
7783else $as_nop
7784  xorg_cv_cc_flag_unused_command_line_argument=no
7785fi
7786rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7787fi
7788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7789printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7790	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7791	CFLAGS="$xorg_testset_save_CFLAGS"
7792fi
7793
7794found="no"
7795
7796	if test $found = "no" ; then
7797		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7798			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7799		fi
7800
7801		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7802			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7803		fi
7804
7805		CFLAGS="$CFLAGS -Werror=sequence-point"
7806
7807		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7808printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7809		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7810		if eval test \${$cacheid+y}
7811then :
7812  printf %s "(cached) " >&6
7813else $as_nop
7814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7815/* end confdefs.h.  */
7816int i;
7817int
7818main (void)
7819{
7820
7821  ;
7822  return 0;
7823}
7824_ACEOF
7825if ac_fn_c_try_link "$LINENO"
7826then :
7827  eval $cacheid=yes
7828else $as_nop
7829  eval $cacheid=no
7830fi
7831rm -f core conftest.err conftest.$ac_objext conftest.beam \
7832    conftest$ac_exeext conftest.$ac_ext
7833fi
7834
7835
7836		CFLAGS="$xorg_testset_save_CFLAGS"
7837
7838		eval supported=\$$cacheid
7839		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7840printf "%s\n" "$supported" >&6; }
7841		if test "$supported" = "yes" ; then
7842			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7843			found="yes"
7844		fi
7845	fi
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861xorg_testset_save_CFLAGS="$CFLAGS"
7862
7863if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7864	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7865	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7866printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7867if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7868then :
7869  printf %s "(cached) " >&6
7870else $as_nop
7871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7872/* end confdefs.h.  */
7873int i;
7874_ACEOF
7875if ac_fn_c_try_compile "$LINENO"
7876then :
7877  xorg_cv_cc_flag_unknown_warning_option=yes
7878else $as_nop
7879  xorg_cv_cc_flag_unknown_warning_option=no
7880fi
7881rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7882fi
7883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7884printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7885	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7886	CFLAGS="$xorg_testset_save_CFLAGS"
7887fi
7888
7889if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7890	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7891		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7892	fi
7893	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7894	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7895printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7896if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7897then :
7898  printf %s "(cached) " >&6
7899else $as_nop
7900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901/* end confdefs.h.  */
7902int i;
7903_ACEOF
7904if ac_fn_c_try_compile "$LINENO"
7905then :
7906  xorg_cv_cc_flag_unused_command_line_argument=yes
7907else $as_nop
7908  xorg_cv_cc_flag_unused_command_line_argument=no
7909fi
7910rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7911fi
7912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7913printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7914	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7915	CFLAGS="$xorg_testset_save_CFLAGS"
7916fi
7917
7918found="no"
7919
7920	if test $found = "no" ; then
7921		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7922			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7923		fi
7924
7925		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7926			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7927		fi
7928
7929		CFLAGS="$CFLAGS -Werror=return-type"
7930
7931		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7932printf %s "checking if $CC supports -Werror=return-type... " >&6; }
7933		cacheid=xorg_cv_cc_flag__Werror_return_type
7934		if eval test \${$cacheid+y}
7935then :
7936  printf %s "(cached) " >&6
7937else $as_nop
7938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7939/* end confdefs.h.  */
7940int i;
7941int
7942main (void)
7943{
7944
7945  ;
7946  return 0;
7947}
7948_ACEOF
7949if ac_fn_c_try_link "$LINENO"
7950then :
7951  eval $cacheid=yes
7952else $as_nop
7953  eval $cacheid=no
7954fi
7955rm -f core conftest.err conftest.$ac_objext conftest.beam \
7956    conftest$ac_exeext conftest.$ac_ext
7957fi
7958
7959
7960		CFLAGS="$xorg_testset_save_CFLAGS"
7961
7962		eval supported=\$$cacheid
7963		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7964printf "%s\n" "$supported" >&6; }
7965		if test "$supported" = "yes" ; then
7966			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7967			found="yes"
7968		fi
7969	fi
7970
7971	if test $found = "no" ; then
7972		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7973			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7974		fi
7975
7976		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7977			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7978		fi
7979
7980		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7981
7982		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7983printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7984		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7985		if eval test \${$cacheid+y}
7986then :
7987  printf %s "(cached) " >&6
7988else $as_nop
7989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7990/* end confdefs.h.  */
7991int i;
7992int
7993main (void)
7994{
7995
7996  ;
7997  return 0;
7998}
7999_ACEOF
8000if ac_fn_c_try_link "$LINENO"
8001then :
8002  eval $cacheid=yes
8003else $as_nop
8004  eval $cacheid=no
8005fi
8006rm -f core conftest.err conftest.$ac_objext conftest.beam \
8007    conftest$ac_exeext conftest.$ac_ext
8008fi
8009
8010
8011		CFLAGS="$xorg_testset_save_CFLAGS"
8012
8013		eval supported=\$$cacheid
8014		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8015printf "%s\n" "$supported" >&6; }
8016		if test "$supported" = "yes" ; then
8017			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8018			found="yes"
8019		fi
8020	fi
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036xorg_testset_save_CFLAGS="$CFLAGS"
8037
8038if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8039	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8040	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8041printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8042if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8043then :
8044  printf %s "(cached) " >&6
8045else $as_nop
8046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8047/* end confdefs.h.  */
8048int i;
8049_ACEOF
8050if ac_fn_c_try_compile "$LINENO"
8051then :
8052  xorg_cv_cc_flag_unknown_warning_option=yes
8053else $as_nop
8054  xorg_cv_cc_flag_unknown_warning_option=no
8055fi
8056rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8057fi
8058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8059printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8060	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8061	CFLAGS="$xorg_testset_save_CFLAGS"
8062fi
8063
8064if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8065	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8066		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8067	fi
8068	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8069	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8070printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8071if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8072then :
8073  printf %s "(cached) " >&6
8074else $as_nop
8075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8076/* end confdefs.h.  */
8077int i;
8078_ACEOF
8079if ac_fn_c_try_compile "$LINENO"
8080then :
8081  xorg_cv_cc_flag_unused_command_line_argument=yes
8082else $as_nop
8083  xorg_cv_cc_flag_unused_command_line_argument=no
8084fi
8085rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8086fi
8087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8088printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8089	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8090	CFLAGS="$xorg_testset_save_CFLAGS"
8091fi
8092
8093found="no"
8094
8095	if test $found = "no" ; then
8096		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8097			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8098		fi
8099
8100		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8101			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8102		fi
8103
8104		CFLAGS="$CFLAGS -Werror=trigraphs"
8105
8106		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8107printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8108		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8109		if eval test \${$cacheid+y}
8110then :
8111  printf %s "(cached) " >&6
8112else $as_nop
8113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8114/* end confdefs.h.  */
8115int i;
8116int
8117main (void)
8118{
8119
8120  ;
8121  return 0;
8122}
8123_ACEOF
8124if ac_fn_c_try_link "$LINENO"
8125then :
8126  eval $cacheid=yes
8127else $as_nop
8128  eval $cacheid=no
8129fi
8130rm -f core conftest.err conftest.$ac_objext conftest.beam \
8131    conftest$ac_exeext conftest.$ac_ext
8132fi
8133
8134
8135		CFLAGS="$xorg_testset_save_CFLAGS"
8136
8137		eval supported=\$$cacheid
8138		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8139printf "%s\n" "$supported" >&6; }
8140		if test "$supported" = "yes" ; then
8141			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8142			found="yes"
8143		fi
8144	fi
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160xorg_testset_save_CFLAGS="$CFLAGS"
8161
8162if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8163	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8164	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8165printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8166if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8167then :
8168  printf %s "(cached) " >&6
8169else $as_nop
8170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8171/* end confdefs.h.  */
8172int i;
8173_ACEOF
8174if ac_fn_c_try_compile "$LINENO"
8175then :
8176  xorg_cv_cc_flag_unknown_warning_option=yes
8177else $as_nop
8178  xorg_cv_cc_flag_unknown_warning_option=no
8179fi
8180rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8181fi
8182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8183printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8184	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8185	CFLAGS="$xorg_testset_save_CFLAGS"
8186fi
8187
8188if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8189	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8190		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8191	fi
8192	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8193	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8194printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8195if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8196then :
8197  printf %s "(cached) " >&6
8198else $as_nop
8199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8200/* end confdefs.h.  */
8201int i;
8202_ACEOF
8203if ac_fn_c_try_compile "$LINENO"
8204then :
8205  xorg_cv_cc_flag_unused_command_line_argument=yes
8206else $as_nop
8207  xorg_cv_cc_flag_unused_command_line_argument=no
8208fi
8209rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8210fi
8211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8212printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8213	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8214	CFLAGS="$xorg_testset_save_CFLAGS"
8215fi
8216
8217found="no"
8218
8219	if test $found = "no" ; then
8220		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8221			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8222		fi
8223
8224		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8225			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8226		fi
8227
8228		CFLAGS="$CFLAGS -Werror=array-bounds"
8229
8230		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8231printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8232		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8233		if eval test \${$cacheid+y}
8234then :
8235  printf %s "(cached) " >&6
8236else $as_nop
8237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8238/* end confdefs.h.  */
8239int i;
8240int
8241main (void)
8242{
8243
8244  ;
8245  return 0;
8246}
8247_ACEOF
8248if ac_fn_c_try_link "$LINENO"
8249then :
8250  eval $cacheid=yes
8251else $as_nop
8252  eval $cacheid=no
8253fi
8254rm -f core conftest.err conftest.$ac_objext conftest.beam \
8255    conftest$ac_exeext conftest.$ac_ext
8256fi
8257
8258
8259		CFLAGS="$xorg_testset_save_CFLAGS"
8260
8261		eval supported=\$$cacheid
8262		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8263printf "%s\n" "$supported" >&6; }
8264		if test "$supported" = "yes" ; then
8265			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8266			found="yes"
8267		fi
8268	fi
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284xorg_testset_save_CFLAGS="$CFLAGS"
8285
8286if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8287	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8288	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8289printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8290if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8291then :
8292  printf %s "(cached) " >&6
8293else $as_nop
8294  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8295/* end confdefs.h.  */
8296int i;
8297_ACEOF
8298if ac_fn_c_try_compile "$LINENO"
8299then :
8300  xorg_cv_cc_flag_unknown_warning_option=yes
8301else $as_nop
8302  xorg_cv_cc_flag_unknown_warning_option=no
8303fi
8304rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8305fi
8306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8307printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8308	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8309	CFLAGS="$xorg_testset_save_CFLAGS"
8310fi
8311
8312if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8313	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8314		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8315	fi
8316	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8317	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8318printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8319if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8320then :
8321  printf %s "(cached) " >&6
8322else $as_nop
8323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8324/* end confdefs.h.  */
8325int i;
8326_ACEOF
8327if ac_fn_c_try_compile "$LINENO"
8328then :
8329  xorg_cv_cc_flag_unused_command_line_argument=yes
8330else $as_nop
8331  xorg_cv_cc_flag_unused_command_line_argument=no
8332fi
8333rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8334fi
8335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8336printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8337	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8338	CFLAGS="$xorg_testset_save_CFLAGS"
8339fi
8340
8341found="no"
8342
8343	if test $found = "no" ; then
8344		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8345			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8346		fi
8347
8348		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8349			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8350		fi
8351
8352		CFLAGS="$CFLAGS -Werror=write-strings"
8353
8354		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8355printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8356		cacheid=xorg_cv_cc_flag__Werror_write_strings
8357		if eval test \${$cacheid+y}
8358then :
8359  printf %s "(cached) " >&6
8360else $as_nop
8361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8362/* end confdefs.h.  */
8363int i;
8364int
8365main (void)
8366{
8367
8368  ;
8369  return 0;
8370}
8371_ACEOF
8372if ac_fn_c_try_link "$LINENO"
8373then :
8374  eval $cacheid=yes
8375else $as_nop
8376  eval $cacheid=no
8377fi
8378rm -f core conftest.err conftest.$ac_objext conftest.beam \
8379    conftest$ac_exeext conftest.$ac_ext
8380fi
8381
8382
8383		CFLAGS="$xorg_testset_save_CFLAGS"
8384
8385		eval supported=\$$cacheid
8386		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8387printf "%s\n" "$supported" >&6; }
8388		if test "$supported" = "yes" ; then
8389			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8390			found="yes"
8391		fi
8392	fi
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408xorg_testset_save_CFLAGS="$CFLAGS"
8409
8410if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8411	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8412	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8413printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8414if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8415then :
8416  printf %s "(cached) " >&6
8417else $as_nop
8418  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8419/* end confdefs.h.  */
8420int i;
8421_ACEOF
8422if ac_fn_c_try_compile "$LINENO"
8423then :
8424  xorg_cv_cc_flag_unknown_warning_option=yes
8425else $as_nop
8426  xorg_cv_cc_flag_unknown_warning_option=no
8427fi
8428rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8429fi
8430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8431printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8432	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8433	CFLAGS="$xorg_testset_save_CFLAGS"
8434fi
8435
8436if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8437	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8438		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8439	fi
8440	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8441	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8442printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8443if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8444then :
8445  printf %s "(cached) " >&6
8446else $as_nop
8447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8448/* end confdefs.h.  */
8449int i;
8450_ACEOF
8451if ac_fn_c_try_compile "$LINENO"
8452then :
8453  xorg_cv_cc_flag_unused_command_line_argument=yes
8454else $as_nop
8455  xorg_cv_cc_flag_unused_command_line_argument=no
8456fi
8457rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8458fi
8459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8460printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8461	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8462	CFLAGS="$xorg_testset_save_CFLAGS"
8463fi
8464
8465found="no"
8466
8467	if test $found = "no" ; then
8468		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8469			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8470		fi
8471
8472		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8473			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8474		fi
8475
8476		CFLAGS="$CFLAGS -Werror=address"
8477
8478		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8479printf %s "checking if $CC supports -Werror=address... " >&6; }
8480		cacheid=xorg_cv_cc_flag__Werror_address
8481		if eval test \${$cacheid+y}
8482then :
8483  printf %s "(cached) " >&6
8484else $as_nop
8485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8486/* end confdefs.h.  */
8487int i;
8488int
8489main (void)
8490{
8491
8492  ;
8493  return 0;
8494}
8495_ACEOF
8496if ac_fn_c_try_link "$LINENO"
8497then :
8498  eval $cacheid=yes
8499else $as_nop
8500  eval $cacheid=no
8501fi
8502rm -f core conftest.err conftest.$ac_objext conftest.beam \
8503    conftest$ac_exeext conftest.$ac_ext
8504fi
8505
8506
8507		CFLAGS="$xorg_testset_save_CFLAGS"
8508
8509		eval supported=\$$cacheid
8510		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8511printf "%s\n" "$supported" >&6; }
8512		if test "$supported" = "yes" ; then
8513			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8514			found="yes"
8515		fi
8516	fi
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532xorg_testset_save_CFLAGS="$CFLAGS"
8533
8534if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8535	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8536	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8537printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8538if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8539then :
8540  printf %s "(cached) " >&6
8541else $as_nop
8542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8543/* end confdefs.h.  */
8544int i;
8545_ACEOF
8546if ac_fn_c_try_compile "$LINENO"
8547then :
8548  xorg_cv_cc_flag_unknown_warning_option=yes
8549else $as_nop
8550  xorg_cv_cc_flag_unknown_warning_option=no
8551fi
8552rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8553fi
8554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8555printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8556	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8557	CFLAGS="$xorg_testset_save_CFLAGS"
8558fi
8559
8560if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8561	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8562		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8563	fi
8564	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8565	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8566printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8567if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8568then :
8569  printf %s "(cached) " >&6
8570else $as_nop
8571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8572/* end confdefs.h.  */
8573int i;
8574_ACEOF
8575if ac_fn_c_try_compile "$LINENO"
8576then :
8577  xorg_cv_cc_flag_unused_command_line_argument=yes
8578else $as_nop
8579  xorg_cv_cc_flag_unused_command_line_argument=no
8580fi
8581rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8582fi
8583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8584printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8585	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8586	CFLAGS="$xorg_testset_save_CFLAGS"
8587fi
8588
8589found="no"
8590
8591	if test $found = "no" ; then
8592		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8593			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8594		fi
8595
8596		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8597			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8598		fi
8599
8600		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8601
8602		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8603printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8604		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8605		if eval test \${$cacheid+y}
8606then :
8607  printf %s "(cached) " >&6
8608else $as_nop
8609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8610/* end confdefs.h.  */
8611int i;
8612int
8613main (void)
8614{
8615
8616  ;
8617  return 0;
8618}
8619_ACEOF
8620if ac_fn_c_try_link "$LINENO"
8621then :
8622  eval $cacheid=yes
8623else $as_nop
8624  eval $cacheid=no
8625fi
8626rm -f core conftest.err conftest.$ac_objext conftest.beam \
8627    conftest$ac_exeext conftest.$ac_ext
8628fi
8629
8630
8631		CFLAGS="$xorg_testset_save_CFLAGS"
8632
8633		eval supported=\$$cacheid
8634		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8635printf "%s\n" "$supported" >&6; }
8636		if test "$supported" = "yes" ; then
8637			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8638			found="yes"
8639		fi
8640	fi
8641
8642	if test $found = "no" ; then
8643		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8644			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8645		fi
8646
8647		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8648			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8649		fi
8650
8651		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8652
8653		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8654printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8655		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8656		if eval test \${$cacheid+y}
8657then :
8658  printf %s "(cached) " >&6
8659else $as_nop
8660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8661/* end confdefs.h.  */
8662int i;
8663int
8664main (void)
8665{
8666
8667  ;
8668  return 0;
8669}
8670_ACEOF
8671if ac_fn_c_try_link "$LINENO"
8672then :
8673  eval $cacheid=yes
8674else $as_nop
8675  eval $cacheid=no
8676fi
8677rm -f core conftest.err conftest.$ac_objext conftest.beam \
8678    conftest$ac_exeext conftest.$ac_ext
8679fi
8680
8681
8682		CFLAGS="$xorg_testset_save_CFLAGS"
8683
8684		eval supported=\$$cacheid
8685		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8686printf "%s\n" "$supported" >&6; }
8687		if test "$supported" = "yes" ; then
8688			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8689			found="yes"
8690		fi
8691	fi
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707xorg_testset_save_CFLAGS="$CFLAGS"
8708
8709if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8710	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8711	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8712printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8713if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8714then :
8715  printf %s "(cached) " >&6
8716else $as_nop
8717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8718/* end confdefs.h.  */
8719int i;
8720_ACEOF
8721if ac_fn_c_try_compile "$LINENO"
8722then :
8723  xorg_cv_cc_flag_unknown_warning_option=yes
8724else $as_nop
8725  xorg_cv_cc_flag_unknown_warning_option=no
8726fi
8727rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8728fi
8729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8730printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8731	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8732	CFLAGS="$xorg_testset_save_CFLAGS"
8733fi
8734
8735if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8736	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8737		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8738	fi
8739	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8740	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8741printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8742if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8743then :
8744  printf %s "(cached) " >&6
8745else $as_nop
8746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8747/* end confdefs.h.  */
8748int i;
8749_ACEOF
8750if ac_fn_c_try_compile "$LINENO"
8751then :
8752  xorg_cv_cc_flag_unused_command_line_argument=yes
8753else $as_nop
8754  xorg_cv_cc_flag_unused_command_line_argument=no
8755fi
8756rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8757fi
8758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8759printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8760	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8761	CFLAGS="$xorg_testset_save_CFLAGS"
8762fi
8763
8764found="no"
8765
8766	if test $found = "no" ; then
8767		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8768			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8769		fi
8770
8771		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8772			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8773		fi
8774
8775		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8776
8777		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8778printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8779		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8780		if eval test \${$cacheid+y}
8781then :
8782  printf %s "(cached) " >&6
8783else $as_nop
8784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8785/* end confdefs.h.  */
8786int i;
8787int
8788main (void)
8789{
8790
8791  ;
8792  return 0;
8793}
8794_ACEOF
8795if ac_fn_c_try_link "$LINENO"
8796then :
8797  eval $cacheid=yes
8798else $as_nop
8799  eval $cacheid=no
8800fi
8801rm -f core conftest.err conftest.$ac_objext conftest.beam \
8802    conftest$ac_exeext conftest.$ac_ext
8803fi
8804
8805
8806		CFLAGS="$xorg_testset_save_CFLAGS"
8807
8808		eval supported=\$$cacheid
8809		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8810printf "%s\n" "$supported" >&6; }
8811		if test "$supported" = "yes" ; then
8812			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8813			found="yes"
8814		fi
8815	fi
8816
8817 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8818else
8819{ 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
8820printf "%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;}
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834xorg_testset_save_CFLAGS="$CFLAGS"
8835
8836if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8837	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8838	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8839printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8840if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8841then :
8842  printf %s "(cached) " >&6
8843else $as_nop
8844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8845/* end confdefs.h.  */
8846int i;
8847_ACEOF
8848if ac_fn_c_try_compile "$LINENO"
8849then :
8850  xorg_cv_cc_flag_unknown_warning_option=yes
8851else $as_nop
8852  xorg_cv_cc_flag_unknown_warning_option=no
8853fi
8854rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8855fi
8856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8857printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8858	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8859	CFLAGS="$xorg_testset_save_CFLAGS"
8860fi
8861
8862if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8863	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8864		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8865	fi
8866	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8867	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8868printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8869if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8870then :
8871  printf %s "(cached) " >&6
8872else $as_nop
8873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8874/* end confdefs.h.  */
8875int i;
8876_ACEOF
8877if ac_fn_c_try_compile "$LINENO"
8878then :
8879  xorg_cv_cc_flag_unused_command_line_argument=yes
8880else $as_nop
8881  xorg_cv_cc_flag_unused_command_line_argument=no
8882fi
8883rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8884fi
8885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8886printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8887	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8888	CFLAGS="$xorg_testset_save_CFLAGS"
8889fi
8890
8891found="no"
8892
8893	if test $found = "no" ; then
8894		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8895			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8896		fi
8897
8898		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8899			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8900		fi
8901
8902		CFLAGS="$CFLAGS -Wimplicit"
8903
8904		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8905printf %s "checking if $CC supports -Wimplicit... " >&6; }
8906		cacheid=xorg_cv_cc_flag__Wimplicit
8907		if eval test \${$cacheid+y}
8908then :
8909  printf %s "(cached) " >&6
8910else $as_nop
8911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8912/* end confdefs.h.  */
8913int i;
8914int
8915main (void)
8916{
8917
8918  ;
8919  return 0;
8920}
8921_ACEOF
8922if ac_fn_c_try_link "$LINENO"
8923then :
8924  eval $cacheid=yes
8925else $as_nop
8926  eval $cacheid=no
8927fi
8928rm -f core conftest.err conftest.$ac_objext conftest.beam \
8929    conftest$ac_exeext conftest.$ac_ext
8930fi
8931
8932
8933		CFLAGS="$xorg_testset_save_CFLAGS"
8934
8935		eval supported=\$$cacheid
8936		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8937printf "%s\n" "$supported" >&6; }
8938		if test "$supported" = "yes" ; then
8939			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8940			found="yes"
8941		fi
8942	fi
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958xorg_testset_save_CFLAGS="$CFLAGS"
8959
8960if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8961	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8962	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8963printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8964if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8965then :
8966  printf %s "(cached) " >&6
8967else $as_nop
8968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8969/* end confdefs.h.  */
8970int i;
8971_ACEOF
8972if ac_fn_c_try_compile "$LINENO"
8973then :
8974  xorg_cv_cc_flag_unknown_warning_option=yes
8975else $as_nop
8976  xorg_cv_cc_flag_unknown_warning_option=no
8977fi
8978rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8979fi
8980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8981printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8982	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8983	CFLAGS="$xorg_testset_save_CFLAGS"
8984fi
8985
8986if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8987	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8988		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8989	fi
8990	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8991	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8992printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8993if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8994then :
8995  printf %s "(cached) " >&6
8996else $as_nop
8997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8998/* end confdefs.h.  */
8999int i;
9000_ACEOF
9001if ac_fn_c_try_compile "$LINENO"
9002then :
9003  xorg_cv_cc_flag_unused_command_line_argument=yes
9004else $as_nop
9005  xorg_cv_cc_flag_unused_command_line_argument=no
9006fi
9007rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9008fi
9009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9010printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9011	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9012	CFLAGS="$xorg_testset_save_CFLAGS"
9013fi
9014
9015found="no"
9016
9017	if test $found = "no" ; then
9018		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9019			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9020		fi
9021
9022		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9023			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9024		fi
9025
9026		CFLAGS="$CFLAGS -Wnonnull"
9027
9028		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9029printf %s "checking if $CC supports -Wnonnull... " >&6; }
9030		cacheid=xorg_cv_cc_flag__Wnonnull
9031		if eval test \${$cacheid+y}
9032then :
9033  printf %s "(cached) " >&6
9034else $as_nop
9035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9036/* end confdefs.h.  */
9037int i;
9038int
9039main (void)
9040{
9041
9042  ;
9043  return 0;
9044}
9045_ACEOF
9046if ac_fn_c_try_link "$LINENO"
9047then :
9048  eval $cacheid=yes
9049else $as_nop
9050  eval $cacheid=no
9051fi
9052rm -f core conftest.err conftest.$ac_objext conftest.beam \
9053    conftest$ac_exeext conftest.$ac_ext
9054fi
9055
9056
9057		CFLAGS="$xorg_testset_save_CFLAGS"
9058
9059		eval supported=\$$cacheid
9060		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9061printf "%s\n" "$supported" >&6; }
9062		if test "$supported" = "yes" ; then
9063			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9064			found="yes"
9065		fi
9066	fi
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082xorg_testset_save_CFLAGS="$CFLAGS"
9083
9084if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9085	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9086	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9087printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9088if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9089then :
9090  printf %s "(cached) " >&6
9091else $as_nop
9092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9093/* end confdefs.h.  */
9094int i;
9095_ACEOF
9096if ac_fn_c_try_compile "$LINENO"
9097then :
9098  xorg_cv_cc_flag_unknown_warning_option=yes
9099else $as_nop
9100  xorg_cv_cc_flag_unknown_warning_option=no
9101fi
9102rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9103fi
9104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9105printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9106	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9107	CFLAGS="$xorg_testset_save_CFLAGS"
9108fi
9109
9110if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9111	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9112		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9113	fi
9114	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9115	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9116printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9117if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9118then :
9119  printf %s "(cached) " >&6
9120else $as_nop
9121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9122/* end confdefs.h.  */
9123int i;
9124_ACEOF
9125if ac_fn_c_try_compile "$LINENO"
9126then :
9127  xorg_cv_cc_flag_unused_command_line_argument=yes
9128else $as_nop
9129  xorg_cv_cc_flag_unused_command_line_argument=no
9130fi
9131rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9132fi
9133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9134printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9135	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9136	CFLAGS="$xorg_testset_save_CFLAGS"
9137fi
9138
9139found="no"
9140
9141	if test $found = "no" ; then
9142		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9143			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9144		fi
9145
9146		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9147			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9148		fi
9149
9150		CFLAGS="$CFLAGS -Winit-self"
9151
9152		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9153printf %s "checking if $CC supports -Winit-self... " >&6; }
9154		cacheid=xorg_cv_cc_flag__Winit_self
9155		if eval test \${$cacheid+y}
9156then :
9157  printf %s "(cached) " >&6
9158else $as_nop
9159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9160/* end confdefs.h.  */
9161int i;
9162int
9163main (void)
9164{
9165
9166  ;
9167  return 0;
9168}
9169_ACEOF
9170if ac_fn_c_try_link "$LINENO"
9171then :
9172  eval $cacheid=yes
9173else $as_nop
9174  eval $cacheid=no
9175fi
9176rm -f core conftest.err conftest.$ac_objext conftest.beam \
9177    conftest$ac_exeext conftest.$ac_ext
9178fi
9179
9180
9181		CFLAGS="$xorg_testset_save_CFLAGS"
9182
9183		eval supported=\$$cacheid
9184		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9185printf "%s\n" "$supported" >&6; }
9186		if test "$supported" = "yes" ; then
9187			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9188			found="yes"
9189		fi
9190	fi
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206xorg_testset_save_CFLAGS="$CFLAGS"
9207
9208if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9209	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9210	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9211printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9212if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9213then :
9214  printf %s "(cached) " >&6
9215else $as_nop
9216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9217/* end confdefs.h.  */
9218int i;
9219_ACEOF
9220if ac_fn_c_try_compile "$LINENO"
9221then :
9222  xorg_cv_cc_flag_unknown_warning_option=yes
9223else $as_nop
9224  xorg_cv_cc_flag_unknown_warning_option=no
9225fi
9226rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9227fi
9228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9229printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9230	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9231	CFLAGS="$xorg_testset_save_CFLAGS"
9232fi
9233
9234if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9235	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9236		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9237	fi
9238	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9239	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9240printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9241if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9242then :
9243  printf %s "(cached) " >&6
9244else $as_nop
9245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9246/* end confdefs.h.  */
9247int i;
9248_ACEOF
9249if ac_fn_c_try_compile "$LINENO"
9250then :
9251  xorg_cv_cc_flag_unused_command_line_argument=yes
9252else $as_nop
9253  xorg_cv_cc_flag_unused_command_line_argument=no
9254fi
9255rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9256fi
9257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9258printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9259	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9260	CFLAGS="$xorg_testset_save_CFLAGS"
9261fi
9262
9263found="no"
9264
9265	if test $found = "no" ; then
9266		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9267			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9268		fi
9269
9270		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9271			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9272		fi
9273
9274		CFLAGS="$CFLAGS -Wmain"
9275
9276		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9277printf %s "checking if $CC supports -Wmain... " >&6; }
9278		cacheid=xorg_cv_cc_flag__Wmain
9279		if eval test \${$cacheid+y}
9280then :
9281  printf %s "(cached) " >&6
9282else $as_nop
9283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9284/* end confdefs.h.  */
9285int i;
9286int
9287main (void)
9288{
9289
9290  ;
9291  return 0;
9292}
9293_ACEOF
9294if ac_fn_c_try_link "$LINENO"
9295then :
9296  eval $cacheid=yes
9297else $as_nop
9298  eval $cacheid=no
9299fi
9300rm -f core conftest.err conftest.$ac_objext conftest.beam \
9301    conftest$ac_exeext conftest.$ac_ext
9302fi
9303
9304
9305		CFLAGS="$xorg_testset_save_CFLAGS"
9306
9307		eval supported=\$$cacheid
9308		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9309printf "%s\n" "$supported" >&6; }
9310		if test "$supported" = "yes" ; then
9311			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9312			found="yes"
9313		fi
9314	fi
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330xorg_testset_save_CFLAGS="$CFLAGS"
9331
9332if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9333	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9334	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9335printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9336if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9337then :
9338  printf %s "(cached) " >&6
9339else $as_nop
9340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9341/* end confdefs.h.  */
9342int i;
9343_ACEOF
9344if ac_fn_c_try_compile "$LINENO"
9345then :
9346  xorg_cv_cc_flag_unknown_warning_option=yes
9347else $as_nop
9348  xorg_cv_cc_flag_unknown_warning_option=no
9349fi
9350rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9351fi
9352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9353printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9354	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9355	CFLAGS="$xorg_testset_save_CFLAGS"
9356fi
9357
9358if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9359	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9360		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9361	fi
9362	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9363	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9364printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9365if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9366then :
9367  printf %s "(cached) " >&6
9368else $as_nop
9369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9370/* end confdefs.h.  */
9371int i;
9372_ACEOF
9373if ac_fn_c_try_compile "$LINENO"
9374then :
9375  xorg_cv_cc_flag_unused_command_line_argument=yes
9376else $as_nop
9377  xorg_cv_cc_flag_unused_command_line_argument=no
9378fi
9379rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9380fi
9381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9382printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9383	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9384	CFLAGS="$xorg_testset_save_CFLAGS"
9385fi
9386
9387found="no"
9388
9389	if test $found = "no" ; then
9390		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9391			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9392		fi
9393
9394		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9395			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9396		fi
9397
9398		CFLAGS="$CFLAGS -Wmissing-braces"
9399
9400		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9401printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9402		cacheid=xorg_cv_cc_flag__Wmissing_braces
9403		if eval test \${$cacheid+y}
9404then :
9405  printf %s "(cached) " >&6
9406else $as_nop
9407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9408/* end confdefs.h.  */
9409int i;
9410int
9411main (void)
9412{
9413
9414  ;
9415  return 0;
9416}
9417_ACEOF
9418if ac_fn_c_try_link "$LINENO"
9419then :
9420  eval $cacheid=yes
9421else $as_nop
9422  eval $cacheid=no
9423fi
9424rm -f core conftest.err conftest.$ac_objext conftest.beam \
9425    conftest$ac_exeext conftest.$ac_ext
9426fi
9427
9428
9429		CFLAGS="$xorg_testset_save_CFLAGS"
9430
9431		eval supported=\$$cacheid
9432		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9433printf "%s\n" "$supported" >&6; }
9434		if test "$supported" = "yes" ; then
9435			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9436			found="yes"
9437		fi
9438	fi
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454xorg_testset_save_CFLAGS="$CFLAGS"
9455
9456if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9457	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9458	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9459printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9460if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9461then :
9462  printf %s "(cached) " >&6
9463else $as_nop
9464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9465/* end confdefs.h.  */
9466int i;
9467_ACEOF
9468if ac_fn_c_try_compile "$LINENO"
9469then :
9470  xorg_cv_cc_flag_unknown_warning_option=yes
9471else $as_nop
9472  xorg_cv_cc_flag_unknown_warning_option=no
9473fi
9474rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9475fi
9476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9477printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9478	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9479	CFLAGS="$xorg_testset_save_CFLAGS"
9480fi
9481
9482if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9483	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9484		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9485	fi
9486	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9487	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9488printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9489if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9490then :
9491  printf %s "(cached) " >&6
9492else $as_nop
9493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9494/* end confdefs.h.  */
9495int i;
9496_ACEOF
9497if ac_fn_c_try_compile "$LINENO"
9498then :
9499  xorg_cv_cc_flag_unused_command_line_argument=yes
9500else $as_nop
9501  xorg_cv_cc_flag_unused_command_line_argument=no
9502fi
9503rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9504fi
9505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9506printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9507	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9508	CFLAGS="$xorg_testset_save_CFLAGS"
9509fi
9510
9511found="no"
9512
9513	if test $found = "no" ; then
9514		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9515			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9516		fi
9517
9518		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9519			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9520		fi
9521
9522		CFLAGS="$CFLAGS -Wsequence-point"
9523
9524		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9525printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9526		cacheid=xorg_cv_cc_flag__Wsequence_point
9527		if eval test \${$cacheid+y}
9528then :
9529  printf %s "(cached) " >&6
9530else $as_nop
9531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9532/* end confdefs.h.  */
9533int i;
9534int
9535main (void)
9536{
9537
9538  ;
9539  return 0;
9540}
9541_ACEOF
9542if ac_fn_c_try_link "$LINENO"
9543then :
9544  eval $cacheid=yes
9545else $as_nop
9546  eval $cacheid=no
9547fi
9548rm -f core conftest.err conftest.$ac_objext conftest.beam \
9549    conftest$ac_exeext conftest.$ac_ext
9550fi
9551
9552
9553		CFLAGS="$xorg_testset_save_CFLAGS"
9554
9555		eval supported=\$$cacheid
9556		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9557printf "%s\n" "$supported" >&6; }
9558		if test "$supported" = "yes" ; then
9559			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9560			found="yes"
9561		fi
9562	fi
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578xorg_testset_save_CFLAGS="$CFLAGS"
9579
9580if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9581	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9582	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9583printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9584if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9585then :
9586  printf %s "(cached) " >&6
9587else $as_nop
9588  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_unknown_warning_option=yes
9595else $as_nop
9596  xorg_cv_cc_flag_unknown_warning_option=no
9597fi
9598rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9599fi
9600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9601printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9602	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9603	CFLAGS="$xorg_testset_save_CFLAGS"
9604fi
9605
9606if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9607	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9608		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9609	fi
9610	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9611	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9612printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9613if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9614then :
9615  printf %s "(cached) " >&6
9616else $as_nop
9617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9618/* end confdefs.h.  */
9619int i;
9620_ACEOF
9621if ac_fn_c_try_compile "$LINENO"
9622then :
9623  xorg_cv_cc_flag_unused_command_line_argument=yes
9624else $as_nop
9625  xorg_cv_cc_flag_unused_command_line_argument=no
9626fi
9627rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9628fi
9629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9630printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9631	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9632	CFLAGS="$xorg_testset_save_CFLAGS"
9633fi
9634
9635found="no"
9636
9637	if test $found = "no" ; then
9638		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9639			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9640		fi
9641
9642		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9643			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9644		fi
9645
9646		CFLAGS="$CFLAGS -Wreturn-type"
9647
9648		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9649printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9650		cacheid=xorg_cv_cc_flag__Wreturn_type
9651		if eval test \${$cacheid+y}
9652then :
9653  printf %s "(cached) " >&6
9654else $as_nop
9655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9656/* end confdefs.h.  */
9657int i;
9658int
9659main (void)
9660{
9661
9662  ;
9663  return 0;
9664}
9665_ACEOF
9666if ac_fn_c_try_link "$LINENO"
9667then :
9668  eval $cacheid=yes
9669else $as_nop
9670  eval $cacheid=no
9671fi
9672rm -f core conftest.err conftest.$ac_objext conftest.beam \
9673    conftest$ac_exeext conftest.$ac_ext
9674fi
9675
9676
9677		CFLAGS="$xorg_testset_save_CFLAGS"
9678
9679		eval supported=\$$cacheid
9680		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9681printf "%s\n" "$supported" >&6; }
9682		if test "$supported" = "yes" ; then
9683			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9684			found="yes"
9685		fi
9686	fi
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702xorg_testset_save_CFLAGS="$CFLAGS"
9703
9704if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9705	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9706	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9707printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9708if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9709then :
9710  printf %s "(cached) " >&6
9711else $as_nop
9712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9713/* end confdefs.h.  */
9714int i;
9715_ACEOF
9716if ac_fn_c_try_compile "$LINENO"
9717then :
9718  xorg_cv_cc_flag_unknown_warning_option=yes
9719else $as_nop
9720  xorg_cv_cc_flag_unknown_warning_option=no
9721fi
9722rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9723fi
9724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9725printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9726	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9727	CFLAGS="$xorg_testset_save_CFLAGS"
9728fi
9729
9730if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9731	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9732		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9733	fi
9734	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9735	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9736printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9737if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9738then :
9739  printf %s "(cached) " >&6
9740else $as_nop
9741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9742/* end confdefs.h.  */
9743int i;
9744_ACEOF
9745if ac_fn_c_try_compile "$LINENO"
9746then :
9747  xorg_cv_cc_flag_unused_command_line_argument=yes
9748else $as_nop
9749  xorg_cv_cc_flag_unused_command_line_argument=no
9750fi
9751rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9752fi
9753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9754printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9755	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9756	CFLAGS="$xorg_testset_save_CFLAGS"
9757fi
9758
9759found="no"
9760
9761	if test $found = "no" ; then
9762		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9763			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9764		fi
9765
9766		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9767			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9768		fi
9769
9770		CFLAGS="$CFLAGS -Wtrigraphs"
9771
9772		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9773printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9774		cacheid=xorg_cv_cc_flag__Wtrigraphs
9775		if eval test \${$cacheid+y}
9776then :
9777  printf %s "(cached) " >&6
9778else $as_nop
9779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9780/* end confdefs.h.  */
9781int i;
9782int
9783main (void)
9784{
9785
9786  ;
9787  return 0;
9788}
9789_ACEOF
9790if ac_fn_c_try_link "$LINENO"
9791then :
9792  eval $cacheid=yes
9793else $as_nop
9794  eval $cacheid=no
9795fi
9796rm -f core conftest.err conftest.$ac_objext conftest.beam \
9797    conftest$ac_exeext conftest.$ac_ext
9798fi
9799
9800
9801		CFLAGS="$xorg_testset_save_CFLAGS"
9802
9803		eval supported=\$$cacheid
9804		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9805printf "%s\n" "$supported" >&6; }
9806		if test "$supported" = "yes" ; then
9807			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9808			found="yes"
9809		fi
9810	fi
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826xorg_testset_save_CFLAGS="$CFLAGS"
9827
9828if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9829	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9830	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9831printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9832if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9833then :
9834  printf %s "(cached) " >&6
9835else $as_nop
9836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9837/* end confdefs.h.  */
9838int i;
9839_ACEOF
9840if ac_fn_c_try_compile "$LINENO"
9841then :
9842  xorg_cv_cc_flag_unknown_warning_option=yes
9843else $as_nop
9844  xorg_cv_cc_flag_unknown_warning_option=no
9845fi
9846rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9847fi
9848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9849printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9850	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9851	CFLAGS="$xorg_testset_save_CFLAGS"
9852fi
9853
9854if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9855	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9856		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9857	fi
9858	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9859	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9860printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9861if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9862then :
9863  printf %s "(cached) " >&6
9864else $as_nop
9865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9866/* end confdefs.h.  */
9867int i;
9868_ACEOF
9869if ac_fn_c_try_compile "$LINENO"
9870then :
9871  xorg_cv_cc_flag_unused_command_line_argument=yes
9872else $as_nop
9873  xorg_cv_cc_flag_unused_command_line_argument=no
9874fi
9875rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9876fi
9877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9878printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9879	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9880	CFLAGS="$xorg_testset_save_CFLAGS"
9881fi
9882
9883found="no"
9884
9885	if test $found = "no" ; then
9886		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9887			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9888		fi
9889
9890		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9891			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9892		fi
9893
9894		CFLAGS="$CFLAGS -Warray-bounds"
9895
9896		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9897printf %s "checking if $CC supports -Warray-bounds... " >&6; }
9898		cacheid=xorg_cv_cc_flag__Warray_bounds
9899		if eval test \${$cacheid+y}
9900then :
9901  printf %s "(cached) " >&6
9902else $as_nop
9903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9904/* end confdefs.h.  */
9905int i;
9906int
9907main (void)
9908{
9909
9910  ;
9911  return 0;
9912}
9913_ACEOF
9914if ac_fn_c_try_link "$LINENO"
9915then :
9916  eval $cacheid=yes
9917else $as_nop
9918  eval $cacheid=no
9919fi
9920rm -f core conftest.err conftest.$ac_objext conftest.beam \
9921    conftest$ac_exeext conftest.$ac_ext
9922fi
9923
9924
9925		CFLAGS="$xorg_testset_save_CFLAGS"
9926
9927		eval supported=\$$cacheid
9928		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9929printf "%s\n" "$supported" >&6; }
9930		if test "$supported" = "yes" ; then
9931			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9932			found="yes"
9933		fi
9934	fi
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950xorg_testset_save_CFLAGS="$CFLAGS"
9951
9952if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9953	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9954	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9955printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9956if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9957then :
9958  printf %s "(cached) " >&6
9959else $as_nop
9960  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9961/* end confdefs.h.  */
9962int i;
9963_ACEOF
9964if ac_fn_c_try_compile "$LINENO"
9965then :
9966  xorg_cv_cc_flag_unknown_warning_option=yes
9967else $as_nop
9968  xorg_cv_cc_flag_unknown_warning_option=no
9969fi
9970rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9971fi
9972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9973printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9974	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9975	CFLAGS="$xorg_testset_save_CFLAGS"
9976fi
9977
9978if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9979	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9980		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9981	fi
9982	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9983	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9984printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9985if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9986then :
9987  printf %s "(cached) " >&6
9988else $as_nop
9989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9990/* end confdefs.h.  */
9991int i;
9992_ACEOF
9993if ac_fn_c_try_compile "$LINENO"
9994then :
9995  xorg_cv_cc_flag_unused_command_line_argument=yes
9996else $as_nop
9997  xorg_cv_cc_flag_unused_command_line_argument=no
9998fi
9999rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10000fi
10001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10002printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10003	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10004	CFLAGS="$xorg_testset_save_CFLAGS"
10005fi
10006
10007found="no"
10008
10009	if test $found = "no" ; then
10010		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10011			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10012		fi
10013
10014		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10015			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10016		fi
10017
10018		CFLAGS="$CFLAGS -Wwrite-strings"
10019
10020		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10021printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10022		cacheid=xorg_cv_cc_flag__Wwrite_strings
10023		if eval test \${$cacheid+y}
10024then :
10025  printf %s "(cached) " >&6
10026else $as_nop
10027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10028/* end confdefs.h.  */
10029int i;
10030int
10031main (void)
10032{
10033
10034  ;
10035  return 0;
10036}
10037_ACEOF
10038if ac_fn_c_try_link "$LINENO"
10039then :
10040  eval $cacheid=yes
10041else $as_nop
10042  eval $cacheid=no
10043fi
10044rm -f core conftest.err conftest.$ac_objext conftest.beam \
10045    conftest$ac_exeext conftest.$ac_ext
10046fi
10047
10048
10049		CFLAGS="$xorg_testset_save_CFLAGS"
10050
10051		eval supported=\$$cacheid
10052		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10053printf "%s\n" "$supported" >&6; }
10054		if test "$supported" = "yes" ; then
10055			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10056			found="yes"
10057		fi
10058	fi
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074xorg_testset_save_CFLAGS="$CFLAGS"
10075
10076if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10077	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10078	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10079printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10080if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10081then :
10082  printf %s "(cached) " >&6
10083else $as_nop
10084  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10085/* end confdefs.h.  */
10086int i;
10087_ACEOF
10088if ac_fn_c_try_compile "$LINENO"
10089then :
10090  xorg_cv_cc_flag_unknown_warning_option=yes
10091else $as_nop
10092  xorg_cv_cc_flag_unknown_warning_option=no
10093fi
10094rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10095fi
10096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10097printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10098	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10099	CFLAGS="$xorg_testset_save_CFLAGS"
10100fi
10101
10102if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10103	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10104		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10105	fi
10106	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10107	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10108printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10109if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10110then :
10111  printf %s "(cached) " >&6
10112else $as_nop
10113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10114/* end confdefs.h.  */
10115int i;
10116_ACEOF
10117if ac_fn_c_try_compile "$LINENO"
10118then :
10119  xorg_cv_cc_flag_unused_command_line_argument=yes
10120else $as_nop
10121  xorg_cv_cc_flag_unused_command_line_argument=no
10122fi
10123rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10124fi
10125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10126printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10127	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10128	CFLAGS="$xorg_testset_save_CFLAGS"
10129fi
10130
10131found="no"
10132
10133	if test $found = "no" ; then
10134		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10135			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10136		fi
10137
10138		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10139			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10140		fi
10141
10142		CFLAGS="$CFLAGS -Waddress"
10143
10144		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10145printf %s "checking if $CC supports -Waddress... " >&6; }
10146		cacheid=xorg_cv_cc_flag__Waddress
10147		if eval test \${$cacheid+y}
10148then :
10149  printf %s "(cached) " >&6
10150else $as_nop
10151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10152/* end confdefs.h.  */
10153int i;
10154int
10155main (void)
10156{
10157
10158  ;
10159  return 0;
10160}
10161_ACEOF
10162if ac_fn_c_try_link "$LINENO"
10163then :
10164  eval $cacheid=yes
10165else $as_nop
10166  eval $cacheid=no
10167fi
10168rm -f core conftest.err conftest.$ac_objext conftest.beam \
10169    conftest$ac_exeext conftest.$ac_ext
10170fi
10171
10172
10173		CFLAGS="$xorg_testset_save_CFLAGS"
10174
10175		eval supported=\$$cacheid
10176		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10177printf "%s\n" "$supported" >&6; }
10178		if test "$supported" = "yes" ; then
10179			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10180			found="yes"
10181		fi
10182	fi
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198xorg_testset_save_CFLAGS="$CFLAGS"
10199
10200if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10201	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10202	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10203printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10204if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10205then :
10206  printf %s "(cached) " >&6
10207else $as_nop
10208  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10209/* end confdefs.h.  */
10210int i;
10211_ACEOF
10212if ac_fn_c_try_compile "$LINENO"
10213then :
10214  xorg_cv_cc_flag_unknown_warning_option=yes
10215else $as_nop
10216  xorg_cv_cc_flag_unknown_warning_option=no
10217fi
10218rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10219fi
10220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10221printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10222	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10223	CFLAGS="$xorg_testset_save_CFLAGS"
10224fi
10225
10226if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10227	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10228		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10229	fi
10230	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10231	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10232printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10233if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10234then :
10235  printf %s "(cached) " >&6
10236else $as_nop
10237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10238/* end confdefs.h.  */
10239int i;
10240_ACEOF
10241if ac_fn_c_try_compile "$LINENO"
10242then :
10243  xorg_cv_cc_flag_unused_command_line_argument=yes
10244else $as_nop
10245  xorg_cv_cc_flag_unused_command_line_argument=no
10246fi
10247rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10248fi
10249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10250printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10251	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10252	CFLAGS="$xorg_testset_save_CFLAGS"
10253fi
10254
10255found="no"
10256
10257	if test $found = "no" ; then
10258		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10259			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10260		fi
10261
10262		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10263			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10264		fi
10265
10266		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10267
10268		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10269printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10270		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10271		if eval test \${$cacheid+y}
10272then :
10273  printf %s "(cached) " >&6
10274else $as_nop
10275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10276/* end confdefs.h.  */
10277int i;
10278int
10279main (void)
10280{
10281
10282  ;
10283  return 0;
10284}
10285_ACEOF
10286if ac_fn_c_try_link "$LINENO"
10287then :
10288  eval $cacheid=yes
10289else $as_nop
10290  eval $cacheid=no
10291fi
10292rm -f core conftest.err conftest.$ac_objext conftest.beam \
10293    conftest$ac_exeext conftest.$ac_ext
10294fi
10295
10296
10297		CFLAGS="$xorg_testset_save_CFLAGS"
10298
10299		eval supported=\$$cacheid
10300		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10301printf "%s\n" "$supported" >&6; }
10302		if test "$supported" = "yes" ; then
10303			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10304			found="yes"
10305		fi
10306	fi
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322xorg_testset_save_CFLAGS="$CFLAGS"
10323
10324if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10325	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10326	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10327printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10328if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10329then :
10330  printf %s "(cached) " >&6
10331else $as_nop
10332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10333/* end confdefs.h.  */
10334int i;
10335_ACEOF
10336if ac_fn_c_try_compile "$LINENO"
10337then :
10338  xorg_cv_cc_flag_unknown_warning_option=yes
10339else $as_nop
10340  xorg_cv_cc_flag_unknown_warning_option=no
10341fi
10342rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10343fi
10344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10345printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10346	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10347	CFLAGS="$xorg_testset_save_CFLAGS"
10348fi
10349
10350if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10351	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10352		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10353	fi
10354	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10355	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10356printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10357if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10358then :
10359  printf %s "(cached) " >&6
10360else $as_nop
10361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10362/* end confdefs.h.  */
10363int i;
10364_ACEOF
10365if ac_fn_c_try_compile "$LINENO"
10366then :
10367  xorg_cv_cc_flag_unused_command_line_argument=yes
10368else $as_nop
10369  xorg_cv_cc_flag_unused_command_line_argument=no
10370fi
10371rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10372fi
10373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10374printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10375	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10376	CFLAGS="$xorg_testset_save_CFLAGS"
10377fi
10378
10379found="no"
10380
10381	if test $found = "no" ; then
10382		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10383			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10384		fi
10385
10386		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10387			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10388		fi
10389
10390		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10391
10392		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10393printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10394		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10395		if eval test \${$cacheid+y}
10396then :
10397  printf %s "(cached) " >&6
10398else $as_nop
10399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10400/* end confdefs.h.  */
10401int i;
10402int
10403main (void)
10404{
10405
10406  ;
10407  return 0;
10408}
10409_ACEOF
10410if ac_fn_c_try_link "$LINENO"
10411then :
10412  eval $cacheid=yes
10413else $as_nop
10414  eval $cacheid=no
10415fi
10416rm -f core conftest.err conftest.$ac_objext conftest.beam \
10417    conftest$ac_exeext conftest.$ac_ext
10418fi
10419
10420
10421		CFLAGS="$xorg_testset_save_CFLAGS"
10422
10423		eval supported=\$$cacheid
10424		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10425printf "%s\n" "$supported" >&6; }
10426		if test "$supported" = "yes" ; then
10427			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10428			found="yes"
10429		fi
10430	fi
10431
10432
10433fi
10434
10435
10436
10437
10438
10439
10440
10441		CWARNFLAGS="$BASE_CFLAGS"
10442		if  test "x$GCC" = xyes ; then
10443		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10444		fi
10445
10446
10447
10448
10449
10450
10451
10452
10453# Check whether --enable-strict-compilation was given.
10454if test ${enable_strict_compilation+y}
10455then :
10456  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10457else $as_nop
10458  STRICT_COMPILE=no
10459fi
10460
10461
10462
10463
10464
10465
10466STRICT_CFLAGS=""
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480xorg_testset_save_CFLAGS="$CFLAGS"
10481
10482if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10483	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10484	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10485printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10486if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10487then :
10488  printf %s "(cached) " >&6
10489else $as_nop
10490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10491/* end confdefs.h.  */
10492int i;
10493_ACEOF
10494if ac_fn_c_try_compile "$LINENO"
10495then :
10496  xorg_cv_cc_flag_unknown_warning_option=yes
10497else $as_nop
10498  xorg_cv_cc_flag_unknown_warning_option=no
10499fi
10500rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10501fi
10502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10503printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10504	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10505	CFLAGS="$xorg_testset_save_CFLAGS"
10506fi
10507
10508if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10509	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10510		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10511	fi
10512	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10513	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10514printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10515if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10516then :
10517  printf %s "(cached) " >&6
10518else $as_nop
10519  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10520/* end confdefs.h.  */
10521int i;
10522_ACEOF
10523if ac_fn_c_try_compile "$LINENO"
10524then :
10525  xorg_cv_cc_flag_unused_command_line_argument=yes
10526else $as_nop
10527  xorg_cv_cc_flag_unused_command_line_argument=no
10528fi
10529rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10530fi
10531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10532printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10533	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10534	CFLAGS="$xorg_testset_save_CFLAGS"
10535fi
10536
10537found="no"
10538
10539	if test $found = "no" ; then
10540		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10541			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10542		fi
10543
10544		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10545			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10546		fi
10547
10548		CFLAGS="$CFLAGS -pedantic"
10549
10550		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10551printf %s "checking if $CC supports -pedantic... " >&6; }
10552		cacheid=xorg_cv_cc_flag__pedantic
10553		if eval test \${$cacheid+y}
10554then :
10555  printf %s "(cached) " >&6
10556else $as_nop
10557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10558/* end confdefs.h.  */
10559int i;
10560int
10561main (void)
10562{
10563
10564  ;
10565  return 0;
10566}
10567_ACEOF
10568if ac_fn_c_try_link "$LINENO"
10569then :
10570  eval $cacheid=yes
10571else $as_nop
10572  eval $cacheid=no
10573fi
10574rm -f core conftest.err conftest.$ac_objext conftest.beam \
10575    conftest$ac_exeext conftest.$ac_ext
10576fi
10577
10578
10579		CFLAGS="$xorg_testset_save_CFLAGS"
10580
10581		eval supported=\$$cacheid
10582		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10583printf "%s\n" "$supported" >&6; }
10584		if test "$supported" = "yes" ; then
10585			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10586			found="yes"
10587		fi
10588	fi
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604xorg_testset_save_CFLAGS="$CFLAGS"
10605
10606if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10607	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10608	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10609printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10610if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10611then :
10612  printf %s "(cached) " >&6
10613else $as_nop
10614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10615/* end confdefs.h.  */
10616int i;
10617_ACEOF
10618if ac_fn_c_try_compile "$LINENO"
10619then :
10620  xorg_cv_cc_flag_unknown_warning_option=yes
10621else $as_nop
10622  xorg_cv_cc_flag_unknown_warning_option=no
10623fi
10624rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10625fi
10626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10627printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10628	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10629	CFLAGS="$xorg_testset_save_CFLAGS"
10630fi
10631
10632if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10633	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10634		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10635	fi
10636	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10637	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10638printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10639if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10640then :
10641  printf %s "(cached) " >&6
10642else $as_nop
10643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10644/* end confdefs.h.  */
10645int i;
10646_ACEOF
10647if ac_fn_c_try_compile "$LINENO"
10648then :
10649  xorg_cv_cc_flag_unused_command_line_argument=yes
10650else $as_nop
10651  xorg_cv_cc_flag_unused_command_line_argument=no
10652fi
10653rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10654fi
10655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10656printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10657	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10658	CFLAGS="$xorg_testset_save_CFLAGS"
10659fi
10660
10661found="no"
10662
10663	if test $found = "no" ; then
10664		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10665			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10666		fi
10667
10668		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10669			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10670		fi
10671
10672		CFLAGS="$CFLAGS -Werror"
10673
10674		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10675printf %s "checking if $CC supports -Werror... " >&6; }
10676		cacheid=xorg_cv_cc_flag__Werror
10677		if eval test \${$cacheid+y}
10678then :
10679  printf %s "(cached) " >&6
10680else $as_nop
10681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10682/* end confdefs.h.  */
10683int i;
10684int
10685main (void)
10686{
10687
10688  ;
10689  return 0;
10690}
10691_ACEOF
10692if ac_fn_c_try_link "$LINENO"
10693then :
10694  eval $cacheid=yes
10695else $as_nop
10696  eval $cacheid=no
10697fi
10698rm -f core conftest.err conftest.$ac_objext conftest.beam \
10699    conftest$ac_exeext conftest.$ac_ext
10700fi
10701
10702
10703		CFLAGS="$xorg_testset_save_CFLAGS"
10704
10705		eval supported=\$$cacheid
10706		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10707printf "%s\n" "$supported" >&6; }
10708		if test "$supported" = "yes" ; then
10709			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10710			found="yes"
10711		fi
10712	fi
10713
10714	if test $found = "no" ; then
10715		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10716			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10717		fi
10718
10719		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10720			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10721		fi
10722
10723		CFLAGS="$CFLAGS -errwarn"
10724
10725		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10726printf %s "checking if $CC supports -errwarn... " >&6; }
10727		cacheid=xorg_cv_cc_flag__errwarn
10728		if eval test \${$cacheid+y}
10729then :
10730  printf %s "(cached) " >&6
10731else $as_nop
10732  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10733/* end confdefs.h.  */
10734int i;
10735int
10736main (void)
10737{
10738
10739  ;
10740  return 0;
10741}
10742_ACEOF
10743if ac_fn_c_try_link "$LINENO"
10744then :
10745  eval $cacheid=yes
10746else $as_nop
10747  eval $cacheid=no
10748fi
10749rm -f core conftest.err conftest.$ac_objext conftest.beam \
10750    conftest$ac_exeext conftest.$ac_ext
10751fi
10752
10753
10754		CFLAGS="$xorg_testset_save_CFLAGS"
10755
10756		eval supported=\$$cacheid
10757		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10758printf "%s\n" "$supported" >&6; }
10759		if test "$supported" = "yes" ; then
10760			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10761			found="yes"
10762		fi
10763	fi
10764
10765
10766
10767# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10768# activate it with -Werror, so we add it here explicitly.
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782xorg_testset_save_CFLAGS="$CFLAGS"
10783
10784if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10785	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10786	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10787printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10788if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10789then :
10790  printf %s "(cached) " >&6
10791else $as_nop
10792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10793/* end confdefs.h.  */
10794int i;
10795_ACEOF
10796if ac_fn_c_try_compile "$LINENO"
10797then :
10798  xorg_cv_cc_flag_unknown_warning_option=yes
10799else $as_nop
10800  xorg_cv_cc_flag_unknown_warning_option=no
10801fi
10802rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10803fi
10804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10805printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10806	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10807	CFLAGS="$xorg_testset_save_CFLAGS"
10808fi
10809
10810if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10811	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10812		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10813	fi
10814	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10815	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10816printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10817if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10818then :
10819  printf %s "(cached) " >&6
10820else $as_nop
10821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10822/* end confdefs.h.  */
10823int i;
10824_ACEOF
10825if ac_fn_c_try_compile "$LINENO"
10826then :
10827  xorg_cv_cc_flag_unused_command_line_argument=yes
10828else $as_nop
10829  xorg_cv_cc_flag_unused_command_line_argument=no
10830fi
10831rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10832fi
10833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10834printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10835	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10836	CFLAGS="$xorg_testset_save_CFLAGS"
10837fi
10838
10839found="no"
10840
10841	if test $found = "no" ; then
10842		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10843			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10844		fi
10845
10846		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10847			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10848		fi
10849
10850		CFLAGS="$CFLAGS -Werror=attributes"
10851
10852		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10853printf %s "checking if $CC supports -Werror=attributes... " >&6; }
10854		cacheid=xorg_cv_cc_flag__Werror_attributes
10855		if eval test \${$cacheid+y}
10856then :
10857  printf %s "(cached) " >&6
10858else $as_nop
10859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10860/* end confdefs.h.  */
10861int i;
10862int
10863main (void)
10864{
10865
10866  ;
10867  return 0;
10868}
10869_ACEOF
10870if ac_fn_c_try_link "$LINENO"
10871then :
10872  eval $cacheid=yes
10873else $as_nop
10874  eval $cacheid=no
10875fi
10876rm -f core conftest.err conftest.$ac_objext conftest.beam \
10877    conftest$ac_exeext conftest.$ac_ext
10878fi
10879
10880
10881		CFLAGS="$xorg_testset_save_CFLAGS"
10882
10883		eval supported=\$$cacheid
10884		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10885printf "%s\n" "$supported" >&6; }
10886		if test "$supported" = "yes" ; then
10887			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10888			found="yes"
10889		fi
10890	fi
10891
10892
10893
10894if test "x$STRICT_COMPILE" = "xyes"; then
10895    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10896    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10897fi
10898
10899
10900
10901
10902
10903
10904cat >>confdefs.h <<_ACEOF
10905#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10906_ACEOF
10907
10908	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10909	if test "x$PVM" = "x"; then
10910		PVM="0"
10911	fi
10912
10913printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
10914
10915	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10916	if test "x$PVP" = "x"; then
10917		PVP="0"
10918	fi
10919
10920printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
10921
10922
10923
10924CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10925mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10926|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10927touch \$(top_srcdir)/ChangeLog; \
10928echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10929
10930
10931
10932
10933macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10934INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10935mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10936|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
10937touch \$(top_srcdir)/INSTALL; \
10938echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
10939
10940
10941
10942
10943
10944
10945case $host_os in
10946    solaris*)
10947        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
10948        # check for a man page file found in later versions that use
10949        # traditional section numbers instead
10950        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
10951printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
10952if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
10953then :
10954  printf %s "(cached) " >&6
10955else $as_nop
10956  test "$cross_compiling" = yes &&
10957  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10958if test -r "/usr/share/man/man7/attributes.7"; then
10959  ac_cv_file__usr_share_man_man7_attributes_7=yes
10960else
10961  ac_cv_file__usr_share_man_man7_attributes_7=no
10962fi
10963fi
10964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
10965printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
10966if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
10967then :
10968  SYSV_MAN_SECTIONS=false
10969else $as_nop
10970  SYSV_MAN_SECTIONS=true
10971fi
10972
10973        ;;
10974    *) SYSV_MAN_SECTIONS=false ;;
10975esac
10976
10977if test x$APP_MAN_SUFFIX = x    ; then
10978    APP_MAN_SUFFIX=1
10979fi
10980if test x$APP_MAN_DIR = x    ; then
10981    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10982fi
10983
10984if test x$LIB_MAN_SUFFIX = x    ; then
10985    LIB_MAN_SUFFIX=3
10986fi
10987if test x$LIB_MAN_DIR = x    ; then
10988    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10989fi
10990
10991if test x$FILE_MAN_SUFFIX = x    ; then
10992    case $SYSV_MAN_SECTIONS in
10993	true)				FILE_MAN_SUFFIX=4  ;;
10994	*)				FILE_MAN_SUFFIX=5  ;;
10995    esac
10996fi
10997if test x$FILE_MAN_DIR = x    ; then
10998    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10999fi
11000
11001if test x$MISC_MAN_SUFFIX = x    ; then
11002    case $SYSV_MAN_SECTIONS in
11003	true)				MISC_MAN_SUFFIX=5  ;;
11004	*)				MISC_MAN_SUFFIX=7  ;;
11005    esac
11006fi
11007if test x$MISC_MAN_DIR = x    ; then
11008    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11009fi
11010
11011if test x$DRIVER_MAN_SUFFIX = x    ; then
11012    case $SYSV_MAN_SECTIONS in
11013	true)				DRIVER_MAN_SUFFIX=7  ;;
11014	*)				DRIVER_MAN_SUFFIX=4  ;;
11015    esac
11016fi
11017if test x$DRIVER_MAN_DIR = x    ; then
11018    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11019fi
11020
11021if test x$ADMIN_MAN_SUFFIX = x    ; then
11022    case $SYSV_MAN_SECTIONS in
11023	true)				ADMIN_MAN_SUFFIX=1m ;;
11024	*)				ADMIN_MAN_SUFFIX=8  ;;
11025    esac
11026fi
11027if test x$ADMIN_MAN_DIR = x    ; then
11028    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11029fi
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045XORG_MAN_PAGE="X Version 11"
11046
11047MAN_SUBSTS="\
11048	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11049	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11050	-e 's|__xservername__|Xorg|g' \
11051	-e 's|__xconfigfile__|xorg.conf|g' \
11052	-e 's|__projectroot__|\$(prefix)|g' \
11053	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11054	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11055	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11056	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11057	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11058	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11059	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11060
11061
11062
11063# Check whether --enable-silent-rules was given.
11064if test ${enable_silent_rules+y}
11065then :
11066  enableval=$enable_silent_rules;
11067fi
11068
11069case $enable_silent_rules in # (((
11070  yes) AM_DEFAULT_VERBOSITY=0;;
11071   no) AM_DEFAULT_VERBOSITY=1;;
11072    *) AM_DEFAULT_VERBOSITY=0;;
11073esac
11074am_make=${MAKE-make}
11075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11076printf %s "checking whether $am_make supports nested variables... " >&6; }
11077if test ${am_cv_make_support_nested_variables+y}
11078then :
11079  printf %s "(cached) " >&6
11080else $as_nop
11081  if printf "%s\n" 'TRUE=$(BAR$(V))
11082BAR0=false
11083BAR1=true
11084V=1
11085am__doit:
11086	@$(TRUE)
11087.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11088  am_cv_make_support_nested_variables=yes
11089else
11090  am_cv_make_support_nested_variables=no
11091fi
11092fi
11093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11094printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11095if test $am_cv_make_support_nested_variables = yes; then
11096    AM_V='$(V)'
11097  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11098else
11099  AM_V=$AM_DEFAULT_VERBOSITY
11100  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11101fi
11102AM_BACKSLASH='\'
11103
11104
11105
11106ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
11107if test "x$ac_cv_header_wchar_h" = xyes
11108then :
11109  printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
11110
11111fi
11112ac_fn_c_check_header_compile "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
11113if test "x$ac_cv_header_wctype_h" = xyes
11114then :
11115  printf "%s\n" "#define HAVE_WCTYPE_H 1" >>confdefs.h
11116
11117fi
11118ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
11119if test "x$ac_cv_header_langinfo_h" = xyes
11120then :
11121  printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h
11122
11123fi
11124
11125
11126# Checks for pkg-config packages
11127
11128pkg_failed=no
11129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XPROP" >&5
11130printf %s "checking for XPROP... " >&6; }
11131
11132if test -n "$XPROP_CFLAGS"; then
11133    pkg_cv_XPROP_CFLAGS="$XPROP_CFLAGS"
11134 elif test -n "$PKG_CONFIG"; then
11135    if test -n "$PKG_CONFIG" && \
11136    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25\""; } >&5
11137  ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25") 2>&5
11138  ac_status=$?
11139  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11140  test $ac_status = 0; }; then
11141  pkg_cv_XPROP_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.25" 2>/dev/null`
11142		      test "x$?" != "x0" && pkg_failed=yes
11143else
11144  pkg_failed=yes
11145fi
11146 else
11147    pkg_failed=untried
11148fi
11149if test -n "$XPROP_LIBS"; then
11150    pkg_cv_XPROP_LIBS="$XPROP_LIBS"
11151 elif test -n "$PKG_CONFIG"; then
11152    if test -n "$PKG_CONFIG" && \
11153    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25\""; } >&5
11154  ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25") 2>&5
11155  ac_status=$?
11156  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11157  test $ac_status = 0; }; then
11158  pkg_cv_XPROP_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.25" 2>/dev/null`
11159		      test "x$?" != "x0" && pkg_failed=yes
11160else
11161  pkg_failed=yes
11162fi
11163 else
11164    pkg_failed=untried
11165fi
11166
11167
11168
11169if test $pkg_failed = yes; then
11170   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11171printf "%s\n" "no" >&6; }
11172
11173if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11174        _pkg_short_errors_supported=yes
11175else
11176        _pkg_short_errors_supported=no
11177fi
11178        if test $_pkg_short_errors_supported = yes; then
11179	        XPROP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xproto >= 7.0.25" 2>&1`
11180        else
11181	        XPROP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xproto >= 7.0.25" 2>&1`
11182        fi
11183	# Put the nasty error message in config.log where it belongs
11184	echo "$XPROP_PKG_ERRORS" >&5
11185
11186	as_fn_error $? "Package requirements (x11 xproto >= 7.0.25) were not met:
11187
11188$XPROP_PKG_ERRORS
11189
11190Consider adjusting the PKG_CONFIG_PATH environment variable if you
11191installed software in a non-standard prefix.
11192
11193Alternatively, you may set the environment variables XPROP_CFLAGS
11194and XPROP_LIBS to avoid the need to call pkg-config.
11195See the pkg-config man page for more details." "$LINENO" 5
11196elif test $pkg_failed = untried; then
11197     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11198printf "%s\n" "no" >&6; }
11199	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11200printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11201as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11202is in your PATH or set the PKG_CONFIG environment variable to the full
11203path to pkg-config.
11204
11205Alternatively, you may set the environment variables XPROP_CFLAGS
11206and XPROP_LIBS to avoid the need to call pkg-config.
11207See the pkg-config man page for more details.
11208
11209To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11210See \`config.log' for more details" "$LINENO" 5; }
11211else
11212	XPROP_CFLAGS=$pkg_cv_XPROP_CFLAGS
11213	XPROP_LIBS=$pkg_cv_XPROP_LIBS
11214        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11215printf "%s\n" "yes" >&6; }
11216
11217fi
11218
11219
11220
11221
11222
11223
11224# Check whether --with-lint was given.
11225if test ${with_lint+y}
11226then :
11227  withval=$with_lint; use_lint=$withval
11228else $as_nop
11229  use_lint=no
11230fi
11231
11232
11233# Obtain platform specific info like program name and options
11234# The lint program on FreeBSD and NetBSD is different from the one on Solaris
11235case $host_os in
11236  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
11237	lint_name=splint
11238	lint_options="-badflag"
11239	;;
11240  *freebsd* | *netbsd*)
11241	lint_name=lint
11242	lint_options="-u -b"
11243	;;
11244  *solaris*)
11245	lint_name=lint
11246	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
11247	;;
11248esac
11249
11250# Test for the presence of the program (either guessed by the code or spelled out by the user)
11251if test "x$use_lint" = x"yes" ; then
11252   # Extract the first word of "$lint_name", so it can be a program name with args.
11253set dummy $lint_name; ac_word=$2
11254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11255printf %s "checking for $ac_word... " >&6; }
11256if test ${ac_cv_path_LINT+y}
11257then :
11258  printf %s "(cached) " >&6
11259else $as_nop
11260  case $LINT in
11261  [\\/]* | ?:[\\/]*)
11262  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
11263  ;;
11264  *)
11265  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11266for as_dir in $PATH
11267do
11268  IFS=$as_save_IFS
11269  case $as_dir in #(((
11270    '') as_dir=./ ;;
11271    */) ;;
11272    *) as_dir=$as_dir/ ;;
11273  esac
11274    for ac_exec_ext in '' $ac_executable_extensions; do
11275  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11276    ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
11277    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11278    break 2
11279  fi
11280done
11281  done
11282IFS=$as_save_IFS
11283
11284  ;;
11285esac
11286fi
11287LINT=$ac_cv_path_LINT
11288if test -n "$LINT"; then
11289  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
11290printf "%s\n" "$LINT" >&6; }
11291else
11292  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11293printf "%s\n" "no" >&6; }
11294fi
11295
11296
11297   if test "x$LINT" = "x"; then
11298        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
11299   fi
11300elif test "x$use_lint" = x"no" ; then
11301   if test "x$LINT" != "x"; then
11302      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
11303printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
11304   fi
11305else
11306   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
11307fi
11308
11309# User supplied flags override default flags
11310if test "x$LINT_FLAGS" != "x"; then
11311   lint_options=$LINT_FLAGS
11312fi
11313
11314LINT_FLAGS=$lint_options
11315
11316 if test "x$LINT" != x; then
11317  LINT_TRUE=
11318  LINT_FALSE='#'
11319else
11320  LINT_TRUE='#'
11321  LINT_FALSE=
11322fi
11323
11324
11325
11326
11327ac_config_files="$ac_config_files Makefile man/Makefile"
11328
11329cat >confcache <<\_ACEOF
11330# This file is a shell script that caches the results of configure
11331# tests run on this system so they can be shared between configure
11332# scripts and configure runs, see configure's option --config-cache.
11333# It is not useful on other systems.  If it contains results you don't
11334# want to keep, you may remove or edit it.
11335#
11336# config.status only pays attention to the cache file if you give it
11337# the --recheck option to rerun configure.
11338#
11339# `ac_cv_env_foo' variables (set or unset) will be overridden when
11340# loading this file, other *unset* `ac_cv_foo' will be assigned the
11341# following values.
11342
11343_ACEOF
11344
11345# The following way of writing the cache mishandles newlines in values,
11346# but we know of no workaround that is simple, portable, and efficient.
11347# So, we kill variables containing newlines.
11348# Ultrix sh set writes to stderr and can't be redirected directly,
11349# and sets the high bit in the cache file unless we assign to the vars.
11350(
11351  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11352    eval ac_val=\$$ac_var
11353    case $ac_val in #(
11354    *${as_nl}*)
11355      case $ac_var in #(
11356      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11357printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11358      esac
11359      case $ac_var in #(
11360      _ | IFS | as_nl) ;; #(
11361      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11362      *) { eval $ac_var=; unset $ac_var;} ;;
11363      esac ;;
11364    esac
11365  done
11366
11367  (set) 2>&1 |
11368    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11369    *${as_nl}ac_space=\ *)
11370      # `set' does not quote correctly, so add quotes: double-quote
11371      # substitution turns \\\\ into \\, and sed turns \\ into \.
11372      sed -n \
11373	"s/'/'\\\\''/g;
11374	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11375      ;; #(
11376    *)
11377      # `set' quotes correctly as required by POSIX, so do not add quotes.
11378      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11379      ;;
11380    esac |
11381    sort
11382) |
11383  sed '
11384     /^ac_cv_env_/b end
11385     t clear
11386     :clear
11387     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11388     t end
11389     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11390     :end' >>confcache
11391if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11392  if test -w "$cache_file"; then
11393    if test "x$cache_file" != "x/dev/null"; then
11394      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11395printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11396      if test ! -f "$cache_file" || test -h "$cache_file"; then
11397	cat confcache >"$cache_file"
11398      else
11399        case $cache_file in #(
11400        */* | ?:*)
11401	  mv -f confcache "$cache_file"$$ &&
11402	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11403        *)
11404	  mv -f confcache "$cache_file" ;;
11405	esac
11406      fi
11407    fi
11408  else
11409    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11410printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11411  fi
11412fi
11413rm -f confcache
11414
11415test "x$prefix" = xNONE && prefix=$ac_default_prefix
11416# Let make expand exec_prefix.
11417test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11418
11419DEFS=-DHAVE_CONFIG_H
11420
11421ac_libobjs=
11422ac_ltlibobjs=
11423U=
11424for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11425  # 1. Remove the extension, and $U if already installed.
11426  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11427  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11428  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11429  #    will be set to the directory where LIBOBJS objects are built.
11430  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11431  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11432done
11433LIBOBJS=$ac_libobjs
11434
11435LTLIBOBJS=$ac_ltlibobjs
11436
11437
11438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11439printf %s "checking that generated files are newer than configure... " >&6; }
11440   if test -n "$am_sleep_pid"; then
11441     # Hide warnings about reused PIDs.
11442     wait $am_sleep_pid 2>/dev/null
11443   fi
11444   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11445printf "%s\n" "done" >&6; }
11446 if test -n "$EXEEXT"; then
11447  am__EXEEXT_TRUE=
11448  am__EXEEXT_FALSE='#'
11449else
11450  am__EXEEXT_TRUE='#'
11451  am__EXEEXT_FALSE=
11452fi
11453
11454if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11455  as_fn_error $? "conditional \"AMDEP\" was never defined.
11456Usually this means the macro was only invoked conditionally." "$LINENO" 5
11457fi
11458if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11459  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11460Usually this means the macro was only invoked conditionally." "$LINENO" 5
11461fi
11462if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
11463  as_fn_error $? "conditional \"LINT\" was never defined.
11464Usually this means the macro was only invoked conditionally." "$LINENO" 5
11465fi
11466
11467: "${CONFIG_STATUS=./config.status}"
11468ac_write_fail=0
11469ac_clean_files_save=$ac_clean_files
11470ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11472printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11473as_write_fail=0
11474cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11475#! $SHELL
11476# Generated by $as_me.
11477# Run this file to recreate the current configuration.
11478# Compiler output produced by configure, useful for debugging
11479# configure, is in config.log if it exists.
11480
11481debug=false
11482ac_cs_recheck=false
11483ac_cs_silent=false
11484
11485SHELL=\${CONFIG_SHELL-$SHELL}
11486export SHELL
11487_ASEOF
11488cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11489## -------------------- ##
11490## M4sh Initialization. ##
11491## -------------------- ##
11492
11493# Be more Bourne compatible
11494DUALCASE=1; export DUALCASE # for MKS sh
11495as_nop=:
11496if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11497then :
11498  emulate sh
11499  NULLCMD=:
11500  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11501  # is contrary to our usage.  Disable this feature.
11502  alias -g '${1+"$@"}'='"$@"'
11503  setopt NO_GLOB_SUBST
11504else $as_nop
11505  case `(set -o) 2>/dev/null` in #(
11506  *posix*) :
11507    set -o posix ;; #(
11508  *) :
11509     ;;
11510esac
11511fi
11512
11513
11514
11515# Reset variables that may have inherited troublesome values from
11516# the environment.
11517
11518# IFS needs to be set, to space, tab, and newline, in precisely that order.
11519# (If _AS_PATH_WALK were called with IFS unset, it would have the
11520# side effect of setting IFS to empty, thus disabling word splitting.)
11521# Quoting is to prevent editors from complaining about space-tab.
11522as_nl='
11523'
11524export as_nl
11525IFS=" ""	$as_nl"
11526
11527PS1='$ '
11528PS2='> '
11529PS4='+ '
11530
11531# Ensure predictable behavior from utilities with locale-dependent output.
11532LC_ALL=C
11533export LC_ALL
11534LANGUAGE=C
11535export LANGUAGE
11536
11537# We cannot yet rely on "unset" to work, but we need these variables
11538# to be unset--not just set to an empty or harmless value--now, to
11539# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
11540# also avoids known problems related to "unset" and subshell syntax
11541# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11542for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11543do eval test \${$as_var+y} \
11544  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11545done
11546
11547# Ensure that fds 0, 1, and 2 are open.
11548if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11549if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11550if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
11551
11552# The user is always right.
11553if ${PATH_SEPARATOR+false} :; then
11554  PATH_SEPARATOR=:
11555  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11556    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11557      PATH_SEPARATOR=';'
11558  }
11559fi
11560
11561
11562# Find who we are.  Look in the path if we contain no directory separator.
11563as_myself=
11564case $0 in #((
11565  *[\\/]* ) as_myself=$0 ;;
11566  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11567for as_dir in $PATH
11568do
11569  IFS=$as_save_IFS
11570  case $as_dir in #(((
11571    '') as_dir=./ ;;
11572    */) ;;
11573    *) as_dir=$as_dir/ ;;
11574  esac
11575    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11576  done
11577IFS=$as_save_IFS
11578
11579     ;;
11580esac
11581# We did not find ourselves, most probably we were run as `sh COMMAND'
11582# in which case we are not to be found in the path.
11583if test "x$as_myself" = x; then
11584  as_myself=$0
11585fi
11586if test ! -f "$as_myself"; then
11587  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11588  exit 1
11589fi
11590
11591
11592
11593# as_fn_error STATUS ERROR [LINENO LOG_FD]
11594# ----------------------------------------
11595# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11596# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11597# script with STATUS, using 1 if that was 0.
11598as_fn_error ()
11599{
11600  as_status=$1; test $as_status -eq 0 && as_status=1
11601  if test "$4"; then
11602    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11603    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11604  fi
11605  printf "%s\n" "$as_me: error: $2" >&2
11606  as_fn_exit $as_status
11607} # as_fn_error
11608
11609
11610
11611# as_fn_set_status STATUS
11612# -----------------------
11613# Set $? to STATUS, without forking.
11614as_fn_set_status ()
11615{
11616  return $1
11617} # as_fn_set_status
11618
11619# as_fn_exit STATUS
11620# -----------------
11621# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11622as_fn_exit ()
11623{
11624  set +e
11625  as_fn_set_status $1
11626  exit $1
11627} # as_fn_exit
11628
11629# as_fn_unset VAR
11630# ---------------
11631# Portably unset VAR.
11632as_fn_unset ()
11633{
11634  { eval $1=; unset $1;}
11635}
11636as_unset=as_fn_unset
11637
11638# as_fn_append VAR VALUE
11639# ----------------------
11640# Append the text in VALUE to the end of the definition contained in VAR. Take
11641# advantage of any shell optimizations that allow amortized linear growth over
11642# repeated appends, instead of the typical quadratic growth present in naive
11643# implementations.
11644if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11645then :
11646  eval 'as_fn_append ()
11647  {
11648    eval $1+=\$2
11649  }'
11650else $as_nop
11651  as_fn_append ()
11652  {
11653    eval $1=\$$1\$2
11654  }
11655fi # as_fn_append
11656
11657# as_fn_arith ARG...
11658# ------------------
11659# Perform arithmetic evaluation on the ARGs, and store the result in the
11660# global $as_val. Take advantage of shells that can avoid forks. The arguments
11661# must be portable across $(()) and expr.
11662if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11663then :
11664  eval 'as_fn_arith ()
11665  {
11666    as_val=$(( $* ))
11667  }'
11668else $as_nop
11669  as_fn_arith ()
11670  {
11671    as_val=`expr "$@" || test $? -eq 1`
11672  }
11673fi # as_fn_arith
11674
11675
11676if expr a : '\(a\)' >/dev/null 2>&1 &&
11677   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11678  as_expr=expr
11679else
11680  as_expr=false
11681fi
11682
11683if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11684  as_basename=basename
11685else
11686  as_basename=false
11687fi
11688
11689if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11690  as_dirname=dirname
11691else
11692  as_dirname=false
11693fi
11694
11695as_me=`$as_basename -- "$0" ||
11696$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11697	 X"$0" : 'X\(//\)$' \| \
11698	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11699printf "%s\n" X/"$0" |
11700    sed '/^.*\/\([^/][^/]*\)\/*$/{
11701	    s//\1/
11702	    q
11703	  }
11704	  /^X\/\(\/\/\)$/{
11705	    s//\1/
11706	    q
11707	  }
11708	  /^X\/\(\/\).*/{
11709	    s//\1/
11710	    q
11711	  }
11712	  s/.*/./; q'`
11713
11714# Avoid depending upon Character Ranges.
11715as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11716as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11717as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11718as_cr_digits='0123456789'
11719as_cr_alnum=$as_cr_Letters$as_cr_digits
11720
11721
11722# Determine whether it's possible to make 'echo' print without a newline.
11723# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11724# for compatibility with existing Makefiles.
11725ECHO_C= ECHO_N= ECHO_T=
11726case `echo -n x` in #(((((
11727-n*)
11728  case `echo 'xy\c'` in
11729  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11730  xy)  ECHO_C='\c';;
11731  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11732       ECHO_T='	';;
11733  esac;;
11734*)
11735  ECHO_N='-n';;
11736esac
11737
11738# For backward compatibility with old third-party macros, we provide
11739# the shell variables $as_echo and $as_echo_n.  New code should use
11740# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11741as_echo='printf %s\n'
11742as_echo_n='printf %s'
11743
11744rm -f conf$$ conf$$.exe conf$$.file
11745if test -d conf$$.dir; then
11746  rm -f conf$$.dir/conf$$.file
11747else
11748  rm -f conf$$.dir
11749  mkdir conf$$.dir 2>/dev/null
11750fi
11751if (echo >conf$$.file) 2>/dev/null; then
11752  if ln -s conf$$.file conf$$ 2>/dev/null; then
11753    as_ln_s='ln -s'
11754    # ... but there are two gotchas:
11755    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11756    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11757    # In both cases, we have to default to `cp -pR'.
11758    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11759      as_ln_s='cp -pR'
11760  elif ln conf$$.file conf$$ 2>/dev/null; then
11761    as_ln_s=ln
11762  else
11763    as_ln_s='cp -pR'
11764  fi
11765else
11766  as_ln_s='cp -pR'
11767fi
11768rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11769rmdir conf$$.dir 2>/dev/null
11770
11771
11772# as_fn_mkdir_p
11773# -------------
11774# Create "$as_dir" as a directory, including parents if necessary.
11775as_fn_mkdir_p ()
11776{
11777
11778  case $as_dir in #(
11779  -*) as_dir=./$as_dir;;
11780  esac
11781  test -d "$as_dir" || eval $as_mkdir_p || {
11782    as_dirs=
11783    while :; do
11784      case $as_dir in #(
11785      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11786      *) as_qdir=$as_dir;;
11787      esac
11788      as_dirs="'$as_qdir' $as_dirs"
11789      as_dir=`$as_dirname -- "$as_dir" ||
11790$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11791	 X"$as_dir" : 'X\(//\)[^/]' \| \
11792	 X"$as_dir" : 'X\(//\)$' \| \
11793	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11794printf "%s\n" X"$as_dir" |
11795    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11796	    s//\1/
11797	    q
11798	  }
11799	  /^X\(\/\/\)[^/].*/{
11800	    s//\1/
11801	    q
11802	  }
11803	  /^X\(\/\/\)$/{
11804	    s//\1/
11805	    q
11806	  }
11807	  /^X\(\/\).*/{
11808	    s//\1/
11809	    q
11810	  }
11811	  s/.*/./; q'`
11812      test -d "$as_dir" && break
11813    done
11814    test -z "$as_dirs" || eval "mkdir $as_dirs"
11815  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11816
11817
11818} # as_fn_mkdir_p
11819if mkdir -p . 2>/dev/null; then
11820  as_mkdir_p='mkdir -p "$as_dir"'
11821else
11822  test -d ./-p && rmdir ./-p
11823  as_mkdir_p=false
11824fi
11825
11826
11827# as_fn_executable_p FILE
11828# -----------------------
11829# Test if FILE is an executable regular file.
11830as_fn_executable_p ()
11831{
11832  test -f "$1" && test -x "$1"
11833} # as_fn_executable_p
11834as_test_x='test -x'
11835as_executable_p=as_fn_executable_p
11836
11837# Sed expression to map a string onto a valid CPP name.
11838as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11839
11840# Sed expression to map a string onto a valid variable name.
11841as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11842
11843
11844exec 6>&1
11845## ----------------------------------- ##
11846## Main body of $CONFIG_STATUS script. ##
11847## ----------------------------------- ##
11848_ASEOF
11849test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11850
11851cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11852# Save the log message, to keep $0 and so on meaningful, and to
11853# report actual input values of CONFIG_FILES etc. instead of their
11854# values after options handling.
11855ac_log="
11856This file was extended by xprop $as_me 1.2.6, which was
11857generated by GNU Autoconf 2.71.  Invocation command line was
11858
11859  CONFIG_FILES    = $CONFIG_FILES
11860  CONFIG_HEADERS  = $CONFIG_HEADERS
11861  CONFIG_LINKS    = $CONFIG_LINKS
11862  CONFIG_COMMANDS = $CONFIG_COMMANDS
11863  $ $0 $@
11864
11865on `(hostname || uname -n) 2>/dev/null | sed 1q`
11866"
11867
11868_ACEOF
11869
11870case $ac_config_files in *"
11871"*) set x $ac_config_files; shift; ac_config_files=$*;;
11872esac
11873
11874case $ac_config_headers in *"
11875"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11876esac
11877
11878
11879cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11880# Files that config.status was made for.
11881config_files="$ac_config_files"
11882config_headers="$ac_config_headers"
11883config_commands="$ac_config_commands"
11884
11885_ACEOF
11886
11887cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11888ac_cs_usage="\
11889\`$as_me' instantiates files and other configuration actions
11890from templates according to the current configuration.  Unless the files
11891and actions are specified as TAGs, all are instantiated by default.
11892
11893Usage: $0 [OPTION]... [TAG]...
11894
11895  -h, --help       print this help, then exit
11896  -V, --version    print version number and configuration settings, then exit
11897      --config     print configuration, then exit
11898  -q, --quiet, --silent
11899                   do not print progress messages
11900  -d, --debug      don't remove temporary files
11901      --recheck    update $as_me by reconfiguring in the same conditions
11902      --file=FILE[:TEMPLATE]
11903                   instantiate the configuration file FILE
11904      --header=FILE[:TEMPLATE]
11905                   instantiate the configuration header FILE
11906
11907Configuration files:
11908$config_files
11909
11910Configuration headers:
11911$config_headers
11912
11913Configuration commands:
11914$config_commands
11915
11916Report bugs to <https://gitlab.freedesktop.org/xorg/app/xprop/-/issues>."
11917
11918_ACEOF
11919ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
11920ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
11921cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11922ac_cs_config='$ac_cs_config_escaped'
11923ac_cs_version="\\
11924xprop config.status 1.2.6
11925configured by $0, generated by GNU Autoconf 2.71,
11926  with options \\"\$ac_cs_config\\"
11927
11928Copyright (C) 2021 Free Software Foundation, Inc.
11929This config.status script is free software; the Free Software Foundation
11930gives unlimited permission to copy, distribute and modify it."
11931
11932ac_pwd='$ac_pwd'
11933srcdir='$srcdir'
11934INSTALL='$INSTALL'
11935MKDIR_P='$MKDIR_P'
11936AWK='$AWK'
11937test -n "\$AWK" || AWK=awk
11938_ACEOF
11939
11940cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11941# The default lists apply if the user does not specify any file.
11942ac_need_defaults=:
11943while test $# != 0
11944do
11945  case $1 in
11946  --*=?*)
11947    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11948    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11949    ac_shift=:
11950    ;;
11951  --*=)
11952    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11953    ac_optarg=
11954    ac_shift=:
11955    ;;
11956  *)
11957    ac_option=$1
11958    ac_optarg=$2
11959    ac_shift=shift
11960    ;;
11961  esac
11962
11963  case $ac_option in
11964  # Handling of the options.
11965  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11966    ac_cs_recheck=: ;;
11967  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11968    printf "%s\n" "$ac_cs_version"; exit ;;
11969  --config | --confi | --conf | --con | --co | --c )
11970    printf "%s\n" "$ac_cs_config"; exit ;;
11971  --debug | --debu | --deb | --de | --d | -d )
11972    debug=: ;;
11973  --file | --fil | --fi | --f )
11974    $ac_shift
11975    case $ac_optarg in
11976    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11977    '') as_fn_error $? "missing file argument" ;;
11978    esac
11979    as_fn_append CONFIG_FILES " '$ac_optarg'"
11980    ac_need_defaults=false;;
11981  --header | --heade | --head | --hea )
11982    $ac_shift
11983    case $ac_optarg in
11984    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11985    esac
11986    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11987    ac_need_defaults=false;;
11988  --he | --h)
11989    # Conflict between --help and --header
11990    as_fn_error $? "ambiguous option: \`$1'
11991Try \`$0 --help' for more information.";;
11992  --help | --hel | -h )
11993    printf "%s\n" "$ac_cs_usage"; exit ;;
11994  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11995  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11996    ac_cs_silent=: ;;
11997
11998  # This is an error.
11999  -*) as_fn_error $? "unrecognized option: \`$1'
12000Try \`$0 --help' for more information." ;;
12001
12002  *) as_fn_append ac_config_targets " $1"
12003     ac_need_defaults=false ;;
12004
12005  esac
12006  shift
12007done
12008
12009ac_configure_extra_args=
12010
12011if $ac_cs_silent; then
12012  exec 6>/dev/null
12013  ac_configure_extra_args="$ac_configure_extra_args --silent"
12014fi
12015
12016_ACEOF
12017cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12018if \$ac_cs_recheck; then
12019  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12020  shift
12021  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12022  CONFIG_SHELL='$SHELL'
12023  export CONFIG_SHELL
12024  exec "\$@"
12025fi
12026
12027_ACEOF
12028cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12029exec 5>>config.log
12030{
12031  echo
12032  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12033## Running $as_me. ##
12034_ASBOX
12035  printf "%s\n" "$ac_log"
12036} >&5
12037
12038_ACEOF
12039cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12040#
12041# INIT-COMMANDS
12042#
12043AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12044
12045_ACEOF
12046
12047cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12048
12049# Handling of arguments.
12050for ac_config_target in $ac_config_targets
12051do
12052  case $ac_config_target in
12053    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12054    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12055    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12056    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12057
12058  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12059  esac
12060done
12061
12062
12063# If the user did not use the arguments to specify the items to instantiate,
12064# then the envvar interface is used.  Set only those that are not.
12065# We use the long form for the default assignment because of an extremely
12066# bizarre bug on SunOS 4.1.3.
12067if $ac_need_defaults; then
12068  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12069  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12070  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12071fi
12072
12073# Have a temporary directory for convenience.  Make it in the build tree
12074# simply because there is no reason against having it here, and in addition,
12075# creating and moving files from /tmp can sometimes cause problems.
12076# Hook for its removal unless debugging.
12077# Note that there is a small window in which the directory will not be cleaned:
12078# after its creation but before its name has been assigned to `$tmp'.
12079$debug ||
12080{
12081  tmp= ac_tmp=
12082  trap 'exit_status=$?
12083  : "${ac_tmp:=$tmp}"
12084  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12085' 0
12086  trap 'as_fn_exit 1' 1 2 13 15
12087}
12088# Create a (secure) tmp directory for tmp files.
12089
12090{
12091  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12092  test -d "$tmp"
12093}  ||
12094{
12095  tmp=./conf$$-$RANDOM
12096  (umask 077 && mkdir "$tmp")
12097} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12098ac_tmp=$tmp
12099
12100# Set up the scripts for CONFIG_FILES section.
12101# No need to generate them if there are no CONFIG_FILES.
12102# This happens for instance with `./config.status config.h'.
12103if test -n "$CONFIG_FILES"; then
12104
12105
12106ac_cr=`echo X | tr X '\015'`
12107# On cygwin, bash can eat \r inside `` if the user requested igncr.
12108# But we know of no other shell where ac_cr would be empty at this
12109# point, so we can use a bashism as a fallback.
12110if test "x$ac_cr" = x; then
12111  eval ac_cr=\$\'\\r\'
12112fi
12113ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12114if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12115  ac_cs_awk_cr='\\r'
12116else
12117  ac_cs_awk_cr=$ac_cr
12118fi
12119
12120echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12121_ACEOF
12122
12123
12124{
12125  echo "cat >conf$$subs.awk <<_ACEOF" &&
12126  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12127  echo "_ACEOF"
12128} >conf$$subs.sh ||
12129  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12130ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12131ac_delim='%!_!# '
12132for ac_last_try in false false false false false :; do
12133  . ./conf$$subs.sh ||
12134    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12135
12136  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12137  if test $ac_delim_n = $ac_delim_num; then
12138    break
12139  elif $ac_last_try; then
12140    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12141  else
12142    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12143  fi
12144done
12145rm -f conf$$subs.sh
12146
12147cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12148cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12149_ACEOF
12150sed -n '
12151h
12152s/^/S["/; s/!.*/"]=/
12153p
12154g
12155s/^[^!]*!//
12156:repl
12157t repl
12158s/'"$ac_delim"'$//
12159t delim
12160:nl
12161h
12162s/\(.\{148\}\)..*/\1/
12163t more1
12164s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12165p
12166n
12167b repl
12168:more1
12169s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12170p
12171g
12172s/.\{148\}//
12173t nl
12174:delim
12175h
12176s/\(.\{148\}\)..*/\1/
12177t more2
12178s/["\\]/\\&/g; s/^/"/; s/$/"/
12179p
12180b
12181:more2
12182s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12183p
12184g
12185s/.\{148\}//
12186t delim
12187' <conf$$subs.awk | sed '
12188/^[^""]/{
12189  N
12190  s/\n//
12191}
12192' >>$CONFIG_STATUS || ac_write_fail=1
12193rm -f conf$$subs.awk
12194cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12195_ACAWK
12196cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12197  for (key in S) S_is_set[key] = 1
12198  FS = ""
12199
12200}
12201{
12202  line = $ 0
12203  nfields = split(line, field, "@")
12204  substed = 0
12205  len = length(field[1])
12206  for (i = 2; i < nfields; i++) {
12207    key = field[i]
12208    keylen = length(key)
12209    if (S_is_set[key]) {
12210      value = S[key]
12211      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12212      len += length(value) + length(field[++i])
12213      substed = 1
12214    } else
12215      len += 1 + keylen
12216  }
12217
12218  print line
12219}
12220
12221_ACAWK
12222_ACEOF
12223cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12224if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12225  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12226else
12227  cat
12228fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12229  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12230_ACEOF
12231
12232# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12233# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12234# trailing colons and then remove the whole line if VPATH becomes empty
12235# (actually we leave an empty line to preserve line numbers).
12236if test "x$srcdir" = x.; then
12237  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12238h
12239s///
12240s/^/:/
12241s/[	 ]*$/:/
12242s/:\$(srcdir):/:/g
12243s/:\${srcdir}:/:/g
12244s/:@srcdir@:/:/g
12245s/^:*//
12246s/:*$//
12247x
12248s/\(=[	 ]*\).*/\1/
12249G
12250s/\n//
12251s/^[^=]*=[	 ]*$//
12252}'
12253fi
12254
12255cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12256fi # test -n "$CONFIG_FILES"
12257
12258# Set up the scripts for CONFIG_HEADERS section.
12259# No need to generate them if there are no CONFIG_HEADERS.
12260# This happens for instance with `./config.status Makefile'.
12261if test -n "$CONFIG_HEADERS"; then
12262cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12263BEGIN {
12264_ACEOF
12265
12266# Transform confdefs.h into an awk script `defines.awk', embedded as
12267# here-document in config.status, that substitutes the proper values into
12268# config.h.in to produce config.h.
12269
12270# Create a delimiter string that does not exist in confdefs.h, to ease
12271# handling of long lines.
12272ac_delim='%!_!# '
12273for ac_last_try in false false :; do
12274  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12275  if test -z "$ac_tt"; then
12276    break
12277  elif $ac_last_try; then
12278    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12279  else
12280    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12281  fi
12282done
12283
12284# For the awk script, D is an array of macro values keyed by name,
12285# likewise P contains macro parameters if any.  Preserve backslash
12286# newline sequences.
12287
12288ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12289sed -n '
12290s/.\{148\}/&'"$ac_delim"'/g
12291t rset
12292:rset
12293s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12294t def
12295d
12296:def
12297s/\\$//
12298t bsnl
12299s/["\\]/\\&/g
12300s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12301D["\1"]=" \3"/p
12302s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12303d
12304:bsnl
12305s/["\\]/\\&/g
12306s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12307D["\1"]=" \3\\\\\\n"\\/p
12308t cont
12309s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12310t cont
12311d
12312:cont
12313n
12314s/.\{148\}/&'"$ac_delim"'/g
12315t clear
12316:clear
12317s/\\$//
12318t bsnlc
12319s/["\\]/\\&/g; s/^/"/; s/$/"/p
12320d
12321:bsnlc
12322s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12323b cont
12324' <confdefs.h | sed '
12325s/'"$ac_delim"'/"\\\
12326"/g' >>$CONFIG_STATUS || ac_write_fail=1
12327
12328cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12329  for (key in D) D_is_set[key] = 1
12330  FS = ""
12331}
12332/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12333  line = \$ 0
12334  split(line, arg, " ")
12335  if (arg[1] == "#") {
12336    defundef = arg[2]
12337    mac1 = arg[3]
12338  } else {
12339    defundef = substr(arg[1], 2)
12340    mac1 = arg[2]
12341  }
12342  split(mac1, mac2, "(") #)
12343  macro = mac2[1]
12344  prefix = substr(line, 1, index(line, defundef) - 1)
12345  if (D_is_set[macro]) {
12346    # Preserve the white space surrounding the "#".
12347    print prefix "define", macro P[macro] D[macro]
12348    next
12349  } else {
12350    # Replace #undef with comments.  This is necessary, for example,
12351    # in the case of _POSIX_SOURCE, which is predefined and required
12352    # on some systems where configure will not decide to define it.
12353    if (defundef == "undef") {
12354      print "/*", prefix defundef, macro, "*/"
12355      next
12356    }
12357  }
12358}
12359{ print }
12360_ACAWK
12361_ACEOF
12362cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12363  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12364fi # test -n "$CONFIG_HEADERS"
12365
12366
12367eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12368shift
12369for ac_tag
12370do
12371  case $ac_tag in
12372  :[FHLC]) ac_mode=$ac_tag; continue;;
12373  esac
12374  case $ac_mode$ac_tag in
12375  :[FHL]*:*);;
12376  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12377  :[FH]-) ac_tag=-:-;;
12378  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12379  esac
12380  ac_save_IFS=$IFS
12381  IFS=:
12382  set x $ac_tag
12383  IFS=$ac_save_IFS
12384  shift
12385  ac_file=$1
12386  shift
12387
12388  case $ac_mode in
12389  :L) ac_source=$1;;
12390  :[FH])
12391    ac_file_inputs=
12392    for ac_f
12393    do
12394      case $ac_f in
12395      -) ac_f="$ac_tmp/stdin";;
12396      *) # Look for the file first in the build tree, then in the source tree
12397	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12398	 # because $ac_f cannot contain `:'.
12399	 test -f "$ac_f" ||
12400	   case $ac_f in
12401	   [\\/$]*) false;;
12402	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12403	   esac ||
12404	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12405      esac
12406      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12407      as_fn_append ac_file_inputs " '$ac_f'"
12408    done
12409
12410    # Let's still pretend it is `configure' which instantiates (i.e., don't
12411    # use $as_me), people would be surprised to read:
12412    #    /* config.h.  Generated by config.status.  */
12413    configure_input='Generated from '`
12414	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12415	`' by configure.'
12416    if test x"$ac_file" != x-; then
12417      configure_input="$ac_file.  $configure_input"
12418      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12419printf "%s\n" "$as_me: creating $ac_file" >&6;}
12420    fi
12421    # Neutralize special characters interpreted by sed in replacement strings.
12422    case $configure_input in #(
12423    *\&* | *\|* | *\\* )
12424       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12425       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12426    *) ac_sed_conf_input=$configure_input;;
12427    esac
12428
12429    case $ac_tag in
12430    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12431      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12432    esac
12433    ;;
12434  esac
12435
12436  ac_dir=`$as_dirname -- "$ac_file" ||
12437$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12438	 X"$ac_file" : 'X\(//\)[^/]' \| \
12439	 X"$ac_file" : 'X\(//\)$' \| \
12440	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12441printf "%s\n" X"$ac_file" |
12442    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12443	    s//\1/
12444	    q
12445	  }
12446	  /^X\(\/\/\)[^/].*/{
12447	    s//\1/
12448	    q
12449	  }
12450	  /^X\(\/\/\)$/{
12451	    s//\1/
12452	    q
12453	  }
12454	  /^X\(\/\).*/{
12455	    s//\1/
12456	    q
12457	  }
12458	  s/.*/./; q'`
12459  as_dir="$ac_dir"; as_fn_mkdir_p
12460  ac_builddir=.
12461
12462case "$ac_dir" in
12463.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12464*)
12465  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12466  # A ".." for each directory in $ac_dir_suffix.
12467  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12468  case $ac_top_builddir_sub in
12469  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12470  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12471  esac ;;
12472esac
12473ac_abs_top_builddir=$ac_pwd
12474ac_abs_builddir=$ac_pwd$ac_dir_suffix
12475# for backward compatibility:
12476ac_top_builddir=$ac_top_build_prefix
12477
12478case $srcdir in
12479  .)  # We are building in place.
12480    ac_srcdir=.
12481    ac_top_srcdir=$ac_top_builddir_sub
12482    ac_abs_top_srcdir=$ac_pwd ;;
12483  [\\/]* | ?:[\\/]* )  # Absolute name.
12484    ac_srcdir=$srcdir$ac_dir_suffix;
12485    ac_top_srcdir=$srcdir
12486    ac_abs_top_srcdir=$srcdir ;;
12487  *) # Relative name.
12488    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12489    ac_top_srcdir=$ac_top_build_prefix$srcdir
12490    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12491esac
12492ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12493
12494
12495  case $ac_mode in
12496  :F)
12497  #
12498  # CONFIG_FILE
12499  #
12500
12501  case $INSTALL in
12502  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12503  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12504  esac
12505  ac_MKDIR_P=$MKDIR_P
12506  case $MKDIR_P in
12507  [\\/$]* | ?:[\\/]* ) ;;
12508  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12509  esac
12510_ACEOF
12511
12512cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12513# If the template does not know about datarootdir, expand it.
12514# FIXME: This hack should be removed a few years after 2.60.
12515ac_datarootdir_hack=; ac_datarootdir_seen=
12516ac_sed_dataroot='
12517/datarootdir/ {
12518  p
12519  q
12520}
12521/@datadir@/p
12522/@docdir@/p
12523/@infodir@/p
12524/@localedir@/p
12525/@mandir@/p'
12526case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12527*datarootdir*) ac_datarootdir_seen=yes;;
12528*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12529  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12530printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12531_ACEOF
12532cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12533  ac_datarootdir_hack='
12534  s&@datadir@&$datadir&g
12535  s&@docdir@&$docdir&g
12536  s&@infodir@&$infodir&g
12537  s&@localedir@&$localedir&g
12538  s&@mandir@&$mandir&g
12539  s&\\\${datarootdir}&$datarootdir&g' ;;
12540esac
12541_ACEOF
12542
12543# Neutralize VPATH when `$srcdir' = `.'.
12544# Shell code in configure.ac might set extrasub.
12545# FIXME: do we really want to maintain this feature?
12546cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12547ac_sed_extra="$ac_vpsub
12548$extrasub
12549_ACEOF
12550cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12551:t
12552/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12553s|@configure_input@|$ac_sed_conf_input|;t t
12554s&@top_builddir@&$ac_top_builddir_sub&;t t
12555s&@top_build_prefix@&$ac_top_build_prefix&;t t
12556s&@srcdir@&$ac_srcdir&;t t
12557s&@abs_srcdir@&$ac_abs_srcdir&;t t
12558s&@top_srcdir@&$ac_top_srcdir&;t t
12559s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12560s&@builddir@&$ac_builddir&;t t
12561s&@abs_builddir@&$ac_abs_builddir&;t t
12562s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12563s&@INSTALL@&$ac_INSTALL&;t t
12564s&@MKDIR_P@&$ac_MKDIR_P&;t t
12565$ac_datarootdir_hack
12566"
12567eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12568  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12569
12570test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12571  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12572  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12573      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12574  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12575which seems to be undefined.  Please make sure it is defined" >&5
12576printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12577which seems to be undefined.  Please make sure it is defined" >&2;}
12578
12579  rm -f "$ac_tmp/stdin"
12580  case $ac_file in
12581  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12582  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12583  esac \
12584  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12585 ;;
12586  :H)
12587  #
12588  # CONFIG_HEADER
12589  #
12590  if test x"$ac_file" != x-; then
12591    {
12592      printf "%s\n" "/* $configure_input  */" >&1 \
12593      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12594    } >"$ac_tmp/config.h" \
12595      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12596    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12597      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12598printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12599    else
12600      rm -f "$ac_file"
12601      mv "$ac_tmp/config.h" "$ac_file" \
12602	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12603    fi
12604  else
12605    printf "%s\n" "/* $configure_input  */" >&1 \
12606      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12607      || as_fn_error $? "could not create -" "$LINENO" 5
12608  fi
12609# Compute "$ac_file"'s index in $config_headers.
12610_am_arg="$ac_file"
12611_am_stamp_count=1
12612for _am_header in $config_headers :; do
12613  case $_am_header in
12614    $_am_arg | $_am_arg:* )
12615      break ;;
12616    * )
12617      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12618  esac
12619done
12620echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12621$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12622	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12623	 X"$_am_arg" : 'X\(//\)$' \| \
12624	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12625printf "%s\n" X"$_am_arg" |
12626    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12627	    s//\1/
12628	    q
12629	  }
12630	  /^X\(\/\/\)[^/].*/{
12631	    s//\1/
12632	    q
12633	  }
12634	  /^X\(\/\/\)$/{
12635	    s//\1/
12636	    q
12637	  }
12638	  /^X\(\/\).*/{
12639	    s//\1/
12640	    q
12641	  }
12642	  s/.*/./; q'`/stamp-h$_am_stamp_count
12643 ;;
12644
12645  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12646printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12647 ;;
12648  esac
12649
12650
12651  case $ac_file$ac_mode in
12652    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12653  # Older Autoconf quotes --file arguments for eval, but not when files
12654  # are listed without --file.  Let's play safe and only enable the eval
12655  # if we detect the quoting.
12656  # TODO: see whether this extra hack can be removed once we start
12657  # requiring Autoconf 2.70 or later.
12658  case $CONFIG_FILES in #(
12659  *\'*) :
12660    eval set x "$CONFIG_FILES" ;; #(
12661  *) :
12662    set x $CONFIG_FILES ;; #(
12663  *) :
12664     ;;
12665esac
12666  shift
12667  # Used to flag and report bootstrapping failures.
12668  am_rc=0
12669  for am_mf
12670  do
12671    # Strip MF so we end up with the name of the file.
12672    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12673    # Check whether this is an Automake generated Makefile which includes
12674    # dependency-tracking related rules and includes.
12675    # Grep'ing the whole file directly is not great: AIX grep has a line
12676    # limit of 2048, but all sed's we know have understand at least 4000.
12677    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12678      || continue
12679    am_dirpart=`$as_dirname -- "$am_mf" ||
12680$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12681	 X"$am_mf" : 'X\(//\)[^/]' \| \
12682	 X"$am_mf" : 'X\(//\)$' \| \
12683	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12684printf "%s\n" X"$am_mf" |
12685    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12686	    s//\1/
12687	    q
12688	  }
12689	  /^X\(\/\/\)[^/].*/{
12690	    s//\1/
12691	    q
12692	  }
12693	  /^X\(\/\/\)$/{
12694	    s//\1/
12695	    q
12696	  }
12697	  /^X\(\/\).*/{
12698	    s//\1/
12699	    q
12700	  }
12701	  s/.*/./; q'`
12702    am_filepart=`$as_basename -- "$am_mf" ||
12703$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12704	 X"$am_mf" : 'X\(//\)$' \| \
12705	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12706printf "%s\n" X/"$am_mf" |
12707    sed '/^.*\/\([^/][^/]*\)\/*$/{
12708	    s//\1/
12709	    q
12710	  }
12711	  /^X\/\(\/\/\)$/{
12712	    s//\1/
12713	    q
12714	  }
12715	  /^X\/\(\/\).*/{
12716	    s//\1/
12717	    q
12718	  }
12719	  s/.*/./; q'`
12720    { echo "$as_me:$LINENO: cd "$am_dirpart" \
12721      && sed -e '/# am--include-marker/d' "$am_filepart" \
12722        | $MAKE -f - am--depfiles" >&5
12723   (cd "$am_dirpart" \
12724      && sed -e '/# am--include-marker/d' "$am_filepart" \
12725        | $MAKE -f - am--depfiles) >&5 2>&5
12726   ac_status=$?
12727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728   (exit $ac_status); } || am_rc=$?
12729  done
12730  if test $am_rc -ne 0; then
12731    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12732printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12733as_fn_error $? "Something went wrong bootstrapping makefile fragments
12734    for automatic dependency tracking.  If GNU make was not used, consider
12735    re-running the configure script with MAKE=\"gmake\" (or whatever is
12736    necessary).  You can also try re-running configure with the
12737    '--disable-dependency-tracking' option to at least be able to build
12738    the package (albeit without support for automatic dependency tracking).
12739See \`config.log' for more details" "$LINENO" 5; }
12740  fi
12741  { am_dirpart=; unset am_dirpart;}
12742  { am_filepart=; unset am_filepart;}
12743  { am_mf=; unset am_mf;}
12744  { am_rc=; unset am_rc;}
12745  rm -f conftest-deps.mk
12746}
12747 ;;
12748
12749  esac
12750done # for ac_tag
12751
12752
12753as_fn_exit 0
12754_ACEOF
12755ac_clean_files=$ac_clean_files_save
12756
12757test $ac_write_fail = 0 ||
12758  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12759
12760
12761# configure is writing to config.log, and then calls config.status.
12762# config.status does its own redirection, appending to config.log.
12763# Unfortunately, on DOS this fails, as config.log is still kept open
12764# by configure, so config.status won't be able to write to it; its
12765# output is simply discarded.  So we exec the FD to /dev/null,
12766# effectively closing config.log, so it can be properly (re)opened and
12767# appended to by config.status.  When coming back to configure, we
12768# need to make the FD available again.
12769if test "$no_create" != yes; then
12770  ac_cs_success=:
12771  ac_config_status_args=
12772  test "$silent" = yes &&
12773    ac_config_status_args="$ac_config_status_args --quiet"
12774  exec 5>/dev/null
12775  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12776  exec 5>>config.log
12777  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12778  # would make configure fail if this is the last instruction.
12779  $ac_cs_success || as_fn_exit 1
12780fi
12781if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12782  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12783printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12784fi
12785
12786
12787