configure revision 98d75b17
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for xev 1.2.5.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xev/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/xev/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='xev'
614PACKAGE_TARNAME='xev'
615PACKAGE_VERSION='1.2.5'
616PACKAGE_STRING='xev 1.2.5'
617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xev/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
657XEV_LIBS
658XEV_CFLAGS
659MAN_SUBSTS
660XORG_MAN_PAGE
661ADMIN_MAN_DIR
662DRIVER_MAN_DIR
663MISC_MAN_DIR
664FILE_MAN_DIR
665LIB_MAN_DIR
666APP_MAN_DIR
667ADMIN_MAN_SUFFIX
668DRIVER_MAN_SUFFIX
669MISC_MAN_SUFFIX
670FILE_MAN_SUFFIX
671LIB_MAN_SUFFIX
672APP_MAN_SUFFIX
673SED
674host_os
675host_vendor
676host_cpu
677host
678build_os
679build_vendor
680build_cpu
681build
682INSTALL_CMD
683PKG_CONFIG_LIBDIR
684PKG_CONFIG_PATH
685PKG_CONFIG
686CHANGELOG_CMD
687STRICT_CFLAGS
688CWARNFLAGS
689BASE_CFLAGS
690AM_BACKSLASH
691AM_DEFAULT_VERBOSITY
692AM_DEFAULT_V
693AM_V
694CSCOPE
695ETAGS
696CTAGS
697am__fastdepCC_FALSE
698am__fastdepCC_TRUE
699CCDEPMODE
700am__nodep
701AMDEPBACKSLASH
702AMDEP_FALSE
703AMDEP_TRUE
704am__include
705DEPDIR
706am__untar
707am__tar
708AMTAR
709am__leading_dot
710SET_MAKE
711AWK
712mkdir_p
713MKDIR_P
714INSTALL_STRIP_PROGRAM
715STRIP
716install_sh
717MAKEINFO
718AUTOHEADER
719AUTOMAKE
720AUTOCONF
721ACLOCAL
722VERSION
723PACKAGE
724CYGPATH_W
725am__isrc
726INSTALL_DATA
727INSTALL_SCRIPT
728INSTALL_PROGRAM
729OBJEXT
730EXEEXT
731ac_ct_CC
732CPPFLAGS
733LDFLAGS
734CFLAGS
735CC
736target_alias
737host_alias
738build_alias
739LIBS
740ECHO_T
741ECHO_N
742ECHO_C
743DEFS
744mandir
745localedir
746libdir
747psdir
748pdfdir
749dvidir
750htmldir
751infodir
752docdir
753oldincludedir
754includedir
755runstatedir
756localstatedir
757sharedstatedir
758sysconfdir
759datadir
760datarootdir
761libexecdir
762sbindir
763bindir
764program_transform_name
765prefix
766exec_prefix
767PACKAGE_URL
768PACKAGE_BUGREPORT
769PACKAGE_STRING
770PACKAGE_VERSION
771PACKAGE_TARNAME
772PACKAGE_NAME
773PATH_SEPARATOR
774SHELL
775am__quote'
776ac_subst_files=''
777ac_user_opts='
778enable_option_checking
779enable_dependency_tracking
780enable_silent_rules
781enable_selective_werror
782enable_strict_compilation
783'
784      ac_precious_vars='build_alias
785host_alias
786target_alias
787CC
788CFLAGS
789LDFLAGS
790LIBS
791CPPFLAGS
792PKG_CONFIG
793PKG_CONFIG_PATH
794PKG_CONFIG_LIBDIR
795XEV_CFLAGS
796XEV_LIBS'
797
798
799# Initialize some variables set by options.
800ac_init_help=
801ac_init_version=false
802ac_unrecognized_opts=
803ac_unrecognized_sep=
804# The variables have the same names as the options, with
805# dashes changed to underlines.
806cache_file=/dev/null
807exec_prefix=NONE
808no_create=
809no_recursion=
810prefix=NONE
811program_prefix=NONE
812program_suffix=NONE
813program_transform_name=s,x,x,
814silent=
815site=
816srcdir=
817verbose=
818x_includes=NONE
819x_libraries=NONE
820
821# Installation directory options.
822# These are left unexpanded so users can "make install exec_prefix=/foo"
823# and all the variables that are supposed to be based on exec_prefix
824# by default will actually change.
825# Use braces instead of parens because sh, perl, etc. also accept them.
826# (The list follows the same order as the GNU Coding Standards.)
827bindir='${exec_prefix}/bin'
828sbindir='${exec_prefix}/sbin'
829libexecdir='${exec_prefix}/libexec'
830datarootdir='${prefix}/share'
831datadir='${datarootdir}'
832sysconfdir='${prefix}/etc'
833sharedstatedir='${prefix}/com'
834localstatedir='${prefix}/var'
835runstatedir='${localstatedir}/run'
836includedir='${prefix}/include'
837oldincludedir='/usr/include'
838docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
839infodir='${datarootdir}/info'
840htmldir='${docdir}'
841dvidir='${docdir}'
842pdfdir='${docdir}'
843psdir='${docdir}'
844libdir='${exec_prefix}/lib'
845localedir='${datarootdir}/locale'
846mandir='${datarootdir}/man'
847
848ac_prev=
849ac_dashdash=
850for ac_option
851do
852  # If the previous option needs an argument, assign it.
853  if test -n "$ac_prev"; then
854    eval $ac_prev=\$ac_option
855    ac_prev=
856    continue
857  fi
858
859  case $ac_option in
860  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
861  *=)   ac_optarg= ;;
862  *)    ac_optarg=yes ;;
863  esac
864
865  case $ac_dashdash$ac_option in
866  --)
867    ac_dashdash=yes ;;
868
869  -bindir | --bindir | --bindi | --bind | --bin | --bi)
870    ac_prev=bindir ;;
871  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
872    bindir=$ac_optarg ;;
873
874  -build | --build | --buil | --bui | --bu)
875    ac_prev=build_alias ;;
876  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
877    build_alias=$ac_optarg ;;
878
879  -cache-file | --cache-file | --cache-fil | --cache-fi \
880  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
881    ac_prev=cache_file ;;
882  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
883  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
884    cache_file=$ac_optarg ;;
885
886  --config-cache | -C)
887    cache_file=config.cache ;;
888
889  -datadir | --datadir | --datadi | --datad)
890    ac_prev=datadir ;;
891  -datadir=* | --datadir=* | --datadi=* | --datad=*)
892    datadir=$ac_optarg ;;
893
894  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
895  | --dataroo | --dataro | --datar)
896    ac_prev=datarootdir ;;
897  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
898  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
899    datarootdir=$ac_optarg ;;
900
901  -disable-* | --disable-*)
902    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
903    # Reject names that are not valid shell variable names.
904    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905      as_fn_error $? "invalid feature name: \`$ac_useropt'"
906    ac_useropt_orig=$ac_useropt
907    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
908    case $ac_user_opts in
909      *"
910"enable_$ac_useropt"
911"*) ;;
912      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
913	 ac_unrecognized_sep=', ';;
914    esac
915    eval enable_$ac_useropt=no ;;
916
917  -docdir | --docdir | --docdi | --doc | --do)
918    ac_prev=docdir ;;
919  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
920    docdir=$ac_optarg ;;
921
922  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
923    ac_prev=dvidir ;;
924  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
925    dvidir=$ac_optarg ;;
926
927  -enable-* | --enable-*)
928    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
929    # Reject names that are not valid shell variable names.
930    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931      as_fn_error $? "invalid feature name: \`$ac_useropt'"
932    ac_useropt_orig=$ac_useropt
933    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
934    case $ac_user_opts in
935      *"
936"enable_$ac_useropt"
937"*) ;;
938      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
939	 ac_unrecognized_sep=', ';;
940    esac
941    eval enable_$ac_useropt=\$ac_optarg ;;
942
943  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
944  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
945  | --exec | --exe | --ex)
946    ac_prev=exec_prefix ;;
947  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
948  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
949  | --exec=* | --exe=* | --ex=*)
950    exec_prefix=$ac_optarg ;;
951
952  -gas | --gas | --ga | --g)
953    # Obsolete; use --with-gas.
954    with_gas=yes ;;
955
956  -help | --help | --hel | --he | -h)
957    ac_init_help=long ;;
958  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
959    ac_init_help=recursive ;;
960  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
961    ac_init_help=short ;;
962
963  -host | --host | --hos | --ho)
964    ac_prev=host_alias ;;
965  -host=* | --host=* | --hos=* | --ho=*)
966    host_alias=$ac_optarg ;;
967
968  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
969    ac_prev=htmldir ;;
970  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
971  | --ht=*)
972    htmldir=$ac_optarg ;;
973
974  -includedir | --includedir | --includedi | --included | --include \
975  | --includ | --inclu | --incl | --inc)
976    ac_prev=includedir ;;
977  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
978  | --includ=* | --inclu=* | --incl=* | --inc=*)
979    includedir=$ac_optarg ;;
980
981  -infodir | --infodir | --infodi | --infod | --info | --inf)
982    ac_prev=infodir ;;
983  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
984    infodir=$ac_optarg ;;
985
986  -libdir | --libdir | --libdi | --libd)
987    ac_prev=libdir ;;
988  -libdir=* | --libdir=* | --libdi=* | --libd=*)
989    libdir=$ac_optarg ;;
990
991  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
992  | --libexe | --libex | --libe)
993    ac_prev=libexecdir ;;
994  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
995  | --libexe=* | --libex=* | --libe=*)
996    libexecdir=$ac_optarg ;;
997
998  -localedir | --localedir | --localedi | --localed | --locale)
999    ac_prev=localedir ;;
1000  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1001    localedir=$ac_optarg ;;
1002
1003  -localstatedir | --localstatedir | --localstatedi | --localstated \
1004  | --localstate | --localstat | --localsta | --localst | --locals)
1005    ac_prev=localstatedir ;;
1006  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1007  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1008    localstatedir=$ac_optarg ;;
1009
1010  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1011    ac_prev=mandir ;;
1012  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1013    mandir=$ac_optarg ;;
1014
1015  -nfp | --nfp | --nf)
1016    # Obsolete; use --without-fp.
1017    with_fp=no ;;
1018
1019  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1020  | --no-cr | --no-c | -n)
1021    no_create=yes ;;
1022
1023  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1024  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1025    no_recursion=yes ;;
1026
1027  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1028  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1029  | --oldin | --oldi | --old | --ol | --o)
1030    ac_prev=oldincludedir ;;
1031  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1032  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1033  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1034    oldincludedir=$ac_optarg ;;
1035
1036  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1037    ac_prev=prefix ;;
1038  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1039    prefix=$ac_optarg ;;
1040
1041  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1042  | --program-pre | --program-pr | --program-p)
1043    ac_prev=program_prefix ;;
1044  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1045  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1046    program_prefix=$ac_optarg ;;
1047
1048  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1049  | --program-suf | --program-su | --program-s)
1050    ac_prev=program_suffix ;;
1051  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1052  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1053    program_suffix=$ac_optarg ;;
1054
1055  -program-transform-name | --program-transform-name \
1056  | --program-transform-nam | --program-transform-na \
1057  | --program-transform-n | --program-transform- \
1058  | --program-transform | --program-transfor \
1059  | --program-transfo | --program-transf \
1060  | --program-trans | --program-tran \
1061  | --progr-tra | --program-tr | --program-t)
1062    ac_prev=program_transform_name ;;
1063  -program-transform-name=* | --program-transform-name=* \
1064  | --program-transform-nam=* | --program-transform-na=* \
1065  | --program-transform-n=* | --program-transform-=* \
1066  | --program-transform=* | --program-transfor=* \
1067  | --program-transfo=* | --program-transf=* \
1068  | --program-trans=* | --program-tran=* \
1069  | --progr-tra=* | --program-tr=* | --program-t=*)
1070    program_transform_name=$ac_optarg ;;
1071
1072  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1073    ac_prev=pdfdir ;;
1074  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1075    pdfdir=$ac_optarg ;;
1076
1077  -psdir | --psdir | --psdi | --psd | --ps)
1078    ac_prev=psdir ;;
1079  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1080    psdir=$ac_optarg ;;
1081
1082  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1083  | -silent | --silent | --silen | --sile | --sil)
1084    silent=yes ;;
1085
1086  -runstatedir | --runstatedir | --runstatedi | --runstated \
1087  | --runstate | --runstat | --runsta | --runst | --runs \
1088  | --run | --ru | --r)
1089    ac_prev=runstatedir ;;
1090  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1091  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1092  | --run=* | --ru=* | --r=*)
1093    runstatedir=$ac_optarg ;;
1094
1095  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096    ac_prev=sbindir ;;
1097  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098  | --sbi=* | --sb=*)
1099    sbindir=$ac_optarg ;;
1100
1101  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1102  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1103  | --sharedst | --shareds | --shared | --share | --shar \
1104  | --sha | --sh)
1105    ac_prev=sharedstatedir ;;
1106  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1107  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1108  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109  | --sha=* | --sh=*)
1110    sharedstatedir=$ac_optarg ;;
1111
1112  -site | --site | --sit)
1113    ac_prev=site ;;
1114  -site=* | --site=* | --sit=*)
1115    site=$ac_optarg ;;
1116
1117  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118    ac_prev=srcdir ;;
1119  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1120    srcdir=$ac_optarg ;;
1121
1122  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1123  | --syscon | --sysco | --sysc | --sys | --sy)
1124    ac_prev=sysconfdir ;;
1125  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1126  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1127    sysconfdir=$ac_optarg ;;
1128
1129  -target | --target | --targe | --targ | --tar | --ta | --t)
1130    ac_prev=target_alias ;;
1131  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1132    target_alias=$ac_optarg ;;
1133
1134  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135    verbose=yes ;;
1136
1137  -version | --version | --versio | --versi | --vers | -V)
1138    ac_init_version=: ;;
1139
1140  -with-* | --with-*)
1141    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1142    # Reject names that are not valid shell variable names.
1143    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144      as_fn_error $? "invalid package name: \`$ac_useropt'"
1145    ac_useropt_orig=$ac_useropt
1146    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1147    case $ac_user_opts in
1148      *"
1149"with_$ac_useropt"
1150"*) ;;
1151      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1152	 ac_unrecognized_sep=', ';;
1153    esac
1154    eval with_$ac_useropt=\$ac_optarg ;;
1155
1156  -without-* | --without-*)
1157    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158    # Reject names that are not valid shell variable names.
1159    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160      as_fn_error $? "invalid package name: \`$ac_useropt'"
1161    ac_useropt_orig=$ac_useropt
1162    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1163    case $ac_user_opts in
1164      *"
1165"with_$ac_useropt"
1166"*) ;;
1167      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1168	 ac_unrecognized_sep=', ';;
1169    esac
1170    eval with_$ac_useropt=no ;;
1171
1172  --x)
1173    # Obsolete; use --with-x.
1174    with_x=yes ;;
1175
1176  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1177  | --x-incl | --x-inc | --x-in | --x-i)
1178    ac_prev=x_includes ;;
1179  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1180  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1181    x_includes=$ac_optarg ;;
1182
1183  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1184  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1185    ac_prev=x_libraries ;;
1186  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1187  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1188    x_libraries=$ac_optarg ;;
1189
1190  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1191Try \`$0 --help' for more information"
1192    ;;
1193
1194  *=*)
1195    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1196    # Reject names that are not valid shell variable names.
1197    case $ac_envvar in #(
1198      '' | [0-9]* | *[!_$as_cr_alnum]* )
1199      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1200    esac
1201    eval $ac_envvar=\$ac_optarg
1202    export $ac_envvar ;;
1203
1204  *)
1205    # FIXME: should be removed in autoconf 3.0.
1206    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1207    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1208      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1209    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1210    ;;
1211
1212  esac
1213done
1214
1215if test -n "$ac_prev"; then
1216  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1217  as_fn_error $? "missing argument to $ac_option"
1218fi
1219
1220if test -n "$ac_unrecognized_opts"; then
1221  case $enable_option_checking in
1222    no) ;;
1223    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1224    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1225  esac
1226fi
1227
1228# Check all directory arguments for consistency.
1229for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1230		datadir sysconfdir sharedstatedir localstatedir includedir \
1231		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1232		libdir localedir mandir runstatedir
1233do
1234  eval ac_val=\$$ac_var
1235  # Remove trailing slashes.
1236  case $ac_val in
1237    */ )
1238      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1239      eval $ac_var=\$ac_val;;
1240  esac
1241  # Be sure to have absolute directory names.
1242  case $ac_val in
1243    [\\/$]* | ?:[\\/]* )  continue;;
1244    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1245  esac
1246  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1247done
1248
1249# There might be people who depend on the old broken behavior: `$host'
1250# used to hold the argument of --host etc.
1251# FIXME: To remove some day.
1252build=$build_alias
1253host=$host_alias
1254target=$target_alias
1255
1256# FIXME: To remove some day.
1257if test "x$host_alias" != x; then
1258  if test "x$build_alias" = x; then
1259    cross_compiling=maybe
1260  elif test "x$build_alias" != "x$host_alias"; then
1261    cross_compiling=yes
1262  fi
1263fi
1264
1265ac_tool_prefix=
1266test -n "$host_alias" && ac_tool_prefix=$host_alias-
1267
1268test "$silent" = yes && exec 6>/dev/null
1269
1270
1271ac_pwd=`pwd` && test -n "$ac_pwd" &&
1272ac_ls_di=`ls -di .` &&
1273ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1274  as_fn_error $? "working directory cannot be determined"
1275test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1276  as_fn_error $? "pwd does not report name of working directory"
1277
1278
1279# Find the source files, if location was not specified.
1280if test -z "$srcdir"; then
1281  ac_srcdir_defaulted=yes
1282  # Try the directory containing this script, then the parent directory.
1283  ac_confdir=`$as_dirname -- "$as_myself" ||
1284$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1285	 X"$as_myself" : 'X\(//\)[^/]' \| \
1286	 X"$as_myself" : 'X\(//\)$' \| \
1287	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1288printf "%s\n" X"$as_myself" |
1289    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1290	    s//\1/
1291	    q
1292	  }
1293	  /^X\(\/\/\)[^/].*/{
1294	    s//\1/
1295	    q
1296	  }
1297	  /^X\(\/\/\)$/{
1298	    s//\1/
1299	    q
1300	  }
1301	  /^X\(\/\).*/{
1302	    s//\1/
1303	    q
1304	  }
1305	  s/.*/./; q'`
1306  srcdir=$ac_confdir
1307  if test ! -r "$srcdir/$ac_unique_file"; then
1308    srcdir=..
1309  fi
1310else
1311  ac_srcdir_defaulted=no
1312fi
1313if test ! -r "$srcdir/$ac_unique_file"; then
1314  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1315  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1316fi
1317ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1318ac_abs_confdir=`(
1319	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1320	pwd)`
1321# When building in place, set srcdir=.
1322if test "$ac_abs_confdir" = "$ac_pwd"; then
1323  srcdir=.
1324fi
1325# Remove unnecessary trailing slashes from srcdir.
1326# Double slashes in file names in object file debugging info
1327# mess up M-x gdb in Emacs.
1328case $srcdir in
1329*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1330esac
1331for ac_var in $ac_precious_vars; do
1332  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1333  eval ac_env_${ac_var}_value=\$${ac_var}
1334  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1335  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1336done
1337
1338#
1339# Report the --help message.
1340#
1341if test "$ac_init_help" = "long"; then
1342  # Omit some internal or obsolete options to make the list less imposing.
1343  # This message is too long to be a string in the A/UX 3.1 sh.
1344  cat <<_ACEOF
1345\`configure' configures xev 1.2.5 to adapt to many kinds of systems.
1346
1347Usage: $0 [OPTION]... [VAR=VALUE]...
1348
1349To assign environment variables (e.g., CC, CFLAGS...), specify them as
1350VAR=VALUE.  See below for descriptions of some of the useful variables.
1351
1352Defaults for the options are specified in brackets.
1353
1354Configuration:
1355  -h, --help              display this help and exit
1356      --help=short        display options specific to this package
1357      --help=recursive    display the short help of all the included packages
1358  -V, --version           display version information and exit
1359  -q, --quiet, --silent   do not print \`checking ...' messages
1360      --cache-file=FILE   cache test results in FILE [disabled]
1361  -C, --config-cache      alias for \`--cache-file=config.cache'
1362  -n, --no-create         do not create output files
1363      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1364
1365Installation directories:
1366  --prefix=PREFIX         install architecture-independent files in PREFIX
1367                          [$ac_default_prefix]
1368  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1369                          [PREFIX]
1370
1371By default, \`make install' will install all the files in
1372\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1373an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1374for instance \`--prefix=\$HOME'.
1375
1376For better control, use the options below.
1377
1378Fine tuning of the installation directories:
1379  --bindir=DIR            user executables [EPREFIX/bin]
1380  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1381  --libexecdir=DIR        program executables [EPREFIX/libexec]
1382  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1383  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1384  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1385  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1386  --libdir=DIR            object code libraries [EPREFIX/lib]
1387  --includedir=DIR        C header files [PREFIX/include]
1388  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1389  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1390  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1391  --infodir=DIR           info documentation [DATAROOTDIR/info]
1392  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1393  --mandir=DIR            man documentation [DATAROOTDIR/man]
1394  --docdir=DIR            documentation root [DATAROOTDIR/doc/xev]
1395  --htmldir=DIR           html documentation [DOCDIR]
1396  --dvidir=DIR            dvi documentation [DOCDIR]
1397  --pdfdir=DIR            pdf documentation [DOCDIR]
1398  --psdir=DIR             ps documentation [DOCDIR]
1399_ACEOF
1400
1401  cat <<\_ACEOF
1402
1403Program names:
1404  --program-prefix=PREFIX            prepend PREFIX to installed program names
1405  --program-suffix=SUFFIX            append SUFFIX to installed program names
1406  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1407
1408System types:
1409  --build=BUILD     configure for building on BUILD [guessed]
1410  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1411_ACEOF
1412fi
1413
1414if test -n "$ac_init_help"; then
1415  case $ac_init_help in
1416     short | recursive ) echo "Configuration of xev 1.2.5:";;
1417   esac
1418  cat <<\_ACEOF
1419
1420Optional Features:
1421  --disable-option-checking  ignore unrecognized --enable/--with options
1422  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1423  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1424  --enable-dependency-tracking
1425                          do not reject slow dependency extractors
1426  --disable-dependency-tracking
1427                          speeds up one-time build
1428  --enable-silent-rules   less verbose build output (undo: "make V=1")
1429  --disable-silent-rules  verbose build output (undo: "make V=0")
1430  --disable-selective-werror
1431                          Turn off selective compiler errors. (default:
1432                          enabled)
1433  --enable-strict-compilation
1434                          Enable all warnings from compiler and make them
1435                          errors (default: disabled)
1436
1437Some influential environment variables:
1438  CC          C compiler command
1439  CFLAGS      C compiler flags
1440  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1441              nonstandard directory <lib dir>
1442  LIBS        libraries to pass to the linker, e.g. -l<library>
1443  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1444              you have headers in a nonstandard directory <include dir>
1445  PKG_CONFIG  path to pkg-config utility
1446  PKG_CONFIG_PATH
1447              directories to add to pkg-config's search path
1448  PKG_CONFIG_LIBDIR
1449              path overriding pkg-config's built-in search path
1450  XEV_CFLAGS  C compiler flags for XEV, overriding pkg-config
1451  XEV_LIBS    linker flags for XEV, overriding pkg-config
1452
1453Use these variables to override the choices made by `configure' or to help
1454it to find libraries and programs with nonstandard names/locations.
1455
1456Report bugs to <https://gitlab.freedesktop.org/xorg/app/xev/issues>.
1457_ACEOF
1458ac_status=$?
1459fi
1460
1461if test "$ac_init_help" = "recursive"; then
1462  # If there are subdirs, report their specific --help.
1463  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1464    test -d "$ac_dir" ||
1465      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1466      continue
1467    ac_builddir=.
1468
1469case "$ac_dir" in
1470.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471*)
1472  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1473  # A ".." for each directory in $ac_dir_suffix.
1474  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1475  case $ac_top_builddir_sub in
1476  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1478  esac ;;
1479esac
1480ac_abs_top_builddir=$ac_pwd
1481ac_abs_builddir=$ac_pwd$ac_dir_suffix
1482# for backward compatibility:
1483ac_top_builddir=$ac_top_build_prefix
1484
1485case $srcdir in
1486  .)  # We are building in place.
1487    ac_srcdir=.
1488    ac_top_srcdir=$ac_top_builddir_sub
1489    ac_abs_top_srcdir=$ac_pwd ;;
1490  [\\/]* | ?:[\\/]* )  # Absolute name.
1491    ac_srcdir=$srcdir$ac_dir_suffix;
1492    ac_top_srcdir=$srcdir
1493    ac_abs_top_srcdir=$srcdir ;;
1494  *) # Relative name.
1495    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1496    ac_top_srcdir=$ac_top_build_prefix$srcdir
1497    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1498esac
1499ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1500
1501    cd "$ac_dir" || { ac_status=$?; continue; }
1502    # Check for configure.gnu first; this name is used for a wrapper for
1503    # Metaconfig's "Configure" on case-insensitive file systems.
1504    if test -f "$ac_srcdir/configure.gnu"; then
1505      echo &&
1506      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1507    elif test -f "$ac_srcdir/configure"; then
1508      echo &&
1509      $SHELL "$ac_srcdir/configure" --help=recursive
1510    else
1511      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1512    fi || ac_status=$?
1513    cd "$ac_pwd" || { ac_status=$?; break; }
1514  done
1515fi
1516
1517test -n "$ac_init_help" && exit $ac_status
1518if $ac_init_version; then
1519  cat <<\_ACEOF
1520xev configure 1.2.5
1521generated by GNU Autoconf 2.71
1522
1523Copyright (C) 2021 Free Software Foundation, Inc.
1524This configure script is free software; the Free Software Foundation
1525gives unlimited permission to copy, distribute and modify it.
1526_ACEOF
1527  exit
1528fi
1529
1530## ------------------------ ##
1531## Autoconf initialization. ##
1532## ------------------------ ##
1533
1534# ac_fn_c_try_compile LINENO
1535# --------------------------
1536# Try to compile conftest.$ac_ext, and return whether this succeeded.
1537ac_fn_c_try_compile ()
1538{
1539  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1540  rm -f conftest.$ac_objext conftest.beam
1541  if { { ac_try="$ac_compile"
1542case "(($ac_try" in
1543  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1544  *) ac_try_echo=$ac_try;;
1545esac
1546eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1547printf "%s\n" "$ac_try_echo"; } >&5
1548  (eval "$ac_compile") 2>conftest.err
1549  ac_status=$?
1550  if test -s conftest.err; then
1551    grep -v '^ *+' conftest.err >conftest.er1
1552    cat conftest.er1 >&5
1553    mv -f conftest.er1 conftest.err
1554  fi
1555  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1556  test $ac_status = 0; } && {
1557	 test -z "$ac_c_werror_flag" ||
1558	 test ! -s conftest.err
1559       } && test -s conftest.$ac_objext
1560then :
1561  ac_retval=0
1562else $as_nop
1563  printf "%s\n" "$as_me: failed program was:" >&5
1564sed 's/^/| /' conftest.$ac_ext >&5
1565
1566	ac_retval=1
1567fi
1568  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1569  as_fn_set_status $ac_retval
1570
1571} # ac_fn_c_try_compile
1572
1573# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1574# -------------------------------------------------------
1575# Tests whether HEADER exists and can be compiled using the include files in
1576# INCLUDES, setting the cache variable VAR accordingly.
1577ac_fn_c_check_header_compile ()
1578{
1579  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1581printf %s "checking for $2... " >&6; }
1582if eval test \${$3+y}
1583then :
1584  printf %s "(cached) " >&6
1585else $as_nop
1586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1587/* end confdefs.h.  */
1588$4
1589#include <$2>
1590_ACEOF
1591if ac_fn_c_try_compile "$LINENO"
1592then :
1593  eval "$3=yes"
1594else $as_nop
1595  eval "$3=no"
1596fi
1597rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1598fi
1599eval ac_res=\$$3
1600	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1601printf "%s\n" "$ac_res" >&6; }
1602  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603
1604} # ac_fn_c_check_header_compile
1605
1606# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1607# ------------------------------------------------------------------
1608# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1609# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1610ac_fn_check_decl ()
1611{
1612  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613  as_decl_name=`echo $2|sed 's/ *(.*//'`
1614  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1615printf %s "checking whether $as_decl_name is declared... " >&6; }
1616if eval test \${$3+y}
1617then :
1618  printf %s "(cached) " >&6
1619else $as_nop
1620  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1621  eval ac_save_FLAGS=\$$6
1622  as_fn_append $6 " $5"
1623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1624/* end confdefs.h.  */
1625$4
1626int
1627main (void)
1628{
1629#ifndef $as_decl_name
1630#ifdef __cplusplus
1631  (void) $as_decl_use;
1632#else
1633  (void) $as_decl_name;
1634#endif
1635#endif
1636
1637  ;
1638  return 0;
1639}
1640_ACEOF
1641if ac_fn_c_try_compile "$LINENO"
1642then :
1643  eval "$3=yes"
1644else $as_nop
1645  eval "$3=no"
1646fi
1647rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1648  eval $6=\$ac_save_FLAGS
1649
1650fi
1651eval ac_res=\$$3
1652	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1653printf "%s\n" "$ac_res" >&6; }
1654  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655
1656} # ac_fn_check_decl
1657
1658# ac_fn_c_try_link LINENO
1659# -----------------------
1660# Try to link conftest.$ac_ext, and return whether this succeeded.
1661ac_fn_c_try_link ()
1662{
1663  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1665  if { { ac_try="$ac_link"
1666case "(($ac_try" in
1667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668  *) ac_try_echo=$ac_try;;
1669esac
1670eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671printf "%s\n" "$ac_try_echo"; } >&5
1672  (eval "$ac_link") 2>conftest.err
1673  ac_status=$?
1674  if test -s conftest.err; then
1675    grep -v '^ *+' conftest.err >conftest.er1
1676    cat conftest.er1 >&5
1677    mv -f conftest.er1 conftest.err
1678  fi
1679  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680  test $ac_status = 0; } && {
1681	 test -z "$ac_c_werror_flag" ||
1682	 test ! -s conftest.err
1683       } && test -s conftest$ac_exeext && {
1684	 test "$cross_compiling" = yes ||
1685	 test -x conftest$ac_exeext
1686       }
1687then :
1688  ac_retval=0
1689else $as_nop
1690  printf "%s\n" "$as_me: failed program was:" >&5
1691sed 's/^/| /' conftest.$ac_ext >&5
1692
1693	ac_retval=1
1694fi
1695  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1696  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1697  # interfere with the next link command; also delete a directory that is
1698  # left behind by Apple's compiler.  We do this before executing the actions.
1699  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1700  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701  as_fn_set_status $ac_retval
1702
1703} # ac_fn_c_try_link
1704ac_configure_args_raw=
1705for ac_arg
1706do
1707  case $ac_arg in
1708  *\'*)
1709    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1710  esac
1711  as_fn_append ac_configure_args_raw " '$ac_arg'"
1712done
1713
1714case $ac_configure_args_raw in
1715  *$as_nl*)
1716    ac_safe_unquote= ;;
1717  *)
1718    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1719    ac_unsafe_a="$ac_unsafe_z#~"
1720    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1721    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1722esac
1723
1724cat >config.log <<_ACEOF
1725This file contains any messages produced by compilers while
1726running configure, to aid debugging if configure makes a mistake.
1727
1728It was created by xev $as_me 1.2.5, which was
1729generated by GNU Autoconf 2.71.  Invocation command line was
1730
1731  $ $0$ac_configure_args_raw
1732
1733_ACEOF
1734exec 5>>config.log
1735{
1736cat <<_ASUNAME
1737## --------- ##
1738## Platform. ##
1739## --------- ##
1740
1741hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1742uname -m = `(uname -m) 2>/dev/null || echo unknown`
1743uname -r = `(uname -r) 2>/dev/null || echo unknown`
1744uname -s = `(uname -s) 2>/dev/null || echo unknown`
1745uname -v = `(uname -v) 2>/dev/null || echo unknown`
1746
1747/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1748/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1749
1750/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1751/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1752/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1753/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1754/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1755/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1756/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1757
1758_ASUNAME
1759
1760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1761for as_dir in $PATH
1762do
1763  IFS=$as_save_IFS
1764  case $as_dir in #(((
1765    '') as_dir=./ ;;
1766    */) ;;
1767    *) as_dir=$as_dir/ ;;
1768  esac
1769    printf "%s\n" "PATH: $as_dir"
1770  done
1771IFS=$as_save_IFS
1772
1773} >&5
1774
1775cat >&5 <<_ACEOF
1776
1777
1778## ----------- ##
1779## Core tests. ##
1780## ----------- ##
1781
1782_ACEOF
1783
1784
1785# Keep a trace of the command line.
1786# Strip out --no-create and --no-recursion so they do not pile up.
1787# Strip out --silent because we don't want to record it for future runs.
1788# Also quote any args containing shell meta-characters.
1789# Make two passes to allow for proper duplicate-argument suppression.
1790ac_configure_args=
1791ac_configure_args0=
1792ac_configure_args1=
1793ac_must_keep_next=false
1794for ac_pass in 1 2
1795do
1796  for ac_arg
1797  do
1798    case $ac_arg in
1799    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1800    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1801    | -silent | --silent | --silen | --sile | --sil)
1802      continue ;;
1803    *\'*)
1804      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1805    esac
1806    case $ac_pass in
1807    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1808    2)
1809      as_fn_append ac_configure_args1 " '$ac_arg'"
1810      if test $ac_must_keep_next = true; then
1811	ac_must_keep_next=false # Got value, back to normal.
1812      else
1813	case $ac_arg in
1814	  *=* | --config-cache | -C | -disable-* | --disable-* \
1815	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1816	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1817	  | -with-* | --with-* | -without-* | --without-* | --x)
1818	    case "$ac_configure_args0 " in
1819	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1820	    esac
1821	    ;;
1822	  -* ) ac_must_keep_next=true ;;
1823	esac
1824      fi
1825      as_fn_append ac_configure_args " '$ac_arg'"
1826      ;;
1827    esac
1828  done
1829done
1830{ ac_configure_args0=; unset ac_configure_args0;}
1831{ ac_configure_args1=; unset ac_configure_args1;}
1832
1833# When interrupted or exit'd, cleanup temporary files, and complete
1834# config.log.  We remove comments because anyway the quotes in there
1835# would cause problems or look ugly.
1836# WARNING: Use '\'' to represent an apostrophe within the trap.
1837# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1838trap 'exit_status=$?
1839  # Sanitize IFS.
1840  IFS=" ""	$as_nl"
1841  # Save into config.log some information that might help in debugging.
1842  {
1843    echo
1844
1845    printf "%s\n" "## ---------------- ##
1846## Cache variables. ##
1847## ---------------- ##"
1848    echo
1849    # The following way of writing the cache mishandles newlines in values,
1850(
1851  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1852    eval ac_val=\$$ac_var
1853    case $ac_val in #(
1854    *${as_nl}*)
1855      case $ac_var in #(
1856      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1857printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1858      esac
1859      case $ac_var in #(
1860      _ | IFS | as_nl) ;; #(
1861      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1862      *) { eval $ac_var=; unset $ac_var;} ;;
1863      esac ;;
1864    esac
1865  done
1866  (set) 2>&1 |
1867    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1868    *${as_nl}ac_space=\ *)
1869      sed -n \
1870	"s/'\''/'\''\\\\'\'''\''/g;
1871	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1872      ;; #(
1873    *)
1874      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1875      ;;
1876    esac |
1877    sort
1878)
1879    echo
1880
1881    printf "%s\n" "## ----------------- ##
1882## Output variables. ##
1883## ----------------- ##"
1884    echo
1885    for ac_var in $ac_subst_vars
1886    do
1887      eval ac_val=\$$ac_var
1888      case $ac_val in
1889      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1890      esac
1891      printf "%s\n" "$ac_var='\''$ac_val'\''"
1892    done | sort
1893    echo
1894
1895    if test -n "$ac_subst_files"; then
1896      printf "%s\n" "## ------------------- ##
1897## File substitutions. ##
1898## ------------------- ##"
1899      echo
1900      for ac_var in $ac_subst_files
1901      do
1902	eval ac_val=\$$ac_var
1903	case $ac_val in
1904	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1905	esac
1906	printf "%s\n" "$ac_var='\''$ac_val'\''"
1907      done | sort
1908      echo
1909    fi
1910
1911    if test -s confdefs.h; then
1912      printf "%s\n" "## ----------- ##
1913## confdefs.h. ##
1914## ----------- ##"
1915      echo
1916      cat confdefs.h
1917      echo
1918    fi
1919    test "$ac_signal" != 0 &&
1920      printf "%s\n" "$as_me: caught signal $ac_signal"
1921    printf "%s\n" "$as_me: exit $exit_status"
1922  } >&5
1923  rm -f core *.core core.conftest.* &&
1924    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1925    exit $exit_status
1926' 0
1927for ac_signal in 1 2 13 15; do
1928  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1929done
1930ac_signal=0
1931
1932# confdefs.h avoids OS command line length limits that DEFS can exceed.
1933rm -f -r conftest* confdefs.h
1934
1935printf "%s\n" "/* confdefs.h */" > confdefs.h
1936
1937# Predefined preprocessor variables.
1938
1939printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1940
1941printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1942
1943printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1944
1945printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1946
1947printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1948
1949printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1950
1951
1952# Let the site file select an alternate cache file if it wants to.
1953# Prefer an explicitly selected file to automatically selected ones.
1954if test -n "$CONFIG_SITE"; then
1955  ac_site_files="$CONFIG_SITE"
1956elif test "x$prefix" != xNONE; then
1957  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1958else
1959  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1960fi
1961
1962for ac_site_file in $ac_site_files
1963do
1964  case $ac_site_file in #(
1965  */*) :
1966     ;; #(
1967  *) :
1968    ac_site_file=./$ac_site_file ;;
1969esac
1970  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1971    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1972printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1973    sed 's/^/| /' "$ac_site_file" >&5
1974    . "$ac_site_file" \
1975      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1976printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1977as_fn_error $? "failed to load site script $ac_site_file
1978See \`config.log' for more details" "$LINENO" 5; }
1979  fi
1980done
1981
1982if test -r "$cache_file"; then
1983  # Some versions of bash will fail to source /dev/null (special files
1984  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1985  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1986    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1987printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1988    case $cache_file in
1989      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1990      *)                      . "./$cache_file";;
1991    esac
1992  fi
1993else
1994  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1995printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1996  >$cache_file
1997fi
1998
1999as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2000# Test code for whether the C compiler supports C89 (global declarations)
2001ac_c_conftest_c89_globals='
2002/* Does the compiler advertise C89 conformance?
2003   Do not test the value of __STDC__, because some compilers set it to 0
2004   while being otherwise adequately conformant. */
2005#if !defined __STDC__
2006# error "Compiler does not advertise C89 conformance"
2007#endif
2008
2009#include <stddef.h>
2010#include <stdarg.h>
2011struct stat;
2012/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2013struct buf { int x; };
2014struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2015static char *e (p, i)
2016     char **p;
2017     int i;
2018{
2019  return p[i];
2020}
2021static char *f (char * (*g) (char **, int), char **p, ...)
2022{
2023  char *s;
2024  va_list v;
2025  va_start (v,p);
2026  s = g (p, va_arg (v,int));
2027  va_end (v);
2028  return s;
2029}
2030
2031/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2032   function prototypes and stuff, but not \xHH hex character constants.
2033   These do not provoke an error unfortunately, instead are silently treated
2034   as an "x".  The following induces an error, until -std is added to get
2035   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2036   array size at least.  It is necessary to write \x00 == 0 to get something
2037   that is true only with -std.  */
2038int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2039
2040/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2041   inside strings and character constants.  */
2042#define FOO(x) '\''x'\''
2043int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2044
2045int test (int i, double x);
2046struct s1 {int (*f) (int a);};
2047struct s2 {int (*f) (double a);};
2048int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2049               int, int);'
2050
2051# Test code for whether the C compiler supports C89 (body of main).
2052ac_c_conftest_c89_main='
2053ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2054'
2055
2056# Test code for whether the C compiler supports C99 (global declarations)
2057ac_c_conftest_c99_globals='
2058// Does the compiler advertise C99 conformance?
2059#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2060# error "Compiler does not advertise C99 conformance"
2061#endif
2062
2063#include <stdbool.h>
2064extern int puts (const char *);
2065extern int printf (const char *, ...);
2066extern int dprintf (int, const char *, ...);
2067extern void *malloc (size_t);
2068
2069// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2070// dprintf is used instead of fprintf to avoid needing to declare
2071// FILE and stderr.
2072#define debug(...) dprintf (2, __VA_ARGS__)
2073#define showlist(...) puts (#__VA_ARGS__)
2074#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2075static void
2076test_varargs_macros (void)
2077{
2078  int x = 1234;
2079  int y = 5678;
2080  debug ("Flag");
2081  debug ("X = %d\n", x);
2082  showlist (The first, second, and third items.);
2083  report (x>y, "x is %d but y is %d", x, y);
2084}
2085
2086// Check long long types.
2087#define BIG64 18446744073709551615ull
2088#define BIG32 4294967295ul
2089#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2090#if !BIG_OK
2091  #error "your preprocessor is broken"
2092#endif
2093#if BIG_OK
2094#else
2095  #error "your preprocessor is broken"
2096#endif
2097static long long int bignum = -9223372036854775807LL;
2098static unsigned long long int ubignum = BIG64;
2099
2100struct incomplete_array
2101{
2102  int datasize;
2103  double data[];
2104};
2105
2106struct named_init {
2107  int number;
2108  const wchar_t *name;
2109  double average;
2110};
2111
2112typedef const char *ccp;
2113
2114static inline int
2115test_restrict (ccp restrict text)
2116{
2117  // See if C++-style comments work.
2118  // Iterate through items via the restricted pointer.
2119  // Also check for declarations in for loops.
2120  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2121    continue;
2122  return 0;
2123}
2124
2125// Check varargs and va_copy.
2126static bool
2127test_varargs (const char *format, ...)
2128{
2129  va_list args;
2130  va_start (args, format);
2131  va_list args_copy;
2132  va_copy (args_copy, args);
2133
2134  const char *str = "";
2135  int number = 0;
2136  float fnumber = 0;
2137
2138  while (*format)
2139    {
2140      switch (*format++)
2141	{
2142	case '\''s'\'': // string
2143	  str = va_arg (args_copy, const char *);
2144	  break;
2145	case '\''d'\'': // int
2146	  number = va_arg (args_copy, int);
2147	  break;
2148	case '\''f'\'': // float
2149	  fnumber = va_arg (args_copy, double);
2150	  break;
2151	default:
2152	  break;
2153	}
2154    }
2155  va_end (args_copy);
2156  va_end (args);
2157
2158  return *str && number && fnumber;
2159}
2160'
2161
2162# Test code for whether the C compiler supports C99 (body of main).
2163ac_c_conftest_c99_main='
2164  // Check bool.
2165  _Bool success = false;
2166  success |= (argc != 0);
2167
2168  // Check restrict.
2169  if (test_restrict ("String literal") == 0)
2170    success = true;
2171  char *restrict newvar = "Another string";
2172
2173  // Check varargs.
2174  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2175  test_varargs_macros ();
2176
2177  // Check flexible array members.
2178  struct incomplete_array *ia =
2179    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2180  ia->datasize = 10;
2181  for (int i = 0; i < ia->datasize; ++i)
2182    ia->data[i] = i * 1.234;
2183
2184  // Check named initializers.
2185  struct named_init ni = {
2186    .number = 34,
2187    .name = L"Test wide string",
2188    .average = 543.34343,
2189  };
2190
2191  ni.number = 58;
2192
2193  int dynamic_array[ni.number];
2194  dynamic_array[0] = argv[0][0];
2195  dynamic_array[ni.number - 1] = 543;
2196
2197  // work around unused variable warnings
2198  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2199	 || dynamic_array[ni.number - 1] != 543);
2200'
2201
2202# Test code for whether the C compiler supports C11 (global declarations)
2203ac_c_conftest_c11_globals='
2204// Does the compiler advertise C11 conformance?
2205#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2206# error "Compiler does not advertise C11 conformance"
2207#endif
2208
2209// Check _Alignas.
2210char _Alignas (double) aligned_as_double;
2211char _Alignas (0) no_special_alignment;
2212extern char aligned_as_int;
2213char _Alignas (0) _Alignas (int) aligned_as_int;
2214
2215// Check _Alignof.
2216enum
2217{
2218  int_alignment = _Alignof (int),
2219  int_array_alignment = _Alignof (int[100]),
2220  char_alignment = _Alignof (char)
2221};
2222_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2223
2224// Check _Noreturn.
2225int _Noreturn does_not_return (void) { for (;;) continue; }
2226
2227// Check _Static_assert.
2228struct test_static_assert
2229{
2230  int x;
2231  _Static_assert (sizeof (int) <= sizeof (long int),
2232                  "_Static_assert does not work in struct");
2233  long int y;
2234};
2235
2236// Check UTF-8 literals.
2237#define u8 syntax error!
2238char const utf8_literal[] = u8"happens to be ASCII" "another string";
2239
2240// Check duplicate typedefs.
2241typedef long *long_ptr;
2242typedef long int *long_ptr;
2243typedef long_ptr long_ptr;
2244
2245// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2246struct anonymous
2247{
2248  union {
2249    struct { int i; int j; };
2250    struct { int k; long int l; } w;
2251  };
2252  int m;
2253} v1;
2254'
2255
2256# Test code for whether the C compiler supports C11 (body of main).
2257ac_c_conftest_c11_main='
2258  _Static_assert ((offsetof (struct anonymous, i)
2259		   == offsetof (struct anonymous, w.k)),
2260		  "Anonymous union alignment botch");
2261  v1.i = 2;
2262  v1.w.k = 5;
2263  ok |= v1.i != 5;
2264'
2265
2266# Test code for whether the C compiler supports C11 (complete).
2267ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2268${ac_c_conftest_c99_globals}
2269${ac_c_conftest_c11_globals}
2270
2271int
2272main (int argc, char **argv)
2273{
2274  int ok = 0;
2275  ${ac_c_conftest_c89_main}
2276  ${ac_c_conftest_c99_main}
2277  ${ac_c_conftest_c11_main}
2278  return ok;
2279}
2280"
2281
2282# Test code for whether the C compiler supports C99 (complete).
2283ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2284${ac_c_conftest_c99_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  return ok;
2293}
2294"
2295
2296# Test code for whether the C compiler supports C89 (complete).
2297ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2298
2299int
2300main (int argc, char **argv)
2301{
2302  int ok = 0;
2303  ${ac_c_conftest_c89_main}
2304  return ok;
2305}
2306"
2307
2308as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2309as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2310as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2311as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2312as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2313as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2314as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2315as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2316as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2317as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2318
2319# Auxiliary files required by this configure script.
2320ac_aux_files="config.guess config.sub missing install-sh compile"
2321
2322# Locations in which to look for auxiliary files.
2323ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2324
2325# Search for a directory containing all of the required auxiliary files,
2326# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2327# If we don't find one directory that contains all the files we need,
2328# we report the set of missing files from the *first* directory in
2329# $ac_aux_dir_candidates and give up.
2330ac_missing_aux_files=""
2331ac_first_candidate=:
2332printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334as_found=false
2335for as_dir in $ac_aux_dir_candidates
2336do
2337  IFS=$as_save_IFS
2338  case $as_dir in #(((
2339    '') as_dir=./ ;;
2340    */) ;;
2341    *) as_dir=$as_dir/ ;;
2342  esac
2343  as_found=:
2344
2345  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2346  ac_aux_dir_found=yes
2347  ac_install_sh=
2348  for ac_aux in $ac_aux_files
2349  do
2350    # As a special case, if "install-sh" is required, that requirement
2351    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2352    # and $ac_install_sh is set appropriately for whichever one is found.
2353    if test x"$ac_aux" = x"install-sh"
2354    then
2355      if test -f "${as_dir}install-sh"; then
2356        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2357        ac_install_sh="${as_dir}install-sh -c"
2358      elif test -f "${as_dir}install.sh"; then
2359        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2360        ac_install_sh="${as_dir}install.sh -c"
2361      elif test -f "${as_dir}shtool"; then
2362        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2363        ac_install_sh="${as_dir}shtool install -c"
2364      else
2365        ac_aux_dir_found=no
2366        if $ac_first_candidate; then
2367          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2368        else
2369          break
2370        fi
2371      fi
2372    else
2373      if test -f "${as_dir}${ac_aux}"; then
2374        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2375      else
2376        ac_aux_dir_found=no
2377        if $ac_first_candidate; then
2378          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2379        else
2380          break
2381        fi
2382      fi
2383    fi
2384  done
2385  if test "$ac_aux_dir_found" = yes; then
2386    ac_aux_dir="$as_dir"
2387    break
2388  fi
2389  ac_first_candidate=false
2390
2391  as_found=false
2392done
2393IFS=$as_save_IFS
2394if $as_found
2395then :
2396
2397else $as_nop
2398  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2399fi
2400
2401
2402# These three variables are undocumented and unsupported,
2403# and are intended to be withdrawn in a future Autoconf release.
2404# They can cause serious problems if a builder's source tree is in a directory
2405# whose full name contains unusual characters.
2406if test -f "${ac_aux_dir}config.guess"; then
2407  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2408fi
2409if test -f "${ac_aux_dir}config.sub"; then
2410  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2411fi
2412if test -f "$ac_aux_dir/configure"; then
2413  ac_configure="$SHELL ${ac_aux_dir}configure"
2414fi
2415
2416# Check that the precious variables saved in the cache have kept the same
2417# value.
2418ac_cache_corrupted=false
2419for ac_var in $ac_precious_vars; do
2420  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2421  eval ac_new_set=\$ac_env_${ac_var}_set
2422  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2423  eval ac_new_val=\$ac_env_${ac_var}_value
2424  case $ac_old_set,$ac_new_set in
2425    set,)
2426      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2427printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2428      ac_cache_corrupted=: ;;
2429    ,set)
2430      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2431printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2432      ac_cache_corrupted=: ;;
2433    ,);;
2434    *)
2435      if test "x$ac_old_val" != "x$ac_new_val"; then
2436	# differences in whitespace do not lead to failure.
2437	ac_old_val_w=`echo x $ac_old_val`
2438	ac_new_val_w=`echo x $ac_new_val`
2439	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2440	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2441printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2442	  ac_cache_corrupted=:
2443	else
2444	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2445printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2446	  eval $ac_var=\$ac_old_val
2447	fi
2448	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2449printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2450	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2451printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2452      fi;;
2453  esac
2454  # Pass precious variables to config.status.
2455  if test "$ac_new_set" = set; then
2456    case $ac_new_val in
2457    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2458    *) ac_arg=$ac_var=$ac_new_val ;;
2459    esac
2460    case " $ac_configure_args " in
2461      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2462      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2463    esac
2464  fi
2465done
2466if $ac_cache_corrupted; then
2467  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2468printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2469  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2470printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2471  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2472	    and start over" "$LINENO" 5
2473fi
2474## -------------------- ##
2475## Main body of script. ##
2476## -------------------- ##
2477
2478ac_ext=c
2479ac_cpp='$CPP $CPPFLAGS'
2480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2482ac_compiler_gnu=$ac_cv_c_compiler_gnu
2483
2484
2485
2486ac_config_headers="$ac_config_headers config.h"
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499# Expand $ac_aux_dir to an absolute path.
2500am_aux_dir=`cd "$ac_aux_dir" && pwd`
2501
2502ac_ext=c
2503ac_cpp='$CPP $CPPFLAGS'
2504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2506ac_compiler_gnu=$ac_cv_c_compiler_gnu
2507if test -n "$ac_tool_prefix"; then
2508  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2509set dummy ${ac_tool_prefix}gcc; ac_word=$2
2510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2511printf %s "checking for $ac_word... " >&6; }
2512if test ${ac_cv_prog_CC+y}
2513then :
2514  printf %s "(cached) " >&6
2515else $as_nop
2516  if test -n "$CC"; then
2517  ac_cv_prog_CC="$CC" # Let the user override the test.
2518else
2519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520for as_dir in $PATH
2521do
2522  IFS=$as_save_IFS
2523  case $as_dir in #(((
2524    '') as_dir=./ ;;
2525    */) ;;
2526    *) as_dir=$as_dir/ ;;
2527  esac
2528    for ac_exec_ext in '' $ac_executable_extensions; do
2529  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2530    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2531    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2532    break 2
2533  fi
2534done
2535  done
2536IFS=$as_save_IFS
2537
2538fi
2539fi
2540CC=$ac_cv_prog_CC
2541if test -n "$CC"; then
2542  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2543printf "%s\n" "$CC" >&6; }
2544else
2545  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2546printf "%s\n" "no" >&6; }
2547fi
2548
2549
2550fi
2551if test -z "$ac_cv_prog_CC"; then
2552  ac_ct_CC=$CC
2553  # Extract the first word of "gcc", so it can be a program name with args.
2554set dummy gcc; ac_word=$2
2555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2556printf %s "checking for $ac_word... " >&6; }
2557if test ${ac_cv_prog_ac_ct_CC+y}
2558then :
2559  printf %s "(cached) " >&6
2560else $as_nop
2561  if test -n "$ac_ct_CC"; then
2562  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2563else
2564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565for as_dir in $PATH
2566do
2567  IFS=$as_save_IFS
2568  case $as_dir in #(((
2569    '') as_dir=./ ;;
2570    */) ;;
2571    *) as_dir=$as_dir/ ;;
2572  esac
2573    for ac_exec_ext in '' $ac_executable_extensions; do
2574  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2575    ac_cv_prog_ac_ct_CC="gcc"
2576    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2577    break 2
2578  fi
2579done
2580  done
2581IFS=$as_save_IFS
2582
2583fi
2584fi
2585ac_ct_CC=$ac_cv_prog_ac_ct_CC
2586if test -n "$ac_ct_CC"; then
2587  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2588printf "%s\n" "$ac_ct_CC" >&6; }
2589else
2590  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2591printf "%s\n" "no" >&6; }
2592fi
2593
2594  if test "x$ac_ct_CC" = x; then
2595    CC=""
2596  else
2597    case $cross_compiling:$ac_tool_warned in
2598yes:)
2599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2600printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2601ac_tool_warned=yes ;;
2602esac
2603    CC=$ac_ct_CC
2604  fi
2605else
2606  CC="$ac_cv_prog_CC"
2607fi
2608
2609if test -z "$CC"; then
2610          if test -n "$ac_tool_prefix"; then
2611    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2612set dummy ${ac_tool_prefix}cc; ac_word=$2
2613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2614printf %s "checking for $ac_word... " >&6; }
2615if test ${ac_cv_prog_CC+y}
2616then :
2617  printf %s "(cached) " >&6
2618else $as_nop
2619  if test -n "$CC"; then
2620  ac_cv_prog_CC="$CC" # Let the user override the test.
2621else
2622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623for as_dir in $PATH
2624do
2625  IFS=$as_save_IFS
2626  case $as_dir in #(((
2627    '') as_dir=./ ;;
2628    */) ;;
2629    *) as_dir=$as_dir/ ;;
2630  esac
2631    for ac_exec_ext in '' $ac_executable_extensions; do
2632  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2633    ac_cv_prog_CC="${ac_tool_prefix}cc"
2634    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2635    break 2
2636  fi
2637done
2638  done
2639IFS=$as_save_IFS
2640
2641fi
2642fi
2643CC=$ac_cv_prog_CC
2644if test -n "$CC"; then
2645  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2646printf "%s\n" "$CC" >&6; }
2647else
2648  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2649printf "%s\n" "no" >&6; }
2650fi
2651
2652
2653  fi
2654fi
2655if test -z "$CC"; then
2656  # Extract the first word of "cc", so it can be a program name with args.
2657set dummy cc; ac_word=$2
2658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2659printf %s "checking for $ac_word... " >&6; }
2660if test ${ac_cv_prog_CC+y}
2661then :
2662  printf %s "(cached) " >&6
2663else $as_nop
2664  if test -n "$CC"; then
2665  ac_cv_prog_CC="$CC" # Let the user override the test.
2666else
2667  ac_prog_rejected=no
2668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669for as_dir in $PATH
2670do
2671  IFS=$as_save_IFS
2672  case $as_dir in #(((
2673    '') as_dir=./ ;;
2674    */) ;;
2675    *) as_dir=$as_dir/ ;;
2676  esac
2677    for ac_exec_ext in '' $ac_executable_extensions; do
2678  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2679    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2680       ac_prog_rejected=yes
2681       continue
2682     fi
2683    ac_cv_prog_CC="cc"
2684    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2685    break 2
2686  fi
2687done
2688  done
2689IFS=$as_save_IFS
2690
2691if test $ac_prog_rejected = yes; then
2692  # We found a bogon in the path, so make sure we never use it.
2693  set dummy $ac_cv_prog_CC
2694  shift
2695  if test $# != 0; then
2696    # We chose a different compiler from the bogus one.
2697    # However, it has the same basename, so the bogon will be chosen
2698    # first if we set CC to just the basename; use the full file name.
2699    shift
2700    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2701  fi
2702fi
2703fi
2704fi
2705CC=$ac_cv_prog_CC
2706if test -n "$CC"; then
2707  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2708printf "%s\n" "$CC" >&6; }
2709else
2710  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2711printf "%s\n" "no" >&6; }
2712fi
2713
2714
2715fi
2716if test -z "$CC"; then
2717  if test -n "$ac_tool_prefix"; then
2718  for ac_prog in cl.exe
2719  do
2720    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2721set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2723printf %s "checking for $ac_word... " >&6; }
2724if test ${ac_cv_prog_CC+y}
2725then :
2726  printf %s "(cached) " >&6
2727else $as_nop
2728  if test -n "$CC"; then
2729  ac_cv_prog_CC="$CC" # Let the user override the test.
2730else
2731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732for as_dir in $PATH
2733do
2734  IFS=$as_save_IFS
2735  case $as_dir in #(((
2736    '') as_dir=./ ;;
2737    */) ;;
2738    *) as_dir=$as_dir/ ;;
2739  esac
2740    for ac_exec_ext in '' $ac_executable_extensions; do
2741  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2742    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2743    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2744    break 2
2745  fi
2746done
2747  done
2748IFS=$as_save_IFS
2749
2750fi
2751fi
2752CC=$ac_cv_prog_CC
2753if test -n "$CC"; then
2754  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2755printf "%s\n" "$CC" >&6; }
2756else
2757  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2758printf "%s\n" "no" >&6; }
2759fi
2760
2761
2762    test -n "$CC" && break
2763  done
2764fi
2765if test -z "$CC"; then
2766  ac_ct_CC=$CC
2767  for ac_prog in cl.exe
2768do
2769  # Extract the first word of "$ac_prog", so it can be a program name with args.
2770set dummy $ac_prog; ac_word=$2
2771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2772printf %s "checking for $ac_word... " >&6; }
2773if test ${ac_cv_prog_ac_ct_CC+y}
2774then :
2775  printf %s "(cached) " >&6
2776else $as_nop
2777  if test -n "$ac_ct_CC"; then
2778  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2779else
2780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781for as_dir in $PATH
2782do
2783  IFS=$as_save_IFS
2784  case $as_dir in #(((
2785    '') as_dir=./ ;;
2786    */) ;;
2787    *) as_dir=$as_dir/ ;;
2788  esac
2789    for ac_exec_ext in '' $ac_executable_extensions; do
2790  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2791    ac_cv_prog_ac_ct_CC="$ac_prog"
2792    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2793    break 2
2794  fi
2795done
2796  done
2797IFS=$as_save_IFS
2798
2799fi
2800fi
2801ac_ct_CC=$ac_cv_prog_ac_ct_CC
2802if test -n "$ac_ct_CC"; then
2803  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2804printf "%s\n" "$ac_ct_CC" >&6; }
2805else
2806  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2807printf "%s\n" "no" >&6; }
2808fi
2809
2810
2811  test -n "$ac_ct_CC" && break
2812done
2813
2814  if test "x$ac_ct_CC" = x; then
2815    CC=""
2816  else
2817    case $cross_compiling:$ac_tool_warned in
2818yes:)
2819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2820printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2821ac_tool_warned=yes ;;
2822esac
2823    CC=$ac_ct_CC
2824  fi
2825fi
2826
2827fi
2828if test -z "$CC"; then
2829  if test -n "$ac_tool_prefix"; then
2830  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2831set dummy ${ac_tool_prefix}clang; ac_word=$2
2832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833printf %s "checking for $ac_word... " >&6; }
2834if test ${ac_cv_prog_CC+y}
2835then :
2836  printf %s "(cached) " >&6
2837else $as_nop
2838  if test -n "$CC"; then
2839  ac_cv_prog_CC="$CC" # Let the user override the test.
2840else
2841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842for as_dir in $PATH
2843do
2844  IFS=$as_save_IFS
2845  case $as_dir in #(((
2846    '') as_dir=./ ;;
2847    */) ;;
2848    *) as_dir=$as_dir/ ;;
2849  esac
2850    for ac_exec_ext in '' $ac_executable_extensions; do
2851  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2852    ac_cv_prog_CC="${ac_tool_prefix}clang"
2853    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2854    break 2
2855  fi
2856done
2857  done
2858IFS=$as_save_IFS
2859
2860fi
2861fi
2862CC=$ac_cv_prog_CC
2863if test -n "$CC"; then
2864  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2865printf "%s\n" "$CC" >&6; }
2866else
2867  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868printf "%s\n" "no" >&6; }
2869fi
2870
2871
2872fi
2873if test -z "$ac_cv_prog_CC"; then
2874  ac_ct_CC=$CC
2875  # Extract the first word of "clang", so it can be a program name with args.
2876set dummy clang; ac_word=$2
2877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2878printf %s "checking for $ac_word... " >&6; }
2879if test ${ac_cv_prog_ac_ct_CC+y}
2880then :
2881  printf %s "(cached) " >&6
2882else $as_nop
2883  if test -n "$ac_ct_CC"; then
2884  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2885else
2886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887for as_dir in $PATH
2888do
2889  IFS=$as_save_IFS
2890  case $as_dir in #(((
2891    '') as_dir=./ ;;
2892    */) ;;
2893    *) as_dir=$as_dir/ ;;
2894  esac
2895    for ac_exec_ext in '' $ac_executable_extensions; do
2896  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2897    ac_cv_prog_ac_ct_CC="clang"
2898    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2899    break 2
2900  fi
2901done
2902  done
2903IFS=$as_save_IFS
2904
2905fi
2906fi
2907ac_ct_CC=$ac_cv_prog_ac_ct_CC
2908if test -n "$ac_ct_CC"; then
2909  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2910printf "%s\n" "$ac_ct_CC" >&6; }
2911else
2912  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913printf "%s\n" "no" >&6; }
2914fi
2915
2916  if test "x$ac_ct_CC" = x; then
2917    CC=""
2918  else
2919    case $cross_compiling:$ac_tool_warned in
2920yes:)
2921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2922printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2923ac_tool_warned=yes ;;
2924esac
2925    CC=$ac_ct_CC
2926  fi
2927else
2928  CC="$ac_cv_prog_CC"
2929fi
2930
2931fi
2932
2933
2934test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2935printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2936as_fn_error $? "no acceptable C compiler found in \$PATH
2937See \`config.log' for more details" "$LINENO" 5; }
2938
2939# Provide some information about the compiler.
2940printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2941set X $ac_compile
2942ac_compiler=$2
2943for ac_option in --version -v -V -qversion -version; do
2944  { { ac_try="$ac_compiler $ac_option >&5"
2945case "(($ac_try" in
2946  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947  *) ac_try_echo=$ac_try;;
2948esac
2949eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2950printf "%s\n" "$ac_try_echo"; } >&5
2951  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2952  ac_status=$?
2953  if test -s conftest.err; then
2954    sed '10a\
2955... rest of stderr output deleted ...
2956         10q' conftest.err >conftest.er1
2957    cat conftest.er1 >&5
2958  fi
2959  rm -f conftest.er1 conftest.err
2960  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2961  test $ac_status = 0; }
2962done
2963
2964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2965/* end confdefs.h.  */
2966
2967int
2968main (void)
2969{
2970
2971  ;
2972  return 0;
2973}
2974_ACEOF
2975ac_clean_files_save=$ac_clean_files
2976ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2977# Try to create an executable without -o first, disregard a.out.
2978# It will help us diagnose broken compilers, and finding out an intuition
2979# of exeext.
2980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2981printf %s "checking whether the C compiler works... " >&6; }
2982ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2983
2984# The possible output files:
2985ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2986
2987ac_rmfiles=
2988for ac_file in $ac_files
2989do
2990  case $ac_file in
2991    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2992    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2993  esac
2994done
2995rm -f $ac_rmfiles
2996
2997if { { ac_try="$ac_link_default"
2998case "(($ac_try" in
2999  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000  *) ac_try_echo=$ac_try;;
3001esac
3002eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3003printf "%s\n" "$ac_try_echo"; } >&5
3004  (eval "$ac_link_default") 2>&5
3005  ac_status=$?
3006  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3007  test $ac_status = 0; }
3008then :
3009  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3010# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3011# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3012# so that the user can short-circuit this test for compilers unknown to
3013# Autoconf.
3014for ac_file in $ac_files ''
3015do
3016  test -f "$ac_file" || continue
3017  case $ac_file in
3018    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3019	;;
3020    [ab].out )
3021	# We found the default executable, but exeext='' is most
3022	# certainly right.
3023	break;;
3024    *.* )
3025	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3026	then :; else
3027	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3028	fi
3029	# We set ac_cv_exeext here because the later test for it is not
3030	# safe: cross compilers may not add the suffix if given an `-o'
3031	# argument, so we may need to know it at that point already.
3032	# Even if this section looks crufty: it has the advantage of
3033	# actually working.
3034	break;;
3035    * )
3036	break;;
3037  esac
3038done
3039test "$ac_cv_exeext" = no && ac_cv_exeext=
3040
3041else $as_nop
3042  ac_file=''
3043fi
3044if test -z "$ac_file"
3045then :
3046  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3047printf "%s\n" "no" >&6; }
3048printf "%s\n" "$as_me: failed program was:" >&5
3049sed 's/^/| /' conftest.$ac_ext >&5
3050
3051{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3052printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3053as_fn_error 77 "C compiler cannot create executables
3054See \`config.log' for more details" "$LINENO" 5; }
3055else $as_nop
3056  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3057printf "%s\n" "yes" >&6; }
3058fi
3059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3060printf %s "checking for C compiler default output file name... " >&6; }
3061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3062printf "%s\n" "$ac_file" >&6; }
3063ac_exeext=$ac_cv_exeext
3064
3065rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3066ac_clean_files=$ac_clean_files_save
3067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3068printf %s "checking for suffix of executables... " >&6; }
3069if { { ac_try="$ac_link"
3070case "(($ac_try" in
3071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072  *) ac_try_echo=$ac_try;;
3073esac
3074eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3075printf "%s\n" "$ac_try_echo"; } >&5
3076  (eval "$ac_link") 2>&5
3077  ac_status=$?
3078  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3079  test $ac_status = 0; }
3080then :
3081  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3082# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3083# work properly (i.e., refer to `conftest.exe'), while it won't with
3084# `rm'.
3085for ac_file in conftest.exe conftest conftest.*; do
3086  test -f "$ac_file" || continue
3087  case $ac_file in
3088    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3089    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3090	  break;;
3091    * ) break;;
3092  esac
3093done
3094else $as_nop
3095  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3096printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3097as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3098See \`config.log' for more details" "$LINENO" 5; }
3099fi
3100rm -f conftest conftest$ac_cv_exeext
3101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3102printf "%s\n" "$ac_cv_exeext" >&6; }
3103
3104rm -f conftest.$ac_ext
3105EXEEXT=$ac_cv_exeext
3106ac_exeext=$EXEEXT
3107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3108/* end confdefs.h.  */
3109#include <stdio.h>
3110int
3111main (void)
3112{
3113FILE *f = fopen ("conftest.out", "w");
3114 return ferror (f) || fclose (f) != 0;
3115
3116  ;
3117  return 0;
3118}
3119_ACEOF
3120ac_clean_files="$ac_clean_files conftest.out"
3121# Check that the compiler produces executables we can run.  If not, either
3122# the compiler is broken, or we cross compile.
3123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3124printf %s "checking whether we are cross compiling... " >&6; }
3125if test "$cross_compiling" != yes; then
3126  { { ac_try="$ac_link"
3127case "(($ac_try" in
3128  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129  *) ac_try_echo=$ac_try;;
3130esac
3131eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3132printf "%s\n" "$ac_try_echo"; } >&5
3133  (eval "$ac_link") 2>&5
3134  ac_status=$?
3135  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3136  test $ac_status = 0; }
3137  if { ac_try='./conftest$ac_cv_exeext'
3138  { { case "(($ac_try" in
3139  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140  *) ac_try_echo=$ac_try;;
3141esac
3142eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3143printf "%s\n" "$ac_try_echo"; } >&5
3144  (eval "$ac_try") 2>&5
3145  ac_status=$?
3146  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3147  test $ac_status = 0; }; }; then
3148    cross_compiling=no
3149  else
3150    if test "$cross_compiling" = maybe; then
3151	cross_compiling=yes
3152    else
3153	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3154printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3155as_fn_error 77 "cannot run C compiled programs.
3156If you meant to cross compile, use \`--host'.
3157See \`config.log' for more details" "$LINENO" 5; }
3158    fi
3159  fi
3160fi
3161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3162printf "%s\n" "$cross_compiling" >&6; }
3163
3164rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3165ac_clean_files=$ac_clean_files_save
3166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3167printf %s "checking for suffix of object files... " >&6; }
3168if test ${ac_cv_objext+y}
3169then :
3170  printf %s "(cached) " >&6
3171else $as_nop
3172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3173/* end confdefs.h.  */
3174
3175int
3176main (void)
3177{
3178
3179  ;
3180  return 0;
3181}
3182_ACEOF
3183rm -f conftest.o conftest.obj
3184if { { ac_try="$ac_compile"
3185case "(($ac_try" in
3186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187  *) ac_try_echo=$ac_try;;
3188esac
3189eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3190printf "%s\n" "$ac_try_echo"; } >&5
3191  (eval "$ac_compile") 2>&5
3192  ac_status=$?
3193  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3194  test $ac_status = 0; }
3195then :
3196  for ac_file in conftest.o conftest.obj conftest.*; do
3197  test -f "$ac_file" || continue;
3198  case $ac_file in
3199    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3200    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3201       break;;
3202  esac
3203done
3204else $as_nop
3205  printf "%s\n" "$as_me: failed program was:" >&5
3206sed 's/^/| /' conftest.$ac_ext >&5
3207
3208{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3209printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3210as_fn_error $? "cannot compute suffix of object files: cannot compile
3211See \`config.log' for more details" "$LINENO" 5; }
3212fi
3213rm -f conftest.$ac_cv_objext conftest.$ac_ext
3214fi
3215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3216printf "%s\n" "$ac_cv_objext" >&6; }
3217OBJEXT=$ac_cv_objext
3218ac_objext=$OBJEXT
3219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3220printf %s "checking whether the compiler supports GNU C... " >&6; }
3221if test ${ac_cv_c_compiler_gnu+y}
3222then :
3223  printf %s "(cached) " >&6
3224else $as_nop
3225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3226/* end confdefs.h.  */
3227
3228int
3229main (void)
3230{
3231#ifndef __GNUC__
3232       choke me
3233#endif
3234
3235  ;
3236  return 0;
3237}
3238_ACEOF
3239if ac_fn_c_try_compile "$LINENO"
3240then :
3241  ac_compiler_gnu=yes
3242else $as_nop
3243  ac_compiler_gnu=no
3244fi
3245rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3246ac_cv_c_compiler_gnu=$ac_compiler_gnu
3247
3248fi
3249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3250printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3251ac_compiler_gnu=$ac_cv_c_compiler_gnu
3252
3253if test $ac_compiler_gnu = yes; then
3254  GCC=yes
3255else
3256  GCC=
3257fi
3258ac_test_CFLAGS=${CFLAGS+y}
3259ac_save_CFLAGS=$CFLAGS
3260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3261printf %s "checking whether $CC accepts -g... " >&6; }
3262if test ${ac_cv_prog_cc_g+y}
3263then :
3264  printf %s "(cached) " >&6
3265else $as_nop
3266  ac_save_c_werror_flag=$ac_c_werror_flag
3267   ac_c_werror_flag=yes
3268   ac_cv_prog_cc_g=no
3269   CFLAGS="-g"
3270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3271/* end confdefs.h.  */
3272
3273int
3274main (void)
3275{
3276
3277  ;
3278  return 0;
3279}
3280_ACEOF
3281if ac_fn_c_try_compile "$LINENO"
3282then :
3283  ac_cv_prog_cc_g=yes
3284else $as_nop
3285  CFLAGS=""
3286      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3287/* end confdefs.h.  */
3288
3289int
3290main (void)
3291{
3292
3293  ;
3294  return 0;
3295}
3296_ACEOF
3297if ac_fn_c_try_compile "$LINENO"
3298then :
3299
3300else $as_nop
3301  ac_c_werror_flag=$ac_save_c_werror_flag
3302	 CFLAGS="-g"
3303	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3304/* end confdefs.h.  */
3305
3306int
3307main (void)
3308{
3309
3310  ;
3311  return 0;
3312}
3313_ACEOF
3314if ac_fn_c_try_compile "$LINENO"
3315then :
3316  ac_cv_prog_cc_g=yes
3317fi
3318rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3319fi
3320rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3321fi
3322rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3323   ac_c_werror_flag=$ac_save_c_werror_flag
3324fi
3325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3326printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3327if test $ac_test_CFLAGS; then
3328  CFLAGS=$ac_save_CFLAGS
3329elif test $ac_cv_prog_cc_g = yes; then
3330  if test "$GCC" = yes; then
3331    CFLAGS="-g -O2"
3332  else
3333    CFLAGS="-g"
3334  fi
3335else
3336  if test "$GCC" = yes; then
3337    CFLAGS="-O2"
3338  else
3339    CFLAGS=
3340  fi
3341fi
3342ac_prog_cc_stdc=no
3343if test x$ac_prog_cc_stdc = xno
3344then :
3345  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3346printf %s "checking for $CC option to enable C11 features... " >&6; }
3347if test ${ac_cv_prog_cc_c11+y}
3348then :
3349  printf %s "(cached) " >&6
3350else $as_nop
3351  ac_cv_prog_cc_c11=no
3352ac_save_CC=$CC
3353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354/* end confdefs.h.  */
3355$ac_c_conftest_c11_program
3356_ACEOF
3357for ac_arg in '' -std=gnu11
3358do
3359  CC="$ac_save_CC $ac_arg"
3360  if ac_fn_c_try_compile "$LINENO"
3361then :
3362  ac_cv_prog_cc_c11=$ac_arg
3363fi
3364rm -f core conftest.err conftest.$ac_objext conftest.beam
3365  test "x$ac_cv_prog_cc_c11" != "xno" && break
3366done
3367rm -f conftest.$ac_ext
3368CC=$ac_save_CC
3369fi
3370
3371if test "x$ac_cv_prog_cc_c11" = xno
3372then :
3373  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3374printf "%s\n" "unsupported" >&6; }
3375else $as_nop
3376  if test "x$ac_cv_prog_cc_c11" = x
3377then :
3378  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3379printf "%s\n" "none needed" >&6; }
3380else $as_nop
3381  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3382printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3383     CC="$CC $ac_cv_prog_cc_c11"
3384fi
3385  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3386  ac_prog_cc_stdc=c11
3387fi
3388fi
3389if test x$ac_prog_cc_stdc = xno
3390then :
3391  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3392printf %s "checking for $CC option to enable C99 features... " >&6; }
3393if test ${ac_cv_prog_cc_c99+y}
3394then :
3395  printf %s "(cached) " >&6
3396else $as_nop
3397  ac_cv_prog_cc_c99=no
3398ac_save_CC=$CC
3399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400/* end confdefs.h.  */
3401$ac_c_conftest_c99_program
3402_ACEOF
3403for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3404do
3405  CC="$ac_save_CC $ac_arg"
3406  if ac_fn_c_try_compile "$LINENO"
3407then :
3408  ac_cv_prog_cc_c99=$ac_arg
3409fi
3410rm -f core conftest.err conftest.$ac_objext conftest.beam
3411  test "x$ac_cv_prog_cc_c99" != "xno" && break
3412done
3413rm -f conftest.$ac_ext
3414CC=$ac_save_CC
3415fi
3416
3417if test "x$ac_cv_prog_cc_c99" = xno
3418then :
3419  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3420printf "%s\n" "unsupported" >&6; }
3421else $as_nop
3422  if test "x$ac_cv_prog_cc_c99" = x
3423then :
3424  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3425printf "%s\n" "none needed" >&6; }
3426else $as_nop
3427  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3428printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3429     CC="$CC $ac_cv_prog_cc_c99"
3430fi
3431  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3432  ac_prog_cc_stdc=c99
3433fi
3434fi
3435if test x$ac_prog_cc_stdc = xno
3436then :
3437  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3438printf %s "checking for $CC option to enable C89 features... " >&6; }
3439if test ${ac_cv_prog_cc_c89+y}
3440then :
3441  printf %s "(cached) " >&6
3442else $as_nop
3443  ac_cv_prog_cc_c89=no
3444ac_save_CC=$CC
3445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3446/* end confdefs.h.  */
3447$ac_c_conftest_c89_program
3448_ACEOF
3449for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3450do
3451  CC="$ac_save_CC $ac_arg"
3452  if ac_fn_c_try_compile "$LINENO"
3453then :
3454  ac_cv_prog_cc_c89=$ac_arg
3455fi
3456rm -f core conftest.err conftest.$ac_objext conftest.beam
3457  test "x$ac_cv_prog_cc_c89" != "xno" && break
3458done
3459rm -f conftest.$ac_ext
3460CC=$ac_save_CC
3461fi
3462
3463if test "x$ac_cv_prog_cc_c89" = xno
3464then :
3465  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3466printf "%s\n" "unsupported" >&6; }
3467else $as_nop
3468  if test "x$ac_cv_prog_cc_c89" = x
3469then :
3470  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3471printf "%s\n" "none needed" >&6; }
3472else $as_nop
3473  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3474printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3475     CC="$CC $ac_cv_prog_cc_c89"
3476fi
3477  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3478  ac_prog_cc_stdc=c89
3479fi
3480fi
3481
3482ac_ext=c
3483ac_cpp='$CPP $CPPFLAGS'
3484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3486ac_compiler_gnu=$ac_cv_c_compiler_gnu
3487
3488
3489  ac_ext=c
3490ac_cpp='$CPP $CPPFLAGS'
3491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493ac_compiler_gnu=$ac_cv_c_compiler_gnu
3494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3495printf %s "checking whether $CC understands -c and -o together... " >&6; }
3496if test ${am_cv_prog_cc_c_o+y}
3497then :
3498  printf %s "(cached) " >&6
3499else $as_nop
3500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3501/* end confdefs.h.  */
3502
3503int
3504main (void)
3505{
3506
3507  ;
3508  return 0;
3509}
3510_ACEOF
3511  # Make sure it works both with $CC and with simple cc.
3512  # Following AC_PROG_CC_C_O, we do the test twice because some
3513  # compilers refuse to overwrite an existing .o file with -o,
3514  # though they will create one.
3515  am_cv_prog_cc_c_o=yes
3516  for am_i in 1 2; do
3517    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3518   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3519   ac_status=$?
3520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521   (exit $ac_status); } \
3522         && test -f conftest2.$ac_objext; then
3523      : OK
3524    else
3525      am_cv_prog_cc_c_o=no
3526      break
3527    fi
3528  done
3529  rm -f core conftest*
3530  unset am_i
3531fi
3532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3533printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3534if test "$am_cv_prog_cc_c_o" != yes; then
3535   # Losing compiler, so override with the script.
3536   # FIXME: It is wrong to rewrite CC.
3537   # But if we don't then we get into trouble of one sort or another.
3538   # A longer-term fix would be to have automake use am__CC in this case,
3539   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3540   CC="$am_aux_dir/compile $CC"
3541fi
3542ac_ext=c
3543ac_cpp='$CPP $CPPFLAGS'
3544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3546ac_compiler_gnu=$ac_cv_c_compiler_gnu
3547
3548
3549
3550ac_header= ac_cache=
3551for ac_item in $ac_header_c_list
3552do
3553  if test $ac_cache; then
3554    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3555    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3556      printf "%s\n" "#define $ac_item 1" >> confdefs.h
3557    fi
3558    ac_header= ac_cache=
3559  elif test $ac_header; then
3560    ac_cache=$ac_item
3561  else
3562    ac_header=$ac_item
3563  fi
3564done
3565
3566
3567
3568
3569
3570
3571
3572
3573if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3574then :
3575
3576printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3577
3578fi
3579
3580
3581
3582
3583
3584
3585  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3586printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3587if test ${ac_cv_safe_to_define___extensions__+y}
3588then :
3589  printf %s "(cached) " >&6
3590else $as_nop
3591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592/* end confdefs.h.  */
3593
3594#         define __EXTENSIONS__ 1
3595          $ac_includes_default
3596int
3597main (void)
3598{
3599
3600  ;
3601  return 0;
3602}
3603_ACEOF
3604if ac_fn_c_try_compile "$LINENO"
3605then :
3606  ac_cv_safe_to_define___extensions__=yes
3607else $as_nop
3608  ac_cv_safe_to_define___extensions__=no
3609fi
3610rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3611fi
3612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3613printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3614
3615  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3616printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3617if test ${ac_cv_should_define__xopen_source+y}
3618then :
3619  printf %s "(cached) " >&6
3620else $as_nop
3621  ac_cv_should_define__xopen_source=no
3622    if test $ac_cv_header_wchar_h = yes
3623then :
3624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3625/* end confdefs.h.  */
3626
3627          #include <wchar.h>
3628          mbstate_t x;
3629int
3630main (void)
3631{
3632
3633  ;
3634  return 0;
3635}
3636_ACEOF
3637if ac_fn_c_try_compile "$LINENO"
3638then :
3639
3640else $as_nop
3641  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642/* end confdefs.h.  */
3643
3644            #define _XOPEN_SOURCE 500
3645            #include <wchar.h>
3646            mbstate_t x;
3647int
3648main (void)
3649{
3650
3651  ;
3652  return 0;
3653}
3654_ACEOF
3655if ac_fn_c_try_compile "$LINENO"
3656then :
3657  ac_cv_should_define__xopen_source=yes
3658fi
3659rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3660fi
3661rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3662fi
3663fi
3664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3665printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3666
3667  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3668
3669  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3670
3671  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3672
3673  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3674
3675  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3676
3677  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3678
3679  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3680
3681  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3682
3683  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3684
3685  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3686
3687  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3688
3689  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3690
3691  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3692
3693  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3694
3695  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3696
3697  if test $ac_cv_header_minix_config_h = yes
3698then :
3699  MINIX=yes
3700    printf "%s\n" "#define _MINIX 1" >>confdefs.h
3701
3702    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3703
3704    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3705
3706else $as_nop
3707  MINIX=
3708fi
3709  if test $ac_cv_safe_to_define___extensions__ = yes
3710then :
3711  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3712
3713fi
3714  if test $ac_cv_should_define__xopen_source = yes
3715then :
3716  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3717
3718fi
3719
3720
3721# Initialize Automake
3722am__api_version='1.16'
3723
3724
3725  # Find a good install program.  We prefer a C program (faster),
3726# so one script is as good as another.  But avoid the broken or
3727# incompatible versions:
3728# SysV /etc/install, /usr/sbin/install
3729# SunOS /usr/etc/install
3730# IRIX /sbin/install
3731# AIX /bin/install
3732# AmigaOS /C/install, which installs bootblocks on floppy discs
3733# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3734# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3735# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3736# OS/2's system install, which has a completely different semantic
3737# ./install, which can be erroneously created by make from ./install.sh.
3738# Reject install programs that cannot install multiple files.
3739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3740printf %s "checking for a BSD-compatible install... " >&6; }
3741if test -z "$INSTALL"; then
3742if test ${ac_cv_path_install+y}
3743then :
3744  printf %s "(cached) " >&6
3745else $as_nop
3746  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747for as_dir in $PATH
3748do
3749  IFS=$as_save_IFS
3750  case $as_dir in #(((
3751    '') as_dir=./ ;;
3752    */) ;;
3753    *) as_dir=$as_dir/ ;;
3754  esac
3755    # Account for fact that we put trailing slashes in our PATH walk.
3756case $as_dir in #((
3757  ./ | /[cC]/* | \
3758  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3759  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3760  /usr/ucb/* ) ;;
3761  *)
3762    # OSF1 and SCO ODT 3.0 have their own names for install.
3763    # Don't use installbsd from OSF since it installs stuff as root
3764    # by default.
3765    for ac_prog in ginstall scoinst install; do
3766      for ac_exec_ext in '' $ac_executable_extensions; do
3767	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3768	  if test $ac_prog = install &&
3769	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3770	    # AIX install.  It has an incompatible calling convention.
3771	    :
3772	  elif test $ac_prog = install &&
3773	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3774	    # program-specific install script used by HP pwplus--don't use.
3775	    :
3776	  else
3777	    rm -rf conftest.one conftest.two conftest.dir
3778	    echo one > conftest.one
3779	    echo two > conftest.two
3780	    mkdir conftest.dir
3781	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3782	      test -s conftest.one && test -s conftest.two &&
3783	      test -s conftest.dir/conftest.one &&
3784	      test -s conftest.dir/conftest.two
3785	    then
3786	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3787	      break 3
3788	    fi
3789	  fi
3790	fi
3791      done
3792    done
3793    ;;
3794esac
3795
3796  done
3797IFS=$as_save_IFS
3798
3799rm -rf conftest.one conftest.two conftest.dir
3800
3801fi
3802  if test ${ac_cv_path_install+y}; then
3803    INSTALL=$ac_cv_path_install
3804  else
3805    # As a last resort, use the slow shell script.  Don't cache a
3806    # value for INSTALL within a source directory, because that will
3807    # break other packages using the cache if that directory is
3808    # removed, or if the value is a relative name.
3809    INSTALL=$ac_install_sh
3810  fi
3811fi
3812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3813printf "%s\n" "$INSTALL" >&6; }
3814
3815# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3816# It thinks the first close brace ends the variable substitution.
3817test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3818
3819test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3820
3821test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3822
3823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3824printf %s "checking whether build environment is sane... " >&6; }
3825# Reject unsafe characters in $srcdir or the absolute working directory
3826# name.  Accept space and tab only in the latter.
3827am_lf='
3828'
3829case `pwd` in
3830  *[\\\"\#\$\&\'\`$am_lf]*)
3831    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3832esac
3833case $srcdir in
3834  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3835    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3836esac
3837
3838# Do 'set' in a subshell so we don't clobber the current shell's
3839# arguments.  Must try -L first in case configure is actually a
3840# symlink; some systems play weird games with the mod time of symlinks
3841# (eg FreeBSD returns the mod time of the symlink's containing
3842# directory).
3843if (
3844   am_has_slept=no
3845   for am_try in 1 2; do
3846     echo "timestamp, slept: $am_has_slept" > conftest.file
3847     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3848     if test "$*" = "X"; then
3849	# -L didn't work.
3850	set X `ls -t "$srcdir/configure" conftest.file`
3851     fi
3852     if test "$*" != "X $srcdir/configure conftest.file" \
3853	&& test "$*" != "X conftest.file $srcdir/configure"; then
3854
3855	# If neither matched, then we have a broken ls.  This can happen
3856	# if, for instance, CONFIG_SHELL is bash and it inherits a
3857	# broken ls alias from the environment.  This has actually
3858	# happened.  Such a system could not be considered "sane".
3859	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3860  alias in your environment" "$LINENO" 5
3861     fi
3862     if test "$2" = conftest.file || test $am_try -eq 2; then
3863       break
3864     fi
3865     # Just in case.
3866     sleep 1
3867     am_has_slept=yes
3868   done
3869   test "$2" = conftest.file
3870   )
3871then
3872   # Ok.
3873   :
3874else
3875   as_fn_error $? "newly created file is older than distributed files!
3876Check your system clock" "$LINENO" 5
3877fi
3878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3879printf "%s\n" "yes" >&6; }
3880# If we didn't sleep, we still need to ensure time stamps of config.status and
3881# generated files are strictly newer.
3882am_sleep_pid=
3883if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3884  ( sleep 1 ) &
3885  am_sleep_pid=$!
3886fi
3887
3888rm -f conftest.file
3889
3890test "$program_prefix" != NONE &&
3891  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3892# Use a double $ so make ignores it.
3893test "$program_suffix" != NONE &&
3894  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3895# Double any \ or $.
3896# By default was `s,x,x', remove it if useless.
3897ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3898program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3899
3900
3901  if test x"${MISSING+set}" != xset; then
3902  MISSING="\${SHELL} '$am_aux_dir/missing'"
3903fi
3904# Use eval to expand $SHELL
3905if eval "$MISSING --is-lightweight"; then
3906  am_missing_run="$MISSING "
3907else
3908  am_missing_run=
3909  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3910printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3911fi
3912
3913if test x"${install_sh+set}" != xset; then
3914  case $am_aux_dir in
3915  *\ * | *\	*)
3916    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3917  *)
3918    install_sh="\${SHELL} $am_aux_dir/install-sh"
3919  esac
3920fi
3921
3922# Installed binaries are usually stripped using 'strip' when the user
3923# run "make install-strip".  However 'strip' might not be the right
3924# tool to use in cross-compilation environments, therefore Automake
3925# will honor the 'STRIP' environment variable to overrule this program.
3926if test "$cross_compiling" != no; then
3927  if test -n "$ac_tool_prefix"; then
3928  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3929set dummy ${ac_tool_prefix}strip; ac_word=$2
3930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3931printf %s "checking for $ac_word... " >&6; }
3932if test ${ac_cv_prog_STRIP+y}
3933then :
3934  printf %s "(cached) " >&6
3935else $as_nop
3936  if test -n "$STRIP"; then
3937  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3938else
3939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940for as_dir in $PATH
3941do
3942  IFS=$as_save_IFS
3943  case $as_dir in #(((
3944    '') as_dir=./ ;;
3945    */) ;;
3946    *) as_dir=$as_dir/ ;;
3947  esac
3948    for ac_exec_ext in '' $ac_executable_extensions; do
3949  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3950    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3951    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3952    break 2
3953  fi
3954done
3955  done
3956IFS=$as_save_IFS
3957
3958fi
3959fi
3960STRIP=$ac_cv_prog_STRIP
3961if test -n "$STRIP"; then
3962  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3963printf "%s\n" "$STRIP" >&6; }
3964else
3965  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3966printf "%s\n" "no" >&6; }
3967fi
3968
3969
3970fi
3971if test -z "$ac_cv_prog_STRIP"; then
3972  ac_ct_STRIP=$STRIP
3973  # Extract the first word of "strip", so it can be a program name with args.
3974set dummy strip; ac_word=$2
3975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3976printf %s "checking for $ac_word... " >&6; }
3977if test ${ac_cv_prog_ac_ct_STRIP+y}
3978then :
3979  printf %s "(cached) " >&6
3980else $as_nop
3981  if test -n "$ac_ct_STRIP"; then
3982  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3983else
3984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985for as_dir in $PATH
3986do
3987  IFS=$as_save_IFS
3988  case $as_dir in #(((
3989    '') as_dir=./ ;;
3990    */) ;;
3991    *) as_dir=$as_dir/ ;;
3992  esac
3993    for ac_exec_ext in '' $ac_executable_extensions; do
3994  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3995    ac_cv_prog_ac_ct_STRIP="strip"
3996    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3997    break 2
3998  fi
3999done
4000  done
4001IFS=$as_save_IFS
4002
4003fi
4004fi
4005ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4006if test -n "$ac_ct_STRIP"; then
4007  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4008printf "%s\n" "$ac_ct_STRIP" >&6; }
4009else
4010  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4011printf "%s\n" "no" >&6; }
4012fi
4013
4014  if test "x$ac_ct_STRIP" = x; then
4015    STRIP=":"
4016  else
4017    case $cross_compiling:$ac_tool_warned in
4018yes:)
4019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4020printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4021ac_tool_warned=yes ;;
4022esac
4023    STRIP=$ac_ct_STRIP
4024  fi
4025else
4026  STRIP="$ac_cv_prog_STRIP"
4027fi
4028
4029fi
4030INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4031
4032
4033  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4034printf %s "checking for a race-free mkdir -p... " >&6; }
4035if test -z "$MKDIR_P"; then
4036  if test ${ac_cv_path_mkdir+y}
4037then :
4038  printf %s "(cached) " >&6
4039else $as_nop
4040  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4042do
4043  IFS=$as_save_IFS
4044  case $as_dir in #(((
4045    '') as_dir=./ ;;
4046    */) ;;
4047    *) as_dir=$as_dir/ ;;
4048  esac
4049    for ac_prog in mkdir gmkdir; do
4050	 for ac_exec_ext in '' $ac_executable_extensions; do
4051	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4052	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4053	     'mkdir ('*'coreutils) '* | \
4054	     'BusyBox '* | \
4055	     'mkdir (fileutils) '4.1*)
4056	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4057	       break 3;;
4058	   esac
4059	 done
4060       done
4061  done
4062IFS=$as_save_IFS
4063
4064fi
4065
4066  test -d ./--version && rmdir ./--version
4067  if test ${ac_cv_path_mkdir+y}; then
4068    MKDIR_P="$ac_cv_path_mkdir -p"
4069  else
4070    # As a last resort, use the slow shell script.  Don't cache a
4071    # value for MKDIR_P within a source directory, because that will
4072    # break other packages using the cache if that directory is
4073    # removed, or if the value is a relative name.
4074    MKDIR_P="$ac_install_sh -d"
4075  fi
4076fi
4077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4078printf "%s\n" "$MKDIR_P" >&6; }
4079
4080for ac_prog in gawk mawk nawk awk
4081do
4082  # Extract the first word of "$ac_prog", so it can be a program name with args.
4083set dummy $ac_prog; ac_word=$2
4084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4085printf %s "checking for $ac_word... " >&6; }
4086if test ${ac_cv_prog_AWK+y}
4087then :
4088  printf %s "(cached) " >&6
4089else $as_nop
4090  if test -n "$AWK"; then
4091  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4092else
4093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094for as_dir in $PATH
4095do
4096  IFS=$as_save_IFS
4097  case $as_dir in #(((
4098    '') as_dir=./ ;;
4099    */) ;;
4100    *) as_dir=$as_dir/ ;;
4101  esac
4102    for ac_exec_ext in '' $ac_executable_extensions; do
4103  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4104    ac_cv_prog_AWK="$ac_prog"
4105    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4106    break 2
4107  fi
4108done
4109  done
4110IFS=$as_save_IFS
4111
4112fi
4113fi
4114AWK=$ac_cv_prog_AWK
4115if test -n "$AWK"; then
4116  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4117printf "%s\n" "$AWK" >&6; }
4118else
4119  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4120printf "%s\n" "no" >&6; }
4121fi
4122
4123
4124  test -n "$AWK" && break
4125done
4126
4127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4128printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4129set x ${MAKE-make}
4130ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4131if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4132then :
4133  printf %s "(cached) " >&6
4134else $as_nop
4135  cat >conftest.make <<\_ACEOF
4136SHELL = /bin/sh
4137all:
4138	@echo '@@@%%%=$(MAKE)=@@@%%%'
4139_ACEOF
4140# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4141case `${MAKE-make} -f conftest.make 2>/dev/null` in
4142  *@@@%%%=?*=@@@%%%*)
4143    eval ac_cv_prog_make_${ac_make}_set=yes;;
4144  *)
4145    eval ac_cv_prog_make_${ac_make}_set=no;;
4146esac
4147rm -f conftest.make
4148fi
4149if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4150  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4151printf "%s\n" "yes" >&6; }
4152  SET_MAKE=
4153else
4154  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4155printf "%s\n" "no" >&6; }
4156  SET_MAKE="MAKE=${MAKE-make}"
4157fi
4158
4159rm -rf .tst 2>/dev/null
4160mkdir .tst 2>/dev/null
4161if test -d .tst; then
4162  am__leading_dot=.
4163else
4164  am__leading_dot=_
4165fi
4166rmdir .tst 2>/dev/null
4167
4168DEPDIR="${am__leading_dot}deps"
4169
4170ac_config_commands="$ac_config_commands depfiles"
4171
4172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4173printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4174cat > confinc.mk << 'END'
4175am__doit:
4176	@echo this is the am__doit target >confinc.out
4177.PHONY: am__doit
4178END
4179am__include="#"
4180am__quote=
4181# BSD make does it like this.
4182echo '.include "confinc.mk" # ignored' > confmf.BSD
4183# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4184echo 'include confinc.mk # ignored' > confmf.GNU
4185_am_result=no
4186for s in GNU BSD; do
4187  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4188   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4189   ac_status=$?
4190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191   (exit $ac_status); }
4192  case $?:`cat confinc.out 2>/dev/null` in #(
4193  '0:this is the am__doit target') :
4194    case $s in #(
4195  BSD) :
4196    am__include='.include' am__quote='"' ;; #(
4197  *) :
4198    am__include='include' am__quote='' ;;
4199esac ;; #(
4200  *) :
4201     ;;
4202esac
4203  if test "$am__include" != "#"; then
4204    _am_result="yes ($s style)"
4205    break
4206  fi
4207done
4208rm -f confinc.* confmf.*
4209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4210printf "%s\n" "${_am_result}" >&6; }
4211
4212# Check whether --enable-dependency-tracking was given.
4213if test ${enable_dependency_tracking+y}
4214then :
4215  enableval=$enable_dependency_tracking;
4216fi
4217
4218if test "x$enable_dependency_tracking" != xno; then
4219  am_depcomp="$ac_aux_dir/depcomp"
4220  AMDEPBACKSLASH='\'
4221  am__nodep='_no'
4222fi
4223 if test "x$enable_dependency_tracking" != xno; then
4224  AMDEP_TRUE=
4225  AMDEP_FALSE='#'
4226else
4227  AMDEP_TRUE='#'
4228  AMDEP_FALSE=
4229fi
4230
4231
4232# Check whether --enable-silent-rules was given.
4233if test ${enable_silent_rules+y}
4234then :
4235  enableval=$enable_silent_rules;
4236fi
4237
4238case $enable_silent_rules in # (((
4239  yes) AM_DEFAULT_VERBOSITY=0;;
4240   no) AM_DEFAULT_VERBOSITY=1;;
4241    *) AM_DEFAULT_VERBOSITY=1;;
4242esac
4243am_make=${MAKE-make}
4244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4245printf %s "checking whether $am_make supports nested variables... " >&6; }
4246if test ${am_cv_make_support_nested_variables+y}
4247then :
4248  printf %s "(cached) " >&6
4249else $as_nop
4250  if printf "%s\n" 'TRUE=$(BAR$(V))
4251BAR0=false
4252BAR1=true
4253V=1
4254am__doit:
4255	@$(TRUE)
4256.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4257  am_cv_make_support_nested_variables=yes
4258else
4259  am_cv_make_support_nested_variables=no
4260fi
4261fi
4262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4263printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4264if test $am_cv_make_support_nested_variables = yes; then
4265    AM_V='$(V)'
4266  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4267else
4268  AM_V=$AM_DEFAULT_VERBOSITY
4269  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4270fi
4271AM_BACKSLASH='\'
4272
4273if test "`cd $srcdir && pwd`" != "`pwd`"; then
4274  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4275  # is not polluted with repeated "-I."
4276  am__isrc=' -I$(srcdir)'
4277  # test to see if srcdir already configured
4278  if test -f $srcdir/config.status; then
4279    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4280  fi
4281fi
4282
4283# test whether we have cygpath
4284if test -z "$CYGPATH_W"; then
4285  if (cygpath --version) >/dev/null 2>/dev/null; then
4286    CYGPATH_W='cygpath -w'
4287  else
4288    CYGPATH_W=echo
4289  fi
4290fi
4291
4292
4293# Define the identity of the package.
4294 PACKAGE='xev'
4295 VERSION='1.2.5'
4296
4297
4298printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4299
4300
4301printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4302
4303# Some tools Automake needs.
4304
4305ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4306
4307
4308AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4309
4310
4311AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4312
4313
4314AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4315
4316
4317MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4318
4319# For better backward compatibility.  To be removed once Automake 1.9.x
4320# dies out for good.  For more background, see:
4321# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4322# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4323mkdir_p='$(MKDIR_P)'
4324
4325# We need awk for the "check" target (and possibly the TAP driver).  The
4326# system "awk" is bad on some platforms.
4327# Always define AMTAR for backward compatibility.  Yes, it's still used
4328# in the wild :-(  We should find a proper way to deprecate it ...
4329AMTAR='$${TAR-tar}'
4330
4331
4332# We'll loop over all known methods to create a tar archive until one works.
4333_am_tools='gnutar  pax cpio none'
4334
4335am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4336
4337
4338
4339
4340
4341depcc="$CC"   am_compiler_list=
4342
4343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4344printf %s "checking dependency style of $depcc... " >&6; }
4345if test ${am_cv_CC_dependencies_compiler_type+y}
4346then :
4347  printf %s "(cached) " >&6
4348else $as_nop
4349  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4350  # We make a subdir and do the tests there.  Otherwise we can end up
4351  # making bogus files that we don't know about and never remove.  For
4352  # instance it was reported that on HP-UX the gcc test will end up
4353  # making a dummy file named 'D' -- because '-MD' means "put the output
4354  # in D".
4355  rm -rf conftest.dir
4356  mkdir conftest.dir
4357  # Copy depcomp to subdir because otherwise we won't find it if we're
4358  # using a relative directory.
4359  cp "$am_depcomp" conftest.dir
4360  cd conftest.dir
4361  # We will build objects and dependencies in a subdirectory because
4362  # it helps to detect inapplicable dependency modes.  For instance
4363  # both Tru64's cc and ICC support -MD to output dependencies as a
4364  # side effect of compilation, but ICC will put the dependencies in
4365  # the current directory while Tru64 will put them in the object
4366  # directory.
4367  mkdir sub
4368
4369  am_cv_CC_dependencies_compiler_type=none
4370  if test "$am_compiler_list" = ""; then
4371     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4372  fi
4373  am__universal=false
4374  case " $depcc " in #(
4375     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4376     esac
4377
4378  for depmode in $am_compiler_list; do
4379    # Setup a source with many dependencies, because some compilers
4380    # like to wrap large dependency lists on column 80 (with \), and
4381    # we should not choose a depcomp mode which is confused by this.
4382    #
4383    # We need to recreate these files for each test, as the compiler may
4384    # overwrite some of them when testing with obscure command lines.
4385    # This happens at least with the AIX C compiler.
4386    : > sub/conftest.c
4387    for i in 1 2 3 4 5 6; do
4388      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4389      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4390      # Solaris 10 /bin/sh.
4391      echo '/* dummy */' > sub/conftst$i.h
4392    done
4393    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4394
4395    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4396    # mode.  It turns out that the SunPro C++ compiler does not properly
4397    # handle '-M -o', and we need to detect this.  Also, some Intel
4398    # versions had trouble with output in subdirs.
4399    am__obj=sub/conftest.${OBJEXT-o}
4400    am__minus_obj="-o $am__obj"
4401    case $depmode in
4402    gcc)
4403      # This depmode causes a compiler race in universal mode.
4404      test "$am__universal" = false || continue
4405      ;;
4406    nosideeffect)
4407      # After this tag, mechanisms are not by side-effect, so they'll
4408      # only be used when explicitly requested.
4409      if test "x$enable_dependency_tracking" = xyes; then
4410	continue
4411      else
4412	break
4413      fi
4414      ;;
4415    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4416      # This compiler won't grok '-c -o', but also, the minuso test has
4417      # not run yet.  These depmodes are late enough in the game, and
4418      # so weak that their functioning should not be impacted.
4419      am__obj=conftest.${OBJEXT-o}
4420      am__minus_obj=
4421      ;;
4422    none) break ;;
4423    esac
4424    if depmode=$depmode \
4425       source=sub/conftest.c object=$am__obj \
4426       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4427       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4428         >/dev/null 2>conftest.err &&
4429       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4430       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4431       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4432       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4433      # icc doesn't choke on unknown options, it will just issue warnings
4434      # or remarks (even with -Werror).  So we grep stderr for any message
4435      # that says an option was ignored or not supported.
4436      # When given -MP, icc 7.0 and 7.1 complain thusly:
4437      #   icc: Command line warning: ignoring option '-M'; no argument required
4438      # The diagnosis changed in icc 8.0:
4439      #   icc: Command line remark: option '-MP' not supported
4440      if (grep 'ignoring option' conftest.err ||
4441          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4442        am_cv_CC_dependencies_compiler_type=$depmode
4443        break
4444      fi
4445    fi
4446  done
4447
4448  cd ..
4449  rm -rf conftest.dir
4450else
4451  am_cv_CC_dependencies_compiler_type=none
4452fi
4453
4454fi
4455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4456printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4457CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4458
4459 if
4460  test "x$enable_dependency_tracking" != xno \
4461  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4462  am__fastdepCC_TRUE=
4463  am__fastdepCC_FALSE='#'
4464else
4465  am__fastdepCC_TRUE='#'
4466  am__fastdepCC_FALSE=
4467fi
4468
4469
4470# Variables for tags utilities; see am/tags.am
4471if test -z "$CTAGS"; then
4472  CTAGS=ctags
4473fi
4474
4475if test -z "$ETAGS"; then
4476  ETAGS=etags
4477fi
4478
4479if test -z "$CSCOPE"; then
4480  CSCOPE=cscope
4481fi
4482
4483
4484
4485# POSIX will say in a future version that running "rm -f" with no argument
4486# is OK; and we want to be able to make that assumption in our Makefile
4487# recipes.  So use an aggressive probe to check that the usage we want is
4488# actually supported "in the wild" to an acceptable degree.
4489# See automake bug#10828.
4490# To make any issue more visible, cause the running configure to be aborted
4491# by default if the 'rm' program in use doesn't match our expectations; the
4492# user can still override this though.
4493if rm -f && rm -fr && rm -rf; then : OK; else
4494  cat >&2 <<'END'
4495Oops!
4496
4497Your 'rm' program seems unable to run without file operands specified
4498on the command line, even when the '-f' option is present.  This is contrary
4499to the behaviour of most rm programs out there, and not conforming with
4500the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4501
4502Please tell bug-automake@gnu.org about your system, including the value
4503of your $PATH and any error possibly output before this message.  This
4504can help us improve future automake versions.
4505
4506END
4507  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4508    echo 'Configuration will proceed anyway, since you have set the' >&2
4509    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4510    echo >&2
4511  else
4512    cat >&2 <<'END'
4513Aborting the configuration process, to ensure you take notice of the issue.
4514
4515You can download and install GNU coreutils to get an 'rm' implementation
4516that behaves properly: <https://www.gnu.org/software/coreutils/>.
4517
4518If you want to complete the configuration process using your problematic
4519'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4520to "yes", and re-run configure.
4521
4522END
4523    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4524  fi
4525fi
4526
4527
4528# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4542printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4543if test ${ac_cv_c_undeclared_builtin_options+y}
4544then :
4545  printf %s "(cached) " >&6
4546else $as_nop
4547  ac_save_CFLAGS=$CFLAGS
4548   ac_cv_c_undeclared_builtin_options='cannot detect'
4549   for ac_arg in '' -fno-builtin; do
4550     CFLAGS="$ac_save_CFLAGS $ac_arg"
4551     # This test program should *not* compile successfully.
4552     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4553/* end confdefs.h.  */
4554
4555int
4556main (void)
4557{
4558(void) strchr;
4559  ;
4560  return 0;
4561}
4562_ACEOF
4563if ac_fn_c_try_compile "$LINENO"
4564then :
4565
4566else $as_nop
4567  # This test program should compile successfully.
4568        # No library function is consistently available on
4569        # freestanding implementations, so test against a dummy
4570        # declaration.  Include always-available headers on the
4571        # off chance that they somehow elicit warnings.
4572        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573/* end confdefs.h.  */
4574#include <float.h>
4575#include <limits.h>
4576#include <stdarg.h>
4577#include <stddef.h>
4578extern void ac_decl (int, char *);
4579
4580int
4581main (void)
4582{
4583(void) ac_decl (0, (char *) 0);
4584  (void) ac_decl;
4585
4586  ;
4587  return 0;
4588}
4589_ACEOF
4590if ac_fn_c_try_compile "$LINENO"
4591then :
4592  if test x"$ac_arg" = x
4593then :
4594  ac_cv_c_undeclared_builtin_options='none needed'
4595else $as_nop
4596  ac_cv_c_undeclared_builtin_options=$ac_arg
4597fi
4598          break
4599fi
4600rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4601fi
4602rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4603    done
4604    CFLAGS=$ac_save_CFLAGS
4605
4606fi
4607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4608printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4609  case $ac_cv_c_undeclared_builtin_options in #(
4610  'cannot detect') :
4611    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4612printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4613as_fn_error $? "cannot make $CC report undeclared builtins
4614See \`config.log' for more details" "$LINENO" 5; } ;; #(
4615  'none needed') :
4616    ac_c_undeclared_builtin_options='' ;; #(
4617  *) :
4618    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4619esac
4620
4621
4622
4623
4624
4625ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4626if test "x$ac_cv_have_decl___clang__" = xyes
4627then :
4628  CLANGCC="yes"
4629else $as_nop
4630  CLANGCC="no"
4631fi
4632ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4633if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4634then :
4635  INTELCC="yes"
4636else $as_nop
4637  INTELCC="no"
4638fi
4639ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4640if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4641then :
4642  SUNCC="yes"
4643else $as_nop
4644  SUNCC="no"
4645fi
4646
4647
4648
4649
4650
4651
4652
4653
4654if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4655	if test -n "$ac_tool_prefix"; then
4656  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4657set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4659printf %s "checking for $ac_word... " >&6; }
4660if test ${ac_cv_path_PKG_CONFIG+y}
4661then :
4662  printf %s "(cached) " >&6
4663else $as_nop
4664  case $PKG_CONFIG in
4665  [\\/]* | ?:[\\/]*)
4666  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4667  ;;
4668  *)
4669  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670for as_dir in $PATH
4671do
4672  IFS=$as_save_IFS
4673  case $as_dir in #(((
4674    '') as_dir=./ ;;
4675    */) ;;
4676    *) as_dir=$as_dir/ ;;
4677  esac
4678    for ac_exec_ext in '' $ac_executable_extensions; do
4679  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4680    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4681    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4682    break 2
4683  fi
4684done
4685  done
4686IFS=$as_save_IFS
4687
4688  ;;
4689esac
4690fi
4691PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4692if test -n "$PKG_CONFIG"; then
4693  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4694printf "%s\n" "$PKG_CONFIG" >&6; }
4695else
4696  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4697printf "%s\n" "no" >&6; }
4698fi
4699
4700
4701fi
4702if test -z "$ac_cv_path_PKG_CONFIG"; then
4703  ac_pt_PKG_CONFIG=$PKG_CONFIG
4704  # Extract the first word of "pkg-config", so it can be a program name with args.
4705set dummy pkg-config; ac_word=$2
4706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4707printf %s "checking for $ac_word... " >&6; }
4708if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4709then :
4710  printf %s "(cached) " >&6
4711else $as_nop
4712  case $ac_pt_PKG_CONFIG in
4713  [\\/]* | ?:[\\/]*)
4714  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4715  ;;
4716  *)
4717  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718for as_dir in $PATH
4719do
4720  IFS=$as_save_IFS
4721  case $as_dir in #(((
4722    '') as_dir=./ ;;
4723    */) ;;
4724    *) as_dir=$as_dir/ ;;
4725  esac
4726    for ac_exec_ext in '' $ac_executable_extensions; do
4727  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4728    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4729    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4730    break 2
4731  fi
4732done
4733  done
4734IFS=$as_save_IFS
4735
4736  ;;
4737esac
4738fi
4739ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4740if test -n "$ac_pt_PKG_CONFIG"; then
4741  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4742printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4743else
4744  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4745printf "%s\n" "no" >&6; }
4746fi
4747
4748  if test "x$ac_pt_PKG_CONFIG" = x; then
4749    PKG_CONFIG=""
4750  else
4751    case $cross_compiling:$ac_tool_warned in
4752yes:)
4753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4754printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4755ac_tool_warned=yes ;;
4756esac
4757    PKG_CONFIG=$ac_pt_PKG_CONFIG
4758  fi
4759else
4760  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4761fi
4762
4763fi
4764if test -n "$PKG_CONFIG"; then
4765	_pkg_min_version=0.9.0
4766	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4767printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4768	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4769		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4770printf "%s\n" "yes" >&6; }
4771	else
4772		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773printf "%s\n" "no" >&6; }
4774		PKG_CONFIG=""
4775	fi
4776fi
4777
4778
4779  # Make sure we can run config.sub.
4780$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4781  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4782
4783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4784printf %s "checking build system type... " >&6; }
4785if test ${ac_cv_build+y}
4786then :
4787  printf %s "(cached) " >&6
4788else $as_nop
4789  ac_build_alias=$build_alias
4790test "x$ac_build_alias" = x &&
4791  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4792test "x$ac_build_alias" = x &&
4793  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4794ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4795  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4796
4797fi
4798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4799printf "%s\n" "$ac_cv_build" >&6; }
4800case $ac_cv_build in
4801*-*-*) ;;
4802*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4803esac
4804build=$ac_cv_build
4805ac_save_IFS=$IFS; IFS='-'
4806set x $ac_cv_build
4807shift
4808build_cpu=$1
4809build_vendor=$2
4810shift; shift
4811# Remember, the first character of IFS is used to create $*,
4812# except with old shells:
4813build_os=$*
4814IFS=$ac_save_IFS
4815case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4816
4817
4818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4819printf %s "checking host system type... " >&6; }
4820if test ${ac_cv_host+y}
4821then :
4822  printf %s "(cached) " >&6
4823else $as_nop
4824  if test "x$host_alias" = x; then
4825  ac_cv_host=$ac_cv_build
4826else
4827  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4828    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4829fi
4830
4831fi
4832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4833printf "%s\n" "$ac_cv_host" >&6; }
4834case $ac_cv_host in
4835*-*-*) ;;
4836*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4837esac
4838host=$ac_cv_host
4839ac_save_IFS=$IFS; IFS='-'
4840set x $ac_cv_host
4841shift
4842host_cpu=$1
4843host_vendor=$2
4844shift; shift
4845# Remember, the first character of IFS is used to create $*,
4846# except with old shells:
4847host_os=$*
4848IFS=$ac_save_IFS
4849case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4850
4851
4852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4853printf %s "checking for a sed that does not truncate output... " >&6; }
4854if test ${ac_cv_path_SED+y}
4855then :
4856  printf %s "(cached) " >&6
4857else $as_nop
4858            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4859     for ac_i in 1 2 3 4 5 6 7; do
4860       ac_script="$ac_script$as_nl$ac_script"
4861     done
4862     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4863     { ac_script=; unset ac_script;}
4864     if test -z "$SED"; then
4865  ac_path_SED_found=false
4866  # Loop through the user's path and test for each of PROGNAME-LIST
4867  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868for as_dir in $PATH
4869do
4870  IFS=$as_save_IFS
4871  case $as_dir in #(((
4872    '') as_dir=./ ;;
4873    */) ;;
4874    *) as_dir=$as_dir/ ;;
4875  esac
4876    for ac_prog in sed gsed
4877   do
4878    for ac_exec_ext in '' $ac_executable_extensions; do
4879      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4880      as_fn_executable_p "$ac_path_SED" || continue
4881# Check for GNU ac_path_SED and select it if it is found.
4882  # Check for GNU $ac_path_SED
4883case `"$ac_path_SED" --version 2>&1` in
4884*GNU*)
4885  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4886*)
4887  ac_count=0
4888  printf %s 0123456789 >"conftest.in"
4889  while :
4890  do
4891    cat "conftest.in" "conftest.in" >"conftest.tmp"
4892    mv "conftest.tmp" "conftest.in"
4893    cp "conftest.in" "conftest.nl"
4894    printf "%s\n" '' >> "conftest.nl"
4895    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4896    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4897    as_fn_arith $ac_count + 1 && ac_count=$as_val
4898    if test $ac_count -gt ${ac_path_SED_max-0}; then
4899      # Best one so far, save it but keep looking for a better one
4900      ac_cv_path_SED="$ac_path_SED"
4901      ac_path_SED_max=$ac_count
4902    fi
4903    # 10*(2^10) chars as input seems more than enough
4904    test $ac_count -gt 10 && break
4905  done
4906  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4907esac
4908
4909      $ac_path_SED_found && break 3
4910    done
4911  done
4912  done
4913IFS=$as_save_IFS
4914  if test -z "$ac_cv_path_SED"; then
4915    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4916  fi
4917else
4918  ac_cv_path_SED=$SED
4919fi
4920
4921fi
4922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4923printf "%s\n" "$ac_cv_path_SED" >&6; }
4924 SED="$ac_cv_path_SED"
4925  rm -f conftest.sed
4926
4927
4928
4929
4930
4931
4932# Check whether --enable-selective-werror was given.
4933if test ${enable_selective_werror+y}
4934then :
4935  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4936else $as_nop
4937  SELECTIVE_WERROR=yes
4938fi
4939
4940
4941
4942
4943
4944# -v is too short to test reliably with XORG_TESTSET_CFLAG
4945if test "x$SUNCC" = "xyes"; then
4946    BASE_CFLAGS="-v"
4947else
4948    BASE_CFLAGS=""
4949fi
4950
4951# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965xorg_testset_save_CFLAGS="$CFLAGS"
4966
4967if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4968	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4969	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4970printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4971if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4972then :
4973  printf %s "(cached) " >&6
4974else $as_nop
4975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976/* end confdefs.h.  */
4977int i;
4978_ACEOF
4979if ac_fn_c_try_compile "$LINENO"
4980then :
4981  xorg_cv_cc_flag_unknown_warning_option=yes
4982else $as_nop
4983  xorg_cv_cc_flag_unknown_warning_option=no
4984fi
4985rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4986fi
4987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4988printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4989	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4990	CFLAGS="$xorg_testset_save_CFLAGS"
4991fi
4992
4993if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4994	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4995		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4996	fi
4997	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4998	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4999printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5000if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5001then :
5002  printf %s "(cached) " >&6
5003else $as_nop
5004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5005/* end confdefs.h.  */
5006int i;
5007_ACEOF
5008if ac_fn_c_try_compile "$LINENO"
5009then :
5010  xorg_cv_cc_flag_unused_command_line_argument=yes
5011else $as_nop
5012  xorg_cv_cc_flag_unused_command_line_argument=no
5013fi
5014rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5015fi
5016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5017printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5018	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5019	CFLAGS="$xorg_testset_save_CFLAGS"
5020fi
5021
5022found="no"
5023
5024	if test $found = "no" ; then
5025		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5026			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5027		fi
5028
5029		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5030			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5031		fi
5032
5033		CFLAGS="$CFLAGS -Wall"
5034
5035		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5036printf %s "checking if $CC supports -Wall... " >&6; }
5037		cacheid=xorg_cv_cc_flag__Wall
5038		if eval test \${$cacheid+y}
5039then :
5040  printf %s "(cached) " >&6
5041else $as_nop
5042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5043/* end confdefs.h.  */
5044int i;
5045int
5046main (void)
5047{
5048
5049  ;
5050  return 0;
5051}
5052_ACEOF
5053if ac_fn_c_try_link "$LINENO"
5054then :
5055  eval $cacheid=yes
5056else $as_nop
5057  eval $cacheid=no
5058fi
5059rm -f core conftest.err conftest.$ac_objext conftest.beam \
5060    conftest$ac_exeext conftest.$ac_ext
5061fi
5062
5063
5064		CFLAGS="$xorg_testset_save_CFLAGS"
5065
5066		eval supported=\$$cacheid
5067		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5068printf "%s\n" "$supported" >&6; }
5069		if test "$supported" = "yes" ; then
5070			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5071			found="yes"
5072		fi
5073	fi
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089xorg_testset_save_CFLAGS="$CFLAGS"
5090
5091if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5092	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5093	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5094printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5095if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5096then :
5097  printf %s "(cached) " >&6
5098else $as_nop
5099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5100/* end confdefs.h.  */
5101int i;
5102_ACEOF
5103if ac_fn_c_try_compile "$LINENO"
5104then :
5105  xorg_cv_cc_flag_unknown_warning_option=yes
5106else $as_nop
5107  xorg_cv_cc_flag_unknown_warning_option=no
5108fi
5109rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5110fi
5111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5112printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5113	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5114	CFLAGS="$xorg_testset_save_CFLAGS"
5115fi
5116
5117if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5118	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5119		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5120	fi
5121	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5122	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5123printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5124if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5125then :
5126  printf %s "(cached) " >&6
5127else $as_nop
5128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5129/* end confdefs.h.  */
5130int i;
5131_ACEOF
5132if ac_fn_c_try_compile "$LINENO"
5133then :
5134  xorg_cv_cc_flag_unused_command_line_argument=yes
5135else $as_nop
5136  xorg_cv_cc_flag_unused_command_line_argument=no
5137fi
5138rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5139fi
5140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5141printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5142	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5143	CFLAGS="$xorg_testset_save_CFLAGS"
5144fi
5145
5146found="no"
5147
5148	if test $found = "no" ; then
5149		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5150			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5151		fi
5152
5153		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5154			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5155		fi
5156
5157		CFLAGS="$CFLAGS -Wpointer-arith"
5158
5159		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5160printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5161		cacheid=xorg_cv_cc_flag__Wpointer_arith
5162		if eval test \${$cacheid+y}
5163then :
5164  printf %s "(cached) " >&6
5165else $as_nop
5166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5167/* end confdefs.h.  */
5168int i;
5169int
5170main (void)
5171{
5172
5173  ;
5174  return 0;
5175}
5176_ACEOF
5177if ac_fn_c_try_link "$LINENO"
5178then :
5179  eval $cacheid=yes
5180else $as_nop
5181  eval $cacheid=no
5182fi
5183rm -f core conftest.err conftest.$ac_objext conftest.beam \
5184    conftest$ac_exeext conftest.$ac_ext
5185fi
5186
5187
5188		CFLAGS="$xorg_testset_save_CFLAGS"
5189
5190		eval supported=\$$cacheid
5191		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5192printf "%s\n" "$supported" >&6; }
5193		if test "$supported" = "yes" ; then
5194			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5195			found="yes"
5196		fi
5197	fi
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213xorg_testset_save_CFLAGS="$CFLAGS"
5214
5215if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5216	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5217	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5218printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5219if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5220then :
5221  printf %s "(cached) " >&6
5222else $as_nop
5223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5224/* end confdefs.h.  */
5225int i;
5226_ACEOF
5227if ac_fn_c_try_compile "$LINENO"
5228then :
5229  xorg_cv_cc_flag_unknown_warning_option=yes
5230else $as_nop
5231  xorg_cv_cc_flag_unknown_warning_option=no
5232fi
5233rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5234fi
5235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5236printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5237	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5238	CFLAGS="$xorg_testset_save_CFLAGS"
5239fi
5240
5241if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5242	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5243		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5244	fi
5245	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5246	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5247printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5248if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5249then :
5250  printf %s "(cached) " >&6
5251else $as_nop
5252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253/* end confdefs.h.  */
5254int i;
5255_ACEOF
5256if ac_fn_c_try_compile "$LINENO"
5257then :
5258  xorg_cv_cc_flag_unused_command_line_argument=yes
5259else $as_nop
5260  xorg_cv_cc_flag_unused_command_line_argument=no
5261fi
5262rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5263fi
5264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5265printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5266	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5267	CFLAGS="$xorg_testset_save_CFLAGS"
5268fi
5269
5270found="no"
5271
5272	if test $found = "no" ; then
5273		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5274			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5275		fi
5276
5277		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5278			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5279		fi
5280
5281		CFLAGS="$CFLAGS -Wmissing-declarations"
5282
5283		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5284printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5285		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5286		if eval test \${$cacheid+y}
5287then :
5288  printf %s "(cached) " >&6
5289else $as_nop
5290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291/* end confdefs.h.  */
5292int i;
5293int
5294main (void)
5295{
5296
5297  ;
5298  return 0;
5299}
5300_ACEOF
5301if ac_fn_c_try_link "$LINENO"
5302then :
5303  eval $cacheid=yes
5304else $as_nop
5305  eval $cacheid=no
5306fi
5307rm -f core conftest.err conftest.$ac_objext conftest.beam \
5308    conftest$ac_exeext conftest.$ac_ext
5309fi
5310
5311
5312		CFLAGS="$xorg_testset_save_CFLAGS"
5313
5314		eval supported=\$$cacheid
5315		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5316printf "%s\n" "$supported" >&6; }
5317		if test "$supported" = "yes" ; then
5318			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5319			found="yes"
5320		fi
5321	fi
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337xorg_testset_save_CFLAGS="$CFLAGS"
5338
5339if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5340	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5341	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5342printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5343if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5344then :
5345  printf %s "(cached) " >&6
5346else $as_nop
5347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5348/* end confdefs.h.  */
5349int i;
5350_ACEOF
5351if ac_fn_c_try_compile "$LINENO"
5352then :
5353  xorg_cv_cc_flag_unknown_warning_option=yes
5354else $as_nop
5355  xorg_cv_cc_flag_unknown_warning_option=no
5356fi
5357rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5358fi
5359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5360printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5361	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5362	CFLAGS="$xorg_testset_save_CFLAGS"
5363fi
5364
5365if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5366	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5367		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5368	fi
5369	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5370	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5371printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5372if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5373then :
5374  printf %s "(cached) " >&6
5375else $as_nop
5376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377/* end confdefs.h.  */
5378int i;
5379_ACEOF
5380if ac_fn_c_try_compile "$LINENO"
5381then :
5382  xorg_cv_cc_flag_unused_command_line_argument=yes
5383else $as_nop
5384  xorg_cv_cc_flag_unused_command_line_argument=no
5385fi
5386rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5387fi
5388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5389printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5390	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5391	CFLAGS="$xorg_testset_save_CFLAGS"
5392fi
5393
5394found="no"
5395
5396	if test $found = "no" ; then
5397		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5398			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5399		fi
5400
5401		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5402			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5403		fi
5404
5405		CFLAGS="$CFLAGS -Wformat=2"
5406
5407		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5408printf %s "checking if $CC supports -Wformat=2... " >&6; }
5409		cacheid=xorg_cv_cc_flag__Wformat_2
5410		if eval test \${$cacheid+y}
5411then :
5412  printf %s "(cached) " >&6
5413else $as_nop
5414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5415/* end confdefs.h.  */
5416int i;
5417int
5418main (void)
5419{
5420
5421  ;
5422  return 0;
5423}
5424_ACEOF
5425if ac_fn_c_try_link "$LINENO"
5426then :
5427  eval $cacheid=yes
5428else $as_nop
5429  eval $cacheid=no
5430fi
5431rm -f core conftest.err conftest.$ac_objext conftest.beam \
5432    conftest$ac_exeext conftest.$ac_ext
5433fi
5434
5435
5436		CFLAGS="$xorg_testset_save_CFLAGS"
5437
5438		eval supported=\$$cacheid
5439		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5440printf "%s\n" "$supported" >&6; }
5441		if test "$supported" = "yes" ; then
5442			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5443			found="yes"
5444		fi
5445	fi
5446
5447	if test $found = "no" ; then
5448		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5449			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5450		fi
5451
5452		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5453			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5454		fi
5455
5456		CFLAGS="$CFLAGS -Wformat"
5457
5458		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5459printf %s "checking if $CC supports -Wformat... " >&6; }
5460		cacheid=xorg_cv_cc_flag__Wformat
5461		if eval test \${$cacheid+y}
5462then :
5463  printf %s "(cached) " >&6
5464else $as_nop
5465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5466/* end confdefs.h.  */
5467int i;
5468int
5469main (void)
5470{
5471
5472  ;
5473  return 0;
5474}
5475_ACEOF
5476if ac_fn_c_try_link "$LINENO"
5477then :
5478  eval $cacheid=yes
5479else $as_nop
5480  eval $cacheid=no
5481fi
5482rm -f core conftest.err conftest.$ac_objext conftest.beam \
5483    conftest$ac_exeext conftest.$ac_ext
5484fi
5485
5486
5487		CFLAGS="$xorg_testset_save_CFLAGS"
5488
5489		eval supported=\$$cacheid
5490		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5491printf "%s\n" "$supported" >&6; }
5492		if test "$supported" = "yes" ; then
5493			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5494			found="yes"
5495		fi
5496	fi
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514xorg_testset_save_CFLAGS="$CFLAGS"
5515
5516if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5517	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5518	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5519printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5520if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5521then :
5522  printf %s "(cached) " >&6
5523else $as_nop
5524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525/* end confdefs.h.  */
5526int i;
5527_ACEOF
5528if ac_fn_c_try_compile "$LINENO"
5529then :
5530  xorg_cv_cc_flag_unknown_warning_option=yes
5531else $as_nop
5532  xorg_cv_cc_flag_unknown_warning_option=no
5533fi
5534rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5535fi
5536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5537printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5538	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5539	CFLAGS="$xorg_testset_save_CFLAGS"
5540fi
5541
5542if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5543	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5544		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5545	fi
5546	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5547	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5548printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5549if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5550then :
5551  printf %s "(cached) " >&6
5552else $as_nop
5553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5554/* end confdefs.h.  */
5555int i;
5556_ACEOF
5557if ac_fn_c_try_compile "$LINENO"
5558then :
5559  xorg_cv_cc_flag_unused_command_line_argument=yes
5560else $as_nop
5561  xorg_cv_cc_flag_unused_command_line_argument=no
5562fi
5563rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5564fi
5565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5566printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5567	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5568	CFLAGS="$xorg_testset_save_CFLAGS"
5569fi
5570
5571found="no"
5572
5573	if test $found = "no" ; then
5574		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5575			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5576		fi
5577
5578		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5579			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5580		fi
5581
5582		CFLAGS="$CFLAGS -Wstrict-prototypes"
5583
5584		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5585printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5586		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5587		if eval test \${$cacheid+y}
5588then :
5589  printf %s "(cached) " >&6
5590else $as_nop
5591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592/* end confdefs.h.  */
5593int i;
5594int
5595main (void)
5596{
5597
5598  ;
5599  return 0;
5600}
5601_ACEOF
5602if ac_fn_c_try_link "$LINENO"
5603then :
5604  eval $cacheid=yes
5605else $as_nop
5606  eval $cacheid=no
5607fi
5608rm -f core conftest.err conftest.$ac_objext conftest.beam \
5609    conftest$ac_exeext conftest.$ac_ext
5610fi
5611
5612
5613		CFLAGS="$xorg_testset_save_CFLAGS"
5614
5615		eval supported=\$$cacheid
5616		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5617printf "%s\n" "$supported" >&6; }
5618		if test "$supported" = "yes" ; then
5619			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5620			found="yes"
5621		fi
5622	fi
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638xorg_testset_save_CFLAGS="$CFLAGS"
5639
5640if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5641	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5642	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5643printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5644if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5645then :
5646  printf %s "(cached) " >&6
5647else $as_nop
5648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5649/* end confdefs.h.  */
5650int i;
5651_ACEOF
5652if ac_fn_c_try_compile "$LINENO"
5653then :
5654  xorg_cv_cc_flag_unknown_warning_option=yes
5655else $as_nop
5656  xorg_cv_cc_flag_unknown_warning_option=no
5657fi
5658rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5659fi
5660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5661printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5662	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5663	CFLAGS="$xorg_testset_save_CFLAGS"
5664fi
5665
5666if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5667	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5668		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5669	fi
5670	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5671	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5672printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5673if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5674then :
5675  printf %s "(cached) " >&6
5676else $as_nop
5677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5678/* end confdefs.h.  */
5679int i;
5680_ACEOF
5681if ac_fn_c_try_compile "$LINENO"
5682then :
5683  xorg_cv_cc_flag_unused_command_line_argument=yes
5684else $as_nop
5685  xorg_cv_cc_flag_unused_command_line_argument=no
5686fi
5687rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5688fi
5689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5690printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5691	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5692	CFLAGS="$xorg_testset_save_CFLAGS"
5693fi
5694
5695found="no"
5696
5697	if test $found = "no" ; then
5698		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5699			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5700		fi
5701
5702		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5703			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5704		fi
5705
5706		CFLAGS="$CFLAGS -Wmissing-prototypes"
5707
5708		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5709printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5710		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5711		if eval test \${$cacheid+y}
5712then :
5713  printf %s "(cached) " >&6
5714else $as_nop
5715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5716/* end confdefs.h.  */
5717int i;
5718int
5719main (void)
5720{
5721
5722  ;
5723  return 0;
5724}
5725_ACEOF
5726if ac_fn_c_try_link "$LINENO"
5727then :
5728  eval $cacheid=yes
5729else $as_nop
5730  eval $cacheid=no
5731fi
5732rm -f core conftest.err conftest.$ac_objext conftest.beam \
5733    conftest$ac_exeext conftest.$ac_ext
5734fi
5735
5736
5737		CFLAGS="$xorg_testset_save_CFLAGS"
5738
5739		eval supported=\$$cacheid
5740		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5741printf "%s\n" "$supported" >&6; }
5742		if test "$supported" = "yes" ; then
5743			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5744			found="yes"
5745		fi
5746	fi
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762xorg_testset_save_CFLAGS="$CFLAGS"
5763
5764if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5765	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5766	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5767printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5768if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5769then :
5770  printf %s "(cached) " >&6
5771else $as_nop
5772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5773/* end confdefs.h.  */
5774int i;
5775_ACEOF
5776if ac_fn_c_try_compile "$LINENO"
5777then :
5778  xorg_cv_cc_flag_unknown_warning_option=yes
5779else $as_nop
5780  xorg_cv_cc_flag_unknown_warning_option=no
5781fi
5782rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5783fi
5784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5785printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5786	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5787	CFLAGS="$xorg_testset_save_CFLAGS"
5788fi
5789
5790if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5791	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5792		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5793	fi
5794	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5795	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5796printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5797if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5798then :
5799  printf %s "(cached) " >&6
5800else $as_nop
5801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5802/* end confdefs.h.  */
5803int i;
5804_ACEOF
5805if ac_fn_c_try_compile "$LINENO"
5806then :
5807  xorg_cv_cc_flag_unused_command_line_argument=yes
5808else $as_nop
5809  xorg_cv_cc_flag_unused_command_line_argument=no
5810fi
5811rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5812fi
5813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5814printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5815	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5816	CFLAGS="$xorg_testset_save_CFLAGS"
5817fi
5818
5819found="no"
5820
5821	if test $found = "no" ; then
5822		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5823			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5824		fi
5825
5826		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5827			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5828		fi
5829
5830		CFLAGS="$CFLAGS -Wnested-externs"
5831
5832		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5833printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5834		cacheid=xorg_cv_cc_flag__Wnested_externs
5835		if eval test \${$cacheid+y}
5836then :
5837  printf %s "(cached) " >&6
5838else $as_nop
5839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840/* end confdefs.h.  */
5841int i;
5842int
5843main (void)
5844{
5845
5846  ;
5847  return 0;
5848}
5849_ACEOF
5850if ac_fn_c_try_link "$LINENO"
5851then :
5852  eval $cacheid=yes
5853else $as_nop
5854  eval $cacheid=no
5855fi
5856rm -f core conftest.err conftest.$ac_objext conftest.beam \
5857    conftest$ac_exeext conftest.$ac_ext
5858fi
5859
5860
5861		CFLAGS="$xorg_testset_save_CFLAGS"
5862
5863		eval supported=\$$cacheid
5864		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5865printf "%s\n" "$supported" >&6; }
5866		if test "$supported" = "yes" ; then
5867			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5868			found="yes"
5869		fi
5870	fi
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886xorg_testset_save_CFLAGS="$CFLAGS"
5887
5888if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5889	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5890	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5891printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5892if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5893then :
5894  printf %s "(cached) " >&6
5895else $as_nop
5896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5897/* end confdefs.h.  */
5898int i;
5899_ACEOF
5900if ac_fn_c_try_compile "$LINENO"
5901then :
5902  xorg_cv_cc_flag_unknown_warning_option=yes
5903else $as_nop
5904  xorg_cv_cc_flag_unknown_warning_option=no
5905fi
5906rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5907fi
5908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5909printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5910	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5911	CFLAGS="$xorg_testset_save_CFLAGS"
5912fi
5913
5914if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5915	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5916		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5917	fi
5918	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5919	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5920printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5921if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5922then :
5923  printf %s "(cached) " >&6
5924else $as_nop
5925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926/* end confdefs.h.  */
5927int i;
5928_ACEOF
5929if ac_fn_c_try_compile "$LINENO"
5930then :
5931  xorg_cv_cc_flag_unused_command_line_argument=yes
5932else $as_nop
5933  xorg_cv_cc_flag_unused_command_line_argument=no
5934fi
5935rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5936fi
5937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5938printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5939	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5940	CFLAGS="$xorg_testset_save_CFLAGS"
5941fi
5942
5943found="no"
5944
5945	if test $found = "no" ; then
5946		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5947			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5948		fi
5949
5950		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5951			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5952		fi
5953
5954		CFLAGS="$CFLAGS -Wbad-function-cast"
5955
5956		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5957printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5958		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5959		if eval test \${$cacheid+y}
5960then :
5961  printf %s "(cached) " >&6
5962else $as_nop
5963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5964/* end confdefs.h.  */
5965int i;
5966int
5967main (void)
5968{
5969
5970  ;
5971  return 0;
5972}
5973_ACEOF
5974if ac_fn_c_try_link "$LINENO"
5975then :
5976  eval $cacheid=yes
5977else $as_nop
5978  eval $cacheid=no
5979fi
5980rm -f core conftest.err conftest.$ac_objext conftest.beam \
5981    conftest$ac_exeext conftest.$ac_ext
5982fi
5983
5984
5985		CFLAGS="$xorg_testset_save_CFLAGS"
5986
5987		eval supported=\$$cacheid
5988		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5989printf "%s\n" "$supported" >&6; }
5990		if test "$supported" = "yes" ; then
5991			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5992			found="yes"
5993		fi
5994	fi
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010xorg_testset_save_CFLAGS="$CFLAGS"
6011
6012if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6013	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6014	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6015printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6016if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6017then :
6018  printf %s "(cached) " >&6
6019else $as_nop
6020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6021/* end confdefs.h.  */
6022int i;
6023_ACEOF
6024if ac_fn_c_try_compile "$LINENO"
6025then :
6026  xorg_cv_cc_flag_unknown_warning_option=yes
6027else $as_nop
6028  xorg_cv_cc_flag_unknown_warning_option=no
6029fi
6030rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6031fi
6032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6033printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6034	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6035	CFLAGS="$xorg_testset_save_CFLAGS"
6036fi
6037
6038if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6039	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6040		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6041	fi
6042	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6043	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6044printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6045if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6046then :
6047  printf %s "(cached) " >&6
6048else $as_nop
6049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050/* end confdefs.h.  */
6051int i;
6052_ACEOF
6053if ac_fn_c_try_compile "$LINENO"
6054then :
6055  xorg_cv_cc_flag_unused_command_line_argument=yes
6056else $as_nop
6057  xorg_cv_cc_flag_unused_command_line_argument=no
6058fi
6059rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6060fi
6061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6062printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6063	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6064	CFLAGS="$xorg_testset_save_CFLAGS"
6065fi
6066
6067found="no"
6068
6069	if test $found = "no" ; then
6070		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6071			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6072		fi
6073
6074		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6075			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6076		fi
6077
6078		CFLAGS="$CFLAGS -Wold-style-definition"
6079
6080		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6081printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6082		cacheid=xorg_cv_cc_flag__Wold_style_definition
6083		if eval test \${$cacheid+y}
6084then :
6085  printf %s "(cached) " >&6
6086else $as_nop
6087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6088/* end confdefs.h.  */
6089int i;
6090int
6091main (void)
6092{
6093
6094  ;
6095  return 0;
6096}
6097_ACEOF
6098if ac_fn_c_try_link "$LINENO"
6099then :
6100  eval $cacheid=yes
6101else $as_nop
6102  eval $cacheid=no
6103fi
6104rm -f core conftest.err conftest.$ac_objext conftest.beam \
6105    conftest$ac_exeext conftest.$ac_ext
6106fi
6107
6108
6109		CFLAGS="$xorg_testset_save_CFLAGS"
6110
6111		eval supported=\$$cacheid
6112		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6113printf "%s\n" "$supported" >&6; }
6114		if test "$supported" = "yes" ; then
6115			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6116			found="yes"
6117		fi
6118	fi
6119
6120	if test $found = "no" ; then
6121		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6122			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6123		fi
6124
6125		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6126			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6127		fi
6128
6129		CFLAGS="$CFLAGS -fd"
6130
6131		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6132printf %s "checking if $CC supports -fd... " >&6; }
6133		cacheid=xorg_cv_cc_flag__fd
6134		if eval test \${$cacheid+y}
6135then :
6136  printf %s "(cached) " >&6
6137else $as_nop
6138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6139/* end confdefs.h.  */
6140int i;
6141int
6142main (void)
6143{
6144
6145  ;
6146  return 0;
6147}
6148_ACEOF
6149if ac_fn_c_try_link "$LINENO"
6150then :
6151  eval $cacheid=yes
6152else $as_nop
6153  eval $cacheid=no
6154fi
6155rm -f core conftest.err conftest.$ac_objext conftest.beam \
6156    conftest$ac_exeext conftest.$ac_ext
6157fi
6158
6159
6160		CFLAGS="$xorg_testset_save_CFLAGS"
6161
6162		eval supported=\$$cacheid
6163		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6164printf "%s\n" "$supported" >&6; }
6165		if test "$supported" = "yes" ; then
6166			BASE_CFLAGS="$BASE_CFLAGS -fd"
6167			found="yes"
6168		fi
6169	fi
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185xorg_testset_save_CFLAGS="$CFLAGS"
6186
6187if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6188	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6189	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6190printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6191if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6192then :
6193  printf %s "(cached) " >&6
6194else $as_nop
6195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6196/* end confdefs.h.  */
6197int i;
6198_ACEOF
6199if ac_fn_c_try_compile "$LINENO"
6200then :
6201  xorg_cv_cc_flag_unknown_warning_option=yes
6202else $as_nop
6203  xorg_cv_cc_flag_unknown_warning_option=no
6204fi
6205rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6206fi
6207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6208printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6209	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6210	CFLAGS="$xorg_testset_save_CFLAGS"
6211fi
6212
6213if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6214	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6215		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6216	fi
6217	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6218	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6219printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6220if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6221then :
6222  printf %s "(cached) " >&6
6223else $as_nop
6224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6225/* end confdefs.h.  */
6226int i;
6227_ACEOF
6228if ac_fn_c_try_compile "$LINENO"
6229then :
6230  xorg_cv_cc_flag_unused_command_line_argument=yes
6231else $as_nop
6232  xorg_cv_cc_flag_unused_command_line_argument=no
6233fi
6234rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6235fi
6236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6237printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6238	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6239	CFLAGS="$xorg_testset_save_CFLAGS"
6240fi
6241
6242found="no"
6243
6244	if test $found = "no" ; then
6245		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6246			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6247		fi
6248
6249		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6250			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6251		fi
6252
6253		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6254
6255		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6256printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6257		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6258		if eval test \${$cacheid+y}
6259then :
6260  printf %s "(cached) " >&6
6261else $as_nop
6262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6263/* end confdefs.h.  */
6264int i;
6265int
6266main (void)
6267{
6268
6269  ;
6270  return 0;
6271}
6272_ACEOF
6273if ac_fn_c_try_link "$LINENO"
6274then :
6275  eval $cacheid=yes
6276else $as_nop
6277  eval $cacheid=no
6278fi
6279rm -f core conftest.err conftest.$ac_objext conftest.beam \
6280    conftest$ac_exeext conftest.$ac_ext
6281fi
6282
6283
6284		CFLAGS="$xorg_testset_save_CFLAGS"
6285
6286		eval supported=\$$cacheid
6287		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6288printf "%s\n" "$supported" >&6; }
6289		if test "$supported" = "yes" ; then
6290			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6291			found="yes"
6292		fi
6293	fi
6294
6295
6296
6297
6298
6299# This chunk adds additional warnings that could catch undesired effects.
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313xorg_testset_save_CFLAGS="$CFLAGS"
6314
6315if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6316	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6317	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6318printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6319if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6320then :
6321  printf %s "(cached) " >&6
6322else $as_nop
6323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6324/* end confdefs.h.  */
6325int i;
6326_ACEOF
6327if ac_fn_c_try_compile "$LINENO"
6328then :
6329  xorg_cv_cc_flag_unknown_warning_option=yes
6330else $as_nop
6331  xorg_cv_cc_flag_unknown_warning_option=no
6332fi
6333rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6334fi
6335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6336printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6337	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6338	CFLAGS="$xorg_testset_save_CFLAGS"
6339fi
6340
6341if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6342	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6343		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6344	fi
6345	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6346	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6347printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6348if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6349then :
6350  printf %s "(cached) " >&6
6351else $as_nop
6352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6353/* end confdefs.h.  */
6354int i;
6355_ACEOF
6356if ac_fn_c_try_compile "$LINENO"
6357then :
6358  xorg_cv_cc_flag_unused_command_line_argument=yes
6359else $as_nop
6360  xorg_cv_cc_flag_unused_command_line_argument=no
6361fi
6362rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6363fi
6364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6365printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6366	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6367	CFLAGS="$xorg_testset_save_CFLAGS"
6368fi
6369
6370found="no"
6371
6372	if test $found = "no" ; then
6373		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6374			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6375		fi
6376
6377		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6378			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6379		fi
6380
6381		CFLAGS="$CFLAGS -Wunused"
6382
6383		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6384printf %s "checking if $CC supports -Wunused... " >&6; }
6385		cacheid=xorg_cv_cc_flag__Wunused
6386		if eval test \${$cacheid+y}
6387then :
6388  printf %s "(cached) " >&6
6389else $as_nop
6390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6391/* end confdefs.h.  */
6392int i;
6393int
6394main (void)
6395{
6396
6397  ;
6398  return 0;
6399}
6400_ACEOF
6401if ac_fn_c_try_link "$LINENO"
6402then :
6403  eval $cacheid=yes
6404else $as_nop
6405  eval $cacheid=no
6406fi
6407rm -f core conftest.err conftest.$ac_objext conftest.beam \
6408    conftest$ac_exeext conftest.$ac_ext
6409fi
6410
6411
6412		CFLAGS="$xorg_testset_save_CFLAGS"
6413
6414		eval supported=\$$cacheid
6415		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6416printf "%s\n" "$supported" >&6; }
6417		if test "$supported" = "yes" ; then
6418			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6419			found="yes"
6420		fi
6421	fi
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437xorg_testset_save_CFLAGS="$CFLAGS"
6438
6439if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6440	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6441	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6442printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6443if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6444then :
6445  printf %s "(cached) " >&6
6446else $as_nop
6447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6448/* end confdefs.h.  */
6449int i;
6450_ACEOF
6451if ac_fn_c_try_compile "$LINENO"
6452then :
6453  xorg_cv_cc_flag_unknown_warning_option=yes
6454else $as_nop
6455  xorg_cv_cc_flag_unknown_warning_option=no
6456fi
6457rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6458fi
6459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6460printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6461	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6462	CFLAGS="$xorg_testset_save_CFLAGS"
6463fi
6464
6465if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6466	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6467		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6468	fi
6469	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6470	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6471printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6472if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6473then :
6474  printf %s "(cached) " >&6
6475else $as_nop
6476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6477/* end confdefs.h.  */
6478int i;
6479_ACEOF
6480if ac_fn_c_try_compile "$LINENO"
6481then :
6482  xorg_cv_cc_flag_unused_command_line_argument=yes
6483else $as_nop
6484  xorg_cv_cc_flag_unused_command_line_argument=no
6485fi
6486rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6487fi
6488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6489printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6490	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6491	CFLAGS="$xorg_testset_save_CFLAGS"
6492fi
6493
6494found="no"
6495
6496	if test $found = "no" ; then
6497		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6498			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6499		fi
6500
6501		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6502			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6503		fi
6504
6505		CFLAGS="$CFLAGS -Wuninitialized"
6506
6507		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6508printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6509		cacheid=xorg_cv_cc_flag__Wuninitialized
6510		if eval test \${$cacheid+y}
6511then :
6512  printf %s "(cached) " >&6
6513else $as_nop
6514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6515/* end confdefs.h.  */
6516int i;
6517int
6518main (void)
6519{
6520
6521  ;
6522  return 0;
6523}
6524_ACEOF
6525if ac_fn_c_try_link "$LINENO"
6526then :
6527  eval $cacheid=yes
6528else $as_nop
6529  eval $cacheid=no
6530fi
6531rm -f core conftest.err conftest.$ac_objext conftest.beam \
6532    conftest$ac_exeext conftest.$ac_ext
6533fi
6534
6535
6536		CFLAGS="$xorg_testset_save_CFLAGS"
6537
6538		eval supported=\$$cacheid
6539		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6540printf "%s\n" "$supported" >&6; }
6541		if test "$supported" = "yes" ; then
6542			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6543			found="yes"
6544		fi
6545	fi
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561xorg_testset_save_CFLAGS="$CFLAGS"
6562
6563if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6564	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6565	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6566printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6567if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6568then :
6569  printf %s "(cached) " >&6
6570else $as_nop
6571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6572/* end confdefs.h.  */
6573int i;
6574_ACEOF
6575if ac_fn_c_try_compile "$LINENO"
6576then :
6577  xorg_cv_cc_flag_unknown_warning_option=yes
6578else $as_nop
6579  xorg_cv_cc_flag_unknown_warning_option=no
6580fi
6581rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6582fi
6583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6584printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6585	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6586	CFLAGS="$xorg_testset_save_CFLAGS"
6587fi
6588
6589if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6590	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6591		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6592	fi
6593	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6594	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6595printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6596if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6597then :
6598  printf %s "(cached) " >&6
6599else $as_nop
6600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6601/* end confdefs.h.  */
6602int i;
6603_ACEOF
6604if ac_fn_c_try_compile "$LINENO"
6605then :
6606  xorg_cv_cc_flag_unused_command_line_argument=yes
6607else $as_nop
6608  xorg_cv_cc_flag_unused_command_line_argument=no
6609fi
6610rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6611fi
6612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6613printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6614	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6615	CFLAGS="$xorg_testset_save_CFLAGS"
6616fi
6617
6618found="no"
6619
6620	if test $found = "no" ; then
6621		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6622			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6623		fi
6624
6625		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6626			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6627		fi
6628
6629		CFLAGS="$CFLAGS -Wshadow"
6630
6631		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6632printf %s "checking if $CC supports -Wshadow... " >&6; }
6633		cacheid=xorg_cv_cc_flag__Wshadow
6634		if eval test \${$cacheid+y}
6635then :
6636  printf %s "(cached) " >&6
6637else $as_nop
6638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6639/* end confdefs.h.  */
6640int i;
6641int
6642main (void)
6643{
6644
6645  ;
6646  return 0;
6647}
6648_ACEOF
6649if ac_fn_c_try_link "$LINENO"
6650then :
6651  eval $cacheid=yes
6652else $as_nop
6653  eval $cacheid=no
6654fi
6655rm -f core conftest.err conftest.$ac_objext conftest.beam \
6656    conftest$ac_exeext conftest.$ac_ext
6657fi
6658
6659
6660		CFLAGS="$xorg_testset_save_CFLAGS"
6661
6662		eval supported=\$$cacheid
6663		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6664printf "%s\n" "$supported" >&6; }
6665		if test "$supported" = "yes" ; then
6666			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6667			found="yes"
6668		fi
6669	fi
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685xorg_testset_save_CFLAGS="$CFLAGS"
6686
6687if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6688	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6689	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6690printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6691if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6692then :
6693  printf %s "(cached) " >&6
6694else $as_nop
6695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6696/* end confdefs.h.  */
6697int i;
6698_ACEOF
6699if ac_fn_c_try_compile "$LINENO"
6700then :
6701  xorg_cv_cc_flag_unknown_warning_option=yes
6702else $as_nop
6703  xorg_cv_cc_flag_unknown_warning_option=no
6704fi
6705rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6706fi
6707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6708printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6709	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6710	CFLAGS="$xorg_testset_save_CFLAGS"
6711fi
6712
6713if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6714	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6715		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6716	fi
6717	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6718	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6719printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6720if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6721then :
6722  printf %s "(cached) " >&6
6723else $as_nop
6724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6725/* end confdefs.h.  */
6726int i;
6727_ACEOF
6728if ac_fn_c_try_compile "$LINENO"
6729then :
6730  xorg_cv_cc_flag_unused_command_line_argument=yes
6731else $as_nop
6732  xorg_cv_cc_flag_unused_command_line_argument=no
6733fi
6734rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6735fi
6736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6737printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6738	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6739	CFLAGS="$xorg_testset_save_CFLAGS"
6740fi
6741
6742found="no"
6743
6744	if test $found = "no" ; then
6745		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6746			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6747		fi
6748
6749		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6750			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6751		fi
6752
6753		CFLAGS="$CFLAGS -Wmissing-noreturn"
6754
6755		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6756printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6757		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6758		if eval test \${$cacheid+y}
6759then :
6760  printf %s "(cached) " >&6
6761else $as_nop
6762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6763/* end confdefs.h.  */
6764int i;
6765int
6766main (void)
6767{
6768
6769  ;
6770  return 0;
6771}
6772_ACEOF
6773if ac_fn_c_try_link "$LINENO"
6774then :
6775  eval $cacheid=yes
6776else $as_nop
6777  eval $cacheid=no
6778fi
6779rm -f core conftest.err conftest.$ac_objext conftest.beam \
6780    conftest$ac_exeext conftest.$ac_ext
6781fi
6782
6783
6784		CFLAGS="$xorg_testset_save_CFLAGS"
6785
6786		eval supported=\$$cacheid
6787		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6788printf "%s\n" "$supported" >&6; }
6789		if test "$supported" = "yes" ; then
6790			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6791			found="yes"
6792		fi
6793	fi
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809xorg_testset_save_CFLAGS="$CFLAGS"
6810
6811if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6812	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6813	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6814printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6815if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6816then :
6817  printf %s "(cached) " >&6
6818else $as_nop
6819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6820/* end confdefs.h.  */
6821int i;
6822_ACEOF
6823if ac_fn_c_try_compile "$LINENO"
6824then :
6825  xorg_cv_cc_flag_unknown_warning_option=yes
6826else $as_nop
6827  xorg_cv_cc_flag_unknown_warning_option=no
6828fi
6829rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6830fi
6831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6832printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6833	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6834	CFLAGS="$xorg_testset_save_CFLAGS"
6835fi
6836
6837if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6838	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6839		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6840	fi
6841	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6842	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6843printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6844if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6845then :
6846  printf %s "(cached) " >&6
6847else $as_nop
6848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849/* end confdefs.h.  */
6850int i;
6851_ACEOF
6852if ac_fn_c_try_compile "$LINENO"
6853then :
6854  xorg_cv_cc_flag_unused_command_line_argument=yes
6855else $as_nop
6856  xorg_cv_cc_flag_unused_command_line_argument=no
6857fi
6858rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6859fi
6860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6861printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6862	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6863	CFLAGS="$xorg_testset_save_CFLAGS"
6864fi
6865
6866found="no"
6867
6868	if test $found = "no" ; then
6869		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6870			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6871		fi
6872
6873		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6874			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6875		fi
6876
6877		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6878
6879		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6880printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6881		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6882		if eval test \${$cacheid+y}
6883then :
6884  printf %s "(cached) " >&6
6885else $as_nop
6886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6887/* end confdefs.h.  */
6888int i;
6889int
6890main (void)
6891{
6892
6893  ;
6894  return 0;
6895}
6896_ACEOF
6897if ac_fn_c_try_link "$LINENO"
6898then :
6899  eval $cacheid=yes
6900else $as_nop
6901  eval $cacheid=no
6902fi
6903rm -f core conftest.err conftest.$ac_objext conftest.beam \
6904    conftest$ac_exeext conftest.$ac_ext
6905fi
6906
6907
6908		CFLAGS="$xorg_testset_save_CFLAGS"
6909
6910		eval supported=\$$cacheid
6911		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6912printf "%s\n" "$supported" >&6; }
6913		if test "$supported" = "yes" ; then
6914			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6915			found="yes"
6916		fi
6917	fi
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933xorg_testset_save_CFLAGS="$CFLAGS"
6934
6935if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6936	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6937	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6938printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6939if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6940then :
6941  printf %s "(cached) " >&6
6942else $as_nop
6943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6944/* end confdefs.h.  */
6945int i;
6946_ACEOF
6947if ac_fn_c_try_compile "$LINENO"
6948then :
6949  xorg_cv_cc_flag_unknown_warning_option=yes
6950else $as_nop
6951  xorg_cv_cc_flag_unknown_warning_option=no
6952fi
6953rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6954fi
6955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6956printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6957	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6958	CFLAGS="$xorg_testset_save_CFLAGS"
6959fi
6960
6961if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6962	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6963		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6964	fi
6965	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6966	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6967printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6968if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6969then :
6970  printf %s "(cached) " >&6
6971else $as_nop
6972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6973/* end confdefs.h.  */
6974int i;
6975_ACEOF
6976if ac_fn_c_try_compile "$LINENO"
6977then :
6978  xorg_cv_cc_flag_unused_command_line_argument=yes
6979else $as_nop
6980  xorg_cv_cc_flag_unused_command_line_argument=no
6981fi
6982rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6983fi
6984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6985printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6986	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6987	CFLAGS="$xorg_testset_save_CFLAGS"
6988fi
6989
6990found="no"
6991
6992	if test $found = "no" ; then
6993		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6994			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6995		fi
6996
6997		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6998			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6999		fi
7000
7001		CFLAGS="$CFLAGS -Wredundant-decls"
7002
7003		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7004printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7005		cacheid=xorg_cv_cc_flag__Wredundant_decls
7006		if eval test \${$cacheid+y}
7007then :
7008  printf %s "(cached) " >&6
7009else $as_nop
7010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7011/* end confdefs.h.  */
7012int i;
7013int
7014main (void)
7015{
7016
7017  ;
7018  return 0;
7019}
7020_ACEOF
7021if ac_fn_c_try_link "$LINENO"
7022then :
7023  eval $cacheid=yes
7024else $as_nop
7025  eval $cacheid=no
7026fi
7027rm -f core conftest.err conftest.$ac_objext conftest.beam \
7028    conftest$ac_exeext conftest.$ac_ext
7029fi
7030
7031
7032		CFLAGS="$xorg_testset_save_CFLAGS"
7033
7034		eval supported=\$$cacheid
7035		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7036printf "%s\n" "$supported" >&6; }
7037		if test "$supported" = "yes" ; then
7038			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7039			found="yes"
7040		fi
7041	fi
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057xorg_testset_save_CFLAGS="$CFLAGS"
7058
7059if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7060	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7061	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7062printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7063if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7064then :
7065  printf %s "(cached) " >&6
7066else $as_nop
7067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068/* end confdefs.h.  */
7069int i;
7070_ACEOF
7071if ac_fn_c_try_compile "$LINENO"
7072then :
7073  xorg_cv_cc_flag_unknown_warning_option=yes
7074else $as_nop
7075  xorg_cv_cc_flag_unknown_warning_option=no
7076fi
7077rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7078fi
7079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7080printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7081	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7082	CFLAGS="$xorg_testset_save_CFLAGS"
7083fi
7084
7085if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7086	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7087		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7088	fi
7089	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7090	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7091printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7092if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7093then :
7094  printf %s "(cached) " >&6
7095else $as_nop
7096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7097/* end confdefs.h.  */
7098int i;
7099_ACEOF
7100if ac_fn_c_try_compile "$LINENO"
7101then :
7102  xorg_cv_cc_flag_unused_command_line_argument=yes
7103else $as_nop
7104  xorg_cv_cc_flag_unused_command_line_argument=no
7105fi
7106rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7107fi
7108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7109printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7110	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7111	CFLAGS="$xorg_testset_save_CFLAGS"
7112fi
7113
7114found="no"
7115
7116	if test $found = "no" ; then
7117		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7118			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7119		fi
7120
7121		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7122			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7123		fi
7124
7125		CFLAGS="$CFLAGS -Wlogical-op"
7126
7127		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7128printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7129		cacheid=xorg_cv_cc_flag__Wlogical_op
7130		if eval test \${$cacheid+y}
7131then :
7132  printf %s "(cached) " >&6
7133else $as_nop
7134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7135/* end confdefs.h.  */
7136int i;
7137int
7138main (void)
7139{
7140
7141  ;
7142  return 0;
7143}
7144_ACEOF
7145if ac_fn_c_try_link "$LINENO"
7146then :
7147  eval $cacheid=yes
7148else $as_nop
7149  eval $cacheid=no
7150fi
7151rm -f core conftest.err conftest.$ac_objext conftest.beam \
7152    conftest$ac_exeext conftest.$ac_ext
7153fi
7154
7155
7156		CFLAGS="$xorg_testset_save_CFLAGS"
7157
7158		eval supported=\$$cacheid
7159		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7160printf "%s\n" "$supported" >&6; }
7161		if test "$supported" = "yes" ; then
7162			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7163			found="yes"
7164		fi
7165	fi
7166
7167
7168
7169# These are currently disabled because they are noisy.  They will be enabled
7170# in the future once the codebase is sufficiently modernized to silence
7171# them.  For now, I don't want them to drown out the other warnings.
7172# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7173# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7174# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7175
7176# Turn some warnings into errors, so we don't accidently get successful builds
7177# when there are problems that should be fixed.
7178
7179if test "x$SELECTIVE_WERROR" = "xyes" ; then
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193xorg_testset_save_CFLAGS="$CFLAGS"
7194
7195if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7196	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7197	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7198printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7199if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7200then :
7201  printf %s "(cached) " >&6
7202else $as_nop
7203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7204/* end confdefs.h.  */
7205int i;
7206_ACEOF
7207if ac_fn_c_try_compile "$LINENO"
7208then :
7209  xorg_cv_cc_flag_unknown_warning_option=yes
7210else $as_nop
7211  xorg_cv_cc_flag_unknown_warning_option=no
7212fi
7213rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7214fi
7215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7216printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7217	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7218	CFLAGS="$xorg_testset_save_CFLAGS"
7219fi
7220
7221if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7222	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7223		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7224	fi
7225	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7226	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7227printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7228if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7229then :
7230  printf %s "(cached) " >&6
7231else $as_nop
7232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7233/* end confdefs.h.  */
7234int i;
7235_ACEOF
7236if ac_fn_c_try_compile "$LINENO"
7237then :
7238  xorg_cv_cc_flag_unused_command_line_argument=yes
7239else $as_nop
7240  xorg_cv_cc_flag_unused_command_line_argument=no
7241fi
7242rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7243fi
7244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7245printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7246	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7247	CFLAGS="$xorg_testset_save_CFLAGS"
7248fi
7249
7250found="no"
7251
7252	if test $found = "no" ; then
7253		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7254			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7255		fi
7256
7257		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7258			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7259		fi
7260
7261		CFLAGS="$CFLAGS -Werror=implicit"
7262
7263		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7264printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7265		cacheid=xorg_cv_cc_flag__Werror_implicit
7266		if eval test \${$cacheid+y}
7267then :
7268  printf %s "(cached) " >&6
7269else $as_nop
7270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7271/* end confdefs.h.  */
7272int i;
7273int
7274main (void)
7275{
7276
7277  ;
7278  return 0;
7279}
7280_ACEOF
7281if ac_fn_c_try_link "$LINENO"
7282then :
7283  eval $cacheid=yes
7284else $as_nop
7285  eval $cacheid=no
7286fi
7287rm -f core conftest.err conftest.$ac_objext conftest.beam \
7288    conftest$ac_exeext conftest.$ac_ext
7289fi
7290
7291
7292		CFLAGS="$xorg_testset_save_CFLAGS"
7293
7294		eval supported=\$$cacheid
7295		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7296printf "%s\n" "$supported" >&6; }
7297		if test "$supported" = "yes" ; then
7298			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7299			found="yes"
7300		fi
7301	fi
7302
7303	if test $found = "no" ; then
7304		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7305			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7306		fi
7307
7308		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7309			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7310		fi
7311
7312		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7313
7314		{ 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
7315printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7316		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7317		if eval test \${$cacheid+y}
7318then :
7319  printf %s "(cached) " >&6
7320else $as_nop
7321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7322/* end confdefs.h.  */
7323int i;
7324int
7325main (void)
7326{
7327
7328  ;
7329  return 0;
7330}
7331_ACEOF
7332if ac_fn_c_try_link "$LINENO"
7333then :
7334  eval $cacheid=yes
7335else $as_nop
7336  eval $cacheid=no
7337fi
7338rm -f core conftest.err conftest.$ac_objext conftest.beam \
7339    conftest$ac_exeext conftest.$ac_ext
7340fi
7341
7342
7343		CFLAGS="$xorg_testset_save_CFLAGS"
7344
7345		eval supported=\$$cacheid
7346		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7347printf "%s\n" "$supported" >&6; }
7348		if test "$supported" = "yes" ; then
7349			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7350			found="yes"
7351		fi
7352	fi
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368xorg_testset_save_CFLAGS="$CFLAGS"
7369
7370if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7371	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7372	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7373printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7374if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7375then :
7376  printf %s "(cached) " >&6
7377else $as_nop
7378  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7379/* end confdefs.h.  */
7380int i;
7381_ACEOF
7382if ac_fn_c_try_compile "$LINENO"
7383then :
7384  xorg_cv_cc_flag_unknown_warning_option=yes
7385else $as_nop
7386  xorg_cv_cc_flag_unknown_warning_option=no
7387fi
7388rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7389fi
7390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7391printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7392	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7393	CFLAGS="$xorg_testset_save_CFLAGS"
7394fi
7395
7396if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7397	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7398		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7399	fi
7400	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7401	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7402printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7403if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7404then :
7405  printf %s "(cached) " >&6
7406else $as_nop
7407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7408/* end confdefs.h.  */
7409int i;
7410_ACEOF
7411if ac_fn_c_try_compile "$LINENO"
7412then :
7413  xorg_cv_cc_flag_unused_command_line_argument=yes
7414else $as_nop
7415  xorg_cv_cc_flag_unused_command_line_argument=no
7416fi
7417rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7418fi
7419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7420printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7421	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7422	CFLAGS="$xorg_testset_save_CFLAGS"
7423fi
7424
7425found="no"
7426
7427	if test $found = "no" ; then
7428		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7429			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7430		fi
7431
7432		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7433			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7434		fi
7435
7436		CFLAGS="$CFLAGS -Werror=nonnull"
7437
7438		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7439printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7440		cacheid=xorg_cv_cc_flag__Werror_nonnull
7441		if eval test \${$cacheid+y}
7442then :
7443  printf %s "(cached) " >&6
7444else $as_nop
7445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7446/* end confdefs.h.  */
7447int i;
7448int
7449main (void)
7450{
7451
7452  ;
7453  return 0;
7454}
7455_ACEOF
7456if ac_fn_c_try_link "$LINENO"
7457then :
7458  eval $cacheid=yes
7459else $as_nop
7460  eval $cacheid=no
7461fi
7462rm -f core conftest.err conftest.$ac_objext conftest.beam \
7463    conftest$ac_exeext conftest.$ac_ext
7464fi
7465
7466
7467		CFLAGS="$xorg_testset_save_CFLAGS"
7468
7469		eval supported=\$$cacheid
7470		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7471printf "%s\n" "$supported" >&6; }
7472		if test "$supported" = "yes" ; then
7473			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7474			found="yes"
7475		fi
7476	fi
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492xorg_testset_save_CFLAGS="$CFLAGS"
7493
7494if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7495	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7496	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7497printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7498if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7499then :
7500  printf %s "(cached) " >&6
7501else $as_nop
7502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7503/* end confdefs.h.  */
7504int i;
7505_ACEOF
7506if ac_fn_c_try_compile "$LINENO"
7507then :
7508  xorg_cv_cc_flag_unknown_warning_option=yes
7509else $as_nop
7510  xorg_cv_cc_flag_unknown_warning_option=no
7511fi
7512rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7513fi
7514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7515printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7516	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7517	CFLAGS="$xorg_testset_save_CFLAGS"
7518fi
7519
7520if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7521	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7522		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7523	fi
7524	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7525	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7526printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7527if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7528then :
7529  printf %s "(cached) " >&6
7530else $as_nop
7531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7532/* end confdefs.h.  */
7533int i;
7534_ACEOF
7535if ac_fn_c_try_compile "$LINENO"
7536then :
7537  xorg_cv_cc_flag_unused_command_line_argument=yes
7538else $as_nop
7539  xorg_cv_cc_flag_unused_command_line_argument=no
7540fi
7541rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7542fi
7543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7544printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7545	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7546	CFLAGS="$xorg_testset_save_CFLAGS"
7547fi
7548
7549found="no"
7550
7551	if test $found = "no" ; then
7552		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7553			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7554		fi
7555
7556		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7557			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7558		fi
7559
7560		CFLAGS="$CFLAGS -Werror=init-self"
7561
7562		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7563printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7564		cacheid=xorg_cv_cc_flag__Werror_init_self
7565		if eval test \${$cacheid+y}
7566then :
7567  printf %s "(cached) " >&6
7568else $as_nop
7569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7570/* end confdefs.h.  */
7571int i;
7572int
7573main (void)
7574{
7575
7576  ;
7577  return 0;
7578}
7579_ACEOF
7580if ac_fn_c_try_link "$LINENO"
7581then :
7582  eval $cacheid=yes
7583else $as_nop
7584  eval $cacheid=no
7585fi
7586rm -f core conftest.err conftest.$ac_objext conftest.beam \
7587    conftest$ac_exeext conftest.$ac_ext
7588fi
7589
7590
7591		CFLAGS="$xorg_testset_save_CFLAGS"
7592
7593		eval supported=\$$cacheid
7594		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7595printf "%s\n" "$supported" >&6; }
7596		if test "$supported" = "yes" ; then
7597			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7598			found="yes"
7599		fi
7600	fi
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616xorg_testset_save_CFLAGS="$CFLAGS"
7617
7618if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7619	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7620	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7621printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7622if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7623then :
7624  printf %s "(cached) " >&6
7625else $as_nop
7626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627/* end confdefs.h.  */
7628int i;
7629_ACEOF
7630if ac_fn_c_try_compile "$LINENO"
7631then :
7632  xorg_cv_cc_flag_unknown_warning_option=yes
7633else $as_nop
7634  xorg_cv_cc_flag_unknown_warning_option=no
7635fi
7636rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7637fi
7638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7639printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7640	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7641	CFLAGS="$xorg_testset_save_CFLAGS"
7642fi
7643
7644if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7645	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7646		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7647	fi
7648	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7649	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7650printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7651if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7652then :
7653  printf %s "(cached) " >&6
7654else $as_nop
7655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656/* end confdefs.h.  */
7657int i;
7658_ACEOF
7659if ac_fn_c_try_compile "$LINENO"
7660then :
7661  xorg_cv_cc_flag_unused_command_line_argument=yes
7662else $as_nop
7663  xorg_cv_cc_flag_unused_command_line_argument=no
7664fi
7665rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7666fi
7667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7668printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7669	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7670	CFLAGS="$xorg_testset_save_CFLAGS"
7671fi
7672
7673found="no"
7674
7675	if test $found = "no" ; then
7676		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7677			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7678		fi
7679
7680		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7681			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7682		fi
7683
7684		CFLAGS="$CFLAGS -Werror=main"
7685
7686		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7687printf %s "checking if $CC supports -Werror=main... " >&6; }
7688		cacheid=xorg_cv_cc_flag__Werror_main
7689		if eval test \${$cacheid+y}
7690then :
7691  printf %s "(cached) " >&6
7692else $as_nop
7693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7694/* end confdefs.h.  */
7695int i;
7696int
7697main (void)
7698{
7699
7700  ;
7701  return 0;
7702}
7703_ACEOF
7704if ac_fn_c_try_link "$LINENO"
7705then :
7706  eval $cacheid=yes
7707else $as_nop
7708  eval $cacheid=no
7709fi
7710rm -f core conftest.err conftest.$ac_objext conftest.beam \
7711    conftest$ac_exeext conftest.$ac_ext
7712fi
7713
7714
7715		CFLAGS="$xorg_testset_save_CFLAGS"
7716
7717		eval supported=\$$cacheid
7718		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7719printf "%s\n" "$supported" >&6; }
7720		if test "$supported" = "yes" ; then
7721			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7722			found="yes"
7723		fi
7724	fi
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740xorg_testset_save_CFLAGS="$CFLAGS"
7741
7742if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7743	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7744	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7745printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7746if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7747then :
7748  printf %s "(cached) " >&6
7749else $as_nop
7750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7751/* end confdefs.h.  */
7752int i;
7753_ACEOF
7754if ac_fn_c_try_compile "$LINENO"
7755then :
7756  xorg_cv_cc_flag_unknown_warning_option=yes
7757else $as_nop
7758  xorg_cv_cc_flag_unknown_warning_option=no
7759fi
7760rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7761fi
7762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7763printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7764	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7765	CFLAGS="$xorg_testset_save_CFLAGS"
7766fi
7767
7768if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7769	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7770		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7771	fi
7772	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7773	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7774printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7775if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7776then :
7777  printf %s "(cached) " >&6
7778else $as_nop
7779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7780/* end confdefs.h.  */
7781int i;
7782_ACEOF
7783if ac_fn_c_try_compile "$LINENO"
7784then :
7785  xorg_cv_cc_flag_unused_command_line_argument=yes
7786else $as_nop
7787  xorg_cv_cc_flag_unused_command_line_argument=no
7788fi
7789rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7790fi
7791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7792printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7793	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7794	CFLAGS="$xorg_testset_save_CFLAGS"
7795fi
7796
7797found="no"
7798
7799	if test $found = "no" ; then
7800		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7801			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7802		fi
7803
7804		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7805			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7806		fi
7807
7808		CFLAGS="$CFLAGS -Werror=missing-braces"
7809
7810		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7811printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7812		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7813		if eval test \${$cacheid+y}
7814then :
7815  printf %s "(cached) " >&6
7816else $as_nop
7817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7818/* end confdefs.h.  */
7819int i;
7820int
7821main (void)
7822{
7823
7824  ;
7825  return 0;
7826}
7827_ACEOF
7828if ac_fn_c_try_link "$LINENO"
7829then :
7830  eval $cacheid=yes
7831else $as_nop
7832  eval $cacheid=no
7833fi
7834rm -f core conftest.err conftest.$ac_objext conftest.beam \
7835    conftest$ac_exeext conftest.$ac_ext
7836fi
7837
7838
7839		CFLAGS="$xorg_testset_save_CFLAGS"
7840
7841		eval supported=\$$cacheid
7842		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7843printf "%s\n" "$supported" >&6; }
7844		if test "$supported" = "yes" ; then
7845			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7846			found="yes"
7847		fi
7848	fi
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864xorg_testset_save_CFLAGS="$CFLAGS"
7865
7866if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7867	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7868	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7869printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7870if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7871then :
7872  printf %s "(cached) " >&6
7873else $as_nop
7874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7875/* end confdefs.h.  */
7876int i;
7877_ACEOF
7878if ac_fn_c_try_compile "$LINENO"
7879then :
7880  xorg_cv_cc_flag_unknown_warning_option=yes
7881else $as_nop
7882  xorg_cv_cc_flag_unknown_warning_option=no
7883fi
7884rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7885fi
7886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7887printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7888	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7889	CFLAGS="$xorg_testset_save_CFLAGS"
7890fi
7891
7892if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7893	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7894		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7895	fi
7896	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7897	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7898printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7899if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7900then :
7901  printf %s "(cached) " >&6
7902else $as_nop
7903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7904/* end confdefs.h.  */
7905int i;
7906_ACEOF
7907if ac_fn_c_try_compile "$LINENO"
7908then :
7909  xorg_cv_cc_flag_unused_command_line_argument=yes
7910else $as_nop
7911  xorg_cv_cc_flag_unused_command_line_argument=no
7912fi
7913rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7914fi
7915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7916printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7917	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7918	CFLAGS="$xorg_testset_save_CFLAGS"
7919fi
7920
7921found="no"
7922
7923	if test $found = "no" ; then
7924		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7925			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7926		fi
7927
7928		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7929			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7930		fi
7931
7932		CFLAGS="$CFLAGS -Werror=sequence-point"
7933
7934		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7935printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7936		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7937		if eval test \${$cacheid+y}
7938then :
7939  printf %s "(cached) " >&6
7940else $as_nop
7941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7942/* end confdefs.h.  */
7943int i;
7944int
7945main (void)
7946{
7947
7948  ;
7949  return 0;
7950}
7951_ACEOF
7952if ac_fn_c_try_link "$LINENO"
7953then :
7954  eval $cacheid=yes
7955else $as_nop
7956  eval $cacheid=no
7957fi
7958rm -f core conftest.err conftest.$ac_objext conftest.beam \
7959    conftest$ac_exeext conftest.$ac_ext
7960fi
7961
7962
7963		CFLAGS="$xorg_testset_save_CFLAGS"
7964
7965		eval supported=\$$cacheid
7966		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7967printf "%s\n" "$supported" >&6; }
7968		if test "$supported" = "yes" ; then
7969			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7970			found="yes"
7971		fi
7972	fi
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988xorg_testset_save_CFLAGS="$CFLAGS"
7989
7990if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7991	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7992	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7993printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7994if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7995then :
7996  printf %s "(cached) " >&6
7997else $as_nop
7998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7999/* end confdefs.h.  */
8000int i;
8001_ACEOF
8002if ac_fn_c_try_compile "$LINENO"
8003then :
8004  xorg_cv_cc_flag_unknown_warning_option=yes
8005else $as_nop
8006  xorg_cv_cc_flag_unknown_warning_option=no
8007fi
8008rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8009fi
8010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8011printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8012	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8013	CFLAGS="$xorg_testset_save_CFLAGS"
8014fi
8015
8016if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8017	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8018		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8019	fi
8020	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8021	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8022printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8023if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8024then :
8025  printf %s "(cached) " >&6
8026else $as_nop
8027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8028/* end confdefs.h.  */
8029int i;
8030_ACEOF
8031if ac_fn_c_try_compile "$LINENO"
8032then :
8033  xorg_cv_cc_flag_unused_command_line_argument=yes
8034else $as_nop
8035  xorg_cv_cc_flag_unused_command_line_argument=no
8036fi
8037rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8038fi
8039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8040printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8041	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8042	CFLAGS="$xorg_testset_save_CFLAGS"
8043fi
8044
8045found="no"
8046
8047	if test $found = "no" ; then
8048		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8049			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8050		fi
8051
8052		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8053			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8054		fi
8055
8056		CFLAGS="$CFLAGS -Werror=return-type"
8057
8058		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8059printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8060		cacheid=xorg_cv_cc_flag__Werror_return_type
8061		if eval test \${$cacheid+y}
8062then :
8063  printf %s "(cached) " >&6
8064else $as_nop
8065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8066/* end confdefs.h.  */
8067int i;
8068int
8069main (void)
8070{
8071
8072  ;
8073  return 0;
8074}
8075_ACEOF
8076if ac_fn_c_try_link "$LINENO"
8077then :
8078  eval $cacheid=yes
8079else $as_nop
8080  eval $cacheid=no
8081fi
8082rm -f core conftest.err conftest.$ac_objext conftest.beam \
8083    conftest$ac_exeext conftest.$ac_ext
8084fi
8085
8086
8087		CFLAGS="$xorg_testset_save_CFLAGS"
8088
8089		eval supported=\$$cacheid
8090		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8091printf "%s\n" "$supported" >&6; }
8092		if test "$supported" = "yes" ; then
8093			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8094			found="yes"
8095		fi
8096	fi
8097
8098	if test $found = "no" ; then
8099		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8100			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8101		fi
8102
8103		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8104			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8105		fi
8106
8107		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8108
8109		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8110printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8111		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8112		if eval test \${$cacheid+y}
8113then :
8114  printf %s "(cached) " >&6
8115else $as_nop
8116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8117/* end confdefs.h.  */
8118int i;
8119int
8120main (void)
8121{
8122
8123  ;
8124  return 0;
8125}
8126_ACEOF
8127if ac_fn_c_try_link "$LINENO"
8128then :
8129  eval $cacheid=yes
8130else $as_nop
8131  eval $cacheid=no
8132fi
8133rm -f core conftest.err conftest.$ac_objext conftest.beam \
8134    conftest$ac_exeext conftest.$ac_ext
8135fi
8136
8137
8138		CFLAGS="$xorg_testset_save_CFLAGS"
8139
8140		eval supported=\$$cacheid
8141		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8142printf "%s\n" "$supported" >&6; }
8143		if test "$supported" = "yes" ; then
8144			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8145			found="yes"
8146		fi
8147	fi
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163xorg_testset_save_CFLAGS="$CFLAGS"
8164
8165if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8166	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8167	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8168printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8169if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8170then :
8171  printf %s "(cached) " >&6
8172else $as_nop
8173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8174/* end confdefs.h.  */
8175int i;
8176_ACEOF
8177if ac_fn_c_try_compile "$LINENO"
8178then :
8179  xorg_cv_cc_flag_unknown_warning_option=yes
8180else $as_nop
8181  xorg_cv_cc_flag_unknown_warning_option=no
8182fi
8183rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8184fi
8185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8186printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8187	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8188	CFLAGS="$xorg_testset_save_CFLAGS"
8189fi
8190
8191if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8192	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8193		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8194	fi
8195	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8196	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8197printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8198if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8199then :
8200  printf %s "(cached) " >&6
8201else $as_nop
8202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8203/* end confdefs.h.  */
8204int i;
8205_ACEOF
8206if ac_fn_c_try_compile "$LINENO"
8207then :
8208  xorg_cv_cc_flag_unused_command_line_argument=yes
8209else $as_nop
8210  xorg_cv_cc_flag_unused_command_line_argument=no
8211fi
8212rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8213fi
8214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8215printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8216	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8217	CFLAGS="$xorg_testset_save_CFLAGS"
8218fi
8219
8220found="no"
8221
8222	if test $found = "no" ; then
8223		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8224			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8225		fi
8226
8227		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8228			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8229		fi
8230
8231		CFLAGS="$CFLAGS -Werror=trigraphs"
8232
8233		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8234printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8235		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8236		if eval test \${$cacheid+y}
8237then :
8238  printf %s "(cached) " >&6
8239else $as_nop
8240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8241/* end confdefs.h.  */
8242int i;
8243int
8244main (void)
8245{
8246
8247  ;
8248  return 0;
8249}
8250_ACEOF
8251if ac_fn_c_try_link "$LINENO"
8252then :
8253  eval $cacheid=yes
8254else $as_nop
8255  eval $cacheid=no
8256fi
8257rm -f core conftest.err conftest.$ac_objext conftest.beam \
8258    conftest$ac_exeext conftest.$ac_ext
8259fi
8260
8261
8262		CFLAGS="$xorg_testset_save_CFLAGS"
8263
8264		eval supported=\$$cacheid
8265		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8266printf "%s\n" "$supported" >&6; }
8267		if test "$supported" = "yes" ; then
8268			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8269			found="yes"
8270		fi
8271	fi
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287xorg_testset_save_CFLAGS="$CFLAGS"
8288
8289if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8290	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8291	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8292printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8293if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8294then :
8295  printf %s "(cached) " >&6
8296else $as_nop
8297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8298/* end confdefs.h.  */
8299int i;
8300_ACEOF
8301if ac_fn_c_try_compile "$LINENO"
8302then :
8303  xorg_cv_cc_flag_unknown_warning_option=yes
8304else $as_nop
8305  xorg_cv_cc_flag_unknown_warning_option=no
8306fi
8307rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8308fi
8309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8310printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8311	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8312	CFLAGS="$xorg_testset_save_CFLAGS"
8313fi
8314
8315if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8316	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8317		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8318	fi
8319	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8320	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8321printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8322if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8323then :
8324  printf %s "(cached) " >&6
8325else $as_nop
8326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327/* end confdefs.h.  */
8328int i;
8329_ACEOF
8330if ac_fn_c_try_compile "$LINENO"
8331then :
8332  xorg_cv_cc_flag_unused_command_line_argument=yes
8333else $as_nop
8334  xorg_cv_cc_flag_unused_command_line_argument=no
8335fi
8336rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8337fi
8338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8339printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8340	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8341	CFLAGS="$xorg_testset_save_CFLAGS"
8342fi
8343
8344found="no"
8345
8346	if test $found = "no" ; then
8347		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8348			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8349		fi
8350
8351		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8352			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8353		fi
8354
8355		CFLAGS="$CFLAGS -Werror=array-bounds"
8356
8357		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8358printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8359		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8360		if eval test \${$cacheid+y}
8361then :
8362  printf %s "(cached) " >&6
8363else $as_nop
8364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8365/* end confdefs.h.  */
8366int i;
8367int
8368main (void)
8369{
8370
8371  ;
8372  return 0;
8373}
8374_ACEOF
8375if ac_fn_c_try_link "$LINENO"
8376then :
8377  eval $cacheid=yes
8378else $as_nop
8379  eval $cacheid=no
8380fi
8381rm -f core conftest.err conftest.$ac_objext conftest.beam \
8382    conftest$ac_exeext conftest.$ac_ext
8383fi
8384
8385
8386		CFLAGS="$xorg_testset_save_CFLAGS"
8387
8388		eval supported=\$$cacheid
8389		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8390printf "%s\n" "$supported" >&6; }
8391		if test "$supported" = "yes" ; then
8392			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8393			found="yes"
8394		fi
8395	fi
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411xorg_testset_save_CFLAGS="$CFLAGS"
8412
8413if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8414	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8415	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8416printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8417if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8418then :
8419  printf %s "(cached) " >&6
8420else $as_nop
8421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8422/* end confdefs.h.  */
8423int i;
8424_ACEOF
8425if ac_fn_c_try_compile "$LINENO"
8426then :
8427  xorg_cv_cc_flag_unknown_warning_option=yes
8428else $as_nop
8429  xorg_cv_cc_flag_unknown_warning_option=no
8430fi
8431rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8432fi
8433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8434printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8435	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8436	CFLAGS="$xorg_testset_save_CFLAGS"
8437fi
8438
8439if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8440	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8441		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8442	fi
8443	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8444	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8445printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8446if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8447then :
8448  printf %s "(cached) " >&6
8449else $as_nop
8450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8451/* end confdefs.h.  */
8452int i;
8453_ACEOF
8454if ac_fn_c_try_compile "$LINENO"
8455then :
8456  xorg_cv_cc_flag_unused_command_line_argument=yes
8457else $as_nop
8458  xorg_cv_cc_flag_unused_command_line_argument=no
8459fi
8460rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8461fi
8462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8463printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8464	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8465	CFLAGS="$xorg_testset_save_CFLAGS"
8466fi
8467
8468found="no"
8469
8470	if test $found = "no" ; then
8471		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8472			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8473		fi
8474
8475		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8476			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8477		fi
8478
8479		CFLAGS="$CFLAGS -Werror=write-strings"
8480
8481		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8482printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8483		cacheid=xorg_cv_cc_flag__Werror_write_strings
8484		if eval test \${$cacheid+y}
8485then :
8486  printf %s "(cached) " >&6
8487else $as_nop
8488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8489/* end confdefs.h.  */
8490int i;
8491int
8492main (void)
8493{
8494
8495  ;
8496  return 0;
8497}
8498_ACEOF
8499if ac_fn_c_try_link "$LINENO"
8500then :
8501  eval $cacheid=yes
8502else $as_nop
8503  eval $cacheid=no
8504fi
8505rm -f core conftest.err conftest.$ac_objext conftest.beam \
8506    conftest$ac_exeext conftest.$ac_ext
8507fi
8508
8509
8510		CFLAGS="$xorg_testset_save_CFLAGS"
8511
8512		eval supported=\$$cacheid
8513		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8514printf "%s\n" "$supported" >&6; }
8515		if test "$supported" = "yes" ; then
8516			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8517			found="yes"
8518		fi
8519	fi
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535xorg_testset_save_CFLAGS="$CFLAGS"
8536
8537if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8538	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8539	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8540printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8541if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8542then :
8543  printf %s "(cached) " >&6
8544else $as_nop
8545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8546/* end confdefs.h.  */
8547int i;
8548_ACEOF
8549if ac_fn_c_try_compile "$LINENO"
8550then :
8551  xorg_cv_cc_flag_unknown_warning_option=yes
8552else $as_nop
8553  xorg_cv_cc_flag_unknown_warning_option=no
8554fi
8555rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8556fi
8557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8558printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8559	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8560	CFLAGS="$xorg_testset_save_CFLAGS"
8561fi
8562
8563if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8564	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8565		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8566	fi
8567	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8568	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8569printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8570if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8571then :
8572  printf %s "(cached) " >&6
8573else $as_nop
8574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8575/* end confdefs.h.  */
8576int i;
8577_ACEOF
8578if ac_fn_c_try_compile "$LINENO"
8579then :
8580  xorg_cv_cc_flag_unused_command_line_argument=yes
8581else $as_nop
8582  xorg_cv_cc_flag_unused_command_line_argument=no
8583fi
8584rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8585fi
8586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8587printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8588	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8589	CFLAGS="$xorg_testset_save_CFLAGS"
8590fi
8591
8592found="no"
8593
8594	if test $found = "no" ; then
8595		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8596			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8597		fi
8598
8599		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8600			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8601		fi
8602
8603		CFLAGS="$CFLAGS -Werror=address"
8604
8605		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8606printf %s "checking if $CC supports -Werror=address... " >&6; }
8607		cacheid=xorg_cv_cc_flag__Werror_address
8608		if eval test \${$cacheid+y}
8609then :
8610  printf %s "(cached) " >&6
8611else $as_nop
8612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8613/* end confdefs.h.  */
8614int i;
8615int
8616main (void)
8617{
8618
8619  ;
8620  return 0;
8621}
8622_ACEOF
8623if ac_fn_c_try_link "$LINENO"
8624then :
8625  eval $cacheid=yes
8626else $as_nop
8627  eval $cacheid=no
8628fi
8629rm -f core conftest.err conftest.$ac_objext conftest.beam \
8630    conftest$ac_exeext conftest.$ac_ext
8631fi
8632
8633
8634		CFLAGS="$xorg_testset_save_CFLAGS"
8635
8636		eval supported=\$$cacheid
8637		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8638printf "%s\n" "$supported" >&6; }
8639		if test "$supported" = "yes" ; then
8640			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8641			found="yes"
8642		fi
8643	fi
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659xorg_testset_save_CFLAGS="$CFLAGS"
8660
8661if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8662	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8663	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8664printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8665if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8666then :
8667  printf %s "(cached) " >&6
8668else $as_nop
8669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8670/* end confdefs.h.  */
8671int i;
8672_ACEOF
8673if ac_fn_c_try_compile "$LINENO"
8674then :
8675  xorg_cv_cc_flag_unknown_warning_option=yes
8676else $as_nop
8677  xorg_cv_cc_flag_unknown_warning_option=no
8678fi
8679rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8680fi
8681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8682printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8683	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8684	CFLAGS="$xorg_testset_save_CFLAGS"
8685fi
8686
8687if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8688	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8689		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8690	fi
8691	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8692	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8693printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8694if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8695then :
8696  printf %s "(cached) " >&6
8697else $as_nop
8698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8699/* end confdefs.h.  */
8700int i;
8701_ACEOF
8702if ac_fn_c_try_compile "$LINENO"
8703then :
8704  xorg_cv_cc_flag_unused_command_line_argument=yes
8705else $as_nop
8706  xorg_cv_cc_flag_unused_command_line_argument=no
8707fi
8708rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8709fi
8710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8711printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8712	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8713	CFLAGS="$xorg_testset_save_CFLAGS"
8714fi
8715
8716found="no"
8717
8718	if test $found = "no" ; then
8719		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8720			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8721		fi
8722
8723		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8724			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8725		fi
8726
8727		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8728
8729		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8730printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8731		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8732		if eval test \${$cacheid+y}
8733then :
8734  printf %s "(cached) " >&6
8735else $as_nop
8736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8737/* end confdefs.h.  */
8738int i;
8739int
8740main (void)
8741{
8742
8743  ;
8744  return 0;
8745}
8746_ACEOF
8747if ac_fn_c_try_link "$LINENO"
8748then :
8749  eval $cacheid=yes
8750else $as_nop
8751  eval $cacheid=no
8752fi
8753rm -f core conftest.err conftest.$ac_objext conftest.beam \
8754    conftest$ac_exeext conftest.$ac_ext
8755fi
8756
8757
8758		CFLAGS="$xorg_testset_save_CFLAGS"
8759
8760		eval supported=\$$cacheid
8761		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8762printf "%s\n" "$supported" >&6; }
8763		if test "$supported" = "yes" ; then
8764			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8765			found="yes"
8766		fi
8767	fi
8768
8769	if test $found = "no" ; then
8770		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8771			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8772		fi
8773
8774		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8775			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8776		fi
8777
8778		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8779
8780		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8781printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8782		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8783		if eval test \${$cacheid+y}
8784then :
8785  printf %s "(cached) " >&6
8786else $as_nop
8787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8788/* end confdefs.h.  */
8789int i;
8790int
8791main (void)
8792{
8793
8794  ;
8795  return 0;
8796}
8797_ACEOF
8798if ac_fn_c_try_link "$LINENO"
8799then :
8800  eval $cacheid=yes
8801else $as_nop
8802  eval $cacheid=no
8803fi
8804rm -f core conftest.err conftest.$ac_objext conftest.beam \
8805    conftest$ac_exeext conftest.$ac_ext
8806fi
8807
8808
8809		CFLAGS="$xorg_testset_save_CFLAGS"
8810
8811		eval supported=\$$cacheid
8812		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8813printf "%s\n" "$supported" >&6; }
8814		if test "$supported" = "yes" ; then
8815			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8816			found="yes"
8817		fi
8818	fi
8819
8820
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 -Werror=pointer-to-int-cast"
8903
8904		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8905printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8906		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
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 -Werror=pointer-to-int-cast"
8940			found="yes"
8941		fi
8942	fi
8943
8944 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8945else
8946{ 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
8947printf "%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;}
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961xorg_testset_save_CFLAGS="$CFLAGS"
8962
8963if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8964	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8965	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8966printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8967if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8968then :
8969  printf %s "(cached) " >&6
8970else $as_nop
8971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8972/* end confdefs.h.  */
8973int i;
8974_ACEOF
8975if ac_fn_c_try_compile "$LINENO"
8976then :
8977  xorg_cv_cc_flag_unknown_warning_option=yes
8978else $as_nop
8979  xorg_cv_cc_flag_unknown_warning_option=no
8980fi
8981rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8982fi
8983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8984printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8985	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8986	CFLAGS="$xorg_testset_save_CFLAGS"
8987fi
8988
8989if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8990	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8991		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8992	fi
8993	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8994	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8995printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8996if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8997then :
8998  printf %s "(cached) " >&6
8999else $as_nop
9000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9001/* end confdefs.h.  */
9002int i;
9003_ACEOF
9004if ac_fn_c_try_compile "$LINENO"
9005then :
9006  xorg_cv_cc_flag_unused_command_line_argument=yes
9007else $as_nop
9008  xorg_cv_cc_flag_unused_command_line_argument=no
9009fi
9010rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9011fi
9012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9013printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9014	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9015	CFLAGS="$xorg_testset_save_CFLAGS"
9016fi
9017
9018found="no"
9019
9020	if test $found = "no" ; then
9021		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9022			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9023		fi
9024
9025		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9026			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9027		fi
9028
9029		CFLAGS="$CFLAGS -Wimplicit"
9030
9031		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9032printf %s "checking if $CC supports -Wimplicit... " >&6; }
9033		cacheid=xorg_cv_cc_flag__Wimplicit
9034		if eval test \${$cacheid+y}
9035then :
9036  printf %s "(cached) " >&6
9037else $as_nop
9038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9039/* end confdefs.h.  */
9040int i;
9041int
9042main (void)
9043{
9044
9045  ;
9046  return 0;
9047}
9048_ACEOF
9049if ac_fn_c_try_link "$LINENO"
9050then :
9051  eval $cacheid=yes
9052else $as_nop
9053  eval $cacheid=no
9054fi
9055rm -f core conftest.err conftest.$ac_objext conftest.beam \
9056    conftest$ac_exeext conftest.$ac_ext
9057fi
9058
9059
9060		CFLAGS="$xorg_testset_save_CFLAGS"
9061
9062		eval supported=\$$cacheid
9063		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9064printf "%s\n" "$supported" >&6; }
9065		if test "$supported" = "yes" ; then
9066			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9067			found="yes"
9068		fi
9069	fi
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085xorg_testset_save_CFLAGS="$CFLAGS"
9086
9087if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9088	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9089	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9090printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9091if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9092then :
9093  printf %s "(cached) " >&6
9094else $as_nop
9095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9096/* end confdefs.h.  */
9097int i;
9098_ACEOF
9099if ac_fn_c_try_compile "$LINENO"
9100then :
9101  xorg_cv_cc_flag_unknown_warning_option=yes
9102else $as_nop
9103  xorg_cv_cc_flag_unknown_warning_option=no
9104fi
9105rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9106fi
9107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9108printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9109	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9110	CFLAGS="$xorg_testset_save_CFLAGS"
9111fi
9112
9113if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9114	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9115		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9116	fi
9117	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9118	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9119printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9120if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9121then :
9122  printf %s "(cached) " >&6
9123else $as_nop
9124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9125/* end confdefs.h.  */
9126int i;
9127_ACEOF
9128if ac_fn_c_try_compile "$LINENO"
9129then :
9130  xorg_cv_cc_flag_unused_command_line_argument=yes
9131else $as_nop
9132  xorg_cv_cc_flag_unused_command_line_argument=no
9133fi
9134rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9135fi
9136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9137printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9138	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9139	CFLAGS="$xorg_testset_save_CFLAGS"
9140fi
9141
9142found="no"
9143
9144	if test $found = "no" ; then
9145		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9146			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9147		fi
9148
9149		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9150			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9151		fi
9152
9153		CFLAGS="$CFLAGS -Wnonnull"
9154
9155		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9156printf %s "checking if $CC supports -Wnonnull... " >&6; }
9157		cacheid=xorg_cv_cc_flag__Wnonnull
9158		if eval test \${$cacheid+y}
9159then :
9160  printf %s "(cached) " >&6
9161else $as_nop
9162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9163/* end confdefs.h.  */
9164int i;
9165int
9166main (void)
9167{
9168
9169  ;
9170  return 0;
9171}
9172_ACEOF
9173if ac_fn_c_try_link "$LINENO"
9174then :
9175  eval $cacheid=yes
9176else $as_nop
9177  eval $cacheid=no
9178fi
9179rm -f core conftest.err conftest.$ac_objext conftest.beam \
9180    conftest$ac_exeext conftest.$ac_ext
9181fi
9182
9183
9184		CFLAGS="$xorg_testset_save_CFLAGS"
9185
9186		eval supported=\$$cacheid
9187		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9188printf "%s\n" "$supported" >&6; }
9189		if test "$supported" = "yes" ; then
9190			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9191			found="yes"
9192		fi
9193	fi
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209xorg_testset_save_CFLAGS="$CFLAGS"
9210
9211if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9212	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9213	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9214printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9215if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9216then :
9217  printf %s "(cached) " >&6
9218else $as_nop
9219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9220/* end confdefs.h.  */
9221int i;
9222_ACEOF
9223if ac_fn_c_try_compile "$LINENO"
9224then :
9225  xorg_cv_cc_flag_unknown_warning_option=yes
9226else $as_nop
9227  xorg_cv_cc_flag_unknown_warning_option=no
9228fi
9229rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9230fi
9231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9232printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9233	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9234	CFLAGS="$xorg_testset_save_CFLAGS"
9235fi
9236
9237if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9238	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9239		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9240	fi
9241	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9242	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9243printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9244if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9245then :
9246  printf %s "(cached) " >&6
9247else $as_nop
9248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9249/* end confdefs.h.  */
9250int i;
9251_ACEOF
9252if ac_fn_c_try_compile "$LINENO"
9253then :
9254  xorg_cv_cc_flag_unused_command_line_argument=yes
9255else $as_nop
9256  xorg_cv_cc_flag_unused_command_line_argument=no
9257fi
9258rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9259fi
9260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9261printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9262	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9263	CFLAGS="$xorg_testset_save_CFLAGS"
9264fi
9265
9266found="no"
9267
9268	if test $found = "no" ; then
9269		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9270			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9271		fi
9272
9273		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9274			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9275		fi
9276
9277		CFLAGS="$CFLAGS -Winit-self"
9278
9279		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9280printf %s "checking if $CC supports -Winit-self... " >&6; }
9281		cacheid=xorg_cv_cc_flag__Winit_self
9282		if eval test \${$cacheid+y}
9283then :
9284  printf %s "(cached) " >&6
9285else $as_nop
9286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9287/* end confdefs.h.  */
9288int i;
9289int
9290main (void)
9291{
9292
9293  ;
9294  return 0;
9295}
9296_ACEOF
9297if ac_fn_c_try_link "$LINENO"
9298then :
9299  eval $cacheid=yes
9300else $as_nop
9301  eval $cacheid=no
9302fi
9303rm -f core conftest.err conftest.$ac_objext conftest.beam \
9304    conftest$ac_exeext conftest.$ac_ext
9305fi
9306
9307
9308		CFLAGS="$xorg_testset_save_CFLAGS"
9309
9310		eval supported=\$$cacheid
9311		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9312printf "%s\n" "$supported" >&6; }
9313		if test "$supported" = "yes" ; then
9314			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9315			found="yes"
9316		fi
9317	fi
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333xorg_testset_save_CFLAGS="$CFLAGS"
9334
9335if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9336	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9337	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9338printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9339if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9340then :
9341  printf %s "(cached) " >&6
9342else $as_nop
9343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9344/* end confdefs.h.  */
9345int i;
9346_ACEOF
9347if ac_fn_c_try_compile "$LINENO"
9348then :
9349  xorg_cv_cc_flag_unknown_warning_option=yes
9350else $as_nop
9351  xorg_cv_cc_flag_unknown_warning_option=no
9352fi
9353rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9354fi
9355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9356printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9357	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9358	CFLAGS="$xorg_testset_save_CFLAGS"
9359fi
9360
9361if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9362	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9363		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9364	fi
9365	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9366	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9367printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9368if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9369then :
9370  printf %s "(cached) " >&6
9371else $as_nop
9372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9373/* end confdefs.h.  */
9374int i;
9375_ACEOF
9376if ac_fn_c_try_compile "$LINENO"
9377then :
9378  xorg_cv_cc_flag_unused_command_line_argument=yes
9379else $as_nop
9380  xorg_cv_cc_flag_unused_command_line_argument=no
9381fi
9382rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9383fi
9384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9385printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9386	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9387	CFLAGS="$xorg_testset_save_CFLAGS"
9388fi
9389
9390found="no"
9391
9392	if test $found = "no" ; then
9393		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9394			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9395		fi
9396
9397		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9398			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9399		fi
9400
9401		CFLAGS="$CFLAGS -Wmain"
9402
9403		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9404printf %s "checking if $CC supports -Wmain... " >&6; }
9405		cacheid=xorg_cv_cc_flag__Wmain
9406		if eval test \${$cacheid+y}
9407then :
9408  printf %s "(cached) " >&6
9409else $as_nop
9410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9411/* end confdefs.h.  */
9412int i;
9413int
9414main (void)
9415{
9416
9417  ;
9418  return 0;
9419}
9420_ACEOF
9421if ac_fn_c_try_link "$LINENO"
9422then :
9423  eval $cacheid=yes
9424else $as_nop
9425  eval $cacheid=no
9426fi
9427rm -f core conftest.err conftest.$ac_objext conftest.beam \
9428    conftest$ac_exeext conftest.$ac_ext
9429fi
9430
9431
9432		CFLAGS="$xorg_testset_save_CFLAGS"
9433
9434		eval supported=\$$cacheid
9435		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9436printf "%s\n" "$supported" >&6; }
9437		if test "$supported" = "yes" ; then
9438			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9439			found="yes"
9440		fi
9441	fi
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457xorg_testset_save_CFLAGS="$CFLAGS"
9458
9459if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9460	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9461	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9462printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9463if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9464then :
9465  printf %s "(cached) " >&6
9466else $as_nop
9467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9468/* end confdefs.h.  */
9469int i;
9470_ACEOF
9471if ac_fn_c_try_compile "$LINENO"
9472then :
9473  xorg_cv_cc_flag_unknown_warning_option=yes
9474else $as_nop
9475  xorg_cv_cc_flag_unknown_warning_option=no
9476fi
9477rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9478fi
9479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9480printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9481	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9482	CFLAGS="$xorg_testset_save_CFLAGS"
9483fi
9484
9485if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9486	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9487		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9488	fi
9489	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9490	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9491printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9492if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9493then :
9494  printf %s "(cached) " >&6
9495else $as_nop
9496  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9497/* end confdefs.h.  */
9498int i;
9499_ACEOF
9500if ac_fn_c_try_compile "$LINENO"
9501then :
9502  xorg_cv_cc_flag_unused_command_line_argument=yes
9503else $as_nop
9504  xorg_cv_cc_flag_unused_command_line_argument=no
9505fi
9506rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9507fi
9508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9509printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9510	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9511	CFLAGS="$xorg_testset_save_CFLAGS"
9512fi
9513
9514found="no"
9515
9516	if test $found = "no" ; then
9517		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9518			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9519		fi
9520
9521		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9522			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9523		fi
9524
9525		CFLAGS="$CFLAGS -Wmissing-braces"
9526
9527		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9528printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9529		cacheid=xorg_cv_cc_flag__Wmissing_braces
9530		if eval test \${$cacheid+y}
9531then :
9532  printf %s "(cached) " >&6
9533else $as_nop
9534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9535/* end confdefs.h.  */
9536int i;
9537int
9538main (void)
9539{
9540
9541  ;
9542  return 0;
9543}
9544_ACEOF
9545if ac_fn_c_try_link "$LINENO"
9546then :
9547  eval $cacheid=yes
9548else $as_nop
9549  eval $cacheid=no
9550fi
9551rm -f core conftest.err conftest.$ac_objext conftest.beam \
9552    conftest$ac_exeext conftest.$ac_ext
9553fi
9554
9555
9556		CFLAGS="$xorg_testset_save_CFLAGS"
9557
9558		eval supported=\$$cacheid
9559		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9560printf "%s\n" "$supported" >&6; }
9561		if test "$supported" = "yes" ; then
9562			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9563			found="yes"
9564		fi
9565	fi
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581xorg_testset_save_CFLAGS="$CFLAGS"
9582
9583if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9584	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9585	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9586printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9587if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9588then :
9589  printf %s "(cached) " >&6
9590else $as_nop
9591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9592/* end confdefs.h.  */
9593int i;
9594_ACEOF
9595if ac_fn_c_try_compile "$LINENO"
9596then :
9597  xorg_cv_cc_flag_unknown_warning_option=yes
9598else $as_nop
9599  xorg_cv_cc_flag_unknown_warning_option=no
9600fi
9601rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9602fi
9603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9604printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9605	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9606	CFLAGS="$xorg_testset_save_CFLAGS"
9607fi
9608
9609if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9610	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9611		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9612	fi
9613	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9614	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9615printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9616if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9617then :
9618  printf %s "(cached) " >&6
9619else $as_nop
9620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9621/* end confdefs.h.  */
9622int i;
9623_ACEOF
9624if ac_fn_c_try_compile "$LINENO"
9625then :
9626  xorg_cv_cc_flag_unused_command_line_argument=yes
9627else $as_nop
9628  xorg_cv_cc_flag_unused_command_line_argument=no
9629fi
9630rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9631fi
9632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9633printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9634	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9635	CFLAGS="$xorg_testset_save_CFLAGS"
9636fi
9637
9638found="no"
9639
9640	if test $found = "no" ; then
9641		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9642			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9643		fi
9644
9645		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9646			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9647		fi
9648
9649		CFLAGS="$CFLAGS -Wsequence-point"
9650
9651		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9652printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9653		cacheid=xorg_cv_cc_flag__Wsequence_point
9654		if eval test \${$cacheid+y}
9655then :
9656  printf %s "(cached) " >&6
9657else $as_nop
9658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9659/* end confdefs.h.  */
9660int i;
9661int
9662main (void)
9663{
9664
9665  ;
9666  return 0;
9667}
9668_ACEOF
9669if ac_fn_c_try_link "$LINENO"
9670then :
9671  eval $cacheid=yes
9672else $as_nop
9673  eval $cacheid=no
9674fi
9675rm -f core conftest.err conftest.$ac_objext conftest.beam \
9676    conftest$ac_exeext conftest.$ac_ext
9677fi
9678
9679
9680		CFLAGS="$xorg_testset_save_CFLAGS"
9681
9682		eval supported=\$$cacheid
9683		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9684printf "%s\n" "$supported" >&6; }
9685		if test "$supported" = "yes" ; then
9686			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9687			found="yes"
9688		fi
9689	fi
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705xorg_testset_save_CFLAGS="$CFLAGS"
9706
9707if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9708	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9709	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9710printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9711if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9712then :
9713  printf %s "(cached) " >&6
9714else $as_nop
9715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9716/* end confdefs.h.  */
9717int i;
9718_ACEOF
9719if ac_fn_c_try_compile "$LINENO"
9720then :
9721  xorg_cv_cc_flag_unknown_warning_option=yes
9722else $as_nop
9723  xorg_cv_cc_flag_unknown_warning_option=no
9724fi
9725rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9726fi
9727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9728printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9729	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9730	CFLAGS="$xorg_testset_save_CFLAGS"
9731fi
9732
9733if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9734	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9735		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9736	fi
9737	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9738	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9739printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9740if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9741then :
9742  printf %s "(cached) " >&6
9743else $as_nop
9744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9745/* end confdefs.h.  */
9746int i;
9747_ACEOF
9748if ac_fn_c_try_compile "$LINENO"
9749then :
9750  xorg_cv_cc_flag_unused_command_line_argument=yes
9751else $as_nop
9752  xorg_cv_cc_flag_unused_command_line_argument=no
9753fi
9754rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9755fi
9756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9757printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9758	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9759	CFLAGS="$xorg_testset_save_CFLAGS"
9760fi
9761
9762found="no"
9763
9764	if test $found = "no" ; then
9765		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9766			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9767		fi
9768
9769		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9770			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9771		fi
9772
9773		CFLAGS="$CFLAGS -Wreturn-type"
9774
9775		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9776printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9777		cacheid=xorg_cv_cc_flag__Wreturn_type
9778		if eval test \${$cacheid+y}
9779then :
9780  printf %s "(cached) " >&6
9781else $as_nop
9782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9783/* end confdefs.h.  */
9784int i;
9785int
9786main (void)
9787{
9788
9789  ;
9790  return 0;
9791}
9792_ACEOF
9793if ac_fn_c_try_link "$LINENO"
9794then :
9795  eval $cacheid=yes
9796else $as_nop
9797  eval $cacheid=no
9798fi
9799rm -f core conftest.err conftest.$ac_objext conftest.beam \
9800    conftest$ac_exeext conftest.$ac_ext
9801fi
9802
9803
9804		CFLAGS="$xorg_testset_save_CFLAGS"
9805
9806		eval supported=\$$cacheid
9807		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9808printf "%s\n" "$supported" >&6; }
9809		if test "$supported" = "yes" ; then
9810			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9811			found="yes"
9812		fi
9813	fi
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829xorg_testset_save_CFLAGS="$CFLAGS"
9830
9831if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9832	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9833	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9834printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9835if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9836then :
9837  printf %s "(cached) " >&6
9838else $as_nop
9839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9840/* end confdefs.h.  */
9841int i;
9842_ACEOF
9843if ac_fn_c_try_compile "$LINENO"
9844then :
9845  xorg_cv_cc_flag_unknown_warning_option=yes
9846else $as_nop
9847  xorg_cv_cc_flag_unknown_warning_option=no
9848fi
9849rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9850fi
9851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9852printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9853	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9854	CFLAGS="$xorg_testset_save_CFLAGS"
9855fi
9856
9857if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9858	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9859		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9860	fi
9861	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9862	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9863printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9864if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9865then :
9866  printf %s "(cached) " >&6
9867else $as_nop
9868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9869/* end confdefs.h.  */
9870int i;
9871_ACEOF
9872if ac_fn_c_try_compile "$LINENO"
9873then :
9874  xorg_cv_cc_flag_unused_command_line_argument=yes
9875else $as_nop
9876  xorg_cv_cc_flag_unused_command_line_argument=no
9877fi
9878rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9879fi
9880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9881printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9882	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9883	CFLAGS="$xorg_testset_save_CFLAGS"
9884fi
9885
9886found="no"
9887
9888	if test $found = "no" ; then
9889		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9890			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9891		fi
9892
9893		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9894			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9895		fi
9896
9897		CFLAGS="$CFLAGS -Wtrigraphs"
9898
9899		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9900printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9901		cacheid=xorg_cv_cc_flag__Wtrigraphs
9902		if eval test \${$cacheid+y}
9903then :
9904  printf %s "(cached) " >&6
9905else $as_nop
9906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9907/* end confdefs.h.  */
9908int i;
9909int
9910main (void)
9911{
9912
9913  ;
9914  return 0;
9915}
9916_ACEOF
9917if ac_fn_c_try_link "$LINENO"
9918then :
9919  eval $cacheid=yes
9920else $as_nop
9921  eval $cacheid=no
9922fi
9923rm -f core conftest.err conftest.$ac_objext conftest.beam \
9924    conftest$ac_exeext conftest.$ac_ext
9925fi
9926
9927
9928		CFLAGS="$xorg_testset_save_CFLAGS"
9929
9930		eval supported=\$$cacheid
9931		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9932printf "%s\n" "$supported" >&6; }
9933		if test "$supported" = "yes" ; then
9934			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9935			found="yes"
9936		fi
9937	fi
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953xorg_testset_save_CFLAGS="$CFLAGS"
9954
9955if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9956	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9957	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9958printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9959if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9960then :
9961  printf %s "(cached) " >&6
9962else $as_nop
9963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9964/* end confdefs.h.  */
9965int i;
9966_ACEOF
9967if ac_fn_c_try_compile "$LINENO"
9968then :
9969  xorg_cv_cc_flag_unknown_warning_option=yes
9970else $as_nop
9971  xorg_cv_cc_flag_unknown_warning_option=no
9972fi
9973rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9974fi
9975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9976printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9977	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9978	CFLAGS="$xorg_testset_save_CFLAGS"
9979fi
9980
9981if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9982	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9983		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9984	fi
9985	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9986	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9987printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9988if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9989then :
9990  printf %s "(cached) " >&6
9991else $as_nop
9992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9993/* end confdefs.h.  */
9994int i;
9995_ACEOF
9996if ac_fn_c_try_compile "$LINENO"
9997then :
9998  xorg_cv_cc_flag_unused_command_line_argument=yes
9999else $as_nop
10000  xorg_cv_cc_flag_unused_command_line_argument=no
10001fi
10002rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10003fi
10004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10005printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10006	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10007	CFLAGS="$xorg_testset_save_CFLAGS"
10008fi
10009
10010found="no"
10011
10012	if test $found = "no" ; then
10013		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10014			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10015		fi
10016
10017		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10018			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10019		fi
10020
10021		CFLAGS="$CFLAGS -Warray-bounds"
10022
10023		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10024printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10025		cacheid=xorg_cv_cc_flag__Warray_bounds
10026		if eval test \${$cacheid+y}
10027then :
10028  printf %s "(cached) " >&6
10029else $as_nop
10030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10031/* end confdefs.h.  */
10032int i;
10033int
10034main (void)
10035{
10036
10037  ;
10038  return 0;
10039}
10040_ACEOF
10041if ac_fn_c_try_link "$LINENO"
10042then :
10043  eval $cacheid=yes
10044else $as_nop
10045  eval $cacheid=no
10046fi
10047rm -f core conftest.err conftest.$ac_objext conftest.beam \
10048    conftest$ac_exeext conftest.$ac_ext
10049fi
10050
10051
10052		CFLAGS="$xorg_testset_save_CFLAGS"
10053
10054		eval supported=\$$cacheid
10055		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10056printf "%s\n" "$supported" >&6; }
10057		if test "$supported" = "yes" ; then
10058			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10059			found="yes"
10060		fi
10061	fi
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077xorg_testset_save_CFLAGS="$CFLAGS"
10078
10079if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10080	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10081	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10082printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10083if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10084then :
10085  printf %s "(cached) " >&6
10086else $as_nop
10087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10088/* end confdefs.h.  */
10089int i;
10090_ACEOF
10091if ac_fn_c_try_compile "$LINENO"
10092then :
10093  xorg_cv_cc_flag_unknown_warning_option=yes
10094else $as_nop
10095  xorg_cv_cc_flag_unknown_warning_option=no
10096fi
10097rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10098fi
10099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10100printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10101	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10102	CFLAGS="$xorg_testset_save_CFLAGS"
10103fi
10104
10105if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10106	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10107		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10108	fi
10109	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10110	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10111printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10112if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10113then :
10114  printf %s "(cached) " >&6
10115else $as_nop
10116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10117/* end confdefs.h.  */
10118int i;
10119_ACEOF
10120if ac_fn_c_try_compile "$LINENO"
10121then :
10122  xorg_cv_cc_flag_unused_command_line_argument=yes
10123else $as_nop
10124  xorg_cv_cc_flag_unused_command_line_argument=no
10125fi
10126rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10127fi
10128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10129printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10130	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10131	CFLAGS="$xorg_testset_save_CFLAGS"
10132fi
10133
10134found="no"
10135
10136	if test $found = "no" ; then
10137		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10138			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10139		fi
10140
10141		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10142			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10143		fi
10144
10145		CFLAGS="$CFLAGS -Wwrite-strings"
10146
10147		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10148printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10149		cacheid=xorg_cv_cc_flag__Wwrite_strings
10150		if eval test \${$cacheid+y}
10151then :
10152  printf %s "(cached) " >&6
10153else $as_nop
10154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10155/* end confdefs.h.  */
10156int i;
10157int
10158main (void)
10159{
10160
10161  ;
10162  return 0;
10163}
10164_ACEOF
10165if ac_fn_c_try_link "$LINENO"
10166then :
10167  eval $cacheid=yes
10168else $as_nop
10169  eval $cacheid=no
10170fi
10171rm -f core conftest.err conftest.$ac_objext conftest.beam \
10172    conftest$ac_exeext conftest.$ac_ext
10173fi
10174
10175
10176		CFLAGS="$xorg_testset_save_CFLAGS"
10177
10178		eval supported=\$$cacheid
10179		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10180printf "%s\n" "$supported" >&6; }
10181		if test "$supported" = "yes" ; then
10182			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10183			found="yes"
10184		fi
10185	fi
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201xorg_testset_save_CFLAGS="$CFLAGS"
10202
10203if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10204	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10205	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10206printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10207if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10208then :
10209  printf %s "(cached) " >&6
10210else $as_nop
10211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10212/* end confdefs.h.  */
10213int i;
10214_ACEOF
10215if ac_fn_c_try_compile "$LINENO"
10216then :
10217  xorg_cv_cc_flag_unknown_warning_option=yes
10218else $as_nop
10219  xorg_cv_cc_flag_unknown_warning_option=no
10220fi
10221rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10222fi
10223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10224printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10225	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10226	CFLAGS="$xorg_testset_save_CFLAGS"
10227fi
10228
10229if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10230	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10231		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10232	fi
10233	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10234	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10235printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10236if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10237then :
10238  printf %s "(cached) " >&6
10239else $as_nop
10240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10241/* end confdefs.h.  */
10242int i;
10243_ACEOF
10244if ac_fn_c_try_compile "$LINENO"
10245then :
10246  xorg_cv_cc_flag_unused_command_line_argument=yes
10247else $as_nop
10248  xorg_cv_cc_flag_unused_command_line_argument=no
10249fi
10250rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10251fi
10252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10253printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10254	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10255	CFLAGS="$xorg_testset_save_CFLAGS"
10256fi
10257
10258found="no"
10259
10260	if test $found = "no" ; then
10261		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10262			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10263		fi
10264
10265		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10266			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10267		fi
10268
10269		CFLAGS="$CFLAGS -Waddress"
10270
10271		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10272printf %s "checking if $CC supports -Waddress... " >&6; }
10273		cacheid=xorg_cv_cc_flag__Waddress
10274		if eval test \${$cacheid+y}
10275then :
10276  printf %s "(cached) " >&6
10277else $as_nop
10278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10279/* end confdefs.h.  */
10280int i;
10281int
10282main (void)
10283{
10284
10285  ;
10286  return 0;
10287}
10288_ACEOF
10289if ac_fn_c_try_link "$LINENO"
10290then :
10291  eval $cacheid=yes
10292else $as_nop
10293  eval $cacheid=no
10294fi
10295rm -f core conftest.err conftest.$ac_objext conftest.beam \
10296    conftest$ac_exeext conftest.$ac_ext
10297fi
10298
10299
10300		CFLAGS="$xorg_testset_save_CFLAGS"
10301
10302		eval supported=\$$cacheid
10303		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10304printf "%s\n" "$supported" >&6; }
10305		if test "$supported" = "yes" ; then
10306			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10307			found="yes"
10308		fi
10309	fi
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325xorg_testset_save_CFLAGS="$CFLAGS"
10326
10327if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10328	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10329	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10330printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10331if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10332then :
10333  printf %s "(cached) " >&6
10334else $as_nop
10335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10336/* end confdefs.h.  */
10337int i;
10338_ACEOF
10339if ac_fn_c_try_compile "$LINENO"
10340then :
10341  xorg_cv_cc_flag_unknown_warning_option=yes
10342else $as_nop
10343  xorg_cv_cc_flag_unknown_warning_option=no
10344fi
10345rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10346fi
10347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10348printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10349	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10350	CFLAGS="$xorg_testset_save_CFLAGS"
10351fi
10352
10353if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10354	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10355		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10356	fi
10357	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10358	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10359printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10360if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10361then :
10362  printf %s "(cached) " >&6
10363else $as_nop
10364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10365/* end confdefs.h.  */
10366int i;
10367_ACEOF
10368if ac_fn_c_try_compile "$LINENO"
10369then :
10370  xorg_cv_cc_flag_unused_command_line_argument=yes
10371else $as_nop
10372  xorg_cv_cc_flag_unused_command_line_argument=no
10373fi
10374rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10375fi
10376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10377printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10378	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10379	CFLAGS="$xorg_testset_save_CFLAGS"
10380fi
10381
10382found="no"
10383
10384	if test $found = "no" ; then
10385		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10386			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10387		fi
10388
10389		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10390			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10391		fi
10392
10393		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10394
10395		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10396printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10397		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10398		if eval test \${$cacheid+y}
10399then :
10400  printf %s "(cached) " >&6
10401else $as_nop
10402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10403/* end confdefs.h.  */
10404int i;
10405int
10406main (void)
10407{
10408
10409  ;
10410  return 0;
10411}
10412_ACEOF
10413if ac_fn_c_try_link "$LINENO"
10414then :
10415  eval $cacheid=yes
10416else $as_nop
10417  eval $cacheid=no
10418fi
10419rm -f core conftest.err conftest.$ac_objext conftest.beam \
10420    conftest$ac_exeext conftest.$ac_ext
10421fi
10422
10423
10424		CFLAGS="$xorg_testset_save_CFLAGS"
10425
10426		eval supported=\$$cacheid
10427		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10428printf "%s\n" "$supported" >&6; }
10429		if test "$supported" = "yes" ; then
10430			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10431			found="yes"
10432		fi
10433	fi
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449xorg_testset_save_CFLAGS="$CFLAGS"
10450
10451if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10452	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10453	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10454printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10455if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10456then :
10457  printf %s "(cached) " >&6
10458else $as_nop
10459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10460/* end confdefs.h.  */
10461int i;
10462_ACEOF
10463if ac_fn_c_try_compile "$LINENO"
10464then :
10465  xorg_cv_cc_flag_unknown_warning_option=yes
10466else $as_nop
10467  xorg_cv_cc_flag_unknown_warning_option=no
10468fi
10469rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10470fi
10471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10472printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10473	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10474	CFLAGS="$xorg_testset_save_CFLAGS"
10475fi
10476
10477if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10478	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10479		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10480	fi
10481	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10482	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10483printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10484if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10485then :
10486  printf %s "(cached) " >&6
10487else $as_nop
10488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10489/* end confdefs.h.  */
10490int i;
10491_ACEOF
10492if ac_fn_c_try_compile "$LINENO"
10493then :
10494  xorg_cv_cc_flag_unused_command_line_argument=yes
10495else $as_nop
10496  xorg_cv_cc_flag_unused_command_line_argument=no
10497fi
10498rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10499fi
10500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10501printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10502	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10503	CFLAGS="$xorg_testset_save_CFLAGS"
10504fi
10505
10506found="no"
10507
10508	if test $found = "no" ; then
10509		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10510			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10511		fi
10512
10513		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10514			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10515		fi
10516
10517		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10518
10519		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10520printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10521		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10522		if eval test \${$cacheid+y}
10523then :
10524  printf %s "(cached) " >&6
10525else $as_nop
10526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10527/* end confdefs.h.  */
10528int i;
10529int
10530main (void)
10531{
10532
10533  ;
10534  return 0;
10535}
10536_ACEOF
10537if ac_fn_c_try_link "$LINENO"
10538then :
10539  eval $cacheid=yes
10540else $as_nop
10541  eval $cacheid=no
10542fi
10543rm -f core conftest.err conftest.$ac_objext conftest.beam \
10544    conftest$ac_exeext conftest.$ac_ext
10545fi
10546
10547
10548		CFLAGS="$xorg_testset_save_CFLAGS"
10549
10550		eval supported=\$$cacheid
10551		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10552printf "%s\n" "$supported" >&6; }
10553		if test "$supported" = "yes" ; then
10554			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10555			found="yes"
10556		fi
10557	fi
10558
10559
10560fi
10561
10562
10563
10564
10565
10566
10567
10568		CWARNFLAGS="$BASE_CFLAGS"
10569		if  test "x$GCC" = xyes ; then
10570		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10571		fi
10572
10573
10574
10575
10576
10577
10578
10579
10580# Check whether --enable-strict-compilation was given.
10581if test ${enable_strict_compilation+y}
10582then :
10583  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10584else $as_nop
10585  STRICT_COMPILE=no
10586fi
10587
10588
10589
10590
10591
10592
10593STRICT_CFLAGS=""
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607xorg_testset_save_CFLAGS="$CFLAGS"
10608
10609if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10610	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10611	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10612printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10613if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10614then :
10615  printf %s "(cached) " >&6
10616else $as_nop
10617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10618/* end confdefs.h.  */
10619int i;
10620_ACEOF
10621if ac_fn_c_try_compile "$LINENO"
10622then :
10623  xorg_cv_cc_flag_unknown_warning_option=yes
10624else $as_nop
10625  xorg_cv_cc_flag_unknown_warning_option=no
10626fi
10627rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10628fi
10629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10630printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10631	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10632	CFLAGS="$xorg_testset_save_CFLAGS"
10633fi
10634
10635if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10636	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10637		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10638	fi
10639	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10640	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10641printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10642if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10643then :
10644  printf %s "(cached) " >&6
10645else $as_nop
10646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10647/* end confdefs.h.  */
10648int i;
10649_ACEOF
10650if ac_fn_c_try_compile "$LINENO"
10651then :
10652  xorg_cv_cc_flag_unused_command_line_argument=yes
10653else $as_nop
10654  xorg_cv_cc_flag_unused_command_line_argument=no
10655fi
10656rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10657fi
10658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10659printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10660	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10661	CFLAGS="$xorg_testset_save_CFLAGS"
10662fi
10663
10664found="no"
10665
10666	if test $found = "no" ; then
10667		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10668			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10669		fi
10670
10671		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10672			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10673		fi
10674
10675		CFLAGS="$CFLAGS -pedantic"
10676
10677		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10678printf %s "checking if $CC supports -pedantic... " >&6; }
10679		cacheid=xorg_cv_cc_flag__pedantic
10680		if eval test \${$cacheid+y}
10681then :
10682  printf %s "(cached) " >&6
10683else $as_nop
10684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10685/* end confdefs.h.  */
10686int i;
10687int
10688main (void)
10689{
10690
10691  ;
10692  return 0;
10693}
10694_ACEOF
10695if ac_fn_c_try_link "$LINENO"
10696then :
10697  eval $cacheid=yes
10698else $as_nop
10699  eval $cacheid=no
10700fi
10701rm -f core conftest.err conftest.$ac_objext conftest.beam \
10702    conftest$ac_exeext conftest.$ac_ext
10703fi
10704
10705
10706		CFLAGS="$xorg_testset_save_CFLAGS"
10707
10708		eval supported=\$$cacheid
10709		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10710printf "%s\n" "$supported" >&6; }
10711		if test "$supported" = "yes" ; then
10712			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10713			found="yes"
10714		fi
10715	fi
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731xorg_testset_save_CFLAGS="$CFLAGS"
10732
10733if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10734	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10735	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10736printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10737if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10738then :
10739  printf %s "(cached) " >&6
10740else $as_nop
10741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10742/* end confdefs.h.  */
10743int i;
10744_ACEOF
10745if ac_fn_c_try_compile "$LINENO"
10746then :
10747  xorg_cv_cc_flag_unknown_warning_option=yes
10748else $as_nop
10749  xorg_cv_cc_flag_unknown_warning_option=no
10750fi
10751rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10752fi
10753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10754printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10755	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10756	CFLAGS="$xorg_testset_save_CFLAGS"
10757fi
10758
10759if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10760	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10761		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10762	fi
10763	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10764	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10765printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10766if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10767then :
10768  printf %s "(cached) " >&6
10769else $as_nop
10770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10771/* end confdefs.h.  */
10772int i;
10773_ACEOF
10774if ac_fn_c_try_compile "$LINENO"
10775then :
10776  xorg_cv_cc_flag_unused_command_line_argument=yes
10777else $as_nop
10778  xorg_cv_cc_flag_unused_command_line_argument=no
10779fi
10780rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10781fi
10782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10783printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10784	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10785	CFLAGS="$xorg_testset_save_CFLAGS"
10786fi
10787
10788found="no"
10789
10790	if test $found = "no" ; then
10791		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10792			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10793		fi
10794
10795		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10796			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10797		fi
10798
10799		CFLAGS="$CFLAGS -Werror"
10800
10801		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10802printf %s "checking if $CC supports -Werror... " >&6; }
10803		cacheid=xorg_cv_cc_flag__Werror
10804		if eval test \${$cacheid+y}
10805then :
10806  printf %s "(cached) " >&6
10807else $as_nop
10808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10809/* end confdefs.h.  */
10810int i;
10811int
10812main (void)
10813{
10814
10815  ;
10816  return 0;
10817}
10818_ACEOF
10819if ac_fn_c_try_link "$LINENO"
10820then :
10821  eval $cacheid=yes
10822else $as_nop
10823  eval $cacheid=no
10824fi
10825rm -f core conftest.err conftest.$ac_objext conftest.beam \
10826    conftest$ac_exeext conftest.$ac_ext
10827fi
10828
10829
10830		CFLAGS="$xorg_testset_save_CFLAGS"
10831
10832		eval supported=\$$cacheid
10833		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10834printf "%s\n" "$supported" >&6; }
10835		if test "$supported" = "yes" ; then
10836			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10837			found="yes"
10838		fi
10839	fi
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 -errwarn"
10851
10852		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10853printf %s "checking if $CC supports -errwarn... " >&6; }
10854		cacheid=xorg_cv_cc_flag__errwarn
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 -errwarn"
10888			found="yes"
10889		fi
10890	fi
10891
10892
10893
10894# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10895# activate it with -Werror, so we add it here explicitly.
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909xorg_testset_save_CFLAGS="$CFLAGS"
10910
10911if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10912	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10913	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10914printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10915if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10916then :
10917  printf %s "(cached) " >&6
10918else $as_nop
10919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10920/* end confdefs.h.  */
10921int i;
10922_ACEOF
10923if ac_fn_c_try_compile "$LINENO"
10924then :
10925  xorg_cv_cc_flag_unknown_warning_option=yes
10926else $as_nop
10927  xorg_cv_cc_flag_unknown_warning_option=no
10928fi
10929rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10930fi
10931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10932printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10933	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10934	CFLAGS="$xorg_testset_save_CFLAGS"
10935fi
10936
10937if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10938	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10939		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10940	fi
10941	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10942	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10943printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10944if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10945then :
10946  printf %s "(cached) " >&6
10947else $as_nop
10948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10949/* end confdefs.h.  */
10950int i;
10951_ACEOF
10952if ac_fn_c_try_compile "$LINENO"
10953then :
10954  xorg_cv_cc_flag_unused_command_line_argument=yes
10955else $as_nop
10956  xorg_cv_cc_flag_unused_command_line_argument=no
10957fi
10958rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10959fi
10960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10961printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10962	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10963	CFLAGS="$xorg_testset_save_CFLAGS"
10964fi
10965
10966found="no"
10967
10968	if test $found = "no" ; then
10969		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10970			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10971		fi
10972
10973		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10974			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10975		fi
10976
10977		CFLAGS="$CFLAGS -Werror=attributes"
10978
10979		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10980printf %s "checking if $CC supports -Werror=attributes... " >&6; }
10981		cacheid=xorg_cv_cc_flag__Werror_attributes
10982		if eval test \${$cacheid+y}
10983then :
10984  printf %s "(cached) " >&6
10985else $as_nop
10986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10987/* end confdefs.h.  */
10988int i;
10989int
10990main (void)
10991{
10992
10993  ;
10994  return 0;
10995}
10996_ACEOF
10997if ac_fn_c_try_link "$LINENO"
10998then :
10999  eval $cacheid=yes
11000else $as_nop
11001  eval $cacheid=no
11002fi
11003rm -f core conftest.err conftest.$ac_objext conftest.beam \
11004    conftest$ac_exeext conftest.$ac_ext
11005fi
11006
11007
11008		CFLAGS="$xorg_testset_save_CFLAGS"
11009
11010		eval supported=\$$cacheid
11011		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11012printf "%s\n" "$supported" >&6; }
11013		if test "$supported" = "yes" ; then
11014			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11015			found="yes"
11016		fi
11017	fi
11018
11019
11020
11021if test "x$STRICT_COMPILE" = "xyes"; then
11022    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11023    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11024fi
11025
11026
11027
11028
11029
11030
11031cat >>confdefs.h <<_ACEOF
11032#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11033_ACEOF
11034
11035	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11036	if test "x$PVM" = "x"; then
11037		PVM="0"
11038	fi
11039
11040printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11041
11042	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11043	if test "x$PVP" = "x"; then
11044		PVP="0"
11045	fi
11046
11047printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11048
11049
11050
11051CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11052mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11053|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11054touch \$(top_srcdir)/ChangeLog; \
11055echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11056
11057
11058
11059
11060macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11061INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11062mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11063|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11064touch \$(top_srcdir)/INSTALL; \
11065echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11066
11067
11068
11069
11070
11071
11072case $host_os in
11073    solaris*)
11074        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11075        # check for a man page file found in later versions that use
11076        # traditional section numbers instead
11077        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11078printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11079if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11080then :
11081  printf %s "(cached) " >&6
11082else $as_nop
11083  test "$cross_compiling" = yes &&
11084  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11085if test -r "/usr/share/man/man7/attributes.7"; then
11086  ac_cv_file__usr_share_man_man7_attributes_7=yes
11087else
11088  ac_cv_file__usr_share_man_man7_attributes_7=no
11089fi
11090fi
11091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11092printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11093if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11094then :
11095  SYSV_MAN_SECTIONS=false
11096else $as_nop
11097  SYSV_MAN_SECTIONS=true
11098fi
11099
11100        ;;
11101    *) SYSV_MAN_SECTIONS=false ;;
11102esac
11103
11104if test x$APP_MAN_SUFFIX = x    ; then
11105    APP_MAN_SUFFIX=1
11106fi
11107if test x$APP_MAN_DIR = x    ; then
11108    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11109fi
11110
11111if test x$LIB_MAN_SUFFIX = x    ; then
11112    LIB_MAN_SUFFIX=3
11113fi
11114if test x$LIB_MAN_DIR = x    ; then
11115    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11116fi
11117
11118if test x$FILE_MAN_SUFFIX = x    ; then
11119    case $SYSV_MAN_SECTIONS in
11120	true)				FILE_MAN_SUFFIX=4  ;;
11121	*)				FILE_MAN_SUFFIX=5  ;;
11122    esac
11123fi
11124if test x$FILE_MAN_DIR = x    ; then
11125    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11126fi
11127
11128if test x$MISC_MAN_SUFFIX = x    ; then
11129    case $SYSV_MAN_SECTIONS in
11130	true)				MISC_MAN_SUFFIX=5  ;;
11131	*)				MISC_MAN_SUFFIX=7  ;;
11132    esac
11133fi
11134if test x$MISC_MAN_DIR = x    ; then
11135    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11136fi
11137
11138if test x$DRIVER_MAN_SUFFIX = x    ; then
11139    case $SYSV_MAN_SECTIONS in
11140	true)				DRIVER_MAN_SUFFIX=7  ;;
11141	*)				DRIVER_MAN_SUFFIX=4  ;;
11142    esac
11143fi
11144if test x$DRIVER_MAN_DIR = x    ; then
11145    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11146fi
11147
11148if test x$ADMIN_MAN_SUFFIX = x    ; then
11149    case $SYSV_MAN_SECTIONS in
11150	true)				ADMIN_MAN_SUFFIX=1m ;;
11151	*)				ADMIN_MAN_SUFFIX=8  ;;
11152    esac
11153fi
11154if test x$ADMIN_MAN_DIR = x    ; then
11155    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11156fi
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172XORG_MAN_PAGE="X Version 11"
11173
11174MAN_SUBSTS="\
11175	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11176	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11177	-e 's|__xservername__|Xorg|g' \
11178	-e 's|__xconfigfile__|xorg.conf|g' \
11179	-e 's|__projectroot__|\$(prefix)|g' \
11180	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11181	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11182	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11183	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11184	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11185	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11186	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11187
11188
11189
11190# Check whether --enable-silent-rules was given.
11191if test ${enable_silent_rules+y}
11192then :
11193  enableval=$enable_silent_rules;
11194fi
11195
11196case $enable_silent_rules in # (((
11197  yes) AM_DEFAULT_VERBOSITY=0;;
11198   no) AM_DEFAULT_VERBOSITY=1;;
11199    *) AM_DEFAULT_VERBOSITY=0;;
11200esac
11201am_make=${MAKE-make}
11202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11203printf %s "checking whether $am_make supports nested variables... " >&6; }
11204if test ${am_cv_make_support_nested_variables+y}
11205then :
11206  printf %s "(cached) " >&6
11207else $as_nop
11208  if printf "%s\n" 'TRUE=$(BAR$(V))
11209BAR0=false
11210BAR1=true
11211V=1
11212am__doit:
11213	@$(TRUE)
11214.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11215  am_cv_make_support_nested_variables=yes
11216else
11217  am_cv_make_support_nested_variables=no
11218fi
11219fi
11220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11221printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11222if test $am_cv_make_support_nested_variables = yes; then
11223    AM_V='$(V)'
11224  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11225else
11226  AM_V=$AM_DEFAULT_VERBOSITY
11227  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11228fi
11229AM_BACKSLASH='\'
11230
11231
11232
11233# Checks for pkg-config packages
11234
11235pkg_failed=no
11236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XEV" >&5
11237printf %s "checking for XEV... " >&6; }
11238
11239if test -n "$XEV_CFLAGS"; then
11240    pkg_cv_XEV_CFLAGS="$XEV_CFLAGS"
11241 elif test -n "$PKG_CONFIG"; then
11242    if test -n "$PKG_CONFIG" && \
11243    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr >= 1.2 x11 xproto >= 7.0.17\""; } >&5
11244  ($PKG_CONFIG --exists --print-errors "xrandr >= 1.2 x11 xproto >= 7.0.17") 2>&5
11245  ac_status=$?
11246  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11247  test $ac_status = 0; }; then
11248  pkg_cv_XEV_CFLAGS=`$PKG_CONFIG --cflags "xrandr >= 1.2 x11 xproto >= 7.0.17" 2>/dev/null`
11249		      test "x$?" != "x0" && pkg_failed=yes
11250else
11251  pkg_failed=yes
11252fi
11253 else
11254    pkg_failed=untried
11255fi
11256if test -n "$XEV_LIBS"; then
11257    pkg_cv_XEV_LIBS="$XEV_LIBS"
11258 elif test -n "$PKG_CONFIG"; then
11259    if test -n "$PKG_CONFIG" && \
11260    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr >= 1.2 x11 xproto >= 7.0.17\""; } >&5
11261  ($PKG_CONFIG --exists --print-errors "xrandr >= 1.2 x11 xproto >= 7.0.17") 2>&5
11262  ac_status=$?
11263  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11264  test $ac_status = 0; }; then
11265  pkg_cv_XEV_LIBS=`$PKG_CONFIG --libs "xrandr >= 1.2 x11 xproto >= 7.0.17" 2>/dev/null`
11266		      test "x$?" != "x0" && pkg_failed=yes
11267else
11268  pkg_failed=yes
11269fi
11270 else
11271    pkg_failed=untried
11272fi
11273
11274
11275
11276if test $pkg_failed = yes; then
11277   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11278printf "%s\n" "no" >&6; }
11279
11280if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11281        _pkg_short_errors_supported=yes
11282else
11283        _pkg_short_errors_supported=no
11284fi
11285        if test $_pkg_short_errors_supported = yes; then
11286	        XEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrandr >= 1.2 x11 xproto >= 7.0.17" 2>&1`
11287        else
11288	        XEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrandr >= 1.2 x11 xproto >= 7.0.17" 2>&1`
11289        fi
11290	# Put the nasty error message in config.log where it belongs
11291	echo "$XEV_PKG_ERRORS" >&5
11292
11293	as_fn_error $? "Package requirements (xrandr >= 1.2 x11 xproto >= 7.0.17) were not met:
11294
11295$XEV_PKG_ERRORS
11296
11297Consider adjusting the PKG_CONFIG_PATH environment variable if you
11298installed software in a non-standard prefix.
11299
11300Alternatively, you may set the environment variables XEV_CFLAGS
11301and XEV_LIBS to avoid the need to call pkg-config.
11302See the pkg-config man page for more details." "$LINENO" 5
11303elif test $pkg_failed = untried; then
11304     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11305printf "%s\n" "no" >&6; }
11306	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11307printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11308as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11309is in your PATH or set the PKG_CONFIG environment variable to the full
11310path to pkg-config.
11311
11312Alternatively, you may set the environment variables XEV_CFLAGS
11313and XEV_LIBS to avoid the need to call pkg-config.
11314See the pkg-config man page for more details.
11315
11316To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11317See \`config.log' for more details" "$LINENO" 5; }
11318else
11319	XEV_CFLAGS=$pkg_cv_XEV_CFLAGS
11320	XEV_LIBS=$pkg_cv_XEV_LIBS
11321        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11322printf "%s\n" "yes" >&6; }
11323
11324fi
11325
11326ac_config_files="$ac_config_files Makefile man/Makefile"
11327
11328cat >confcache <<\_ACEOF
11329# This file is a shell script that caches the results of configure
11330# tests run on this system so they can be shared between configure
11331# scripts and configure runs, see configure's option --config-cache.
11332# It is not useful on other systems.  If it contains results you don't
11333# want to keep, you may remove or edit it.
11334#
11335# config.status only pays attention to the cache file if you give it
11336# the --recheck option to rerun configure.
11337#
11338# `ac_cv_env_foo' variables (set or unset) will be overridden when
11339# loading this file, other *unset* `ac_cv_foo' will be assigned the
11340# following values.
11341
11342_ACEOF
11343
11344# The following way of writing the cache mishandles newlines in values,
11345# but we know of no workaround that is simple, portable, and efficient.
11346# So, we kill variables containing newlines.
11347# Ultrix sh set writes to stderr and can't be redirected directly,
11348# and sets the high bit in the cache file unless we assign to the vars.
11349(
11350  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11351    eval ac_val=\$$ac_var
11352    case $ac_val in #(
11353    *${as_nl}*)
11354      case $ac_var in #(
11355      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11356printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11357      esac
11358      case $ac_var in #(
11359      _ | IFS | as_nl) ;; #(
11360      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11361      *) { eval $ac_var=; unset $ac_var;} ;;
11362      esac ;;
11363    esac
11364  done
11365
11366  (set) 2>&1 |
11367    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11368    *${as_nl}ac_space=\ *)
11369      # `set' does not quote correctly, so add quotes: double-quote
11370      # substitution turns \\\\ into \\, and sed turns \\ into \.
11371      sed -n \
11372	"s/'/'\\\\''/g;
11373	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11374      ;; #(
11375    *)
11376      # `set' quotes correctly as required by POSIX, so do not add quotes.
11377      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11378      ;;
11379    esac |
11380    sort
11381) |
11382  sed '
11383     /^ac_cv_env_/b end
11384     t clear
11385     :clear
11386     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11387     t end
11388     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11389     :end' >>confcache
11390if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11391  if test -w "$cache_file"; then
11392    if test "x$cache_file" != "x/dev/null"; then
11393      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11394printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11395      if test ! -f "$cache_file" || test -h "$cache_file"; then
11396	cat confcache >"$cache_file"
11397      else
11398        case $cache_file in #(
11399        */* | ?:*)
11400	  mv -f confcache "$cache_file"$$ &&
11401	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11402        *)
11403	  mv -f confcache "$cache_file" ;;
11404	esac
11405      fi
11406    fi
11407  else
11408    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11409printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11410  fi
11411fi
11412rm -f confcache
11413
11414test "x$prefix" = xNONE && prefix=$ac_default_prefix
11415# Let make expand exec_prefix.
11416test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11417
11418DEFS=-DHAVE_CONFIG_H
11419
11420ac_libobjs=
11421ac_ltlibobjs=
11422U=
11423for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11424  # 1. Remove the extension, and $U if already installed.
11425  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11426  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11427  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11428  #    will be set to the directory where LIBOBJS objects are built.
11429  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11430  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11431done
11432LIBOBJS=$ac_libobjs
11433
11434LTLIBOBJS=$ac_ltlibobjs
11435
11436
11437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11438printf %s "checking that generated files are newer than configure... " >&6; }
11439   if test -n "$am_sleep_pid"; then
11440     # Hide warnings about reused PIDs.
11441     wait $am_sleep_pid 2>/dev/null
11442   fi
11443   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11444printf "%s\n" "done" >&6; }
11445if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11446  as_fn_error $? "conditional \"AMDEP\" was never defined.
11447Usually this means the macro was only invoked conditionally." "$LINENO" 5
11448fi
11449if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11450  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11451Usually this means the macro was only invoked conditionally." "$LINENO" 5
11452fi
11453 if test -n "$EXEEXT"; then
11454  am__EXEEXT_TRUE=
11455  am__EXEEXT_FALSE='#'
11456else
11457  am__EXEEXT_TRUE='#'
11458  am__EXEEXT_FALSE=
11459fi
11460
11461
11462: "${CONFIG_STATUS=./config.status}"
11463ac_write_fail=0
11464ac_clean_files_save=$ac_clean_files
11465ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11467printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11468as_write_fail=0
11469cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11470#! $SHELL
11471# Generated by $as_me.
11472# Run this file to recreate the current configuration.
11473# Compiler output produced by configure, useful for debugging
11474# configure, is in config.log if it exists.
11475
11476debug=false
11477ac_cs_recheck=false
11478ac_cs_silent=false
11479
11480SHELL=\${CONFIG_SHELL-$SHELL}
11481export SHELL
11482_ASEOF
11483cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11484## -------------------- ##
11485## M4sh Initialization. ##
11486## -------------------- ##
11487
11488# Be more Bourne compatible
11489DUALCASE=1; export DUALCASE # for MKS sh
11490as_nop=:
11491if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11492then :
11493  emulate sh
11494  NULLCMD=:
11495  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11496  # is contrary to our usage.  Disable this feature.
11497  alias -g '${1+"$@"}'='"$@"'
11498  setopt NO_GLOB_SUBST
11499else $as_nop
11500  case `(set -o) 2>/dev/null` in #(
11501  *posix*) :
11502    set -o posix ;; #(
11503  *) :
11504     ;;
11505esac
11506fi
11507
11508
11509
11510# Reset variables that may have inherited troublesome values from
11511# the environment.
11512
11513# IFS needs to be set, to space, tab, and newline, in precisely that order.
11514# (If _AS_PATH_WALK were called with IFS unset, it would have the
11515# side effect of setting IFS to empty, thus disabling word splitting.)
11516# Quoting is to prevent editors from complaining about space-tab.
11517as_nl='
11518'
11519export as_nl
11520IFS=" ""	$as_nl"
11521
11522PS1='$ '
11523PS2='> '
11524PS4='+ '
11525
11526# Ensure predictable behavior from utilities with locale-dependent output.
11527LC_ALL=C
11528export LC_ALL
11529LANGUAGE=C
11530export LANGUAGE
11531
11532# We cannot yet rely on "unset" to work, but we need these variables
11533# to be unset--not just set to an empty or harmless value--now, to
11534# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
11535# also avoids known problems related to "unset" and subshell syntax
11536# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11537for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11538do eval test \${$as_var+y} \
11539  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11540done
11541
11542# Ensure that fds 0, 1, and 2 are open.
11543if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11544if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11545if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
11546
11547# The user is always right.
11548if ${PATH_SEPARATOR+false} :; then
11549  PATH_SEPARATOR=:
11550  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11551    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11552      PATH_SEPARATOR=';'
11553  }
11554fi
11555
11556
11557# Find who we are.  Look in the path if we contain no directory separator.
11558as_myself=
11559case $0 in #((
11560  *[\\/]* ) as_myself=$0 ;;
11561  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11562for as_dir in $PATH
11563do
11564  IFS=$as_save_IFS
11565  case $as_dir in #(((
11566    '') as_dir=./ ;;
11567    */) ;;
11568    *) as_dir=$as_dir/ ;;
11569  esac
11570    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11571  done
11572IFS=$as_save_IFS
11573
11574     ;;
11575esac
11576# We did not find ourselves, most probably we were run as `sh COMMAND'
11577# in which case we are not to be found in the path.
11578if test "x$as_myself" = x; then
11579  as_myself=$0
11580fi
11581if test ! -f "$as_myself"; then
11582  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11583  exit 1
11584fi
11585
11586
11587
11588# as_fn_error STATUS ERROR [LINENO LOG_FD]
11589# ----------------------------------------
11590# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11591# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11592# script with STATUS, using 1 if that was 0.
11593as_fn_error ()
11594{
11595  as_status=$1; test $as_status -eq 0 && as_status=1
11596  if test "$4"; then
11597    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11598    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11599  fi
11600  printf "%s\n" "$as_me: error: $2" >&2
11601  as_fn_exit $as_status
11602} # as_fn_error
11603
11604
11605
11606# as_fn_set_status STATUS
11607# -----------------------
11608# Set $? to STATUS, without forking.
11609as_fn_set_status ()
11610{
11611  return $1
11612} # as_fn_set_status
11613
11614# as_fn_exit STATUS
11615# -----------------
11616# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11617as_fn_exit ()
11618{
11619  set +e
11620  as_fn_set_status $1
11621  exit $1
11622} # as_fn_exit
11623
11624# as_fn_unset VAR
11625# ---------------
11626# Portably unset VAR.
11627as_fn_unset ()
11628{
11629  { eval $1=; unset $1;}
11630}
11631as_unset=as_fn_unset
11632
11633# as_fn_append VAR VALUE
11634# ----------------------
11635# Append the text in VALUE to the end of the definition contained in VAR. Take
11636# advantage of any shell optimizations that allow amortized linear growth over
11637# repeated appends, instead of the typical quadratic growth present in naive
11638# implementations.
11639if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11640then :
11641  eval 'as_fn_append ()
11642  {
11643    eval $1+=\$2
11644  }'
11645else $as_nop
11646  as_fn_append ()
11647  {
11648    eval $1=\$$1\$2
11649  }
11650fi # as_fn_append
11651
11652# as_fn_arith ARG...
11653# ------------------
11654# Perform arithmetic evaluation on the ARGs, and store the result in the
11655# global $as_val. Take advantage of shells that can avoid forks. The arguments
11656# must be portable across $(()) and expr.
11657if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11658then :
11659  eval 'as_fn_arith ()
11660  {
11661    as_val=$(( $* ))
11662  }'
11663else $as_nop
11664  as_fn_arith ()
11665  {
11666    as_val=`expr "$@" || test $? -eq 1`
11667  }
11668fi # as_fn_arith
11669
11670
11671if expr a : '\(a\)' >/dev/null 2>&1 &&
11672   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11673  as_expr=expr
11674else
11675  as_expr=false
11676fi
11677
11678if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11679  as_basename=basename
11680else
11681  as_basename=false
11682fi
11683
11684if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11685  as_dirname=dirname
11686else
11687  as_dirname=false
11688fi
11689
11690as_me=`$as_basename -- "$0" ||
11691$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11692	 X"$0" : 'X\(//\)$' \| \
11693	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11694printf "%s\n" X/"$0" |
11695    sed '/^.*\/\([^/][^/]*\)\/*$/{
11696	    s//\1/
11697	    q
11698	  }
11699	  /^X\/\(\/\/\)$/{
11700	    s//\1/
11701	    q
11702	  }
11703	  /^X\/\(\/\).*/{
11704	    s//\1/
11705	    q
11706	  }
11707	  s/.*/./; q'`
11708
11709# Avoid depending upon Character Ranges.
11710as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11711as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11712as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11713as_cr_digits='0123456789'
11714as_cr_alnum=$as_cr_Letters$as_cr_digits
11715
11716
11717# Determine whether it's possible to make 'echo' print without a newline.
11718# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11719# for compatibility with existing Makefiles.
11720ECHO_C= ECHO_N= ECHO_T=
11721case `echo -n x` in #(((((
11722-n*)
11723  case `echo 'xy\c'` in
11724  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11725  xy)  ECHO_C='\c';;
11726  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11727       ECHO_T='	';;
11728  esac;;
11729*)
11730  ECHO_N='-n';;
11731esac
11732
11733# For backward compatibility with old third-party macros, we provide
11734# the shell variables $as_echo and $as_echo_n.  New code should use
11735# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11736as_echo='printf %s\n'
11737as_echo_n='printf %s'
11738
11739rm -f conf$$ conf$$.exe conf$$.file
11740if test -d conf$$.dir; then
11741  rm -f conf$$.dir/conf$$.file
11742else
11743  rm -f conf$$.dir
11744  mkdir conf$$.dir 2>/dev/null
11745fi
11746if (echo >conf$$.file) 2>/dev/null; then
11747  if ln -s conf$$.file conf$$ 2>/dev/null; then
11748    as_ln_s='ln -s'
11749    # ... but there are two gotchas:
11750    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11751    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11752    # In both cases, we have to default to `cp -pR'.
11753    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11754      as_ln_s='cp -pR'
11755  elif ln conf$$.file conf$$ 2>/dev/null; then
11756    as_ln_s=ln
11757  else
11758    as_ln_s='cp -pR'
11759  fi
11760else
11761  as_ln_s='cp -pR'
11762fi
11763rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11764rmdir conf$$.dir 2>/dev/null
11765
11766
11767# as_fn_mkdir_p
11768# -------------
11769# Create "$as_dir" as a directory, including parents if necessary.
11770as_fn_mkdir_p ()
11771{
11772
11773  case $as_dir in #(
11774  -*) as_dir=./$as_dir;;
11775  esac
11776  test -d "$as_dir" || eval $as_mkdir_p || {
11777    as_dirs=
11778    while :; do
11779      case $as_dir in #(
11780      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11781      *) as_qdir=$as_dir;;
11782      esac
11783      as_dirs="'$as_qdir' $as_dirs"
11784      as_dir=`$as_dirname -- "$as_dir" ||
11785$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11786	 X"$as_dir" : 'X\(//\)[^/]' \| \
11787	 X"$as_dir" : 'X\(//\)$' \| \
11788	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11789printf "%s\n" X"$as_dir" |
11790    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11791	    s//\1/
11792	    q
11793	  }
11794	  /^X\(\/\/\)[^/].*/{
11795	    s//\1/
11796	    q
11797	  }
11798	  /^X\(\/\/\)$/{
11799	    s//\1/
11800	    q
11801	  }
11802	  /^X\(\/\).*/{
11803	    s//\1/
11804	    q
11805	  }
11806	  s/.*/./; q'`
11807      test -d "$as_dir" && break
11808    done
11809    test -z "$as_dirs" || eval "mkdir $as_dirs"
11810  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11811
11812
11813} # as_fn_mkdir_p
11814if mkdir -p . 2>/dev/null; then
11815  as_mkdir_p='mkdir -p "$as_dir"'
11816else
11817  test -d ./-p && rmdir ./-p
11818  as_mkdir_p=false
11819fi
11820
11821
11822# as_fn_executable_p FILE
11823# -----------------------
11824# Test if FILE is an executable regular file.
11825as_fn_executable_p ()
11826{
11827  test -f "$1" && test -x "$1"
11828} # as_fn_executable_p
11829as_test_x='test -x'
11830as_executable_p=as_fn_executable_p
11831
11832# Sed expression to map a string onto a valid CPP name.
11833as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11834
11835# Sed expression to map a string onto a valid variable name.
11836as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11837
11838
11839exec 6>&1
11840## ----------------------------------- ##
11841## Main body of $CONFIG_STATUS script. ##
11842## ----------------------------------- ##
11843_ASEOF
11844test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11845
11846cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11847# Save the log message, to keep $0 and so on meaningful, and to
11848# report actual input values of CONFIG_FILES etc. instead of their
11849# values after options handling.
11850ac_log="
11851This file was extended by xev $as_me 1.2.5, which was
11852generated by GNU Autoconf 2.71.  Invocation command line was
11853
11854  CONFIG_FILES    = $CONFIG_FILES
11855  CONFIG_HEADERS  = $CONFIG_HEADERS
11856  CONFIG_LINKS    = $CONFIG_LINKS
11857  CONFIG_COMMANDS = $CONFIG_COMMANDS
11858  $ $0 $@
11859
11860on `(hostname || uname -n) 2>/dev/null | sed 1q`
11861"
11862
11863_ACEOF
11864
11865case $ac_config_files in *"
11866"*) set x $ac_config_files; shift; ac_config_files=$*;;
11867esac
11868
11869case $ac_config_headers in *"
11870"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11871esac
11872
11873
11874cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11875# Files that config.status was made for.
11876config_files="$ac_config_files"
11877config_headers="$ac_config_headers"
11878config_commands="$ac_config_commands"
11879
11880_ACEOF
11881
11882cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11883ac_cs_usage="\
11884\`$as_me' instantiates files and other configuration actions
11885from templates according to the current configuration.  Unless the files
11886and actions are specified as TAGs, all are instantiated by default.
11887
11888Usage: $0 [OPTION]... [TAG]...
11889
11890  -h, --help       print this help, then exit
11891  -V, --version    print version number and configuration settings, then exit
11892      --config     print configuration, then exit
11893  -q, --quiet, --silent
11894                   do not print progress messages
11895  -d, --debug      don't remove temporary files
11896      --recheck    update $as_me by reconfiguring in the same conditions
11897      --file=FILE[:TEMPLATE]
11898                   instantiate the configuration file FILE
11899      --header=FILE[:TEMPLATE]
11900                   instantiate the configuration header FILE
11901
11902Configuration files:
11903$config_files
11904
11905Configuration headers:
11906$config_headers
11907
11908Configuration commands:
11909$config_commands
11910
11911Report bugs to <https://gitlab.freedesktop.org/xorg/app/xev/issues>."
11912
11913_ACEOF
11914ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
11915ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
11916cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11917ac_cs_config='$ac_cs_config_escaped'
11918ac_cs_version="\\
11919xev config.status 1.2.5
11920configured by $0, generated by GNU Autoconf 2.71,
11921  with options \\"\$ac_cs_config\\"
11922
11923Copyright (C) 2021 Free Software Foundation, Inc.
11924This config.status script is free software; the Free Software Foundation
11925gives unlimited permission to copy, distribute and modify it."
11926
11927ac_pwd='$ac_pwd'
11928srcdir='$srcdir'
11929INSTALL='$INSTALL'
11930MKDIR_P='$MKDIR_P'
11931AWK='$AWK'
11932test -n "\$AWK" || AWK=awk
11933_ACEOF
11934
11935cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11936# The default lists apply if the user does not specify any file.
11937ac_need_defaults=:
11938while test $# != 0
11939do
11940  case $1 in
11941  --*=?*)
11942    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11943    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11944    ac_shift=:
11945    ;;
11946  --*=)
11947    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11948    ac_optarg=
11949    ac_shift=:
11950    ;;
11951  *)
11952    ac_option=$1
11953    ac_optarg=$2
11954    ac_shift=shift
11955    ;;
11956  esac
11957
11958  case $ac_option in
11959  # Handling of the options.
11960  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11961    ac_cs_recheck=: ;;
11962  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11963    printf "%s\n" "$ac_cs_version"; exit ;;
11964  --config | --confi | --conf | --con | --co | --c )
11965    printf "%s\n" "$ac_cs_config"; exit ;;
11966  --debug | --debu | --deb | --de | --d | -d )
11967    debug=: ;;
11968  --file | --fil | --fi | --f )
11969    $ac_shift
11970    case $ac_optarg in
11971    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11972    '') as_fn_error $? "missing file argument" ;;
11973    esac
11974    as_fn_append CONFIG_FILES " '$ac_optarg'"
11975    ac_need_defaults=false;;
11976  --header | --heade | --head | --hea )
11977    $ac_shift
11978    case $ac_optarg in
11979    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11980    esac
11981    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11982    ac_need_defaults=false;;
11983  --he | --h)
11984    # Conflict between --help and --header
11985    as_fn_error $? "ambiguous option: \`$1'
11986Try \`$0 --help' for more information.";;
11987  --help | --hel | -h )
11988    printf "%s\n" "$ac_cs_usage"; exit ;;
11989  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11990  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11991    ac_cs_silent=: ;;
11992
11993  # This is an error.
11994  -*) as_fn_error $? "unrecognized option: \`$1'
11995Try \`$0 --help' for more information." ;;
11996
11997  *) as_fn_append ac_config_targets " $1"
11998     ac_need_defaults=false ;;
11999
12000  esac
12001  shift
12002done
12003
12004ac_configure_extra_args=
12005
12006if $ac_cs_silent; then
12007  exec 6>/dev/null
12008  ac_configure_extra_args="$ac_configure_extra_args --silent"
12009fi
12010
12011_ACEOF
12012cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12013if \$ac_cs_recheck; then
12014  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12015  shift
12016  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12017  CONFIG_SHELL='$SHELL'
12018  export CONFIG_SHELL
12019  exec "\$@"
12020fi
12021
12022_ACEOF
12023cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12024exec 5>>config.log
12025{
12026  echo
12027  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12028## Running $as_me. ##
12029_ASBOX
12030  printf "%s\n" "$ac_log"
12031} >&5
12032
12033_ACEOF
12034cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12035#
12036# INIT-COMMANDS
12037#
12038AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12039
12040_ACEOF
12041
12042cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12043
12044# Handling of arguments.
12045for ac_config_target in $ac_config_targets
12046do
12047  case $ac_config_target in
12048    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12049    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12050    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12051    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12052
12053  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12054  esac
12055done
12056
12057
12058# If the user did not use the arguments to specify the items to instantiate,
12059# then the envvar interface is used.  Set only those that are not.
12060# We use the long form for the default assignment because of an extremely
12061# bizarre bug on SunOS 4.1.3.
12062if $ac_need_defaults; then
12063  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12064  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12065  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12066fi
12067
12068# Have a temporary directory for convenience.  Make it in the build tree
12069# simply because there is no reason against having it here, and in addition,
12070# creating and moving files from /tmp can sometimes cause problems.
12071# Hook for its removal unless debugging.
12072# Note that there is a small window in which the directory will not be cleaned:
12073# after its creation but before its name has been assigned to `$tmp'.
12074$debug ||
12075{
12076  tmp= ac_tmp=
12077  trap 'exit_status=$?
12078  : "${ac_tmp:=$tmp}"
12079  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12080' 0
12081  trap 'as_fn_exit 1' 1 2 13 15
12082}
12083# Create a (secure) tmp directory for tmp files.
12084
12085{
12086  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12087  test -d "$tmp"
12088}  ||
12089{
12090  tmp=./conf$$-$RANDOM
12091  (umask 077 && mkdir "$tmp")
12092} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12093ac_tmp=$tmp
12094
12095# Set up the scripts for CONFIG_FILES section.
12096# No need to generate them if there are no CONFIG_FILES.
12097# This happens for instance with `./config.status config.h'.
12098if test -n "$CONFIG_FILES"; then
12099
12100
12101ac_cr=`echo X | tr X '\015'`
12102# On cygwin, bash can eat \r inside `` if the user requested igncr.
12103# But we know of no other shell where ac_cr would be empty at this
12104# point, so we can use a bashism as a fallback.
12105if test "x$ac_cr" = x; then
12106  eval ac_cr=\$\'\\r\'
12107fi
12108ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12109if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12110  ac_cs_awk_cr='\\r'
12111else
12112  ac_cs_awk_cr=$ac_cr
12113fi
12114
12115echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12116_ACEOF
12117
12118
12119{
12120  echo "cat >conf$$subs.awk <<_ACEOF" &&
12121  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12122  echo "_ACEOF"
12123} >conf$$subs.sh ||
12124  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12125ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12126ac_delim='%!_!# '
12127for ac_last_try in false false false false false :; do
12128  . ./conf$$subs.sh ||
12129    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12130
12131  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12132  if test $ac_delim_n = $ac_delim_num; then
12133    break
12134  elif $ac_last_try; then
12135    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12136  else
12137    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12138  fi
12139done
12140rm -f conf$$subs.sh
12141
12142cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12143cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12144_ACEOF
12145sed -n '
12146h
12147s/^/S["/; s/!.*/"]=/
12148p
12149g
12150s/^[^!]*!//
12151:repl
12152t repl
12153s/'"$ac_delim"'$//
12154t delim
12155:nl
12156h
12157s/\(.\{148\}\)..*/\1/
12158t more1
12159s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12160p
12161n
12162b repl
12163:more1
12164s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12165p
12166g
12167s/.\{148\}//
12168t nl
12169:delim
12170h
12171s/\(.\{148\}\)..*/\1/
12172t more2
12173s/["\\]/\\&/g; s/^/"/; s/$/"/
12174p
12175b
12176:more2
12177s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12178p
12179g
12180s/.\{148\}//
12181t delim
12182' <conf$$subs.awk | sed '
12183/^[^""]/{
12184  N
12185  s/\n//
12186}
12187' >>$CONFIG_STATUS || ac_write_fail=1
12188rm -f conf$$subs.awk
12189cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12190_ACAWK
12191cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12192  for (key in S) S_is_set[key] = 1
12193  FS = ""
12194
12195}
12196{
12197  line = $ 0
12198  nfields = split(line, field, "@")
12199  substed = 0
12200  len = length(field[1])
12201  for (i = 2; i < nfields; i++) {
12202    key = field[i]
12203    keylen = length(key)
12204    if (S_is_set[key]) {
12205      value = S[key]
12206      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12207      len += length(value) + length(field[++i])
12208      substed = 1
12209    } else
12210      len += 1 + keylen
12211  }
12212
12213  print line
12214}
12215
12216_ACAWK
12217_ACEOF
12218cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12219if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12220  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12221else
12222  cat
12223fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12224  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12225_ACEOF
12226
12227# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12228# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12229# trailing colons and then remove the whole line if VPATH becomes empty
12230# (actually we leave an empty line to preserve line numbers).
12231if test "x$srcdir" = x.; then
12232  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12233h
12234s///
12235s/^/:/
12236s/[	 ]*$/:/
12237s/:\$(srcdir):/:/g
12238s/:\${srcdir}:/:/g
12239s/:@srcdir@:/:/g
12240s/^:*//
12241s/:*$//
12242x
12243s/\(=[	 ]*\).*/\1/
12244G
12245s/\n//
12246s/^[^=]*=[	 ]*$//
12247}'
12248fi
12249
12250cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12251fi # test -n "$CONFIG_FILES"
12252
12253# Set up the scripts for CONFIG_HEADERS section.
12254# No need to generate them if there are no CONFIG_HEADERS.
12255# This happens for instance with `./config.status Makefile'.
12256if test -n "$CONFIG_HEADERS"; then
12257cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12258BEGIN {
12259_ACEOF
12260
12261# Transform confdefs.h into an awk script `defines.awk', embedded as
12262# here-document in config.status, that substitutes the proper values into
12263# config.h.in to produce config.h.
12264
12265# Create a delimiter string that does not exist in confdefs.h, to ease
12266# handling of long lines.
12267ac_delim='%!_!# '
12268for ac_last_try in false false :; do
12269  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12270  if test -z "$ac_tt"; then
12271    break
12272  elif $ac_last_try; then
12273    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12274  else
12275    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12276  fi
12277done
12278
12279# For the awk script, D is an array of macro values keyed by name,
12280# likewise P contains macro parameters if any.  Preserve backslash
12281# newline sequences.
12282
12283ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12284sed -n '
12285s/.\{148\}/&'"$ac_delim"'/g
12286t rset
12287:rset
12288s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12289t def
12290d
12291:def
12292s/\\$//
12293t bsnl
12294s/["\\]/\\&/g
12295s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12296D["\1"]=" \3"/p
12297s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12298d
12299:bsnl
12300s/["\\]/\\&/g
12301s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12302D["\1"]=" \3\\\\\\n"\\/p
12303t cont
12304s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12305t cont
12306d
12307:cont
12308n
12309s/.\{148\}/&'"$ac_delim"'/g
12310t clear
12311:clear
12312s/\\$//
12313t bsnlc
12314s/["\\]/\\&/g; s/^/"/; s/$/"/p
12315d
12316:bsnlc
12317s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12318b cont
12319' <confdefs.h | sed '
12320s/'"$ac_delim"'/"\\\
12321"/g' >>$CONFIG_STATUS || ac_write_fail=1
12322
12323cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12324  for (key in D) D_is_set[key] = 1
12325  FS = ""
12326}
12327/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12328  line = \$ 0
12329  split(line, arg, " ")
12330  if (arg[1] == "#") {
12331    defundef = arg[2]
12332    mac1 = arg[3]
12333  } else {
12334    defundef = substr(arg[1], 2)
12335    mac1 = arg[2]
12336  }
12337  split(mac1, mac2, "(") #)
12338  macro = mac2[1]
12339  prefix = substr(line, 1, index(line, defundef) - 1)
12340  if (D_is_set[macro]) {
12341    # Preserve the white space surrounding the "#".
12342    print prefix "define", macro P[macro] D[macro]
12343    next
12344  } else {
12345    # Replace #undef with comments.  This is necessary, for example,
12346    # in the case of _POSIX_SOURCE, which is predefined and required
12347    # on some systems where configure will not decide to define it.
12348    if (defundef == "undef") {
12349      print "/*", prefix defundef, macro, "*/"
12350      next
12351    }
12352  }
12353}
12354{ print }
12355_ACAWK
12356_ACEOF
12357cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12358  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12359fi # test -n "$CONFIG_HEADERS"
12360
12361
12362eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12363shift
12364for ac_tag
12365do
12366  case $ac_tag in
12367  :[FHLC]) ac_mode=$ac_tag; continue;;
12368  esac
12369  case $ac_mode$ac_tag in
12370  :[FHL]*:*);;
12371  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12372  :[FH]-) ac_tag=-:-;;
12373  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12374  esac
12375  ac_save_IFS=$IFS
12376  IFS=:
12377  set x $ac_tag
12378  IFS=$ac_save_IFS
12379  shift
12380  ac_file=$1
12381  shift
12382
12383  case $ac_mode in
12384  :L) ac_source=$1;;
12385  :[FH])
12386    ac_file_inputs=
12387    for ac_f
12388    do
12389      case $ac_f in
12390      -) ac_f="$ac_tmp/stdin";;
12391      *) # Look for the file first in the build tree, then in the source tree
12392	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12393	 # because $ac_f cannot contain `:'.
12394	 test -f "$ac_f" ||
12395	   case $ac_f in
12396	   [\\/$]*) false;;
12397	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12398	   esac ||
12399	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12400      esac
12401      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12402      as_fn_append ac_file_inputs " '$ac_f'"
12403    done
12404
12405    # Let's still pretend it is `configure' which instantiates (i.e., don't
12406    # use $as_me), people would be surprised to read:
12407    #    /* config.h.  Generated by config.status.  */
12408    configure_input='Generated from '`
12409	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12410	`' by configure.'
12411    if test x"$ac_file" != x-; then
12412      configure_input="$ac_file.  $configure_input"
12413      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12414printf "%s\n" "$as_me: creating $ac_file" >&6;}
12415    fi
12416    # Neutralize special characters interpreted by sed in replacement strings.
12417    case $configure_input in #(
12418    *\&* | *\|* | *\\* )
12419       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12420       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12421    *) ac_sed_conf_input=$configure_input;;
12422    esac
12423
12424    case $ac_tag in
12425    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12426      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12427    esac
12428    ;;
12429  esac
12430
12431  ac_dir=`$as_dirname -- "$ac_file" ||
12432$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12433	 X"$ac_file" : 'X\(//\)[^/]' \| \
12434	 X"$ac_file" : 'X\(//\)$' \| \
12435	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12436printf "%s\n" X"$ac_file" |
12437    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12438	    s//\1/
12439	    q
12440	  }
12441	  /^X\(\/\/\)[^/].*/{
12442	    s//\1/
12443	    q
12444	  }
12445	  /^X\(\/\/\)$/{
12446	    s//\1/
12447	    q
12448	  }
12449	  /^X\(\/\).*/{
12450	    s//\1/
12451	    q
12452	  }
12453	  s/.*/./; q'`
12454  as_dir="$ac_dir"; as_fn_mkdir_p
12455  ac_builddir=.
12456
12457case "$ac_dir" in
12458.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12459*)
12460  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12461  # A ".." for each directory in $ac_dir_suffix.
12462  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12463  case $ac_top_builddir_sub in
12464  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12465  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12466  esac ;;
12467esac
12468ac_abs_top_builddir=$ac_pwd
12469ac_abs_builddir=$ac_pwd$ac_dir_suffix
12470# for backward compatibility:
12471ac_top_builddir=$ac_top_build_prefix
12472
12473case $srcdir in
12474  .)  # We are building in place.
12475    ac_srcdir=.
12476    ac_top_srcdir=$ac_top_builddir_sub
12477    ac_abs_top_srcdir=$ac_pwd ;;
12478  [\\/]* | ?:[\\/]* )  # Absolute name.
12479    ac_srcdir=$srcdir$ac_dir_suffix;
12480    ac_top_srcdir=$srcdir
12481    ac_abs_top_srcdir=$srcdir ;;
12482  *) # Relative name.
12483    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12484    ac_top_srcdir=$ac_top_build_prefix$srcdir
12485    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12486esac
12487ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12488
12489
12490  case $ac_mode in
12491  :F)
12492  #
12493  # CONFIG_FILE
12494  #
12495
12496  case $INSTALL in
12497  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12498  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12499  esac
12500  ac_MKDIR_P=$MKDIR_P
12501  case $MKDIR_P in
12502  [\\/$]* | ?:[\\/]* ) ;;
12503  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12504  esac
12505_ACEOF
12506
12507cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12508# If the template does not know about datarootdir, expand it.
12509# FIXME: This hack should be removed a few years after 2.60.
12510ac_datarootdir_hack=; ac_datarootdir_seen=
12511ac_sed_dataroot='
12512/datarootdir/ {
12513  p
12514  q
12515}
12516/@datadir@/p
12517/@docdir@/p
12518/@infodir@/p
12519/@localedir@/p
12520/@mandir@/p'
12521case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12522*datarootdir*) ac_datarootdir_seen=yes;;
12523*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12524  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12525printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12526_ACEOF
12527cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12528  ac_datarootdir_hack='
12529  s&@datadir@&$datadir&g
12530  s&@docdir@&$docdir&g
12531  s&@infodir@&$infodir&g
12532  s&@localedir@&$localedir&g
12533  s&@mandir@&$mandir&g
12534  s&\\\${datarootdir}&$datarootdir&g' ;;
12535esac
12536_ACEOF
12537
12538# Neutralize VPATH when `$srcdir' = `.'.
12539# Shell code in configure.ac might set extrasub.
12540# FIXME: do we really want to maintain this feature?
12541cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12542ac_sed_extra="$ac_vpsub
12543$extrasub
12544_ACEOF
12545cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12546:t
12547/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12548s|@configure_input@|$ac_sed_conf_input|;t t
12549s&@top_builddir@&$ac_top_builddir_sub&;t t
12550s&@top_build_prefix@&$ac_top_build_prefix&;t t
12551s&@srcdir@&$ac_srcdir&;t t
12552s&@abs_srcdir@&$ac_abs_srcdir&;t t
12553s&@top_srcdir@&$ac_top_srcdir&;t t
12554s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12555s&@builddir@&$ac_builddir&;t t
12556s&@abs_builddir@&$ac_abs_builddir&;t t
12557s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12558s&@INSTALL@&$ac_INSTALL&;t t
12559s&@MKDIR_P@&$ac_MKDIR_P&;t t
12560$ac_datarootdir_hack
12561"
12562eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12563  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12564
12565test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12566  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12567  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12568      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12569  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12570which seems to be undefined.  Please make sure it is defined" >&5
12571printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12572which seems to be undefined.  Please make sure it is defined" >&2;}
12573
12574  rm -f "$ac_tmp/stdin"
12575  case $ac_file in
12576  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12577  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12578  esac \
12579  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12580 ;;
12581  :H)
12582  #
12583  # CONFIG_HEADER
12584  #
12585  if test x"$ac_file" != x-; then
12586    {
12587      printf "%s\n" "/* $configure_input  */" >&1 \
12588      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12589    } >"$ac_tmp/config.h" \
12590      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12591    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12592      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12593printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12594    else
12595      rm -f "$ac_file"
12596      mv "$ac_tmp/config.h" "$ac_file" \
12597	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12598    fi
12599  else
12600    printf "%s\n" "/* $configure_input  */" >&1 \
12601      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12602      || as_fn_error $? "could not create -" "$LINENO" 5
12603  fi
12604# Compute "$ac_file"'s index in $config_headers.
12605_am_arg="$ac_file"
12606_am_stamp_count=1
12607for _am_header in $config_headers :; do
12608  case $_am_header in
12609    $_am_arg | $_am_arg:* )
12610      break ;;
12611    * )
12612      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12613  esac
12614done
12615echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12616$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12617	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12618	 X"$_am_arg" : 'X\(//\)$' \| \
12619	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12620printf "%s\n" X"$_am_arg" |
12621    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12622	    s//\1/
12623	    q
12624	  }
12625	  /^X\(\/\/\)[^/].*/{
12626	    s//\1/
12627	    q
12628	  }
12629	  /^X\(\/\/\)$/{
12630	    s//\1/
12631	    q
12632	  }
12633	  /^X\(\/\).*/{
12634	    s//\1/
12635	    q
12636	  }
12637	  s/.*/./; q'`/stamp-h$_am_stamp_count
12638 ;;
12639
12640  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12641printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12642 ;;
12643  esac
12644
12645
12646  case $ac_file$ac_mode in
12647    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12648  # Older Autoconf quotes --file arguments for eval, but not when files
12649  # are listed without --file.  Let's play safe and only enable the eval
12650  # if we detect the quoting.
12651  # TODO: see whether this extra hack can be removed once we start
12652  # requiring Autoconf 2.70 or later.
12653  case $CONFIG_FILES in #(
12654  *\'*) :
12655    eval set x "$CONFIG_FILES" ;; #(
12656  *) :
12657    set x $CONFIG_FILES ;; #(
12658  *) :
12659     ;;
12660esac
12661  shift
12662  # Used to flag and report bootstrapping failures.
12663  am_rc=0
12664  for am_mf
12665  do
12666    # Strip MF so we end up with the name of the file.
12667    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12668    # Check whether this is an Automake generated Makefile which includes
12669    # dependency-tracking related rules and includes.
12670    # Grep'ing the whole file directly is not great: AIX grep has a line
12671    # limit of 2048, but all sed's we know have understand at least 4000.
12672    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12673      || continue
12674    am_dirpart=`$as_dirname -- "$am_mf" ||
12675$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12676	 X"$am_mf" : 'X\(//\)[^/]' \| \
12677	 X"$am_mf" : 'X\(//\)$' \| \
12678	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12679printf "%s\n" X"$am_mf" |
12680    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12681	    s//\1/
12682	    q
12683	  }
12684	  /^X\(\/\/\)[^/].*/{
12685	    s//\1/
12686	    q
12687	  }
12688	  /^X\(\/\/\)$/{
12689	    s//\1/
12690	    q
12691	  }
12692	  /^X\(\/\).*/{
12693	    s//\1/
12694	    q
12695	  }
12696	  s/.*/./; q'`
12697    am_filepart=`$as_basename -- "$am_mf" ||
12698$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12699	 X"$am_mf" : 'X\(//\)$' \| \
12700	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12701printf "%s\n" X/"$am_mf" |
12702    sed '/^.*\/\([^/][^/]*\)\/*$/{
12703	    s//\1/
12704	    q
12705	  }
12706	  /^X\/\(\/\/\)$/{
12707	    s//\1/
12708	    q
12709	  }
12710	  /^X\/\(\/\).*/{
12711	    s//\1/
12712	    q
12713	  }
12714	  s/.*/./; q'`
12715    { echo "$as_me:$LINENO: cd "$am_dirpart" \
12716      && sed -e '/# am--include-marker/d' "$am_filepart" \
12717        | $MAKE -f - am--depfiles" >&5
12718   (cd "$am_dirpart" \
12719      && sed -e '/# am--include-marker/d' "$am_filepart" \
12720        | $MAKE -f - am--depfiles) >&5 2>&5
12721   ac_status=$?
12722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723   (exit $ac_status); } || am_rc=$?
12724  done
12725  if test $am_rc -ne 0; then
12726    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12727printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12728as_fn_error $? "Something went wrong bootstrapping makefile fragments
12729    for automatic dependency tracking.  If GNU make was not used, consider
12730    re-running the configure script with MAKE=\"gmake\" (or whatever is
12731    necessary).  You can also try re-running configure with the
12732    '--disable-dependency-tracking' option to at least be able to build
12733    the package (albeit without support for automatic dependency tracking).
12734See \`config.log' for more details" "$LINENO" 5; }
12735  fi
12736  { am_dirpart=; unset am_dirpart;}
12737  { am_filepart=; unset am_filepart;}
12738  { am_mf=; unset am_mf;}
12739  { am_rc=; unset am_rc;}
12740  rm -f conftest-deps.mk
12741}
12742 ;;
12743
12744  esac
12745done # for ac_tag
12746
12747
12748as_fn_exit 0
12749_ACEOF
12750ac_clean_files=$ac_clean_files_save
12751
12752test $ac_write_fail = 0 ||
12753  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12754
12755
12756# configure is writing to config.log, and then calls config.status.
12757# config.status does its own redirection, appending to config.log.
12758# Unfortunately, on DOS this fails, as config.log is still kept open
12759# by configure, so config.status won't be able to write to it; its
12760# output is simply discarded.  So we exec the FD to /dev/null,
12761# effectively closing config.log, so it can be properly (re)opened and
12762# appended to by config.status.  When coming back to configure, we
12763# need to make the FD available again.
12764if test "$no_create" != yes; then
12765  ac_cs_success=:
12766  ac_config_status_args=
12767  test "$silent" = yes &&
12768    ac_config_status_args="$ac_config_status_args --quiet"
12769  exec 5>/dev/null
12770  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12771  exec 5>>config.log
12772  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12773  # would make configure fail if this is the last instruction.
12774  $ac_cs_success || as_fn_exit 1
12775fi
12776if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12777  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12778printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12779fi
12780
12781
12782