configure revision d67195da
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for xdpyinfo 1.3.3.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xdpyinfo/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/xdpyinfo/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='xdpyinfo'
614PACKAGE_TARNAME='xdpyinfo'
615PACKAGE_VERSION='1.3.3'
616PACKAGE_STRING='xdpyinfo 1.3.3'
617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xdpyinfo/issues'
618PACKAGE_URL=''
619
620ac_unique_file="Makefile.am"
621# Factoring default headers for most tests.
622ac_includes_default="\
623#include <stddef.h>
624#ifdef HAVE_STDIO_H
625# include <stdio.h>
626#endif
627#ifdef HAVE_STDLIB_H
628# include <stdlib.h>
629#endif
630#ifdef HAVE_STRING_H
631# include <string.h>
632#endif
633#ifdef HAVE_INTTYPES_H
634# include <inttypes.h>
635#endif
636#ifdef HAVE_STDINT_H
637# include <stdint.h>
638#endif
639#ifdef HAVE_STRINGS_H
640# include <strings.h>
641#endif
642#ifdef HAVE_SYS_TYPES_H
643# include <sys/types.h>
644#endif
645#ifdef HAVE_SYS_STAT_H
646# include <sys/stat.h>
647#endif
648#ifdef HAVE_UNISTD_H
649# include <unistd.h>
650#endif"
651
652ac_header_c_list=
653ac_subst_vars='am__EXEEXT_FALSE
654am__EXEEXT_TRUE
655LTLIBOBJS
656LIBOBJS
657LINT_FALSE
658LINT_TRUE
659LINT_FLAGS
660LINT
661DPY_XTST_LIBS
662DPY_XTST_CFLAGS
663DPY_DMX_LIBS
664DPY_DMX_CFLAGS
665DPY_XINERAMA_LIBS
666DPY_XINERAMA_CFLAGS
667DPY_XCOMPOSITE_LIBS
668DPY_XCOMPOSITE_CFLAGS
669DPY_XRENDER_LIBS
670DPY_XRENDER_CFLAGS
671DPY_XINPUT_LIBS
672DPY_XINPUT_CFLAGS
673DPY_XF86MISC_LIBS
674DPY_XF86MISC_CFLAGS
675DPY_XF86DGA_LIBS
676DPY_XF86DGA_CFLAGS
677DPY_XF86VIDMODE_LIBS
678DPY_XF86VIDMODE_CFLAGS
679DPY_XKB_LIBS
680DPY_XKB_CFLAGS
681DPY_XEXT_LIBS
682DPY_XEXT_CFLAGS
683DPY_X11_LIBS
684DPY_X11_CFLAGS
685XDPYINFO_LIBS
686XDPYINFO_CFLAGS
687MAN_SUBSTS
688XORG_MAN_PAGE
689ADMIN_MAN_DIR
690DRIVER_MAN_DIR
691MISC_MAN_DIR
692FILE_MAN_DIR
693LIB_MAN_DIR
694APP_MAN_DIR
695ADMIN_MAN_SUFFIX
696DRIVER_MAN_SUFFIX
697MISC_MAN_SUFFIX
698FILE_MAN_SUFFIX
699LIB_MAN_SUFFIX
700APP_MAN_SUFFIX
701SED
702host_os
703host_vendor
704host_cpu
705host
706build_os
707build_vendor
708build_cpu
709build
710INSTALL_CMD
711PKG_CONFIG_LIBDIR
712PKG_CONFIG_PATH
713PKG_CONFIG
714CHANGELOG_CMD
715STRICT_CFLAGS
716CWARNFLAGS
717BASE_CFLAGS
718am__fastdepCC_FALSE
719am__fastdepCC_TRUE
720CCDEPMODE
721am__nodep
722AMDEPBACKSLASH
723AMDEP_FALSE
724AMDEP_TRUE
725am__include
726DEPDIR
727OBJEXT
728EXEEXT
729ac_ct_CC
730CPPFLAGS
731LDFLAGS
732CFLAGS
733CC
734AM_BACKSLASH
735AM_DEFAULT_VERBOSITY
736AM_DEFAULT_V
737AM_V
738CSCOPE
739ETAGS
740CTAGS
741am__untar
742am__tar
743AMTAR
744am__leading_dot
745SET_MAKE
746AWK
747mkdir_p
748MKDIR_P
749INSTALL_STRIP_PROGRAM
750STRIP
751install_sh
752MAKEINFO
753AUTOHEADER
754AUTOMAKE
755AUTOCONF
756ACLOCAL
757VERSION
758PACKAGE
759CYGPATH_W
760am__isrc
761INSTALL_DATA
762INSTALL_SCRIPT
763INSTALL_PROGRAM
764target_alias
765host_alias
766build_alias
767LIBS
768ECHO_T
769ECHO_N
770ECHO_C
771DEFS
772mandir
773localedir
774libdir
775psdir
776pdfdir
777dvidir
778htmldir
779infodir
780docdir
781oldincludedir
782includedir
783runstatedir
784localstatedir
785sharedstatedir
786sysconfdir
787datadir
788datarootdir
789libexecdir
790sbindir
791bindir
792program_transform_name
793prefix
794exec_prefix
795PACKAGE_URL
796PACKAGE_BUGREPORT
797PACKAGE_STRING
798PACKAGE_VERSION
799PACKAGE_TARNAME
800PACKAGE_NAME
801PATH_SEPARATOR
802SHELL
803am__quote'
804ac_subst_files=''
805ac_user_opts='
806enable_option_checking
807enable_silent_rules
808enable_dependency_tracking
809enable_selective_werror
810enable_strict_compilation
811with_dga
812with_xf86misc
813with_xinerama
814with_dmx
815with_lint
816'
817      ac_precious_vars='build_alias
818host_alias
819target_alias
820CC
821CFLAGS
822LDFLAGS
823LIBS
824CPPFLAGS
825PKG_CONFIG
826PKG_CONFIG_PATH
827PKG_CONFIG_LIBDIR
828XDPYINFO_CFLAGS
829XDPYINFO_LIBS
830DPY_X11_CFLAGS
831DPY_X11_LIBS
832DPY_XEXT_CFLAGS
833DPY_XEXT_LIBS
834DPY_XKB_CFLAGS
835DPY_XKB_LIBS
836DPY_XF86VIDMODE_CFLAGS
837DPY_XF86VIDMODE_LIBS
838DPY_XF86DGA_CFLAGS
839DPY_XF86DGA_LIBS
840DPY_XF86MISC_CFLAGS
841DPY_XF86MISC_LIBS
842DPY_XINPUT_CFLAGS
843DPY_XINPUT_LIBS
844DPY_XRENDER_CFLAGS
845DPY_XRENDER_LIBS
846DPY_XCOMPOSITE_CFLAGS
847DPY_XCOMPOSITE_LIBS
848DPY_XINERAMA_CFLAGS
849DPY_XINERAMA_LIBS
850DPY_DMX_CFLAGS
851DPY_DMX_LIBS
852DPY_XTST_CFLAGS
853DPY_XTST_LIBS
854LINT
855LINT_FLAGS'
856
857
858# Initialize some variables set by options.
859ac_init_help=
860ac_init_version=false
861ac_unrecognized_opts=
862ac_unrecognized_sep=
863# The variables have the same names as the options, with
864# dashes changed to underlines.
865cache_file=/dev/null
866exec_prefix=NONE
867no_create=
868no_recursion=
869prefix=NONE
870program_prefix=NONE
871program_suffix=NONE
872program_transform_name=s,x,x,
873silent=
874site=
875srcdir=
876verbose=
877x_includes=NONE
878x_libraries=NONE
879
880# Installation directory options.
881# These are left unexpanded so users can "make install exec_prefix=/foo"
882# and all the variables that are supposed to be based on exec_prefix
883# by default will actually change.
884# Use braces instead of parens because sh, perl, etc. also accept them.
885# (The list follows the same order as the GNU Coding Standards.)
886bindir='${exec_prefix}/bin'
887sbindir='${exec_prefix}/sbin'
888libexecdir='${exec_prefix}/libexec'
889datarootdir='${prefix}/share'
890datadir='${datarootdir}'
891sysconfdir='${prefix}/etc'
892sharedstatedir='${prefix}/com'
893localstatedir='${prefix}/var'
894runstatedir='${localstatedir}/run'
895includedir='${prefix}/include'
896oldincludedir='/usr/include'
897docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
898infodir='${datarootdir}/info'
899htmldir='${docdir}'
900dvidir='${docdir}'
901pdfdir='${docdir}'
902psdir='${docdir}'
903libdir='${exec_prefix}/lib'
904localedir='${datarootdir}/locale'
905mandir='${datarootdir}/man'
906
907ac_prev=
908ac_dashdash=
909for ac_option
910do
911  # If the previous option needs an argument, assign it.
912  if test -n "$ac_prev"; then
913    eval $ac_prev=\$ac_option
914    ac_prev=
915    continue
916  fi
917
918  case $ac_option in
919  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
920  *=)   ac_optarg= ;;
921  *)    ac_optarg=yes ;;
922  esac
923
924  case $ac_dashdash$ac_option in
925  --)
926    ac_dashdash=yes ;;
927
928  -bindir | --bindir | --bindi | --bind | --bin | --bi)
929    ac_prev=bindir ;;
930  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
931    bindir=$ac_optarg ;;
932
933  -build | --build | --buil | --bui | --bu)
934    ac_prev=build_alias ;;
935  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
936    build_alias=$ac_optarg ;;
937
938  -cache-file | --cache-file | --cache-fil | --cache-fi \
939  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
940    ac_prev=cache_file ;;
941  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
942  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
943    cache_file=$ac_optarg ;;
944
945  --config-cache | -C)
946    cache_file=config.cache ;;
947
948  -datadir | --datadir | --datadi | --datad)
949    ac_prev=datadir ;;
950  -datadir=* | --datadir=* | --datadi=* | --datad=*)
951    datadir=$ac_optarg ;;
952
953  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
954  | --dataroo | --dataro | --datar)
955    ac_prev=datarootdir ;;
956  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
957  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
958    datarootdir=$ac_optarg ;;
959
960  -disable-* | --disable-*)
961    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
962    # Reject names that are not valid shell variable names.
963    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964      as_fn_error $? "invalid feature name: \`$ac_useropt'"
965    ac_useropt_orig=$ac_useropt
966    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
967    case $ac_user_opts in
968      *"
969"enable_$ac_useropt"
970"*) ;;
971      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
972	 ac_unrecognized_sep=', ';;
973    esac
974    eval enable_$ac_useropt=no ;;
975
976  -docdir | --docdir | --docdi | --doc | --do)
977    ac_prev=docdir ;;
978  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
979    docdir=$ac_optarg ;;
980
981  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
982    ac_prev=dvidir ;;
983  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
984    dvidir=$ac_optarg ;;
985
986  -enable-* | --enable-*)
987    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
988    # Reject names that are not valid shell variable names.
989    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
990      as_fn_error $? "invalid feature name: \`$ac_useropt'"
991    ac_useropt_orig=$ac_useropt
992    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
993    case $ac_user_opts in
994      *"
995"enable_$ac_useropt"
996"*) ;;
997      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
998	 ac_unrecognized_sep=', ';;
999    esac
1000    eval enable_$ac_useropt=\$ac_optarg ;;
1001
1002  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1003  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1004  | --exec | --exe | --ex)
1005    ac_prev=exec_prefix ;;
1006  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1007  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1008  | --exec=* | --exe=* | --ex=*)
1009    exec_prefix=$ac_optarg ;;
1010
1011  -gas | --gas | --ga | --g)
1012    # Obsolete; use --with-gas.
1013    with_gas=yes ;;
1014
1015  -help | --help | --hel | --he | -h)
1016    ac_init_help=long ;;
1017  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1018    ac_init_help=recursive ;;
1019  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1020    ac_init_help=short ;;
1021
1022  -host | --host | --hos | --ho)
1023    ac_prev=host_alias ;;
1024  -host=* | --host=* | --hos=* | --ho=*)
1025    host_alias=$ac_optarg ;;
1026
1027  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1028    ac_prev=htmldir ;;
1029  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1030  | --ht=*)
1031    htmldir=$ac_optarg ;;
1032
1033  -includedir | --includedir | --includedi | --included | --include \
1034  | --includ | --inclu | --incl | --inc)
1035    ac_prev=includedir ;;
1036  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1037  | --includ=* | --inclu=* | --incl=* | --inc=*)
1038    includedir=$ac_optarg ;;
1039
1040  -infodir | --infodir | --infodi | --infod | --info | --inf)
1041    ac_prev=infodir ;;
1042  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1043    infodir=$ac_optarg ;;
1044
1045  -libdir | --libdir | --libdi | --libd)
1046    ac_prev=libdir ;;
1047  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1048    libdir=$ac_optarg ;;
1049
1050  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1051  | --libexe | --libex | --libe)
1052    ac_prev=libexecdir ;;
1053  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1054  | --libexe=* | --libex=* | --libe=*)
1055    libexecdir=$ac_optarg ;;
1056
1057  -localedir | --localedir | --localedi | --localed | --locale)
1058    ac_prev=localedir ;;
1059  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1060    localedir=$ac_optarg ;;
1061
1062  -localstatedir | --localstatedir | --localstatedi | --localstated \
1063  | --localstate | --localstat | --localsta | --localst | --locals)
1064    ac_prev=localstatedir ;;
1065  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1066  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1067    localstatedir=$ac_optarg ;;
1068
1069  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1070    ac_prev=mandir ;;
1071  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1072    mandir=$ac_optarg ;;
1073
1074  -nfp | --nfp | --nf)
1075    # Obsolete; use --without-fp.
1076    with_fp=no ;;
1077
1078  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1079  | --no-cr | --no-c | -n)
1080    no_create=yes ;;
1081
1082  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1083  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1084    no_recursion=yes ;;
1085
1086  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1087  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1088  | --oldin | --oldi | --old | --ol | --o)
1089    ac_prev=oldincludedir ;;
1090  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1091  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1092  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1093    oldincludedir=$ac_optarg ;;
1094
1095  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1096    ac_prev=prefix ;;
1097  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1098    prefix=$ac_optarg ;;
1099
1100  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1101  | --program-pre | --program-pr | --program-p)
1102    ac_prev=program_prefix ;;
1103  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1104  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1105    program_prefix=$ac_optarg ;;
1106
1107  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1108  | --program-suf | --program-su | --program-s)
1109    ac_prev=program_suffix ;;
1110  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1111  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1112    program_suffix=$ac_optarg ;;
1113
1114  -program-transform-name | --program-transform-name \
1115  | --program-transform-nam | --program-transform-na \
1116  | --program-transform-n | --program-transform- \
1117  | --program-transform | --program-transfor \
1118  | --program-transfo | --program-transf \
1119  | --program-trans | --program-tran \
1120  | --progr-tra | --program-tr | --program-t)
1121    ac_prev=program_transform_name ;;
1122  -program-transform-name=* | --program-transform-name=* \
1123  | --program-transform-nam=* | --program-transform-na=* \
1124  | --program-transform-n=* | --program-transform-=* \
1125  | --program-transform=* | --program-transfor=* \
1126  | --program-transfo=* | --program-transf=* \
1127  | --program-trans=* | --program-tran=* \
1128  | --progr-tra=* | --program-tr=* | --program-t=*)
1129    program_transform_name=$ac_optarg ;;
1130
1131  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1132    ac_prev=pdfdir ;;
1133  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1134    pdfdir=$ac_optarg ;;
1135
1136  -psdir | --psdir | --psdi | --psd | --ps)
1137    ac_prev=psdir ;;
1138  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1139    psdir=$ac_optarg ;;
1140
1141  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1142  | -silent | --silent | --silen | --sile | --sil)
1143    silent=yes ;;
1144
1145  -runstatedir | --runstatedir | --runstatedi | --runstated \
1146  | --runstate | --runstat | --runsta | --runst | --runs \
1147  | --run | --ru | --r)
1148    ac_prev=runstatedir ;;
1149  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1150  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1151  | --run=* | --ru=* | --r=*)
1152    runstatedir=$ac_optarg ;;
1153
1154  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1155    ac_prev=sbindir ;;
1156  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1157  | --sbi=* | --sb=*)
1158    sbindir=$ac_optarg ;;
1159
1160  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1161  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1162  | --sharedst | --shareds | --shared | --share | --shar \
1163  | --sha | --sh)
1164    ac_prev=sharedstatedir ;;
1165  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1166  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1167  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1168  | --sha=* | --sh=*)
1169    sharedstatedir=$ac_optarg ;;
1170
1171  -site | --site | --sit)
1172    ac_prev=site ;;
1173  -site=* | --site=* | --sit=*)
1174    site=$ac_optarg ;;
1175
1176  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1177    ac_prev=srcdir ;;
1178  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1179    srcdir=$ac_optarg ;;
1180
1181  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1182  | --syscon | --sysco | --sysc | --sys | --sy)
1183    ac_prev=sysconfdir ;;
1184  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1185  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1186    sysconfdir=$ac_optarg ;;
1187
1188  -target | --target | --targe | --targ | --tar | --ta | --t)
1189    ac_prev=target_alias ;;
1190  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1191    target_alias=$ac_optarg ;;
1192
1193  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1194    verbose=yes ;;
1195
1196  -version | --version | --versio | --versi | --vers | -V)
1197    ac_init_version=: ;;
1198
1199  -with-* | --with-*)
1200    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1201    # Reject names that are not valid shell variable names.
1202    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1203      as_fn_error $? "invalid package name: \`$ac_useropt'"
1204    ac_useropt_orig=$ac_useropt
1205    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1206    case $ac_user_opts in
1207      *"
1208"with_$ac_useropt"
1209"*) ;;
1210      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1211	 ac_unrecognized_sep=', ';;
1212    esac
1213    eval with_$ac_useropt=\$ac_optarg ;;
1214
1215  -without-* | --without-*)
1216    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1217    # Reject names that are not valid shell variable names.
1218    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1219      as_fn_error $? "invalid package name: \`$ac_useropt'"
1220    ac_useropt_orig=$ac_useropt
1221    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1222    case $ac_user_opts in
1223      *"
1224"with_$ac_useropt"
1225"*) ;;
1226      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1227	 ac_unrecognized_sep=', ';;
1228    esac
1229    eval with_$ac_useropt=no ;;
1230
1231  --x)
1232    # Obsolete; use --with-x.
1233    with_x=yes ;;
1234
1235  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236  | --x-incl | --x-inc | --x-in | --x-i)
1237    ac_prev=x_includes ;;
1238  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1240    x_includes=$ac_optarg ;;
1241
1242  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244    ac_prev=x_libraries ;;
1245  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1247    x_libraries=$ac_optarg ;;
1248
1249  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1250Try \`$0 --help' for more information"
1251    ;;
1252
1253  *=*)
1254    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1255    # Reject names that are not valid shell variable names.
1256    case $ac_envvar in #(
1257      '' | [0-9]* | *[!_$as_cr_alnum]* )
1258      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1259    esac
1260    eval $ac_envvar=\$ac_optarg
1261    export $ac_envvar ;;
1262
1263  *)
1264    # FIXME: should be removed in autoconf 3.0.
1265    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1266    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1268    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1269    ;;
1270
1271  esac
1272done
1273
1274if test -n "$ac_prev"; then
1275  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1276  as_fn_error $? "missing argument to $ac_option"
1277fi
1278
1279if test -n "$ac_unrecognized_opts"; then
1280  case $enable_option_checking in
1281    no) ;;
1282    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1283    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1284  esac
1285fi
1286
1287# Check all directory arguments for consistency.
1288for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1289		datadir sysconfdir sharedstatedir localstatedir includedir \
1290		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1291		libdir localedir mandir runstatedir
1292do
1293  eval ac_val=\$$ac_var
1294  # Remove trailing slashes.
1295  case $ac_val in
1296    */ )
1297      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1298      eval $ac_var=\$ac_val;;
1299  esac
1300  # Be sure to have absolute directory names.
1301  case $ac_val in
1302    [\\/$]* | ?:[\\/]* )  continue;;
1303    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1304  esac
1305  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1306done
1307
1308# There might be people who depend on the old broken behavior: `$host'
1309# used to hold the argument of --host etc.
1310# FIXME: To remove some day.
1311build=$build_alias
1312host=$host_alias
1313target=$target_alias
1314
1315# FIXME: To remove some day.
1316if test "x$host_alias" != x; then
1317  if test "x$build_alias" = x; then
1318    cross_compiling=maybe
1319  elif test "x$build_alias" != "x$host_alias"; then
1320    cross_compiling=yes
1321  fi
1322fi
1323
1324ac_tool_prefix=
1325test -n "$host_alias" && ac_tool_prefix=$host_alias-
1326
1327test "$silent" = yes && exec 6>/dev/null
1328
1329
1330ac_pwd=`pwd` && test -n "$ac_pwd" &&
1331ac_ls_di=`ls -di .` &&
1332ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1333  as_fn_error $? "working directory cannot be determined"
1334test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1335  as_fn_error $? "pwd does not report name of working directory"
1336
1337
1338# Find the source files, if location was not specified.
1339if test -z "$srcdir"; then
1340  ac_srcdir_defaulted=yes
1341  # Try the directory containing this script, then the parent directory.
1342  ac_confdir=`$as_dirname -- "$as_myself" ||
1343$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1344	 X"$as_myself" : 'X\(//\)[^/]' \| \
1345	 X"$as_myself" : 'X\(//\)$' \| \
1346	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1347printf "%s\n" X"$as_myself" |
1348    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1349	    s//\1/
1350	    q
1351	  }
1352	  /^X\(\/\/\)[^/].*/{
1353	    s//\1/
1354	    q
1355	  }
1356	  /^X\(\/\/\)$/{
1357	    s//\1/
1358	    q
1359	  }
1360	  /^X\(\/\).*/{
1361	    s//\1/
1362	    q
1363	  }
1364	  s/.*/./; q'`
1365  srcdir=$ac_confdir
1366  if test ! -r "$srcdir/$ac_unique_file"; then
1367    srcdir=..
1368  fi
1369else
1370  ac_srcdir_defaulted=no
1371fi
1372if test ! -r "$srcdir/$ac_unique_file"; then
1373  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1374  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1375fi
1376ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1377ac_abs_confdir=`(
1378	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1379	pwd)`
1380# When building in place, set srcdir=.
1381if test "$ac_abs_confdir" = "$ac_pwd"; then
1382  srcdir=.
1383fi
1384# Remove unnecessary trailing slashes from srcdir.
1385# Double slashes in file names in object file debugging info
1386# mess up M-x gdb in Emacs.
1387case $srcdir in
1388*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1389esac
1390for ac_var in $ac_precious_vars; do
1391  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1392  eval ac_env_${ac_var}_value=\$${ac_var}
1393  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1394  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1395done
1396
1397#
1398# Report the --help message.
1399#
1400if test "$ac_init_help" = "long"; then
1401  # Omit some internal or obsolete options to make the list less imposing.
1402  # This message is too long to be a string in the A/UX 3.1 sh.
1403  cat <<_ACEOF
1404\`configure' configures xdpyinfo 1.3.3 to adapt to many kinds of systems.
1405
1406Usage: $0 [OPTION]... [VAR=VALUE]...
1407
1408To assign environment variables (e.g., CC, CFLAGS...), specify them as
1409VAR=VALUE.  See below for descriptions of some of the useful variables.
1410
1411Defaults for the options are specified in brackets.
1412
1413Configuration:
1414  -h, --help              display this help and exit
1415      --help=short        display options specific to this package
1416      --help=recursive    display the short help of all the included packages
1417  -V, --version           display version information and exit
1418  -q, --quiet, --silent   do not print \`checking ...' messages
1419      --cache-file=FILE   cache test results in FILE [disabled]
1420  -C, --config-cache      alias for \`--cache-file=config.cache'
1421  -n, --no-create         do not create output files
1422      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1423
1424Installation directories:
1425  --prefix=PREFIX         install architecture-independent files in PREFIX
1426                          [$ac_default_prefix]
1427  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1428                          [PREFIX]
1429
1430By default, \`make install' will install all the files in
1431\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1432an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1433for instance \`--prefix=\$HOME'.
1434
1435For better control, use the options below.
1436
1437Fine tuning of the installation directories:
1438  --bindir=DIR            user executables [EPREFIX/bin]
1439  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1440  --libexecdir=DIR        program executables [EPREFIX/libexec]
1441  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1442  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1443  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1444  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1445  --libdir=DIR            object code libraries [EPREFIX/lib]
1446  --includedir=DIR        C header files [PREFIX/include]
1447  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1448  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1449  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1450  --infodir=DIR           info documentation [DATAROOTDIR/info]
1451  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1452  --mandir=DIR            man documentation [DATAROOTDIR/man]
1453  --docdir=DIR            documentation root [DATAROOTDIR/doc/xdpyinfo]
1454  --htmldir=DIR           html documentation [DOCDIR]
1455  --dvidir=DIR            dvi documentation [DOCDIR]
1456  --pdfdir=DIR            pdf documentation [DOCDIR]
1457  --psdir=DIR             ps documentation [DOCDIR]
1458_ACEOF
1459
1460  cat <<\_ACEOF
1461
1462Program names:
1463  --program-prefix=PREFIX            prepend PREFIX to installed program names
1464  --program-suffix=SUFFIX            append SUFFIX to installed program names
1465  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1466
1467System types:
1468  --build=BUILD     configure for building on BUILD [guessed]
1469  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1470_ACEOF
1471fi
1472
1473if test -n "$ac_init_help"; then
1474  case $ac_init_help in
1475     short | recursive ) echo "Configuration of xdpyinfo 1.3.3:";;
1476   esac
1477  cat <<\_ACEOF
1478
1479Optional Features:
1480  --disable-option-checking  ignore unrecognized --enable/--with options
1481  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1482  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1483  --enable-silent-rules   less verbose build output (undo: "make V=1")
1484  --disable-silent-rules  verbose build output (undo: "make V=0")
1485  --enable-dependency-tracking
1486                          do not reject slow dependency extractors
1487  --disable-dependency-tracking
1488                          speeds up one-time build
1489  --disable-selective-werror
1490                          Turn off selective compiler errors. (default:
1491                          enabled)
1492  --enable-strict-compilation
1493                          Enable all warnings from compiler and make them
1494                          errors (default: disabled)
1495
1496Optional Packages:
1497  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1498  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1499  --without-dga           Disable dga support.
1500  --without-xf86misc      Disable xf86misc support.
1501  --without-xinerama      Disable xinerama support.
1502  --with-dmx              Enable dmx support.
1503  --with-lint             Use a lint-style source code checker (default:
1504                          disabled)
1505
1506Some influential environment variables:
1507  CC          C compiler command
1508  CFLAGS      C compiler flags
1509  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1510              nonstandard directory <lib dir>
1511  LIBS        libraries to pass to the linker, e.g. -l<library>
1512  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1513              you have headers in a nonstandard directory <include dir>
1514  PKG_CONFIG  path to pkg-config utility
1515  PKG_CONFIG_PATH
1516              directories to add to pkg-config's search path
1517  PKG_CONFIG_LIBDIR
1518              path overriding pkg-config's built-in search path
1519  XDPYINFO_CFLAGS
1520              C compiler flags for XDPYINFO, overriding pkg-config
1521  XDPYINFO_LIBS
1522              linker flags for XDPYINFO, overriding pkg-config
1523  DPY_X11_CFLAGS
1524              C compiler flags for DPY_X11, overriding pkg-config
1525  DPY_X11_LIBS
1526              linker flags for DPY_X11, overriding pkg-config
1527  DPY_XEXT_CFLAGS
1528              C compiler flags for DPY_XEXT, overriding pkg-config
1529  DPY_XEXT_LIBS
1530              linker flags for DPY_XEXT, overriding pkg-config
1531  DPY_XKB_CFLAGS
1532              C compiler flags for DPY_XKB, overriding pkg-config
1533  DPY_XKB_LIBS
1534              linker flags for DPY_XKB, overriding pkg-config
1535  DPY_XF86VIDMODE_CFLAGS
1536              C compiler flags for DPY_XF86VIDMODE, overriding pkg-config
1537  DPY_XF86VIDMODE_LIBS
1538              linker flags for DPY_XF86VIDMODE, overriding pkg-config
1539  DPY_XF86DGA_CFLAGS
1540              C compiler flags for DPY_XF86DGA, overriding pkg-config
1541  DPY_XF86DGA_LIBS
1542              linker flags for DPY_XF86DGA, overriding pkg-config
1543  DPY_XF86MISC_CFLAGS
1544              C compiler flags for DPY_XF86MISC, overriding pkg-config
1545  DPY_XF86MISC_LIBS
1546              linker flags for DPY_XF86MISC, overriding pkg-config
1547  DPY_XINPUT_CFLAGS
1548              C compiler flags for DPY_XINPUT, overriding pkg-config
1549  DPY_XINPUT_LIBS
1550              linker flags for DPY_XINPUT, overriding pkg-config
1551  DPY_XRENDER_CFLAGS
1552              C compiler flags for DPY_XRENDER, overriding pkg-config
1553  DPY_XRENDER_LIBS
1554              linker flags for DPY_XRENDER, overriding pkg-config
1555  DPY_XCOMPOSITE_CFLAGS
1556              C compiler flags for DPY_XCOMPOSITE, overriding pkg-config
1557  DPY_XCOMPOSITE_LIBS
1558              linker flags for DPY_XCOMPOSITE, overriding pkg-config
1559  DPY_XINERAMA_CFLAGS
1560              C compiler flags for DPY_XINERAMA, overriding pkg-config
1561  DPY_XINERAMA_LIBS
1562              linker flags for DPY_XINERAMA, overriding pkg-config
1563  DPY_DMX_CFLAGS
1564              C compiler flags for DPY_DMX, overriding pkg-config
1565  DPY_DMX_LIBS
1566              linker flags for DPY_DMX, overriding pkg-config
1567  DPY_XTST_CFLAGS
1568              C compiler flags for DPY_XTST, overriding pkg-config
1569  DPY_XTST_LIBS
1570              linker flags for DPY_XTST, overriding pkg-config
1571  LINT        Path to a lint-style command
1572  LINT_FLAGS  Flags for the lint-style command
1573
1574Use these variables to override the choices made by `configure' or to help
1575it to find libraries and programs with nonstandard names/locations.
1576
1577Report bugs to <https://gitlab.freedesktop.org/xorg/app/xdpyinfo/issues>.
1578_ACEOF
1579ac_status=$?
1580fi
1581
1582if test "$ac_init_help" = "recursive"; then
1583  # If there are subdirs, report their specific --help.
1584  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1585    test -d "$ac_dir" ||
1586      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1587      continue
1588    ac_builddir=.
1589
1590case "$ac_dir" in
1591.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1592*)
1593  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1594  # A ".." for each directory in $ac_dir_suffix.
1595  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1596  case $ac_top_builddir_sub in
1597  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1598  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1599  esac ;;
1600esac
1601ac_abs_top_builddir=$ac_pwd
1602ac_abs_builddir=$ac_pwd$ac_dir_suffix
1603# for backward compatibility:
1604ac_top_builddir=$ac_top_build_prefix
1605
1606case $srcdir in
1607  .)  # We are building in place.
1608    ac_srcdir=.
1609    ac_top_srcdir=$ac_top_builddir_sub
1610    ac_abs_top_srcdir=$ac_pwd ;;
1611  [\\/]* | ?:[\\/]* )  # Absolute name.
1612    ac_srcdir=$srcdir$ac_dir_suffix;
1613    ac_top_srcdir=$srcdir
1614    ac_abs_top_srcdir=$srcdir ;;
1615  *) # Relative name.
1616    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1617    ac_top_srcdir=$ac_top_build_prefix$srcdir
1618    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1619esac
1620ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1621
1622    cd "$ac_dir" || { ac_status=$?; continue; }
1623    # Check for configure.gnu first; this name is used for a wrapper for
1624    # Metaconfig's "Configure" on case-insensitive file systems.
1625    if test -f "$ac_srcdir/configure.gnu"; then
1626      echo &&
1627      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1628    elif test -f "$ac_srcdir/configure"; then
1629      echo &&
1630      $SHELL "$ac_srcdir/configure" --help=recursive
1631    else
1632      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1633    fi || ac_status=$?
1634    cd "$ac_pwd" || { ac_status=$?; break; }
1635  done
1636fi
1637
1638test -n "$ac_init_help" && exit $ac_status
1639if $ac_init_version; then
1640  cat <<\_ACEOF
1641xdpyinfo configure 1.3.3
1642generated by GNU Autoconf 2.71
1643
1644Copyright (C) 2021 Free Software Foundation, Inc.
1645This configure script is free software; the Free Software Foundation
1646gives unlimited permission to copy, distribute and modify it.
1647_ACEOF
1648  exit
1649fi
1650
1651## ------------------------ ##
1652## Autoconf initialization. ##
1653## ------------------------ ##
1654
1655# ac_fn_c_try_compile LINENO
1656# --------------------------
1657# Try to compile conftest.$ac_ext, and return whether this succeeded.
1658ac_fn_c_try_compile ()
1659{
1660  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661  rm -f conftest.$ac_objext conftest.beam
1662  if { { ac_try="$ac_compile"
1663case "(($ac_try" in
1664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665  *) ac_try_echo=$ac_try;;
1666esac
1667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668printf "%s\n" "$ac_try_echo"; } >&5
1669  (eval "$ac_compile") 2>conftest.err
1670  ac_status=$?
1671  if test -s conftest.err; then
1672    grep -v '^ *+' conftest.err >conftest.er1
1673    cat conftest.er1 >&5
1674    mv -f conftest.er1 conftest.err
1675  fi
1676  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677  test $ac_status = 0; } && {
1678	 test -z "$ac_c_werror_flag" ||
1679	 test ! -s conftest.err
1680       } && test -s conftest.$ac_objext
1681then :
1682  ac_retval=0
1683else $as_nop
1684  printf "%s\n" "$as_me: failed program was:" >&5
1685sed 's/^/| /' conftest.$ac_ext >&5
1686
1687	ac_retval=1
1688fi
1689  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690  as_fn_set_status $ac_retval
1691
1692} # ac_fn_c_try_compile
1693
1694# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1695# ------------------------------------------------------------------
1696# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1697# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1698ac_fn_check_decl ()
1699{
1700  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701  as_decl_name=`echo $2|sed 's/ *(.*//'`
1702  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1703printf %s "checking whether $as_decl_name is declared... " >&6; }
1704if eval test \${$3+y}
1705then :
1706  printf %s "(cached) " >&6
1707else $as_nop
1708  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1709  eval ac_save_FLAGS=\$$6
1710  as_fn_append $6 " $5"
1711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1712/* end confdefs.h.  */
1713$4
1714int
1715main (void)
1716{
1717#ifndef $as_decl_name
1718#ifdef __cplusplus
1719  (void) $as_decl_use;
1720#else
1721  (void) $as_decl_name;
1722#endif
1723#endif
1724
1725  ;
1726  return 0;
1727}
1728_ACEOF
1729if ac_fn_c_try_compile "$LINENO"
1730then :
1731  eval "$3=yes"
1732else $as_nop
1733  eval "$3=no"
1734fi
1735rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1736  eval $6=\$ac_save_FLAGS
1737
1738fi
1739eval ac_res=\$$3
1740	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741printf "%s\n" "$ac_res" >&6; }
1742  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743
1744} # ac_fn_check_decl
1745
1746# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1747# -------------------------------------------------------
1748# Tests whether HEADER exists and can be compiled using the include files in
1749# INCLUDES, setting the cache variable VAR accordingly.
1750ac_fn_c_check_header_compile ()
1751{
1752  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1754printf %s "checking for $2... " >&6; }
1755if eval test \${$3+y}
1756then :
1757  printf %s "(cached) " >&6
1758else $as_nop
1759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760/* end confdefs.h.  */
1761$4
1762#include <$2>
1763_ACEOF
1764if ac_fn_c_try_compile "$LINENO"
1765then :
1766  eval "$3=yes"
1767else $as_nop
1768  eval "$3=no"
1769fi
1770rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1771fi
1772eval ac_res=\$$3
1773	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774printf "%s\n" "$ac_res" >&6; }
1775  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776
1777} # ac_fn_c_check_header_compile
1778
1779# ac_fn_c_try_link LINENO
1780# -----------------------
1781# Try to link conftest.$ac_ext, and return whether this succeeded.
1782ac_fn_c_try_link ()
1783{
1784  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1786  if { { ac_try="$ac_link"
1787case "(($ac_try" in
1788  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789  *) ac_try_echo=$ac_try;;
1790esac
1791eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792printf "%s\n" "$ac_try_echo"; } >&5
1793  (eval "$ac_link") 2>conftest.err
1794  ac_status=$?
1795  if test -s conftest.err; then
1796    grep -v '^ *+' conftest.err >conftest.er1
1797    cat conftest.er1 >&5
1798    mv -f conftest.er1 conftest.err
1799  fi
1800  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801  test $ac_status = 0; } && {
1802	 test -z "$ac_c_werror_flag" ||
1803	 test ! -s conftest.err
1804       } && test -s conftest$ac_exeext && {
1805	 test "$cross_compiling" = yes ||
1806	 test -x conftest$ac_exeext
1807       }
1808then :
1809  ac_retval=0
1810else $as_nop
1811  printf "%s\n" "$as_me: failed program was:" >&5
1812sed 's/^/| /' conftest.$ac_ext >&5
1813
1814	ac_retval=1
1815fi
1816  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1817  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1818  # interfere with the next link command; also delete a directory that is
1819  # left behind by Apple's compiler.  We do this before executing the actions.
1820  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1821  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822  as_fn_set_status $ac_retval
1823
1824} # ac_fn_c_try_link
1825ac_configure_args_raw=
1826for ac_arg
1827do
1828  case $ac_arg in
1829  *\'*)
1830    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1831  esac
1832  as_fn_append ac_configure_args_raw " '$ac_arg'"
1833done
1834
1835case $ac_configure_args_raw in
1836  *$as_nl*)
1837    ac_safe_unquote= ;;
1838  *)
1839    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1840    ac_unsafe_a="$ac_unsafe_z#~"
1841    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1842    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1843esac
1844
1845cat >config.log <<_ACEOF
1846This file contains any messages produced by compilers while
1847running configure, to aid debugging if configure makes a mistake.
1848
1849It was created by xdpyinfo $as_me 1.3.3, which was
1850generated by GNU Autoconf 2.71.  Invocation command line was
1851
1852  $ $0$ac_configure_args_raw
1853
1854_ACEOF
1855exec 5>>config.log
1856{
1857cat <<_ASUNAME
1858## --------- ##
1859## Platform. ##
1860## --------- ##
1861
1862hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1863uname -m = `(uname -m) 2>/dev/null || echo unknown`
1864uname -r = `(uname -r) 2>/dev/null || echo unknown`
1865uname -s = `(uname -s) 2>/dev/null || echo unknown`
1866uname -v = `(uname -v) 2>/dev/null || echo unknown`
1867
1868/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1869/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1870
1871/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1872/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1873/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1874/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1875/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1876/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1877/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1878
1879_ASUNAME
1880
1881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882for as_dir in $PATH
1883do
1884  IFS=$as_save_IFS
1885  case $as_dir in #(((
1886    '') as_dir=./ ;;
1887    */) ;;
1888    *) as_dir=$as_dir/ ;;
1889  esac
1890    printf "%s\n" "PATH: $as_dir"
1891  done
1892IFS=$as_save_IFS
1893
1894} >&5
1895
1896cat >&5 <<_ACEOF
1897
1898
1899## ----------- ##
1900## Core tests. ##
1901## ----------- ##
1902
1903_ACEOF
1904
1905
1906# Keep a trace of the command line.
1907# Strip out --no-create and --no-recursion so they do not pile up.
1908# Strip out --silent because we don't want to record it for future runs.
1909# Also quote any args containing shell meta-characters.
1910# Make two passes to allow for proper duplicate-argument suppression.
1911ac_configure_args=
1912ac_configure_args0=
1913ac_configure_args1=
1914ac_must_keep_next=false
1915for ac_pass in 1 2
1916do
1917  for ac_arg
1918  do
1919    case $ac_arg in
1920    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1921    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1922    | -silent | --silent | --silen | --sile | --sil)
1923      continue ;;
1924    *\'*)
1925      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1926    esac
1927    case $ac_pass in
1928    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1929    2)
1930      as_fn_append ac_configure_args1 " '$ac_arg'"
1931      if test $ac_must_keep_next = true; then
1932	ac_must_keep_next=false # Got value, back to normal.
1933      else
1934	case $ac_arg in
1935	  *=* | --config-cache | -C | -disable-* | --disable-* \
1936	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1937	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1938	  | -with-* | --with-* | -without-* | --without-* | --x)
1939	    case "$ac_configure_args0 " in
1940	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1941	    esac
1942	    ;;
1943	  -* ) ac_must_keep_next=true ;;
1944	esac
1945      fi
1946      as_fn_append ac_configure_args " '$ac_arg'"
1947      ;;
1948    esac
1949  done
1950done
1951{ ac_configure_args0=; unset ac_configure_args0;}
1952{ ac_configure_args1=; unset ac_configure_args1;}
1953
1954# When interrupted or exit'd, cleanup temporary files, and complete
1955# config.log.  We remove comments because anyway the quotes in there
1956# would cause problems or look ugly.
1957# WARNING: Use '\'' to represent an apostrophe within the trap.
1958# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1959trap 'exit_status=$?
1960  # Sanitize IFS.
1961  IFS=" ""	$as_nl"
1962  # Save into config.log some information that might help in debugging.
1963  {
1964    echo
1965
1966    printf "%s\n" "## ---------------- ##
1967## Cache variables. ##
1968## ---------------- ##"
1969    echo
1970    # The following way of writing the cache mishandles newlines in values,
1971(
1972  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1973    eval ac_val=\$$ac_var
1974    case $ac_val in #(
1975    *${as_nl}*)
1976      case $ac_var in #(
1977      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1978printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1979      esac
1980      case $ac_var in #(
1981      _ | IFS | as_nl) ;; #(
1982      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1983      *) { eval $ac_var=; unset $ac_var;} ;;
1984      esac ;;
1985    esac
1986  done
1987  (set) 2>&1 |
1988    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1989    *${as_nl}ac_space=\ *)
1990      sed -n \
1991	"s/'\''/'\''\\\\'\'''\''/g;
1992	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1993      ;; #(
1994    *)
1995      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1996      ;;
1997    esac |
1998    sort
1999)
2000    echo
2001
2002    printf "%s\n" "## ----------------- ##
2003## Output variables. ##
2004## ----------------- ##"
2005    echo
2006    for ac_var in $ac_subst_vars
2007    do
2008      eval ac_val=\$$ac_var
2009      case $ac_val in
2010      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2011      esac
2012      printf "%s\n" "$ac_var='\''$ac_val'\''"
2013    done | sort
2014    echo
2015
2016    if test -n "$ac_subst_files"; then
2017      printf "%s\n" "## ------------------- ##
2018## File substitutions. ##
2019## ------------------- ##"
2020      echo
2021      for ac_var in $ac_subst_files
2022      do
2023	eval ac_val=\$$ac_var
2024	case $ac_val in
2025	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2026	esac
2027	printf "%s\n" "$ac_var='\''$ac_val'\''"
2028      done | sort
2029      echo
2030    fi
2031
2032    if test -s confdefs.h; then
2033      printf "%s\n" "## ----------- ##
2034## confdefs.h. ##
2035## ----------- ##"
2036      echo
2037      cat confdefs.h
2038      echo
2039    fi
2040    test "$ac_signal" != 0 &&
2041      printf "%s\n" "$as_me: caught signal $ac_signal"
2042    printf "%s\n" "$as_me: exit $exit_status"
2043  } >&5
2044  rm -f core *.core core.conftest.* &&
2045    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2046    exit $exit_status
2047' 0
2048for ac_signal in 1 2 13 15; do
2049  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2050done
2051ac_signal=0
2052
2053# confdefs.h avoids OS command line length limits that DEFS can exceed.
2054rm -f -r conftest* confdefs.h
2055
2056printf "%s\n" "/* confdefs.h */" > confdefs.h
2057
2058# Predefined preprocessor variables.
2059
2060printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2061
2062printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2063
2064printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2065
2066printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2067
2068printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2069
2070printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2071
2072
2073# Let the site file select an alternate cache file if it wants to.
2074# Prefer an explicitly selected file to automatically selected ones.
2075if test -n "$CONFIG_SITE"; then
2076  ac_site_files="$CONFIG_SITE"
2077elif test "x$prefix" != xNONE; then
2078  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2079else
2080  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2081fi
2082
2083for ac_site_file in $ac_site_files
2084do
2085  case $ac_site_file in #(
2086  */*) :
2087     ;; #(
2088  *) :
2089    ac_site_file=./$ac_site_file ;;
2090esac
2091  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2092    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2093printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2094    sed 's/^/| /' "$ac_site_file" >&5
2095    . "$ac_site_file" \
2096      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2097printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2098as_fn_error $? "failed to load site script $ac_site_file
2099See \`config.log' for more details" "$LINENO" 5; }
2100  fi
2101done
2102
2103if test -r "$cache_file"; then
2104  # Some versions of bash will fail to source /dev/null (special files
2105  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2106  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2107    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2108printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2109    case $cache_file in
2110      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2111      *)                      . "./$cache_file";;
2112    esac
2113  fi
2114else
2115  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2116printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2117  >$cache_file
2118fi
2119
2120# Test code for whether the C compiler supports C89 (global declarations)
2121ac_c_conftest_c89_globals='
2122/* Does the compiler advertise C89 conformance?
2123   Do not test the value of __STDC__, because some compilers set it to 0
2124   while being otherwise adequately conformant. */
2125#if !defined __STDC__
2126# error "Compiler does not advertise C89 conformance"
2127#endif
2128
2129#include <stddef.h>
2130#include <stdarg.h>
2131struct stat;
2132/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2133struct buf { int x; };
2134struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2135static char *e (p, i)
2136     char **p;
2137     int i;
2138{
2139  return p[i];
2140}
2141static char *f (char * (*g) (char **, int), char **p, ...)
2142{
2143  char *s;
2144  va_list v;
2145  va_start (v,p);
2146  s = g (p, va_arg (v,int));
2147  va_end (v);
2148  return s;
2149}
2150
2151/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2152   function prototypes and stuff, but not \xHH hex character constants.
2153   These do not provoke an error unfortunately, instead are silently treated
2154   as an "x".  The following induces an error, until -std is added to get
2155   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2156   array size at least.  It is necessary to write \x00 == 0 to get something
2157   that is true only with -std.  */
2158int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2159
2160/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2161   inside strings and character constants.  */
2162#define FOO(x) '\''x'\''
2163int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2164
2165int test (int i, double x);
2166struct s1 {int (*f) (int a);};
2167struct s2 {int (*f) (double a);};
2168int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2169               int, int);'
2170
2171# Test code for whether the C compiler supports C89 (body of main).
2172ac_c_conftest_c89_main='
2173ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2174'
2175
2176# Test code for whether the C compiler supports C99 (global declarations)
2177ac_c_conftest_c99_globals='
2178// Does the compiler advertise C99 conformance?
2179#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2180# error "Compiler does not advertise C99 conformance"
2181#endif
2182
2183#include <stdbool.h>
2184extern int puts (const char *);
2185extern int printf (const char *, ...);
2186extern int dprintf (int, const char *, ...);
2187extern void *malloc (size_t);
2188
2189// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2190// dprintf is used instead of fprintf to avoid needing to declare
2191// FILE and stderr.
2192#define debug(...) dprintf (2, __VA_ARGS__)
2193#define showlist(...) puts (#__VA_ARGS__)
2194#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2195static void
2196test_varargs_macros (void)
2197{
2198  int x = 1234;
2199  int y = 5678;
2200  debug ("Flag");
2201  debug ("X = %d\n", x);
2202  showlist (The first, second, and third items.);
2203  report (x>y, "x is %d but y is %d", x, y);
2204}
2205
2206// Check long long types.
2207#define BIG64 18446744073709551615ull
2208#define BIG32 4294967295ul
2209#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2210#if !BIG_OK
2211  #error "your preprocessor is broken"
2212#endif
2213#if BIG_OK
2214#else
2215  #error "your preprocessor is broken"
2216#endif
2217static long long int bignum = -9223372036854775807LL;
2218static unsigned long long int ubignum = BIG64;
2219
2220struct incomplete_array
2221{
2222  int datasize;
2223  double data[];
2224};
2225
2226struct named_init {
2227  int number;
2228  const wchar_t *name;
2229  double average;
2230};
2231
2232typedef const char *ccp;
2233
2234static inline int
2235test_restrict (ccp restrict text)
2236{
2237  // See if C++-style comments work.
2238  // Iterate through items via the restricted pointer.
2239  // Also check for declarations in for loops.
2240  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2241    continue;
2242  return 0;
2243}
2244
2245// Check varargs and va_copy.
2246static bool
2247test_varargs (const char *format, ...)
2248{
2249  va_list args;
2250  va_start (args, format);
2251  va_list args_copy;
2252  va_copy (args_copy, args);
2253
2254  const char *str = "";
2255  int number = 0;
2256  float fnumber = 0;
2257
2258  while (*format)
2259    {
2260      switch (*format++)
2261	{
2262	case '\''s'\'': // string
2263	  str = va_arg (args_copy, const char *);
2264	  break;
2265	case '\''d'\'': // int
2266	  number = va_arg (args_copy, int);
2267	  break;
2268	case '\''f'\'': // float
2269	  fnumber = va_arg (args_copy, double);
2270	  break;
2271	default:
2272	  break;
2273	}
2274    }
2275  va_end (args_copy);
2276  va_end (args);
2277
2278  return *str && number && fnumber;
2279}
2280'
2281
2282# Test code for whether the C compiler supports C99 (body of main).
2283ac_c_conftest_c99_main='
2284  // Check bool.
2285  _Bool success = false;
2286  success |= (argc != 0);
2287
2288  // Check restrict.
2289  if (test_restrict ("String literal") == 0)
2290    success = true;
2291  char *restrict newvar = "Another string";
2292
2293  // Check varargs.
2294  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2295  test_varargs_macros ();
2296
2297  // Check flexible array members.
2298  struct incomplete_array *ia =
2299    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2300  ia->datasize = 10;
2301  for (int i = 0; i < ia->datasize; ++i)
2302    ia->data[i] = i * 1.234;
2303
2304  // Check named initializers.
2305  struct named_init ni = {
2306    .number = 34,
2307    .name = L"Test wide string",
2308    .average = 543.34343,
2309  };
2310
2311  ni.number = 58;
2312
2313  int dynamic_array[ni.number];
2314  dynamic_array[0] = argv[0][0];
2315  dynamic_array[ni.number - 1] = 543;
2316
2317  // work around unused variable warnings
2318  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2319	 || dynamic_array[ni.number - 1] != 543);
2320'
2321
2322# Test code for whether the C compiler supports C11 (global declarations)
2323ac_c_conftest_c11_globals='
2324// Does the compiler advertise C11 conformance?
2325#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2326# error "Compiler does not advertise C11 conformance"
2327#endif
2328
2329// Check _Alignas.
2330char _Alignas (double) aligned_as_double;
2331char _Alignas (0) no_special_alignment;
2332extern char aligned_as_int;
2333char _Alignas (0) _Alignas (int) aligned_as_int;
2334
2335// Check _Alignof.
2336enum
2337{
2338  int_alignment = _Alignof (int),
2339  int_array_alignment = _Alignof (int[100]),
2340  char_alignment = _Alignof (char)
2341};
2342_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2343
2344// Check _Noreturn.
2345int _Noreturn does_not_return (void) { for (;;) continue; }
2346
2347// Check _Static_assert.
2348struct test_static_assert
2349{
2350  int x;
2351  _Static_assert (sizeof (int) <= sizeof (long int),
2352                  "_Static_assert does not work in struct");
2353  long int y;
2354};
2355
2356// Check UTF-8 literals.
2357#define u8 syntax error!
2358char const utf8_literal[] = u8"happens to be ASCII" "another string";
2359
2360// Check duplicate typedefs.
2361typedef long *long_ptr;
2362typedef long int *long_ptr;
2363typedef long_ptr long_ptr;
2364
2365// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2366struct anonymous
2367{
2368  union {
2369    struct { int i; int j; };
2370    struct { int k; long int l; } w;
2371  };
2372  int m;
2373} v1;
2374'
2375
2376# Test code for whether the C compiler supports C11 (body of main).
2377ac_c_conftest_c11_main='
2378  _Static_assert ((offsetof (struct anonymous, i)
2379		   == offsetof (struct anonymous, w.k)),
2380		  "Anonymous union alignment botch");
2381  v1.i = 2;
2382  v1.w.k = 5;
2383  ok |= v1.i != 5;
2384'
2385
2386# Test code for whether the C compiler supports C11 (complete).
2387ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2388${ac_c_conftest_c99_globals}
2389${ac_c_conftest_c11_globals}
2390
2391int
2392main (int argc, char **argv)
2393{
2394  int ok = 0;
2395  ${ac_c_conftest_c89_main}
2396  ${ac_c_conftest_c99_main}
2397  ${ac_c_conftest_c11_main}
2398  return ok;
2399}
2400"
2401
2402# Test code for whether the C compiler supports C99 (complete).
2403ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2404${ac_c_conftest_c99_globals}
2405
2406int
2407main (int argc, char **argv)
2408{
2409  int ok = 0;
2410  ${ac_c_conftest_c89_main}
2411  ${ac_c_conftest_c99_main}
2412  return ok;
2413}
2414"
2415
2416# Test code for whether the C compiler supports C89 (complete).
2417ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2418
2419int
2420main (int argc, char **argv)
2421{
2422  int ok = 0;
2423  ${ac_c_conftest_c89_main}
2424  return ok;
2425}
2426"
2427
2428as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2429as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2430as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2431as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2432as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2433as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2434as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2435as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2436as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2437
2438# Auxiliary files required by this configure script.
2439ac_aux_files="config.guess config.sub compile missing install-sh"
2440
2441# Locations in which to look for auxiliary files.
2442ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2443
2444# Search for a directory containing all of the required auxiliary files,
2445# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2446# If we don't find one directory that contains all the files we need,
2447# we report the set of missing files from the *first* directory in
2448# $ac_aux_dir_candidates and give up.
2449ac_missing_aux_files=""
2450ac_first_candidate=:
2451printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453as_found=false
2454for as_dir in $ac_aux_dir_candidates
2455do
2456  IFS=$as_save_IFS
2457  case $as_dir in #(((
2458    '') as_dir=./ ;;
2459    */) ;;
2460    *) as_dir=$as_dir/ ;;
2461  esac
2462  as_found=:
2463
2464  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2465  ac_aux_dir_found=yes
2466  ac_install_sh=
2467  for ac_aux in $ac_aux_files
2468  do
2469    # As a special case, if "install-sh" is required, that requirement
2470    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2471    # and $ac_install_sh is set appropriately for whichever one is found.
2472    if test x"$ac_aux" = x"install-sh"
2473    then
2474      if test -f "${as_dir}install-sh"; then
2475        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2476        ac_install_sh="${as_dir}install-sh -c"
2477      elif test -f "${as_dir}install.sh"; then
2478        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2479        ac_install_sh="${as_dir}install.sh -c"
2480      elif test -f "${as_dir}shtool"; then
2481        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2482        ac_install_sh="${as_dir}shtool install -c"
2483      else
2484        ac_aux_dir_found=no
2485        if $ac_first_candidate; then
2486          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2487        else
2488          break
2489        fi
2490      fi
2491    else
2492      if test -f "${as_dir}${ac_aux}"; then
2493        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2494      else
2495        ac_aux_dir_found=no
2496        if $ac_first_candidate; then
2497          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2498        else
2499          break
2500        fi
2501      fi
2502    fi
2503  done
2504  if test "$ac_aux_dir_found" = yes; then
2505    ac_aux_dir="$as_dir"
2506    break
2507  fi
2508  ac_first_candidate=false
2509
2510  as_found=false
2511done
2512IFS=$as_save_IFS
2513if $as_found
2514then :
2515
2516else $as_nop
2517  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2518fi
2519
2520
2521# These three variables are undocumented and unsupported,
2522# and are intended to be withdrawn in a future Autoconf release.
2523# They can cause serious problems if a builder's source tree is in a directory
2524# whose full name contains unusual characters.
2525if test -f "${ac_aux_dir}config.guess"; then
2526  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2527fi
2528if test -f "${ac_aux_dir}config.sub"; then
2529  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2530fi
2531if test -f "$ac_aux_dir/configure"; then
2532  ac_configure="$SHELL ${ac_aux_dir}configure"
2533fi
2534
2535# Check that the precious variables saved in the cache have kept the same
2536# value.
2537ac_cache_corrupted=false
2538for ac_var in $ac_precious_vars; do
2539  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2540  eval ac_new_set=\$ac_env_${ac_var}_set
2541  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2542  eval ac_new_val=\$ac_env_${ac_var}_value
2543  case $ac_old_set,$ac_new_set in
2544    set,)
2545      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2546printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2547      ac_cache_corrupted=: ;;
2548    ,set)
2549      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2550printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2551      ac_cache_corrupted=: ;;
2552    ,);;
2553    *)
2554      if test "x$ac_old_val" != "x$ac_new_val"; then
2555	# differences in whitespace do not lead to failure.
2556	ac_old_val_w=`echo x $ac_old_val`
2557	ac_new_val_w=`echo x $ac_new_val`
2558	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2559	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2560printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2561	  ac_cache_corrupted=:
2562	else
2563	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2564printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2565	  eval $ac_var=\$ac_old_val
2566	fi
2567	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2568printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2569	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2570printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2571      fi;;
2572  esac
2573  # Pass precious variables to config.status.
2574  if test "$ac_new_set" = set; then
2575    case $ac_new_val in
2576    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2577    *) ac_arg=$ac_var=$ac_new_val ;;
2578    esac
2579    case " $ac_configure_args " in
2580      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2581      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2582    esac
2583  fi
2584done
2585if $ac_cache_corrupted; then
2586  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2587printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2588  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2589printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2590  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2591	    and start over" "$LINENO" 5
2592fi
2593## -------------------- ##
2594## Main body of script. ##
2595## -------------------- ##
2596
2597ac_ext=c
2598ac_cpp='$CPP $CPPFLAGS'
2599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2601ac_compiler_gnu=$ac_cv_c_compiler_gnu
2602
2603
2604
2605ac_config_headers="$ac_config_headers config.h"
2606
2607
2608# Initialize Automake
2609am__api_version='1.16'
2610
2611
2612
2613  # Find a good install program.  We prefer a C program (faster),
2614# so one script is as good as another.  But avoid the broken or
2615# incompatible versions:
2616# SysV /etc/install, /usr/sbin/install
2617# SunOS /usr/etc/install
2618# IRIX /sbin/install
2619# AIX /bin/install
2620# AmigaOS /C/install, which installs bootblocks on floppy discs
2621# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2622# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2623# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2624# OS/2's system install, which has a completely different semantic
2625# ./install, which can be erroneously created by make from ./install.sh.
2626# Reject install programs that cannot install multiple files.
2627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2628printf %s "checking for a BSD-compatible install... " >&6; }
2629if test -z "$INSTALL"; then
2630if test ${ac_cv_path_install+y}
2631then :
2632  printf %s "(cached) " >&6
2633else $as_nop
2634  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635for as_dir in $PATH
2636do
2637  IFS=$as_save_IFS
2638  case $as_dir in #(((
2639    '') as_dir=./ ;;
2640    */) ;;
2641    *) as_dir=$as_dir/ ;;
2642  esac
2643    # Account for fact that we put trailing slashes in our PATH walk.
2644case $as_dir in #((
2645  ./ | /[cC]/* | \
2646  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2647  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2648  /usr/ucb/* ) ;;
2649  *)
2650    # OSF1 and SCO ODT 3.0 have their own names for install.
2651    # Don't use installbsd from OSF since it installs stuff as root
2652    # by default.
2653    for ac_prog in ginstall scoinst install; do
2654      for ac_exec_ext in '' $ac_executable_extensions; do
2655	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2656	  if test $ac_prog = install &&
2657	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2658	    # AIX install.  It has an incompatible calling convention.
2659	    :
2660	  elif test $ac_prog = install &&
2661	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2662	    # program-specific install script used by HP pwplus--don't use.
2663	    :
2664	  else
2665	    rm -rf conftest.one conftest.two conftest.dir
2666	    echo one > conftest.one
2667	    echo two > conftest.two
2668	    mkdir conftest.dir
2669	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2670	      test -s conftest.one && test -s conftest.two &&
2671	      test -s conftest.dir/conftest.one &&
2672	      test -s conftest.dir/conftest.two
2673	    then
2674	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2675	      break 3
2676	    fi
2677	  fi
2678	fi
2679      done
2680    done
2681    ;;
2682esac
2683
2684  done
2685IFS=$as_save_IFS
2686
2687rm -rf conftest.one conftest.two conftest.dir
2688
2689fi
2690  if test ${ac_cv_path_install+y}; then
2691    INSTALL=$ac_cv_path_install
2692  else
2693    # As a last resort, use the slow shell script.  Don't cache a
2694    # value for INSTALL within a source directory, because that will
2695    # break other packages using the cache if that directory is
2696    # removed, or if the value is a relative name.
2697    INSTALL=$ac_install_sh
2698  fi
2699fi
2700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2701printf "%s\n" "$INSTALL" >&6; }
2702
2703# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2704# It thinks the first close brace ends the variable substitution.
2705test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2706
2707test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2708
2709test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2710
2711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2712printf %s "checking whether build environment is sane... " >&6; }
2713# Reject unsafe characters in $srcdir or the absolute working directory
2714# name.  Accept space and tab only in the latter.
2715am_lf='
2716'
2717case `pwd` in
2718  *[\\\"\#\$\&\'\`$am_lf]*)
2719    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2720esac
2721case $srcdir in
2722  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2723    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2724esac
2725
2726# Do 'set' in a subshell so we don't clobber the current shell's
2727# arguments.  Must try -L first in case configure is actually a
2728# symlink; some systems play weird games with the mod time of symlinks
2729# (eg FreeBSD returns the mod time of the symlink's containing
2730# directory).
2731if (
2732   am_has_slept=no
2733   for am_try in 1 2; do
2734     echo "timestamp, slept: $am_has_slept" > conftest.file
2735     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2736     if test "$*" = "X"; then
2737	# -L didn't work.
2738	set X `ls -t "$srcdir/configure" conftest.file`
2739     fi
2740     if test "$*" != "X $srcdir/configure conftest.file" \
2741	&& test "$*" != "X conftest.file $srcdir/configure"; then
2742
2743	# If neither matched, then we have a broken ls.  This can happen
2744	# if, for instance, CONFIG_SHELL is bash and it inherits a
2745	# broken ls alias from the environment.  This has actually
2746	# happened.  Such a system could not be considered "sane".
2747	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2748  alias in your environment" "$LINENO" 5
2749     fi
2750     if test "$2" = conftest.file || test $am_try -eq 2; then
2751       break
2752     fi
2753     # Just in case.
2754     sleep 1
2755     am_has_slept=yes
2756   done
2757   test "$2" = conftest.file
2758   )
2759then
2760   # Ok.
2761   :
2762else
2763   as_fn_error $? "newly created file is older than distributed files!
2764Check your system clock" "$LINENO" 5
2765fi
2766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2767printf "%s\n" "yes" >&6; }
2768# If we didn't sleep, we still need to ensure time stamps of config.status and
2769# generated files are strictly newer.
2770am_sleep_pid=
2771if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2772  ( sleep 1 ) &
2773  am_sleep_pid=$!
2774fi
2775
2776rm -f conftest.file
2777
2778test "$program_prefix" != NONE &&
2779  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2780# Use a double $ so make ignores it.
2781test "$program_suffix" != NONE &&
2782  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2783# Double any \ or $.
2784# By default was `s,x,x', remove it if useless.
2785ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2786program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2787
2788
2789# Expand $ac_aux_dir to an absolute path.
2790am_aux_dir=`cd "$ac_aux_dir" && pwd`
2791
2792
2793  if test x"${MISSING+set}" != xset; then
2794  MISSING="\${SHELL} '$am_aux_dir/missing'"
2795fi
2796# Use eval to expand $SHELL
2797if eval "$MISSING --is-lightweight"; then
2798  am_missing_run="$MISSING "
2799else
2800  am_missing_run=
2801  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2802printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2803fi
2804
2805if test x"${install_sh+set}" != xset; then
2806  case $am_aux_dir in
2807  *\ * | *\	*)
2808    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2809  *)
2810    install_sh="\${SHELL} $am_aux_dir/install-sh"
2811  esac
2812fi
2813
2814# Installed binaries are usually stripped using 'strip' when the user
2815# run "make install-strip".  However 'strip' might not be the right
2816# tool to use in cross-compilation environments, therefore Automake
2817# will honor the 'STRIP' environment variable to overrule this program.
2818if test "$cross_compiling" != no; then
2819  if test -n "$ac_tool_prefix"; then
2820  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2821set dummy ${ac_tool_prefix}strip; ac_word=$2
2822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2823printf %s "checking for $ac_word... " >&6; }
2824if test ${ac_cv_prog_STRIP+y}
2825then :
2826  printf %s "(cached) " >&6
2827else $as_nop
2828  if test -n "$STRIP"; then
2829  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2830else
2831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832for as_dir in $PATH
2833do
2834  IFS=$as_save_IFS
2835  case $as_dir in #(((
2836    '') as_dir=./ ;;
2837    */) ;;
2838    *) as_dir=$as_dir/ ;;
2839  esac
2840    for ac_exec_ext in '' $ac_executable_extensions; do
2841  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2842    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2843    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2844    break 2
2845  fi
2846done
2847  done
2848IFS=$as_save_IFS
2849
2850fi
2851fi
2852STRIP=$ac_cv_prog_STRIP
2853if test -n "$STRIP"; then
2854  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2855printf "%s\n" "$STRIP" >&6; }
2856else
2857  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2858printf "%s\n" "no" >&6; }
2859fi
2860
2861
2862fi
2863if test -z "$ac_cv_prog_STRIP"; then
2864  ac_ct_STRIP=$STRIP
2865  # Extract the first word of "strip", so it can be a program name with args.
2866set dummy strip; ac_word=$2
2867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2868printf %s "checking for $ac_word... " >&6; }
2869if test ${ac_cv_prog_ac_ct_STRIP+y}
2870then :
2871  printf %s "(cached) " >&6
2872else $as_nop
2873  if test -n "$ac_ct_STRIP"; then
2874  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2875else
2876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877for as_dir in $PATH
2878do
2879  IFS=$as_save_IFS
2880  case $as_dir in #(((
2881    '') as_dir=./ ;;
2882    */) ;;
2883    *) as_dir=$as_dir/ ;;
2884  esac
2885    for ac_exec_ext in '' $ac_executable_extensions; do
2886  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2887    ac_cv_prog_ac_ct_STRIP="strip"
2888    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2889    break 2
2890  fi
2891done
2892  done
2893IFS=$as_save_IFS
2894
2895fi
2896fi
2897ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2898if test -n "$ac_ct_STRIP"; then
2899  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2900printf "%s\n" "$ac_ct_STRIP" >&6; }
2901else
2902  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2903printf "%s\n" "no" >&6; }
2904fi
2905
2906  if test "x$ac_ct_STRIP" = x; then
2907    STRIP=":"
2908  else
2909    case $cross_compiling:$ac_tool_warned in
2910yes:)
2911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2912printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2913ac_tool_warned=yes ;;
2914esac
2915    STRIP=$ac_ct_STRIP
2916  fi
2917else
2918  STRIP="$ac_cv_prog_STRIP"
2919fi
2920
2921fi
2922INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2923
2924
2925  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2926printf %s "checking for a race-free mkdir -p... " >&6; }
2927if test -z "$MKDIR_P"; then
2928  if test ${ac_cv_path_mkdir+y}
2929then :
2930  printf %s "(cached) " >&6
2931else $as_nop
2932  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2934do
2935  IFS=$as_save_IFS
2936  case $as_dir in #(((
2937    '') as_dir=./ ;;
2938    */) ;;
2939    *) as_dir=$as_dir/ ;;
2940  esac
2941    for ac_prog in mkdir gmkdir; do
2942	 for ac_exec_ext in '' $ac_executable_extensions; do
2943	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2944	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2945	     'mkdir ('*'coreutils) '* | \
2946	     'BusyBox '* | \
2947	     'mkdir (fileutils) '4.1*)
2948	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2949	       break 3;;
2950	   esac
2951	 done
2952       done
2953  done
2954IFS=$as_save_IFS
2955
2956fi
2957
2958  test -d ./--version && rmdir ./--version
2959  if test ${ac_cv_path_mkdir+y}; then
2960    MKDIR_P="$ac_cv_path_mkdir -p"
2961  else
2962    # As a last resort, use the slow shell script.  Don't cache a
2963    # value for MKDIR_P within a source directory, because that will
2964    # break other packages using the cache if that directory is
2965    # removed, or if the value is a relative name.
2966    MKDIR_P="$ac_install_sh -d"
2967  fi
2968fi
2969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2970printf "%s\n" "$MKDIR_P" >&6; }
2971
2972for ac_prog in gawk mawk nawk awk
2973do
2974  # Extract the first word of "$ac_prog", so it can be a program name with args.
2975set dummy $ac_prog; ac_word=$2
2976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2977printf %s "checking for $ac_word... " >&6; }
2978if test ${ac_cv_prog_AWK+y}
2979then :
2980  printf %s "(cached) " >&6
2981else $as_nop
2982  if test -n "$AWK"; then
2983  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2984else
2985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986for as_dir in $PATH
2987do
2988  IFS=$as_save_IFS
2989  case $as_dir in #(((
2990    '') as_dir=./ ;;
2991    */) ;;
2992    *) as_dir=$as_dir/ ;;
2993  esac
2994    for ac_exec_ext in '' $ac_executable_extensions; do
2995  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2996    ac_cv_prog_AWK="$ac_prog"
2997    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2998    break 2
2999  fi
3000done
3001  done
3002IFS=$as_save_IFS
3003
3004fi
3005fi
3006AWK=$ac_cv_prog_AWK
3007if test -n "$AWK"; then
3008  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3009printf "%s\n" "$AWK" >&6; }
3010else
3011  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012printf "%s\n" "no" >&6; }
3013fi
3014
3015
3016  test -n "$AWK" && break
3017done
3018
3019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3020printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3021set x ${MAKE-make}
3022ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3023if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3024then :
3025  printf %s "(cached) " >&6
3026else $as_nop
3027  cat >conftest.make <<\_ACEOF
3028SHELL = /bin/sh
3029all:
3030	@echo '@@@%%%=$(MAKE)=@@@%%%'
3031_ACEOF
3032# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3033case `${MAKE-make} -f conftest.make 2>/dev/null` in
3034  *@@@%%%=?*=@@@%%%*)
3035    eval ac_cv_prog_make_${ac_make}_set=yes;;
3036  *)
3037    eval ac_cv_prog_make_${ac_make}_set=no;;
3038esac
3039rm -f conftest.make
3040fi
3041if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3042  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3043printf "%s\n" "yes" >&6; }
3044  SET_MAKE=
3045else
3046  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3047printf "%s\n" "no" >&6; }
3048  SET_MAKE="MAKE=${MAKE-make}"
3049fi
3050
3051rm -rf .tst 2>/dev/null
3052mkdir .tst 2>/dev/null
3053if test -d .tst; then
3054  am__leading_dot=.
3055else
3056  am__leading_dot=_
3057fi
3058rmdir .tst 2>/dev/null
3059
3060# Check whether --enable-silent-rules was given.
3061if test ${enable_silent_rules+y}
3062then :
3063  enableval=$enable_silent_rules;
3064fi
3065
3066case $enable_silent_rules in # (((
3067  yes) AM_DEFAULT_VERBOSITY=0;;
3068   no) AM_DEFAULT_VERBOSITY=1;;
3069    *) AM_DEFAULT_VERBOSITY=1;;
3070esac
3071am_make=${MAKE-make}
3072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3073printf %s "checking whether $am_make supports nested variables... " >&6; }
3074if test ${am_cv_make_support_nested_variables+y}
3075then :
3076  printf %s "(cached) " >&6
3077else $as_nop
3078  if printf "%s\n" 'TRUE=$(BAR$(V))
3079BAR0=false
3080BAR1=true
3081V=1
3082am__doit:
3083	@$(TRUE)
3084.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3085  am_cv_make_support_nested_variables=yes
3086else
3087  am_cv_make_support_nested_variables=no
3088fi
3089fi
3090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3091printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3092if test $am_cv_make_support_nested_variables = yes; then
3093    AM_V='$(V)'
3094  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3095else
3096  AM_V=$AM_DEFAULT_VERBOSITY
3097  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3098fi
3099AM_BACKSLASH='\'
3100
3101if test "`cd $srcdir && pwd`" != "`pwd`"; then
3102  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3103  # is not polluted with repeated "-I."
3104  am__isrc=' -I$(srcdir)'
3105  # test to see if srcdir already configured
3106  if test -f $srcdir/config.status; then
3107    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3108  fi
3109fi
3110
3111# test whether we have cygpath
3112if test -z "$CYGPATH_W"; then
3113  if (cygpath --version) >/dev/null 2>/dev/null; then
3114    CYGPATH_W='cygpath -w'
3115  else
3116    CYGPATH_W=echo
3117  fi
3118fi
3119
3120
3121# Define the identity of the package.
3122 PACKAGE='xdpyinfo'
3123 VERSION='1.3.3'
3124
3125
3126printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3127
3128
3129printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3130
3131# Some tools Automake needs.
3132
3133ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3134
3135
3136AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3137
3138
3139AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3140
3141
3142AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3143
3144
3145MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3146
3147# For better backward compatibility.  To be removed once Automake 1.9.x
3148# dies out for good.  For more background, see:
3149# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3150# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3151mkdir_p='$(MKDIR_P)'
3152
3153# We need awk for the "check" target (and possibly the TAP driver).  The
3154# system "awk" is bad on some platforms.
3155# Always define AMTAR for backward compatibility.  Yes, it's still used
3156# in the wild :-(  We should find a proper way to deprecate it ...
3157AMTAR='$${TAR-tar}'
3158
3159
3160# We'll loop over all known methods to create a tar archive until one works.
3161_am_tools='gnutar  pax cpio none'
3162
3163am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3164
3165
3166
3167
3168
3169# Variables for tags utilities; see am/tags.am
3170if test -z "$CTAGS"; then
3171  CTAGS=ctags
3172fi
3173
3174if test -z "$ETAGS"; then
3175  ETAGS=etags
3176fi
3177
3178if test -z "$CSCOPE"; then
3179  CSCOPE=cscope
3180fi
3181
3182
3183
3184# POSIX will say in a future version that running "rm -f" with no argument
3185# is OK; and we want to be able to make that assumption in our Makefile
3186# recipes.  So use an aggressive probe to check that the usage we want is
3187# actually supported "in the wild" to an acceptable degree.
3188# See automake bug#10828.
3189# To make any issue more visible, cause the running configure to be aborted
3190# by default if the 'rm' program in use doesn't match our expectations; the
3191# user can still override this though.
3192if rm -f && rm -fr && rm -rf; then : OK; else
3193  cat >&2 <<'END'
3194Oops!
3195
3196Your 'rm' program seems unable to run without file operands specified
3197on the command line, even when the '-f' option is present.  This is contrary
3198to the behaviour of most rm programs out there, and not conforming with
3199the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3200
3201Please tell bug-automake@gnu.org about your system, including the value
3202of your $PATH and any error possibly output before this message.  This
3203can help us improve future automake versions.
3204
3205END
3206  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3207    echo 'Configuration will proceed anyway, since you have set the' >&2
3208    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3209    echo >&2
3210  else
3211    cat >&2 <<'END'
3212Aborting the configuration process, to ensure you take notice of the issue.
3213
3214You can download and install GNU coreutils to get an 'rm' implementation
3215that behaves properly: <https://www.gnu.org/software/coreutils/>.
3216
3217If you want to complete the configuration process using your problematic
3218'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3219to "yes", and re-run configure.
3220
3221END
3222    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3223  fi
3224fi
3225
3226
3227# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248DEPDIR="${am__leading_dot}deps"
3249
3250ac_config_commands="$ac_config_commands depfiles"
3251
3252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3253printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3254cat > confinc.mk << 'END'
3255am__doit:
3256	@echo this is the am__doit target >confinc.out
3257.PHONY: am__doit
3258END
3259am__include="#"
3260am__quote=
3261# BSD make does it like this.
3262echo '.include "confinc.mk" # ignored' > confmf.BSD
3263# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3264echo 'include confinc.mk # ignored' > confmf.GNU
3265_am_result=no
3266for s in GNU BSD; do
3267  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3268   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3269   ac_status=$?
3270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271   (exit $ac_status); }
3272  case $?:`cat confinc.out 2>/dev/null` in #(
3273  '0:this is the am__doit target') :
3274    case $s in #(
3275  BSD) :
3276    am__include='.include' am__quote='"' ;; #(
3277  *) :
3278    am__include='include' am__quote='' ;;
3279esac ;; #(
3280  *) :
3281     ;;
3282esac
3283  if test "$am__include" != "#"; then
3284    _am_result="yes ($s style)"
3285    break
3286  fi
3287done
3288rm -f confinc.* confmf.*
3289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3290printf "%s\n" "${_am_result}" >&6; }
3291
3292# Check whether --enable-dependency-tracking was given.
3293if test ${enable_dependency_tracking+y}
3294then :
3295  enableval=$enable_dependency_tracking;
3296fi
3297
3298if test "x$enable_dependency_tracking" != xno; then
3299  am_depcomp="$ac_aux_dir/depcomp"
3300  AMDEPBACKSLASH='\'
3301  am__nodep='_no'
3302fi
3303 if test "x$enable_dependency_tracking" != xno; then
3304  AMDEP_TRUE=
3305  AMDEP_FALSE='#'
3306else
3307  AMDEP_TRUE='#'
3308  AMDEP_FALSE=
3309fi
3310
3311
3312ac_ext=c
3313ac_cpp='$CPP $CPPFLAGS'
3314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3316ac_compiler_gnu=$ac_cv_c_compiler_gnu
3317if test -n "$ac_tool_prefix"; then
3318  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3319set dummy ${ac_tool_prefix}gcc; ac_word=$2
3320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3321printf %s "checking for $ac_word... " >&6; }
3322if test ${ac_cv_prog_CC+y}
3323then :
3324  printf %s "(cached) " >&6
3325else $as_nop
3326  if test -n "$CC"; then
3327  ac_cv_prog_CC="$CC" # Let the user override the test.
3328else
3329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3330for as_dir in $PATH
3331do
3332  IFS=$as_save_IFS
3333  case $as_dir in #(((
3334    '') as_dir=./ ;;
3335    */) ;;
3336    *) as_dir=$as_dir/ ;;
3337  esac
3338    for ac_exec_ext in '' $ac_executable_extensions; do
3339  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3340    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3341    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3342    break 2
3343  fi
3344done
3345  done
3346IFS=$as_save_IFS
3347
3348fi
3349fi
3350CC=$ac_cv_prog_CC
3351if test -n "$CC"; then
3352  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3353printf "%s\n" "$CC" >&6; }
3354else
3355  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3356printf "%s\n" "no" >&6; }
3357fi
3358
3359
3360fi
3361if test -z "$ac_cv_prog_CC"; then
3362  ac_ct_CC=$CC
3363  # Extract the first word of "gcc", so it can be a program name with args.
3364set dummy gcc; ac_word=$2
3365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3366printf %s "checking for $ac_word... " >&6; }
3367if test ${ac_cv_prog_ac_ct_CC+y}
3368then :
3369  printf %s "(cached) " >&6
3370else $as_nop
3371  if test -n "$ac_ct_CC"; then
3372  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3373else
3374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375for as_dir in $PATH
3376do
3377  IFS=$as_save_IFS
3378  case $as_dir in #(((
3379    '') as_dir=./ ;;
3380    */) ;;
3381    *) as_dir=$as_dir/ ;;
3382  esac
3383    for ac_exec_ext in '' $ac_executable_extensions; do
3384  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3385    ac_cv_prog_ac_ct_CC="gcc"
3386    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3387    break 2
3388  fi
3389done
3390  done
3391IFS=$as_save_IFS
3392
3393fi
3394fi
3395ac_ct_CC=$ac_cv_prog_ac_ct_CC
3396if test -n "$ac_ct_CC"; then
3397  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3398printf "%s\n" "$ac_ct_CC" >&6; }
3399else
3400  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3401printf "%s\n" "no" >&6; }
3402fi
3403
3404  if test "x$ac_ct_CC" = x; then
3405    CC=""
3406  else
3407    case $cross_compiling:$ac_tool_warned in
3408yes:)
3409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3410printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3411ac_tool_warned=yes ;;
3412esac
3413    CC=$ac_ct_CC
3414  fi
3415else
3416  CC="$ac_cv_prog_CC"
3417fi
3418
3419if test -z "$CC"; then
3420          if test -n "$ac_tool_prefix"; then
3421    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3422set dummy ${ac_tool_prefix}cc; ac_word=$2
3423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3424printf %s "checking for $ac_word... " >&6; }
3425if test ${ac_cv_prog_CC+y}
3426then :
3427  printf %s "(cached) " >&6
3428else $as_nop
3429  if test -n "$CC"; then
3430  ac_cv_prog_CC="$CC" # Let the user override the test.
3431else
3432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433for as_dir in $PATH
3434do
3435  IFS=$as_save_IFS
3436  case $as_dir in #(((
3437    '') as_dir=./ ;;
3438    */) ;;
3439    *) as_dir=$as_dir/ ;;
3440  esac
3441    for ac_exec_ext in '' $ac_executable_extensions; do
3442  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3443    ac_cv_prog_CC="${ac_tool_prefix}cc"
3444    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3445    break 2
3446  fi
3447done
3448  done
3449IFS=$as_save_IFS
3450
3451fi
3452fi
3453CC=$ac_cv_prog_CC
3454if test -n "$CC"; then
3455  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3456printf "%s\n" "$CC" >&6; }
3457else
3458  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3459printf "%s\n" "no" >&6; }
3460fi
3461
3462
3463  fi
3464fi
3465if test -z "$CC"; then
3466  # Extract the first word of "cc", so it can be a program name with args.
3467set dummy cc; ac_word=$2
3468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3469printf %s "checking for $ac_word... " >&6; }
3470if test ${ac_cv_prog_CC+y}
3471then :
3472  printf %s "(cached) " >&6
3473else $as_nop
3474  if test -n "$CC"; then
3475  ac_cv_prog_CC="$CC" # Let the user override the test.
3476else
3477  ac_prog_rejected=no
3478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479for as_dir in $PATH
3480do
3481  IFS=$as_save_IFS
3482  case $as_dir in #(((
3483    '') as_dir=./ ;;
3484    */) ;;
3485    *) as_dir=$as_dir/ ;;
3486  esac
3487    for ac_exec_ext in '' $ac_executable_extensions; do
3488  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3489    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3490       ac_prog_rejected=yes
3491       continue
3492     fi
3493    ac_cv_prog_CC="cc"
3494    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3495    break 2
3496  fi
3497done
3498  done
3499IFS=$as_save_IFS
3500
3501if test $ac_prog_rejected = yes; then
3502  # We found a bogon in the path, so make sure we never use it.
3503  set dummy $ac_cv_prog_CC
3504  shift
3505  if test $# != 0; then
3506    # We chose a different compiler from the bogus one.
3507    # However, it has the same basename, so the bogon will be chosen
3508    # first if we set CC to just the basename; use the full file name.
3509    shift
3510    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3511  fi
3512fi
3513fi
3514fi
3515CC=$ac_cv_prog_CC
3516if test -n "$CC"; then
3517  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3518printf "%s\n" "$CC" >&6; }
3519else
3520  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521printf "%s\n" "no" >&6; }
3522fi
3523
3524
3525fi
3526if test -z "$CC"; then
3527  if test -n "$ac_tool_prefix"; then
3528  for ac_prog in cl.exe
3529  do
3530    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3531set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3533printf %s "checking for $ac_word... " >&6; }
3534if test ${ac_cv_prog_CC+y}
3535then :
3536  printf %s "(cached) " >&6
3537else $as_nop
3538  if test -n "$CC"; then
3539  ac_cv_prog_CC="$CC" # Let the user override the test.
3540else
3541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542for as_dir in $PATH
3543do
3544  IFS=$as_save_IFS
3545  case $as_dir in #(((
3546    '') as_dir=./ ;;
3547    */) ;;
3548    *) as_dir=$as_dir/ ;;
3549  esac
3550    for ac_exec_ext in '' $ac_executable_extensions; do
3551  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3552    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3553    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3554    break 2
3555  fi
3556done
3557  done
3558IFS=$as_save_IFS
3559
3560fi
3561fi
3562CC=$ac_cv_prog_CC
3563if test -n "$CC"; then
3564  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3565printf "%s\n" "$CC" >&6; }
3566else
3567  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568printf "%s\n" "no" >&6; }
3569fi
3570
3571
3572    test -n "$CC" && break
3573  done
3574fi
3575if test -z "$CC"; then
3576  ac_ct_CC=$CC
3577  for ac_prog in cl.exe
3578do
3579  # Extract the first word of "$ac_prog", so it can be a program name with args.
3580set dummy $ac_prog; ac_word=$2
3581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3582printf %s "checking for $ac_word... " >&6; }
3583if test ${ac_cv_prog_ac_ct_CC+y}
3584then :
3585  printf %s "(cached) " >&6
3586else $as_nop
3587  if test -n "$ac_ct_CC"; then
3588  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3589else
3590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591for as_dir in $PATH
3592do
3593  IFS=$as_save_IFS
3594  case $as_dir in #(((
3595    '') as_dir=./ ;;
3596    */) ;;
3597    *) as_dir=$as_dir/ ;;
3598  esac
3599    for ac_exec_ext in '' $ac_executable_extensions; do
3600  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3601    ac_cv_prog_ac_ct_CC="$ac_prog"
3602    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3603    break 2
3604  fi
3605done
3606  done
3607IFS=$as_save_IFS
3608
3609fi
3610fi
3611ac_ct_CC=$ac_cv_prog_ac_ct_CC
3612if test -n "$ac_ct_CC"; then
3613  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3614printf "%s\n" "$ac_ct_CC" >&6; }
3615else
3616  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617printf "%s\n" "no" >&6; }
3618fi
3619
3620
3621  test -n "$ac_ct_CC" && break
3622done
3623
3624  if test "x$ac_ct_CC" = x; then
3625    CC=""
3626  else
3627    case $cross_compiling:$ac_tool_warned in
3628yes:)
3629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3630printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3631ac_tool_warned=yes ;;
3632esac
3633    CC=$ac_ct_CC
3634  fi
3635fi
3636
3637fi
3638if test -z "$CC"; then
3639  if test -n "$ac_tool_prefix"; then
3640  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3641set dummy ${ac_tool_prefix}clang; ac_word=$2
3642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3643printf %s "checking for $ac_word... " >&6; }
3644if test ${ac_cv_prog_CC+y}
3645then :
3646  printf %s "(cached) " >&6
3647else $as_nop
3648  if test -n "$CC"; then
3649  ac_cv_prog_CC="$CC" # Let the user override the test.
3650else
3651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3652for as_dir in $PATH
3653do
3654  IFS=$as_save_IFS
3655  case $as_dir in #(((
3656    '') as_dir=./ ;;
3657    */) ;;
3658    *) as_dir=$as_dir/ ;;
3659  esac
3660    for ac_exec_ext in '' $ac_executable_extensions; do
3661  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3662    ac_cv_prog_CC="${ac_tool_prefix}clang"
3663    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3664    break 2
3665  fi
3666done
3667  done
3668IFS=$as_save_IFS
3669
3670fi
3671fi
3672CC=$ac_cv_prog_CC
3673if test -n "$CC"; then
3674  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3675printf "%s\n" "$CC" >&6; }
3676else
3677  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678printf "%s\n" "no" >&6; }
3679fi
3680
3681
3682fi
3683if test -z "$ac_cv_prog_CC"; then
3684  ac_ct_CC=$CC
3685  # Extract the first word of "clang", so it can be a program name with args.
3686set dummy clang; ac_word=$2
3687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3688printf %s "checking for $ac_word... " >&6; }
3689if test ${ac_cv_prog_ac_ct_CC+y}
3690then :
3691  printf %s "(cached) " >&6
3692else $as_nop
3693  if test -n "$ac_ct_CC"; then
3694  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3695else
3696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697for as_dir in $PATH
3698do
3699  IFS=$as_save_IFS
3700  case $as_dir in #(((
3701    '') as_dir=./ ;;
3702    */) ;;
3703    *) as_dir=$as_dir/ ;;
3704  esac
3705    for ac_exec_ext in '' $ac_executable_extensions; do
3706  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3707    ac_cv_prog_ac_ct_CC="clang"
3708    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3709    break 2
3710  fi
3711done
3712  done
3713IFS=$as_save_IFS
3714
3715fi
3716fi
3717ac_ct_CC=$ac_cv_prog_ac_ct_CC
3718if test -n "$ac_ct_CC"; then
3719  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3720printf "%s\n" "$ac_ct_CC" >&6; }
3721else
3722  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723printf "%s\n" "no" >&6; }
3724fi
3725
3726  if test "x$ac_ct_CC" = x; then
3727    CC=""
3728  else
3729    case $cross_compiling:$ac_tool_warned in
3730yes:)
3731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3732printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3733ac_tool_warned=yes ;;
3734esac
3735    CC=$ac_ct_CC
3736  fi
3737else
3738  CC="$ac_cv_prog_CC"
3739fi
3740
3741fi
3742
3743
3744test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3745printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3746as_fn_error $? "no acceptable C compiler found in \$PATH
3747See \`config.log' for more details" "$LINENO" 5; }
3748
3749# Provide some information about the compiler.
3750printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3751set X $ac_compile
3752ac_compiler=$2
3753for ac_option in --version -v -V -qversion -version; do
3754  { { ac_try="$ac_compiler $ac_option >&5"
3755case "(($ac_try" in
3756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3757  *) ac_try_echo=$ac_try;;
3758esac
3759eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3760printf "%s\n" "$ac_try_echo"; } >&5
3761  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3762  ac_status=$?
3763  if test -s conftest.err; then
3764    sed '10a\
3765... rest of stderr output deleted ...
3766         10q' conftest.err >conftest.er1
3767    cat conftest.er1 >&5
3768  fi
3769  rm -f conftest.er1 conftest.err
3770  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3771  test $ac_status = 0; }
3772done
3773
3774cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775/* end confdefs.h.  */
3776
3777int
3778main (void)
3779{
3780
3781  ;
3782  return 0;
3783}
3784_ACEOF
3785ac_clean_files_save=$ac_clean_files
3786ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3787# Try to create an executable without -o first, disregard a.out.
3788# It will help us diagnose broken compilers, and finding out an intuition
3789# of exeext.
3790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3791printf %s "checking whether the C compiler works... " >&6; }
3792ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3793
3794# The possible output files:
3795ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3796
3797ac_rmfiles=
3798for ac_file in $ac_files
3799do
3800  case $ac_file in
3801    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3802    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3803  esac
3804done
3805rm -f $ac_rmfiles
3806
3807if { { ac_try="$ac_link_default"
3808case "(($ac_try" in
3809  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3810  *) ac_try_echo=$ac_try;;
3811esac
3812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3813printf "%s\n" "$ac_try_echo"; } >&5
3814  (eval "$ac_link_default") 2>&5
3815  ac_status=$?
3816  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3817  test $ac_status = 0; }
3818then :
3819  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3820# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3821# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3822# so that the user can short-circuit this test for compilers unknown to
3823# Autoconf.
3824for ac_file in $ac_files ''
3825do
3826  test -f "$ac_file" || continue
3827  case $ac_file in
3828    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3829	;;
3830    [ab].out )
3831	# We found the default executable, but exeext='' is most
3832	# certainly right.
3833	break;;
3834    *.* )
3835	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3836	then :; else
3837	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3838	fi
3839	# We set ac_cv_exeext here because the later test for it is not
3840	# safe: cross compilers may not add the suffix if given an `-o'
3841	# argument, so we may need to know it at that point already.
3842	# Even if this section looks crufty: it has the advantage of
3843	# actually working.
3844	break;;
3845    * )
3846	break;;
3847  esac
3848done
3849test "$ac_cv_exeext" = no && ac_cv_exeext=
3850
3851else $as_nop
3852  ac_file=''
3853fi
3854if test -z "$ac_file"
3855then :
3856  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3857printf "%s\n" "no" >&6; }
3858printf "%s\n" "$as_me: failed program was:" >&5
3859sed 's/^/| /' conftest.$ac_ext >&5
3860
3861{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3862printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3863as_fn_error 77 "C compiler cannot create executables
3864See \`config.log' for more details" "$LINENO" 5; }
3865else $as_nop
3866  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3867printf "%s\n" "yes" >&6; }
3868fi
3869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3870printf %s "checking for C compiler default output file name... " >&6; }
3871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3872printf "%s\n" "$ac_file" >&6; }
3873ac_exeext=$ac_cv_exeext
3874
3875rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3876ac_clean_files=$ac_clean_files_save
3877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3878printf %s "checking for suffix of executables... " >&6; }
3879if { { ac_try="$ac_link"
3880case "(($ac_try" in
3881  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3882  *) ac_try_echo=$ac_try;;
3883esac
3884eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3885printf "%s\n" "$ac_try_echo"; } >&5
3886  (eval "$ac_link") 2>&5
3887  ac_status=$?
3888  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3889  test $ac_status = 0; }
3890then :
3891  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3892# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3893# work properly (i.e., refer to `conftest.exe'), while it won't with
3894# `rm'.
3895for ac_file in conftest.exe conftest conftest.*; do
3896  test -f "$ac_file" || continue
3897  case $ac_file in
3898    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3899    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3900	  break;;
3901    * ) break;;
3902  esac
3903done
3904else $as_nop
3905  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3906printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3907as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3908See \`config.log' for more details" "$LINENO" 5; }
3909fi
3910rm -f conftest conftest$ac_cv_exeext
3911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3912printf "%s\n" "$ac_cv_exeext" >&6; }
3913
3914rm -f conftest.$ac_ext
3915EXEEXT=$ac_cv_exeext
3916ac_exeext=$EXEEXT
3917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3918/* end confdefs.h.  */
3919#include <stdio.h>
3920int
3921main (void)
3922{
3923FILE *f = fopen ("conftest.out", "w");
3924 return ferror (f) || fclose (f) != 0;
3925
3926  ;
3927  return 0;
3928}
3929_ACEOF
3930ac_clean_files="$ac_clean_files conftest.out"
3931# Check that the compiler produces executables we can run.  If not, either
3932# the compiler is broken, or we cross compile.
3933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3934printf %s "checking whether we are cross compiling... " >&6; }
3935if test "$cross_compiling" != yes; then
3936  { { ac_try="$ac_link"
3937case "(($ac_try" in
3938  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3939  *) ac_try_echo=$ac_try;;
3940esac
3941eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3942printf "%s\n" "$ac_try_echo"; } >&5
3943  (eval "$ac_link") 2>&5
3944  ac_status=$?
3945  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3946  test $ac_status = 0; }
3947  if { ac_try='./conftest$ac_cv_exeext'
3948  { { case "(($ac_try" in
3949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950  *) ac_try_echo=$ac_try;;
3951esac
3952eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3953printf "%s\n" "$ac_try_echo"; } >&5
3954  (eval "$ac_try") 2>&5
3955  ac_status=$?
3956  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3957  test $ac_status = 0; }; }; then
3958    cross_compiling=no
3959  else
3960    if test "$cross_compiling" = maybe; then
3961	cross_compiling=yes
3962    else
3963	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3964printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3965as_fn_error 77 "cannot run C compiled programs.
3966If you meant to cross compile, use \`--host'.
3967See \`config.log' for more details" "$LINENO" 5; }
3968    fi
3969  fi
3970fi
3971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3972printf "%s\n" "$cross_compiling" >&6; }
3973
3974rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3975ac_clean_files=$ac_clean_files_save
3976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3977printf %s "checking for suffix of object files... " >&6; }
3978if test ${ac_cv_objext+y}
3979then :
3980  printf %s "(cached) " >&6
3981else $as_nop
3982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3983/* end confdefs.h.  */
3984
3985int
3986main (void)
3987{
3988
3989  ;
3990  return 0;
3991}
3992_ACEOF
3993rm -f conftest.o conftest.obj
3994if { { ac_try="$ac_compile"
3995case "(($ac_try" in
3996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997  *) ac_try_echo=$ac_try;;
3998esac
3999eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4000printf "%s\n" "$ac_try_echo"; } >&5
4001  (eval "$ac_compile") 2>&5
4002  ac_status=$?
4003  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4004  test $ac_status = 0; }
4005then :
4006  for ac_file in conftest.o conftest.obj conftest.*; do
4007  test -f "$ac_file" || continue;
4008  case $ac_file in
4009    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4010    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4011       break;;
4012  esac
4013done
4014else $as_nop
4015  printf "%s\n" "$as_me: failed program was:" >&5
4016sed 's/^/| /' conftest.$ac_ext >&5
4017
4018{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4019printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4020as_fn_error $? "cannot compute suffix of object files: cannot compile
4021See \`config.log' for more details" "$LINENO" 5; }
4022fi
4023rm -f conftest.$ac_cv_objext conftest.$ac_ext
4024fi
4025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4026printf "%s\n" "$ac_cv_objext" >&6; }
4027OBJEXT=$ac_cv_objext
4028ac_objext=$OBJEXT
4029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4030printf %s "checking whether the compiler supports GNU C... " >&6; }
4031if test ${ac_cv_c_compiler_gnu+y}
4032then :
4033  printf %s "(cached) " >&6
4034else $as_nop
4035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4036/* end confdefs.h.  */
4037
4038int
4039main (void)
4040{
4041#ifndef __GNUC__
4042       choke me
4043#endif
4044
4045  ;
4046  return 0;
4047}
4048_ACEOF
4049if ac_fn_c_try_compile "$LINENO"
4050then :
4051  ac_compiler_gnu=yes
4052else $as_nop
4053  ac_compiler_gnu=no
4054fi
4055rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4056ac_cv_c_compiler_gnu=$ac_compiler_gnu
4057
4058fi
4059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4060printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4061ac_compiler_gnu=$ac_cv_c_compiler_gnu
4062
4063if test $ac_compiler_gnu = yes; then
4064  GCC=yes
4065else
4066  GCC=
4067fi
4068ac_test_CFLAGS=${CFLAGS+y}
4069ac_save_CFLAGS=$CFLAGS
4070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4071printf %s "checking whether $CC accepts -g... " >&6; }
4072if test ${ac_cv_prog_cc_g+y}
4073then :
4074  printf %s "(cached) " >&6
4075else $as_nop
4076  ac_save_c_werror_flag=$ac_c_werror_flag
4077   ac_c_werror_flag=yes
4078   ac_cv_prog_cc_g=no
4079   CFLAGS="-g"
4080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081/* end confdefs.h.  */
4082
4083int
4084main (void)
4085{
4086
4087  ;
4088  return 0;
4089}
4090_ACEOF
4091if ac_fn_c_try_compile "$LINENO"
4092then :
4093  ac_cv_prog_cc_g=yes
4094else $as_nop
4095  CFLAGS=""
4096      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097/* end confdefs.h.  */
4098
4099int
4100main (void)
4101{
4102
4103  ;
4104  return 0;
4105}
4106_ACEOF
4107if ac_fn_c_try_compile "$LINENO"
4108then :
4109
4110else $as_nop
4111  ac_c_werror_flag=$ac_save_c_werror_flag
4112	 CFLAGS="-g"
4113	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114/* end confdefs.h.  */
4115
4116int
4117main (void)
4118{
4119
4120  ;
4121  return 0;
4122}
4123_ACEOF
4124if ac_fn_c_try_compile "$LINENO"
4125then :
4126  ac_cv_prog_cc_g=yes
4127fi
4128rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4129fi
4130rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4131fi
4132rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4133   ac_c_werror_flag=$ac_save_c_werror_flag
4134fi
4135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4136printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4137if test $ac_test_CFLAGS; then
4138  CFLAGS=$ac_save_CFLAGS
4139elif test $ac_cv_prog_cc_g = yes; then
4140  if test "$GCC" = yes; then
4141    CFLAGS="-g -O2"
4142  else
4143    CFLAGS="-g"
4144  fi
4145else
4146  if test "$GCC" = yes; then
4147    CFLAGS="-O2"
4148  else
4149    CFLAGS=
4150  fi
4151fi
4152ac_prog_cc_stdc=no
4153if test x$ac_prog_cc_stdc = xno
4154then :
4155  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4156printf %s "checking for $CC option to enable C11 features... " >&6; }
4157if test ${ac_cv_prog_cc_c11+y}
4158then :
4159  printf %s "(cached) " >&6
4160else $as_nop
4161  ac_cv_prog_cc_c11=no
4162ac_save_CC=$CC
4163cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164/* end confdefs.h.  */
4165$ac_c_conftest_c11_program
4166_ACEOF
4167for ac_arg in '' -std=gnu11
4168do
4169  CC="$ac_save_CC $ac_arg"
4170  if ac_fn_c_try_compile "$LINENO"
4171then :
4172  ac_cv_prog_cc_c11=$ac_arg
4173fi
4174rm -f core conftest.err conftest.$ac_objext conftest.beam
4175  test "x$ac_cv_prog_cc_c11" != "xno" && break
4176done
4177rm -f conftest.$ac_ext
4178CC=$ac_save_CC
4179fi
4180
4181if test "x$ac_cv_prog_cc_c11" = xno
4182then :
4183  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4184printf "%s\n" "unsupported" >&6; }
4185else $as_nop
4186  if test "x$ac_cv_prog_cc_c11" = x
4187then :
4188  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4189printf "%s\n" "none needed" >&6; }
4190else $as_nop
4191  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4192printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4193     CC="$CC $ac_cv_prog_cc_c11"
4194fi
4195  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4196  ac_prog_cc_stdc=c11
4197fi
4198fi
4199if test x$ac_prog_cc_stdc = xno
4200then :
4201  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4202printf %s "checking for $CC option to enable C99 features... " >&6; }
4203if test ${ac_cv_prog_cc_c99+y}
4204then :
4205  printf %s "(cached) " >&6
4206else $as_nop
4207  ac_cv_prog_cc_c99=no
4208ac_save_CC=$CC
4209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210/* end confdefs.h.  */
4211$ac_c_conftest_c99_program
4212_ACEOF
4213for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4214do
4215  CC="$ac_save_CC $ac_arg"
4216  if ac_fn_c_try_compile "$LINENO"
4217then :
4218  ac_cv_prog_cc_c99=$ac_arg
4219fi
4220rm -f core conftest.err conftest.$ac_objext conftest.beam
4221  test "x$ac_cv_prog_cc_c99" != "xno" && break
4222done
4223rm -f conftest.$ac_ext
4224CC=$ac_save_CC
4225fi
4226
4227if test "x$ac_cv_prog_cc_c99" = xno
4228then :
4229  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4230printf "%s\n" "unsupported" >&6; }
4231else $as_nop
4232  if test "x$ac_cv_prog_cc_c99" = x
4233then :
4234  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4235printf "%s\n" "none needed" >&6; }
4236else $as_nop
4237  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4238printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4239     CC="$CC $ac_cv_prog_cc_c99"
4240fi
4241  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4242  ac_prog_cc_stdc=c99
4243fi
4244fi
4245if test x$ac_prog_cc_stdc = xno
4246then :
4247  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4248printf %s "checking for $CC option to enable C89 features... " >&6; }
4249if test ${ac_cv_prog_cc_c89+y}
4250then :
4251  printf %s "(cached) " >&6
4252else $as_nop
4253  ac_cv_prog_cc_c89=no
4254ac_save_CC=$CC
4255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256/* end confdefs.h.  */
4257$ac_c_conftest_c89_program
4258_ACEOF
4259for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4260do
4261  CC="$ac_save_CC $ac_arg"
4262  if ac_fn_c_try_compile "$LINENO"
4263then :
4264  ac_cv_prog_cc_c89=$ac_arg
4265fi
4266rm -f core conftest.err conftest.$ac_objext conftest.beam
4267  test "x$ac_cv_prog_cc_c89" != "xno" && break
4268done
4269rm -f conftest.$ac_ext
4270CC=$ac_save_CC
4271fi
4272
4273if test "x$ac_cv_prog_cc_c89" = xno
4274then :
4275  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4276printf "%s\n" "unsupported" >&6; }
4277else $as_nop
4278  if test "x$ac_cv_prog_cc_c89" = x
4279then :
4280  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4281printf "%s\n" "none needed" >&6; }
4282else $as_nop
4283  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4284printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4285     CC="$CC $ac_cv_prog_cc_c89"
4286fi
4287  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4288  ac_prog_cc_stdc=c89
4289fi
4290fi
4291
4292ac_ext=c
4293ac_cpp='$CPP $CPPFLAGS'
4294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4296ac_compiler_gnu=$ac_cv_c_compiler_gnu
4297
4298
4299  ac_ext=c
4300ac_cpp='$CPP $CPPFLAGS'
4301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4303ac_compiler_gnu=$ac_cv_c_compiler_gnu
4304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4305printf %s "checking whether $CC understands -c and -o together... " >&6; }
4306if test ${am_cv_prog_cc_c_o+y}
4307then :
4308  printf %s "(cached) " >&6
4309else $as_nop
4310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4311/* end confdefs.h.  */
4312
4313int
4314main (void)
4315{
4316
4317  ;
4318  return 0;
4319}
4320_ACEOF
4321  # Make sure it works both with $CC and with simple cc.
4322  # Following AC_PROG_CC_C_O, we do the test twice because some
4323  # compilers refuse to overwrite an existing .o file with -o,
4324  # though they will create one.
4325  am_cv_prog_cc_c_o=yes
4326  for am_i in 1 2; do
4327    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4328   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4329   ac_status=$?
4330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331   (exit $ac_status); } \
4332         && test -f conftest2.$ac_objext; then
4333      : OK
4334    else
4335      am_cv_prog_cc_c_o=no
4336      break
4337    fi
4338  done
4339  rm -f core conftest*
4340  unset am_i
4341fi
4342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4343printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4344if test "$am_cv_prog_cc_c_o" != yes; then
4345   # Losing compiler, so override with the script.
4346   # FIXME: It is wrong to rewrite CC.
4347   # But if we don't then we get into trouble of one sort or another.
4348   # A longer-term fix would be to have automake use am__CC in this case,
4349   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4350   CC="$am_aux_dir/compile $CC"
4351fi
4352ac_ext=c
4353ac_cpp='$CPP $CPPFLAGS'
4354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4356ac_compiler_gnu=$ac_cv_c_compiler_gnu
4357
4358
4359depcc="$CC"   am_compiler_list=
4360
4361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4362printf %s "checking dependency style of $depcc... " >&6; }
4363if test ${am_cv_CC_dependencies_compiler_type+y}
4364then :
4365  printf %s "(cached) " >&6
4366else $as_nop
4367  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4368  # We make a subdir and do the tests there.  Otherwise we can end up
4369  # making bogus files that we don't know about and never remove.  For
4370  # instance it was reported that on HP-UX the gcc test will end up
4371  # making a dummy file named 'D' -- because '-MD' means "put the output
4372  # in D".
4373  rm -rf conftest.dir
4374  mkdir conftest.dir
4375  # Copy depcomp to subdir because otherwise we won't find it if we're
4376  # using a relative directory.
4377  cp "$am_depcomp" conftest.dir
4378  cd conftest.dir
4379  # We will build objects and dependencies in a subdirectory because
4380  # it helps to detect inapplicable dependency modes.  For instance
4381  # both Tru64's cc and ICC support -MD to output dependencies as a
4382  # side effect of compilation, but ICC will put the dependencies in
4383  # the current directory while Tru64 will put them in the object
4384  # directory.
4385  mkdir sub
4386
4387  am_cv_CC_dependencies_compiler_type=none
4388  if test "$am_compiler_list" = ""; then
4389     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4390  fi
4391  am__universal=false
4392  case " $depcc " in #(
4393     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4394     esac
4395
4396  for depmode in $am_compiler_list; do
4397    # Setup a source with many dependencies, because some compilers
4398    # like to wrap large dependency lists on column 80 (with \), and
4399    # we should not choose a depcomp mode which is confused by this.
4400    #
4401    # We need to recreate these files for each test, as the compiler may
4402    # overwrite some of them when testing with obscure command lines.
4403    # This happens at least with the AIX C compiler.
4404    : > sub/conftest.c
4405    for i in 1 2 3 4 5 6; do
4406      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4407      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4408      # Solaris 10 /bin/sh.
4409      echo '/* dummy */' > sub/conftst$i.h
4410    done
4411    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4412
4413    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4414    # mode.  It turns out that the SunPro C++ compiler does not properly
4415    # handle '-M -o', and we need to detect this.  Also, some Intel
4416    # versions had trouble with output in subdirs.
4417    am__obj=sub/conftest.${OBJEXT-o}
4418    am__minus_obj="-o $am__obj"
4419    case $depmode in
4420    gcc)
4421      # This depmode causes a compiler race in universal mode.
4422      test "$am__universal" = false || continue
4423      ;;
4424    nosideeffect)
4425      # After this tag, mechanisms are not by side-effect, so they'll
4426      # only be used when explicitly requested.
4427      if test "x$enable_dependency_tracking" = xyes; then
4428	continue
4429      else
4430	break
4431      fi
4432      ;;
4433    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4434      # This compiler won't grok '-c -o', but also, the minuso test has
4435      # not run yet.  These depmodes are late enough in the game, and
4436      # so weak that their functioning should not be impacted.
4437      am__obj=conftest.${OBJEXT-o}
4438      am__minus_obj=
4439      ;;
4440    none) break ;;
4441    esac
4442    if depmode=$depmode \
4443       source=sub/conftest.c object=$am__obj \
4444       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4445       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4446         >/dev/null 2>conftest.err &&
4447       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4448       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4449       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4450       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4451      # icc doesn't choke on unknown options, it will just issue warnings
4452      # or remarks (even with -Werror).  So we grep stderr for any message
4453      # that says an option was ignored or not supported.
4454      # When given -MP, icc 7.0 and 7.1 complain thusly:
4455      #   icc: Command line warning: ignoring option '-M'; no argument required
4456      # The diagnosis changed in icc 8.0:
4457      #   icc: Command line remark: option '-MP' not supported
4458      if (grep 'ignoring option' conftest.err ||
4459          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4460        am_cv_CC_dependencies_compiler_type=$depmode
4461        break
4462      fi
4463    fi
4464  done
4465
4466  cd ..
4467  rm -rf conftest.dir
4468else
4469  am_cv_CC_dependencies_compiler_type=none
4470fi
4471
4472fi
4473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4474printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4475CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4476
4477 if
4478  test "x$enable_dependency_tracking" != xno \
4479  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4480  am__fastdepCC_TRUE=
4481  am__fastdepCC_FALSE='#'
4482else
4483  am__fastdepCC_TRUE='#'
4484  am__fastdepCC_FALSE=
4485fi
4486
4487
4488
4489
4490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4491printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4492if test ${ac_cv_c_undeclared_builtin_options+y}
4493then :
4494  printf %s "(cached) " >&6
4495else $as_nop
4496  ac_save_CFLAGS=$CFLAGS
4497   ac_cv_c_undeclared_builtin_options='cannot detect'
4498   for ac_arg in '' -fno-builtin; do
4499     CFLAGS="$ac_save_CFLAGS $ac_arg"
4500     # This test program should *not* compile successfully.
4501     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4502/* end confdefs.h.  */
4503
4504int
4505main (void)
4506{
4507(void) strchr;
4508  ;
4509  return 0;
4510}
4511_ACEOF
4512if ac_fn_c_try_compile "$LINENO"
4513then :
4514
4515else $as_nop
4516  # This test program should compile successfully.
4517        # No library function is consistently available on
4518        # freestanding implementations, so test against a dummy
4519        # declaration.  Include always-available headers on the
4520        # off chance that they somehow elicit warnings.
4521        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4522/* end confdefs.h.  */
4523#include <float.h>
4524#include <limits.h>
4525#include <stdarg.h>
4526#include <stddef.h>
4527extern void ac_decl (int, char *);
4528
4529int
4530main (void)
4531{
4532(void) ac_decl (0, (char *) 0);
4533  (void) ac_decl;
4534
4535  ;
4536  return 0;
4537}
4538_ACEOF
4539if ac_fn_c_try_compile "$LINENO"
4540then :
4541  if test x"$ac_arg" = x
4542then :
4543  ac_cv_c_undeclared_builtin_options='none needed'
4544else $as_nop
4545  ac_cv_c_undeclared_builtin_options=$ac_arg
4546fi
4547          break
4548fi
4549rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4550fi
4551rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4552    done
4553    CFLAGS=$ac_save_CFLAGS
4554
4555fi
4556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4557printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4558  case $ac_cv_c_undeclared_builtin_options in #(
4559  'cannot detect') :
4560    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4561printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4562as_fn_error $? "cannot make $CC report undeclared builtins
4563See \`config.log' for more details" "$LINENO" 5; } ;; #(
4564  'none needed') :
4565    ac_c_undeclared_builtin_options='' ;; #(
4566  *) :
4567    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4568esac
4569
4570ac_header= ac_cache=
4571for ac_item in $ac_header_c_list
4572do
4573  if test $ac_cache; then
4574    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4575    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4576      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4577    fi
4578    ac_header= ac_cache=
4579  elif test $ac_header; then
4580    ac_cache=$ac_item
4581  else
4582    ac_header=$ac_item
4583  fi
4584done
4585
4586
4587
4588
4589
4590
4591
4592
4593if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4594then :
4595
4596printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4597
4598fi
4599
4600
4601
4602
4603ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4604if test "x$ac_cv_have_decl___clang__" = xyes
4605then :
4606  CLANGCC="yes"
4607else $as_nop
4608  CLANGCC="no"
4609fi
4610ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4611if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4612then :
4613  INTELCC="yes"
4614else $as_nop
4615  INTELCC="no"
4616fi
4617ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4618if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4619then :
4620  SUNCC="yes"
4621else $as_nop
4622  SUNCC="no"
4623fi
4624
4625
4626
4627
4628
4629
4630
4631
4632if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4633	if test -n "$ac_tool_prefix"; then
4634  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4635set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4637printf %s "checking for $ac_word... " >&6; }
4638if test ${ac_cv_path_PKG_CONFIG+y}
4639then :
4640  printf %s "(cached) " >&6
4641else $as_nop
4642  case $PKG_CONFIG in
4643  [\\/]* | ?:[\\/]*)
4644  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4645  ;;
4646  *)
4647  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648for as_dir in $PATH
4649do
4650  IFS=$as_save_IFS
4651  case $as_dir in #(((
4652    '') as_dir=./ ;;
4653    */) ;;
4654    *) as_dir=$as_dir/ ;;
4655  esac
4656    for ac_exec_ext in '' $ac_executable_extensions; do
4657  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4658    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4659    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4660    break 2
4661  fi
4662done
4663  done
4664IFS=$as_save_IFS
4665
4666  ;;
4667esac
4668fi
4669PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4670if test -n "$PKG_CONFIG"; then
4671  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4672printf "%s\n" "$PKG_CONFIG" >&6; }
4673else
4674  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4675printf "%s\n" "no" >&6; }
4676fi
4677
4678
4679fi
4680if test -z "$ac_cv_path_PKG_CONFIG"; then
4681  ac_pt_PKG_CONFIG=$PKG_CONFIG
4682  # Extract the first word of "pkg-config", so it can be a program name with args.
4683set dummy pkg-config; ac_word=$2
4684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4685printf %s "checking for $ac_word... " >&6; }
4686if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4687then :
4688  printf %s "(cached) " >&6
4689else $as_nop
4690  case $ac_pt_PKG_CONFIG in
4691  [\\/]* | ?:[\\/]*)
4692  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4693  ;;
4694  *)
4695  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696for as_dir in $PATH
4697do
4698  IFS=$as_save_IFS
4699  case $as_dir in #(((
4700    '') as_dir=./ ;;
4701    */) ;;
4702    *) as_dir=$as_dir/ ;;
4703  esac
4704    for ac_exec_ext in '' $ac_executable_extensions; do
4705  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4706    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4707    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4708    break 2
4709  fi
4710done
4711  done
4712IFS=$as_save_IFS
4713
4714  ;;
4715esac
4716fi
4717ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4718if test -n "$ac_pt_PKG_CONFIG"; then
4719  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4720printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4721else
4722  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4723printf "%s\n" "no" >&6; }
4724fi
4725
4726  if test "x$ac_pt_PKG_CONFIG" = x; then
4727    PKG_CONFIG=""
4728  else
4729    case $cross_compiling:$ac_tool_warned in
4730yes:)
4731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4732printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4733ac_tool_warned=yes ;;
4734esac
4735    PKG_CONFIG=$ac_pt_PKG_CONFIG
4736  fi
4737else
4738  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4739fi
4740
4741fi
4742if test -n "$PKG_CONFIG"; then
4743	_pkg_min_version=0.9.0
4744	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4745printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4746	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4747		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4748printf "%s\n" "yes" >&6; }
4749	else
4750		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4751printf "%s\n" "no" >&6; }
4752		PKG_CONFIG=""
4753	fi
4754fi
4755
4756
4757  # Make sure we can run config.sub.
4758$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4759  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4760
4761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4762printf %s "checking build system type... " >&6; }
4763if test ${ac_cv_build+y}
4764then :
4765  printf %s "(cached) " >&6
4766else $as_nop
4767  ac_build_alias=$build_alias
4768test "x$ac_build_alias" = x &&
4769  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4770test "x$ac_build_alias" = x &&
4771  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4772ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4773  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4774
4775fi
4776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4777printf "%s\n" "$ac_cv_build" >&6; }
4778case $ac_cv_build in
4779*-*-*) ;;
4780*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4781esac
4782build=$ac_cv_build
4783ac_save_IFS=$IFS; IFS='-'
4784set x $ac_cv_build
4785shift
4786build_cpu=$1
4787build_vendor=$2
4788shift; shift
4789# Remember, the first character of IFS is used to create $*,
4790# except with old shells:
4791build_os=$*
4792IFS=$ac_save_IFS
4793case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4794
4795
4796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4797printf %s "checking host system type... " >&6; }
4798if test ${ac_cv_host+y}
4799then :
4800  printf %s "(cached) " >&6
4801else $as_nop
4802  if test "x$host_alias" = x; then
4803  ac_cv_host=$ac_cv_build
4804else
4805  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4806    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4807fi
4808
4809fi
4810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4811printf "%s\n" "$ac_cv_host" >&6; }
4812case $ac_cv_host in
4813*-*-*) ;;
4814*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4815esac
4816host=$ac_cv_host
4817ac_save_IFS=$IFS; IFS='-'
4818set x $ac_cv_host
4819shift
4820host_cpu=$1
4821host_vendor=$2
4822shift; shift
4823# Remember, the first character of IFS is used to create $*,
4824# except with old shells:
4825host_os=$*
4826IFS=$ac_save_IFS
4827case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4828
4829
4830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4831printf %s "checking for a sed that does not truncate output... " >&6; }
4832if test ${ac_cv_path_SED+y}
4833then :
4834  printf %s "(cached) " >&6
4835else $as_nop
4836            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4837     for ac_i in 1 2 3 4 5 6 7; do
4838       ac_script="$ac_script$as_nl$ac_script"
4839     done
4840     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4841     { ac_script=; unset ac_script;}
4842     if test -z "$SED"; then
4843  ac_path_SED_found=false
4844  # Loop through the user's path and test for each of PROGNAME-LIST
4845  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846for as_dir in $PATH
4847do
4848  IFS=$as_save_IFS
4849  case $as_dir in #(((
4850    '') as_dir=./ ;;
4851    */) ;;
4852    *) as_dir=$as_dir/ ;;
4853  esac
4854    for ac_prog in sed gsed
4855   do
4856    for ac_exec_ext in '' $ac_executable_extensions; do
4857      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4858      as_fn_executable_p "$ac_path_SED" || continue
4859# Check for GNU ac_path_SED and select it if it is found.
4860  # Check for GNU $ac_path_SED
4861case `"$ac_path_SED" --version 2>&1` in
4862*GNU*)
4863  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4864*)
4865  ac_count=0
4866  printf %s 0123456789 >"conftest.in"
4867  while :
4868  do
4869    cat "conftest.in" "conftest.in" >"conftest.tmp"
4870    mv "conftest.tmp" "conftest.in"
4871    cp "conftest.in" "conftest.nl"
4872    printf "%s\n" '' >> "conftest.nl"
4873    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4874    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4875    as_fn_arith $ac_count + 1 && ac_count=$as_val
4876    if test $ac_count -gt ${ac_path_SED_max-0}; then
4877      # Best one so far, save it but keep looking for a better one
4878      ac_cv_path_SED="$ac_path_SED"
4879      ac_path_SED_max=$ac_count
4880    fi
4881    # 10*(2^10) chars as input seems more than enough
4882    test $ac_count -gt 10 && break
4883  done
4884  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4885esac
4886
4887      $ac_path_SED_found && break 3
4888    done
4889  done
4890  done
4891IFS=$as_save_IFS
4892  if test -z "$ac_cv_path_SED"; then
4893    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4894  fi
4895else
4896  ac_cv_path_SED=$SED
4897fi
4898
4899fi
4900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4901printf "%s\n" "$ac_cv_path_SED" >&6; }
4902 SED="$ac_cv_path_SED"
4903  rm -f conftest.sed
4904
4905
4906
4907
4908
4909
4910# Check whether --enable-selective-werror was given.
4911if test ${enable_selective_werror+y}
4912then :
4913  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4914else $as_nop
4915  SELECTIVE_WERROR=yes
4916fi
4917
4918
4919
4920
4921
4922# -v is too short to test reliably with XORG_TESTSET_CFLAG
4923if test "x$SUNCC" = "xyes"; then
4924    BASE_CFLAGS="-v"
4925else
4926    BASE_CFLAGS=""
4927fi
4928
4929# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943xorg_testset_save_CFLAGS="$CFLAGS"
4944
4945if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4946	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4947	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4948printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4949if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4950then :
4951  printf %s "(cached) " >&6
4952else $as_nop
4953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4954/* end confdefs.h.  */
4955int i;
4956_ACEOF
4957if ac_fn_c_try_compile "$LINENO"
4958then :
4959  xorg_cv_cc_flag_unknown_warning_option=yes
4960else $as_nop
4961  xorg_cv_cc_flag_unknown_warning_option=no
4962fi
4963rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4964fi
4965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4966printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4967	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4968	CFLAGS="$xorg_testset_save_CFLAGS"
4969fi
4970
4971if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4972	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4973		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4974	fi
4975	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4976	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4977printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4978if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4979then :
4980  printf %s "(cached) " >&6
4981else $as_nop
4982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983/* end confdefs.h.  */
4984int i;
4985_ACEOF
4986if ac_fn_c_try_compile "$LINENO"
4987then :
4988  xorg_cv_cc_flag_unused_command_line_argument=yes
4989else $as_nop
4990  xorg_cv_cc_flag_unused_command_line_argument=no
4991fi
4992rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4993fi
4994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4995printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4996	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4997	CFLAGS="$xorg_testset_save_CFLAGS"
4998fi
4999
5000found="no"
5001
5002	if test $found = "no" ; then
5003		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5004			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5005		fi
5006
5007		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5008			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5009		fi
5010
5011		CFLAGS="$CFLAGS -Wall"
5012
5013		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5014printf %s "checking if $CC supports -Wall... " >&6; }
5015		cacheid=xorg_cv_cc_flag__Wall
5016		if eval test \${$cacheid+y}
5017then :
5018  printf %s "(cached) " >&6
5019else $as_nop
5020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5021/* end confdefs.h.  */
5022int i;
5023int
5024main (void)
5025{
5026
5027  ;
5028  return 0;
5029}
5030_ACEOF
5031if ac_fn_c_try_link "$LINENO"
5032then :
5033  eval $cacheid=yes
5034else $as_nop
5035  eval $cacheid=no
5036fi
5037rm -f core conftest.err conftest.$ac_objext conftest.beam \
5038    conftest$ac_exeext conftest.$ac_ext
5039fi
5040
5041
5042		CFLAGS="$xorg_testset_save_CFLAGS"
5043
5044		eval supported=\$$cacheid
5045		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5046printf "%s\n" "$supported" >&6; }
5047		if test "$supported" = "yes" ; then
5048			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5049			found="yes"
5050		fi
5051	fi
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067xorg_testset_save_CFLAGS="$CFLAGS"
5068
5069if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5070	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5071	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5072printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5073if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5074then :
5075  printf %s "(cached) " >&6
5076else $as_nop
5077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5078/* end confdefs.h.  */
5079int i;
5080_ACEOF
5081if ac_fn_c_try_compile "$LINENO"
5082then :
5083  xorg_cv_cc_flag_unknown_warning_option=yes
5084else $as_nop
5085  xorg_cv_cc_flag_unknown_warning_option=no
5086fi
5087rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5088fi
5089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5090printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5091	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5092	CFLAGS="$xorg_testset_save_CFLAGS"
5093fi
5094
5095if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5096	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5097		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5098	fi
5099	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5100	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5101printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5102if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5103then :
5104  printf %s "(cached) " >&6
5105else $as_nop
5106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5107/* end confdefs.h.  */
5108int i;
5109_ACEOF
5110if ac_fn_c_try_compile "$LINENO"
5111then :
5112  xorg_cv_cc_flag_unused_command_line_argument=yes
5113else $as_nop
5114  xorg_cv_cc_flag_unused_command_line_argument=no
5115fi
5116rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5117fi
5118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5119printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5120	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5121	CFLAGS="$xorg_testset_save_CFLAGS"
5122fi
5123
5124found="no"
5125
5126	if test $found = "no" ; then
5127		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5128			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5129		fi
5130
5131		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5132			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5133		fi
5134
5135		CFLAGS="$CFLAGS -Wpointer-arith"
5136
5137		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5138printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5139		cacheid=xorg_cv_cc_flag__Wpointer_arith
5140		if eval test \${$cacheid+y}
5141then :
5142  printf %s "(cached) " >&6
5143else $as_nop
5144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5145/* end confdefs.h.  */
5146int i;
5147int
5148main (void)
5149{
5150
5151  ;
5152  return 0;
5153}
5154_ACEOF
5155if ac_fn_c_try_link "$LINENO"
5156then :
5157  eval $cacheid=yes
5158else $as_nop
5159  eval $cacheid=no
5160fi
5161rm -f core conftest.err conftest.$ac_objext conftest.beam \
5162    conftest$ac_exeext conftest.$ac_ext
5163fi
5164
5165
5166		CFLAGS="$xorg_testset_save_CFLAGS"
5167
5168		eval supported=\$$cacheid
5169		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5170printf "%s\n" "$supported" >&6; }
5171		if test "$supported" = "yes" ; then
5172			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5173			found="yes"
5174		fi
5175	fi
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191xorg_testset_save_CFLAGS="$CFLAGS"
5192
5193if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5194	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5195	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5196printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5197if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5198then :
5199  printf %s "(cached) " >&6
5200else $as_nop
5201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5202/* end confdefs.h.  */
5203int i;
5204_ACEOF
5205if ac_fn_c_try_compile "$LINENO"
5206then :
5207  xorg_cv_cc_flag_unknown_warning_option=yes
5208else $as_nop
5209  xorg_cv_cc_flag_unknown_warning_option=no
5210fi
5211rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5212fi
5213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5214printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5215	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5216	CFLAGS="$xorg_testset_save_CFLAGS"
5217fi
5218
5219if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5220	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5221		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5222	fi
5223	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5224	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5225printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5226if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5227then :
5228  printf %s "(cached) " >&6
5229else $as_nop
5230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5231/* end confdefs.h.  */
5232int i;
5233_ACEOF
5234if ac_fn_c_try_compile "$LINENO"
5235then :
5236  xorg_cv_cc_flag_unused_command_line_argument=yes
5237else $as_nop
5238  xorg_cv_cc_flag_unused_command_line_argument=no
5239fi
5240rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5241fi
5242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5243printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5244	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5245	CFLAGS="$xorg_testset_save_CFLAGS"
5246fi
5247
5248found="no"
5249
5250	if test $found = "no" ; then
5251		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5252			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5253		fi
5254
5255		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5256			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5257		fi
5258
5259		CFLAGS="$CFLAGS -Wmissing-declarations"
5260
5261		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5262printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5263		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5264		if eval test \${$cacheid+y}
5265then :
5266  printf %s "(cached) " >&6
5267else $as_nop
5268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269/* end confdefs.h.  */
5270int i;
5271int
5272main (void)
5273{
5274
5275  ;
5276  return 0;
5277}
5278_ACEOF
5279if ac_fn_c_try_link "$LINENO"
5280then :
5281  eval $cacheid=yes
5282else $as_nop
5283  eval $cacheid=no
5284fi
5285rm -f core conftest.err conftest.$ac_objext conftest.beam \
5286    conftest$ac_exeext conftest.$ac_ext
5287fi
5288
5289
5290		CFLAGS="$xorg_testset_save_CFLAGS"
5291
5292		eval supported=\$$cacheid
5293		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5294printf "%s\n" "$supported" >&6; }
5295		if test "$supported" = "yes" ; then
5296			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5297			found="yes"
5298		fi
5299	fi
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315xorg_testset_save_CFLAGS="$CFLAGS"
5316
5317if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5318	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5319	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5320printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5321if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5322then :
5323  printf %s "(cached) " >&6
5324else $as_nop
5325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326/* end confdefs.h.  */
5327int i;
5328_ACEOF
5329if ac_fn_c_try_compile "$LINENO"
5330then :
5331  xorg_cv_cc_flag_unknown_warning_option=yes
5332else $as_nop
5333  xorg_cv_cc_flag_unknown_warning_option=no
5334fi
5335rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5336fi
5337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5338printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5339	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5340	CFLAGS="$xorg_testset_save_CFLAGS"
5341fi
5342
5343if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5344	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5345		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5346	fi
5347	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5348	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5349printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5350if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5351then :
5352  printf %s "(cached) " >&6
5353else $as_nop
5354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355/* end confdefs.h.  */
5356int i;
5357_ACEOF
5358if ac_fn_c_try_compile "$LINENO"
5359then :
5360  xorg_cv_cc_flag_unused_command_line_argument=yes
5361else $as_nop
5362  xorg_cv_cc_flag_unused_command_line_argument=no
5363fi
5364rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5365fi
5366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5367printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5368	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5369	CFLAGS="$xorg_testset_save_CFLAGS"
5370fi
5371
5372found="no"
5373
5374	if test $found = "no" ; then
5375		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5376			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5377		fi
5378
5379		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5380			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5381		fi
5382
5383		CFLAGS="$CFLAGS -Wformat=2"
5384
5385		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5386printf %s "checking if $CC supports -Wformat=2... " >&6; }
5387		cacheid=xorg_cv_cc_flag__Wformat_2
5388		if eval test \${$cacheid+y}
5389then :
5390  printf %s "(cached) " >&6
5391else $as_nop
5392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5393/* end confdefs.h.  */
5394int i;
5395int
5396main (void)
5397{
5398
5399  ;
5400  return 0;
5401}
5402_ACEOF
5403if ac_fn_c_try_link "$LINENO"
5404then :
5405  eval $cacheid=yes
5406else $as_nop
5407  eval $cacheid=no
5408fi
5409rm -f core conftest.err conftest.$ac_objext conftest.beam \
5410    conftest$ac_exeext conftest.$ac_ext
5411fi
5412
5413
5414		CFLAGS="$xorg_testset_save_CFLAGS"
5415
5416		eval supported=\$$cacheid
5417		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5418printf "%s\n" "$supported" >&6; }
5419		if test "$supported" = "yes" ; then
5420			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5421			found="yes"
5422		fi
5423	fi
5424
5425	if test $found = "no" ; then
5426		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5427			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5428		fi
5429
5430		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5431			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5432		fi
5433
5434		CFLAGS="$CFLAGS -Wformat"
5435
5436		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5437printf %s "checking if $CC supports -Wformat... " >&6; }
5438		cacheid=xorg_cv_cc_flag__Wformat
5439		if eval test \${$cacheid+y}
5440then :
5441  printf %s "(cached) " >&6
5442else $as_nop
5443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5444/* end confdefs.h.  */
5445int i;
5446int
5447main (void)
5448{
5449
5450  ;
5451  return 0;
5452}
5453_ACEOF
5454if ac_fn_c_try_link "$LINENO"
5455then :
5456  eval $cacheid=yes
5457else $as_nop
5458  eval $cacheid=no
5459fi
5460rm -f core conftest.err conftest.$ac_objext conftest.beam \
5461    conftest$ac_exeext conftest.$ac_ext
5462fi
5463
5464
5465		CFLAGS="$xorg_testset_save_CFLAGS"
5466
5467		eval supported=\$$cacheid
5468		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5469printf "%s\n" "$supported" >&6; }
5470		if test "$supported" = "yes" ; then
5471			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5472			found="yes"
5473		fi
5474	fi
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492xorg_testset_save_CFLAGS="$CFLAGS"
5493
5494if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5495	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5496	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5497printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5498if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5499then :
5500  printf %s "(cached) " >&6
5501else $as_nop
5502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5503/* end confdefs.h.  */
5504int i;
5505_ACEOF
5506if ac_fn_c_try_compile "$LINENO"
5507then :
5508  xorg_cv_cc_flag_unknown_warning_option=yes
5509else $as_nop
5510  xorg_cv_cc_flag_unknown_warning_option=no
5511fi
5512rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5513fi
5514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5515printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5516	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5517	CFLAGS="$xorg_testset_save_CFLAGS"
5518fi
5519
5520if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5521	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5522		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5523	fi
5524	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5525	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5526printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5527if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5528then :
5529  printf %s "(cached) " >&6
5530else $as_nop
5531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532/* end confdefs.h.  */
5533int i;
5534_ACEOF
5535if ac_fn_c_try_compile "$LINENO"
5536then :
5537  xorg_cv_cc_flag_unused_command_line_argument=yes
5538else $as_nop
5539  xorg_cv_cc_flag_unused_command_line_argument=no
5540fi
5541rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5542fi
5543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5544printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5545	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5546	CFLAGS="$xorg_testset_save_CFLAGS"
5547fi
5548
5549found="no"
5550
5551	if test $found = "no" ; then
5552		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5553			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5554		fi
5555
5556		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5557			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5558		fi
5559
5560		CFLAGS="$CFLAGS -Wstrict-prototypes"
5561
5562		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5563printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5564		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5565		if eval test \${$cacheid+y}
5566then :
5567  printf %s "(cached) " >&6
5568else $as_nop
5569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5570/* end confdefs.h.  */
5571int i;
5572int
5573main (void)
5574{
5575
5576  ;
5577  return 0;
5578}
5579_ACEOF
5580if ac_fn_c_try_link "$LINENO"
5581then :
5582  eval $cacheid=yes
5583else $as_nop
5584  eval $cacheid=no
5585fi
5586rm -f core conftest.err conftest.$ac_objext conftest.beam \
5587    conftest$ac_exeext conftest.$ac_ext
5588fi
5589
5590
5591		CFLAGS="$xorg_testset_save_CFLAGS"
5592
5593		eval supported=\$$cacheid
5594		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5595printf "%s\n" "$supported" >&6; }
5596		if test "$supported" = "yes" ; then
5597			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5598			found="yes"
5599		fi
5600	fi
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616xorg_testset_save_CFLAGS="$CFLAGS"
5617
5618if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5619	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5620	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5621printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5622if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5623then :
5624  printf %s "(cached) " >&6
5625else $as_nop
5626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5627/* end confdefs.h.  */
5628int i;
5629_ACEOF
5630if ac_fn_c_try_compile "$LINENO"
5631then :
5632  xorg_cv_cc_flag_unknown_warning_option=yes
5633else $as_nop
5634  xorg_cv_cc_flag_unknown_warning_option=no
5635fi
5636rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5637fi
5638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5639printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5640	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5641	CFLAGS="$xorg_testset_save_CFLAGS"
5642fi
5643
5644if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5645	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5646		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5647	fi
5648	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5649	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5650printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5651if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5652then :
5653  printf %s "(cached) " >&6
5654else $as_nop
5655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5656/* end confdefs.h.  */
5657int i;
5658_ACEOF
5659if ac_fn_c_try_compile "$LINENO"
5660then :
5661  xorg_cv_cc_flag_unused_command_line_argument=yes
5662else $as_nop
5663  xorg_cv_cc_flag_unused_command_line_argument=no
5664fi
5665rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5666fi
5667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5668printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5669	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5670	CFLAGS="$xorg_testset_save_CFLAGS"
5671fi
5672
5673found="no"
5674
5675	if test $found = "no" ; then
5676		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5677			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5678		fi
5679
5680		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5681			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5682		fi
5683
5684		CFLAGS="$CFLAGS -Wmissing-prototypes"
5685
5686		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5687printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5688		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5689		if eval test \${$cacheid+y}
5690then :
5691  printf %s "(cached) " >&6
5692else $as_nop
5693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5694/* end confdefs.h.  */
5695int i;
5696int
5697main (void)
5698{
5699
5700  ;
5701  return 0;
5702}
5703_ACEOF
5704if ac_fn_c_try_link "$LINENO"
5705then :
5706  eval $cacheid=yes
5707else $as_nop
5708  eval $cacheid=no
5709fi
5710rm -f core conftest.err conftest.$ac_objext conftest.beam \
5711    conftest$ac_exeext conftest.$ac_ext
5712fi
5713
5714
5715		CFLAGS="$xorg_testset_save_CFLAGS"
5716
5717		eval supported=\$$cacheid
5718		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5719printf "%s\n" "$supported" >&6; }
5720		if test "$supported" = "yes" ; then
5721			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5722			found="yes"
5723		fi
5724	fi
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740xorg_testset_save_CFLAGS="$CFLAGS"
5741
5742if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5743	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5744	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5745printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5746if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5747then :
5748  printf %s "(cached) " >&6
5749else $as_nop
5750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5751/* end confdefs.h.  */
5752int i;
5753_ACEOF
5754if ac_fn_c_try_compile "$LINENO"
5755then :
5756  xorg_cv_cc_flag_unknown_warning_option=yes
5757else $as_nop
5758  xorg_cv_cc_flag_unknown_warning_option=no
5759fi
5760rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5761fi
5762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5763printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5764	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5765	CFLAGS="$xorg_testset_save_CFLAGS"
5766fi
5767
5768if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5769	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5770		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5771	fi
5772	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5773	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5774printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5775if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5776then :
5777  printf %s "(cached) " >&6
5778else $as_nop
5779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5780/* end confdefs.h.  */
5781int i;
5782_ACEOF
5783if ac_fn_c_try_compile "$LINENO"
5784then :
5785  xorg_cv_cc_flag_unused_command_line_argument=yes
5786else $as_nop
5787  xorg_cv_cc_flag_unused_command_line_argument=no
5788fi
5789rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5790fi
5791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5792printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5793	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5794	CFLAGS="$xorg_testset_save_CFLAGS"
5795fi
5796
5797found="no"
5798
5799	if test $found = "no" ; then
5800		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5801			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5802		fi
5803
5804		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5805			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5806		fi
5807
5808		CFLAGS="$CFLAGS -Wnested-externs"
5809
5810		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5811printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5812		cacheid=xorg_cv_cc_flag__Wnested_externs
5813		if eval test \${$cacheid+y}
5814then :
5815  printf %s "(cached) " >&6
5816else $as_nop
5817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5818/* end confdefs.h.  */
5819int i;
5820int
5821main (void)
5822{
5823
5824  ;
5825  return 0;
5826}
5827_ACEOF
5828if ac_fn_c_try_link "$LINENO"
5829then :
5830  eval $cacheid=yes
5831else $as_nop
5832  eval $cacheid=no
5833fi
5834rm -f core conftest.err conftest.$ac_objext conftest.beam \
5835    conftest$ac_exeext conftest.$ac_ext
5836fi
5837
5838
5839		CFLAGS="$xorg_testset_save_CFLAGS"
5840
5841		eval supported=\$$cacheid
5842		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5843printf "%s\n" "$supported" >&6; }
5844		if test "$supported" = "yes" ; then
5845			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5846			found="yes"
5847		fi
5848	fi
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864xorg_testset_save_CFLAGS="$CFLAGS"
5865
5866if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5867	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5868	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5869printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5870if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5871then :
5872  printf %s "(cached) " >&6
5873else $as_nop
5874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875/* end confdefs.h.  */
5876int i;
5877_ACEOF
5878if ac_fn_c_try_compile "$LINENO"
5879then :
5880  xorg_cv_cc_flag_unknown_warning_option=yes
5881else $as_nop
5882  xorg_cv_cc_flag_unknown_warning_option=no
5883fi
5884rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5885fi
5886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5887printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5888	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5889	CFLAGS="$xorg_testset_save_CFLAGS"
5890fi
5891
5892if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5893	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5894		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5895	fi
5896	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5897	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5898printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5899if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5900then :
5901  printf %s "(cached) " >&6
5902else $as_nop
5903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5904/* end confdefs.h.  */
5905int i;
5906_ACEOF
5907if ac_fn_c_try_compile "$LINENO"
5908then :
5909  xorg_cv_cc_flag_unused_command_line_argument=yes
5910else $as_nop
5911  xorg_cv_cc_flag_unused_command_line_argument=no
5912fi
5913rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5914fi
5915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5916printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5917	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5918	CFLAGS="$xorg_testset_save_CFLAGS"
5919fi
5920
5921found="no"
5922
5923	if test $found = "no" ; then
5924		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5925			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5926		fi
5927
5928		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5929			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5930		fi
5931
5932		CFLAGS="$CFLAGS -Wbad-function-cast"
5933
5934		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5935printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5936		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5937		if eval test \${$cacheid+y}
5938then :
5939  printf %s "(cached) " >&6
5940else $as_nop
5941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5942/* end confdefs.h.  */
5943int i;
5944int
5945main (void)
5946{
5947
5948  ;
5949  return 0;
5950}
5951_ACEOF
5952if ac_fn_c_try_link "$LINENO"
5953then :
5954  eval $cacheid=yes
5955else $as_nop
5956  eval $cacheid=no
5957fi
5958rm -f core conftest.err conftest.$ac_objext conftest.beam \
5959    conftest$ac_exeext conftest.$ac_ext
5960fi
5961
5962
5963		CFLAGS="$xorg_testset_save_CFLAGS"
5964
5965		eval supported=\$$cacheid
5966		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5967printf "%s\n" "$supported" >&6; }
5968		if test "$supported" = "yes" ; then
5969			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5970			found="yes"
5971		fi
5972	fi
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988xorg_testset_save_CFLAGS="$CFLAGS"
5989
5990if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5991	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5992	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5993printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5994if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5995then :
5996  printf %s "(cached) " >&6
5997else $as_nop
5998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5999/* end confdefs.h.  */
6000int i;
6001_ACEOF
6002if ac_fn_c_try_compile "$LINENO"
6003then :
6004  xorg_cv_cc_flag_unknown_warning_option=yes
6005else $as_nop
6006  xorg_cv_cc_flag_unknown_warning_option=no
6007fi
6008rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6009fi
6010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6011printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6012	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6013	CFLAGS="$xorg_testset_save_CFLAGS"
6014fi
6015
6016if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6017	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6018		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6019	fi
6020	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6021	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6022printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6023if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6024then :
6025  printf %s "(cached) " >&6
6026else $as_nop
6027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6028/* end confdefs.h.  */
6029int i;
6030_ACEOF
6031if ac_fn_c_try_compile "$LINENO"
6032then :
6033  xorg_cv_cc_flag_unused_command_line_argument=yes
6034else $as_nop
6035  xorg_cv_cc_flag_unused_command_line_argument=no
6036fi
6037rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6038fi
6039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6040printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6041	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6042	CFLAGS="$xorg_testset_save_CFLAGS"
6043fi
6044
6045found="no"
6046
6047	if test $found = "no" ; then
6048		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6049			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6050		fi
6051
6052		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6053			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6054		fi
6055
6056		CFLAGS="$CFLAGS -Wold-style-definition"
6057
6058		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6059printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6060		cacheid=xorg_cv_cc_flag__Wold_style_definition
6061		if eval test \${$cacheid+y}
6062then :
6063  printf %s "(cached) " >&6
6064else $as_nop
6065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6066/* end confdefs.h.  */
6067int i;
6068int
6069main (void)
6070{
6071
6072  ;
6073  return 0;
6074}
6075_ACEOF
6076if ac_fn_c_try_link "$LINENO"
6077then :
6078  eval $cacheid=yes
6079else $as_nop
6080  eval $cacheid=no
6081fi
6082rm -f core conftest.err conftest.$ac_objext conftest.beam \
6083    conftest$ac_exeext conftest.$ac_ext
6084fi
6085
6086
6087		CFLAGS="$xorg_testset_save_CFLAGS"
6088
6089		eval supported=\$$cacheid
6090		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6091printf "%s\n" "$supported" >&6; }
6092		if test "$supported" = "yes" ; then
6093			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6094			found="yes"
6095		fi
6096	fi
6097
6098	if test $found = "no" ; then
6099		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6100			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6101		fi
6102
6103		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6104			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6105		fi
6106
6107		CFLAGS="$CFLAGS -fd"
6108
6109		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6110printf %s "checking if $CC supports -fd... " >&6; }
6111		cacheid=xorg_cv_cc_flag__fd
6112		if eval test \${$cacheid+y}
6113then :
6114  printf %s "(cached) " >&6
6115else $as_nop
6116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6117/* end confdefs.h.  */
6118int i;
6119int
6120main (void)
6121{
6122
6123  ;
6124  return 0;
6125}
6126_ACEOF
6127if ac_fn_c_try_link "$LINENO"
6128then :
6129  eval $cacheid=yes
6130else $as_nop
6131  eval $cacheid=no
6132fi
6133rm -f core conftest.err conftest.$ac_objext conftest.beam \
6134    conftest$ac_exeext conftest.$ac_ext
6135fi
6136
6137
6138		CFLAGS="$xorg_testset_save_CFLAGS"
6139
6140		eval supported=\$$cacheid
6141		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6142printf "%s\n" "$supported" >&6; }
6143		if test "$supported" = "yes" ; then
6144			BASE_CFLAGS="$BASE_CFLAGS -fd"
6145			found="yes"
6146		fi
6147	fi
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163xorg_testset_save_CFLAGS="$CFLAGS"
6164
6165if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6166	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6167	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6168printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6169if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6170then :
6171  printf %s "(cached) " >&6
6172else $as_nop
6173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6174/* end confdefs.h.  */
6175int i;
6176_ACEOF
6177if ac_fn_c_try_compile "$LINENO"
6178then :
6179  xorg_cv_cc_flag_unknown_warning_option=yes
6180else $as_nop
6181  xorg_cv_cc_flag_unknown_warning_option=no
6182fi
6183rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6184fi
6185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6186printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6187	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6188	CFLAGS="$xorg_testset_save_CFLAGS"
6189fi
6190
6191if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6192	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6193		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6194	fi
6195	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6196	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6197printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6198if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6199then :
6200  printf %s "(cached) " >&6
6201else $as_nop
6202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6203/* end confdefs.h.  */
6204int i;
6205_ACEOF
6206if ac_fn_c_try_compile "$LINENO"
6207then :
6208  xorg_cv_cc_flag_unused_command_line_argument=yes
6209else $as_nop
6210  xorg_cv_cc_flag_unused_command_line_argument=no
6211fi
6212rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6213fi
6214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6215printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6216	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6217	CFLAGS="$xorg_testset_save_CFLAGS"
6218fi
6219
6220found="no"
6221
6222	if test $found = "no" ; then
6223		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6224			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6225		fi
6226
6227		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6228			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6229		fi
6230
6231		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6232
6233		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6234printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6235		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6236		if eval test \${$cacheid+y}
6237then :
6238  printf %s "(cached) " >&6
6239else $as_nop
6240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6241/* end confdefs.h.  */
6242int i;
6243int
6244main (void)
6245{
6246
6247  ;
6248  return 0;
6249}
6250_ACEOF
6251if ac_fn_c_try_link "$LINENO"
6252then :
6253  eval $cacheid=yes
6254else $as_nop
6255  eval $cacheid=no
6256fi
6257rm -f core conftest.err conftest.$ac_objext conftest.beam \
6258    conftest$ac_exeext conftest.$ac_ext
6259fi
6260
6261
6262		CFLAGS="$xorg_testset_save_CFLAGS"
6263
6264		eval supported=\$$cacheid
6265		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6266printf "%s\n" "$supported" >&6; }
6267		if test "$supported" = "yes" ; then
6268			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6269			found="yes"
6270		fi
6271	fi
6272
6273
6274
6275
6276
6277# This chunk adds additional warnings that could catch undesired effects.
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291xorg_testset_save_CFLAGS="$CFLAGS"
6292
6293if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6294	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6295	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6296printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6297if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6298then :
6299  printf %s "(cached) " >&6
6300else $as_nop
6301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6302/* end confdefs.h.  */
6303int i;
6304_ACEOF
6305if ac_fn_c_try_compile "$LINENO"
6306then :
6307  xorg_cv_cc_flag_unknown_warning_option=yes
6308else $as_nop
6309  xorg_cv_cc_flag_unknown_warning_option=no
6310fi
6311rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6312fi
6313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6314printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6315	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6316	CFLAGS="$xorg_testset_save_CFLAGS"
6317fi
6318
6319if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6320	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6321		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6322	fi
6323	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6324	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6325printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6326if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6327then :
6328  printf %s "(cached) " >&6
6329else $as_nop
6330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6331/* end confdefs.h.  */
6332int i;
6333_ACEOF
6334if ac_fn_c_try_compile "$LINENO"
6335then :
6336  xorg_cv_cc_flag_unused_command_line_argument=yes
6337else $as_nop
6338  xorg_cv_cc_flag_unused_command_line_argument=no
6339fi
6340rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6341fi
6342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6343printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6344	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6345	CFLAGS="$xorg_testset_save_CFLAGS"
6346fi
6347
6348found="no"
6349
6350	if test $found = "no" ; then
6351		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6352			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6353		fi
6354
6355		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6356			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6357		fi
6358
6359		CFLAGS="$CFLAGS -Wunused"
6360
6361		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6362printf %s "checking if $CC supports -Wunused... " >&6; }
6363		cacheid=xorg_cv_cc_flag__Wunused
6364		if eval test \${$cacheid+y}
6365then :
6366  printf %s "(cached) " >&6
6367else $as_nop
6368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6369/* end confdefs.h.  */
6370int i;
6371int
6372main (void)
6373{
6374
6375  ;
6376  return 0;
6377}
6378_ACEOF
6379if ac_fn_c_try_link "$LINENO"
6380then :
6381  eval $cacheid=yes
6382else $as_nop
6383  eval $cacheid=no
6384fi
6385rm -f core conftest.err conftest.$ac_objext conftest.beam \
6386    conftest$ac_exeext conftest.$ac_ext
6387fi
6388
6389
6390		CFLAGS="$xorg_testset_save_CFLAGS"
6391
6392		eval supported=\$$cacheid
6393		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6394printf "%s\n" "$supported" >&6; }
6395		if test "$supported" = "yes" ; then
6396			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6397			found="yes"
6398		fi
6399	fi
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415xorg_testset_save_CFLAGS="$CFLAGS"
6416
6417if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6418	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6419	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6420printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6421if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6422then :
6423  printf %s "(cached) " >&6
6424else $as_nop
6425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6426/* end confdefs.h.  */
6427int i;
6428_ACEOF
6429if ac_fn_c_try_compile "$LINENO"
6430then :
6431  xorg_cv_cc_flag_unknown_warning_option=yes
6432else $as_nop
6433  xorg_cv_cc_flag_unknown_warning_option=no
6434fi
6435rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6436fi
6437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6438printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6439	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6440	CFLAGS="$xorg_testset_save_CFLAGS"
6441fi
6442
6443if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6444	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6445		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6446	fi
6447	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6448	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6449printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6450if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6451then :
6452  printf %s "(cached) " >&6
6453else $as_nop
6454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6455/* end confdefs.h.  */
6456int i;
6457_ACEOF
6458if ac_fn_c_try_compile "$LINENO"
6459then :
6460  xorg_cv_cc_flag_unused_command_line_argument=yes
6461else $as_nop
6462  xorg_cv_cc_flag_unused_command_line_argument=no
6463fi
6464rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6465fi
6466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6467printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6468	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6469	CFLAGS="$xorg_testset_save_CFLAGS"
6470fi
6471
6472found="no"
6473
6474	if test $found = "no" ; then
6475		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6476			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6477		fi
6478
6479		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6480			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6481		fi
6482
6483		CFLAGS="$CFLAGS -Wuninitialized"
6484
6485		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6486printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6487		cacheid=xorg_cv_cc_flag__Wuninitialized
6488		if eval test \${$cacheid+y}
6489then :
6490  printf %s "(cached) " >&6
6491else $as_nop
6492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6493/* end confdefs.h.  */
6494int i;
6495int
6496main (void)
6497{
6498
6499  ;
6500  return 0;
6501}
6502_ACEOF
6503if ac_fn_c_try_link "$LINENO"
6504then :
6505  eval $cacheid=yes
6506else $as_nop
6507  eval $cacheid=no
6508fi
6509rm -f core conftest.err conftest.$ac_objext conftest.beam \
6510    conftest$ac_exeext conftest.$ac_ext
6511fi
6512
6513
6514		CFLAGS="$xorg_testset_save_CFLAGS"
6515
6516		eval supported=\$$cacheid
6517		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6518printf "%s\n" "$supported" >&6; }
6519		if test "$supported" = "yes" ; then
6520			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6521			found="yes"
6522		fi
6523	fi
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539xorg_testset_save_CFLAGS="$CFLAGS"
6540
6541if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6542	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6543	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6544printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6545if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6546then :
6547  printf %s "(cached) " >&6
6548else $as_nop
6549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6550/* end confdefs.h.  */
6551int i;
6552_ACEOF
6553if ac_fn_c_try_compile "$LINENO"
6554then :
6555  xorg_cv_cc_flag_unknown_warning_option=yes
6556else $as_nop
6557  xorg_cv_cc_flag_unknown_warning_option=no
6558fi
6559rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6560fi
6561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6562printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6563	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6564	CFLAGS="$xorg_testset_save_CFLAGS"
6565fi
6566
6567if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6568	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6569		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6570	fi
6571	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6572	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6573printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6574if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6575then :
6576  printf %s "(cached) " >&6
6577else $as_nop
6578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6579/* end confdefs.h.  */
6580int i;
6581_ACEOF
6582if ac_fn_c_try_compile "$LINENO"
6583then :
6584  xorg_cv_cc_flag_unused_command_line_argument=yes
6585else $as_nop
6586  xorg_cv_cc_flag_unused_command_line_argument=no
6587fi
6588rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6589fi
6590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6591printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6592	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6593	CFLAGS="$xorg_testset_save_CFLAGS"
6594fi
6595
6596found="no"
6597
6598	if test $found = "no" ; then
6599		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6600			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6601		fi
6602
6603		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6604			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6605		fi
6606
6607		CFLAGS="$CFLAGS -Wshadow"
6608
6609		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6610printf %s "checking if $CC supports -Wshadow... " >&6; }
6611		cacheid=xorg_cv_cc_flag__Wshadow
6612		if eval test \${$cacheid+y}
6613then :
6614  printf %s "(cached) " >&6
6615else $as_nop
6616  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6617/* end confdefs.h.  */
6618int i;
6619int
6620main (void)
6621{
6622
6623  ;
6624  return 0;
6625}
6626_ACEOF
6627if ac_fn_c_try_link "$LINENO"
6628then :
6629  eval $cacheid=yes
6630else $as_nop
6631  eval $cacheid=no
6632fi
6633rm -f core conftest.err conftest.$ac_objext conftest.beam \
6634    conftest$ac_exeext conftest.$ac_ext
6635fi
6636
6637
6638		CFLAGS="$xorg_testset_save_CFLAGS"
6639
6640		eval supported=\$$cacheid
6641		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6642printf "%s\n" "$supported" >&6; }
6643		if test "$supported" = "yes" ; then
6644			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6645			found="yes"
6646		fi
6647	fi
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663xorg_testset_save_CFLAGS="$CFLAGS"
6664
6665if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6666	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6667	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6668printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6669if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6670then :
6671  printf %s "(cached) " >&6
6672else $as_nop
6673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6674/* end confdefs.h.  */
6675int i;
6676_ACEOF
6677if ac_fn_c_try_compile "$LINENO"
6678then :
6679  xorg_cv_cc_flag_unknown_warning_option=yes
6680else $as_nop
6681  xorg_cv_cc_flag_unknown_warning_option=no
6682fi
6683rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6684fi
6685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6686printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6687	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6688	CFLAGS="$xorg_testset_save_CFLAGS"
6689fi
6690
6691if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6692	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6693		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6694	fi
6695	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6696	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6697printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6698if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6699then :
6700  printf %s "(cached) " >&6
6701else $as_nop
6702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6703/* end confdefs.h.  */
6704int i;
6705_ACEOF
6706if ac_fn_c_try_compile "$LINENO"
6707then :
6708  xorg_cv_cc_flag_unused_command_line_argument=yes
6709else $as_nop
6710  xorg_cv_cc_flag_unused_command_line_argument=no
6711fi
6712rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6713fi
6714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6715printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6716	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6717	CFLAGS="$xorg_testset_save_CFLAGS"
6718fi
6719
6720found="no"
6721
6722	if test $found = "no" ; then
6723		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6724			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6725		fi
6726
6727		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6728			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6729		fi
6730
6731		CFLAGS="$CFLAGS -Wmissing-noreturn"
6732
6733		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6734printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6735		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6736		if eval test \${$cacheid+y}
6737then :
6738  printf %s "(cached) " >&6
6739else $as_nop
6740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6741/* end confdefs.h.  */
6742int i;
6743int
6744main (void)
6745{
6746
6747  ;
6748  return 0;
6749}
6750_ACEOF
6751if ac_fn_c_try_link "$LINENO"
6752then :
6753  eval $cacheid=yes
6754else $as_nop
6755  eval $cacheid=no
6756fi
6757rm -f core conftest.err conftest.$ac_objext conftest.beam \
6758    conftest$ac_exeext conftest.$ac_ext
6759fi
6760
6761
6762		CFLAGS="$xorg_testset_save_CFLAGS"
6763
6764		eval supported=\$$cacheid
6765		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6766printf "%s\n" "$supported" >&6; }
6767		if test "$supported" = "yes" ; then
6768			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6769			found="yes"
6770		fi
6771	fi
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787xorg_testset_save_CFLAGS="$CFLAGS"
6788
6789if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6790	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6791	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6792printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6793if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6794then :
6795  printf %s "(cached) " >&6
6796else $as_nop
6797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6798/* end confdefs.h.  */
6799int i;
6800_ACEOF
6801if ac_fn_c_try_compile "$LINENO"
6802then :
6803  xorg_cv_cc_flag_unknown_warning_option=yes
6804else $as_nop
6805  xorg_cv_cc_flag_unknown_warning_option=no
6806fi
6807rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6808fi
6809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6810printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6811	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6812	CFLAGS="$xorg_testset_save_CFLAGS"
6813fi
6814
6815if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6816	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6817		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6818	fi
6819	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6820	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6821printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6822if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6823then :
6824  printf %s "(cached) " >&6
6825else $as_nop
6826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6827/* end confdefs.h.  */
6828int i;
6829_ACEOF
6830if ac_fn_c_try_compile "$LINENO"
6831then :
6832  xorg_cv_cc_flag_unused_command_line_argument=yes
6833else $as_nop
6834  xorg_cv_cc_flag_unused_command_line_argument=no
6835fi
6836rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6837fi
6838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6839printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6840	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6841	CFLAGS="$xorg_testset_save_CFLAGS"
6842fi
6843
6844found="no"
6845
6846	if test $found = "no" ; then
6847		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6848			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6849		fi
6850
6851		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6852			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6853		fi
6854
6855		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6856
6857		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6858printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6859		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6860		if eval test \${$cacheid+y}
6861then :
6862  printf %s "(cached) " >&6
6863else $as_nop
6864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6865/* end confdefs.h.  */
6866int i;
6867int
6868main (void)
6869{
6870
6871  ;
6872  return 0;
6873}
6874_ACEOF
6875if ac_fn_c_try_link "$LINENO"
6876then :
6877  eval $cacheid=yes
6878else $as_nop
6879  eval $cacheid=no
6880fi
6881rm -f core conftest.err conftest.$ac_objext conftest.beam \
6882    conftest$ac_exeext conftest.$ac_ext
6883fi
6884
6885
6886		CFLAGS="$xorg_testset_save_CFLAGS"
6887
6888		eval supported=\$$cacheid
6889		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6890printf "%s\n" "$supported" >&6; }
6891		if test "$supported" = "yes" ; then
6892			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6893			found="yes"
6894		fi
6895	fi
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911xorg_testset_save_CFLAGS="$CFLAGS"
6912
6913if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6914	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6915	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6916printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6917if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6918then :
6919  printf %s "(cached) " >&6
6920else $as_nop
6921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6922/* end confdefs.h.  */
6923int i;
6924_ACEOF
6925if ac_fn_c_try_compile "$LINENO"
6926then :
6927  xorg_cv_cc_flag_unknown_warning_option=yes
6928else $as_nop
6929  xorg_cv_cc_flag_unknown_warning_option=no
6930fi
6931rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6932fi
6933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6934printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6935	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6936	CFLAGS="$xorg_testset_save_CFLAGS"
6937fi
6938
6939if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6940	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6941		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6942	fi
6943	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6944	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6945printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6946if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6947then :
6948  printf %s "(cached) " >&6
6949else $as_nop
6950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6951/* end confdefs.h.  */
6952int i;
6953_ACEOF
6954if ac_fn_c_try_compile "$LINENO"
6955then :
6956  xorg_cv_cc_flag_unused_command_line_argument=yes
6957else $as_nop
6958  xorg_cv_cc_flag_unused_command_line_argument=no
6959fi
6960rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6961fi
6962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6963printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6964	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6965	CFLAGS="$xorg_testset_save_CFLAGS"
6966fi
6967
6968found="no"
6969
6970	if test $found = "no" ; then
6971		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6972			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6973		fi
6974
6975		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6976			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6977		fi
6978
6979		CFLAGS="$CFLAGS -Wredundant-decls"
6980
6981		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6982printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
6983		cacheid=xorg_cv_cc_flag__Wredundant_decls
6984		if eval test \${$cacheid+y}
6985then :
6986  printf %s "(cached) " >&6
6987else $as_nop
6988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6989/* end confdefs.h.  */
6990int i;
6991int
6992main (void)
6993{
6994
6995  ;
6996  return 0;
6997}
6998_ACEOF
6999if ac_fn_c_try_link "$LINENO"
7000then :
7001  eval $cacheid=yes
7002else $as_nop
7003  eval $cacheid=no
7004fi
7005rm -f core conftest.err conftest.$ac_objext conftest.beam \
7006    conftest$ac_exeext conftest.$ac_ext
7007fi
7008
7009
7010		CFLAGS="$xorg_testset_save_CFLAGS"
7011
7012		eval supported=\$$cacheid
7013		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7014printf "%s\n" "$supported" >&6; }
7015		if test "$supported" = "yes" ; then
7016			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7017			found="yes"
7018		fi
7019	fi
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035xorg_testset_save_CFLAGS="$CFLAGS"
7036
7037if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7038	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7039	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7040printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7041if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7042then :
7043  printf %s "(cached) " >&6
7044else $as_nop
7045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7046/* end confdefs.h.  */
7047int i;
7048_ACEOF
7049if ac_fn_c_try_compile "$LINENO"
7050then :
7051  xorg_cv_cc_flag_unknown_warning_option=yes
7052else $as_nop
7053  xorg_cv_cc_flag_unknown_warning_option=no
7054fi
7055rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7056fi
7057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7058printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7059	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7060	CFLAGS="$xorg_testset_save_CFLAGS"
7061fi
7062
7063if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7064	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7065		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7066	fi
7067	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7068	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7069printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7070if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7071then :
7072  printf %s "(cached) " >&6
7073else $as_nop
7074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7075/* end confdefs.h.  */
7076int i;
7077_ACEOF
7078if ac_fn_c_try_compile "$LINENO"
7079then :
7080  xorg_cv_cc_flag_unused_command_line_argument=yes
7081else $as_nop
7082  xorg_cv_cc_flag_unused_command_line_argument=no
7083fi
7084rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7085fi
7086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7087printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7088	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7089	CFLAGS="$xorg_testset_save_CFLAGS"
7090fi
7091
7092found="no"
7093
7094	if test $found = "no" ; then
7095		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7096			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7097		fi
7098
7099		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7100			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7101		fi
7102
7103		CFLAGS="$CFLAGS -Wlogical-op"
7104
7105		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7106printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7107		cacheid=xorg_cv_cc_flag__Wlogical_op
7108		if eval test \${$cacheid+y}
7109then :
7110  printf %s "(cached) " >&6
7111else $as_nop
7112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7113/* end confdefs.h.  */
7114int i;
7115int
7116main (void)
7117{
7118
7119  ;
7120  return 0;
7121}
7122_ACEOF
7123if ac_fn_c_try_link "$LINENO"
7124then :
7125  eval $cacheid=yes
7126else $as_nop
7127  eval $cacheid=no
7128fi
7129rm -f core conftest.err conftest.$ac_objext conftest.beam \
7130    conftest$ac_exeext conftest.$ac_ext
7131fi
7132
7133
7134		CFLAGS="$xorg_testset_save_CFLAGS"
7135
7136		eval supported=\$$cacheid
7137		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7138printf "%s\n" "$supported" >&6; }
7139		if test "$supported" = "yes" ; then
7140			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7141			found="yes"
7142		fi
7143	fi
7144
7145
7146
7147# These are currently disabled because they are noisy.  They will be enabled
7148# in the future once the codebase is sufficiently modernized to silence
7149# them.  For now, I don't want them to drown out the other warnings.
7150# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7151# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7152# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7153
7154# Turn some warnings into errors, so we don't accidently get successful builds
7155# when there are problems that should be fixed.
7156
7157if test "x$SELECTIVE_WERROR" = "xyes" ; then
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171xorg_testset_save_CFLAGS="$CFLAGS"
7172
7173if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7174	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7175	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7176printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7177if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7178then :
7179  printf %s "(cached) " >&6
7180else $as_nop
7181  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7182/* end confdefs.h.  */
7183int i;
7184_ACEOF
7185if ac_fn_c_try_compile "$LINENO"
7186then :
7187  xorg_cv_cc_flag_unknown_warning_option=yes
7188else $as_nop
7189  xorg_cv_cc_flag_unknown_warning_option=no
7190fi
7191rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7192fi
7193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7194printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7195	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7196	CFLAGS="$xorg_testset_save_CFLAGS"
7197fi
7198
7199if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7200	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7201		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7202	fi
7203	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7204	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7205printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7206if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7207then :
7208  printf %s "(cached) " >&6
7209else $as_nop
7210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211/* end confdefs.h.  */
7212int i;
7213_ACEOF
7214if ac_fn_c_try_compile "$LINENO"
7215then :
7216  xorg_cv_cc_flag_unused_command_line_argument=yes
7217else $as_nop
7218  xorg_cv_cc_flag_unused_command_line_argument=no
7219fi
7220rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7221fi
7222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7223printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7224	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7225	CFLAGS="$xorg_testset_save_CFLAGS"
7226fi
7227
7228found="no"
7229
7230	if test $found = "no" ; then
7231		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7232			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7233		fi
7234
7235		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7236			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7237		fi
7238
7239		CFLAGS="$CFLAGS -Werror=implicit"
7240
7241		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7242printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7243		cacheid=xorg_cv_cc_flag__Werror_implicit
7244		if eval test \${$cacheid+y}
7245then :
7246  printf %s "(cached) " >&6
7247else $as_nop
7248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7249/* end confdefs.h.  */
7250int i;
7251int
7252main (void)
7253{
7254
7255  ;
7256  return 0;
7257}
7258_ACEOF
7259if ac_fn_c_try_link "$LINENO"
7260then :
7261  eval $cacheid=yes
7262else $as_nop
7263  eval $cacheid=no
7264fi
7265rm -f core conftest.err conftest.$ac_objext conftest.beam \
7266    conftest$ac_exeext conftest.$ac_ext
7267fi
7268
7269
7270		CFLAGS="$xorg_testset_save_CFLAGS"
7271
7272		eval supported=\$$cacheid
7273		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7274printf "%s\n" "$supported" >&6; }
7275		if test "$supported" = "yes" ; then
7276			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7277			found="yes"
7278		fi
7279	fi
7280
7281	if test $found = "no" ; then
7282		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7283			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7284		fi
7285
7286		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7287			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7288		fi
7289
7290		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7291
7292		{ 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
7293printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7294		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7295		if eval test \${$cacheid+y}
7296then :
7297  printf %s "(cached) " >&6
7298else $as_nop
7299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7300/* end confdefs.h.  */
7301int i;
7302int
7303main (void)
7304{
7305
7306  ;
7307  return 0;
7308}
7309_ACEOF
7310if ac_fn_c_try_link "$LINENO"
7311then :
7312  eval $cacheid=yes
7313else $as_nop
7314  eval $cacheid=no
7315fi
7316rm -f core conftest.err conftest.$ac_objext conftest.beam \
7317    conftest$ac_exeext conftest.$ac_ext
7318fi
7319
7320
7321		CFLAGS="$xorg_testset_save_CFLAGS"
7322
7323		eval supported=\$$cacheid
7324		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7325printf "%s\n" "$supported" >&6; }
7326		if test "$supported" = "yes" ; then
7327			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7328			found="yes"
7329		fi
7330	fi
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346xorg_testset_save_CFLAGS="$CFLAGS"
7347
7348if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7349	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7350	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7351printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7352if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7353then :
7354  printf %s "(cached) " >&6
7355else $as_nop
7356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357/* end confdefs.h.  */
7358int i;
7359_ACEOF
7360if ac_fn_c_try_compile "$LINENO"
7361then :
7362  xorg_cv_cc_flag_unknown_warning_option=yes
7363else $as_nop
7364  xorg_cv_cc_flag_unknown_warning_option=no
7365fi
7366rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7367fi
7368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7369printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7370	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7371	CFLAGS="$xorg_testset_save_CFLAGS"
7372fi
7373
7374if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7375	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7376		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7377	fi
7378	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7379	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7380printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7381if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7382then :
7383  printf %s "(cached) " >&6
7384else $as_nop
7385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7386/* end confdefs.h.  */
7387int i;
7388_ACEOF
7389if ac_fn_c_try_compile "$LINENO"
7390then :
7391  xorg_cv_cc_flag_unused_command_line_argument=yes
7392else $as_nop
7393  xorg_cv_cc_flag_unused_command_line_argument=no
7394fi
7395rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7396fi
7397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7398printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7399	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7400	CFLAGS="$xorg_testset_save_CFLAGS"
7401fi
7402
7403found="no"
7404
7405	if test $found = "no" ; then
7406		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7407			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7408		fi
7409
7410		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7411			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7412		fi
7413
7414		CFLAGS="$CFLAGS -Werror=nonnull"
7415
7416		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7417printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7418		cacheid=xorg_cv_cc_flag__Werror_nonnull
7419		if eval test \${$cacheid+y}
7420then :
7421  printf %s "(cached) " >&6
7422else $as_nop
7423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7424/* end confdefs.h.  */
7425int i;
7426int
7427main (void)
7428{
7429
7430  ;
7431  return 0;
7432}
7433_ACEOF
7434if ac_fn_c_try_link "$LINENO"
7435then :
7436  eval $cacheid=yes
7437else $as_nop
7438  eval $cacheid=no
7439fi
7440rm -f core conftest.err conftest.$ac_objext conftest.beam \
7441    conftest$ac_exeext conftest.$ac_ext
7442fi
7443
7444
7445		CFLAGS="$xorg_testset_save_CFLAGS"
7446
7447		eval supported=\$$cacheid
7448		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7449printf "%s\n" "$supported" >&6; }
7450		if test "$supported" = "yes" ; then
7451			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7452			found="yes"
7453		fi
7454	fi
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470xorg_testset_save_CFLAGS="$CFLAGS"
7471
7472if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7473	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7474	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7475printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7476if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7477then :
7478  printf %s "(cached) " >&6
7479else $as_nop
7480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481/* end confdefs.h.  */
7482int i;
7483_ACEOF
7484if ac_fn_c_try_compile "$LINENO"
7485then :
7486  xorg_cv_cc_flag_unknown_warning_option=yes
7487else $as_nop
7488  xorg_cv_cc_flag_unknown_warning_option=no
7489fi
7490rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7491fi
7492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7493printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7494	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7495	CFLAGS="$xorg_testset_save_CFLAGS"
7496fi
7497
7498if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7499	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7500		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7501	fi
7502	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7503	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7504printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7505if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7506then :
7507  printf %s "(cached) " >&6
7508else $as_nop
7509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7510/* end confdefs.h.  */
7511int i;
7512_ACEOF
7513if ac_fn_c_try_compile "$LINENO"
7514then :
7515  xorg_cv_cc_flag_unused_command_line_argument=yes
7516else $as_nop
7517  xorg_cv_cc_flag_unused_command_line_argument=no
7518fi
7519rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7520fi
7521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7522printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7523	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7524	CFLAGS="$xorg_testset_save_CFLAGS"
7525fi
7526
7527found="no"
7528
7529	if test $found = "no" ; then
7530		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7531			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7532		fi
7533
7534		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7535			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7536		fi
7537
7538		CFLAGS="$CFLAGS -Werror=init-self"
7539
7540		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7541printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7542		cacheid=xorg_cv_cc_flag__Werror_init_self
7543		if eval test \${$cacheid+y}
7544then :
7545  printf %s "(cached) " >&6
7546else $as_nop
7547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7548/* end confdefs.h.  */
7549int i;
7550int
7551main (void)
7552{
7553
7554  ;
7555  return 0;
7556}
7557_ACEOF
7558if ac_fn_c_try_link "$LINENO"
7559then :
7560  eval $cacheid=yes
7561else $as_nop
7562  eval $cacheid=no
7563fi
7564rm -f core conftest.err conftest.$ac_objext conftest.beam \
7565    conftest$ac_exeext conftest.$ac_ext
7566fi
7567
7568
7569		CFLAGS="$xorg_testset_save_CFLAGS"
7570
7571		eval supported=\$$cacheid
7572		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7573printf "%s\n" "$supported" >&6; }
7574		if test "$supported" = "yes" ; then
7575			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7576			found="yes"
7577		fi
7578	fi
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594xorg_testset_save_CFLAGS="$CFLAGS"
7595
7596if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7597	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7598	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7599printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7600if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7601then :
7602  printf %s "(cached) " >&6
7603else $as_nop
7604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605/* end confdefs.h.  */
7606int i;
7607_ACEOF
7608if ac_fn_c_try_compile "$LINENO"
7609then :
7610  xorg_cv_cc_flag_unknown_warning_option=yes
7611else $as_nop
7612  xorg_cv_cc_flag_unknown_warning_option=no
7613fi
7614rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7615fi
7616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7617printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7618	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7619	CFLAGS="$xorg_testset_save_CFLAGS"
7620fi
7621
7622if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7623	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7624		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7625	fi
7626	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7627	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7628printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7629if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7630then :
7631  printf %s "(cached) " >&6
7632else $as_nop
7633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7634/* end confdefs.h.  */
7635int i;
7636_ACEOF
7637if ac_fn_c_try_compile "$LINENO"
7638then :
7639  xorg_cv_cc_flag_unused_command_line_argument=yes
7640else $as_nop
7641  xorg_cv_cc_flag_unused_command_line_argument=no
7642fi
7643rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7644fi
7645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7646printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7647	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7648	CFLAGS="$xorg_testset_save_CFLAGS"
7649fi
7650
7651found="no"
7652
7653	if test $found = "no" ; then
7654		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7655			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7656		fi
7657
7658		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7659			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7660		fi
7661
7662		CFLAGS="$CFLAGS -Werror=main"
7663
7664		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7665printf %s "checking if $CC supports -Werror=main... " >&6; }
7666		cacheid=xorg_cv_cc_flag__Werror_main
7667		if eval test \${$cacheid+y}
7668then :
7669  printf %s "(cached) " >&6
7670else $as_nop
7671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7672/* end confdefs.h.  */
7673int i;
7674int
7675main (void)
7676{
7677
7678  ;
7679  return 0;
7680}
7681_ACEOF
7682if ac_fn_c_try_link "$LINENO"
7683then :
7684  eval $cacheid=yes
7685else $as_nop
7686  eval $cacheid=no
7687fi
7688rm -f core conftest.err conftest.$ac_objext conftest.beam \
7689    conftest$ac_exeext conftest.$ac_ext
7690fi
7691
7692
7693		CFLAGS="$xorg_testset_save_CFLAGS"
7694
7695		eval supported=\$$cacheid
7696		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7697printf "%s\n" "$supported" >&6; }
7698		if test "$supported" = "yes" ; then
7699			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7700			found="yes"
7701		fi
7702	fi
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718xorg_testset_save_CFLAGS="$CFLAGS"
7719
7720if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7721	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7722	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7723printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7724if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7725then :
7726  printf %s "(cached) " >&6
7727else $as_nop
7728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7729/* end confdefs.h.  */
7730int i;
7731_ACEOF
7732if ac_fn_c_try_compile "$LINENO"
7733then :
7734  xorg_cv_cc_flag_unknown_warning_option=yes
7735else $as_nop
7736  xorg_cv_cc_flag_unknown_warning_option=no
7737fi
7738rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7739fi
7740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7741printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7742	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7743	CFLAGS="$xorg_testset_save_CFLAGS"
7744fi
7745
7746if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7747	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7748		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7749	fi
7750	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7751	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7752printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7753if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7754then :
7755  printf %s "(cached) " >&6
7756else $as_nop
7757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7758/* end confdefs.h.  */
7759int i;
7760_ACEOF
7761if ac_fn_c_try_compile "$LINENO"
7762then :
7763  xorg_cv_cc_flag_unused_command_line_argument=yes
7764else $as_nop
7765  xorg_cv_cc_flag_unused_command_line_argument=no
7766fi
7767rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7768fi
7769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7770printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7771	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7772	CFLAGS="$xorg_testset_save_CFLAGS"
7773fi
7774
7775found="no"
7776
7777	if test $found = "no" ; then
7778		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7779			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7780		fi
7781
7782		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7783			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7784		fi
7785
7786		CFLAGS="$CFLAGS -Werror=missing-braces"
7787
7788		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7789printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7790		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7791		if eval test \${$cacheid+y}
7792then :
7793  printf %s "(cached) " >&6
7794else $as_nop
7795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7796/* end confdefs.h.  */
7797int i;
7798int
7799main (void)
7800{
7801
7802  ;
7803  return 0;
7804}
7805_ACEOF
7806if ac_fn_c_try_link "$LINENO"
7807then :
7808  eval $cacheid=yes
7809else $as_nop
7810  eval $cacheid=no
7811fi
7812rm -f core conftest.err conftest.$ac_objext conftest.beam \
7813    conftest$ac_exeext conftest.$ac_ext
7814fi
7815
7816
7817		CFLAGS="$xorg_testset_save_CFLAGS"
7818
7819		eval supported=\$$cacheid
7820		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7821printf "%s\n" "$supported" >&6; }
7822		if test "$supported" = "yes" ; then
7823			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7824			found="yes"
7825		fi
7826	fi
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842xorg_testset_save_CFLAGS="$CFLAGS"
7843
7844if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7845	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7846	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7847printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7848if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7849then :
7850  printf %s "(cached) " >&6
7851else $as_nop
7852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7853/* end confdefs.h.  */
7854int i;
7855_ACEOF
7856if ac_fn_c_try_compile "$LINENO"
7857then :
7858  xorg_cv_cc_flag_unknown_warning_option=yes
7859else $as_nop
7860  xorg_cv_cc_flag_unknown_warning_option=no
7861fi
7862rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7863fi
7864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7865printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7866	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7867	CFLAGS="$xorg_testset_save_CFLAGS"
7868fi
7869
7870if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7871	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7872		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7873	fi
7874	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7875	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7876printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7877if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7878then :
7879  printf %s "(cached) " >&6
7880else $as_nop
7881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7882/* end confdefs.h.  */
7883int i;
7884_ACEOF
7885if ac_fn_c_try_compile "$LINENO"
7886then :
7887  xorg_cv_cc_flag_unused_command_line_argument=yes
7888else $as_nop
7889  xorg_cv_cc_flag_unused_command_line_argument=no
7890fi
7891rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7892fi
7893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7894printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7895	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7896	CFLAGS="$xorg_testset_save_CFLAGS"
7897fi
7898
7899found="no"
7900
7901	if test $found = "no" ; then
7902		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7903			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7904		fi
7905
7906		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7907			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7908		fi
7909
7910		CFLAGS="$CFLAGS -Werror=sequence-point"
7911
7912		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7913printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7914		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7915		if eval test \${$cacheid+y}
7916then :
7917  printf %s "(cached) " >&6
7918else $as_nop
7919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7920/* end confdefs.h.  */
7921int i;
7922int
7923main (void)
7924{
7925
7926  ;
7927  return 0;
7928}
7929_ACEOF
7930if ac_fn_c_try_link "$LINENO"
7931then :
7932  eval $cacheid=yes
7933else $as_nop
7934  eval $cacheid=no
7935fi
7936rm -f core conftest.err conftest.$ac_objext conftest.beam \
7937    conftest$ac_exeext conftest.$ac_ext
7938fi
7939
7940
7941		CFLAGS="$xorg_testset_save_CFLAGS"
7942
7943		eval supported=\$$cacheid
7944		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7945printf "%s\n" "$supported" >&6; }
7946		if test "$supported" = "yes" ; then
7947			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7948			found="yes"
7949		fi
7950	fi
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966xorg_testset_save_CFLAGS="$CFLAGS"
7967
7968if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7969	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7970	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7971printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7972if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7973then :
7974  printf %s "(cached) " >&6
7975else $as_nop
7976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7977/* end confdefs.h.  */
7978int i;
7979_ACEOF
7980if ac_fn_c_try_compile "$LINENO"
7981then :
7982  xorg_cv_cc_flag_unknown_warning_option=yes
7983else $as_nop
7984  xorg_cv_cc_flag_unknown_warning_option=no
7985fi
7986rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7987fi
7988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7989printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7990	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7991	CFLAGS="$xorg_testset_save_CFLAGS"
7992fi
7993
7994if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7995	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7996		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7997	fi
7998	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7999	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8000printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8001if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8002then :
8003  printf %s "(cached) " >&6
8004else $as_nop
8005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8006/* end confdefs.h.  */
8007int i;
8008_ACEOF
8009if ac_fn_c_try_compile "$LINENO"
8010then :
8011  xorg_cv_cc_flag_unused_command_line_argument=yes
8012else $as_nop
8013  xorg_cv_cc_flag_unused_command_line_argument=no
8014fi
8015rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8016fi
8017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8018printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8019	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8020	CFLAGS="$xorg_testset_save_CFLAGS"
8021fi
8022
8023found="no"
8024
8025	if test $found = "no" ; then
8026		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8027			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8028		fi
8029
8030		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8031			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8032		fi
8033
8034		CFLAGS="$CFLAGS -Werror=return-type"
8035
8036		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8037printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8038		cacheid=xorg_cv_cc_flag__Werror_return_type
8039		if eval test \${$cacheid+y}
8040then :
8041  printf %s "(cached) " >&6
8042else $as_nop
8043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8044/* end confdefs.h.  */
8045int i;
8046int
8047main (void)
8048{
8049
8050  ;
8051  return 0;
8052}
8053_ACEOF
8054if ac_fn_c_try_link "$LINENO"
8055then :
8056  eval $cacheid=yes
8057else $as_nop
8058  eval $cacheid=no
8059fi
8060rm -f core conftest.err conftest.$ac_objext conftest.beam \
8061    conftest$ac_exeext conftest.$ac_ext
8062fi
8063
8064
8065		CFLAGS="$xorg_testset_save_CFLAGS"
8066
8067		eval supported=\$$cacheid
8068		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8069printf "%s\n" "$supported" >&6; }
8070		if test "$supported" = "yes" ; then
8071			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8072			found="yes"
8073		fi
8074	fi
8075
8076	if test $found = "no" ; then
8077		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8078			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8079		fi
8080
8081		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8082			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8083		fi
8084
8085		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8086
8087		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8088printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8089		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8090		if eval test \${$cacheid+y}
8091then :
8092  printf %s "(cached) " >&6
8093else $as_nop
8094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8095/* end confdefs.h.  */
8096int i;
8097int
8098main (void)
8099{
8100
8101  ;
8102  return 0;
8103}
8104_ACEOF
8105if ac_fn_c_try_link "$LINENO"
8106then :
8107  eval $cacheid=yes
8108else $as_nop
8109  eval $cacheid=no
8110fi
8111rm -f core conftest.err conftest.$ac_objext conftest.beam \
8112    conftest$ac_exeext conftest.$ac_ext
8113fi
8114
8115
8116		CFLAGS="$xorg_testset_save_CFLAGS"
8117
8118		eval supported=\$$cacheid
8119		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8120printf "%s\n" "$supported" >&6; }
8121		if test "$supported" = "yes" ; then
8122			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8123			found="yes"
8124		fi
8125	fi
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141xorg_testset_save_CFLAGS="$CFLAGS"
8142
8143if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8144	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8145	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8146printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8147if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8148then :
8149  printf %s "(cached) " >&6
8150else $as_nop
8151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8152/* end confdefs.h.  */
8153int i;
8154_ACEOF
8155if ac_fn_c_try_compile "$LINENO"
8156then :
8157  xorg_cv_cc_flag_unknown_warning_option=yes
8158else $as_nop
8159  xorg_cv_cc_flag_unknown_warning_option=no
8160fi
8161rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8162fi
8163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8164printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8165	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8166	CFLAGS="$xorg_testset_save_CFLAGS"
8167fi
8168
8169if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8170	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8171		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8172	fi
8173	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8174	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8175printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8176if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8177then :
8178  printf %s "(cached) " >&6
8179else $as_nop
8180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8181/* end confdefs.h.  */
8182int i;
8183_ACEOF
8184if ac_fn_c_try_compile "$LINENO"
8185then :
8186  xorg_cv_cc_flag_unused_command_line_argument=yes
8187else $as_nop
8188  xorg_cv_cc_flag_unused_command_line_argument=no
8189fi
8190rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8191fi
8192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8193printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8194	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8195	CFLAGS="$xorg_testset_save_CFLAGS"
8196fi
8197
8198found="no"
8199
8200	if test $found = "no" ; then
8201		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8202			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8203		fi
8204
8205		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8206			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8207		fi
8208
8209		CFLAGS="$CFLAGS -Werror=trigraphs"
8210
8211		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8212printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8213		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8214		if eval test \${$cacheid+y}
8215then :
8216  printf %s "(cached) " >&6
8217else $as_nop
8218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8219/* end confdefs.h.  */
8220int i;
8221int
8222main (void)
8223{
8224
8225  ;
8226  return 0;
8227}
8228_ACEOF
8229if ac_fn_c_try_link "$LINENO"
8230then :
8231  eval $cacheid=yes
8232else $as_nop
8233  eval $cacheid=no
8234fi
8235rm -f core conftest.err conftest.$ac_objext conftest.beam \
8236    conftest$ac_exeext conftest.$ac_ext
8237fi
8238
8239
8240		CFLAGS="$xorg_testset_save_CFLAGS"
8241
8242		eval supported=\$$cacheid
8243		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8244printf "%s\n" "$supported" >&6; }
8245		if test "$supported" = "yes" ; then
8246			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8247			found="yes"
8248		fi
8249	fi
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265xorg_testset_save_CFLAGS="$CFLAGS"
8266
8267if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8268	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8269	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8270printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8271if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8272then :
8273  printf %s "(cached) " >&6
8274else $as_nop
8275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8276/* end confdefs.h.  */
8277int i;
8278_ACEOF
8279if ac_fn_c_try_compile "$LINENO"
8280then :
8281  xorg_cv_cc_flag_unknown_warning_option=yes
8282else $as_nop
8283  xorg_cv_cc_flag_unknown_warning_option=no
8284fi
8285rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8286fi
8287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8288printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8289	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8290	CFLAGS="$xorg_testset_save_CFLAGS"
8291fi
8292
8293if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8294	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8295		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8296	fi
8297	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8298	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8299printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8300if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8301then :
8302  printf %s "(cached) " >&6
8303else $as_nop
8304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8305/* end confdefs.h.  */
8306int i;
8307_ACEOF
8308if ac_fn_c_try_compile "$LINENO"
8309then :
8310  xorg_cv_cc_flag_unused_command_line_argument=yes
8311else $as_nop
8312  xorg_cv_cc_flag_unused_command_line_argument=no
8313fi
8314rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8315fi
8316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8317printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8318	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8319	CFLAGS="$xorg_testset_save_CFLAGS"
8320fi
8321
8322found="no"
8323
8324	if test $found = "no" ; then
8325		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8326			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8327		fi
8328
8329		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8330			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8331		fi
8332
8333		CFLAGS="$CFLAGS -Werror=array-bounds"
8334
8335		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8336printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8337		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8338		if eval test \${$cacheid+y}
8339then :
8340  printf %s "(cached) " >&6
8341else $as_nop
8342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8343/* end confdefs.h.  */
8344int i;
8345int
8346main (void)
8347{
8348
8349  ;
8350  return 0;
8351}
8352_ACEOF
8353if ac_fn_c_try_link "$LINENO"
8354then :
8355  eval $cacheid=yes
8356else $as_nop
8357  eval $cacheid=no
8358fi
8359rm -f core conftest.err conftest.$ac_objext conftest.beam \
8360    conftest$ac_exeext conftest.$ac_ext
8361fi
8362
8363
8364		CFLAGS="$xorg_testset_save_CFLAGS"
8365
8366		eval supported=\$$cacheid
8367		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8368printf "%s\n" "$supported" >&6; }
8369		if test "$supported" = "yes" ; then
8370			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8371			found="yes"
8372		fi
8373	fi
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389xorg_testset_save_CFLAGS="$CFLAGS"
8390
8391if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8392	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8393	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8394printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8395if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8396then :
8397  printf %s "(cached) " >&6
8398else $as_nop
8399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8400/* end confdefs.h.  */
8401int i;
8402_ACEOF
8403if ac_fn_c_try_compile "$LINENO"
8404then :
8405  xorg_cv_cc_flag_unknown_warning_option=yes
8406else $as_nop
8407  xorg_cv_cc_flag_unknown_warning_option=no
8408fi
8409rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8410fi
8411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8412printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8413	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8414	CFLAGS="$xorg_testset_save_CFLAGS"
8415fi
8416
8417if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8418	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8419		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8420	fi
8421	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8422	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8423printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8424if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8425then :
8426  printf %s "(cached) " >&6
8427else $as_nop
8428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8429/* end confdefs.h.  */
8430int i;
8431_ACEOF
8432if ac_fn_c_try_compile "$LINENO"
8433then :
8434  xorg_cv_cc_flag_unused_command_line_argument=yes
8435else $as_nop
8436  xorg_cv_cc_flag_unused_command_line_argument=no
8437fi
8438rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8439fi
8440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8441printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8442	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8443	CFLAGS="$xorg_testset_save_CFLAGS"
8444fi
8445
8446found="no"
8447
8448	if test $found = "no" ; then
8449		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8450			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8451		fi
8452
8453		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8454			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8455		fi
8456
8457		CFLAGS="$CFLAGS -Werror=write-strings"
8458
8459		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8460printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8461		cacheid=xorg_cv_cc_flag__Werror_write_strings
8462		if eval test \${$cacheid+y}
8463then :
8464  printf %s "(cached) " >&6
8465else $as_nop
8466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8467/* end confdefs.h.  */
8468int i;
8469int
8470main (void)
8471{
8472
8473  ;
8474  return 0;
8475}
8476_ACEOF
8477if ac_fn_c_try_link "$LINENO"
8478then :
8479  eval $cacheid=yes
8480else $as_nop
8481  eval $cacheid=no
8482fi
8483rm -f core conftest.err conftest.$ac_objext conftest.beam \
8484    conftest$ac_exeext conftest.$ac_ext
8485fi
8486
8487
8488		CFLAGS="$xorg_testset_save_CFLAGS"
8489
8490		eval supported=\$$cacheid
8491		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8492printf "%s\n" "$supported" >&6; }
8493		if test "$supported" = "yes" ; then
8494			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8495			found="yes"
8496		fi
8497	fi
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513xorg_testset_save_CFLAGS="$CFLAGS"
8514
8515if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8516	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8517	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8518printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8519if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8520then :
8521  printf %s "(cached) " >&6
8522else $as_nop
8523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8524/* end confdefs.h.  */
8525int i;
8526_ACEOF
8527if ac_fn_c_try_compile "$LINENO"
8528then :
8529  xorg_cv_cc_flag_unknown_warning_option=yes
8530else $as_nop
8531  xorg_cv_cc_flag_unknown_warning_option=no
8532fi
8533rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8534fi
8535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8536printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8537	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8538	CFLAGS="$xorg_testset_save_CFLAGS"
8539fi
8540
8541if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8542	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8543		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8544	fi
8545	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8546	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8547printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8548if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8549then :
8550  printf %s "(cached) " >&6
8551else $as_nop
8552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8553/* end confdefs.h.  */
8554int i;
8555_ACEOF
8556if ac_fn_c_try_compile "$LINENO"
8557then :
8558  xorg_cv_cc_flag_unused_command_line_argument=yes
8559else $as_nop
8560  xorg_cv_cc_flag_unused_command_line_argument=no
8561fi
8562rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8563fi
8564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8565printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8566	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8567	CFLAGS="$xorg_testset_save_CFLAGS"
8568fi
8569
8570found="no"
8571
8572	if test $found = "no" ; then
8573		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8574			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8575		fi
8576
8577		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8578			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8579		fi
8580
8581		CFLAGS="$CFLAGS -Werror=address"
8582
8583		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8584printf %s "checking if $CC supports -Werror=address... " >&6; }
8585		cacheid=xorg_cv_cc_flag__Werror_address
8586		if eval test \${$cacheid+y}
8587then :
8588  printf %s "(cached) " >&6
8589else $as_nop
8590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8591/* end confdefs.h.  */
8592int i;
8593int
8594main (void)
8595{
8596
8597  ;
8598  return 0;
8599}
8600_ACEOF
8601if ac_fn_c_try_link "$LINENO"
8602then :
8603  eval $cacheid=yes
8604else $as_nop
8605  eval $cacheid=no
8606fi
8607rm -f core conftest.err conftest.$ac_objext conftest.beam \
8608    conftest$ac_exeext conftest.$ac_ext
8609fi
8610
8611
8612		CFLAGS="$xorg_testset_save_CFLAGS"
8613
8614		eval supported=\$$cacheid
8615		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8616printf "%s\n" "$supported" >&6; }
8617		if test "$supported" = "yes" ; then
8618			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8619			found="yes"
8620		fi
8621	fi
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637xorg_testset_save_CFLAGS="$CFLAGS"
8638
8639if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8640	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8641	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8642printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8643if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8644then :
8645  printf %s "(cached) " >&6
8646else $as_nop
8647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8648/* end confdefs.h.  */
8649int i;
8650_ACEOF
8651if ac_fn_c_try_compile "$LINENO"
8652then :
8653  xorg_cv_cc_flag_unknown_warning_option=yes
8654else $as_nop
8655  xorg_cv_cc_flag_unknown_warning_option=no
8656fi
8657rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8658fi
8659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8660printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8661	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8662	CFLAGS="$xorg_testset_save_CFLAGS"
8663fi
8664
8665if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8666	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8667		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8668	fi
8669	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8670	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8671printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8672if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8673then :
8674  printf %s "(cached) " >&6
8675else $as_nop
8676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8677/* end confdefs.h.  */
8678int i;
8679_ACEOF
8680if ac_fn_c_try_compile "$LINENO"
8681then :
8682  xorg_cv_cc_flag_unused_command_line_argument=yes
8683else $as_nop
8684  xorg_cv_cc_flag_unused_command_line_argument=no
8685fi
8686rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8687fi
8688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8689printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8690	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8691	CFLAGS="$xorg_testset_save_CFLAGS"
8692fi
8693
8694found="no"
8695
8696	if test $found = "no" ; then
8697		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8698			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8699		fi
8700
8701		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8702			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8703		fi
8704
8705		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8706
8707		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8708printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8709		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8710		if eval test \${$cacheid+y}
8711then :
8712  printf %s "(cached) " >&6
8713else $as_nop
8714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8715/* end confdefs.h.  */
8716int i;
8717int
8718main (void)
8719{
8720
8721  ;
8722  return 0;
8723}
8724_ACEOF
8725if ac_fn_c_try_link "$LINENO"
8726then :
8727  eval $cacheid=yes
8728else $as_nop
8729  eval $cacheid=no
8730fi
8731rm -f core conftest.err conftest.$ac_objext conftest.beam \
8732    conftest$ac_exeext conftest.$ac_ext
8733fi
8734
8735
8736		CFLAGS="$xorg_testset_save_CFLAGS"
8737
8738		eval supported=\$$cacheid
8739		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8740printf "%s\n" "$supported" >&6; }
8741		if test "$supported" = "yes" ; then
8742			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8743			found="yes"
8744		fi
8745	fi
8746
8747	if test $found = "no" ; then
8748		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8749			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8750		fi
8751
8752		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8753			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8754		fi
8755
8756		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8757
8758		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8759printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8760		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8761		if eval test \${$cacheid+y}
8762then :
8763  printf %s "(cached) " >&6
8764else $as_nop
8765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8766/* end confdefs.h.  */
8767int i;
8768int
8769main (void)
8770{
8771
8772  ;
8773  return 0;
8774}
8775_ACEOF
8776if ac_fn_c_try_link "$LINENO"
8777then :
8778  eval $cacheid=yes
8779else $as_nop
8780  eval $cacheid=no
8781fi
8782rm -f core conftest.err conftest.$ac_objext conftest.beam \
8783    conftest$ac_exeext conftest.$ac_ext
8784fi
8785
8786
8787		CFLAGS="$xorg_testset_save_CFLAGS"
8788
8789		eval supported=\$$cacheid
8790		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8791printf "%s\n" "$supported" >&6; }
8792		if test "$supported" = "yes" ; then
8793			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8794			found="yes"
8795		fi
8796	fi
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812xorg_testset_save_CFLAGS="$CFLAGS"
8813
8814if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8815	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8816	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8817printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8818if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8819then :
8820  printf %s "(cached) " >&6
8821else $as_nop
8822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8823/* end confdefs.h.  */
8824int i;
8825_ACEOF
8826if ac_fn_c_try_compile "$LINENO"
8827then :
8828  xorg_cv_cc_flag_unknown_warning_option=yes
8829else $as_nop
8830  xorg_cv_cc_flag_unknown_warning_option=no
8831fi
8832rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8833fi
8834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8835printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8836	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8837	CFLAGS="$xorg_testset_save_CFLAGS"
8838fi
8839
8840if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8841	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8842		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8843	fi
8844	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8845	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8846printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8847if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8848then :
8849  printf %s "(cached) " >&6
8850else $as_nop
8851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8852/* end confdefs.h.  */
8853int i;
8854_ACEOF
8855if ac_fn_c_try_compile "$LINENO"
8856then :
8857  xorg_cv_cc_flag_unused_command_line_argument=yes
8858else $as_nop
8859  xorg_cv_cc_flag_unused_command_line_argument=no
8860fi
8861rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8862fi
8863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8864printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8865	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8866	CFLAGS="$xorg_testset_save_CFLAGS"
8867fi
8868
8869found="no"
8870
8871	if test $found = "no" ; then
8872		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8873			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8874		fi
8875
8876		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8877			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8878		fi
8879
8880		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8881
8882		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8883printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8884		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8885		if eval test \${$cacheid+y}
8886then :
8887  printf %s "(cached) " >&6
8888else $as_nop
8889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8890/* end confdefs.h.  */
8891int i;
8892int
8893main (void)
8894{
8895
8896  ;
8897  return 0;
8898}
8899_ACEOF
8900if ac_fn_c_try_link "$LINENO"
8901then :
8902  eval $cacheid=yes
8903else $as_nop
8904  eval $cacheid=no
8905fi
8906rm -f core conftest.err conftest.$ac_objext conftest.beam \
8907    conftest$ac_exeext conftest.$ac_ext
8908fi
8909
8910
8911		CFLAGS="$xorg_testset_save_CFLAGS"
8912
8913		eval supported=\$$cacheid
8914		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8915printf "%s\n" "$supported" >&6; }
8916		if test "$supported" = "yes" ; then
8917			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8918			found="yes"
8919		fi
8920	fi
8921
8922 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8923else
8924{ 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
8925printf "%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;}
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939xorg_testset_save_CFLAGS="$CFLAGS"
8940
8941if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8942	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8943	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8944printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8945if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8946then :
8947  printf %s "(cached) " >&6
8948else $as_nop
8949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8950/* end confdefs.h.  */
8951int i;
8952_ACEOF
8953if ac_fn_c_try_compile "$LINENO"
8954then :
8955  xorg_cv_cc_flag_unknown_warning_option=yes
8956else $as_nop
8957  xorg_cv_cc_flag_unknown_warning_option=no
8958fi
8959rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8960fi
8961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8962printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8963	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8964	CFLAGS="$xorg_testset_save_CFLAGS"
8965fi
8966
8967if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8968	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8969		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8970	fi
8971	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8972	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8973printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8974if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8975then :
8976  printf %s "(cached) " >&6
8977else $as_nop
8978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8979/* end confdefs.h.  */
8980int i;
8981_ACEOF
8982if ac_fn_c_try_compile "$LINENO"
8983then :
8984  xorg_cv_cc_flag_unused_command_line_argument=yes
8985else $as_nop
8986  xorg_cv_cc_flag_unused_command_line_argument=no
8987fi
8988rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8989fi
8990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8991printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8992	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8993	CFLAGS="$xorg_testset_save_CFLAGS"
8994fi
8995
8996found="no"
8997
8998	if test $found = "no" ; then
8999		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9000			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9001		fi
9002
9003		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9004			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9005		fi
9006
9007		CFLAGS="$CFLAGS -Wimplicit"
9008
9009		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9010printf %s "checking if $CC supports -Wimplicit... " >&6; }
9011		cacheid=xorg_cv_cc_flag__Wimplicit
9012		if eval test \${$cacheid+y}
9013then :
9014  printf %s "(cached) " >&6
9015else $as_nop
9016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9017/* end confdefs.h.  */
9018int i;
9019int
9020main (void)
9021{
9022
9023  ;
9024  return 0;
9025}
9026_ACEOF
9027if ac_fn_c_try_link "$LINENO"
9028then :
9029  eval $cacheid=yes
9030else $as_nop
9031  eval $cacheid=no
9032fi
9033rm -f core conftest.err conftest.$ac_objext conftest.beam \
9034    conftest$ac_exeext conftest.$ac_ext
9035fi
9036
9037
9038		CFLAGS="$xorg_testset_save_CFLAGS"
9039
9040		eval supported=\$$cacheid
9041		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9042printf "%s\n" "$supported" >&6; }
9043		if test "$supported" = "yes" ; then
9044			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9045			found="yes"
9046		fi
9047	fi
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063xorg_testset_save_CFLAGS="$CFLAGS"
9064
9065if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9066	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9067	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9068printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9069if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9070then :
9071  printf %s "(cached) " >&6
9072else $as_nop
9073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9074/* end confdefs.h.  */
9075int i;
9076_ACEOF
9077if ac_fn_c_try_compile "$LINENO"
9078then :
9079  xorg_cv_cc_flag_unknown_warning_option=yes
9080else $as_nop
9081  xorg_cv_cc_flag_unknown_warning_option=no
9082fi
9083rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9084fi
9085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9086printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9087	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9088	CFLAGS="$xorg_testset_save_CFLAGS"
9089fi
9090
9091if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9092	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9093		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9094	fi
9095	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9096	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9097printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9098if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9099then :
9100  printf %s "(cached) " >&6
9101else $as_nop
9102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9103/* end confdefs.h.  */
9104int i;
9105_ACEOF
9106if ac_fn_c_try_compile "$LINENO"
9107then :
9108  xorg_cv_cc_flag_unused_command_line_argument=yes
9109else $as_nop
9110  xorg_cv_cc_flag_unused_command_line_argument=no
9111fi
9112rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9113fi
9114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9115printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9116	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9117	CFLAGS="$xorg_testset_save_CFLAGS"
9118fi
9119
9120found="no"
9121
9122	if test $found = "no" ; then
9123		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9124			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9125		fi
9126
9127		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9128			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9129		fi
9130
9131		CFLAGS="$CFLAGS -Wnonnull"
9132
9133		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9134printf %s "checking if $CC supports -Wnonnull... " >&6; }
9135		cacheid=xorg_cv_cc_flag__Wnonnull
9136		if eval test \${$cacheid+y}
9137then :
9138  printf %s "(cached) " >&6
9139else $as_nop
9140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9141/* end confdefs.h.  */
9142int i;
9143int
9144main (void)
9145{
9146
9147  ;
9148  return 0;
9149}
9150_ACEOF
9151if ac_fn_c_try_link "$LINENO"
9152then :
9153  eval $cacheid=yes
9154else $as_nop
9155  eval $cacheid=no
9156fi
9157rm -f core conftest.err conftest.$ac_objext conftest.beam \
9158    conftest$ac_exeext conftest.$ac_ext
9159fi
9160
9161
9162		CFLAGS="$xorg_testset_save_CFLAGS"
9163
9164		eval supported=\$$cacheid
9165		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9166printf "%s\n" "$supported" >&6; }
9167		if test "$supported" = "yes" ; then
9168			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9169			found="yes"
9170		fi
9171	fi
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187xorg_testset_save_CFLAGS="$CFLAGS"
9188
9189if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9190	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9191	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9192printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9193if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9194then :
9195  printf %s "(cached) " >&6
9196else $as_nop
9197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9198/* end confdefs.h.  */
9199int i;
9200_ACEOF
9201if ac_fn_c_try_compile "$LINENO"
9202then :
9203  xorg_cv_cc_flag_unknown_warning_option=yes
9204else $as_nop
9205  xorg_cv_cc_flag_unknown_warning_option=no
9206fi
9207rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9208fi
9209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9210printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9211	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9212	CFLAGS="$xorg_testset_save_CFLAGS"
9213fi
9214
9215if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9216	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9217		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9218	fi
9219	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9220	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9221printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9222if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9223then :
9224  printf %s "(cached) " >&6
9225else $as_nop
9226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9227/* end confdefs.h.  */
9228int i;
9229_ACEOF
9230if ac_fn_c_try_compile "$LINENO"
9231then :
9232  xorg_cv_cc_flag_unused_command_line_argument=yes
9233else $as_nop
9234  xorg_cv_cc_flag_unused_command_line_argument=no
9235fi
9236rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9237fi
9238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9239printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9240	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9241	CFLAGS="$xorg_testset_save_CFLAGS"
9242fi
9243
9244found="no"
9245
9246	if test $found = "no" ; then
9247		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9248			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9249		fi
9250
9251		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9252			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9253		fi
9254
9255		CFLAGS="$CFLAGS -Winit-self"
9256
9257		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9258printf %s "checking if $CC supports -Winit-self... " >&6; }
9259		cacheid=xorg_cv_cc_flag__Winit_self
9260		if eval test \${$cacheid+y}
9261then :
9262  printf %s "(cached) " >&6
9263else $as_nop
9264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9265/* end confdefs.h.  */
9266int i;
9267int
9268main (void)
9269{
9270
9271  ;
9272  return 0;
9273}
9274_ACEOF
9275if ac_fn_c_try_link "$LINENO"
9276then :
9277  eval $cacheid=yes
9278else $as_nop
9279  eval $cacheid=no
9280fi
9281rm -f core conftest.err conftest.$ac_objext conftest.beam \
9282    conftest$ac_exeext conftest.$ac_ext
9283fi
9284
9285
9286		CFLAGS="$xorg_testset_save_CFLAGS"
9287
9288		eval supported=\$$cacheid
9289		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9290printf "%s\n" "$supported" >&6; }
9291		if test "$supported" = "yes" ; then
9292			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9293			found="yes"
9294		fi
9295	fi
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311xorg_testset_save_CFLAGS="$CFLAGS"
9312
9313if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9314	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9315	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9316printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9317if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9318then :
9319  printf %s "(cached) " >&6
9320else $as_nop
9321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9322/* end confdefs.h.  */
9323int i;
9324_ACEOF
9325if ac_fn_c_try_compile "$LINENO"
9326then :
9327  xorg_cv_cc_flag_unknown_warning_option=yes
9328else $as_nop
9329  xorg_cv_cc_flag_unknown_warning_option=no
9330fi
9331rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9332fi
9333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9334printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9335	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9336	CFLAGS="$xorg_testset_save_CFLAGS"
9337fi
9338
9339if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9340	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9341		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9342	fi
9343	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9344	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9345printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9346if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9347then :
9348  printf %s "(cached) " >&6
9349else $as_nop
9350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9351/* end confdefs.h.  */
9352int i;
9353_ACEOF
9354if ac_fn_c_try_compile "$LINENO"
9355then :
9356  xorg_cv_cc_flag_unused_command_line_argument=yes
9357else $as_nop
9358  xorg_cv_cc_flag_unused_command_line_argument=no
9359fi
9360rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9361fi
9362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9363printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9364	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9365	CFLAGS="$xorg_testset_save_CFLAGS"
9366fi
9367
9368found="no"
9369
9370	if test $found = "no" ; then
9371		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9372			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9373		fi
9374
9375		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9376			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9377		fi
9378
9379		CFLAGS="$CFLAGS -Wmain"
9380
9381		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9382printf %s "checking if $CC supports -Wmain... " >&6; }
9383		cacheid=xorg_cv_cc_flag__Wmain
9384		if eval test \${$cacheid+y}
9385then :
9386  printf %s "(cached) " >&6
9387else $as_nop
9388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9389/* end confdefs.h.  */
9390int i;
9391int
9392main (void)
9393{
9394
9395  ;
9396  return 0;
9397}
9398_ACEOF
9399if ac_fn_c_try_link "$LINENO"
9400then :
9401  eval $cacheid=yes
9402else $as_nop
9403  eval $cacheid=no
9404fi
9405rm -f core conftest.err conftest.$ac_objext conftest.beam \
9406    conftest$ac_exeext conftest.$ac_ext
9407fi
9408
9409
9410		CFLAGS="$xorg_testset_save_CFLAGS"
9411
9412		eval supported=\$$cacheid
9413		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9414printf "%s\n" "$supported" >&6; }
9415		if test "$supported" = "yes" ; then
9416			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9417			found="yes"
9418		fi
9419	fi
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435xorg_testset_save_CFLAGS="$CFLAGS"
9436
9437if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9438	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9439	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9440printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9441if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9442then :
9443  printf %s "(cached) " >&6
9444else $as_nop
9445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9446/* end confdefs.h.  */
9447int i;
9448_ACEOF
9449if ac_fn_c_try_compile "$LINENO"
9450then :
9451  xorg_cv_cc_flag_unknown_warning_option=yes
9452else $as_nop
9453  xorg_cv_cc_flag_unknown_warning_option=no
9454fi
9455rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9456fi
9457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9458printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9459	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9460	CFLAGS="$xorg_testset_save_CFLAGS"
9461fi
9462
9463if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9464	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9465		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9466	fi
9467	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9468	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9469printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9470if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9471then :
9472  printf %s "(cached) " >&6
9473else $as_nop
9474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9475/* end confdefs.h.  */
9476int i;
9477_ACEOF
9478if ac_fn_c_try_compile "$LINENO"
9479then :
9480  xorg_cv_cc_flag_unused_command_line_argument=yes
9481else $as_nop
9482  xorg_cv_cc_flag_unused_command_line_argument=no
9483fi
9484rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9485fi
9486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9487printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9488	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9489	CFLAGS="$xorg_testset_save_CFLAGS"
9490fi
9491
9492found="no"
9493
9494	if test $found = "no" ; then
9495		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9496			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9497		fi
9498
9499		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9500			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9501		fi
9502
9503		CFLAGS="$CFLAGS -Wmissing-braces"
9504
9505		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9506printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9507		cacheid=xorg_cv_cc_flag__Wmissing_braces
9508		if eval test \${$cacheid+y}
9509then :
9510  printf %s "(cached) " >&6
9511else $as_nop
9512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9513/* end confdefs.h.  */
9514int i;
9515int
9516main (void)
9517{
9518
9519  ;
9520  return 0;
9521}
9522_ACEOF
9523if ac_fn_c_try_link "$LINENO"
9524then :
9525  eval $cacheid=yes
9526else $as_nop
9527  eval $cacheid=no
9528fi
9529rm -f core conftest.err conftest.$ac_objext conftest.beam \
9530    conftest$ac_exeext conftest.$ac_ext
9531fi
9532
9533
9534		CFLAGS="$xorg_testset_save_CFLAGS"
9535
9536		eval supported=\$$cacheid
9537		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9538printf "%s\n" "$supported" >&6; }
9539		if test "$supported" = "yes" ; then
9540			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9541			found="yes"
9542		fi
9543	fi
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559xorg_testset_save_CFLAGS="$CFLAGS"
9560
9561if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9562	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9563	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9564printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9565if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9566then :
9567  printf %s "(cached) " >&6
9568else $as_nop
9569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9570/* end confdefs.h.  */
9571int i;
9572_ACEOF
9573if ac_fn_c_try_compile "$LINENO"
9574then :
9575  xorg_cv_cc_flag_unknown_warning_option=yes
9576else $as_nop
9577  xorg_cv_cc_flag_unknown_warning_option=no
9578fi
9579rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9580fi
9581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9582printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9583	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9584	CFLAGS="$xorg_testset_save_CFLAGS"
9585fi
9586
9587if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9588	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9589		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9590	fi
9591	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9592	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9593printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9594if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9595then :
9596  printf %s "(cached) " >&6
9597else $as_nop
9598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9599/* end confdefs.h.  */
9600int i;
9601_ACEOF
9602if ac_fn_c_try_compile "$LINENO"
9603then :
9604  xorg_cv_cc_flag_unused_command_line_argument=yes
9605else $as_nop
9606  xorg_cv_cc_flag_unused_command_line_argument=no
9607fi
9608rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9609fi
9610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9611printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9612	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9613	CFLAGS="$xorg_testset_save_CFLAGS"
9614fi
9615
9616found="no"
9617
9618	if test $found = "no" ; then
9619		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9620			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9621		fi
9622
9623		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9624			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9625		fi
9626
9627		CFLAGS="$CFLAGS -Wsequence-point"
9628
9629		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9630printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9631		cacheid=xorg_cv_cc_flag__Wsequence_point
9632		if eval test \${$cacheid+y}
9633then :
9634  printf %s "(cached) " >&6
9635else $as_nop
9636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9637/* end confdefs.h.  */
9638int i;
9639int
9640main (void)
9641{
9642
9643  ;
9644  return 0;
9645}
9646_ACEOF
9647if ac_fn_c_try_link "$LINENO"
9648then :
9649  eval $cacheid=yes
9650else $as_nop
9651  eval $cacheid=no
9652fi
9653rm -f core conftest.err conftest.$ac_objext conftest.beam \
9654    conftest$ac_exeext conftest.$ac_ext
9655fi
9656
9657
9658		CFLAGS="$xorg_testset_save_CFLAGS"
9659
9660		eval supported=\$$cacheid
9661		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9662printf "%s\n" "$supported" >&6; }
9663		if test "$supported" = "yes" ; then
9664			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9665			found="yes"
9666		fi
9667	fi
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683xorg_testset_save_CFLAGS="$CFLAGS"
9684
9685if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9686	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9687	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9688printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9689if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9690then :
9691  printf %s "(cached) " >&6
9692else $as_nop
9693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9694/* end confdefs.h.  */
9695int i;
9696_ACEOF
9697if ac_fn_c_try_compile "$LINENO"
9698then :
9699  xorg_cv_cc_flag_unknown_warning_option=yes
9700else $as_nop
9701  xorg_cv_cc_flag_unknown_warning_option=no
9702fi
9703rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9704fi
9705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9706printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9707	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9708	CFLAGS="$xorg_testset_save_CFLAGS"
9709fi
9710
9711if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9712	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9713		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9714	fi
9715	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9716	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9717printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9718if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9719then :
9720  printf %s "(cached) " >&6
9721else $as_nop
9722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9723/* end confdefs.h.  */
9724int i;
9725_ACEOF
9726if ac_fn_c_try_compile "$LINENO"
9727then :
9728  xorg_cv_cc_flag_unused_command_line_argument=yes
9729else $as_nop
9730  xorg_cv_cc_flag_unused_command_line_argument=no
9731fi
9732rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9733fi
9734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9735printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9736	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9737	CFLAGS="$xorg_testset_save_CFLAGS"
9738fi
9739
9740found="no"
9741
9742	if test $found = "no" ; then
9743		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9744			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9745		fi
9746
9747		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9748			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9749		fi
9750
9751		CFLAGS="$CFLAGS -Wreturn-type"
9752
9753		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9754printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9755		cacheid=xorg_cv_cc_flag__Wreturn_type
9756		if eval test \${$cacheid+y}
9757then :
9758  printf %s "(cached) " >&6
9759else $as_nop
9760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9761/* end confdefs.h.  */
9762int i;
9763int
9764main (void)
9765{
9766
9767  ;
9768  return 0;
9769}
9770_ACEOF
9771if ac_fn_c_try_link "$LINENO"
9772then :
9773  eval $cacheid=yes
9774else $as_nop
9775  eval $cacheid=no
9776fi
9777rm -f core conftest.err conftest.$ac_objext conftest.beam \
9778    conftest$ac_exeext conftest.$ac_ext
9779fi
9780
9781
9782		CFLAGS="$xorg_testset_save_CFLAGS"
9783
9784		eval supported=\$$cacheid
9785		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9786printf "%s\n" "$supported" >&6; }
9787		if test "$supported" = "yes" ; then
9788			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9789			found="yes"
9790		fi
9791	fi
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807xorg_testset_save_CFLAGS="$CFLAGS"
9808
9809if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9810	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9811	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9812printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9813if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9814then :
9815  printf %s "(cached) " >&6
9816else $as_nop
9817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9818/* end confdefs.h.  */
9819int i;
9820_ACEOF
9821if ac_fn_c_try_compile "$LINENO"
9822then :
9823  xorg_cv_cc_flag_unknown_warning_option=yes
9824else $as_nop
9825  xorg_cv_cc_flag_unknown_warning_option=no
9826fi
9827rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9828fi
9829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9830printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9831	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9832	CFLAGS="$xorg_testset_save_CFLAGS"
9833fi
9834
9835if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9836	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9837		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9838	fi
9839	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9840	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9841printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9842if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9843then :
9844  printf %s "(cached) " >&6
9845else $as_nop
9846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9847/* end confdefs.h.  */
9848int i;
9849_ACEOF
9850if ac_fn_c_try_compile "$LINENO"
9851then :
9852  xorg_cv_cc_flag_unused_command_line_argument=yes
9853else $as_nop
9854  xorg_cv_cc_flag_unused_command_line_argument=no
9855fi
9856rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9857fi
9858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9859printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9860	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9861	CFLAGS="$xorg_testset_save_CFLAGS"
9862fi
9863
9864found="no"
9865
9866	if test $found = "no" ; then
9867		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9868			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9869		fi
9870
9871		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9872			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9873		fi
9874
9875		CFLAGS="$CFLAGS -Wtrigraphs"
9876
9877		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9878printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9879		cacheid=xorg_cv_cc_flag__Wtrigraphs
9880		if eval test \${$cacheid+y}
9881then :
9882  printf %s "(cached) " >&6
9883else $as_nop
9884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9885/* end confdefs.h.  */
9886int i;
9887int
9888main (void)
9889{
9890
9891  ;
9892  return 0;
9893}
9894_ACEOF
9895if ac_fn_c_try_link "$LINENO"
9896then :
9897  eval $cacheid=yes
9898else $as_nop
9899  eval $cacheid=no
9900fi
9901rm -f core conftest.err conftest.$ac_objext conftest.beam \
9902    conftest$ac_exeext conftest.$ac_ext
9903fi
9904
9905
9906		CFLAGS="$xorg_testset_save_CFLAGS"
9907
9908		eval supported=\$$cacheid
9909		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9910printf "%s\n" "$supported" >&6; }
9911		if test "$supported" = "yes" ; then
9912			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9913			found="yes"
9914		fi
9915	fi
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931xorg_testset_save_CFLAGS="$CFLAGS"
9932
9933if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9934	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9935	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9936printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9937if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9938then :
9939  printf %s "(cached) " >&6
9940else $as_nop
9941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9942/* end confdefs.h.  */
9943int i;
9944_ACEOF
9945if ac_fn_c_try_compile "$LINENO"
9946then :
9947  xorg_cv_cc_flag_unknown_warning_option=yes
9948else $as_nop
9949  xorg_cv_cc_flag_unknown_warning_option=no
9950fi
9951rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9952fi
9953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9954printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9955	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9956	CFLAGS="$xorg_testset_save_CFLAGS"
9957fi
9958
9959if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9960	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9961		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9962	fi
9963	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9964	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9965printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9966if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9967then :
9968  printf %s "(cached) " >&6
9969else $as_nop
9970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9971/* end confdefs.h.  */
9972int i;
9973_ACEOF
9974if ac_fn_c_try_compile "$LINENO"
9975then :
9976  xorg_cv_cc_flag_unused_command_line_argument=yes
9977else $as_nop
9978  xorg_cv_cc_flag_unused_command_line_argument=no
9979fi
9980rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9981fi
9982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9983printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9984	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9985	CFLAGS="$xorg_testset_save_CFLAGS"
9986fi
9987
9988found="no"
9989
9990	if test $found = "no" ; then
9991		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9992			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9993		fi
9994
9995		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9996			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9997		fi
9998
9999		CFLAGS="$CFLAGS -Warray-bounds"
10000
10001		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10002printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10003		cacheid=xorg_cv_cc_flag__Warray_bounds
10004		if eval test \${$cacheid+y}
10005then :
10006  printf %s "(cached) " >&6
10007else $as_nop
10008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10009/* end confdefs.h.  */
10010int i;
10011int
10012main (void)
10013{
10014
10015  ;
10016  return 0;
10017}
10018_ACEOF
10019if ac_fn_c_try_link "$LINENO"
10020then :
10021  eval $cacheid=yes
10022else $as_nop
10023  eval $cacheid=no
10024fi
10025rm -f core conftest.err conftest.$ac_objext conftest.beam \
10026    conftest$ac_exeext conftest.$ac_ext
10027fi
10028
10029
10030		CFLAGS="$xorg_testset_save_CFLAGS"
10031
10032		eval supported=\$$cacheid
10033		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10034printf "%s\n" "$supported" >&6; }
10035		if test "$supported" = "yes" ; then
10036			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10037			found="yes"
10038		fi
10039	fi
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055xorg_testset_save_CFLAGS="$CFLAGS"
10056
10057if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10058	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10059	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10060printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10061if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10062then :
10063  printf %s "(cached) " >&6
10064else $as_nop
10065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10066/* end confdefs.h.  */
10067int i;
10068_ACEOF
10069if ac_fn_c_try_compile "$LINENO"
10070then :
10071  xorg_cv_cc_flag_unknown_warning_option=yes
10072else $as_nop
10073  xorg_cv_cc_flag_unknown_warning_option=no
10074fi
10075rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10076fi
10077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10078printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10079	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10080	CFLAGS="$xorg_testset_save_CFLAGS"
10081fi
10082
10083if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10084	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10085		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10086	fi
10087	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10088	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10089printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10090if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10091then :
10092  printf %s "(cached) " >&6
10093else $as_nop
10094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10095/* end confdefs.h.  */
10096int i;
10097_ACEOF
10098if ac_fn_c_try_compile "$LINENO"
10099then :
10100  xorg_cv_cc_flag_unused_command_line_argument=yes
10101else $as_nop
10102  xorg_cv_cc_flag_unused_command_line_argument=no
10103fi
10104rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10105fi
10106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10107printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10108	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10109	CFLAGS="$xorg_testset_save_CFLAGS"
10110fi
10111
10112found="no"
10113
10114	if test $found = "no" ; then
10115		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10116			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10117		fi
10118
10119		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10120			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10121		fi
10122
10123		CFLAGS="$CFLAGS -Wwrite-strings"
10124
10125		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10126printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10127		cacheid=xorg_cv_cc_flag__Wwrite_strings
10128		if eval test \${$cacheid+y}
10129then :
10130  printf %s "(cached) " >&6
10131else $as_nop
10132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10133/* end confdefs.h.  */
10134int i;
10135int
10136main (void)
10137{
10138
10139  ;
10140  return 0;
10141}
10142_ACEOF
10143if ac_fn_c_try_link "$LINENO"
10144then :
10145  eval $cacheid=yes
10146else $as_nop
10147  eval $cacheid=no
10148fi
10149rm -f core conftest.err conftest.$ac_objext conftest.beam \
10150    conftest$ac_exeext conftest.$ac_ext
10151fi
10152
10153
10154		CFLAGS="$xorg_testset_save_CFLAGS"
10155
10156		eval supported=\$$cacheid
10157		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10158printf "%s\n" "$supported" >&6; }
10159		if test "$supported" = "yes" ; then
10160			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10161			found="yes"
10162		fi
10163	fi
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179xorg_testset_save_CFLAGS="$CFLAGS"
10180
10181if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10182	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10183	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10184printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10185if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10186then :
10187  printf %s "(cached) " >&6
10188else $as_nop
10189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10190/* end confdefs.h.  */
10191int i;
10192_ACEOF
10193if ac_fn_c_try_compile "$LINENO"
10194then :
10195  xorg_cv_cc_flag_unknown_warning_option=yes
10196else $as_nop
10197  xorg_cv_cc_flag_unknown_warning_option=no
10198fi
10199rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10200fi
10201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10202printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10203	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10204	CFLAGS="$xorg_testset_save_CFLAGS"
10205fi
10206
10207if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10208	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10209		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10210	fi
10211	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10212	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10213printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10214if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10215then :
10216  printf %s "(cached) " >&6
10217else $as_nop
10218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10219/* end confdefs.h.  */
10220int i;
10221_ACEOF
10222if ac_fn_c_try_compile "$LINENO"
10223then :
10224  xorg_cv_cc_flag_unused_command_line_argument=yes
10225else $as_nop
10226  xorg_cv_cc_flag_unused_command_line_argument=no
10227fi
10228rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10229fi
10230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10231printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10232	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10233	CFLAGS="$xorg_testset_save_CFLAGS"
10234fi
10235
10236found="no"
10237
10238	if test $found = "no" ; then
10239		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10240			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10241		fi
10242
10243		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10244			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10245		fi
10246
10247		CFLAGS="$CFLAGS -Waddress"
10248
10249		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10250printf %s "checking if $CC supports -Waddress... " >&6; }
10251		cacheid=xorg_cv_cc_flag__Waddress
10252		if eval test \${$cacheid+y}
10253then :
10254  printf %s "(cached) " >&6
10255else $as_nop
10256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10257/* end confdefs.h.  */
10258int i;
10259int
10260main (void)
10261{
10262
10263  ;
10264  return 0;
10265}
10266_ACEOF
10267if ac_fn_c_try_link "$LINENO"
10268then :
10269  eval $cacheid=yes
10270else $as_nop
10271  eval $cacheid=no
10272fi
10273rm -f core conftest.err conftest.$ac_objext conftest.beam \
10274    conftest$ac_exeext conftest.$ac_ext
10275fi
10276
10277
10278		CFLAGS="$xorg_testset_save_CFLAGS"
10279
10280		eval supported=\$$cacheid
10281		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10282printf "%s\n" "$supported" >&6; }
10283		if test "$supported" = "yes" ; then
10284			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10285			found="yes"
10286		fi
10287	fi
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303xorg_testset_save_CFLAGS="$CFLAGS"
10304
10305if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10306	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10307	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10308printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10309if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10310then :
10311  printf %s "(cached) " >&6
10312else $as_nop
10313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10314/* end confdefs.h.  */
10315int i;
10316_ACEOF
10317if ac_fn_c_try_compile "$LINENO"
10318then :
10319  xorg_cv_cc_flag_unknown_warning_option=yes
10320else $as_nop
10321  xorg_cv_cc_flag_unknown_warning_option=no
10322fi
10323rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10324fi
10325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10326printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10327	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10328	CFLAGS="$xorg_testset_save_CFLAGS"
10329fi
10330
10331if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10332	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10333		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10334	fi
10335	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10336	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10337printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10338if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10339then :
10340  printf %s "(cached) " >&6
10341else $as_nop
10342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10343/* end confdefs.h.  */
10344int i;
10345_ACEOF
10346if ac_fn_c_try_compile "$LINENO"
10347then :
10348  xorg_cv_cc_flag_unused_command_line_argument=yes
10349else $as_nop
10350  xorg_cv_cc_flag_unused_command_line_argument=no
10351fi
10352rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10353fi
10354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10355printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10356	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10357	CFLAGS="$xorg_testset_save_CFLAGS"
10358fi
10359
10360found="no"
10361
10362	if test $found = "no" ; then
10363		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10364			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10365		fi
10366
10367		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10368			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10369		fi
10370
10371		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10372
10373		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10374printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10375		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10376		if eval test \${$cacheid+y}
10377then :
10378  printf %s "(cached) " >&6
10379else $as_nop
10380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10381/* end confdefs.h.  */
10382int i;
10383int
10384main (void)
10385{
10386
10387  ;
10388  return 0;
10389}
10390_ACEOF
10391if ac_fn_c_try_link "$LINENO"
10392then :
10393  eval $cacheid=yes
10394else $as_nop
10395  eval $cacheid=no
10396fi
10397rm -f core conftest.err conftest.$ac_objext conftest.beam \
10398    conftest$ac_exeext conftest.$ac_ext
10399fi
10400
10401
10402		CFLAGS="$xorg_testset_save_CFLAGS"
10403
10404		eval supported=\$$cacheid
10405		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10406printf "%s\n" "$supported" >&6; }
10407		if test "$supported" = "yes" ; then
10408			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10409			found="yes"
10410		fi
10411	fi
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427xorg_testset_save_CFLAGS="$CFLAGS"
10428
10429if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10430	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10431	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10432printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10433if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10434then :
10435  printf %s "(cached) " >&6
10436else $as_nop
10437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10438/* end confdefs.h.  */
10439int i;
10440_ACEOF
10441if ac_fn_c_try_compile "$LINENO"
10442then :
10443  xorg_cv_cc_flag_unknown_warning_option=yes
10444else $as_nop
10445  xorg_cv_cc_flag_unknown_warning_option=no
10446fi
10447rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10448fi
10449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10450printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10451	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10452	CFLAGS="$xorg_testset_save_CFLAGS"
10453fi
10454
10455if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10456	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10457		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10458	fi
10459	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10460	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10461printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10462if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10463then :
10464  printf %s "(cached) " >&6
10465else $as_nop
10466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10467/* end confdefs.h.  */
10468int i;
10469_ACEOF
10470if ac_fn_c_try_compile "$LINENO"
10471then :
10472  xorg_cv_cc_flag_unused_command_line_argument=yes
10473else $as_nop
10474  xorg_cv_cc_flag_unused_command_line_argument=no
10475fi
10476rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10477fi
10478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10479printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10480	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10481	CFLAGS="$xorg_testset_save_CFLAGS"
10482fi
10483
10484found="no"
10485
10486	if test $found = "no" ; then
10487		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10488			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10489		fi
10490
10491		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10492			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10493		fi
10494
10495		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10496
10497		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10498printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10499		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10500		if eval test \${$cacheid+y}
10501then :
10502  printf %s "(cached) " >&6
10503else $as_nop
10504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10505/* end confdefs.h.  */
10506int i;
10507int
10508main (void)
10509{
10510
10511  ;
10512  return 0;
10513}
10514_ACEOF
10515if ac_fn_c_try_link "$LINENO"
10516then :
10517  eval $cacheid=yes
10518else $as_nop
10519  eval $cacheid=no
10520fi
10521rm -f core conftest.err conftest.$ac_objext conftest.beam \
10522    conftest$ac_exeext conftest.$ac_ext
10523fi
10524
10525
10526		CFLAGS="$xorg_testset_save_CFLAGS"
10527
10528		eval supported=\$$cacheid
10529		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10530printf "%s\n" "$supported" >&6; }
10531		if test "$supported" = "yes" ; then
10532			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10533			found="yes"
10534		fi
10535	fi
10536
10537
10538fi
10539
10540
10541
10542
10543
10544
10545
10546		CWARNFLAGS="$BASE_CFLAGS"
10547		if  test "x$GCC" = xyes ; then
10548		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10549		fi
10550
10551
10552
10553
10554
10555
10556
10557
10558# Check whether --enable-strict-compilation was given.
10559if test ${enable_strict_compilation+y}
10560then :
10561  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10562else $as_nop
10563  STRICT_COMPILE=no
10564fi
10565
10566
10567
10568
10569
10570
10571STRICT_CFLAGS=""
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585xorg_testset_save_CFLAGS="$CFLAGS"
10586
10587if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10588	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10589	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10590printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10591if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10592then :
10593  printf %s "(cached) " >&6
10594else $as_nop
10595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10596/* end confdefs.h.  */
10597int i;
10598_ACEOF
10599if ac_fn_c_try_compile "$LINENO"
10600then :
10601  xorg_cv_cc_flag_unknown_warning_option=yes
10602else $as_nop
10603  xorg_cv_cc_flag_unknown_warning_option=no
10604fi
10605rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10606fi
10607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10608printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10609	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10610	CFLAGS="$xorg_testset_save_CFLAGS"
10611fi
10612
10613if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10614	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10615		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10616	fi
10617	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10618	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10619printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10620if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10621then :
10622  printf %s "(cached) " >&6
10623else $as_nop
10624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10625/* end confdefs.h.  */
10626int i;
10627_ACEOF
10628if ac_fn_c_try_compile "$LINENO"
10629then :
10630  xorg_cv_cc_flag_unused_command_line_argument=yes
10631else $as_nop
10632  xorg_cv_cc_flag_unused_command_line_argument=no
10633fi
10634rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10635fi
10636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10637printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10638	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10639	CFLAGS="$xorg_testset_save_CFLAGS"
10640fi
10641
10642found="no"
10643
10644	if test $found = "no" ; then
10645		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10646			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10647		fi
10648
10649		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10650			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10651		fi
10652
10653		CFLAGS="$CFLAGS -pedantic"
10654
10655		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10656printf %s "checking if $CC supports -pedantic... " >&6; }
10657		cacheid=xorg_cv_cc_flag__pedantic
10658		if eval test \${$cacheid+y}
10659then :
10660  printf %s "(cached) " >&6
10661else $as_nop
10662  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10663/* end confdefs.h.  */
10664int i;
10665int
10666main (void)
10667{
10668
10669  ;
10670  return 0;
10671}
10672_ACEOF
10673if ac_fn_c_try_link "$LINENO"
10674then :
10675  eval $cacheid=yes
10676else $as_nop
10677  eval $cacheid=no
10678fi
10679rm -f core conftest.err conftest.$ac_objext conftest.beam \
10680    conftest$ac_exeext conftest.$ac_ext
10681fi
10682
10683
10684		CFLAGS="$xorg_testset_save_CFLAGS"
10685
10686		eval supported=\$$cacheid
10687		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10688printf "%s\n" "$supported" >&6; }
10689		if test "$supported" = "yes" ; then
10690			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10691			found="yes"
10692		fi
10693	fi
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709xorg_testset_save_CFLAGS="$CFLAGS"
10710
10711if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10712	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10713	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10714printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10715if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10716then :
10717  printf %s "(cached) " >&6
10718else $as_nop
10719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10720/* end confdefs.h.  */
10721int i;
10722_ACEOF
10723if ac_fn_c_try_compile "$LINENO"
10724then :
10725  xorg_cv_cc_flag_unknown_warning_option=yes
10726else $as_nop
10727  xorg_cv_cc_flag_unknown_warning_option=no
10728fi
10729rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10730fi
10731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10732printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10733	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10734	CFLAGS="$xorg_testset_save_CFLAGS"
10735fi
10736
10737if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10738	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10739		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10740	fi
10741	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10742	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10743printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10744if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10745then :
10746  printf %s "(cached) " >&6
10747else $as_nop
10748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10749/* end confdefs.h.  */
10750int i;
10751_ACEOF
10752if ac_fn_c_try_compile "$LINENO"
10753then :
10754  xorg_cv_cc_flag_unused_command_line_argument=yes
10755else $as_nop
10756  xorg_cv_cc_flag_unused_command_line_argument=no
10757fi
10758rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10759fi
10760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10761printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10762	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10763	CFLAGS="$xorg_testset_save_CFLAGS"
10764fi
10765
10766found="no"
10767
10768	if test $found = "no" ; then
10769		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10770			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10771		fi
10772
10773		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10774			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10775		fi
10776
10777		CFLAGS="$CFLAGS -Werror"
10778
10779		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10780printf %s "checking if $CC supports -Werror... " >&6; }
10781		cacheid=xorg_cv_cc_flag__Werror
10782		if eval test \${$cacheid+y}
10783then :
10784  printf %s "(cached) " >&6
10785else $as_nop
10786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10787/* end confdefs.h.  */
10788int i;
10789int
10790main (void)
10791{
10792
10793  ;
10794  return 0;
10795}
10796_ACEOF
10797if ac_fn_c_try_link "$LINENO"
10798then :
10799  eval $cacheid=yes
10800else $as_nop
10801  eval $cacheid=no
10802fi
10803rm -f core conftest.err conftest.$ac_objext conftest.beam \
10804    conftest$ac_exeext conftest.$ac_ext
10805fi
10806
10807
10808		CFLAGS="$xorg_testset_save_CFLAGS"
10809
10810		eval supported=\$$cacheid
10811		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10812printf "%s\n" "$supported" >&6; }
10813		if test "$supported" = "yes" ; then
10814			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10815			found="yes"
10816		fi
10817	fi
10818
10819	if test $found = "no" ; then
10820		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10821			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10822		fi
10823
10824		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10825			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10826		fi
10827
10828		CFLAGS="$CFLAGS -errwarn"
10829
10830		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10831printf %s "checking if $CC supports -errwarn... " >&6; }
10832		cacheid=xorg_cv_cc_flag__errwarn
10833		if eval test \${$cacheid+y}
10834then :
10835  printf %s "(cached) " >&6
10836else $as_nop
10837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10838/* end confdefs.h.  */
10839int i;
10840int
10841main (void)
10842{
10843
10844  ;
10845  return 0;
10846}
10847_ACEOF
10848if ac_fn_c_try_link "$LINENO"
10849then :
10850  eval $cacheid=yes
10851else $as_nop
10852  eval $cacheid=no
10853fi
10854rm -f core conftest.err conftest.$ac_objext conftest.beam \
10855    conftest$ac_exeext conftest.$ac_ext
10856fi
10857
10858
10859		CFLAGS="$xorg_testset_save_CFLAGS"
10860
10861		eval supported=\$$cacheid
10862		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10863printf "%s\n" "$supported" >&6; }
10864		if test "$supported" = "yes" ; then
10865			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10866			found="yes"
10867		fi
10868	fi
10869
10870
10871
10872# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10873# activate it with -Werror, so we add it here explicitly.
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887xorg_testset_save_CFLAGS="$CFLAGS"
10888
10889if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10890	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10891	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10892printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10893if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10894then :
10895  printf %s "(cached) " >&6
10896else $as_nop
10897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10898/* end confdefs.h.  */
10899int i;
10900_ACEOF
10901if ac_fn_c_try_compile "$LINENO"
10902then :
10903  xorg_cv_cc_flag_unknown_warning_option=yes
10904else $as_nop
10905  xorg_cv_cc_flag_unknown_warning_option=no
10906fi
10907rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10908fi
10909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10910printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10911	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10912	CFLAGS="$xorg_testset_save_CFLAGS"
10913fi
10914
10915if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10916	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10917		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10918	fi
10919	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10920	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10921printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10922if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10923then :
10924  printf %s "(cached) " >&6
10925else $as_nop
10926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10927/* end confdefs.h.  */
10928int i;
10929_ACEOF
10930if ac_fn_c_try_compile "$LINENO"
10931then :
10932  xorg_cv_cc_flag_unused_command_line_argument=yes
10933else $as_nop
10934  xorg_cv_cc_flag_unused_command_line_argument=no
10935fi
10936rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10937fi
10938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10939printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10940	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10941	CFLAGS="$xorg_testset_save_CFLAGS"
10942fi
10943
10944found="no"
10945
10946	if test $found = "no" ; then
10947		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10948			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10949		fi
10950
10951		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10952			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10953		fi
10954
10955		CFLAGS="$CFLAGS -Werror=attributes"
10956
10957		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10958printf %s "checking if $CC supports -Werror=attributes... " >&6; }
10959		cacheid=xorg_cv_cc_flag__Werror_attributes
10960		if eval test \${$cacheid+y}
10961then :
10962  printf %s "(cached) " >&6
10963else $as_nop
10964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10965/* end confdefs.h.  */
10966int i;
10967int
10968main (void)
10969{
10970
10971  ;
10972  return 0;
10973}
10974_ACEOF
10975if ac_fn_c_try_link "$LINENO"
10976then :
10977  eval $cacheid=yes
10978else $as_nop
10979  eval $cacheid=no
10980fi
10981rm -f core conftest.err conftest.$ac_objext conftest.beam \
10982    conftest$ac_exeext conftest.$ac_ext
10983fi
10984
10985
10986		CFLAGS="$xorg_testset_save_CFLAGS"
10987
10988		eval supported=\$$cacheid
10989		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10990printf "%s\n" "$supported" >&6; }
10991		if test "$supported" = "yes" ; then
10992			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10993			found="yes"
10994		fi
10995	fi
10996
10997
10998
10999if test "x$STRICT_COMPILE" = "xyes"; then
11000    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11001    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11002fi
11003
11004
11005
11006
11007
11008
11009cat >>confdefs.h <<_ACEOF
11010#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11011_ACEOF
11012
11013	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11014	if test "x$PVM" = "x"; then
11015		PVM="0"
11016	fi
11017
11018printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11019
11020	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11021	if test "x$PVP" = "x"; then
11022		PVP="0"
11023	fi
11024
11025printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11026
11027
11028
11029CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11030mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11031|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11032touch \$(top_srcdir)/ChangeLog; \
11033echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11034
11035
11036
11037
11038macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11039INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11040mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11041|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11042touch \$(top_srcdir)/INSTALL; \
11043echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11044
11045
11046
11047
11048
11049
11050case $host_os in
11051    solaris*)
11052        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11053        # check for a man page file found in later versions that use
11054        # traditional section numbers instead
11055        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11056printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11057if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11058then :
11059  printf %s "(cached) " >&6
11060else $as_nop
11061  test "$cross_compiling" = yes &&
11062  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11063if test -r "/usr/share/man/man7/attributes.7"; then
11064  ac_cv_file__usr_share_man_man7_attributes_7=yes
11065else
11066  ac_cv_file__usr_share_man_man7_attributes_7=no
11067fi
11068fi
11069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11070printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11071if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11072then :
11073  SYSV_MAN_SECTIONS=false
11074else $as_nop
11075  SYSV_MAN_SECTIONS=true
11076fi
11077
11078        ;;
11079    *) SYSV_MAN_SECTIONS=false ;;
11080esac
11081
11082if test x$APP_MAN_SUFFIX = x    ; then
11083    APP_MAN_SUFFIX=1
11084fi
11085if test x$APP_MAN_DIR = x    ; then
11086    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11087fi
11088
11089if test x$LIB_MAN_SUFFIX = x    ; then
11090    LIB_MAN_SUFFIX=3
11091fi
11092if test x$LIB_MAN_DIR = x    ; then
11093    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11094fi
11095
11096if test x$FILE_MAN_SUFFIX = x    ; then
11097    case $SYSV_MAN_SECTIONS in
11098	true)				FILE_MAN_SUFFIX=4  ;;
11099	*)				FILE_MAN_SUFFIX=5  ;;
11100    esac
11101fi
11102if test x$FILE_MAN_DIR = x    ; then
11103    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11104fi
11105
11106if test x$MISC_MAN_SUFFIX = x    ; then
11107    case $SYSV_MAN_SECTIONS in
11108	true)				MISC_MAN_SUFFIX=5  ;;
11109	*)				MISC_MAN_SUFFIX=7  ;;
11110    esac
11111fi
11112if test x$MISC_MAN_DIR = x    ; then
11113    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11114fi
11115
11116if test x$DRIVER_MAN_SUFFIX = x    ; then
11117    case $SYSV_MAN_SECTIONS in
11118	true)				DRIVER_MAN_SUFFIX=7  ;;
11119	*)				DRIVER_MAN_SUFFIX=4  ;;
11120    esac
11121fi
11122if test x$DRIVER_MAN_DIR = x    ; then
11123    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11124fi
11125
11126if test x$ADMIN_MAN_SUFFIX = x    ; then
11127    case $SYSV_MAN_SECTIONS in
11128	true)				ADMIN_MAN_SUFFIX=1m ;;
11129	*)				ADMIN_MAN_SUFFIX=8  ;;
11130    esac
11131fi
11132if test x$ADMIN_MAN_DIR = x    ; then
11133    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11134fi
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150XORG_MAN_PAGE="X Version 11"
11151
11152MAN_SUBSTS="\
11153	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11154	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11155	-e 's|__xservername__|Xorg|g' \
11156	-e 's|__xconfigfile__|xorg.conf|g' \
11157	-e 's|__projectroot__|\$(prefix)|g' \
11158	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11159	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11160	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11161	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11162	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11163	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11164	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11165
11166
11167
11168# Check whether --enable-silent-rules was given.
11169if test ${enable_silent_rules+y}
11170then :
11171  enableval=$enable_silent_rules;
11172fi
11173
11174case $enable_silent_rules in # (((
11175  yes) AM_DEFAULT_VERBOSITY=0;;
11176   no) AM_DEFAULT_VERBOSITY=1;;
11177    *) AM_DEFAULT_VERBOSITY=0;;
11178esac
11179am_make=${MAKE-make}
11180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11181printf %s "checking whether $am_make supports nested variables... " >&6; }
11182if test ${am_cv_make_support_nested_variables+y}
11183then :
11184  printf %s "(cached) " >&6
11185else $as_nop
11186  if printf "%s\n" 'TRUE=$(BAR$(V))
11187BAR0=false
11188BAR1=true
11189V=1
11190am__doit:
11191	@$(TRUE)
11192.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11193  am_cv_make_support_nested_variables=yes
11194else
11195  am_cv_make_support_nested_variables=no
11196fi
11197fi
11198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11199printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11200if test $am_cv_make_support_nested_variables = yes; then
11201    AM_V='$(V)'
11202  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11203else
11204  AM_V=$AM_DEFAULT_VERBOSITY
11205  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11206fi
11207AM_BACKSLASH='\'
11208
11209
11210
11211# Checks for pkg-config packages
11212
11213pkg_failed=no
11214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XDPYINFO" >&5
11215printf %s "checking for XDPYINFO... " >&6; }
11216
11217if test -n "$XDPYINFO_CFLAGS"; then
11218    pkg_cv_XDPYINFO_CFLAGS="$XDPYINFO_CFLAGS"
11219 elif test -n "$PKG_CONFIG"; then
11220    if test -n "$PKG_CONFIG" && \
11221    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext x11 xtst x11-xcb xcb xproto >= 7.0.22\""; } >&5
11222  ($PKG_CONFIG --exists --print-errors "xext x11 xtst x11-xcb xcb xproto >= 7.0.22") 2>&5
11223  ac_status=$?
11224  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11225  test $ac_status = 0; }; then
11226  pkg_cv_XDPYINFO_CFLAGS=`$PKG_CONFIG --cflags "xext x11 xtst x11-xcb xcb xproto >= 7.0.22" 2>/dev/null`
11227		      test "x$?" != "x0" && pkg_failed=yes
11228else
11229  pkg_failed=yes
11230fi
11231 else
11232    pkg_failed=untried
11233fi
11234if test -n "$XDPYINFO_LIBS"; then
11235    pkg_cv_XDPYINFO_LIBS="$XDPYINFO_LIBS"
11236 elif test -n "$PKG_CONFIG"; then
11237    if test -n "$PKG_CONFIG" && \
11238    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext x11 xtst x11-xcb xcb xproto >= 7.0.22\""; } >&5
11239  ($PKG_CONFIG --exists --print-errors "xext x11 xtst x11-xcb xcb xproto >= 7.0.22") 2>&5
11240  ac_status=$?
11241  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11242  test $ac_status = 0; }; then
11243  pkg_cv_XDPYINFO_LIBS=`$PKG_CONFIG --libs "xext x11 xtst x11-xcb xcb xproto >= 7.0.22" 2>/dev/null`
11244		      test "x$?" != "x0" && pkg_failed=yes
11245else
11246  pkg_failed=yes
11247fi
11248 else
11249    pkg_failed=untried
11250fi
11251
11252
11253
11254if test $pkg_failed = yes; then
11255   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11256printf "%s\n" "no" >&6; }
11257
11258if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11259        _pkg_short_errors_supported=yes
11260else
11261        _pkg_short_errors_supported=no
11262fi
11263        if test $_pkg_short_errors_supported = yes; then
11264	        XDPYINFO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext x11 xtst x11-xcb xcb xproto >= 7.0.22" 2>&1`
11265        else
11266	        XDPYINFO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext x11 xtst x11-xcb xcb xproto >= 7.0.22" 2>&1`
11267        fi
11268	# Put the nasty error message in config.log where it belongs
11269	echo "$XDPYINFO_PKG_ERRORS" >&5
11270
11271	as_fn_error $? "Package requirements (xext x11 xtst x11-xcb xcb xproto >= 7.0.22) were not met:
11272
11273$XDPYINFO_PKG_ERRORS
11274
11275Consider adjusting the PKG_CONFIG_PATH environment variable if you
11276installed software in a non-standard prefix.
11277
11278Alternatively, you may set the environment variables XDPYINFO_CFLAGS
11279and XDPYINFO_LIBS to avoid the need to call pkg-config.
11280See the pkg-config man page for more details." "$LINENO" 5
11281elif test $pkg_failed = untried; then
11282     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11283printf "%s\n" "no" >&6; }
11284	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11285printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11286as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11287is in your PATH or set the PKG_CONFIG environment variable to the full
11288path to pkg-config.
11289
11290Alternatively, you may set the environment variables XDPYINFO_CFLAGS
11291and XDPYINFO_LIBS to avoid the need to call pkg-config.
11292See the pkg-config man page for more details.
11293
11294To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11295See \`config.log' for more details" "$LINENO" 5; }
11296else
11297	XDPYINFO_CFLAGS=$pkg_cv_XDPYINFO_CFLAGS
11298	XDPYINFO_LIBS=$pkg_cv_XDPYINFO_LIBS
11299        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11300printf "%s\n" "yes" >&6; }
11301
11302fi
11303
11304# This is used below to allow <X11/Xlib.h> to be found
11305
11306pkg_failed=no
11307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DPY_X11" >&5
11308printf %s "checking for DPY_X11... " >&6; }
11309
11310if test -n "$DPY_X11_CFLAGS"; then
11311    pkg_cv_DPY_X11_CFLAGS="$DPY_X11_CFLAGS"
11312 elif test -n "$PKG_CONFIG"; then
11313    if test -n "$PKG_CONFIG" && \
11314    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
11315  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
11316  ac_status=$?
11317  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11318  test $ac_status = 0; }; then
11319  pkg_cv_DPY_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
11320		      test "x$?" != "x0" && pkg_failed=yes
11321else
11322  pkg_failed=yes
11323fi
11324 else
11325    pkg_failed=untried
11326fi
11327if test -n "$DPY_X11_LIBS"; then
11328    pkg_cv_DPY_X11_LIBS="$DPY_X11_LIBS"
11329 elif test -n "$PKG_CONFIG"; then
11330    if test -n "$PKG_CONFIG" && \
11331    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
11332  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
11333  ac_status=$?
11334  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11335  test $ac_status = 0; }; then
11336  pkg_cv_DPY_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
11337		      test "x$?" != "x0" && pkg_failed=yes
11338else
11339  pkg_failed=yes
11340fi
11341 else
11342    pkg_failed=untried
11343fi
11344
11345
11346
11347if test $pkg_failed = yes; then
11348   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11349printf "%s\n" "no" >&6; }
11350
11351if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11352        _pkg_short_errors_supported=yes
11353else
11354        _pkg_short_errors_supported=no
11355fi
11356        if test $_pkg_short_errors_supported = yes; then
11357	        DPY_X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
11358        else
11359	        DPY_X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
11360        fi
11361	# Put the nasty error message in config.log where it belongs
11362	echo "$DPY_X11_PKG_ERRORS" >&5
11363
11364	as_fn_error $? "Package requirements (x11) were not met:
11365
11366$DPY_X11_PKG_ERRORS
11367
11368Consider adjusting the PKG_CONFIG_PATH environment variable if you
11369installed software in a non-standard prefix.
11370
11371Alternatively, you may set the environment variables DPY_X11_CFLAGS
11372and DPY_X11_LIBS to avoid the need to call pkg-config.
11373See the pkg-config man page for more details." "$LINENO" 5
11374elif test $pkg_failed = untried; then
11375     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11376printf "%s\n" "no" >&6; }
11377	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11378printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11379as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11380is in your PATH or set the PKG_CONFIG environment variable to the full
11381path to pkg-config.
11382
11383Alternatively, you may set the environment variables DPY_X11_CFLAGS
11384and DPY_X11_LIBS to avoid the need to call pkg-config.
11385See the pkg-config man page for more details.
11386
11387To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11388See \`config.log' for more details" "$LINENO" 5; }
11389else
11390	DPY_X11_CFLAGS=$pkg_cv_DPY_X11_CFLAGS
11391	DPY_X11_LIBS=$pkg_cv_DPY_X11_LIBS
11392        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11393printf "%s\n" "yes" >&6; }
11394
11395fi
11396
11397
11398pkg_failed=no
11399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DPY_XEXT" >&5
11400printf %s "checking for DPY_XEXT... " >&6; }
11401
11402if test -n "$DPY_XEXT_CFLAGS"; then
11403    pkg_cv_DPY_XEXT_CFLAGS="$DPY_XEXT_CFLAGS"
11404 elif test -n "$PKG_CONFIG"; then
11405    if test -n "$PKG_CONFIG" && \
11406    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
11407  ($PKG_CONFIG --exists --print-errors "xext") 2>&5
11408  ac_status=$?
11409  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11410  test $ac_status = 0; }; then
11411  pkg_cv_DPY_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
11412		      test "x$?" != "x0" && pkg_failed=yes
11413else
11414  pkg_failed=yes
11415fi
11416 else
11417    pkg_failed=untried
11418fi
11419if test -n "$DPY_XEXT_LIBS"; then
11420    pkg_cv_DPY_XEXT_LIBS="$DPY_XEXT_LIBS"
11421 elif test -n "$PKG_CONFIG"; then
11422    if test -n "$PKG_CONFIG" && \
11423    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
11424  ($PKG_CONFIG --exists --print-errors "xext") 2>&5
11425  ac_status=$?
11426  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11427  test $ac_status = 0; }; then
11428  pkg_cv_DPY_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
11429		      test "x$?" != "x0" && pkg_failed=yes
11430else
11431  pkg_failed=yes
11432fi
11433 else
11434    pkg_failed=untried
11435fi
11436
11437
11438
11439if test $pkg_failed = yes; then
11440   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11441printf "%s\n" "no" >&6; }
11442
11443if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11444        _pkg_short_errors_supported=yes
11445else
11446        _pkg_short_errors_supported=no
11447fi
11448        if test $_pkg_short_errors_supported = yes; then
11449	        DPY_XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext" 2>&1`
11450        else
11451	        DPY_XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext" 2>&1`
11452        fi
11453	# Put the nasty error message in config.log where it belongs
11454	echo "$DPY_XEXT_PKG_ERRORS" >&5
11455
11456	echo "not found"
11457elif test $pkg_failed = untried; then
11458     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11459printf "%s\n" "no" >&6; }
11460	echo "not found"
11461else
11462	DPY_XEXT_CFLAGS=$pkg_cv_DPY_XEXT_CFLAGS
11463	DPY_XEXT_LIBS=$pkg_cv_DPY_XEXT_LIBS
11464        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11465printf "%s\n" "yes" >&6; }
11466	SAVE_CPPFLAGS="$CPPFLAGS"
11467	CPPFLAGS="$CPPFLAGS $DPY_XEXT_CFLAGS $DPY_X11_CFLAGS"
11468	ac_fn_c_check_header_compile "$LINENO" "X11/extensions/multibuf.h" "ac_cv_header_X11_extensions_multibuf_h" "#include <X11/Xlib.h>
11469"
11470if test "x$ac_cv_header_X11_extensions_multibuf_h" = xyes
11471then :
11472  printf "%s\n" "#define HAVE_X11_EXTENSIONS_MULTIBUF_H 1" >>confdefs.h
11473
11474fi
11475ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XShm.h" "ac_cv_header_X11_extensions_XShm_h" "#include <X11/Xlib.h>
11476"
11477if test "x$ac_cv_header_X11_extensions_XShm_h" = xyes
11478then :
11479  printf "%s\n" "#define HAVE_X11_EXTENSIONS_XSHM_H 1" >>confdefs.h
11480
11481fi
11482
11483	CPPFLAGS="$SAVE_CPPFLAGS"
11484fi
11485
11486
11487pkg_failed=no
11488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DPY_XKB" >&5
11489printf %s "checking for DPY_XKB... " >&6; }
11490
11491if test -n "$DPY_XKB_CFLAGS"; then
11492    pkg_cv_DPY_XKB_CFLAGS="$DPY_XKB_CFLAGS"
11493 elif test -n "$PKG_CONFIG"; then
11494    if test -n "$PKG_CONFIG" && \
11495    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
11496  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
11497  ac_status=$?
11498  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11499  test $ac_status = 0; }; then
11500  pkg_cv_DPY_XKB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
11501		      test "x$?" != "x0" && pkg_failed=yes
11502else
11503  pkg_failed=yes
11504fi
11505 else
11506    pkg_failed=untried
11507fi
11508if test -n "$DPY_XKB_LIBS"; then
11509    pkg_cv_DPY_XKB_LIBS="$DPY_XKB_LIBS"
11510 elif test -n "$PKG_CONFIG"; then
11511    if test -n "$PKG_CONFIG" && \
11512    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
11513  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
11514  ac_status=$?
11515  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11516  test $ac_status = 0; }; then
11517  pkg_cv_DPY_XKB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
11518		      test "x$?" != "x0" && pkg_failed=yes
11519else
11520  pkg_failed=yes
11521fi
11522 else
11523    pkg_failed=untried
11524fi
11525
11526
11527
11528if test $pkg_failed = yes; then
11529   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11530printf "%s\n" "no" >&6; }
11531
11532if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11533        _pkg_short_errors_supported=yes
11534else
11535        _pkg_short_errors_supported=no
11536fi
11537        if test $_pkg_short_errors_supported = yes; then
11538	        DPY_XKB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
11539        else
11540	        DPY_XKB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
11541        fi
11542	# Put the nasty error message in config.log where it belongs
11543	echo "$DPY_XKB_PKG_ERRORS" >&5
11544
11545	echo "not found"
11546elif test $pkg_failed = untried; then
11547     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11548printf "%s\n" "no" >&6; }
11549	echo "not found"
11550else
11551	DPY_XKB_CFLAGS=$pkg_cv_DPY_XKB_CFLAGS
11552	DPY_XKB_LIBS=$pkg_cv_DPY_XKB_LIBS
11553        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11554printf "%s\n" "yes" >&6; }
11555	SAVE_CPPFLAGS="$CPPFLAGS"
11556	CPPFLAGS="$CPPFLAGS $DPY_XKB_CFLAGS $DPY_X11_CFLAGS"
11557	ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XKB.h" "ac_cv_header_X11_extensions_XKB_h" "#include <X11/Xlib.h>
11558"
11559if test "x$ac_cv_header_X11_extensions_XKB_h" = xyes
11560then :
11561  printf "%s\n" "#define HAVE_X11_EXTENSIONS_XKB_H 1" >>confdefs.h
11562
11563fi
11564ac_fn_c_check_header_compile "$LINENO" "X11/XKBlib.h" "ac_cv_header_X11_XKBlib_h" "#include <X11/Xlib.h>
11565"
11566if test "x$ac_cv_header_X11_XKBlib_h" = xyes
11567then :
11568  printf "%s\n" "#define HAVE_X11_XKBLIB_H 1" >>confdefs.h
11569
11570fi
11571
11572	CPPFLAGS="$SAVE_CPPFLAGS"
11573fi
11574
11575
11576pkg_failed=no
11577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DPY_XF86VIDMODE" >&5
11578printf %s "checking for DPY_XF86VIDMODE... " >&6; }
11579
11580if test -n "$DPY_XF86VIDMODE_CFLAGS"; then
11581    pkg_cv_DPY_XF86VIDMODE_CFLAGS="$DPY_XF86VIDMODE_CFLAGS"
11582 elif test -n "$PKG_CONFIG"; then
11583    if test -n "$PKG_CONFIG" && \
11584    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86vm\""; } >&5
11585  ($PKG_CONFIG --exists --print-errors "xxf86vm") 2>&5
11586  ac_status=$?
11587  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11588  test $ac_status = 0; }; then
11589  pkg_cv_DPY_XF86VIDMODE_CFLAGS=`$PKG_CONFIG --cflags "xxf86vm" 2>/dev/null`
11590		      test "x$?" != "x0" && pkg_failed=yes
11591else
11592  pkg_failed=yes
11593fi
11594 else
11595    pkg_failed=untried
11596fi
11597if test -n "$DPY_XF86VIDMODE_LIBS"; then
11598    pkg_cv_DPY_XF86VIDMODE_LIBS="$DPY_XF86VIDMODE_LIBS"
11599 elif test -n "$PKG_CONFIG"; then
11600    if test -n "$PKG_CONFIG" && \
11601    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86vm\""; } >&5
11602  ($PKG_CONFIG --exists --print-errors "xxf86vm") 2>&5
11603  ac_status=$?
11604  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11605  test $ac_status = 0; }; then
11606  pkg_cv_DPY_XF86VIDMODE_LIBS=`$PKG_CONFIG --libs "xxf86vm" 2>/dev/null`
11607		      test "x$?" != "x0" && pkg_failed=yes
11608else
11609  pkg_failed=yes
11610fi
11611 else
11612    pkg_failed=untried
11613fi
11614
11615
11616
11617if test $pkg_failed = yes; then
11618   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11619printf "%s\n" "no" >&6; }
11620
11621if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11622        _pkg_short_errors_supported=yes
11623else
11624        _pkg_short_errors_supported=no
11625fi
11626        if test $_pkg_short_errors_supported = yes; then
11627	        DPY_XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xxf86vm" 2>&1`
11628        else
11629	        DPY_XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xxf86vm" 2>&1`
11630        fi
11631	# Put the nasty error message in config.log where it belongs
11632	echo "$DPY_XF86VIDMODE_PKG_ERRORS" >&5
11633
11634	echo "not found"
11635elif test $pkg_failed = untried; then
11636     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11637printf "%s\n" "no" >&6; }
11638	echo "not found"
11639else
11640	DPY_XF86VIDMODE_CFLAGS=$pkg_cv_DPY_XF86VIDMODE_CFLAGS
11641	DPY_XF86VIDMODE_LIBS=$pkg_cv_DPY_XF86VIDMODE_LIBS
11642        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11643printf "%s\n" "yes" >&6; }
11644	SAVE_CPPFLAGS="$CPPFLAGS"
11645	CPPFLAGS="$CPPFLAGS $DPY_XF86VIDMODE_CFLAGS $DPY_X11_CFLAGS"
11646	ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
11647"
11648if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes
11649then :
11650  printf "%s\n" "#define HAVE_X11_EXTENSIONS_XF86VMODE_H 1" >>confdefs.h
11651
11652fi
11653ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmstr.h" "ac_cv_header_X11_extensions_xf86vmstr_h" "#include <X11/Xlib.h>
11654"
11655if test "x$ac_cv_header_X11_extensions_xf86vmstr_h" = xyes
11656then :
11657  printf "%s\n" "#define HAVE_X11_EXTENSIONS_XF86VMSTR_H 1" >>confdefs.h
11658
11659fi
11660ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmproto.h" "ac_cv_header_X11_extensions_xf86vmproto_h" "#include <X11/Xlib.h>
11661"
11662if test "x$ac_cv_header_X11_extensions_xf86vmproto_h" = xyes
11663then :
11664  printf "%s\n" "#define HAVE_X11_EXTENSIONS_XF86VMPROTO_H 1" >>confdefs.h
11665
11666fi
11667
11668	CPPFLAGS="$SAVE_CPPFLAGS"
11669fi
11670
11671
11672# Check whether --with-dga was given.
11673if test ${with_dga+y}
11674then :
11675  withval=$with_dga; USE_DGA="$withval"
11676else $as_nop
11677  USE_DGA="yes"
11678fi
11679
11680if test "x$USE_DGA" != "xno" ; then
11681
11682pkg_failed=no
11683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DPY_XF86DGA" >&5
11684printf %s "checking for DPY_XF86DGA... " >&6; }
11685
11686if test -n "$DPY_XF86DGA_CFLAGS"; then
11687    pkg_cv_DPY_XF86DGA_CFLAGS="$DPY_XF86DGA_CFLAGS"
11688 elif test -n "$PKG_CONFIG"; then
11689    if test -n "$PKG_CONFIG" && \
11690    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86dga\""; } >&5
11691  ($PKG_CONFIG --exists --print-errors "xxf86dga") 2>&5
11692  ac_status=$?
11693  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11694  test $ac_status = 0; }; then
11695  pkg_cv_DPY_XF86DGA_CFLAGS=`$PKG_CONFIG --cflags "xxf86dga" 2>/dev/null`
11696		      test "x$?" != "x0" && pkg_failed=yes
11697else
11698  pkg_failed=yes
11699fi
11700 else
11701    pkg_failed=untried
11702fi
11703if test -n "$DPY_XF86DGA_LIBS"; then
11704    pkg_cv_DPY_XF86DGA_LIBS="$DPY_XF86DGA_LIBS"
11705 elif test -n "$PKG_CONFIG"; then
11706    if test -n "$PKG_CONFIG" && \
11707    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86dga\""; } >&5
11708  ($PKG_CONFIG --exists --print-errors "xxf86dga") 2>&5
11709  ac_status=$?
11710  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11711  test $ac_status = 0; }; then
11712  pkg_cv_DPY_XF86DGA_LIBS=`$PKG_CONFIG --libs "xxf86dga" 2>/dev/null`
11713		      test "x$?" != "x0" && pkg_failed=yes
11714else
11715  pkg_failed=yes
11716fi
11717 else
11718    pkg_failed=untried
11719fi
11720
11721
11722
11723if test $pkg_failed = yes; then
11724   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11725printf "%s\n" "no" >&6; }
11726
11727if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11728        _pkg_short_errors_supported=yes
11729else
11730        _pkg_short_errors_supported=no
11731fi
11732        if test $_pkg_short_errors_supported = yes; then
11733	        DPY_XF86DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xxf86dga" 2>&1`
11734        else
11735	        DPY_XF86DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xxf86dga" 2>&1`
11736        fi
11737	# Put the nasty error message in config.log where it belongs
11738	echo "$DPY_XF86DGA_PKG_ERRORS" >&5
11739
11740	echo "not found"
11741elif test $pkg_failed = untried; then
11742     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11743printf "%s\n" "no" >&6; }
11744	echo "not found"
11745else
11746	DPY_XF86DGA_CFLAGS=$pkg_cv_DPY_XF86DGA_CFLAGS
11747	DPY_XF86DGA_LIBS=$pkg_cv_DPY_XF86DGA_LIBS
11748        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11749printf "%s\n" "yes" >&6; }
11750	SAVE_CPPFLAGS="$CPPFLAGS"
11751		CPPFLAGS="$CPPFLAGS $DPY_XF86DGA_CFLAGS $DPY_X11_CFLAGS"
11752		ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xxf86dga.h" "ac_cv_header_X11_extensions_Xxf86dga_h" "#include <X11/Xlib.h>
11753#include <X11/Xproto.h>
11754"
11755if test "x$ac_cv_header_X11_extensions_Xxf86dga_h" = xyes
11756then :
11757  printf "%s\n" "#define HAVE_X11_EXTENSIONS_XXF86DGA_H 1" >>confdefs.h
11758
11759fi
11760ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86dgaproto.h" "ac_cv_header_X11_extensions_xf86dgaproto_h" "#include <X11/Xlib.h>
11761#include <X11/Xproto.h>
11762"
11763if test "x$ac_cv_header_X11_extensions_xf86dgaproto_h" = xyes
11764then :
11765  printf "%s\n" "#define HAVE_X11_EXTENSIONS_XF86DGAPROTO_H 1" >>confdefs.h
11766
11767fi
11768ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86dga.h" "ac_cv_header_X11_extensions_xf86dga_h" "#include <X11/Xlib.h>
11769#include <X11/Xproto.h>
11770"
11771if test "x$ac_cv_header_X11_extensions_xf86dga_h" = xyes
11772then :
11773  printf "%s\n" "#define HAVE_X11_EXTENSIONS_XF86DGA_H 1" >>confdefs.h
11774
11775fi
11776ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86dgastr.h" "ac_cv_header_X11_extensions_xf86dgastr_h" "#include <X11/Xlib.h>
11777#include <X11/Xproto.h>
11778"
11779if test "x$ac_cv_header_X11_extensions_xf86dgastr_h" = xyes
11780then :
11781  printf "%s\n" "#define HAVE_X11_EXTENSIONS_XF86DGASTR_H 1" >>confdefs.h
11782
11783fi
11784
11785		CPPFLAGS="$SAVE_CPPFLAGS"
11786fi
11787else
11788	echo "without dga"
11789fi
11790
11791
11792
11793# Check whether --with-xf86misc was given.
11794if test ${with_xf86misc+y}
11795then :
11796  withval=$with_xf86misc; USE_XF86MISC="$withval"
11797else $as_nop
11798  USE_XF86MISC="yes"
11799fi
11800
11801if test "x$USE_XF86MISC" != "xno" ; then
11802
11803pkg_failed=no
11804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DPY_XF86MISC" >&5
11805printf %s "checking for DPY_XF86MISC... " >&6; }
11806
11807if test -n "$DPY_XF86MISC_CFLAGS"; then
11808    pkg_cv_DPY_XF86MISC_CFLAGS="$DPY_XF86MISC_CFLAGS"
11809 elif test -n "$PKG_CONFIG"; then
11810    if test -n "$PKG_CONFIG" && \
11811    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86misc\""; } >&5
11812  ($PKG_CONFIG --exists --print-errors "xxf86misc") 2>&5
11813  ac_status=$?
11814  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11815  test $ac_status = 0; }; then
11816  pkg_cv_DPY_XF86MISC_CFLAGS=`$PKG_CONFIG --cflags "xxf86misc" 2>/dev/null`
11817		      test "x$?" != "x0" && pkg_failed=yes
11818else
11819  pkg_failed=yes
11820fi
11821 else
11822    pkg_failed=untried
11823fi
11824if test -n "$DPY_XF86MISC_LIBS"; then
11825    pkg_cv_DPY_XF86MISC_LIBS="$DPY_XF86MISC_LIBS"
11826 elif test -n "$PKG_CONFIG"; then
11827    if test -n "$PKG_CONFIG" && \
11828    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86misc\""; } >&5
11829  ($PKG_CONFIG --exists --print-errors "xxf86misc") 2>&5
11830  ac_status=$?
11831  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11832  test $ac_status = 0; }; then
11833  pkg_cv_DPY_XF86MISC_LIBS=`$PKG_CONFIG --libs "xxf86misc" 2>/dev/null`
11834		      test "x$?" != "x0" && pkg_failed=yes
11835else
11836  pkg_failed=yes
11837fi
11838 else
11839    pkg_failed=untried
11840fi
11841
11842
11843
11844if test $pkg_failed = yes; then
11845   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11846printf "%s\n" "no" >&6; }
11847
11848if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11849        _pkg_short_errors_supported=yes
11850else
11851        _pkg_short_errors_supported=no
11852fi
11853        if test $_pkg_short_errors_supported = yes; then
11854	        DPY_XF86MISC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xxf86misc" 2>&1`
11855        else
11856	        DPY_XF86MISC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xxf86misc" 2>&1`
11857        fi
11858	# Put the nasty error message in config.log where it belongs
11859	echo "$DPY_XF86MISC_PKG_ERRORS" >&5
11860
11861	echo "not found"
11862elif test $pkg_failed = untried; then
11863     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11864printf "%s\n" "no" >&6; }
11865	echo "not found"
11866else
11867	DPY_XF86MISC_CFLAGS=$pkg_cv_DPY_XF86MISC_CFLAGS
11868	DPY_XF86MISC_LIBS=$pkg_cv_DPY_XF86MISC_LIBS
11869        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11870printf "%s\n" "yes" >&6; }
11871	SAVE_CPPFLAGS="$CPPFLAGS"
11872		CPPFLAGS="$CPPFLAGS $DPY_XF86MISC_CFLAGS $DPY_X11_CFLAGS"
11873		ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86misc.h" "ac_cv_header_X11_extensions_xf86misc_h" "#include <X11/Xlib.h>
11874#include <X11/Xproto.h>
11875"
11876if test "x$ac_cv_header_X11_extensions_xf86misc_h" = xyes
11877then :
11878  printf "%s\n" "#define HAVE_X11_EXTENSIONS_XF86MISC_H 1" >>confdefs.h
11879
11880fi
11881ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86mscstr.h" "ac_cv_header_X11_extensions_xf86mscstr_h" "#include <X11/Xlib.h>
11882#include <X11/Xproto.h>
11883"
11884if test "x$ac_cv_header_X11_extensions_xf86mscstr_h" = xyes
11885then :
11886  printf "%s\n" "#define HAVE_X11_EXTENSIONS_XF86MSCSTR_H 1" >>confdefs.h
11887
11888fi
11889
11890		CPPFLAGS="$SAVE_CPPFLAGS"
11891fi
11892else
11893	echo "without xf86misc"
11894fi
11895
11896
11897pkg_failed=no
11898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DPY_XINPUT" >&5
11899printf %s "checking for DPY_XINPUT... " >&6; }
11900
11901if test -n "$DPY_XINPUT_CFLAGS"; then
11902    pkg_cv_DPY_XINPUT_CFLAGS="$DPY_XINPUT_CFLAGS"
11903 elif test -n "$PKG_CONFIG"; then
11904    if test -n "$PKG_CONFIG" && \
11905    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi\""; } >&5
11906  ($PKG_CONFIG --exists --print-errors "xi") 2>&5
11907  ac_status=$?
11908  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11909  test $ac_status = 0; }; then
11910  pkg_cv_DPY_XINPUT_CFLAGS=`$PKG_CONFIG --cflags "xi" 2>/dev/null`
11911		      test "x$?" != "x0" && pkg_failed=yes
11912else
11913  pkg_failed=yes
11914fi
11915 else
11916    pkg_failed=untried
11917fi
11918if test -n "$DPY_XINPUT_LIBS"; then
11919    pkg_cv_DPY_XINPUT_LIBS="$DPY_XINPUT_LIBS"
11920 elif test -n "$PKG_CONFIG"; then
11921    if test -n "$PKG_CONFIG" && \
11922    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi\""; } >&5
11923  ($PKG_CONFIG --exists --print-errors "xi") 2>&5
11924  ac_status=$?
11925  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11926  test $ac_status = 0; }; then
11927  pkg_cv_DPY_XINPUT_LIBS=`$PKG_CONFIG --libs "xi" 2>/dev/null`
11928		      test "x$?" != "x0" && pkg_failed=yes
11929else
11930  pkg_failed=yes
11931fi
11932 else
11933    pkg_failed=untried
11934fi
11935
11936
11937
11938if test $pkg_failed = yes; then
11939   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11940printf "%s\n" "no" >&6; }
11941
11942if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11943        _pkg_short_errors_supported=yes
11944else
11945        _pkg_short_errors_supported=no
11946fi
11947        if test $_pkg_short_errors_supported = yes; then
11948	        DPY_XINPUT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xi" 2>&1`
11949        else
11950	        DPY_XINPUT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xi" 2>&1`
11951        fi
11952	# Put the nasty error message in config.log where it belongs
11953	echo "$DPY_XINPUT_PKG_ERRORS" >&5
11954
11955	echo "not found"
11956elif test $pkg_failed = untried; then
11957     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11958printf "%s\n" "no" >&6; }
11959	echo "not found"
11960else
11961	DPY_XINPUT_CFLAGS=$pkg_cv_DPY_XINPUT_CFLAGS
11962	DPY_XINPUT_LIBS=$pkg_cv_DPY_XINPUT_LIBS
11963        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11964printf "%s\n" "yes" >&6; }
11965	SAVE_CPPFLAGS="$CPPFLAGS"
11966	CPPFLAGS="$CPPFLAGS $DPY_XINPUT_CFLAGS $DPY_X11_CFLAGS"
11967	ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput.h" "ac_cv_header_X11_extensions_XInput_h" "#include <X11/Xlib.h>
11968"
11969if test "x$ac_cv_header_X11_extensions_XInput_h" = xyes
11970then :
11971  printf "%s\n" "#define HAVE_X11_EXTENSIONS_XINPUT_H 1" >>confdefs.h
11972
11973fi
11974
11975	CPPFLAGS="$SAVE_CPPFLAGS"
11976fi
11977
11978
11979pkg_failed=no
11980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DPY_XRENDER" >&5
11981printf %s "checking for DPY_XRENDER... " >&6; }
11982
11983if test -n "$DPY_XRENDER_CFLAGS"; then
11984    pkg_cv_DPY_XRENDER_CFLAGS="$DPY_XRENDER_CFLAGS"
11985 elif test -n "$PKG_CONFIG"; then
11986    if test -n "$PKG_CONFIG" && \
11987    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender\""; } >&5
11988  ($PKG_CONFIG --exists --print-errors "xrender") 2>&5
11989  ac_status=$?
11990  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11991  test $ac_status = 0; }; then
11992  pkg_cv_DPY_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "xrender" 2>/dev/null`
11993		      test "x$?" != "x0" && pkg_failed=yes
11994else
11995  pkg_failed=yes
11996fi
11997 else
11998    pkg_failed=untried
11999fi
12000if test -n "$DPY_XRENDER_LIBS"; then
12001    pkg_cv_DPY_XRENDER_LIBS="$DPY_XRENDER_LIBS"
12002 elif test -n "$PKG_CONFIG"; then
12003    if test -n "$PKG_CONFIG" && \
12004    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender\""; } >&5
12005  ($PKG_CONFIG --exists --print-errors "xrender") 2>&5
12006  ac_status=$?
12007  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12008  test $ac_status = 0; }; then
12009  pkg_cv_DPY_XRENDER_LIBS=`$PKG_CONFIG --libs "xrender" 2>/dev/null`
12010		      test "x$?" != "x0" && pkg_failed=yes
12011else
12012  pkg_failed=yes
12013fi
12014 else
12015    pkg_failed=untried
12016fi
12017
12018
12019
12020if test $pkg_failed = yes; then
12021   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12022printf "%s\n" "no" >&6; }
12023
12024if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12025        _pkg_short_errors_supported=yes
12026else
12027        _pkg_short_errors_supported=no
12028fi
12029        if test $_pkg_short_errors_supported = yes; then
12030	        DPY_XRENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrender" 2>&1`
12031        else
12032	        DPY_XRENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrender" 2>&1`
12033        fi
12034	# Put the nasty error message in config.log where it belongs
12035	echo "$DPY_XRENDER_PKG_ERRORS" >&5
12036
12037	echo "not found"
12038elif test $pkg_failed = untried; then
12039     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12040printf "%s\n" "no" >&6; }
12041	echo "not found"
12042else
12043	DPY_XRENDER_CFLAGS=$pkg_cv_DPY_XRENDER_CFLAGS
12044	DPY_XRENDER_LIBS=$pkg_cv_DPY_XRENDER_LIBS
12045        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12046printf "%s\n" "yes" >&6; }
12047	SAVE_CPPFLAGS="$CPPFLAGS"
12048	CPPFLAGS="$CPPFLAGS $DPY_XRENDER_CFLAGS $DPY_X11_CFLAGS"
12049	ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "#include <X11/Xlib.h>
12050"
12051if test "x$ac_cv_header_X11_extensions_Xrender_h" = xyes
12052then :
12053  printf "%s\n" "#define HAVE_X11_EXTENSIONS_XRENDER_H 1" >>confdefs.h
12054
12055fi
12056
12057	CPPFLAGS="$SAVE_CPPFLAGS"
12058fi
12059
12060
12061pkg_failed=no
12062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DPY_XCOMPOSITE" >&5
12063printf %s "checking for DPY_XCOMPOSITE... " >&6; }
12064
12065if test -n "$DPY_XCOMPOSITE_CFLAGS"; then
12066    pkg_cv_DPY_XCOMPOSITE_CFLAGS="$DPY_XCOMPOSITE_CFLAGS"
12067 elif test -n "$PKG_CONFIG"; then
12068    if test -n "$PKG_CONFIG" && \
12069    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcomposite\""; } >&5
12070  ($PKG_CONFIG --exists --print-errors "xcomposite") 2>&5
12071  ac_status=$?
12072  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12073  test $ac_status = 0; }; then
12074  pkg_cv_DPY_XCOMPOSITE_CFLAGS=`$PKG_CONFIG --cflags "xcomposite" 2>/dev/null`
12075		      test "x$?" != "x0" && pkg_failed=yes
12076else
12077  pkg_failed=yes
12078fi
12079 else
12080    pkg_failed=untried
12081fi
12082if test -n "$DPY_XCOMPOSITE_LIBS"; then
12083    pkg_cv_DPY_XCOMPOSITE_LIBS="$DPY_XCOMPOSITE_LIBS"
12084 elif test -n "$PKG_CONFIG"; then
12085    if test -n "$PKG_CONFIG" && \
12086    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcomposite\""; } >&5
12087  ($PKG_CONFIG --exists --print-errors "xcomposite") 2>&5
12088  ac_status=$?
12089  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12090  test $ac_status = 0; }; then
12091  pkg_cv_DPY_XCOMPOSITE_LIBS=`$PKG_CONFIG --libs "xcomposite" 2>/dev/null`
12092		      test "x$?" != "x0" && pkg_failed=yes
12093else
12094  pkg_failed=yes
12095fi
12096 else
12097    pkg_failed=untried
12098fi
12099
12100
12101
12102if test $pkg_failed = yes; then
12103   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12104printf "%s\n" "no" >&6; }
12105
12106if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12107        _pkg_short_errors_supported=yes
12108else
12109        _pkg_short_errors_supported=no
12110fi
12111        if test $_pkg_short_errors_supported = yes; then
12112	        DPY_XCOMPOSITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcomposite" 2>&1`
12113        else
12114	        DPY_XCOMPOSITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcomposite" 2>&1`
12115        fi
12116	# Put the nasty error message in config.log where it belongs
12117	echo "$DPY_XCOMPOSITE_PKG_ERRORS" >&5
12118
12119	echo "not found"
12120elif test $pkg_failed = untried; then
12121     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12122printf "%s\n" "no" >&6; }
12123	echo "not found"
12124else
12125	DPY_XCOMPOSITE_CFLAGS=$pkg_cv_DPY_XCOMPOSITE_CFLAGS
12126	DPY_XCOMPOSITE_LIBS=$pkg_cv_DPY_XCOMPOSITE_LIBS
12127        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12128printf "%s\n" "yes" >&6; }
12129	SAVE_CPPFLAGS="$CPPFLAGS"
12130	CPPFLAGS="$CPPFLAGS $DPY_XCOMPOSITE_CFLAGS $DPY_X11_CFLAGS"
12131	ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xcomposite.h" "ac_cv_header_X11_extensions_Xcomposite_h" "#include <X11/Xlib.h>
12132"
12133if test "x$ac_cv_header_X11_extensions_Xcomposite_h" = xyes
12134then :
12135  printf "%s\n" "#define HAVE_X11_EXTENSIONS_XCOMPOSITE_H 1" >>confdefs.h
12136
12137fi
12138
12139	CPPFLAGS="$SAVE_CPPFLAGS"
12140fi
12141
12142
12143# Check whether --with-xinerama was given.
12144if test ${with_xinerama+y}
12145then :
12146  withval=$with_xinerama; USE_XINERAMA="$withval"
12147else $as_nop
12148  USE_XINERAMA="yes"
12149fi
12150
12151if test "x$USE_XINERAMA" != "xno" ; then
12152
12153pkg_failed=no
12154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DPY_XINERAMA" >&5
12155printf %s "checking for DPY_XINERAMA... " >&6; }
12156
12157if test -n "$DPY_XINERAMA_CFLAGS"; then
12158    pkg_cv_DPY_XINERAMA_CFLAGS="$DPY_XINERAMA_CFLAGS"
12159 elif test -n "$PKG_CONFIG"; then
12160    if test -n "$PKG_CONFIG" && \
12161    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xinerama\""; } >&5
12162  ($PKG_CONFIG --exists --print-errors "xinerama") 2>&5
12163  ac_status=$?
12164  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12165  test $ac_status = 0; }; then
12166  pkg_cv_DPY_XINERAMA_CFLAGS=`$PKG_CONFIG --cflags "xinerama" 2>/dev/null`
12167		      test "x$?" != "x0" && pkg_failed=yes
12168else
12169  pkg_failed=yes
12170fi
12171 else
12172    pkg_failed=untried
12173fi
12174if test -n "$DPY_XINERAMA_LIBS"; then
12175    pkg_cv_DPY_XINERAMA_LIBS="$DPY_XINERAMA_LIBS"
12176 elif test -n "$PKG_CONFIG"; then
12177    if test -n "$PKG_CONFIG" && \
12178    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xinerama\""; } >&5
12179  ($PKG_CONFIG --exists --print-errors "xinerama") 2>&5
12180  ac_status=$?
12181  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12182  test $ac_status = 0; }; then
12183  pkg_cv_DPY_XINERAMA_LIBS=`$PKG_CONFIG --libs "xinerama" 2>/dev/null`
12184		      test "x$?" != "x0" && pkg_failed=yes
12185else
12186  pkg_failed=yes
12187fi
12188 else
12189    pkg_failed=untried
12190fi
12191
12192
12193
12194if test $pkg_failed = yes; then
12195   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12196printf "%s\n" "no" >&6; }
12197
12198if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12199        _pkg_short_errors_supported=yes
12200else
12201        _pkg_short_errors_supported=no
12202fi
12203        if test $_pkg_short_errors_supported = yes; then
12204	        DPY_XINERAMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xinerama" 2>&1`
12205        else
12206	        DPY_XINERAMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xinerama" 2>&1`
12207        fi
12208	# Put the nasty error message in config.log where it belongs
12209	echo "$DPY_XINERAMA_PKG_ERRORS" >&5
12210
12211	echo "not found"
12212elif test $pkg_failed = untried; then
12213     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12214printf "%s\n" "no" >&6; }
12215	echo "not found"
12216else
12217	DPY_XINERAMA_CFLAGS=$pkg_cv_DPY_XINERAMA_CFLAGS
12218	DPY_XINERAMA_LIBS=$pkg_cv_DPY_XINERAMA_LIBS
12219        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12220printf "%s\n" "yes" >&6; }
12221	SAVE_CPPFLAGS="$CPPFLAGS"
12222		CPPFLAGS="$CPPFLAGS $DPY_XINERAMA_CFLAGS $DPY_X11_CFLAGS"
12223		ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
12224"
12225if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes
12226then :
12227  printf "%s\n" "#define HAVE_X11_EXTENSIONS_XINERAMA_H 1" >>confdefs.h
12228
12229fi
12230
12231		CPPFLAGS="$SAVE_CPPFLAGS"
12232fi
12233else
12234	echo "without xinerama"
12235fi
12236
12237
12238# Check whether --with-dmx was given.
12239if test ${with_dmx+y}
12240then :
12241  withval=$with_dmx; USE_DMX="$withval"
12242else $as_nop
12243  USE_DMX="no"
12244fi
12245
12246if test "x$USE_DMX" != "xno" ; then
12247
12248pkg_failed=no
12249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DPY_DMX" >&5
12250printf %s "checking for DPY_DMX... " >&6; }
12251
12252if test -n "$DPY_DMX_CFLAGS"; then
12253    pkg_cv_DPY_DMX_CFLAGS="$DPY_DMX_CFLAGS"
12254 elif test -n "$PKG_CONFIG"; then
12255    if test -n "$PKG_CONFIG" && \
12256    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dmx\""; } >&5
12257  ($PKG_CONFIG --exists --print-errors "dmx") 2>&5
12258  ac_status=$?
12259  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12260  test $ac_status = 0; }; then
12261  pkg_cv_DPY_DMX_CFLAGS=`$PKG_CONFIG --cflags "dmx" 2>/dev/null`
12262		      test "x$?" != "x0" && pkg_failed=yes
12263else
12264  pkg_failed=yes
12265fi
12266 else
12267    pkg_failed=untried
12268fi
12269if test -n "$DPY_DMX_LIBS"; then
12270    pkg_cv_DPY_DMX_LIBS="$DPY_DMX_LIBS"
12271 elif test -n "$PKG_CONFIG"; then
12272    if test -n "$PKG_CONFIG" && \
12273    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dmx\""; } >&5
12274  ($PKG_CONFIG --exists --print-errors "dmx") 2>&5
12275  ac_status=$?
12276  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12277  test $ac_status = 0; }; then
12278  pkg_cv_DPY_DMX_LIBS=`$PKG_CONFIG --libs "dmx" 2>/dev/null`
12279		      test "x$?" != "x0" && pkg_failed=yes
12280else
12281  pkg_failed=yes
12282fi
12283 else
12284    pkg_failed=untried
12285fi
12286
12287
12288
12289if test $pkg_failed = yes; then
12290   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12291printf "%s\n" "no" >&6; }
12292
12293if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12294        _pkg_short_errors_supported=yes
12295else
12296        _pkg_short_errors_supported=no
12297fi
12298        if test $_pkg_short_errors_supported = yes; then
12299	        DPY_DMX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dmx" 2>&1`
12300        else
12301	        DPY_DMX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dmx" 2>&1`
12302        fi
12303	# Put the nasty error message in config.log where it belongs
12304	echo "$DPY_DMX_PKG_ERRORS" >&5
12305
12306	echo "not found"
12307elif test $pkg_failed = untried; then
12308     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12309printf "%s\n" "no" >&6; }
12310	echo "not found"
12311else
12312	DPY_DMX_CFLAGS=$pkg_cv_DPY_DMX_CFLAGS
12313	DPY_DMX_LIBS=$pkg_cv_DPY_DMX_LIBS
12314        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12315printf "%s\n" "yes" >&6; }
12316	SAVE_CPPFLAGS="$CPPFLAGS"
12317		CPPFLAGS="$CPPFLAGS $DPY_DMX_CFLAGS $DPY_X11_CFLAGS"
12318		ac_fn_c_check_header_compile "$LINENO" "X11/extensions/dmxext.h" "ac_cv_header_X11_extensions_dmxext_h" "#include <X11/Xlib.h>
12319"
12320if test "x$ac_cv_header_X11_extensions_dmxext_h" = xyes
12321then :
12322  printf "%s\n" "#define HAVE_X11_EXTENSIONS_DMXEXT_H 1" >>confdefs.h
12323
12324fi
12325
12326		CPPFLAGS="$SAVE_CPPFLAGS"
12327fi
12328else
12329	echo "without dmx"
12330fi
12331
12332
12333pkg_failed=no
12334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DPY_XTST" >&5
12335printf %s "checking for DPY_XTST... " >&6; }
12336
12337if test -n "$DPY_XTST_CFLAGS"; then
12338    pkg_cv_DPY_XTST_CFLAGS="$DPY_XTST_CFLAGS"
12339 elif test -n "$PKG_CONFIG"; then
12340    if test -n "$PKG_CONFIG" && \
12341    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xtst\""; } >&5
12342  ($PKG_CONFIG --exists --print-errors "xtst") 2>&5
12343  ac_status=$?
12344  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12345  test $ac_status = 0; }; then
12346  pkg_cv_DPY_XTST_CFLAGS=`$PKG_CONFIG --cflags "xtst" 2>/dev/null`
12347		      test "x$?" != "x0" && pkg_failed=yes
12348else
12349  pkg_failed=yes
12350fi
12351 else
12352    pkg_failed=untried
12353fi
12354if test -n "$DPY_XTST_LIBS"; then
12355    pkg_cv_DPY_XTST_LIBS="$DPY_XTST_LIBS"
12356 elif test -n "$PKG_CONFIG"; then
12357    if test -n "$PKG_CONFIG" && \
12358    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xtst\""; } >&5
12359  ($PKG_CONFIG --exists --print-errors "xtst") 2>&5
12360  ac_status=$?
12361  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12362  test $ac_status = 0; }; then
12363  pkg_cv_DPY_XTST_LIBS=`$PKG_CONFIG --libs "xtst" 2>/dev/null`
12364		      test "x$?" != "x0" && pkg_failed=yes
12365else
12366  pkg_failed=yes
12367fi
12368 else
12369    pkg_failed=untried
12370fi
12371
12372
12373
12374if test $pkg_failed = yes; then
12375   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12376printf "%s\n" "no" >&6; }
12377
12378if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12379        _pkg_short_errors_supported=yes
12380else
12381        _pkg_short_errors_supported=no
12382fi
12383        if test $_pkg_short_errors_supported = yes; then
12384	        DPY_XTST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xtst" 2>&1`
12385        else
12386	        DPY_XTST_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xtst" 2>&1`
12387        fi
12388	# Put the nasty error message in config.log where it belongs
12389	echo "$DPY_XTST_PKG_ERRORS" >&5
12390
12391	echo "not found"
12392elif test $pkg_failed = untried; then
12393     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12394printf "%s\n" "no" >&6; }
12395	echo "not found"
12396else
12397	DPY_XTST_CFLAGS=$pkg_cv_DPY_XTST_CFLAGS
12398	DPY_XTST_LIBS=$pkg_cv_DPY_XTST_LIBS
12399        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12400printf "%s\n" "yes" >&6; }
12401	SAVE_CPPFLAGS="$CPPFLAGS"
12402	CPPFLAGS="$CPPFLAGS $DPY_XTST_CFLAGS $DPY_X11_CFLAGS"
12403	ac_fn_c_check_header_compile "$LINENO" "X11/extensions/record.h" "ac_cv_header_X11_extensions_record_h" "#include <X11/Xlib.h>
12404"
12405if test "x$ac_cv_header_X11_extensions_record_h" = xyes
12406then :
12407  printf "%s\n" "#define HAVE_X11_EXTENSIONS_RECORD_H 1" >>confdefs.h
12408
12409fi
12410
12411	CPPFLAGS="$SAVE_CPPFLAGS"
12412fi
12413
12414
12415
12416
12417
12418
12419# Check whether --with-lint was given.
12420if test ${with_lint+y}
12421then :
12422  withval=$with_lint; use_lint=$withval
12423else $as_nop
12424  use_lint=no
12425fi
12426
12427
12428# Obtain platform specific info like program name and options
12429# The lint program on FreeBSD and NetBSD is different from the one on Solaris
12430case $host_os in
12431  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
12432	lint_name=splint
12433	lint_options="-badflag"
12434	;;
12435  *freebsd* | *netbsd*)
12436	lint_name=lint
12437	lint_options="-u -b"
12438	;;
12439  *solaris*)
12440	lint_name=lint
12441	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
12442	;;
12443esac
12444
12445# Test for the presence of the program (either guessed by the code or spelled out by the user)
12446if test "x$use_lint" = x"yes" ; then
12447   # Extract the first word of "$lint_name", so it can be a program name with args.
12448set dummy $lint_name; ac_word=$2
12449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12450printf %s "checking for $ac_word... " >&6; }
12451if test ${ac_cv_path_LINT+y}
12452then :
12453  printf %s "(cached) " >&6
12454else $as_nop
12455  case $LINT in
12456  [\\/]* | ?:[\\/]*)
12457  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
12458  ;;
12459  *)
12460  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12461for as_dir in $PATH
12462do
12463  IFS=$as_save_IFS
12464  case $as_dir in #(((
12465    '') as_dir=./ ;;
12466    */) ;;
12467    *) as_dir=$as_dir/ ;;
12468  esac
12469    for ac_exec_ext in '' $ac_executable_extensions; do
12470  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12471    ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
12472    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12473    break 2
12474  fi
12475done
12476  done
12477IFS=$as_save_IFS
12478
12479  ;;
12480esac
12481fi
12482LINT=$ac_cv_path_LINT
12483if test -n "$LINT"; then
12484  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
12485printf "%s\n" "$LINT" >&6; }
12486else
12487  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12488printf "%s\n" "no" >&6; }
12489fi
12490
12491
12492   if test "x$LINT" = "x"; then
12493        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
12494   fi
12495elif test "x$use_lint" = x"no" ; then
12496   if test "x$LINT" != "x"; then
12497      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
12498printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
12499   fi
12500else
12501   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
12502fi
12503
12504# User supplied flags override default flags
12505if test "x$LINT_FLAGS" != "x"; then
12506   lint_options=$LINT_FLAGS
12507fi
12508
12509LINT_FLAGS=$lint_options
12510
12511 if test "x$LINT" != x; then
12512  LINT_TRUE=
12513  LINT_FALSE='#'
12514else
12515  LINT_TRUE='#'
12516  LINT_FALSE=
12517fi
12518
12519
12520
12521
12522ac_config_files="$ac_config_files Makefile man/Makefile"
12523
12524cat >confcache <<\_ACEOF
12525# This file is a shell script that caches the results of configure
12526# tests run on this system so they can be shared between configure
12527# scripts and configure runs, see configure's option --config-cache.
12528# It is not useful on other systems.  If it contains results you don't
12529# want to keep, you may remove or edit it.
12530#
12531# config.status only pays attention to the cache file if you give it
12532# the --recheck option to rerun configure.
12533#
12534# `ac_cv_env_foo' variables (set or unset) will be overridden when
12535# loading this file, other *unset* `ac_cv_foo' will be assigned the
12536# following values.
12537
12538_ACEOF
12539
12540# The following way of writing the cache mishandles newlines in values,
12541# but we know of no workaround that is simple, portable, and efficient.
12542# So, we kill variables containing newlines.
12543# Ultrix sh set writes to stderr and can't be redirected directly,
12544# and sets the high bit in the cache file unless we assign to the vars.
12545(
12546  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12547    eval ac_val=\$$ac_var
12548    case $ac_val in #(
12549    *${as_nl}*)
12550      case $ac_var in #(
12551      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12552printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12553      esac
12554      case $ac_var in #(
12555      _ | IFS | as_nl) ;; #(
12556      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12557      *) { eval $ac_var=; unset $ac_var;} ;;
12558      esac ;;
12559    esac
12560  done
12561
12562  (set) 2>&1 |
12563    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12564    *${as_nl}ac_space=\ *)
12565      # `set' does not quote correctly, so add quotes: double-quote
12566      # substitution turns \\\\ into \\, and sed turns \\ into \.
12567      sed -n \
12568	"s/'/'\\\\''/g;
12569	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12570      ;; #(
12571    *)
12572      # `set' quotes correctly as required by POSIX, so do not add quotes.
12573      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12574      ;;
12575    esac |
12576    sort
12577) |
12578  sed '
12579     /^ac_cv_env_/b end
12580     t clear
12581     :clear
12582     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
12583     t end
12584     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12585     :end' >>confcache
12586if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12587  if test -w "$cache_file"; then
12588    if test "x$cache_file" != "x/dev/null"; then
12589      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12590printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
12591      if test ! -f "$cache_file" || test -h "$cache_file"; then
12592	cat confcache >"$cache_file"
12593      else
12594        case $cache_file in #(
12595        */* | ?:*)
12596	  mv -f confcache "$cache_file"$$ &&
12597	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12598        *)
12599	  mv -f confcache "$cache_file" ;;
12600	esac
12601      fi
12602    fi
12603  else
12604    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12605printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
12606  fi
12607fi
12608rm -f confcache
12609
12610test "x$prefix" = xNONE && prefix=$ac_default_prefix
12611# Let make expand exec_prefix.
12612test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12613
12614DEFS=-DHAVE_CONFIG_H
12615
12616ac_libobjs=
12617ac_ltlibobjs=
12618U=
12619for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12620  # 1. Remove the extension, and $U if already installed.
12621  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12622  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
12623  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12624  #    will be set to the directory where LIBOBJS objects are built.
12625  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12626  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12627done
12628LIBOBJS=$ac_libobjs
12629
12630LTLIBOBJS=$ac_ltlibobjs
12631
12632
12633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12634printf %s "checking that generated files are newer than configure... " >&6; }
12635   if test -n "$am_sleep_pid"; then
12636     # Hide warnings about reused PIDs.
12637     wait $am_sleep_pid 2>/dev/null
12638   fi
12639   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
12640printf "%s\n" "done" >&6; }
12641 if test -n "$EXEEXT"; then
12642  am__EXEEXT_TRUE=
12643  am__EXEEXT_FALSE='#'
12644else
12645  am__EXEEXT_TRUE='#'
12646  am__EXEEXT_FALSE=
12647fi
12648
12649if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12650  as_fn_error $? "conditional \"AMDEP\" was never defined.
12651Usually this means the macro was only invoked conditionally." "$LINENO" 5
12652fi
12653if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12654  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12655Usually this means the macro was only invoked conditionally." "$LINENO" 5
12656fi
12657if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
12658  as_fn_error $? "conditional \"LINT\" was never defined.
12659Usually this means the macro was only invoked conditionally." "$LINENO" 5
12660fi
12661
12662: "${CONFIG_STATUS=./config.status}"
12663ac_write_fail=0
12664ac_clean_files_save=$ac_clean_files
12665ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12667printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
12668as_write_fail=0
12669cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12670#! $SHELL
12671# Generated by $as_me.
12672# Run this file to recreate the current configuration.
12673# Compiler output produced by configure, useful for debugging
12674# configure, is in config.log if it exists.
12675
12676debug=false
12677ac_cs_recheck=false
12678ac_cs_silent=false
12679
12680SHELL=\${CONFIG_SHELL-$SHELL}
12681export SHELL
12682_ASEOF
12683cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12684## -------------------- ##
12685## M4sh Initialization. ##
12686## -------------------- ##
12687
12688# Be more Bourne compatible
12689DUALCASE=1; export DUALCASE # for MKS sh
12690as_nop=:
12691if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12692then :
12693  emulate sh
12694  NULLCMD=:
12695  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12696  # is contrary to our usage.  Disable this feature.
12697  alias -g '${1+"$@"}'='"$@"'
12698  setopt NO_GLOB_SUBST
12699else $as_nop
12700  case `(set -o) 2>/dev/null` in #(
12701  *posix*) :
12702    set -o posix ;; #(
12703  *) :
12704     ;;
12705esac
12706fi
12707
12708
12709
12710# Reset variables that may have inherited troublesome values from
12711# the environment.
12712
12713# IFS needs to be set, to space, tab, and newline, in precisely that order.
12714# (If _AS_PATH_WALK were called with IFS unset, it would have the
12715# side effect of setting IFS to empty, thus disabling word splitting.)
12716# Quoting is to prevent editors from complaining about space-tab.
12717as_nl='
12718'
12719export as_nl
12720IFS=" ""	$as_nl"
12721
12722PS1='$ '
12723PS2='> '
12724PS4='+ '
12725
12726# Ensure predictable behavior from utilities with locale-dependent output.
12727LC_ALL=C
12728export LC_ALL
12729LANGUAGE=C
12730export LANGUAGE
12731
12732# We cannot yet rely on "unset" to work, but we need these variables
12733# to be unset--not just set to an empty or harmless value--now, to
12734# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
12735# also avoids known problems related to "unset" and subshell syntax
12736# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12737for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12738do eval test \${$as_var+y} \
12739  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12740done
12741
12742# Ensure that fds 0, 1, and 2 are open.
12743if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12744if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12745if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
12746
12747# The user is always right.
12748if ${PATH_SEPARATOR+false} :; then
12749  PATH_SEPARATOR=:
12750  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12751    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12752      PATH_SEPARATOR=';'
12753  }
12754fi
12755
12756
12757# Find who we are.  Look in the path if we contain no directory separator.
12758as_myself=
12759case $0 in #((
12760  *[\\/]* ) as_myself=$0 ;;
12761  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12762for as_dir in $PATH
12763do
12764  IFS=$as_save_IFS
12765  case $as_dir in #(((
12766    '') as_dir=./ ;;
12767    */) ;;
12768    *) as_dir=$as_dir/ ;;
12769  esac
12770    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12771  done
12772IFS=$as_save_IFS
12773
12774     ;;
12775esac
12776# We did not find ourselves, most probably we were run as `sh COMMAND'
12777# in which case we are not to be found in the path.
12778if test "x$as_myself" = x; then
12779  as_myself=$0
12780fi
12781if test ! -f "$as_myself"; then
12782  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12783  exit 1
12784fi
12785
12786
12787
12788# as_fn_error STATUS ERROR [LINENO LOG_FD]
12789# ----------------------------------------
12790# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12791# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12792# script with STATUS, using 1 if that was 0.
12793as_fn_error ()
12794{
12795  as_status=$1; test $as_status -eq 0 && as_status=1
12796  if test "$4"; then
12797    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12798    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12799  fi
12800  printf "%s\n" "$as_me: error: $2" >&2
12801  as_fn_exit $as_status
12802} # as_fn_error
12803
12804
12805
12806# as_fn_set_status STATUS
12807# -----------------------
12808# Set $? to STATUS, without forking.
12809as_fn_set_status ()
12810{
12811  return $1
12812} # as_fn_set_status
12813
12814# as_fn_exit STATUS
12815# -----------------
12816# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12817as_fn_exit ()
12818{
12819  set +e
12820  as_fn_set_status $1
12821  exit $1
12822} # as_fn_exit
12823
12824# as_fn_unset VAR
12825# ---------------
12826# Portably unset VAR.
12827as_fn_unset ()
12828{
12829  { eval $1=; unset $1;}
12830}
12831as_unset=as_fn_unset
12832
12833# as_fn_append VAR VALUE
12834# ----------------------
12835# Append the text in VALUE to the end of the definition contained in VAR. Take
12836# advantage of any shell optimizations that allow amortized linear growth over
12837# repeated appends, instead of the typical quadratic growth present in naive
12838# implementations.
12839if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12840then :
12841  eval 'as_fn_append ()
12842  {
12843    eval $1+=\$2
12844  }'
12845else $as_nop
12846  as_fn_append ()
12847  {
12848    eval $1=\$$1\$2
12849  }
12850fi # as_fn_append
12851
12852# as_fn_arith ARG...
12853# ------------------
12854# Perform arithmetic evaluation on the ARGs, and store the result in the
12855# global $as_val. Take advantage of shells that can avoid forks. The arguments
12856# must be portable across $(()) and expr.
12857if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12858then :
12859  eval 'as_fn_arith ()
12860  {
12861    as_val=$(( $* ))
12862  }'
12863else $as_nop
12864  as_fn_arith ()
12865  {
12866    as_val=`expr "$@" || test $? -eq 1`
12867  }
12868fi # as_fn_arith
12869
12870
12871if expr a : '\(a\)' >/dev/null 2>&1 &&
12872   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12873  as_expr=expr
12874else
12875  as_expr=false
12876fi
12877
12878if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12879  as_basename=basename
12880else
12881  as_basename=false
12882fi
12883
12884if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12885  as_dirname=dirname
12886else
12887  as_dirname=false
12888fi
12889
12890as_me=`$as_basename -- "$0" ||
12891$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12892	 X"$0" : 'X\(//\)$' \| \
12893	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12894printf "%s\n" X/"$0" |
12895    sed '/^.*\/\([^/][^/]*\)\/*$/{
12896	    s//\1/
12897	    q
12898	  }
12899	  /^X\/\(\/\/\)$/{
12900	    s//\1/
12901	    q
12902	  }
12903	  /^X\/\(\/\).*/{
12904	    s//\1/
12905	    q
12906	  }
12907	  s/.*/./; q'`
12908
12909# Avoid depending upon Character Ranges.
12910as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12911as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12912as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12913as_cr_digits='0123456789'
12914as_cr_alnum=$as_cr_Letters$as_cr_digits
12915
12916
12917# Determine whether it's possible to make 'echo' print without a newline.
12918# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12919# for compatibility with existing Makefiles.
12920ECHO_C= ECHO_N= ECHO_T=
12921case `echo -n x` in #(((((
12922-n*)
12923  case `echo 'xy\c'` in
12924  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12925  xy)  ECHO_C='\c';;
12926  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12927       ECHO_T='	';;
12928  esac;;
12929*)
12930  ECHO_N='-n';;
12931esac
12932
12933# For backward compatibility with old third-party macros, we provide
12934# the shell variables $as_echo and $as_echo_n.  New code should use
12935# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12936as_echo='printf %s\n'
12937as_echo_n='printf %s'
12938
12939rm -f conf$$ conf$$.exe conf$$.file
12940if test -d conf$$.dir; then
12941  rm -f conf$$.dir/conf$$.file
12942else
12943  rm -f conf$$.dir
12944  mkdir conf$$.dir 2>/dev/null
12945fi
12946if (echo >conf$$.file) 2>/dev/null; then
12947  if ln -s conf$$.file conf$$ 2>/dev/null; then
12948    as_ln_s='ln -s'
12949    # ... but there are two gotchas:
12950    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12951    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12952    # In both cases, we have to default to `cp -pR'.
12953    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12954      as_ln_s='cp -pR'
12955  elif ln conf$$.file conf$$ 2>/dev/null; then
12956    as_ln_s=ln
12957  else
12958    as_ln_s='cp -pR'
12959  fi
12960else
12961  as_ln_s='cp -pR'
12962fi
12963rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12964rmdir conf$$.dir 2>/dev/null
12965
12966
12967# as_fn_mkdir_p
12968# -------------
12969# Create "$as_dir" as a directory, including parents if necessary.
12970as_fn_mkdir_p ()
12971{
12972
12973  case $as_dir in #(
12974  -*) as_dir=./$as_dir;;
12975  esac
12976  test -d "$as_dir" || eval $as_mkdir_p || {
12977    as_dirs=
12978    while :; do
12979      case $as_dir in #(
12980      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12981      *) as_qdir=$as_dir;;
12982      esac
12983      as_dirs="'$as_qdir' $as_dirs"
12984      as_dir=`$as_dirname -- "$as_dir" ||
12985$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12986	 X"$as_dir" : 'X\(//\)[^/]' \| \
12987	 X"$as_dir" : 'X\(//\)$' \| \
12988	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12989printf "%s\n" X"$as_dir" |
12990    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12991	    s//\1/
12992	    q
12993	  }
12994	  /^X\(\/\/\)[^/].*/{
12995	    s//\1/
12996	    q
12997	  }
12998	  /^X\(\/\/\)$/{
12999	    s//\1/
13000	    q
13001	  }
13002	  /^X\(\/\).*/{
13003	    s//\1/
13004	    q
13005	  }
13006	  s/.*/./; q'`
13007      test -d "$as_dir" && break
13008    done
13009    test -z "$as_dirs" || eval "mkdir $as_dirs"
13010  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13011
13012
13013} # as_fn_mkdir_p
13014if mkdir -p . 2>/dev/null; then
13015  as_mkdir_p='mkdir -p "$as_dir"'
13016else
13017  test -d ./-p && rmdir ./-p
13018  as_mkdir_p=false
13019fi
13020
13021
13022# as_fn_executable_p FILE
13023# -----------------------
13024# Test if FILE is an executable regular file.
13025as_fn_executable_p ()
13026{
13027  test -f "$1" && test -x "$1"
13028} # as_fn_executable_p
13029as_test_x='test -x'
13030as_executable_p=as_fn_executable_p
13031
13032# Sed expression to map a string onto a valid CPP name.
13033as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13034
13035# Sed expression to map a string onto a valid variable name.
13036as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13037
13038
13039exec 6>&1
13040## ----------------------------------- ##
13041## Main body of $CONFIG_STATUS script. ##
13042## ----------------------------------- ##
13043_ASEOF
13044test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13045
13046cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13047# Save the log message, to keep $0 and so on meaningful, and to
13048# report actual input values of CONFIG_FILES etc. instead of their
13049# values after options handling.
13050ac_log="
13051This file was extended by xdpyinfo $as_me 1.3.3, which was
13052generated by GNU Autoconf 2.71.  Invocation command line was
13053
13054  CONFIG_FILES    = $CONFIG_FILES
13055  CONFIG_HEADERS  = $CONFIG_HEADERS
13056  CONFIG_LINKS    = $CONFIG_LINKS
13057  CONFIG_COMMANDS = $CONFIG_COMMANDS
13058  $ $0 $@
13059
13060on `(hostname || uname -n) 2>/dev/null | sed 1q`
13061"
13062
13063_ACEOF
13064
13065case $ac_config_files in *"
13066"*) set x $ac_config_files; shift; ac_config_files=$*;;
13067esac
13068
13069case $ac_config_headers in *"
13070"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13071esac
13072
13073
13074cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13075# Files that config.status was made for.
13076config_files="$ac_config_files"
13077config_headers="$ac_config_headers"
13078config_commands="$ac_config_commands"
13079
13080_ACEOF
13081
13082cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13083ac_cs_usage="\
13084\`$as_me' instantiates files and other configuration actions
13085from templates according to the current configuration.  Unless the files
13086and actions are specified as TAGs, all are instantiated by default.
13087
13088Usage: $0 [OPTION]... [TAG]...
13089
13090  -h, --help       print this help, then exit
13091  -V, --version    print version number and configuration settings, then exit
13092      --config     print configuration, then exit
13093  -q, --quiet, --silent
13094                   do not print progress messages
13095  -d, --debug      don't remove temporary files
13096      --recheck    update $as_me by reconfiguring in the same conditions
13097      --file=FILE[:TEMPLATE]
13098                   instantiate the configuration file FILE
13099      --header=FILE[:TEMPLATE]
13100                   instantiate the configuration header FILE
13101
13102Configuration files:
13103$config_files
13104
13105Configuration headers:
13106$config_headers
13107
13108Configuration commands:
13109$config_commands
13110
13111Report bugs to <https://gitlab.freedesktop.org/xorg/app/xdpyinfo/issues>."
13112
13113_ACEOF
13114ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
13115ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
13116cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13117ac_cs_config='$ac_cs_config_escaped'
13118ac_cs_version="\\
13119xdpyinfo config.status 1.3.3
13120configured by $0, generated by GNU Autoconf 2.71,
13121  with options \\"\$ac_cs_config\\"
13122
13123Copyright (C) 2021 Free Software Foundation, Inc.
13124This config.status script is free software; the Free Software Foundation
13125gives unlimited permission to copy, distribute and modify it."
13126
13127ac_pwd='$ac_pwd'
13128srcdir='$srcdir'
13129INSTALL='$INSTALL'
13130MKDIR_P='$MKDIR_P'
13131AWK='$AWK'
13132test -n "\$AWK" || AWK=awk
13133_ACEOF
13134
13135cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13136# The default lists apply if the user does not specify any file.
13137ac_need_defaults=:
13138while test $# != 0
13139do
13140  case $1 in
13141  --*=?*)
13142    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13143    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13144    ac_shift=:
13145    ;;
13146  --*=)
13147    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13148    ac_optarg=
13149    ac_shift=:
13150    ;;
13151  *)
13152    ac_option=$1
13153    ac_optarg=$2
13154    ac_shift=shift
13155    ;;
13156  esac
13157
13158  case $ac_option in
13159  # Handling of the options.
13160  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13161    ac_cs_recheck=: ;;
13162  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13163    printf "%s\n" "$ac_cs_version"; exit ;;
13164  --config | --confi | --conf | --con | --co | --c )
13165    printf "%s\n" "$ac_cs_config"; exit ;;
13166  --debug | --debu | --deb | --de | --d | -d )
13167    debug=: ;;
13168  --file | --fil | --fi | --f )
13169    $ac_shift
13170    case $ac_optarg in
13171    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13172    '') as_fn_error $? "missing file argument" ;;
13173    esac
13174    as_fn_append CONFIG_FILES " '$ac_optarg'"
13175    ac_need_defaults=false;;
13176  --header | --heade | --head | --hea )
13177    $ac_shift
13178    case $ac_optarg in
13179    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13180    esac
13181    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13182    ac_need_defaults=false;;
13183  --he | --h)
13184    # Conflict between --help and --header
13185    as_fn_error $? "ambiguous option: \`$1'
13186Try \`$0 --help' for more information.";;
13187  --help | --hel | -h )
13188    printf "%s\n" "$ac_cs_usage"; exit ;;
13189  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13190  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13191    ac_cs_silent=: ;;
13192
13193  # This is an error.
13194  -*) as_fn_error $? "unrecognized option: \`$1'
13195Try \`$0 --help' for more information." ;;
13196
13197  *) as_fn_append ac_config_targets " $1"
13198     ac_need_defaults=false ;;
13199
13200  esac
13201  shift
13202done
13203
13204ac_configure_extra_args=
13205
13206if $ac_cs_silent; then
13207  exec 6>/dev/null
13208  ac_configure_extra_args="$ac_configure_extra_args --silent"
13209fi
13210
13211_ACEOF
13212cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13213if \$ac_cs_recheck; then
13214  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13215  shift
13216  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
13217  CONFIG_SHELL='$SHELL'
13218  export CONFIG_SHELL
13219  exec "\$@"
13220fi
13221
13222_ACEOF
13223cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13224exec 5>>config.log
13225{
13226  echo
13227  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13228## Running $as_me. ##
13229_ASBOX
13230  printf "%s\n" "$ac_log"
13231} >&5
13232
13233_ACEOF
13234cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13235#
13236# INIT-COMMANDS
13237#
13238AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
13239
13240_ACEOF
13241
13242cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13243
13244# Handling of arguments.
13245for ac_config_target in $ac_config_targets
13246do
13247  case $ac_config_target in
13248    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13249    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13250    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13251    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13252
13253  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13254  esac
13255done
13256
13257
13258# If the user did not use the arguments to specify the items to instantiate,
13259# then the envvar interface is used.  Set only those that are not.
13260# We use the long form for the default assignment because of an extremely
13261# bizarre bug on SunOS 4.1.3.
13262if $ac_need_defaults; then
13263  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
13264  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
13265  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
13266fi
13267
13268# Have a temporary directory for convenience.  Make it in the build tree
13269# simply because there is no reason against having it here, and in addition,
13270# creating and moving files from /tmp can sometimes cause problems.
13271# Hook for its removal unless debugging.
13272# Note that there is a small window in which the directory will not be cleaned:
13273# after its creation but before its name has been assigned to `$tmp'.
13274$debug ||
13275{
13276  tmp= ac_tmp=
13277  trap 'exit_status=$?
13278  : "${ac_tmp:=$tmp}"
13279  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13280' 0
13281  trap 'as_fn_exit 1' 1 2 13 15
13282}
13283# Create a (secure) tmp directory for tmp files.
13284
13285{
13286  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13287  test -d "$tmp"
13288}  ||
13289{
13290  tmp=./conf$$-$RANDOM
13291  (umask 077 && mkdir "$tmp")
13292} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13293ac_tmp=$tmp
13294
13295# Set up the scripts for CONFIG_FILES section.
13296# No need to generate them if there are no CONFIG_FILES.
13297# This happens for instance with `./config.status config.h'.
13298if test -n "$CONFIG_FILES"; then
13299
13300
13301ac_cr=`echo X | tr X '\015'`
13302# On cygwin, bash can eat \r inside `` if the user requested igncr.
13303# But we know of no other shell where ac_cr would be empty at this
13304# point, so we can use a bashism as a fallback.
13305if test "x$ac_cr" = x; then
13306  eval ac_cr=\$\'\\r\'
13307fi
13308ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13309if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13310  ac_cs_awk_cr='\\r'
13311else
13312  ac_cs_awk_cr=$ac_cr
13313fi
13314
13315echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13316_ACEOF
13317
13318
13319{
13320  echo "cat >conf$$subs.awk <<_ACEOF" &&
13321  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13322  echo "_ACEOF"
13323} >conf$$subs.sh ||
13324  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13325ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13326ac_delim='%!_!# '
13327for ac_last_try in false false false false false :; do
13328  . ./conf$$subs.sh ||
13329    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13330
13331  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13332  if test $ac_delim_n = $ac_delim_num; then
13333    break
13334  elif $ac_last_try; then
13335    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13336  else
13337    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13338  fi
13339done
13340rm -f conf$$subs.sh
13341
13342cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13343cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13344_ACEOF
13345sed -n '
13346h
13347s/^/S["/; s/!.*/"]=/
13348p
13349g
13350s/^[^!]*!//
13351:repl
13352t repl
13353s/'"$ac_delim"'$//
13354t delim
13355:nl
13356h
13357s/\(.\{148\}\)..*/\1/
13358t more1
13359s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13360p
13361n
13362b repl
13363:more1
13364s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13365p
13366g
13367s/.\{148\}//
13368t nl
13369:delim
13370h
13371s/\(.\{148\}\)..*/\1/
13372t more2
13373s/["\\]/\\&/g; s/^/"/; s/$/"/
13374p
13375b
13376:more2
13377s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13378p
13379g
13380s/.\{148\}//
13381t delim
13382' <conf$$subs.awk | sed '
13383/^[^""]/{
13384  N
13385  s/\n//
13386}
13387' >>$CONFIG_STATUS || ac_write_fail=1
13388rm -f conf$$subs.awk
13389cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13390_ACAWK
13391cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13392  for (key in S) S_is_set[key] = 1
13393  FS = ""
13394
13395}
13396{
13397  line = $ 0
13398  nfields = split(line, field, "@")
13399  substed = 0
13400  len = length(field[1])
13401  for (i = 2; i < nfields; i++) {
13402    key = field[i]
13403    keylen = length(key)
13404    if (S_is_set[key]) {
13405      value = S[key]
13406      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13407      len += length(value) + length(field[++i])
13408      substed = 1
13409    } else
13410      len += 1 + keylen
13411  }
13412
13413  print line
13414}
13415
13416_ACAWK
13417_ACEOF
13418cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13419if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13420  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13421else
13422  cat
13423fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13424  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13425_ACEOF
13426
13427# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13428# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13429# trailing colons and then remove the whole line if VPATH becomes empty
13430# (actually we leave an empty line to preserve line numbers).
13431if test "x$srcdir" = x.; then
13432  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13433h
13434s///
13435s/^/:/
13436s/[	 ]*$/:/
13437s/:\$(srcdir):/:/g
13438s/:\${srcdir}:/:/g
13439s/:@srcdir@:/:/g
13440s/^:*//
13441s/:*$//
13442x
13443s/\(=[	 ]*\).*/\1/
13444G
13445s/\n//
13446s/^[^=]*=[	 ]*$//
13447}'
13448fi
13449
13450cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13451fi # test -n "$CONFIG_FILES"
13452
13453# Set up the scripts for CONFIG_HEADERS section.
13454# No need to generate them if there are no CONFIG_HEADERS.
13455# This happens for instance with `./config.status Makefile'.
13456if test -n "$CONFIG_HEADERS"; then
13457cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13458BEGIN {
13459_ACEOF
13460
13461# Transform confdefs.h into an awk script `defines.awk', embedded as
13462# here-document in config.status, that substitutes the proper values into
13463# config.h.in to produce config.h.
13464
13465# Create a delimiter string that does not exist in confdefs.h, to ease
13466# handling of long lines.
13467ac_delim='%!_!# '
13468for ac_last_try in false false :; do
13469  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13470  if test -z "$ac_tt"; then
13471    break
13472  elif $ac_last_try; then
13473    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13474  else
13475    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13476  fi
13477done
13478
13479# For the awk script, D is an array of macro values keyed by name,
13480# likewise P contains macro parameters if any.  Preserve backslash
13481# newline sequences.
13482
13483ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13484sed -n '
13485s/.\{148\}/&'"$ac_delim"'/g
13486t rset
13487:rset
13488s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13489t def
13490d
13491:def
13492s/\\$//
13493t bsnl
13494s/["\\]/\\&/g
13495s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13496D["\1"]=" \3"/p
13497s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13498d
13499:bsnl
13500s/["\\]/\\&/g
13501s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13502D["\1"]=" \3\\\\\\n"\\/p
13503t cont
13504s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13505t cont
13506d
13507:cont
13508n
13509s/.\{148\}/&'"$ac_delim"'/g
13510t clear
13511:clear
13512s/\\$//
13513t bsnlc
13514s/["\\]/\\&/g; s/^/"/; s/$/"/p
13515d
13516:bsnlc
13517s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13518b cont
13519' <confdefs.h | sed '
13520s/'"$ac_delim"'/"\\\
13521"/g' >>$CONFIG_STATUS || ac_write_fail=1
13522
13523cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13524  for (key in D) D_is_set[key] = 1
13525  FS = ""
13526}
13527/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13528  line = \$ 0
13529  split(line, arg, " ")
13530  if (arg[1] == "#") {
13531    defundef = arg[2]
13532    mac1 = arg[3]
13533  } else {
13534    defundef = substr(arg[1], 2)
13535    mac1 = arg[2]
13536  }
13537  split(mac1, mac2, "(") #)
13538  macro = mac2[1]
13539  prefix = substr(line, 1, index(line, defundef) - 1)
13540  if (D_is_set[macro]) {
13541    # Preserve the white space surrounding the "#".
13542    print prefix "define", macro P[macro] D[macro]
13543    next
13544  } else {
13545    # Replace #undef with comments.  This is necessary, for example,
13546    # in the case of _POSIX_SOURCE, which is predefined and required
13547    # on some systems where configure will not decide to define it.
13548    if (defundef == "undef") {
13549      print "/*", prefix defundef, macro, "*/"
13550      next
13551    }
13552  }
13553}
13554{ print }
13555_ACAWK
13556_ACEOF
13557cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13558  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13559fi # test -n "$CONFIG_HEADERS"
13560
13561
13562eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13563shift
13564for ac_tag
13565do
13566  case $ac_tag in
13567  :[FHLC]) ac_mode=$ac_tag; continue;;
13568  esac
13569  case $ac_mode$ac_tag in
13570  :[FHL]*:*);;
13571  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13572  :[FH]-) ac_tag=-:-;;
13573  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13574  esac
13575  ac_save_IFS=$IFS
13576  IFS=:
13577  set x $ac_tag
13578  IFS=$ac_save_IFS
13579  shift
13580  ac_file=$1
13581  shift
13582
13583  case $ac_mode in
13584  :L) ac_source=$1;;
13585  :[FH])
13586    ac_file_inputs=
13587    for ac_f
13588    do
13589      case $ac_f in
13590      -) ac_f="$ac_tmp/stdin";;
13591      *) # Look for the file first in the build tree, then in the source tree
13592	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13593	 # because $ac_f cannot contain `:'.
13594	 test -f "$ac_f" ||
13595	   case $ac_f in
13596	   [\\/$]*) false;;
13597	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13598	   esac ||
13599	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13600      esac
13601      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13602      as_fn_append ac_file_inputs " '$ac_f'"
13603    done
13604
13605    # Let's still pretend it is `configure' which instantiates (i.e., don't
13606    # use $as_me), people would be surprised to read:
13607    #    /* config.h.  Generated by config.status.  */
13608    configure_input='Generated from '`
13609	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13610	`' by configure.'
13611    if test x"$ac_file" != x-; then
13612      configure_input="$ac_file.  $configure_input"
13613      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13614printf "%s\n" "$as_me: creating $ac_file" >&6;}
13615    fi
13616    # Neutralize special characters interpreted by sed in replacement strings.
13617    case $configure_input in #(
13618    *\&* | *\|* | *\\* )
13619       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
13620       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13621    *) ac_sed_conf_input=$configure_input;;
13622    esac
13623
13624    case $ac_tag in
13625    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13626      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13627    esac
13628    ;;
13629  esac
13630
13631  ac_dir=`$as_dirname -- "$ac_file" ||
13632$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13633	 X"$ac_file" : 'X\(//\)[^/]' \| \
13634	 X"$ac_file" : 'X\(//\)$' \| \
13635	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13636printf "%s\n" X"$ac_file" |
13637    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13638	    s//\1/
13639	    q
13640	  }
13641	  /^X\(\/\/\)[^/].*/{
13642	    s//\1/
13643	    q
13644	  }
13645	  /^X\(\/\/\)$/{
13646	    s//\1/
13647	    q
13648	  }
13649	  /^X\(\/\).*/{
13650	    s//\1/
13651	    q
13652	  }
13653	  s/.*/./; q'`
13654  as_dir="$ac_dir"; as_fn_mkdir_p
13655  ac_builddir=.
13656
13657case "$ac_dir" in
13658.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13659*)
13660  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
13661  # A ".." for each directory in $ac_dir_suffix.
13662  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13663  case $ac_top_builddir_sub in
13664  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13665  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13666  esac ;;
13667esac
13668ac_abs_top_builddir=$ac_pwd
13669ac_abs_builddir=$ac_pwd$ac_dir_suffix
13670# for backward compatibility:
13671ac_top_builddir=$ac_top_build_prefix
13672
13673case $srcdir in
13674  .)  # We are building in place.
13675    ac_srcdir=.
13676    ac_top_srcdir=$ac_top_builddir_sub
13677    ac_abs_top_srcdir=$ac_pwd ;;
13678  [\\/]* | ?:[\\/]* )  # Absolute name.
13679    ac_srcdir=$srcdir$ac_dir_suffix;
13680    ac_top_srcdir=$srcdir
13681    ac_abs_top_srcdir=$srcdir ;;
13682  *) # Relative name.
13683    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13684    ac_top_srcdir=$ac_top_build_prefix$srcdir
13685    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13686esac
13687ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13688
13689
13690  case $ac_mode in
13691  :F)
13692  #
13693  # CONFIG_FILE
13694  #
13695
13696  case $INSTALL in
13697  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13698  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13699  esac
13700  ac_MKDIR_P=$MKDIR_P
13701  case $MKDIR_P in
13702  [\\/$]* | ?:[\\/]* ) ;;
13703  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13704  esac
13705_ACEOF
13706
13707cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13708# If the template does not know about datarootdir, expand it.
13709# FIXME: This hack should be removed a few years after 2.60.
13710ac_datarootdir_hack=; ac_datarootdir_seen=
13711ac_sed_dataroot='
13712/datarootdir/ {
13713  p
13714  q
13715}
13716/@datadir@/p
13717/@docdir@/p
13718/@infodir@/p
13719/@localedir@/p
13720/@mandir@/p'
13721case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13722*datarootdir*) ac_datarootdir_seen=yes;;
13723*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13724  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13725printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13726_ACEOF
13727cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13728  ac_datarootdir_hack='
13729  s&@datadir@&$datadir&g
13730  s&@docdir@&$docdir&g
13731  s&@infodir@&$infodir&g
13732  s&@localedir@&$localedir&g
13733  s&@mandir@&$mandir&g
13734  s&\\\${datarootdir}&$datarootdir&g' ;;
13735esac
13736_ACEOF
13737
13738# Neutralize VPATH when `$srcdir' = `.'.
13739# Shell code in configure.ac might set extrasub.
13740# FIXME: do we really want to maintain this feature?
13741cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13742ac_sed_extra="$ac_vpsub
13743$extrasub
13744_ACEOF
13745cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13746:t
13747/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13748s|@configure_input@|$ac_sed_conf_input|;t t
13749s&@top_builddir@&$ac_top_builddir_sub&;t t
13750s&@top_build_prefix@&$ac_top_build_prefix&;t t
13751s&@srcdir@&$ac_srcdir&;t t
13752s&@abs_srcdir@&$ac_abs_srcdir&;t t
13753s&@top_srcdir@&$ac_top_srcdir&;t t
13754s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13755s&@builddir@&$ac_builddir&;t t
13756s&@abs_builddir@&$ac_abs_builddir&;t t
13757s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13758s&@INSTALL@&$ac_INSTALL&;t t
13759s&@MKDIR_P@&$ac_MKDIR_P&;t t
13760$ac_datarootdir_hack
13761"
13762eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13763  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13764
13765test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13766  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13767  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13768      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13769  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13770which seems to be undefined.  Please make sure it is defined" >&5
13771printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13772which seems to be undefined.  Please make sure it is defined" >&2;}
13773
13774  rm -f "$ac_tmp/stdin"
13775  case $ac_file in
13776  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13777  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13778  esac \
13779  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13780 ;;
13781  :H)
13782  #
13783  # CONFIG_HEADER
13784  #
13785  if test x"$ac_file" != x-; then
13786    {
13787      printf "%s\n" "/* $configure_input  */" >&1 \
13788      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13789    } >"$ac_tmp/config.h" \
13790      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13791    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13792      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13793printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13794    else
13795      rm -f "$ac_file"
13796      mv "$ac_tmp/config.h" "$ac_file" \
13797	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13798    fi
13799  else
13800    printf "%s\n" "/* $configure_input  */" >&1 \
13801      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13802      || as_fn_error $? "could not create -" "$LINENO" 5
13803  fi
13804# Compute "$ac_file"'s index in $config_headers.
13805_am_arg="$ac_file"
13806_am_stamp_count=1
13807for _am_header in $config_headers :; do
13808  case $_am_header in
13809    $_am_arg | $_am_arg:* )
13810      break ;;
13811    * )
13812      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13813  esac
13814done
13815echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13816$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13817	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13818	 X"$_am_arg" : 'X\(//\)$' \| \
13819	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13820printf "%s\n" X"$_am_arg" |
13821    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13822	    s//\1/
13823	    q
13824	  }
13825	  /^X\(\/\/\)[^/].*/{
13826	    s//\1/
13827	    q
13828	  }
13829	  /^X\(\/\/\)$/{
13830	    s//\1/
13831	    q
13832	  }
13833	  /^X\(\/\).*/{
13834	    s//\1/
13835	    q
13836	  }
13837	  s/.*/./; q'`/stamp-h$_am_stamp_count
13838 ;;
13839
13840  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13841printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13842 ;;
13843  esac
13844
13845
13846  case $ac_file$ac_mode in
13847    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13848  # Older Autoconf quotes --file arguments for eval, but not when files
13849  # are listed without --file.  Let's play safe and only enable the eval
13850  # if we detect the quoting.
13851  # TODO: see whether this extra hack can be removed once we start
13852  # requiring Autoconf 2.70 or later.
13853  case $CONFIG_FILES in #(
13854  *\'*) :
13855    eval set x "$CONFIG_FILES" ;; #(
13856  *) :
13857    set x $CONFIG_FILES ;; #(
13858  *) :
13859     ;;
13860esac
13861  shift
13862  # Used to flag and report bootstrapping failures.
13863  am_rc=0
13864  for am_mf
13865  do
13866    # Strip MF so we end up with the name of the file.
13867    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13868    # Check whether this is an Automake generated Makefile which includes
13869    # dependency-tracking related rules and includes.
13870    # Grep'ing the whole file directly is not great: AIX grep has a line
13871    # limit of 2048, but all sed's we know have understand at least 4000.
13872    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13873      || continue
13874    am_dirpart=`$as_dirname -- "$am_mf" ||
13875$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13876	 X"$am_mf" : 'X\(//\)[^/]' \| \
13877	 X"$am_mf" : 'X\(//\)$' \| \
13878	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13879printf "%s\n" X"$am_mf" |
13880    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13881	    s//\1/
13882	    q
13883	  }
13884	  /^X\(\/\/\)[^/].*/{
13885	    s//\1/
13886	    q
13887	  }
13888	  /^X\(\/\/\)$/{
13889	    s//\1/
13890	    q
13891	  }
13892	  /^X\(\/\).*/{
13893	    s//\1/
13894	    q
13895	  }
13896	  s/.*/./; q'`
13897    am_filepart=`$as_basename -- "$am_mf" ||
13898$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13899	 X"$am_mf" : 'X\(//\)$' \| \
13900	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13901printf "%s\n" X/"$am_mf" |
13902    sed '/^.*\/\([^/][^/]*\)\/*$/{
13903	    s//\1/
13904	    q
13905	  }
13906	  /^X\/\(\/\/\)$/{
13907	    s//\1/
13908	    q
13909	  }
13910	  /^X\/\(\/\).*/{
13911	    s//\1/
13912	    q
13913	  }
13914	  s/.*/./; q'`
13915    { echo "$as_me:$LINENO: cd "$am_dirpart" \
13916      && sed -e '/# am--include-marker/d' "$am_filepart" \
13917        | $MAKE -f - am--depfiles" >&5
13918   (cd "$am_dirpart" \
13919      && sed -e '/# am--include-marker/d' "$am_filepart" \
13920        | $MAKE -f - am--depfiles) >&5 2>&5
13921   ac_status=$?
13922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923   (exit $ac_status); } || am_rc=$?
13924  done
13925  if test $am_rc -ne 0; then
13926    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13927printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13928as_fn_error $? "Something went wrong bootstrapping makefile fragments
13929    for automatic dependency tracking.  If GNU make was not used, consider
13930    re-running the configure script with MAKE=\"gmake\" (or whatever is
13931    necessary).  You can also try re-running configure with the
13932    '--disable-dependency-tracking' option to at least be able to build
13933    the package (albeit without support for automatic dependency tracking).
13934See \`config.log' for more details" "$LINENO" 5; }
13935  fi
13936  { am_dirpart=; unset am_dirpart;}
13937  { am_filepart=; unset am_filepart;}
13938  { am_mf=; unset am_mf;}
13939  { am_rc=; unset am_rc;}
13940  rm -f conftest-deps.mk
13941}
13942 ;;
13943
13944  esac
13945done # for ac_tag
13946
13947
13948as_fn_exit 0
13949_ACEOF
13950ac_clean_files=$ac_clean_files_save
13951
13952test $ac_write_fail = 0 ||
13953  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13954
13955
13956# configure is writing to config.log, and then calls config.status.
13957# config.status does its own redirection, appending to config.log.
13958# Unfortunately, on DOS this fails, as config.log is still kept open
13959# by configure, so config.status won't be able to write to it; its
13960# output is simply discarded.  So we exec the FD to /dev/null,
13961# effectively closing config.log, so it can be properly (re)opened and
13962# appended to by config.status.  When coming back to configure, we
13963# need to make the FD available again.
13964if test "$no_create" != yes; then
13965  ac_cs_success=:
13966  ac_config_status_args=
13967  test "$silent" = yes &&
13968    ac_config_status_args="$ac_config_status_args --quiet"
13969  exec 5>/dev/null
13970  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13971  exec 5>>config.log
13972  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13973  # would make configure fail if this is the last instruction.
13974  $ac_cs_success || as_fn_exit 1
13975fi
13976if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13977  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13978printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13979fi
13980
13981
13982