configure revision f303c8d5
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for xdpyinfo 1.3.4.
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.4'
616PACKAGE_STRING='xdpyinfo 1.3.4'
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.4 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.4:";;
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  --with-xf86misc         Enable 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.4
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.4, 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.4'
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{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4490printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4491if test ${ac_cv_c_undeclared_builtin_options+y}
4492then :
4493  printf %s "(cached) " >&6
4494else $as_nop
4495  ac_save_CFLAGS=$CFLAGS
4496   ac_cv_c_undeclared_builtin_options='cannot detect'
4497   for ac_arg in '' -fno-builtin; do
4498     CFLAGS="$ac_save_CFLAGS $ac_arg"
4499     # This test program should *not* compile successfully.
4500     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4501/* end confdefs.h.  */
4502
4503int
4504main (void)
4505{
4506(void) strchr;
4507  ;
4508  return 0;
4509}
4510_ACEOF
4511if ac_fn_c_try_compile "$LINENO"
4512then :
4513
4514else $as_nop
4515  # This test program should compile successfully.
4516        # No library function is consistently available on
4517        # freestanding implementations, so test against a dummy
4518        # declaration.  Include always-available headers on the
4519        # off chance that they somehow elicit warnings.
4520        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4521/* end confdefs.h.  */
4522#include <float.h>
4523#include <limits.h>
4524#include <stdarg.h>
4525#include <stddef.h>
4526extern void ac_decl (int, char *);
4527
4528int
4529main (void)
4530{
4531(void) ac_decl (0, (char *) 0);
4532  (void) ac_decl;
4533
4534  ;
4535  return 0;
4536}
4537_ACEOF
4538if ac_fn_c_try_compile "$LINENO"
4539then :
4540  if test x"$ac_arg" = x
4541then :
4542  ac_cv_c_undeclared_builtin_options='none needed'
4543else $as_nop
4544  ac_cv_c_undeclared_builtin_options=$ac_arg
4545fi
4546          break
4547fi
4548rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4549fi
4550rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4551    done
4552    CFLAGS=$ac_save_CFLAGS
4553
4554fi
4555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4556printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4557  case $ac_cv_c_undeclared_builtin_options in #(
4558  'cannot detect') :
4559    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4560printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4561as_fn_error $? "cannot make $CC report undeclared builtins
4562See \`config.log' for more details" "$LINENO" 5; } ;; #(
4563  'none needed') :
4564    ac_c_undeclared_builtin_options='' ;; #(
4565  *) :
4566    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4567esac
4568
4569ac_header= ac_cache=
4570for ac_item in $ac_header_c_list
4571do
4572  if test $ac_cache; then
4573    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4574    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4575      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4576    fi
4577    ac_header= ac_cache=
4578  elif test $ac_header; then
4579    ac_cache=$ac_item
4580  else
4581    ac_header=$ac_item
4582  fi
4583done
4584
4585
4586
4587
4588
4589
4590
4591
4592if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4593then :
4594
4595printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4596
4597fi
4598
4599
4600
4601
4602ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4603if test "x$ac_cv_have_decl___clang__" = xyes
4604then :
4605  CLANGCC="yes"
4606else $as_nop
4607  CLANGCC="no"
4608fi
4609ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4610if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4611then :
4612  INTELCC="yes"
4613else $as_nop
4614  INTELCC="no"
4615fi
4616ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4617if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4618then :
4619  SUNCC="yes"
4620else $as_nop
4621  SUNCC="no"
4622fi
4623
4624
4625
4626
4627
4628
4629
4630
4631if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4632	if test -n "$ac_tool_prefix"; then
4633  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4634set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4636printf %s "checking for $ac_word... " >&6; }
4637if test ${ac_cv_path_PKG_CONFIG+y}
4638then :
4639  printf %s "(cached) " >&6
4640else $as_nop
4641  case $PKG_CONFIG in
4642  [\\/]* | ?:[\\/]*)
4643  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4644  ;;
4645  *)
4646  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647for as_dir in $PATH
4648do
4649  IFS=$as_save_IFS
4650  case $as_dir in #(((
4651    '') as_dir=./ ;;
4652    */) ;;
4653    *) as_dir=$as_dir/ ;;
4654  esac
4655    for ac_exec_ext in '' $ac_executable_extensions; do
4656  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4657    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4658    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4659    break 2
4660  fi
4661done
4662  done
4663IFS=$as_save_IFS
4664
4665  ;;
4666esac
4667fi
4668PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4669if test -n "$PKG_CONFIG"; then
4670  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4671printf "%s\n" "$PKG_CONFIG" >&6; }
4672else
4673  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4674printf "%s\n" "no" >&6; }
4675fi
4676
4677
4678fi
4679if test -z "$ac_cv_path_PKG_CONFIG"; then
4680  ac_pt_PKG_CONFIG=$PKG_CONFIG
4681  # Extract the first word of "pkg-config", so it can be a program name with args.
4682set dummy pkg-config; ac_word=$2
4683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4684printf %s "checking for $ac_word... " >&6; }
4685if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4686then :
4687  printf %s "(cached) " >&6
4688else $as_nop
4689  case $ac_pt_PKG_CONFIG in
4690  [\\/]* | ?:[\\/]*)
4691  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4692  ;;
4693  *)
4694  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695for as_dir in $PATH
4696do
4697  IFS=$as_save_IFS
4698  case $as_dir in #(((
4699    '') as_dir=./ ;;
4700    */) ;;
4701    *) as_dir=$as_dir/ ;;
4702  esac
4703    for ac_exec_ext in '' $ac_executable_extensions; do
4704  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4705    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4706    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4707    break 2
4708  fi
4709done
4710  done
4711IFS=$as_save_IFS
4712
4713  ;;
4714esac
4715fi
4716ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4717if test -n "$ac_pt_PKG_CONFIG"; then
4718  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4719printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4720else
4721  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4722printf "%s\n" "no" >&6; }
4723fi
4724
4725  if test "x$ac_pt_PKG_CONFIG" = x; then
4726    PKG_CONFIG=""
4727  else
4728    case $cross_compiling:$ac_tool_warned in
4729yes:)
4730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4731printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4732ac_tool_warned=yes ;;
4733esac
4734    PKG_CONFIG=$ac_pt_PKG_CONFIG
4735  fi
4736else
4737  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4738fi
4739
4740fi
4741if test -n "$PKG_CONFIG"; then
4742	_pkg_min_version=0.9.0
4743	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4744printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4745	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4746		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4747printf "%s\n" "yes" >&6; }
4748	else
4749		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4750printf "%s\n" "no" >&6; }
4751		PKG_CONFIG=""
4752	fi
4753fi
4754
4755
4756  # Make sure we can run config.sub.
4757$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4758  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4759
4760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4761printf %s "checking build system type... " >&6; }
4762if test ${ac_cv_build+y}
4763then :
4764  printf %s "(cached) " >&6
4765else $as_nop
4766  ac_build_alias=$build_alias
4767test "x$ac_build_alias" = x &&
4768  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4769test "x$ac_build_alias" = x &&
4770  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4771ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4772  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4773
4774fi
4775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4776printf "%s\n" "$ac_cv_build" >&6; }
4777case $ac_cv_build in
4778*-*-*) ;;
4779*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4780esac
4781build=$ac_cv_build
4782ac_save_IFS=$IFS; IFS='-'
4783set x $ac_cv_build
4784shift
4785build_cpu=$1
4786build_vendor=$2
4787shift; shift
4788# Remember, the first character of IFS is used to create $*,
4789# except with old shells:
4790build_os=$*
4791IFS=$ac_save_IFS
4792case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4793
4794
4795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4796printf %s "checking host system type... " >&6; }
4797if test ${ac_cv_host+y}
4798then :
4799  printf %s "(cached) " >&6
4800else $as_nop
4801  if test "x$host_alias" = x; then
4802  ac_cv_host=$ac_cv_build
4803else
4804  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4805    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4806fi
4807
4808fi
4809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4810printf "%s\n" "$ac_cv_host" >&6; }
4811case $ac_cv_host in
4812*-*-*) ;;
4813*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4814esac
4815host=$ac_cv_host
4816ac_save_IFS=$IFS; IFS='-'
4817set x $ac_cv_host
4818shift
4819host_cpu=$1
4820host_vendor=$2
4821shift; shift
4822# Remember, the first character of IFS is used to create $*,
4823# except with old shells:
4824host_os=$*
4825IFS=$ac_save_IFS
4826case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4827
4828
4829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4830printf %s "checking for a sed that does not truncate output... " >&6; }
4831if test ${ac_cv_path_SED+y}
4832then :
4833  printf %s "(cached) " >&6
4834else $as_nop
4835            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4836     for ac_i in 1 2 3 4 5 6 7; do
4837       ac_script="$ac_script$as_nl$ac_script"
4838     done
4839     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4840     { ac_script=; unset ac_script;}
4841     if test -z "$SED"; then
4842  ac_path_SED_found=false
4843  # Loop through the user's path and test for each of PROGNAME-LIST
4844  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4845for as_dir in $PATH
4846do
4847  IFS=$as_save_IFS
4848  case $as_dir in #(((
4849    '') as_dir=./ ;;
4850    */) ;;
4851    *) as_dir=$as_dir/ ;;
4852  esac
4853    for ac_prog in sed gsed
4854   do
4855    for ac_exec_ext in '' $ac_executable_extensions; do
4856      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4857      as_fn_executable_p "$ac_path_SED" || continue
4858# Check for GNU ac_path_SED and select it if it is found.
4859  # Check for GNU $ac_path_SED
4860case `"$ac_path_SED" --version 2>&1` in
4861*GNU*)
4862  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4863*)
4864  ac_count=0
4865  printf %s 0123456789 >"conftest.in"
4866  while :
4867  do
4868    cat "conftest.in" "conftest.in" >"conftest.tmp"
4869    mv "conftest.tmp" "conftest.in"
4870    cp "conftest.in" "conftest.nl"
4871    printf "%s\n" '' >> "conftest.nl"
4872    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4873    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4874    as_fn_arith $ac_count + 1 && ac_count=$as_val
4875    if test $ac_count -gt ${ac_path_SED_max-0}; then
4876      # Best one so far, save it but keep looking for a better one
4877      ac_cv_path_SED="$ac_path_SED"
4878      ac_path_SED_max=$ac_count
4879    fi
4880    # 10*(2^10) chars as input seems more than enough
4881    test $ac_count -gt 10 && break
4882  done
4883  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4884esac
4885
4886      $ac_path_SED_found && break 3
4887    done
4888  done
4889  done
4890IFS=$as_save_IFS
4891  if test -z "$ac_cv_path_SED"; then
4892    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4893  fi
4894else
4895  ac_cv_path_SED=$SED
4896fi
4897
4898fi
4899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4900printf "%s\n" "$ac_cv_path_SED" >&6; }
4901 SED="$ac_cv_path_SED"
4902  rm -f conftest.sed
4903
4904
4905
4906
4907
4908
4909# Check whether --enable-selective-werror was given.
4910if test ${enable_selective_werror+y}
4911then :
4912  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4913else $as_nop
4914  SELECTIVE_WERROR=yes
4915fi
4916
4917
4918
4919
4920
4921# -v is too short to test reliably with XORG_TESTSET_CFLAG
4922if test "x$SUNCC" = "xyes"; then
4923    BASE_CFLAGS="-v"
4924else
4925    BASE_CFLAGS=""
4926fi
4927
4928# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942xorg_testset_save_CFLAGS="$CFLAGS"
4943
4944if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4945	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4946	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4947printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4948if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4949then :
4950  printf %s "(cached) " >&6
4951else $as_nop
4952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4953/* end confdefs.h.  */
4954int i;
4955_ACEOF
4956if ac_fn_c_try_compile "$LINENO"
4957then :
4958  xorg_cv_cc_flag_unknown_warning_option=yes
4959else $as_nop
4960  xorg_cv_cc_flag_unknown_warning_option=no
4961fi
4962rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4963fi
4964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4965printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4966	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4967	CFLAGS="$xorg_testset_save_CFLAGS"
4968fi
4969
4970if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4971	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4972		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4973	fi
4974	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4975	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4976printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4977if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4978then :
4979  printf %s "(cached) " >&6
4980else $as_nop
4981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4982/* end confdefs.h.  */
4983int i;
4984_ACEOF
4985if ac_fn_c_try_compile "$LINENO"
4986then :
4987  xorg_cv_cc_flag_unused_command_line_argument=yes
4988else $as_nop
4989  xorg_cv_cc_flag_unused_command_line_argument=no
4990fi
4991rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4992fi
4993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4994printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4995	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4996	CFLAGS="$xorg_testset_save_CFLAGS"
4997fi
4998
4999found="no"
5000
5001	if test $found = "no" ; then
5002		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5003			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5004		fi
5005
5006		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5007			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5008		fi
5009
5010		CFLAGS="$CFLAGS -Wall"
5011
5012		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5013printf %s "checking if $CC supports -Wall... " >&6; }
5014		cacheid=xorg_cv_cc_flag__Wall
5015		if eval test \${$cacheid+y}
5016then :
5017  printf %s "(cached) " >&6
5018else $as_nop
5019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5020/* end confdefs.h.  */
5021int i;
5022int
5023main (void)
5024{
5025
5026  ;
5027  return 0;
5028}
5029_ACEOF
5030if ac_fn_c_try_link "$LINENO"
5031then :
5032  eval $cacheid=yes
5033else $as_nop
5034  eval $cacheid=no
5035fi
5036rm -f core conftest.err conftest.$ac_objext conftest.beam \
5037    conftest$ac_exeext conftest.$ac_ext
5038fi
5039
5040
5041		CFLAGS="$xorg_testset_save_CFLAGS"
5042
5043		eval supported=\$$cacheid
5044		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5045printf "%s\n" "$supported" >&6; }
5046		if test "$supported" = "yes" ; then
5047			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5048			found="yes"
5049		fi
5050	fi
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066xorg_testset_save_CFLAGS="$CFLAGS"
5067
5068if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5069	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5070	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5071printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5072if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5073then :
5074  printf %s "(cached) " >&6
5075else $as_nop
5076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5077/* end confdefs.h.  */
5078int i;
5079_ACEOF
5080if ac_fn_c_try_compile "$LINENO"
5081then :
5082  xorg_cv_cc_flag_unknown_warning_option=yes
5083else $as_nop
5084  xorg_cv_cc_flag_unknown_warning_option=no
5085fi
5086rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5087fi
5088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5089printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5090	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5091	CFLAGS="$xorg_testset_save_CFLAGS"
5092fi
5093
5094if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5095	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5096		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5097	fi
5098	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5099	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5100printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5101if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5102then :
5103  printf %s "(cached) " >&6
5104else $as_nop
5105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5106/* end confdefs.h.  */
5107int i;
5108_ACEOF
5109if ac_fn_c_try_compile "$LINENO"
5110then :
5111  xorg_cv_cc_flag_unused_command_line_argument=yes
5112else $as_nop
5113  xorg_cv_cc_flag_unused_command_line_argument=no
5114fi
5115rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5116fi
5117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5118printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5119	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5120	CFLAGS="$xorg_testset_save_CFLAGS"
5121fi
5122
5123found="no"
5124
5125	if test $found = "no" ; then
5126		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5127			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5128		fi
5129
5130		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5131			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5132		fi
5133
5134		CFLAGS="$CFLAGS -Wpointer-arith"
5135
5136		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5137printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5138		cacheid=xorg_cv_cc_flag__Wpointer_arith
5139		if eval test \${$cacheid+y}
5140then :
5141  printf %s "(cached) " >&6
5142else $as_nop
5143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5144/* end confdefs.h.  */
5145int i;
5146int
5147main (void)
5148{
5149
5150  ;
5151  return 0;
5152}
5153_ACEOF
5154if ac_fn_c_try_link "$LINENO"
5155then :
5156  eval $cacheid=yes
5157else $as_nop
5158  eval $cacheid=no
5159fi
5160rm -f core conftest.err conftest.$ac_objext conftest.beam \
5161    conftest$ac_exeext conftest.$ac_ext
5162fi
5163
5164
5165		CFLAGS="$xorg_testset_save_CFLAGS"
5166
5167		eval supported=\$$cacheid
5168		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5169printf "%s\n" "$supported" >&6; }
5170		if test "$supported" = "yes" ; then
5171			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5172			found="yes"
5173		fi
5174	fi
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190xorg_testset_save_CFLAGS="$CFLAGS"
5191
5192if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5193	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5194	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5195printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5196if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5197then :
5198  printf %s "(cached) " >&6
5199else $as_nop
5200  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5201/* end confdefs.h.  */
5202int i;
5203_ACEOF
5204if ac_fn_c_try_compile "$LINENO"
5205then :
5206  xorg_cv_cc_flag_unknown_warning_option=yes
5207else $as_nop
5208  xorg_cv_cc_flag_unknown_warning_option=no
5209fi
5210rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5211fi
5212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5213printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5214	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5215	CFLAGS="$xorg_testset_save_CFLAGS"
5216fi
5217
5218if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5219	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5220		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5221	fi
5222	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5223	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5224printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5225if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5226then :
5227  printf %s "(cached) " >&6
5228else $as_nop
5229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5230/* end confdefs.h.  */
5231int i;
5232_ACEOF
5233if ac_fn_c_try_compile "$LINENO"
5234then :
5235  xorg_cv_cc_flag_unused_command_line_argument=yes
5236else $as_nop
5237  xorg_cv_cc_flag_unused_command_line_argument=no
5238fi
5239rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5240fi
5241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5242printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5243	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5244	CFLAGS="$xorg_testset_save_CFLAGS"
5245fi
5246
5247found="no"
5248
5249	if test $found = "no" ; then
5250		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5251			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5252		fi
5253
5254		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5255			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5256		fi
5257
5258		CFLAGS="$CFLAGS -Wmissing-declarations"
5259
5260		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5261printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5262		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5263		if eval test \${$cacheid+y}
5264then :
5265  printf %s "(cached) " >&6
5266else $as_nop
5267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5268/* end confdefs.h.  */
5269int i;
5270int
5271main (void)
5272{
5273
5274  ;
5275  return 0;
5276}
5277_ACEOF
5278if ac_fn_c_try_link "$LINENO"
5279then :
5280  eval $cacheid=yes
5281else $as_nop
5282  eval $cacheid=no
5283fi
5284rm -f core conftest.err conftest.$ac_objext conftest.beam \
5285    conftest$ac_exeext conftest.$ac_ext
5286fi
5287
5288
5289		CFLAGS="$xorg_testset_save_CFLAGS"
5290
5291		eval supported=\$$cacheid
5292		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5293printf "%s\n" "$supported" >&6; }
5294		if test "$supported" = "yes" ; then
5295			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5296			found="yes"
5297		fi
5298	fi
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314xorg_testset_save_CFLAGS="$CFLAGS"
5315
5316if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5317	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5318	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5319printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5320if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5321then :
5322  printf %s "(cached) " >&6
5323else $as_nop
5324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5325/* end confdefs.h.  */
5326int i;
5327_ACEOF
5328if ac_fn_c_try_compile "$LINENO"
5329then :
5330  xorg_cv_cc_flag_unknown_warning_option=yes
5331else $as_nop
5332  xorg_cv_cc_flag_unknown_warning_option=no
5333fi
5334rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5335fi
5336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5337printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5338	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5339	CFLAGS="$xorg_testset_save_CFLAGS"
5340fi
5341
5342if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5343	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5344		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5345	fi
5346	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5347	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5348printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5349if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5350then :
5351  printf %s "(cached) " >&6
5352else $as_nop
5353  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5354/* end confdefs.h.  */
5355int i;
5356_ACEOF
5357if ac_fn_c_try_compile "$LINENO"
5358then :
5359  xorg_cv_cc_flag_unused_command_line_argument=yes
5360else $as_nop
5361  xorg_cv_cc_flag_unused_command_line_argument=no
5362fi
5363rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5364fi
5365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5366printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5367	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5368	CFLAGS="$xorg_testset_save_CFLAGS"
5369fi
5370
5371found="no"
5372
5373	if test $found = "no" ; then
5374		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5375			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5376		fi
5377
5378		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5379			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5380		fi
5381
5382		CFLAGS="$CFLAGS -Wformat=2"
5383
5384		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5385printf %s "checking if $CC supports -Wformat=2... " >&6; }
5386		cacheid=xorg_cv_cc_flag__Wformat_2
5387		if eval test \${$cacheid+y}
5388then :
5389  printf %s "(cached) " >&6
5390else $as_nop
5391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392/* end confdefs.h.  */
5393int i;
5394int
5395main (void)
5396{
5397
5398  ;
5399  return 0;
5400}
5401_ACEOF
5402if ac_fn_c_try_link "$LINENO"
5403then :
5404  eval $cacheid=yes
5405else $as_nop
5406  eval $cacheid=no
5407fi
5408rm -f core conftest.err conftest.$ac_objext conftest.beam \
5409    conftest$ac_exeext conftest.$ac_ext
5410fi
5411
5412
5413		CFLAGS="$xorg_testset_save_CFLAGS"
5414
5415		eval supported=\$$cacheid
5416		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5417printf "%s\n" "$supported" >&6; }
5418		if test "$supported" = "yes" ; then
5419			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5420			found="yes"
5421		fi
5422	fi
5423
5424	if test $found = "no" ; then
5425		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5426			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5427		fi
5428
5429		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5430			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5431		fi
5432
5433		CFLAGS="$CFLAGS -Wformat"
5434
5435		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5436printf %s "checking if $CC supports -Wformat... " >&6; }
5437		cacheid=xorg_cv_cc_flag__Wformat
5438		if eval test \${$cacheid+y}
5439then :
5440  printf %s "(cached) " >&6
5441else $as_nop
5442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5443/* end confdefs.h.  */
5444int i;
5445int
5446main (void)
5447{
5448
5449  ;
5450  return 0;
5451}
5452_ACEOF
5453if ac_fn_c_try_link "$LINENO"
5454then :
5455  eval $cacheid=yes
5456else $as_nop
5457  eval $cacheid=no
5458fi
5459rm -f core conftest.err conftest.$ac_objext conftest.beam \
5460    conftest$ac_exeext conftest.$ac_ext
5461fi
5462
5463
5464		CFLAGS="$xorg_testset_save_CFLAGS"
5465
5466		eval supported=\$$cacheid
5467		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5468printf "%s\n" "$supported" >&6; }
5469		if test "$supported" = "yes" ; then
5470			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5471			found="yes"
5472		fi
5473	fi
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491xorg_testset_save_CFLAGS="$CFLAGS"
5492
5493if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5494	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5495	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5496printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5497if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5498then :
5499  printf %s "(cached) " >&6
5500else $as_nop
5501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5502/* end confdefs.h.  */
5503int i;
5504_ACEOF
5505if ac_fn_c_try_compile "$LINENO"
5506then :
5507  xorg_cv_cc_flag_unknown_warning_option=yes
5508else $as_nop
5509  xorg_cv_cc_flag_unknown_warning_option=no
5510fi
5511rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5512fi
5513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5514printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5515	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5516	CFLAGS="$xorg_testset_save_CFLAGS"
5517fi
5518
5519if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5520	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5521		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5522	fi
5523	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5524	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5525printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5526if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5527then :
5528  printf %s "(cached) " >&6
5529else $as_nop
5530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5531/* end confdefs.h.  */
5532int i;
5533_ACEOF
5534if ac_fn_c_try_compile "$LINENO"
5535then :
5536  xorg_cv_cc_flag_unused_command_line_argument=yes
5537else $as_nop
5538  xorg_cv_cc_flag_unused_command_line_argument=no
5539fi
5540rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5541fi
5542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5543printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5544	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5545	CFLAGS="$xorg_testset_save_CFLAGS"
5546fi
5547
5548found="no"
5549
5550	if test $found = "no" ; then
5551		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5552			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5553		fi
5554
5555		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5556			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5557		fi
5558
5559		CFLAGS="$CFLAGS -Wstrict-prototypes"
5560
5561		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5562printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5563		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5564		if eval test \${$cacheid+y}
5565then :
5566  printf %s "(cached) " >&6
5567else $as_nop
5568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5569/* end confdefs.h.  */
5570int i;
5571int
5572main (void)
5573{
5574
5575  ;
5576  return 0;
5577}
5578_ACEOF
5579if ac_fn_c_try_link "$LINENO"
5580then :
5581  eval $cacheid=yes
5582else $as_nop
5583  eval $cacheid=no
5584fi
5585rm -f core conftest.err conftest.$ac_objext conftest.beam \
5586    conftest$ac_exeext conftest.$ac_ext
5587fi
5588
5589
5590		CFLAGS="$xorg_testset_save_CFLAGS"
5591
5592		eval supported=\$$cacheid
5593		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5594printf "%s\n" "$supported" >&6; }
5595		if test "$supported" = "yes" ; then
5596			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5597			found="yes"
5598		fi
5599	fi
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615xorg_testset_save_CFLAGS="$CFLAGS"
5616
5617if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5618	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5619	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5620printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5621if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5622then :
5623  printf %s "(cached) " >&6
5624else $as_nop
5625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626/* end confdefs.h.  */
5627int i;
5628_ACEOF
5629if ac_fn_c_try_compile "$LINENO"
5630then :
5631  xorg_cv_cc_flag_unknown_warning_option=yes
5632else $as_nop
5633  xorg_cv_cc_flag_unknown_warning_option=no
5634fi
5635rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5636fi
5637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5638printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5639	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5640	CFLAGS="$xorg_testset_save_CFLAGS"
5641fi
5642
5643if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5644	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5645		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5646	fi
5647	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5648	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5649printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5650if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5651then :
5652  printf %s "(cached) " >&6
5653else $as_nop
5654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655/* end confdefs.h.  */
5656int i;
5657_ACEOF
5658if ac_fn_c_try_compile "$LINENO"
5659then :
5660  xorg_cv_cc_flag_unused_command_line_argument=yes
5661else $as_nop
5662  xorg_cv_cc_flag_unused_command_line_argument=no
5663fi
5664rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5665fi
5666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5667printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5668	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5669	CFLAGS="$xorg_testset_save_CFLAGS"
5670fi
5671
5672found="no"
5673
5674	if test $found = "no" ; then
5675		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5676			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5677		fi
5678
5679		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5680			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5681		fi
5682
5683		CFLAGS="$CFLAGS -Wmissing-prototypes"
5684
5685		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5686printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5687		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5688		if eval test \${$cacheid+y}
5689then :
5690  printf %s "(cached) " >&6
5691else $as_nop
5692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693/* end confdefs.h.  */
5694int i;
5695int
5696main (void)
5697{
5698
5699  ;
5700  return 0;
5701}
5702_ACEOF
5703if ac_fn_c_try_link "$LINENO"
5704then :
5705  eval $cacheid=yes
5706else $as_nop
5707  eval $cacheid=no
5708fi
5709rm -f core conftest.err conftest.$ac_objext conftest.beam \
5710    conftest$ac_exeext conftest.$ac_ext
5711fi
5712
5713
5714		CFLAGS="$xorg_testset_save_CFLAGS"
5715
5716		eval supported=\$$cacheid
5717		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5718printf "%s\n" "$supported" >&6; }
5719		if test "$supported" = "yes" ; then
5720			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5721			found="yes"
5722		fi
5723	fi
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739xorg_testset_save_CFLAGS="$CFLAGS"
5740
5741if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5742	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5743	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5744printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5745if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5746then :
5747  printf %s "(cached) " >&6
5748else $as_nop
5749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750/* end confdefs.h.  */
5751int i;
5752_ACEOF
5753if ac_fn_c_try_compile "$LINENO"
5754then :
5755  xorg_cv_cc_flag_unknown_warning_option=yes
5756else $as_nop
5757  xorg_cv_cc_flag_unknown_warning_option=no
5758fi
5759rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5760fi
5761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5762printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5763	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5764	CFLAGS="$xorg_testset_save_CFLAGS"
5765fi
5766
5767if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5768	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5769		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5770	fi
5771	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5772	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5773printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5774if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5775then :
5776  printf %s "(cached) " >&6
5777else $as_nop
5778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5779/* end confdefs.h.  */
5780int i;
5781_ACEOF
5782if ac_fn_c_try_compile "$LINENO"
5783then :
5784  xorg_cv_cc_flag_unused_command_line_argument=yes
5785else $as_nop
5786  xorg_cv_cc_flag_unused_command_line_argument=no
5787fi
5788rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5789fi
5790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5791printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5792	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5793	CFLAGS="$xorg_testset_save_CFLAGS"
5794fi
5795
5796found="no"
5797
5798	if test $found = "no" ; then
5799		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5800			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5801		fi
5802
5803		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5804			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5805		fi
5806
5807		CFLAGS="$CFLAGS -Wnested-externs"
5808
5809		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5810printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5811		cacheid=xorg_cv_cc_flag__Wnested_externs
5812		if eval test \${$cacheid+y}
5813then :
5814  printf %s "(cached) " >&6
5815else $as_nop
5816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5817/* end confdefs.h.  */
5818int i;
5819int
5820main (void)
5821{
5822
5823  ;
5824  return 0;
5825}
5826_ACEOF
5827if ac_fn_c_try_link "$LINENO"
5828then :
5829  eval $cacheid=yes
5830else $as_nop
5831  eval $cacheid=no
5832fi
5833rm -f core conftest.err conftest.$ac_objext conftest.beam \
5834    conftest$ac_exeext conftest.$ac_ext
5835fi
5836
5837
5838		CFLAGS="$xorg_testset_save_CFLAGS"
5839
5840		eval supported=\$$cacheid
5841		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5842printf "%s\n" "$supported" >&6; }
5843		if test "$supported" = "yes" ; then
5844			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5845			found="yes"
5846		fi
5847	fi
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863xorg_testset_save_CFLAGS="$CFLAGS"
5864
5865if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5866	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5867	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5868printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5869if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5870then :
5871  printf %s "(cached) " >&6
5872else $as_nop
5873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5874/* end confdefs.h.  */
5875int i;
5876_ACEOF
5877if ac_fn_c_try_compile "$LINENO"
5878then :
5879  xorg_cv_cc_flag_unknown_warning_option=yes
5880else $as_nop
5881  xorg_cv_cc_flag_unknown_warning_option=no
5882fi
5883rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5884fi
5885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5886printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5887	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5888	CFLAGS="$xorg_testset_save_CFLAGS"
5889fi
5890
5891if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5892	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5893		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5894	fi
5895	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5896	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5897printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5898if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5899then :
5900  printf %s "(cached) " >&6
5901else $as_nop
5902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5903/* end confdefs.h.  */
5904int i;
5905_ACEOF
5906if ac_fn_c_try_compile "$LINENO"
5907then :
5908  xorg_cv_cc_flag_unused_command_line_argument=yes
5909else $as_nop
5910  xorg_cv_cc_flag_unused_command_line_argument=no
5911fi
5912rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5913fi
5914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5915printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5916	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5917	CFLAGS="$xorg_testset_save_CFLAGS"
5918fi
5919
5920found="no"
5921
5922	if test $found = "no" ; then
5923		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5924			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5925		fi
5926
5927		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5928			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5929		fi
5930
5931		CFLAGS="$CFLAGS -Wbad-function-cast"
5932
5933		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5934printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5935		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5936		if eval test \${$cacheid+y}
5937then :
5938  printf %s "(cached) " >&6
5939else $as_nop
5940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5941/* end confdefs.h.  */
5942int i;
5943int
5944main (void)
5945{
5946
5947  ;
5948  return 0;
5949}
5950_ACEOF
5951if ac_fn_c_try_link "$LINENO"
5952then :
5953  eval $cacheid=yes
5954else $as_nop
5955  eval $cacheid=no
5956fi
5957rm -f core conftest.err conftest.$ac_objext conftest.beam \
5958    conftest$ac_exeext conftest.$ac_ext
5959fi
5960
5961
5962		CFLAGS="$xorg_testset_save_CFLAGS"
5963
5964		eval supported=\$$cacheid
5965		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5966printf "%s\n" "$supported" >&6; }
5967		if test "$supported" = "yes" ; then
5968			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5969			found="yes"
5970		fi
5971	fi
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987xorg_testset_save_CFLAGS="$CFLAGS"
5988
5989if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5990	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5991	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5992printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5993if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5994then :
5995  printf %s "(cached) " >&6
5996else $as_nop
5997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5998/* end confdefs.h.  */
5999int i;
6000_ACEOF
6001if ac_fn_c_try_compile "$LINENO"
6002then :
6003  xorg_cv_cc_flag_unknown_warning_option=yes
6004else $as_nop
6005  xorg_cv_cc_flag_unknown_warning_option=no
6006fi
6007rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6008fi
6009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6010printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6011	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6012	CFLAGS="$xorg_testset_save_CFLAGS"
6013fi
6014
6015if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6016	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6017		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6018	fi
6019	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6020	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6021printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6022if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6023then :
6024  printf %s "(cached) " >&6
6025else $as_nop
6026  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6027/* end confdefs.h.  */
6028int i;
6029_ACEOF
6030if ac_fn_c_try_compile "$LINENO"
6031then :
6032  xorg_cv_cc_flag_unused_command_line_argument=yes
6033else $as_nop
6034  xorg_cv_cc_flag_unused_command_line_argument=no
6035fi
6036rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6037fi
6038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6039printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6040	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6041	CFLAGS="$xorg_testset_save_CFLAGS"
6042fi
6043
6044found="no"
6045
6046	if test $found = "no" ; then
6047		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6048			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6049		fi
6050
6051		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6052			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6053		fi
6054
6055		CFLAGS="$CFLAGS -Wold-style-definition"
6056
6057		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6058printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6059		cacheid=xorg_cv_cc_flag__Wold_style_definition
6060		if eval test \${$cacheid+y}
6061then :
6062  printf %s "(cached) " >&6
6063else $as_nop
6064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6065/* end confdefs.h.  */
6066int i;
6067int
6068main (void)
6069{
6070
6071  ;
6072  return 0;
6073}
6074_ACEOF
6075if ac_fn_c_try_link "$LINENO"
6076then :
6077  eval $cacheid=yes
6078else $as_nop
6079  eval $cacheid=no
6080fi
6081rm -f core conftest.err conftest.$ac_objext conftest.beam \
6082    conftest$ac_exeext conftest.$ac_ext
6083fi
6084
6085
6086		CFLAGS="$xorg_testset_save_CFLAGS"
6087
6088		eval supported=\$$cacheid
6089		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6090printf "%s\n" "$supported" >&6; }
6091		if test "$supported" = "yes" ; then
6092			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6093			found="yes"
6094		fi
6095	fi
6096
6097	if test $found = "no" ; then
6098		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6099			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6100		fi
6101
6102		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6103			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6104		fi
6105
6106		CFLAGS="$CFLAGS -fd"
6107
6108		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6109printf %s "checking if $CC supports -fd... " >&6; }
6110		cacheid=xorg_cv_cc_flag__fd
6111		if eval test \${$cacheid+y}
6112then :
6113  printf %s "(cached) " >&6
6114else $as_nop
6115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6116/* end confdefs.h.  */
6117int i;
6118int
6119main (void)
6120{
6121
6122  ;
6123  return 0;
6124}
6125_ACEOF
6126if ac_fn_c_try_link "$LINENO"
6127then :
6128  eval $cacheid=yes
6129else $as_nop
6130  eval $cacheid=no
6131fi
6132rm -f core conftest.err conftest.$ac_objext conftest.beam \
6133    conftest$ac_exeext conftest.$ac_ext
6134fi
6135
6136
6137		CFLAGS="$xorg_testset_save_CFLAGS"
6138
6139		eval supported=\$$cacheid
6140		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6141printf "%s\n" "$supported" >&6; }
6142		if test "$supported" = "yes" ; then
6143			BASE_CFLAGS="$BASE_CFLAGS -fd"
6144			found="yes"
6145		fi
6146	fi
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162xorg_testset_save_CFLAGS="$CFLAGS"
6163
6164if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6165	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6166	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6167printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6168if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6169then :
6170  printf %s "(cached) " >&6
6171else $as_nop
6172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6173/* end confdefs.h.  */
6174int i;
6175_ACEOF
6176if ac_fn_c_try_compile "$LINENO"
6177then :
6178  xorg_cv_cc_flag_unknown_warning_option=yes
6179else $as_nop
6180  xorg_cv_cc_flag_unknown_warning_option=no
6181fi
6182rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6183fi
6184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6185printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6186	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6187	CFLAGS="$xorg_testset_save_CFLAGS"
6188fi
6189
6190if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6191	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6192		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6193	fi
6194	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6195	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6196printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6197if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6198then :
6199  printf %s "(cached) " >&6
6200else $as_nop
6201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6202/* end confdefs.h.  */
6203int i;
6204_ACEOF
6205if ac_fn_c_try_compile "$LINENO"
6206then :
6207  xorg_cv_cc_flag_unused_command_line_argument=yes
6208else $as_nop
6209  xorg_cv_cc_flag_unused_command_line_argument=no
6210fi
6211rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6212fi
6213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6214printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6215	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6216	CFLAGS="$xorg_testset_save_CFLAGS"
6217fi
6218
6219found="no"
6220
6221	if test $found = "no" ; then
6222		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6223			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6224		fi
6225
6226		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6227			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6228		fi
6229
6230		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6231
6232		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6233printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6234		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6235		if eval test \${$cacheid+y}
6236then :
6237  printf %s "(cached) " >&6
6238else $as_nop
6239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6240/* end confdefs.h.  */
6241int i;
6242int
6243main (void)
6244{
6245
6246  ;
6247  return 0;
6248}
6249_ACEOF
6250if ac_fn_c_try_link "$LINENO"
6251then :
6252  eval $cacheid=yes
6253else $as_nop
6254  eval $cacheid=no
6255fi
6256rm -f core conftest.err conftest.$ac_objext conftest.beam \
6257    conftest$ac_exeext conftest.$ac_ext
6258fi
6259
6260
6261		CFLAGS="$xorg_testset_save_CFLAGS"
6262
6263		eval supported=\$$cacheid
6264		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6265printf "%s\n" "$supported" >&6; }
6266		if test "$supported" = "yes" ; then
6267			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6268			found="yes"
6269		fi
6270	fi
6271
6272
6273
6274
6275
6276# This chunk adds additional warnings that could catch undesired effects.
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290xorg_testset_save_CFLAGS="$CFLAGS"
6291
6292if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6293	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6294	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6295printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6296if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6297then :
6298  printf %s "(cached) " >&6
6299else $as_nop
6300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6301/* end confdefs.h.  */
6302int i;
6303_ACEOF
6304if ac_fn_c_try_compile "$LINENO"
6305then :
6306  xorg_cv_cc_flag_unknown_warning_option=yes
6307else $as_nop
6308  xorg_cv_cc_flag_unknown_warning_option=no
6309fi
6310rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6311fi
6312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6313printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6314	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6315	CFLAGS="$xorg_testset_save_CFLAGS"
6316fi
6317
6318if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6319	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6320		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6321	fi
6322	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6323	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6324printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6325if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6326then :
6327  printf %s "(cached) " >&6
6328else $as_nop
6329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6330/* end confdefs.h.  */
6331int i;
6332_ACEOF
6333if ac_fn_c_try_compile "$LINENO"
6334then :
6335  xorg_cv_cc_flag_unused_command_line_argument=yes
6336else $as_nop
6337  xorg_cv_cc_flag_unused_command_line_argument=no
6338fi
6339rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6340fi
6341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6342printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6343	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6344	CFLAGS="$xorg_testset_save_CFLAGS"
6345fi
6346
6347found="no"
6348
6349	if test $found = "no" ; then
6350		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6351			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6352		fi
6353
6354		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6355			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6356		fi
6357
6358		CFLAGS="$CFLAGS -Wunused"
6359
6360		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6361printf %s "checking if $CC supports -Wunused... " >&6; }
6362		cacheid=xorg_cv_cc_flag__Wunused
6363		if eval test \${$cacheid+y}
6364then :
6365  printf %s "(cached) " >&6
6366else $as_nop
6367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6368/* end confdefs.h.  */
6369int i;
6370int
6371main (void)
6372{
6373
6374  ;
6375  return 0;
6376}
6377_ACEOF
6378if ac_fn_c_try_link "$LINENO"
6379then :
6380  eval $cacheid=yes
6381else $as_nop
6382  eval $cacheid=no
6383fi
6384rm -f core conftest.err conftest.$ac_objext conftest.beam \
6385    conftest$ac_exeext conftest.$ac_ext
6386fi
6387
6388
6389		CFLAGS="$xorg_testset_save_CFLAGS"
6390
6391		eval supported=\$$cacheid
6392		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6393printf "%s\n" "$supported" >&6; }
6394		if test "$supported" = "yes" ; then
6395			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6396			found="yes"
6397		fi
6398	fi
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414xorg_testset_save_CFLAGS="$CFLAGS"
6415
6416if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6417	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6418	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6419printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6420if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6421then :
6422  printf %s "(cached) " >&6
6423else $as_nop
6424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6425/* end confdefs.h.  */
6426int i;
6427_ACEOF
6428if ac_fn_c_try_compile "$LINENO"
6429then :
6430  xorg_cv_cc_flag_unknown_warning_option=yes
6431else $as_nop
6432  xorg_cv_cc_flag_unknown_warning_option=no
6433fi
6434rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6435fi
6436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6437printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6438	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6439	CFLAGS="$xorg_testset_save_CFLAGS"
6440fi
6441
6442if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6443	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6444		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6445	fi
6446	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6447	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6448printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6449if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6450then :
6451  printf %s "(cached) " >&6
6452else $as_nop
6453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6454/* end confdefs.h.  */
6455int i;
6456_ACEOF
6457if ac_fn_c_try_compile "$LINENO"
6458then :
6459  xorg_cv_cc_flag_unused_command_line_argument=yes
6460else $as_nop
6461  xorg_cv_cc_flag_unused_command_line_argument=no
6462fi
6463rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6464fi
6465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6466printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6467	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6468	CFLAGS="$xorg_testset_save_CFLAGS"
6469fi
6470
6471found="no"
6472
6473	if test $found = "no" ; then
6474		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6475			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6476		fi
6477
6478		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6479			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6480		fi
6481
6482		CFLAGS="$CFLAGS -Wuninitialized"
6483
6484		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6485printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6486		cacheid=xorg_cv_cc_flag__Wuninitialized
6487		if eval test \${$cacheid+y}
6488then :
6489  printf %s "(cached) " >&6
6490else $as_nop
6491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6492/* end confdefs.h.  */
6493int i;
6494int
6495main (void)
6496{
6497
6498  ;
6499  return 0;
6500}
6501_ACEOF
6502if ac_fn_c_try_link "$LINENO"
6503then :
6504  eval $cacheid=yes
6505else $as_nop
6506  eval $cacheid=no
6507fi
6508rm -f core conftest.err conftest.$ac_objext conftest.beam \
6509    conftest$ac_exeext conftest.$ac_ext
6510fi
6511
6512
6513		CFLAGS="$xorg_testset_save_CFLAGS"
6514
6515		eval supported=\$$cacheid
6516		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6517printf "%s\n" "$supported" >&6; }
6518		if test "$supported" = "yes" ; then
6519			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6520			found="yes"
6521		fi
6522	fi
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538xorg_testset_save_CFLAGS="$CFLAGS"
6539
6540if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6541	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6542	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6543printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6544if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6545then :
6546  printf %s "(cached) " >&6
6547else $as_nop
6548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6549/* end confdefs.h.  */
6550int i;
6551_ACEOF
6552if ac_fn_c_try_compile "$LINENO"
6553then :
6554  xorg_cv_cc_flag_unknown_warning_option=yes
6555else $as_nop
6556  xorg_cv_cc_flag_unknown_warning_option=no
6557fi
6558rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6559fi
6560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6561printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6562	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6563	CFLAGS="$xorg_testset_save_CFLAGS"
6564fi
6565
6566if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6567	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6568		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6569	fi
6570	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6571	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6572printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6573if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6574then :
6575  printf %s "(cached) " >&6
6576else $as_nop
6577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6578/* end confdefs.h.  */
6579int i;
6580_ACEOF
6581if ac_fn_c_try_compile "$LINENO"
6582then :
6583  xorg_cv_cc_flag_unused_command_line_argument=yes
6584else $as_nop
6585  xorg_cv_cc_flag_unused_command_line_argument=no
6586fi
6587rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6588fi
6589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6590printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6591	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6592	CFLAGS="$xorg_testset_save_CFLAGS"
6593fi
6594
6595found="no"
6596
6597	if test $found = "no" ; then
6598		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6599			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6600		fi
6601
6602		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6603			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6604		fi
6605
6606		CFLAGS="$CFLAGS -Wshadow"
6607
6608		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6609printf %s "checking if $CC supports -Wshadow... " >&6; }
6610		cacheid=xorg_cv_cc_flag__Wshadow
6611		if eval test \${$cacheid+y}
6612then :
6613  printf %s "(cached) " >&6
6614else $as_nop
6615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6616/* end confdefs.h.  */
6617int i;
6618int
6619main (void)
6620{
6621
6622  ;
6623  return 0;
6624}
6625_ACEOF
6626if ac_fn_c_try_link "$LINENO"
6627then :
6628  eval $cacheid=yes
6629else $as_nop
6630  eval $cacheid=no
6631fi
6632rm -f core conftest.err conftest.$ac_objext conftest.beam \
6633    conftest$ac_exeext conftest.$ac_ext
6634fi
6635
6636
6637		CFLAGS="$xorg_testset_save_CFLAGS"
6638
6639		eval supported=\$$cacheid
6640		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6641printf "%s\n" "$supported" >&6; }
6642		if test "$supported" = "yes" ; then
6643			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6644			found="yes"
6645		fi
6646	fi
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662xorg_testset_save_CFLAGS="$CFLAGS"
6663
6664if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6665	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6666	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6667printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6668if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6669then :
6670  printf %s "(cached) " >&6
6671else $as_nop
6672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6673/* end confdefs.h.  */
6674int i;
6675_ACEOF
6676if ac_fn_c_try_compile "$LINENO"
6677then :
6678  xorg_cv_cc_flag_unknown_warning_option=yes
6679else $as_nop
6680  xorg_cv_cc_flag_unknown_warning_option=no
6681fi
6682rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6683fi
6684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6685printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6686	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6687	CFLAGS="$xorg_testset_save_CFLAGS"
6688fi
6689
6690if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6691	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6692		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6693	fi
6694	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6695	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6696printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6697if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6698then :
6699  printf %s "(cached) " >&6
6700else $as_nop
6701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6702/* end confdefs.h.  */
6703int i;
6704_ACEOF
6705if ac_fn_c_try_compile "$LINENO"
6706then :
6707  xorg_cv_cc_flag_unused_command_line_argument=yes
6708else $as_nop
6709  xorg_cv_cc_flag_unused_command_line_argument=no
6710fi
6711rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6712fi
6713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6714printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6715	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6716	CFLAGS="$xorg_testset_save_CFLAGS"
6717fi
6718
6719found="no"
6720
6721	if test $found = "no" ; then
6722		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6723			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6724		fi
6725
6726		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6727			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6728		fi
6729
6730		CFLAGS="$CFLAGS -Wmissing-noreturn"
6731
6732		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6733printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6734		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6735		if eval test \${$cacheid+y}
6736then :
6737  printf %s "(cached) " >&6
6738else $as_nop
6739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6740/* end confdefs.h.  */
6741int i;
6742int
6743main (void)
6744{
6745
6746  ;
6747  return 0;
6748}
6749_ACEOF
6750if ac_fn_c_try_link "$LINENO"
6751then :
6752  eval $cacheid=yes
6753else $as_nop
6754  eval $cacheid=no
6755fi
6756rm -f core conftest.err conftest.$ac_objext conftest.beam \
6757    conftest$ac_exeext conftest.$ac_ext
6758fi
6759
6760
6761		CFLAGS="$xorg_testset_save_CFLAGS"
6762
6763		eval supported=\$$cacheid
6764		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6765printf "%s\n" "$supported" >&6; }
6766		if test "$supported" = "yes" ; then
6767			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6768			found="yes"
6769		fi
6770	fi
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786xorg_testset_save_CFLAGS="$CFLAGS"
6787
6788if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6789	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6790	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6791printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6792if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6793then :
6794  printf %s "(cached) " >&6
6795else $as_nop
6796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6797/* end confdefs.h.  */
6798int i;
6799_ACEOF
6800if ac_fn_c_try_compile "$LINENO"
6801then :
6802  xorg_cv_cc_flag_unknown_warning_option=yes
6803else $as_nop
6804  xorg_cv_cc_flag_unknown_warning_option=no
6805fi
6806rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6807fi
6808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6809printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6810	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6811	CFLAGS="$xorg_testset_save_CFLAGS"
6812fi
6813
6814if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6815	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6816		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6817	fi
6818	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6819	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6820printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6821if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6822then :
6823  printf %s "(cached) " >&6
6824else $as_nop
6825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6826/* end confdefs.h.  */
6827int i;
6828_ACEOF
6829if ac_fn_c_try_compile "$LINENO"
6830then :
6831  xorg_cv_cc_flag_unused_command_line_argument=yes
6832else $as_nop
6833  xorg_cv_cc_flag_unused_command_line_argument=no
6834fi
6835rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6836fi
6837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6838printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6839	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6840	CFLAGS="$xorg_testset_save_CFLAGS"
6841fi
6842
6843found="no"
6844
6845	if test $found = "no" ; then
6846		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6847			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6848		fi
6849
6850		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6851			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6852		fi
6853
6854		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6855
6856		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6857printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6858		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6859		if eval test \${$cacheid+y}
6860then :
6861  printf %s "(cached) " >&6
6862else $as_nop
6863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6864/* end confdefs.h.  */
6865int i;
6866int
6867main (void)
6868{
6869
6870  ;
6871  return 0;
6872}
6873_ACEOF
6874if ac_fn_c_try_link "$LINENO"
6875then :
6876  eval $cacheid=yes
6877else $as_nop
6878  eval $cacheid=no
6879fi
6880rm -f core conftest.err conftest.$ac_objext conftest.beam \
6881    conftest$ac_exeext conftest.$ac_ext
6882fi
6883
6884
6885		CFLAGS="$xorg_testset_save_CFLAGS"
6886
6887		eval supported=\$$cacheid
6888		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6889printf "%s\n" "$supported" >&6; }
6890		if test "$supported" = "yes" ; then
6891			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6892			found="yes"
6893		fi
6894	fi
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910xorg_testset_save_CFLAGS="$CFLAGS"
6911
6912if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6913	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6914	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6915printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6916if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6917then :
6918  printf %s "(cached) " >&6
6919else $as_nop
6920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6921/* end confdefs.h.  */
6922int i;
6923_ACEOF
6924if ac_fn_c_try_compile "$LINENO"
6925then :
6926  xorg_cv_cc_flag_unknown_warning_option=yes
6927else $as_nop
6928  xorg_cv_cc_flag_unknown_warning_option=no
6929fi
6930rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6931fi
6932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6933printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6934	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6935	CFLAGS="$xorg_testset_save_CFLAGS"
6936fi
6937
6938if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6939	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6940		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6941	fi
6942	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6943	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6944printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6945if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6946then :
6947  printf %s "(cached) " >&6
6948else $as_nop
6949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6950/* end confdefs.h.  */
6951int i;
6952_ACEOF
6953if ac_fn_c_try_compile "$LINENO"
6954then :
6955  xorg_cv_cc_flag_unused_command_line_argument=yes
6956else $as_nop
6957  xorg_cv_cc_flag_unused_command_line_argument=no
6958fi
6959rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6960fi
6961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6962printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6963	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6964	CFLAGS="$xorg_testset_save_CFLAGS"
6965fi
6966
6967found="no"
6968
6969	if test $found = "no" ; then
6970		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6971			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6972		fi
6973
6974		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6975			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6976		fi
6977
6978		CFLAGS="$CFLAGS -Wredundant-decls"
6979
6980		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6981printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
6982		cacheid=xorg_cv_cc_flag__Wredundant_decls
6983		if eval test \${$cacheid+y}
6984then :
6985  printf %s "(cached) " >&6
6986else $as_nop
6987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6988/* end confdefs.h.  */
6989int i;
6990int
6991main (void)
6992{
6993
6994  ;
6995  return 0;
6996}
6997_ACEOF
6998if ac_fn_c_try_link "$LINENO"
6999then :
7000  eval $cacheid=yes
7001else $as_nop
7002  eval $cacheid=no
7003fi
7004rm -f core conftest.err conftest.$ac_objext conftest.beam \
7005    conftest$ac_exeext conftest.$ac_ext
7006fi
7007
7008
7009		CFLAGS="$xorg_testset_save_CFLAGS"
7010
7011		eval supported=\$$cacheid
7012		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7013printf "%s\n" "$supported" >&6; }
7014		if test "$supported" = "yes" ; then
7015			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7016			found="yes"
7017		fi
7018	fi
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034xorg_testset_save_CFLAGS="$CFLAGS"
7035
7036if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7037	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7038	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7039printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7040if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7041then :
7042  printf %s "(cached) " >&6
7043else $as_nop
7044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7045/* end confdefs.h.  */
7046int i;
7047_ACEOF
7048if ac_fn_c_try_compile "$LINENO"
7049then :
7050  xorg_cv_cc_flag_unknown_warning_option=yes
7051else $as_nop
7052  xorg_cv_cc_flag_unknown_warning_option=no
7053fi
7054rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7055fi
7056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7057printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7058	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7059	CFLAGS="$xorg_testset_save_CFLAGS"
7060fi
7061
7062if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7063	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7064		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7065	fi
7066	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7067	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7068printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7069if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7070then :
7071  printf %s "(cached) " >&6
7072else $as_nop
7073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7074/* end confdefs.h.  */
7075int i;
7076_ACEOF
7077if ac_fn_c_try_compile "$LINENO"
7078then :
7079  xorg_cv_cc_flag_unused_command_line_argument=yes
7080else $as_nop
7081  xorg_cv_cc_flag_unused_command_line_argument=no
7082fi
7083rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7084fi
7085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7086printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7087	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7088	CFLAGS="$xorg_testset_save_CFLAGS"
7089fi
7090
7091found="no"
7092
7093	if test $found = "no" ; then
7094		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7095			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7096		fi
7097
7098		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7099			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7100		fi
7101
7102		CFLAGS="$CFLAGS -Wlogical-op"
7103
7104		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7105printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7106		cacheid=xorg_cv_cc_flag__Wlogical_op
7107		if eval test \${$cacheid+y}
7108then :
7109  printf %s "(cached) " >&6
7110else $as_nop
7111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7112/* end confdefs.h.  */
7113int i;
7114int
7115main (void)
7116{
7117
7118  ;
7119  return 0;
7120}
7121_ACEOF
7122if ac_fn_c_try_link "$LINENO"
7123then :
7124  eval $cacheid=yes
7125else $as_nop
7126  eval $cacheid=no
7127fi
7128rm -f core conftest.err conftest.$ac_objext conftest.beam \
7129    conftest$ac_exeext conftest.$ac_ext
7130fi
7131
7132
7133		CFLAGS="$xorg_testset_save_CFLAGS"
7134
7135		eval supported=\$$cacheid
7136		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7137printf "%s\n" "$supported" >&6; }
7138		if test "$supported" = "yes" ; then
7139			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7140			found="yes"
7141		fi
7142	fi
7143
7144
7145
7146# These are currently disabled because they are noisy.  They will be enabled
7147# in the future once the codebase is sufficiently modernized to silence
7148# them.  For now, I don't want them to drown out the other warnings.
7149# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7150# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7151# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7152
7153# Turn some warnings into errors, so we don't accidentally get successful builds
7154# when there are problems that should be fixed.
7155
7156if test "x$SELECTIVE_WERROR" = "xyes" ; then
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170xorg_testset_save_CFLAGS="$CFLAGS"
7171
7172if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7173	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7174	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7175printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7176if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7177then :
7178  printf %s "(cached) " >&6
7179else $as_nop
7180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7181/* end confdefs.h.  */
7182int i;
7183_ACEOF
7184if ac_fn_c_try_compile "$LINENO"
7185then :
7186  xorg_cv_cc_flag_unknown_warning_option=yes
7187else $as_nop
7188  xorg_cv_cc_flag_unknown_warning_option=no
7189fi
7190rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7191fi
7192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7193printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7194	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7195	CFLAGS="$xorg_testset_save_CFLAGS"
7196fi
7197
7198if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7199	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7200		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7201	fi
7202	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7203	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7204printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7205if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7206then :
7207  printf %s "(cached) " >&6
7208else $as_nop
7209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7210/* end confdefs.h.  */
7211int i;
7212_ACEOF
7213if ac_fn_c_try_compile "$LINENO"
7214then :
7215  xorg_cv_cc_flag_unused_command_line_argument=yes
7216else $as_nop
7217  xorg_cv_cc_flag_unused_command_line_argument=no
7218fi
7219rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7220fi
7221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7222printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7223	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7224	CFLAGS="$xorg_testset_save_CFLAGS"
7225fi
7226
7227found="no"
7228
7229	if test $found = "no" ; then
7230		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7231			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7232		fi
7233
7234		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7235			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7236		fi
7237
7238		CFLAGS="$CFLAGS -Werror=implicit"
7239
7240		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7241printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7242		cacheid=xorg_cv_cc_flag__Werror_implicit
7243		if eval test \${$cacheid+y}
7244then :
7245  printf %s "(cached) " >&6
7246else $as_nop
7247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7248/* end confdefs.h.  */
7249int i;
7250int
7251main (void)
7252{
7253
7254  ;
7255  return 0;
7256}
7257_ACEOF
7258if ac_fn_c_try_link "$LINENO"
7259then :
7260  eval $cacheid=yes
7261else $as_nop
7262  eval $cacheid=no
7263fi
7264rm -f core conftest.err conftest.$ac_objext conftest.beam \
7265    conftest$ac_exeext conftest.$ac_ext
7266fi
7267
7268
7269		CFLAGS="$xorg_testset_save_CFLAGS"
7270
7271		eval supported=\$$cacheid
7272		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7273printf "%s\n" "$supported" >&6; }
7274		if test "$supported" = "yes" ; then
7275			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7276			found="yes"
7277		fi
7278	fi
7279
7280	if test $found = "no" ; then
7281		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7282			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7283		fi
7284
7285		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7286			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7287		fi
7288
7289		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7290
7291		{ 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
7292printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7293		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7294		if eval test \${$cacheid+y}
7295then :
7296  printf %s "(cached) " >&6
7297else $as_nop
7298  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7299/* end confdefs.h.  */
7300int i;
7301int
7302main (void)
7303{
7304
7305  ;
7306  return 0;
7307}
7308_ACEOF
7309if ac_fn_c_try_link "$LINENO"
7310then :
7311  eval $cacheid=yes
7312else $as_nop
7313  eval $cacheid=no
7314fi
7315rm -f core conftest.err conftest.$ac_objext conftest.beam \
7316    conftest$ac_exeext conftest.$ac_ext
7317fi
7318
7319
7320		CFLAGS="$xorg_testset_save_CFLAGS"
7321
7322		eval supported=\$$cacheid
7323		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7324printf "%s\n" "$supported" >&6; }
7325		if test "$supported" = "yes" ; then
7326			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7327			found="yes"
7328		fi
7329	fi
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345xorg_testset_save_CFLAGS="$CFLAGS"
7346
7347if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7348	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7349	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7350printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7351if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7352then :
7353  printf %s "(cached) " >&6
7354else $as_nop
7355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7356/* end confdefs.h.  */
7357int i;
7358_ACEOF
7359if ac_fn_c_try_compile "$LINENO"
7360then :
7361  xorg_cv_cc_flag_unknown_warning_option=yes
7362else $as_nop
7363  xorg_cv_cc_flag_unknown_warning_option=no
7364fi
7365rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7366fi
7367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7368printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7369	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7370	CFLAGS="$xorg_testset_save_CFLAGS"
7371fi
7372
7373if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7374	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7375		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7376	fi
7377	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7378	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7379printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7380if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7381then :
7382  printf %s "(cached) " >&6
7383else $as_nop
7384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7385/* end confdefs.h.  */
7386int i;
7387_ACEOF
7388if ac_fn_c_try_compile "$LINENO"
7389then :
7390  xorg_cv_cc_flag_unused_command_line_argument=yes
7391else $as_nop
7392  xorg_cv_cc_flag_unused_command_line_argument=no
7393fi
7394rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7395fi
7396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7397printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7398	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7399	CFLAGS="$xorg_testset_save_CFLAGS"
7400fi
7401
7402found="no"
7403
7404	if test $found = "no" ; then
7405		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7406			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7407		fi
7408
7409		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7410			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7411		fi
7412
7413		CFLAGS="$CFLAGS -Werror=nonnull"
7414
7415		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7416printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7417		cacheid=xorg_cv_cc_flag__Werror_nonnull
7418		if eval test \${$cacheid+y}
7419then :
7420  printf %s "(cached) " >&6
7421else $as_nop
7422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7423/* end confdefs.h.  */
7424int i;
7425int
7426main (void)
7427{
7428
7429  ;
7430  return 0;
7431}
7432_ACEOF
7433if ac_fn_c_try_link "$LINENO"
7434then :
7435  eval $cacheid=yes
7436else $as_nop
7437  eval $cacheid=no
7438fi
7439rm -f core conftest.err conftest.$ac_objext conftest.beam \
7440    conftest$ac_exeext conftest.$ac_ext
7441fi
7442
7443
7444		CFLAGS="$xorg_testset_save_CFLAGS"
7445
7446		eval supported=\$$cacheid
7447		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7448printf "%s\n" "$supported" >&6; }
7449		if test "$supported" = "yes" ; then
7450			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7451			found="yes"
7452		fi
7453	fi
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469xorg_testset_save_CFLAGS="$CFLAGS"
7470
7471if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7472	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7473	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7474printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7475if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7476then :
7477  printf %s "(cached) " >&6
7478else $as_nop
7479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7480/* end confdefs.h.  */
7481int i;
7482_ACEOF
7483if ac_fn_c_try_compile "$LINENO"
7484then :
7485  xorg_cv_cc_flag_unknown_warning_option=yes
7486else $as_nop
7487  xorg_cv_cc_flag_unknown_warning_option=no
7488fi
7489rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7490fi
7491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7492printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7493	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7494	CFLAGS="$xorg_testset_save_CFLAGS"
7495fi
7496
7497if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7498	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7499		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7500	fi
7501	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7502	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7503printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7504if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7505then :
7506  printf %s "(cached) " >&6
7507else $as_nop
7508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7509/* end confdefs.h.  */
7510int i;
7511_ACEOF
7512if ac_fn_c_try_compile "$LINENO"
7513then :
7514  xorg_cv_cc_flag_unused_command_line_argument=yes
7515else $as_nop
7516  xorg_cv_cc_flag_unused_command_line_argument=no
7517fi
7518rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7519fi
7520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7521printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7522	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7523	CFLAGS="$xorg_testset_save_CFLAGS"
7524fi
7525
7526found="no"
7527
7528	if test $found = "no" ; then
7529		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7530			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7531		fi
7532
7533		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7534			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7535		fi
7536
7537		CFLAGS="$CFLAGS -Werror=init-self"
7538
7539		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7540printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7541		cacheid=xorg_cv_cc_flag__Werror_init_self
7542		if eval test \${$cacheid+y}
7543then :
7544  printf %s "(cached) " >&6
7545else $as_nop
7546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7547/* end confdefs.h.  */
7548int i;
7549int
7550main (void)
7551{
7552
7553  ;
7554  return 0;
7555}
7556_ACEOF
7557if ac_fn_c_try_link "$LINENO"
7558then :
7559  eval $cacheid=yes
7560else $as_nop
7561  eval $cacheid=no
7562fi
7563rm -f core conftest.err conftest.$ac_objext conftest.beam \
7564    conftest$ac_exeext conftest.$ac_ext
7565fi
7566
7567
7568		CFLAGS="$xorg_testset_save_CFLAGS"
7569
7570		eval supported=\$$cacheid
7571		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7572printf "%s\n" "$supported" >&6; }
7573		if test "$supported" = "yes" ; then
7574			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7575			found="yes"
7576		fi
7577	fi
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593xorg_testset_save_CFLAGS="$CFLAGS"
7594
7595if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7596	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7597	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7598printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7599if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7600then :
7601  printf %s "(cached) " >&6
7602else $as_nop
7603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7604/* end confdefs.h.  */
7605int i;
7606_ACEOF
7607if ac_fn_c_try_compile "$LINENO"
7608then :
7609  xorg_cv_cc_flag_unknown_warning_option=yes
7610else $as_nop
7611  xorg_cv_cc_flag_unknown_warning_option=no
7612fi
7613rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7614fi
7615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7616printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7617	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7618	CFLAGS="$xorg_testset_save_CFLAGS"
7619fi
7620
7621if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7622	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7623		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7624	fi
7625	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7626	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7627printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7628if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7629then :
7630  printf %s "(cached) " >&6
7631else $as_nop
7632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7633/* end confdefs.h.  */
7634int i;
7635_ACEOF
7636if ac_fn_c_try_compile "$LINENO"
7637then :
7638  xorg_cv_cc_flag_unused_command_line_argument=yes
7639else $as_nop
7640  xorg_cv_cc_flag_unused_command_line_argument=no
7641fi
7642rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7643fi
7644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7645printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7646	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7647	CFLAGS="$xorg_testset_save_CFLAGS"
7648fi
7649
7650found="no"
7651
7652	if test $found = "no" ; then
7653		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7654			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7655		fi
7656
7657		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7658			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7659		fi
7660
7661		CFLAGS="$CFLAGS -Werror=main"
7662
7663		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7664printf %s "checking if $CC supports -Werror=main... " >&6; }
7665		cacheid=xorg_cv_cc_flag__Werror_main
7666		if eval test \${$cacheid+y}
7667then :
7668  printf %s "(cached) " >&6
7669else $as_nop
7670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7671/* end confdefs.h.  */
7672int i;
7673int
7674main (void)
7675{
7676
7677  ;
7678  return 0;
7679}
7680_ACEOF
7681if ac_fn_c_try_link "$LINENO"
7682then :
7683  eval $cacheid=yes
7684else $as_nop
7685  eval $cacheid=no
7686fi
7687rm -f core conftest.err conftest.$ac_objext conftest.beam \
7688    conftest$ac_exeext conftest.$ac_ext
7689fi
7690
7691
7692		CFLAGS="$xorg_testset_save_CFLAGS"
7693
7694		eval supported=\$$cacheid
7695		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7696printf "%s\n" "$supported" >&6; }
7697		if test "$supported" = "yes" ; then
7698			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7699			found="yes"
7700		fi
7701	fi
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717xorg_testset_save_CFLAGS="$CFLAGS"
7718
7719if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7720	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7721	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7722printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7723if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7724then :
7725  printf %s "(cached) " >&6
7726else $as_nop
7727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7728/* end confdefs.h.  */
7729int i;
7730_ACEOF
7731if ac_fn_c_try_compile "$LINENO"
7732then :
7733  xorg_cv_cc_flag_unknown_warning_option=yes
7734else $as_nop
7735  xorg_cv_cc_flag_unknown_warning_option=no
7736fi
7737rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7738fi
7739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7740printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7741	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7742	CFLAGS="$xorg_testset_save_CFLAGS"
7743fi
7744
7745if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7746	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7747		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7748	fi
7749	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7750	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7751printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7752if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7753then :
7754  printf %s "(cached) " >&6
7755else $as_nop
7756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7757/* end confdefs.h.  */
7758int i;
7759_ACEOF
7760if ac_fn_c_try_compile "$LINENO"
7761then :
7762  xorg_cv_cc_flag_unused_command_line_argument=yes
7763else $as_nop
7764  xorg_cv_cc_flag_unused_command_line_argument=no
7765fi
7766rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7767fi
7768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7769printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7770	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7771	CFLAGS="$xorg_testset_save_CFLAGS"
7772fi
7773
7774found="no"
7775
7776	if test $found = "no" ; then
7777		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7778			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7779		fi
7780
7781		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7782			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7783		fi
7784
7785		CFLAGS="$CFLAGS -Werror=missing-braces"
7786
7787		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7788printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7789		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7790		if eval test \${$cacheid+y}
7791then :
7792  printf %s "(cached) " >&6
7793else $as_nop
7794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7795/* end confdefs.h.  */
7796int i;
7797int
7798main (void)
7799{
7800
7801  ;
7802  return 0;
7803}
7804_ACEOF
7805if ac_fn_c_try_link "$LINENO"
7806then :
7807  eval $cacheid=yes
7808else $as_nop
7809  eval $cacheid=no
7810fi
7811rm -f core conftest.err conftest.$ac_objext conftest.beam \
7812    conftest$ac_exeext conftest.$ac_ext
7813fi
7814
7815
7816		CFLAGS="$xorg_testset_save_CFLAGS"
7817
7818		eval supported=\$$cacheid
7819		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7820printf "%s\n" "$supported" >&6; }
7821		if test "$supported" = "yes" ; then
7822			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7823			found="yes"
7824		fi
7825	fi
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841xorg_testset_save_CFLAGS="$CFLAGS"
7842
7843if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7844	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7845	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7846printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7847if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7848then :
7849  printf %s "(cached) " >&6
7850else $as_nop
7851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7852/* end confdefs.h.  */
7853int i;
7854_ACEOF
7855if ac_fn_c_try_compile "$LINENO"
7856then :
7857  xorg_cv_cc_flag_unknown_warning_option=yes
7858else $as_nop
7859  xorg_cv_cc_flag_unknown_warning_option=no
7860fi
7861rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7862fi
7863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7864printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7865	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7866	CFLAGS="$xorg_testset_save_CFLAGS"
7867fi
7868
7869if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7870	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7871		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7872	fi
7873	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7874	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7875printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7876if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7877then :
7878  printf %s "(cached) " >&6
7879else $as_nop
7880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7881/* end confdefs.h.  */
7882int i;
7883_ACEOF
7884if ac_fn_c_try_compile "$LINENO"
7885then :
7886  xorg_cv_cc_flag_unused_command_line_argument=yes
7887else $as_nop
7888  xorg_cv_cc_flag_unused_command_line_argument=no
7889fi
7890rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7891fi
7892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7893printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7894	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7895	CFLAGS="$xorg_testset_save_CFLAGS"
7896fi
7897
7898found="no"
7899
7900	if test $found = "no" ; then
7901		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7902			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7903		fi
7904
7905		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7906			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7907		fi
7908
7909		CFLAGS="$CFLAGS -Werror=sequence-point"
7910
7911		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7912printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7913		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7914		if eval test \${$cacheid+y}
7915then :
7916  printf %s "(cached) " >&6
7917else $as_nop
7918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7919/* end confdefs.h.  */
7920int i;
7921int
7922main (void)
7923{
7924
7925  ;
7926  return 0;
7927}
7928_ACEOF
7929if ac_fn_c_try_link "$LINENO"
7930then :
7931  eval $cacheid=yes
7932else $as_nop
7933  eval $cacheid=no
7934fi
7935rm -f core conftest.err conftest.$ac_objext conftest.beam \
7936    conftest$ac_exeext conftest.$ac_ext
7937fi
7938
7939
7940		CFLAGS="$xorg_testset_save_CFLAGS"
7941
7942		eval supported=\$$cacheid
7943		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7944printf "%s\n" "$supported" >&6; }
7945		if test "$supported" = "yes" ; then
7946			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7947			found="yes"
7948		fi
7949	fi
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965xorg_testset_save_CFLAGS="$CFLAGS"
7966
7967if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7968	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7969	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7970printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7971if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7972then :
7973  printf %s "(cached) " >&6
7974else $as_nop
7975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7976/* end confdefs.h.  */
7977int i;
7978_ACEOF
7979if ac_fn_c_try_compile "$LINENO"
7980then :
7981  xorg_cv_cc_flag_unknown_warning_option=yes
7982else $as_nop
7983  xorg_cv_cc_flag_unknown_warning_option=no
7984fi
7985rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7986fi
7987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7988printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7989	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7990	CFLAGS="$xorg_testset_save_CFLAGS"
7991fi
7992
7993if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7994	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7995		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7996	fi
7997	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7998	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7999printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8000if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8001then :
8002  printf %s "(cached) " >&6
8003else $as_nop
8004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8005/* end confdefs.h.  */
8006int i;
8007_ACEOF
8008if ac_fn_c_try_compile "$LINENO"
8009then :
8010  xorg_cv_cc_flag_unused_command_line_argument=yes
8011else $as_nop
8012  xorg_cv_cc_flag_unused_command_line_argument=no
8013fi
8014rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8015fi
8016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8017printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8018	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8019	CFLAGS="$xorg_testset_save_CFLAGS"
8020fi
8021
8022found="no"
8023
8024	if test $found = "no" ; then
8025		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8026			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8027		fi
8028
8029		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8030			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8031		fi
8032
8033		CFLAGS="$CFLAGS -Werror=return-type"
8034
8035		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8036printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8037		cacheid=xorg_cv_cc_flag__Werror_return_type
8038		if eval test \${$cacheid+y}
8039then :
8040  printf %s "(cached) " >&6
8041else $as_nop
8042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8043/* end confdefs.h.  */
8044int i;
8045int
8046main (void)
8047{
8048
8049  ;
8050  return 0;
8051}
8052_ACEOF
8053if ac_fn_c_try_link "$LINENO"
8054then :
8055  eval $cacheid=yes
8056else $as_nop
8057  eval $cacheid=no
8058fi
8059rm -f core conftest.err conftest.$ac_objext conftest.beam \
8060    conftest$ac_exeext conftest.$ac_ext
8061fi
8062
8063
8064		CFLAGS="$xorg_testset_save_CFLAGS"
8065
8066		eval supported=\$$cacheid
8067		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8068printf "%s\n" "$supported" >&6; }
8069		if test "$supported" = "yes" ; then
8070			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8071			found="yes"
8072		fi
8073	fi
8074
8075	if test $found = "no" ; then
8076		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8077			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8078		fi
8079
8080		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8081			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8082		fi
8083
8084		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8085
8086		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8087printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8088		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8089		if eval test \${$cacheid+y}
8090then :
8091  printf %s "(cached) " >&6
8092else $as_nop
8093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8094/* end confdefs.h.  */
8095int i;
8096int
8097main (void)
8098{
8099
8100  ;
8101  return 0;
8102}
8103_ACEOF
8104if ac_fn_c_try_link "$LINENO"
8105then :
8106  eval $cacheid=yes
8107else $as_nop
8108  eval $cacheid=no
8109fi
8110rm -f core conftest.err conftest.$ac_objext conftest.beam \
8111    conftest$ac_exeext conftest.$ac_ext
8112fi
8113
8114
8115		CFLAGS="$xorg_testset_save_CFLAGS"
8116
8117		eval supported=\$$cacheid
8118		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8119printf "%s\n" "$supported" >&6; }
8120		if test "$supported" = "yes" ; then
8121			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8122			found="yes"
8123		fi
8124	fi
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140xorg_testset_save_CFLAGS="$CFLAGS"
8141
8142if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8143	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8144	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8145printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8146if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8147then :
8148  printf %s "(cached) " >&6
8149else $as_nop
8150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8151/* end confdefs.h.  */
8152int i;
8153_ACEOF
8154if ac_fn_c_try_compile "$LINENO"
8155then :
8156  xorg_cv_cc_flag_unknown_warning_option=yes
8157else $as_nop
8158  xorg_cv_cc_flag_unknown_warning_option=no
8159fi
8160rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8161fi
8162{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8163printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8164	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8165	CFLAGS="$xorg_testset_save_CFLAGS"
8166fi
8167
8168if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8169	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8170		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8171	fi
8172	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8173	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8174printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8175if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8176then :
8177  printf %s "(cached) " >&6
8178else $as_nop
8179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8180/* end confdefs.h.  */
8181int i;
8182_ACEOF
8183if ac_fn_c_try_compile "$LINENO"
8184then :
8185  xorg_cv_cc_flag_unused_command_line_argument=yes
8186else $as_nop
8187  xorg_cv_cc_flag_unused_command_line_argument=no
8188fi
8189rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8190fi
8191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8192printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8193	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8194	CFLAGS="$xorg_testset_save_CFLAGS"
8195fi
8196
8197found="no"
8198
8199	if test $found = "no" ; then
8200		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8201			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8202		fi
8203
8204		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8205			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8206		fi
8207
8208		CFLAGS="$CFLAGS -Werror=trigraphs"
8209
8210		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8211printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8212		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8213		if eval test \${$cacheid+y}
8214then :
8215  printf %s "(cached) " >&6
8216else $as_nop
8217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8218/* end confdefs.h.  */
8219int i;
8220int
8221main (void)
8222{
8223
8224  ;
8225  return 0;
8226}
8227_ACEOF
8228if ac_fn_c_try_link "$LINENO"
8229then :
8230  eval $cacheid=yes
8231else $as_nop
8232  eval $cacheid=no
8233fi
8234rm -f core conftest.err conftest.$ac_objext conftest.beam \
8235    conftest$ac_exeext conftest.$ac_ext
8236fi
8237
8238
8239		CFLAGS="$xorg_testset_save_CFLAGS"
8240
8241		eval supported=\$$cacheid
8242		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8243printf "%s\n" "$supported" >&6; }
8244		if test "$supported" = "yes" ; then
8245			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8246			found="yes"
8247		fi
8248	fi
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264xorg_testset_save_CFLAGS="$CFLAGS"
8265
8266if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8267	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8268	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8269printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8270if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8271then :
8272  printf %s "(cached) " >&6
8273else $as_nop
8274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8275/* end confdefs.h.  */
8276int i;
8277_ACEOF
8278if ac_fn_c_try_compile "$LINENO"
8279then :
8280  xorg_cv_cc_flag_unknown_warning_option=yes
8281else $as_nop
8282  xorg_cv_cc_flag_unknown_warning_option=no
8283fi
8284rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8285fi
8286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8287printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8288	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8289	CFLAGS="$xorg_testset_save_CFLAGS"
8290fi
8291
8292if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8293	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8294		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8295	fi
8296	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8297	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8298printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8299if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8300then :
8301  printf %s "(cached) " >&6
8302else $as_nop
8303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8304/* end confdefs.h.  */
8305int i;
8306_ACEOF
8307if ac_fn_c_try_compile "$LINENO"
8308then :
8309  xorg_cv_cc_flag_unused_command_line_argument=yes
8310else $as_nop
8311  xorg_cv_cc_flag_unused_command_line_argument=no
8312fi
8313rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8314fi
8315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8316printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8317	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8318	CFLAGS="$xorg_testset_save_CFLAGS"
8319fi
8320
8321found="no"
8322
8323	if test $found = "no" ; then
8324		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8325			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8326		fi
8327
8328		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8329			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8330		fi
8331
8332		CFLAGS="$CFLAGS -Werror=array-bounds"
8333
8334		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8335printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8336		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8337		if eval test \${$cacheid+y}
8338then :
8339  printf %s "(cached) " >&6
8340else $as_nop
8341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8342/* end confdefs.h.  */
8343int i;
8344int
8345main (void)
8346{
8347
8348  ;
8349  return 0;
8350}
8351_ACEOF
8352if ac_fn_c_try_link "$LINENO"
8353then :
8354  eval $cacheid=yes
8355else $as_nop
8356  eval $cacheid=no
8357fi
8358rm -f core conftest.err conftest.$ac_objext conftest.beam \
8359    conftest$ac_exeext conftest.$ac_ext
8360fi
8361
8362
8363		CFLAGS="$xorg_testset_save_CFLAGS"
8364
8365		eval supported=\$$cacheid
8366		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8367printf "%s\n" "$supported" >&6; }
8368		if test "$supported" = "yes" ; then
8369			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8370			found="yes"
8371		fi
8372	fi
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388xorg_testset_save_CFLAGS="$CFLAGS"
8389
8390if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8391	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8392	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8393printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8394if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8395then :
8396  printf %s "(cached) " >&6
8397else $as_nop
8398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8399/* end confdefs.h.  */
8400int i;
8401_ACEOF
8402if ac_fn_c_try_compile "$LINENO"
8403then :
8404  xorg_cv_cc_flag_unknown_warning_option=yes
8405else $as_nop
8406  xorg_cv_cc_flag_unknown_warning_option=no
8407fi
8408rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8409fi
8410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8411printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8412	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8413	CFLAGS="$xorg_testset_save_CFLAGS"
8414fi
8415
8416if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8417	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8418		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8419	fi
8420	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8421	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8422printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8423if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8424then :
8425  printf %s "(cached) " >&6
8426else $as_nop
8427  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8428/* end confdefs.h.  */
8429int i;
8430_ACEOF
8431if ac_fn_c_try_compile "$LINENO"
8432then :
8433  xorg_cv_cc_flag_unused_command_line_argument=yes
8434else $as_nop
8435  xorg_cv_cc_flag_unused_command_line_argument=no
8436fi
8437rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8438fi
8439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8440printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8441	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8442	CFLAGS="$xorg_testset_save_CFLAGS"
8443fi
8444
8445found="no"
8446
8447	if test $found = "no" ; then
8448		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8449			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8450		fi
8451
8452		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8453			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8454		fi
8455
8456		CFLAGS="$CFLAGS -Werror=write-strings"
8457
8458		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8459printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8460		cacheid=xorg_cv_cc_flag__Werror_write_strings
8461		if eval test \${$cacheid+y}
8462then :
8463  printf %s "(cached) " >&6
8464else $as_nop
8465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8466/* end confdefs.h.  */
8467int i;
8468int
8469main (void)
8470{
8471
8472  ;
8473  return 0;
8474}
8475_ACEOF
8476if ac_fn_c_try_link "$LINENO"
8477then :
8478  eval $cacheid=yes
8479else $as_nop
8480  eval $cacheid=no
8481fi
8482rm -f core conftest.err conftest.$ac_objext conftest.beam \
8483    conftest$ac_exeext conftest.$ac_ext
8484fi
8485
8486
8487		CFLAGS="$xorg_testset_save_CFLAGS"
8488
8489		eval supported=\$$cacheid
8490		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8491printf "%s\n" "$supported" >&6; }
8492		if test "$supported" = "yes" ; then
8493			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8494			found="yes"
8495		fi
8496	fi
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512xorg_testset_save_CFLAGS="$CFLAGS"
8513
8514if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8515	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8516	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8517printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8518if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8519then :
8520  printf %s "(cached) " >&6
8521else $as_nop
8522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8523/* end confdefs.h.  */
8524int i;
8525_ACEOF
8526if ac_fn_c_try_compile "$LINENO"
8527then :
8528  xorg_cv_cc_flag_unknown_warning_option=yes
8529else $as_nop
8530  xorg_cv_cc_flag_unknown_warning_option=no
8531fi
8532rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8533fi
8534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8535printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8536	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8537	CFLAGS="$xorg_testset_save_CFLAGS"
8538fi
8539
8540if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8541	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8542		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8543	fi
8544	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8545	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8546printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8547if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8548then :
8549  printf %s "(cached) " >&6
8550else $as_nop
8551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8552/* end confdefs.h.  */
8553int i;
8554_ACEOF
8555if ac_fn_c_try_compile "$LINENO"
8556then :
8557  xorg_cv_cc_flag_unused_command_line_argument=yes
8558else $as_nop
8559  xorg_cv_cc_flag_unused_command_line_argument=no
8560fi
8561rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8562fi
8563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8564printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8565	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8566	CFLAGS="$xorg_testset_save_CFLAGS"
8567fi
8568
8569found="no"
8570
8571	if test $found = "no" ; then
8572		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8573			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8574		fi
8575
8576		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8577			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8578		fi
8579
8580		CFLAGS="$CFLAGS -Werror=address"
8581
8582		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8583printf %s "checking if $CC supports -Werror=address... " >&6; }
8584		cacheid=xorg_cv_cc_flag__Werror_address
8585		if eval test \${$cacheid+y}
8586then :
8587  printf %s "(cached) " >&6
8588else $as_nop
8589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8590/* end confdefs.h.  */
8591int i;
8592int
8593main (void)
8594{
8595
8596  ;
8597  return 0;
8598}
8599_ACEOF
8600if ac_fn_c_try_link "$LINENO"
8601then :
8602  eval $cacheid=yes
8603else $as_nop
8604  eval $cacheid=no
8605fi
8606rm -f core conftest.err conftest.$ac_objext conftest.beam \
8607    conftest$ac_exeext conftest.$ac_ext
8608fi
8609
8610
8611		CFLAGS="$xorg_testset_save_CFLAGS"
8612
8613		eval supported=\$$cacheid
8614		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8615printf "%s\n" "$supported" >&6; }
8616		if test "$supported" = "yes" ; then
8617			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8618			found="yes"
8619		fi
8620	fi
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636xorg_testset_save_CFLAGS="$CFLAGS"
8637
8638if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8639	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8640	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8641printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8642if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8643then :
8644  printf %s "(cached) " >&6
8645else $as_nop
8646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8647/* end confdefs.h.  */
8648int i;
8649_ACEOF
8650if ac_fn_c_try_compile "$LINENO"
8651then :
8652  xorg_cv_cc_flag_unknown_warning_option=yes
8653else $as_nop
8654  xorg_cv_cc_flag_unknown_warning_option=no
8655fi
8656rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8657fi
8658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8659printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8660	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8661	CFLAGS="$xorg_testset_save_CFLAGS"
8662fi
8663
8664if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8665	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8666		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8667	fi
8668	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8669	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8670printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8671if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8672then :
8673  printf %s "(cached) " >&6
8674else $as_nop
8675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8676/* end confdefs.h.  */
8677int i;
8678_ACEOF
8679if ac_fn_c_try_compile "$LINENO"
8680then :
8681  xorg_cv_cc_flag_unused_command_line_argument=yes
8682else $as_nop
8683  xorg_cv_cc_flag_unused_command_line_argument=no
8684fi
8685rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8686fi
8687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8688printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8689	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8690	CFLAGS="$xorg_testset_save_CFLAGS"
8691fi
8692
8693found="no"
8694
8695	if test $found = "no" ; then
8696		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8697			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8698		fi
8699
8700		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8701			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8702		fi
8703
8704		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8705
8706		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8707printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8708		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8709		if eval test \${$cacheid+y}
8710then :
8711  printf %s "(cached) " >&6
8712else $as_nop
8713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8714/* end confdefs.h.  */
8715int i;
8716int
8717main (void)
8718{
8719
8720  ;
8721  return 0;
8722}
8723_ACEOF
8724if ac_fn_c_try_link "$LINENO"
8725then :
8726  eval $cacheid=yes
8727else $as_nop
8728  eval $cacheid=no
8729fi
8730rm -f core conftest.err conftest.$ac_objext conftest.beam \
8731    conftest$ac_exeext conftest.$ac_ext
8732fi
8733
8734
8735		CFLAGS="$xorg_testset_save_CFLAGS"
8736
8737		eval supported=\$$cacheid
8738		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8739printf "%s\n" "$supported" >&6; }
8740		if test "$supported" = "yes" ; then
8741			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8742			found="yes"
8743		fi
8744	fi
8745
8746	if test $found = "no" ; then
8747		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8748			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8749		fi
8750
8751		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8752			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8753		fi
8754
8755		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8756
8757		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8758printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8759		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8760		if eval test \${$cacheid+y}
8761then :
8762  printf %s "(cached) " >&6
8763else $as_nop
8764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8765/* end confdefs.h.  */
8766int i;
8767int
8768main (void)
8769{
8770
8771  ;
8772  return 0;
8773}
8774_ACEOF
8775if ac_fn_c_try_link "$LINENO"
8776then :
8777  eval $cacheid=yes
8778else $as_nop
8779  eval $cacheid=no
8780fi
8781rm -f core conftest.err conftest.$ac_objext conftest.beam \
8782    conftest$ac_exeext conftest.$ac_ext
8783fi
8784
8785
8786		CFLAGS="$xorg_testset_save_CFLAGS"
8787
8788		eval supported=\$$cacheid
8789		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8790printf "%s\n" "$supported" >&6; }
8791		if test "$supported" = "yes" ; then
8792			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8793			found="yes"
8794		fi
8795	fi
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811xorg_testset_save_CFLAGS="$CFLAGS"
8812
8813if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8814	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8815	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8816printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8817if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8818then :
8819  printf %s "(cached) " >&6
8820else $as_nop
8821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8822/* end confdefs.h.  */
8823int i;
8824_ACEOF
8825if ac_fn_c_try_compile "$LINENO"
8826then :
8827  xorg_cv_cc_flag_unknown_warning_option=yes
8828else $as_nop
8829  xorg_cv_cc_flag_unknown_warning_option=no
8830fi
8831rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8832fi
8833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8834printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8835	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8836	CFLAGS="$xorg_testset_save_CFLAGS"
8837fi
8838
8839if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8840	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8841		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8842	fi
8843	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8844	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8845printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8846if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8847then :
8848  printf %s "(cached) " >&6
8849else $as_nop
8850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8851/* end confdefs.h.  */
8852int i;
8853_ACEOF
8854if ac_fn_c_try_compile "$LINENO"
8855then :
8856  xorg_cv_cc_flag_unused_command_line_argument=yes
8857else $as_nop
8858  xorg_cv_cc_flag_unused_command_line_argument=no
8859fi
8860rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8861fi
8862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8863printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8864	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8865	CFLAGS="$xorg_testset_save_CFLAGS"
8866fi
8867
8868found="no"
8869
8870	if test $found = "no" ; then
8871		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8872			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8873		fi
8874
8875		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8876			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8877		fi
8878
8879		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8880
8881		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8882printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8883		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8884		if eval test \${$cacheid+y}
8885then :
8886  printf %s "(cached) " >&6
8887else $as_nop
8888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8889/* end confdefs.h.  */
8890int i;
8891int
8892main (void)
8893{
8894
8895  ;
8896  return 0;
8897}
8898_ACEOF
8899if ac_fn_c_try_link "$LINENO"
8900then :
8901  eval $cacheid=yes
8902else $as_nop
8903  eval $cacheid=no
8904fi
8905rm -f core conftest.err conftest.$ac_objext conftest.beam \
8906    conftest$ac_exeext conftest.$ac_ext
8907fi
8908
8909
8910		CFLAGS="$xorg_testset_save_CFLAGS"
8911
8912		eval supported=\$$cacheid
8913		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8914printf "%s\n" "$supported" >&6; }
8915		if test "$supported" = "yes" ; then
8916			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8917			found="yes"
8918		fi
8919	fi
8920
8921 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8922else
8923{ 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
8924printf "%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;}
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938xorg_testset_save_CFLAGS="$CFLAGS"
8939
8940if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8941	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8942	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8943printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8944if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8945then :
8946  printf %s "(cached) " >&6
8947else $as_nop
8948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8949/* end confdefs.h.  */
8950int i;
8951_ACEOF
8952if ac_fn_c_try_compile "$LINENO"
8953then :
8954  xorg_cv_cc_flag_unknown_warning_option=yes
8955else $as_nop
8956  xorg_cv_cc_flag_unknown_warning_option=no
8957fi
8958rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8959fi
8960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8961printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8962	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8963	CFLAGS="$xorg_testset_save_CFLAGS"
8964fi
8965
8966if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8967	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8968		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8969	fi
8970	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8971	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8972printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8973if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8974then :
8975  printf %s "(cached) " >&6
8976else $as_nop
8977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8978/* end confdefs.h.  */
8979int i;
8980_ACEOF
8981if ac_fn_c_try_compile "$LINENO"
8982then :
8983  xorg_cv_cc_flag_unused_command_line_argument=yes
8984else $as_nop
8985  xorg_cv_cc_flag_unused_command_line_argument=no
8986fi
8987rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8988fi
8989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8990printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8991	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8992	CFLAGS="$xorg_testset_save_CFLAGS"
8993fi
8994
8995found="no"
8996
8997	if test $found = "no" ; then
8998		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8999			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9000		fi
9001
9002		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9003			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9004		fi
9005
9006		CFLAGS="$CFLAGS -Wimplicit"
9007
9008		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9009printf %s "checking if $CC supports -Wimplicit... " >&6; }
9010		cacheid=xorg_cv_cc_flag__Wimplicit
9011		if eval test \${$cacheid+y}
9012then :
9013  printf %s "(cached) " >&6
9014else $as_nop
9015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9016/* end confdefs.h.  */
9017int i;
9018int
9019main (void)
9020{
9021
9022  ;
9023  return 0;
9024}
9025_ACEOF
9026if ac_fn_c_try_link "$LINENO"
9027then :
9028  eval $cacheid=yes
9029else $as_nop
9030  eval $cacheid=no
9031fi
9032rm -f core conftest.err conftest.$ac_objext conftest.beam \
9033    conftest$ac_exeext conftest.$ac_ext
9034fi
9035
9036
9037		CFLAGS="$xorg_testset_save_CFLAGS"
9038
9039		eval supported=\$$cacheid
9040		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9041printf "%s\n" "$supported" >&6; }
9042		if test "$supported" = "yes" ; then
9043			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9044			found="yes"
9045		fi
9046	fi
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062xorg_testset_save_CFLAGS="$CFLAGS"
9063
9064if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9065	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9066	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9067printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9068if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9069then :
9070  printf %s "(cached) " >&6
9071else $as_nop
9072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9073/* end confdefs.h.  */
9074int i;
9075_ACEOF
9076if ac_fn_c_try_compile "$LINENO"
9077then :
9078  xorg_cv_cc_flag_unknown_warning_option=yes
9079else $as_nop
9080  xorg_cv_cc_flag_unknown_warning_option=no
9081fi
9082rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9083fi
9084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9085printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9086	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9087	CFLAGS="$xorg_testset_save_CFLAGS"
9088fi
9089
9090if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9091	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9092		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9093	fi
9094	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9095	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9096printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9097if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9098then :
9099  printf %s "(cached) " >&6
9100else $as_nop
9101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9102/* end confdefs.h.  */
9103int i;
9104_ACEOF
9105if ac_fn_c_try_compile "$LINENO"
9106then :
9107  xorg_cv_cc_flag_unused_command_line_argument=yes
9108else $as_nop
9109  xorg_cv_cc_flag_unused_command_line_argument=no
9110fi
9111rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9112fi
9113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9114printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9115	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9116	CFLAGS="$xorg_testset_save_CFLAGS"
9117fi
9118
9119found="no"
9120
9121	if test $found = "no" ; then
9122		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9123			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9124		fi
9125
9126		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9127			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9128		fi
9129
9130		CFLAGS="$CFLAGS -Wnonnull"
9131
9132		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9133printf %s "checking if $CC supports -Wnonnull... " >&6; }
9134		cacheid=xorg_cv_cc_flag__Wnonnull
9135		if eval test \${$cacheid+y}
9136then :
9137  printf %s "(cached) " >&6
9138else $as_nop
9139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9140/* end confdefs.h.  */
9141int i;
9142int
9143main (void)
9144{
9145
9146  ;
9147  return 0;
9148}
9149_ACEOF
9150if ac_fn_c_try_link "$LINENO"
9151then :
9152  eval $cacheid=yes
9153else $as_nop
9154  eval $cacheid=no
9155fi
9156rm -f core conftest.err conftest.$ac_objext conftest.beam \
9157    conftest$ac_exeext conftest.$ac_ext
9158fi
9159
9160
9161		CFLAGS="$xorg_testset_save_CFLAGS"
9162
9163		eval supported=\$$cacheid
9164		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9165printf "%s\n" "$supported" >&6; }
9166		if test "$supported" = "yes" ; then
9167			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9168			found="yes"
9169		fi
9170	fi
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186xorg_testset_save_CFLAGS="$CFLAGS"
9187
9188if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9189	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9190	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9191printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9192if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9193then :
9194  printf %s "(cached) " >&6
9195else $as_nop
9196  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9197/* end confdefs.h.  */
9198int i;
9199_ACEOF
9200if ac_fn_c_try_compile "$LINENO"
9201then :
9202  xorg_cv_cc_flag_unknown_warning_option=yes
9203else $as_nop
9204  xorg_cv_cc_flag_unknown_warning_option=no
9205fi
9206rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9207fi
9208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9209printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9210	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9211	CFLAGS="$xorg_testset_save_CFLAGS"
9212fi
9213
9214if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9215	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9216		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9217	fi
9218	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9219	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9220printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9221if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9222then :
9223  printf %s "(cached) " >&6
9224else $as_nop
9225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9226/* end confdefs.h.  */
9227int i;
9228_ACEOF
9229if ac_fn_c_try_compile "$LINENO"
9230then :
9231  xorg_cv_cc_flag_unused_command_line_argument=yes
9232else $as_nop
9233  xorg_cv_cc_flag_unused_command_line_argument=no
9234fi
9235rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9236fi
9237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9238printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9239	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9240	CFLAGS="$xorg_testset_save_CFLAGS"
9241fi
9242
9243found="no"
9244
9245	if test $found = "no" ; then
9246		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9247			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9248		fi
9249
9250		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9251			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9252		fi
9253
9254		CFLAGS="$CFLAGS -Winit-self"
9255
9256		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9257printf %s "checking if $CC supports -Winit-self... " >&6; }
9258		cacheid=xorg_cv_cc_flag__Winit_self
9259		if eval test \${$cacheid+y}
9260then :
9261  printf %s "(cached) " >&6
9262else $as_nop
9263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9264/* end confdefs.h.  */
9265int i;
9266int
9267main (void)
9268{
9269
9270  ;
9271  return 0;
9272}
9273_ACEOF
9274if ac_fn_c_try_link "$LINENO"
9275then :
9276  eval $cacheid=yes
9277else $as_nop
9278  eval $cacheid=no
9279fi
9280rm -f core conftest.err conftest.$ac_objext conftest.beam \
9281    conftest$ac_exeext conftest.$ac_ext
9282fi
9283
9284
9285		CFLAGS="$xorg_testset_save_CFLAGS"
9286
9287		eval supported=\$$cacheid
9288		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9289printf "%s\n" "$supported" >&6; }
9290		if test "$supported" = "yes" ; then
9291			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9292			found="yes"
9293		fi
9294	fi
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310xorg_testset_save_CFLAGS="$CFLAGS"
9311
9312if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9313	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9314	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9315printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9316if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9317then :
9318  printf %s "(cached) " >&6
9319else $as_nop
9320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9321/* end confdefs.h.  */
9322int i;
9323_ACEOF
9324if ac_fn_c_try_compile "$LINENO"
9325then :
9326  xorg_cv_cc_flag_unknown_warning_option=yes
9327else $as_nop
9328  xorg_cv_cc_flag_unknown_warning_option=no
9329fi
9330rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9331fi
9332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9333printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9334	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9335	CFLAGS="$xorg_testset_save_CFLAGS"
9336fi
9337
9338if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9339	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9340		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9341	fi
9342	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9343	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9344printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9345if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9346then :
9347  printf %s "(cached) " >&6
9348else $as_nop
9349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9350/* end confdefs.h.  */
9351int i;
9352_ACEOF
9353if ac_fn_c_try_compile "$LINENO"
9354then :
9355  xorg_cv_cc_flag_unused_command_line_argument=yes
9356else $as_nop
9357  xorg_cv_cc_flag_unused_command_line_argument=no
9358fi
9359rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9360fi
9361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9362printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9363	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9364	CFLAGS="$xorg_testset_save_CFLAGS"
9365fi
9366
9367found="no"
9368
9369	if test $found = "no" ; then
9370		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9371			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9372		fi
9373
9374		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9375			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9376		fi
9377
9378		CFLAGS="$CFLAGS -Wmain"
9379
9380		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9381printf %s "checking if $CC supports -Wmain... " >&6; }
9382		cacheid=xorg_cv_cc_flag__Wmain
9383		if eval test \${$cacheid+y}
9384then :
9385  printf %s "(cached) " >&6
9386else $as_nop
9387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9388/* end confdefs.h.  */
9389int i;
9390int
9391main (void)
9392{
9393
9394  ;
9395  return 0;
9396}
9397_ACEOF
9398if ac_fn_c_try_link "$LINENO"
9399then :
9400  eval $cacheid=yes
9401else $as_nop
9402  eval $cacheid=no
9403fi
9404rm -f core conftest.err conftest.$ac_objext conftest.beam \
9405    conftest$ac_exeext conftest.$ac_ext
9406fi
9407
9408
9409		CFLAGS="$xorg_testset_save_CFLAGS"
9410
9411		eval supported=\$$cacheid
9412		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9413printf "%s\n" "$supported" >&6; }
9414		if test "$supported" = "yes" ; then
9415			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9416			found="yes"
9417		fi
9418	fi
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434xorg_testset_save_CFLAGS="$CFLAGS"
9435
9436if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9437	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9438	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9439printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9440if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9441then :
9442  printf %s "(cached) " >&6
9443else $as_nop
9444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9445/* end confdefs.h.  */
9446int i;
9447_ACEOF
9448if ac_fn_c_try_compile "$LINENO"
9449then :
9450  xorg_cv_cc_flag_unknown_warning_option=yes
9451else $as_nop
9452  xorg_cv_cc_flag_unknown_warning_option=no
9453fi
9454rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9455fi
9456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9457printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9458	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9459	CFLAGS="$xorg_testset_save_CFLAGS"
9460fi
9461
9462if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9463	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9464		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9465	fi
9466	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9467	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9468printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9469if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9470then :
9471  printf %s "(cached) " >&6
9472else $as_nop
9473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9474/* end confdefs.h.  */
9475int i;
9476_ACEOF
9477if ac_fn_c_try_compile "$LINENO"
9478then :
9479  xorg_cv_cc_flag_unused_command_line_argument=yes
9480else $as_nop
9481  xorg_cv_cc_flag_unused_command_line_argument=no
9482fi
9483rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9484fi
9485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9486printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9487	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9488	CFLAGS="$xorg_testset_save_CFLAGS"
9489fi
9490
9491found="no"
9492
9493	if test $found = "no" ; then
9494		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9495			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9496		fi
9497
9498		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9499			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9500		fi
9501
9502		CFLAGS="$CFLAGS -Wmissing-braces"
9503
9504		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9505printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9506		cacheid=xorg_cv_cc_flag__Wmissing_braces
9507		if eval test \${$cacheid+y}
9508then :
9509  printf %s "(cached) " >&6
9510else $as_nop
9511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9512/* end confdefs.h.  */
9513int i;
9514int
9515main (void)
9516{
9517
9518  ;
9519  return 0;
9520}
9521_ACEOF
9522if ac_fn_c_try_link "$LINENO"
9523then :
9524  eval $cacheid=yes
9525else $as_nop
9526  eval $cacheid=no
9527fi
9528rm -f core conftest.err conftest.$ac_objext conftest.beam \
9529    conftest$ac_exeext conftest.$ac_ext
9530fi
9531
9532
9533		CFLAGS="$xorg_testset_save_CFLAGS"
9534
9535		eval supported=\$$cacheid
9536		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9537printf "%s\n" "$supported" >&6; }
9538		if test "$supported" = "yes" ; then
9539			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9540			found="yes"
9541		fi
9542	fi
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558xorg_testset_save_CFLAGS="$CFLAGS"
9559
9560if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9561	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9562	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9563printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9564if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9565then :
9566  printf %s "(cached) " >&6
9567else $as_nop
9568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9569/* end confdefs.h.  */
9570int i;
9571_ACEOF
9572if ac_fn_c_try_compile "$LINENO"
9573then :
9574  xorg_cv_cc_flag_unknown_warning_option=yes
9575else $as_nop
9576  xorg_cv_cc_flag_unknown_warning_option=no
9577fi
9578rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9579fi
9580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9581printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9582	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9583	CFLAGS="$xorg_testset_save_CFLAGS"
9584fi
9585
9586if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9587	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9588		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9589	fi
9590	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9591	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9592printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9593if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9594then :
9595  printf %s "(cached) " >&6
9596else $as_nop
9597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9598/* end confdefs.h.  */
9599int i;
9600_ACEOF
9601if ac_fn_c_try_compile "$LINENO"
9602then :
9603  xorg_cv_cc_flag_unused_command_line_argument=yes
9604else $as_nop
9605  xorg_cv_cc_flag_unused_command_line_argument=no
9606fi
9607rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9608fi
9609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9610printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9611	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9612	CFLAGS="$xorg_testset_save_CFLAGS"
9613fi
9614
9615found="no"
9616
9617	if test $found = "no" ; then
9618		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9619			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9620		fi
9621
9622		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9623			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9624		fi
9625
9626		CFLAGS="$CFLAGS -Wsequence-point"
9627
9628		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9629printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9630		cacheid=xorg_cv_cc_flag__Wsequence_point
9631		if eval test \${$cacheid+y}
9632then :
9633  printf %s "(cached) " >&6
9634else $as_nop
9635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9636/* end confdefs.h.  */
9637int i;
9638int
9639main (void)
9640{
9641
9642  ;
9643  return 0;
9644}
9645_ACEOF
9646if ac_fn_c_try_link "$LINENO"
9647then :
9648  eval $cacheid=yes
9649else $as_nop
9650  eval $cacheid=no
9651fi
9652rm -f core conftest.err conftest.$ac_objext conftest.beam \
9653    conftest$ac_exeext conftest.$ac_ext
9654fi
9655
9656
9657		CFLAGS="$xorg_testset_save_CFLAGS"
9658
9659		eval supported=\$$cacheid
9660		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9661printf "%s\n" "$supported" >&6; }
9662		if test "$supported" = "yes" ; then
9663			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9664			found="yes"
9665		fi
9666	fi
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682xorg_testset_save_CFLAGS="$CFLAGS"
9683
9684if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9685	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9686	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9687printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9688if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9689then :
9690  printf %s "(cached) " >&6
9691else $as_nop
9692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9693/* end confdefs.h.  */
9694int i;
9695_ACEOF
9696if ac_fn_c_try_compile "$LINENO"
9697then :
9698  xorg_cv_cc_flag_unknown_warning_option=yes
9699else $as_nop
9700  xorg_cv_cc_flag_unknown_warning_option=no
9701fi
9702rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9703fi
9704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9705printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9706	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9707	CFLAGS="$xorg_testset_save_CFLAGS"
9708fi
9709
9710if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9711	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9712		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9713	fi
9714	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9715	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9716printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9717if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9718then :
9719  printf %s "(cached) " >&6
9720else $as_nop
9721  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9722/* end confdefs.h.  */
9723int i;
9724_ACEOF
9725if ac_fn_c_try_compile "$LINENO"
9726then :
9727  xorg_cv_cc_flag_unused_command_line_argument=yes
9728else $as_nop
9729  xorg_cv_cc_flag_unused_command_line_argument=no
9730fi
9731rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9732fi
9733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9734printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9735	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9736	CFLAGS="$xorg_testset_save_CFLAGS"
9737fi
9738
9739found="no"
9740
9741	if test $found = "no" ; then
9742		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9743			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9744		fi
9745
9746		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9747			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9748		fi
9749
9750		CFLAGS="$CFLAGS -Wreturn-type"
9751
9752		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9753printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9754		cacheid=xorg_cv_cc_flag__Wreturn_type
9755		if eval test \${$cacheid+y}
9756then :
9757  printf %s "(cached) " >&6
9758else $as_nop
9759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9760/* end confdefs.h.  */
9761int i;
9762int
9763main (void)
9764{
9765
9766  ;
9767  return 0;
9768}
9769_ACEOF
9770if ac_fn_c_try_link "$LINENO"
9771then :
9772  eval $cacheid=yes
9773else $as_nop
9774  eval $cacheid=no
9775fi
9776rm -f core conftest.err conftest.$ac_objext conftest.beam \
9777    conftest$ac_exeext conftest.$ac_ext
9778fi
9779
9780
9781		CFLAGS="$xorg_testset_save_CFLAGS"
9782
9783		eval supported=\$$cacheid
9784		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9785printf "%s\n" "$supported" >&6; }
9786		if test "$supported" = "yes" ; then
9787			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9788			found="yes"
9789		fi
9790	fi
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806xorg_testset_save_CFLAGS="$CFLAGS"
9807
9808if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9809	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9810	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9811printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9812if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9813then :
9814  printf %s "(cached) " >&6
9815else $as_nop
9816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9817/* end confdefs.h.  */
9818int i;
9819_ACEOF
9820if ac_fn_c_try_compile "$LINENO"
9821then :
9822  xorg_cv_cc_flag_unknown_warning_option=yes
9823else $as_nop
9824  xorg_cv_cc_flag_unknown_warning_option=no
9825fi
9826rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9827fi
9828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9829printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9830	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9831	CFLAGS="$xorg_testset_save_CFLAGS"
9832fi
9833
9834if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9835	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9836		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9837	fi
9838	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9839	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9840printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9841if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9842then :
9843  printf %s "(cached) " >&6
9844else $as_nop
9845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9846/* end confdefs.h.  */
9847int i;
9848_ACEOF
9849if ac_fn_c_try_compile "$LINENO"
9850then :
9851  xorg_cv_cc_flag_unused_command_line_argument=yes
9852else $as_nop
9853  xorg_cv_cc_flag_unused_command_line_argument=no
9854fi
9855rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9856fi
9857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9858printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9859	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9860	CFLAGS="$xorg_testset_save_CFLAGS"
9861fi
9862
9863found="no"
9864
9865	if test $found = "no" ; then
9866		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9867			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9868		fi
9869
9870		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9871			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9872		fi
9873
9874		CFLAGS="$CFLAGS -Wtrigraphs"
9875
9876		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9877printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9878		cacheid=xorg_cv_cc_flag__Wtrigraphs
9879		if eval test \${$cacheid+y}
9880then :
9881  printf %s "(cached) " >&6
9882else $as_nop
9883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9884/* end confdefs.h.  */
9885int i;
9886int
9887main (void)
9888{
9889
9890  ;
9891  return 0;
9892}
9893_ACEOF
9894if ac_fn_c_try_link "$LINENO"
9895then :
9896  eval $cacheid=yes
9897else $as_nop
9898  eval $cacheid=no
9899fi
9900rm -f core conftest.err conftest.$ac_objext conftest.beam \
9901    conftest$ac_exeext conftest.$ac_ext
9902fi
9903
9904
9905		CFLAGS="$xorg_testset_save_CFLAGS"
9906
9907		eval supported=\$$cacheid
9908		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9909printf "%s\n" "$supported" >&6; }
9910		if test "$supported" = "yes" ; then
9911			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9912			found="yes"
9913		fi
9914	fi
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930xorg_testset_save_CFLAGS="$CFLAGS"
9931
9932if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9933	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9934	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9935printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9936if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9937then :
9938  printf %s "(cached) " >&6
9939else $as_nop
9940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9941/* end confdefs.h.  */
9942int i;
9943_ACEOF
9944if ac_fn_c_try_compile "$LINENO"
9945then :
9946  xorg_cv_cc_flag_unknown_warning_option=yes
9947else $as_nop
9948  xorg_cv_cc_flag_unknown_warning_option=no
9949fi
9950rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9951fi
9952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9953printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9954	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9955	CFLAGS="$xorg_testset_save_CFLAGS"
9956fi
9957
9958if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9959	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9960		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9961	fi
9962	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9963	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9964printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9965if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9966then :
9967  printf %s "(cached) " >&6
9968else $as_nop
9969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9970/* end confdefs.h.  */
9971int i;
9972_ACEOF
9973if ac_fn_c_try_compile "$LINENO"
9974then :
9975  xorg_cv_cc_flag_unused_command_line_argument=yes
9976else $as_nop
9977  xorg_cv_cc_flag_unused_command_line_argument=no
9978fi
9979rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9980fi
9981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9982printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9983	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9984	CFLAGS="$xorg_testset_save_CFLAGS"
9985fi
9986
9987found="no"
9988
9989	if test $found = "no" ; then
9990		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9991			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9992		fi
9993
9994		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9995			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9996		fi
9997
9998		CFLAGS="$CFLAGS -Warray-bounds"
9999
10000		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10001printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10002		cacheid=xorg_cv_cc_flag__Warray_bounds
10003		if eval test \${$cacheid+y}
10004then :
10005  printf %s "(cached) " >&6
10006else $as_nop
10007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10008/* end confdefs.h.  */
10009int i;
10010int
10011main (void)
10012{
10013
10014  ;
10015  return 0;
10016}
10017_ACEOF
10018if ac_fn_c_try_link "$LINENO"
10019then :
10020  eval $cacheid=yes
10021else $as_nop
10022  eval $cacheid=no
10023fi
10024rm -f core conftest.err conftest.$ac_objext conftest.beam \
10025    conftest$ac_exeext conftest.$ac_ext
10026fi
10027
10028
10029		CFLAGS="$xorg_testset_save_CFLAGS"
10030
10031		eval supported=\$$cacheid
10032		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10033printf "%s\n" "$supported" >&6; }
10034		if test "$supported" = "yes" ; then
10035			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10036			found="yes"
10037		fi
10038	fi
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054xorg_testset_save_CFLAGS="$CFLAGS"
10055
10056if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10057	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10058	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10059printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10060if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10061then :
10062  printf %s "(cached) " >&6
10063else $as_nop
10064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10065/* end confdefs.h.  */
10066int i;
10067_ACEOF
10068if ac_fn_c_try_compile "$LINENO"
10069then :
10070  xorg_cv_cc_flag_unknown_warning_option=yes
10071else $as_nop
10072  xorg_cv_cc_flag_unknown_warning_option=no
10073fi
10074rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10075fi
10076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10077printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10078	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10079	CFLAGS="$xorg_testset_save_CFLAGS"
10080fi
10081
10082if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10083	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10084		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10085	fi
10086	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10087	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10088printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10089if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10090then :
10091  printf %s "(cached) " >&6
10092else $as_nop
10093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10094/* end confdefs.h.  */
10095int i;
10096_ACEOF
10097if ac_fn_c_try_compile "$LINENO"
10098then :
10099  xorg_cv_cc_flag_unused_command_line_argument=yes
10100else $as_nop
10101  xorg_cv_cc_flag_unused_command_line_argument=no
10102fi
10103rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10104fi
10105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10106printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10107	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10108	CFLAGS="$xorg_testset_save_CFLAGS"
10109fi
10110
10111found="no"
10112
10113	if test $found = "no" ; then
10114		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10115			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10116		fi
10117
10118		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10119			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10120		fi
10121
10122		CFLAGS="$CFLAGS -Wwrite-strings"
10123
10124		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10125printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10126		cacheid=xorg_cv_cc_flag__Wwrite_strings
10127		if eval test \${$cacheid+y}
10128then :
10129  printf %s "(cached) " >&6
10130else $as_nop
10131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10132/* end confdefs.h.  */
10133int i;
10134int
10135main (void)
10136{
10137
10138  ;
10139  return 0;
10140}
10141_ACEOF
10142if ac_fn_c_try_link "$LINENO"
10143then :
10144  eval $cacheid=yes
10145else $as_nop
10146  eval $cacheid=no
10147fi
10148rm -f core conftest.err conftest.$ac_objext conftest.beam \
10149    conftest$ac_exeext conftest.$ac_ext
10150fi
10151
10152
10153		CFLAGS="$xorg_testset_save_CFLAGS"
10154
10155		eval supported=\$$cacheid
10156		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10157printf "%s\n" "$supported" >&6; }
10158		if test "$supported" = "yes" ; then
10159			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10160			found="yes"
10161		fi
10162	fi
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178xorg_testset_save_CFLAGS="$CFLAGS"
10179
10180if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10181	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10182	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10183printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10184if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10185then :
10186  printf %s "(cached) " >&6
10187else $as_nop
10188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10189/* end confdefs.h.  */
10190int i;
10191_ACEOF
10192if ac_fn_c_try_compile "$LINENO"
10193then :
10194  xorg_cv_cc_flag_unknown_warning_option=yes
10195else $as_nop
10196  xorg_cv_cc_flag_unknown_warning_option=no
10197fi
10198rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10199fi
10200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10201printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10202	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10203	CFLAGS="$xorg_testset_save_CFLAGS"
10204fi
10205
10206if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10207	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10208		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10209	fi
10210	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10211	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10212printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10213if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10214then :
10215  printf %s "(cached) " >&6
10216else $as_nop
10217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10218/* end confdefs.h.  */
10219int i;
10220_ACEOF
10221if ac_fn_c_try_compile "$LINENO"
10222then :
10223  xorg_cv_cc_flag_unused_command_line_argument=yes
10224else $as_nop
10225  xorg_cv_cc_flag_unused_command_line_argument=no
10226fi
10227rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10228fi
10229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10230printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10231	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10232	CFLAGS="$xorg_testset_save_CFLAGS"
10233fi
10234
10235found="no"
10236
10237	if test $found = "no" ; then
10238		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10239			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10240		fi
10241
10242		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10243			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10244		fi
10245
10246		CFLAGS="$CFLAGS -Waddress"
10247
10248		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10249printf %s "checking if $CC supports -Waddress... " >&6; }
10250		cacheid=xorg_cv_cc_flag__Waddress
10251		if eval test \${$cacheid+y}
10252then :
10253  printf %s "(cached) " >&6
10254else $as_nop
10255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10256/* end confdefs.h.  */
10257int i;
10258int
10259main (void)
10260{
10261
10262  ;
10263  return 0;
10264}
10265_ACEOF
10266if ac_fn_c_try_link "$LINENO"
10267then :
10268  eval $cacheid=yes
10269else $as_nop
10270  eval $cacheid=no
10271fi
10272rm -f core conftest.err conftest.$ac_objext conftest.beam \
10273    conftest$ac_exeext conftest.$ac_ext
10274fi
10275
10276
10277		CFLAGS="$xorg_testset_save_CFLAGS"
10278
10279		eval supported=\$$cacheid
10280		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10281printf "%s\n" "$supported" >&6; }
10282		if test "$supported" = "yes" ; then
10283			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10284			found="yes"
10285		fi
10286	fi
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302xorg_testset_save_CFLAGS="$CFLAGS"
10303
10304if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10305	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10306	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10307printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10308if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10309then :
10310  printf %s "(cached) " >&6
10311else $as_nop
10312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10313/* end confdefs.h.  */
10314int i;
10315_ACEOF
10316if ac_fn_c_try_compile "$LINENO"
10317then :
10318  xorg_cv_cc_flag_unknown_warning_option=yes
10319else $as_nop
10320  xorg_cv_cc_flag_unknown_warning_option=no
10321fi
10322rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10323fi
10324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10325printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10326	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10327	CFLAGS="$xorg_testset_save_CFLAGS"
10328fi
10329
10330if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10331	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10332		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10333	fi
10334	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10335	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10336printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10337if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10338then :
10339  printf %s "(cached) " >&6
10340else $as_nop
10341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10342/* end confdefs.h.  */
10343int i;
10344_ACEOF
10345if ac_fn_c_try_compile "$LINENO"
10346then :
10347  xorg_cv_cc_flag_unused_command_line_argument=yes
10348else $as_nop
10349  xorg_cv_cc_flag_unused_command_line_argument=no
10350fi
10351rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10352fi
10353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10354printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10355	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10356	CFLAGS="$xorg_testset_save_CFLAGS"
10357fi
10358
10359found="no"
10360
10361	if test $found = "no" ; then
10362		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10363			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10364		fi
10365
10366		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10367			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10368		fi
10369
10370		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10371
10372		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10373printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10374		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10375		if eval test \${$cacheid+y}
10376then :
10377  printf %s "(cached) " >&6
10378else $as_nop
10379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10380/* end confdefs.h.  */
10381int i;
10382int
10383main (void)
10384{
10385
10386  ;
10387  return 0;
10388}
10389_ACEOF
10390if ac_fn_c_try_link "$LINENO"
10391then :
10392  eval $cacheid=yes
10393else $as_nop
10394  eval $cacheid=no
10395fi
10396rm -f core conftest.err conftest.$ac_objext conftest.beam \
10397    conftest$ac_exeext conftest.$ac_ext
10398fi
10399
10400
10401		CFLAGS="$xorg_testset_save_CFLAGS"
10402
10403		eval supported=\$$cacheid
10404		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10405printf "%s\n" "$supported" >&6; }
10406		if test "$supported" = "yes" ; then
10407			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10408			found="yes"
10409		fi
10410	fi
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426xorg_testset_save_CFLAGS="$CFLAGS"
10427
10428if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10429	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10430	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10431printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10432if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10433then :
10434  printf %s "(cached) " >&6
10435else $as_nop
10436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10437/* end confdefs.h.  */
10438int i;
10439_ACEOF
10440if ac_fn_c_try_compile "$LINENO"
10441then :
10442  xorg_cv_cc_flag_unknown_warning_option=yes
10443else $as_nop
10444  xorg_cv_cc_flag_unknown_warning_option=no
10445fi
10446rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10447fi
10448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10449printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10450	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10451	CFLAGS="$xorg_testset_save_CFLAGS"
10452fi
10453
10454if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10455	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10456		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10457	fi
10458	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10459	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10460printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10461if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10462then :
10463  printf %s "(cached) " >&6
10464else $as_nop
10465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10466/* end confdefs.h.  */
10467int i;
10468_ACEOF
10469if ac_fn_c_try_compile "$LINENO"
10470then :
10471  xorg_cv_cc_flag_unused_command_line_argument=yes
10472else $as_nop
10473  xorg_cv_cc_flag_unused_command_line_argument=no
10474fi
10475rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10476fi
10477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10478printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10479	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10480	CFLAGS="$xorg_testset_save_CFLAGS"
10481fi
10482
10483found="no"
10484
10485	if test $found = "no" ; then
10486		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10487			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10488		fi
10489
10490		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10491			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10492		fi
10493
10494		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10495
10496		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10497printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10498		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10499		if eval test \${$cacheid+y}
10500then :
10501  printf %s "(cached) " >&6
10502else $as_nop
10503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10504/* end confdefs.h.  */
10505int i;
10506int
10507main (void)
10508{
10509
10510  ;
10511  return 0;
10512}
10513_ACEOF
10514if ac_fn_c_try_link "$LINENO"
10515then :
10516  eval $cacheid=yes
10517else $as_nop
10518  eval $cacheid=no
10519fi
10520rm -f core conftest.err conftest.$ac_objext conftest.beam \
10521    conftest$ac_exeext conftest.$ac_ext
10522fi
10523
10524
10525		CFLAGS="$xorg_testset_save_CFLAGS"
10526
10527		eval supported=\$$cacheid
10528		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10529printf "%s\n" "$supported" >&6; }
10530		if test "$supported" = "yes" ; then
10531			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10532			found="yes"
10533		fi
10534	fi
10535
10536
10537fi
10538
10539
10540
10541
10542
10543
10544
10545		CWARNFLAGS="$BASE_CFLAGS"
10546		if  test "x$GCC" = xyes ; then
10547		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10548		fi
10549
10550
10551
10552
10553
10554
10555
10556
10557# Check whether --enable-strict-compilation was given.
10558if test ${enable_strict_compilation+y}
10559then :
10560  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10561else $as_nop
10562  STRICT_COMPILE=no
10563fi
10564
10565
10566
10567
10568
10569
10570STRICT_CFLAGS=""
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584xorg_testset_save_CFLAGS="$CFLAGS"
10585
10586if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10587	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10588	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10589printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10590if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10591then :
10592  printf %s "(cached) " >&6
10593else $as_nop
10594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10595/* end confdefs.h.  */
10596int i;
10597_ACEOF
10598if ac_fn_c_try_compile "$LINENO"
10599then :
10600  xorg_cv_cc_flag_unknown_warning_option=yes
10601else $as_nop
10602  xorg_cv_cc_flag_unknown_warning_option=no
10603fi
10604rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10605fi
10606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10607printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10608	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10609	CFLAGS="$xorg_testset_save_CFLAGS"
10610fi
10611
10612if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10613	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10614		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10615	fi
10616	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10617	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10618printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10619if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10620then :
10621  printf %s "(cached) " >&6
10622else $as_nop
10623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10624/* end confdefs.h.  */
10625int i;
10626_ACEOF
10627if ac_fn_c_try_compile "$LINENO"
10628then :
10629  xorg_cv_cc_flag_unused_command_line_argument=yes
10630else $as_nop
10631  xorg_cv_cc_flag_unused_command_line_argument=no
10632fi
10633rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10634fi
10635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10636printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10637	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10638	CFLAGS="$xorg_testset_save_CFLAGS"
10639fi
10640
10641found="no"
10642
10643	if test $found = "no" ; then
10644		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10645			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10646		fi
10647
10648		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10649			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10650		fi
10651
10652		CFLAGS="$CFLAGS -pedantic"
10653
10654		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10655printf %s "checking if $CC supports -pedantic... " >&6; }
10656		cacheid=xorg_cv_cc_flag__pedantic
10657		if eval test \${$cacheid+y}
10658then :
10659  printf %s "(cached) " >&6
10660else $as_nop
10661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10662/* end confdefs.h.  */
10663int i;
10664int
10665main (void)
10666{
10667
10668  ;
10669  return 0;
10670}
10671_ACEOF
10672if ac_fn_c_try_link "$LINENO"
10673then :
10674  eval $cacheid=yes
10675else $as_nop
10676  eval $cacheid=no
10677fi
10678rm -f core conftest.err conftest.$ac_objext conftest.beam \
10679    conftest$ac_exeext conftest.$ac_ext
10680fi
10681
10682
10683		CFLAGS="$xorg_testset_save_CFLAGS"
10684
10685		eval supported=\$$cacheid
10686		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10687printf "%s\n" "$supported" >&6; }
10688		if test "$supported" = "yes" ; then
10689			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10690			found="yes"
10691		fi
10692	fi
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708xorg_testset_save_CFLAGS="$CFLAGS"
10709
10710if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10711	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10712	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10713printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10714if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10715then :
10716  printf %s "(cached) " >&6
10717else $as_nop
10718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10719/* end confdefs.h.  */
10720int i;
10721_ACEOF
10722if ac_fn_c_try_compile "$LINENO"
10723then :
10724  xorg_cv_cc_flag_unknown_warning_option=yes
10725else $as_nop
10726  xorg_cv_cc_flag_unknown_warning_option=no
10727fi
10728rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10729fi
10730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10731printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10732	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10733	CFLAGS="$xorg_testset_save_CFLAGS"
10734fi
10735
10736if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10737	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10738		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10739	fi
10740	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10741	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10742printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10743if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10744then :
10745  printf %s "(cached) " >&6
10746else $as_nop
10747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10748/* end confdefs.h.  */
10749int i;
10750_ACEOF
10751if ac_fn_c_try_compile "$LINENO"
10752then :
10753  xorg_cv_cc_flag_unused_command_line_argument=yes
10754else $as_nop
10755  xorg_cv_cc_flag_unused_command_line_argument=no
10756fi
10757rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10758fi
10759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10760printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10761	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10762	CFLAGS="$xorg_testset_save_CFLAGS"
10763fi
10764
10765found="no"
10766
10767	if test $found = "no" ; then
10768		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10769			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10770		fi
10771
10772		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10773			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10774		fi
10775
10776		CFLAGS="$CFLAGS -Werror"
10777
10778		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10779printf %s "checking if $CC supports -Werror... " >&6; }
10780		cacheid=xorg_cv_cc_flag__Werror
10781		if eval test \${$cacheid+y}
10782then :
10783  printf %s "(cached) " >&6
10784else $as_nop
10785  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10786/* end confdefs.h.  */
10787int i;
10788int
10789main (void)
10790{
10791
10792  ;
10793  return 0;
10794}
10795_ACEOF
10796if ac_fn_c_try_link "$LINENO"
10797then :
10798  eval $cacheid=yes
10799else $as_nop
10800  eval $cacheid=no
10801fi
10802rm -f core conftest.err conftest.$ac_objext conftest.beam \
10803    conftest$ac_exeext conftest.$ac_ext
10804fi
10805
10806
10807		CFLAGS="$xorg_testset_save_CFLAGS"
10808
10809		eval supported=\$$cacheid
10810		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10811printf "%s\n" "$supported" >&6; }
10812		if test "$supported" = "yes" ; then
10813			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10814			found="yes"
10815		fi
10816	fi
10817
10818	if test $found = "no" ; then
10819		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10820			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10821		fi
10822
10823		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10824			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10825		fi
10826
10827		CFLAGS="$CFLAGS -errwarn"
10828
10829		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10830printf %s "checking if $CC supports -errwarn... " >&6; }
10831		cacheid=xorg_cv_cc_flag__errwarn
10832		if eval test \${$cacheid+y}
10833then :
10834  printf %s "(cached) " >&6
10835else $as_nop
10836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10837/* end confdefs.h.  */
10838int i;
10839int
10840main (void)
10841{
10842
10843  ;
10844  return 0;
10845}
10846_ACEOF
10847if ac_fn_c_try_link "$LINENO"
10848then :
10849  eval $cacheid=yes
10850else $as_nop
10851  eval $cacheid=no
10852fi
10853rm -f core conftest.err conftest.$ac_objext conftest.beam \
10854    conftest$ac_exeext conftest.$ac_ext
10855fi
10856
10857
10858		CFLAGS="$xorg_testset_save_CFLAGS"
10859
10860		eval supported=\$$cacheid
10861		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10862printf "%s\n" "$supported" >&6; }
10863		if test "$supported" = "yes" ; then
10864			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10865			found="yes"
10866		fi
10867	fi
10868
10869
10870
10871# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10872# activate it with -Werror, so we add it here explicitly.
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886xorg_testset_save_CFLAGS="$CFLAGS"
10887
10888if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10889	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10890	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10891printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10892if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10893then :
10894  printf %s "(cached) " >&6
10895else $as_nop
10896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10897/* end confdefs.h.  */
10898int i;
10899_ACEOF
10900if ac_fn_c_try_compile "$LINENO"
10901then :
10902  xorg_cv_cc_flag_unknown_warning_option=yes
10903else $as_nop
10904  xorg_cv_cc_flag_unknown_warning_option=no
10905fi
10906rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10907fi
10908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10909printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10910	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10911	CFLAGS="$xorg_testset_save_CFLAGS"
10912fi
10913
10914if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10915	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10916		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10917	fi
10918	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10919	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10920printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10921if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10922then :
10923  printf %s "(cached) " >&6
10924else $as_nop
10925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10926/* end confdefs.h.  */
10927int i;
10928_ACEOF
10929if ac_fn_c_try_compile "$LINENO"
10930then :
10931  xorg_cv_cc_flag_unused_command_line_argument=yes
10932else $as_nop
10933  xorg_cv_cc_flag_unused_command_line_argument=no
10934fi
10935rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10936fi
10937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10938printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10939	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10940	CFLAGS="$xorg_testset_save_CFLAGS"
10941fi
10942
10943found="no"
10944
10945	if test $found = "no" ; then
10946		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10947			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10948		fi
10949
10950		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10951			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10952		fi
10953
10954		CFLAGS="$CFLAGS -Werror=attributes"
10955
10956		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10957printf %s "checking if $CC supports -Werror=attributes... " >&6; }
10958		cacheid=xorg_cv_cc_flag__Werror_attributes
10959		if eval test \${$cacheid+y}
10960then :
10961  printf %s "(cached) " >&6
10962else $as_nop
10963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10964/* end confdefs.h.  */
10965int i;
10966int
10967main (void)
10968{
10969
10970  ;
10971  return 0;
10972}
10973_ACEOF
10974if ac_fn_c_try_link "$LINENO"
10975then :
10976  eval $cacheid=yes
10977else $as_nop
10978  eval $cacheid=no
10979fi
10980rm -f core conftest.err conftest.$ac_objext conftest.beam \
10981    conftest$ac_exeext conftest.$ac_ext
10982fi
10983
10984
10985		CFLAGS="$xorg_testset_save_CFLAGS"
10986
10987		eval supported=\$$cacheid
10988		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10989printf "%s\n" "$supported" >&6; }
10990		if test "$supported" = "yes" ; then
10991			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10992			found="yes"
10993		fi
10994	fi
10995
10996
10997
10998if test "x$STRICT_COMPILE" = "xyes"; then
10999    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11000    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11001fi
11002
11003
11004
11005
11006
11007
11008
11009
11010cat >>confdefs.h <<_ACEOF
11011#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11012_ACEOF
11013
11014	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11015	if test "x$PVM" = "x"; then
11016		PVM="0"
11017	fi
11018
11019printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11020
11021	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11022	if test "x$PVP" = "x"; then
11023		PVP="0"
11024	fi
11025
11026printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11027
11028
11029
11030CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11031mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11032|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11033touch \$(top_srcdir)/ChangeLog; \
11034echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11035
11036
11037
11038
11039macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11040INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11041mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11042|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11043touch \$(top_srcdir)/INSTALL; \
11044echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11045
11046
11047
11048
11049
11050
11051case $host_os in
11052    solaris*)
11053        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11054        # check for a man page file found in later versions that use
11055        # traditional section numbers instead
11056        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11057printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11058if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11059then :
11060  printf %s "(cached) " >&6
11061else $as_nop
11062  test "$cross_compiling" = yes &&
11063  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11064if test -r "/usr/share/man/man7/attributes.7"; then
11065  ac_cv_file__usr_share_man_man7_attributes_7=yes
11066else
11067  ac_cv_file__usr_share_man_man7_attributes_7=no
11068fi
11069fi
11070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11071printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11072if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11073then :
11074  SYSV_MAN_SECTIONS=false
11075else $as_nop
11076  SYSV_MAN_SECTIONS=true
11077fi
11078
11079        ;;
11080    *) SYSV_MAN_SECTIONS=false ;;
11081esac
11082
11083if test x$APP_MAN_SUFFIX = x    ; then
11084    APP_MAN_SUFFIX=1
11085fi
11086if test x$APP_MAN_DIR = x    ; then
11087    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11088fi
11089
11090if test x$LIB_MAN_SUFFIX = x    ; then
11091    LIB_MAN_SUFFIX=3
11092fi
11093if test x$LIB_MAN_DIR = x    ; then
11094    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11095fi
11096
11097if test x$FILE_MAN_SUFFIX = x    ; then
11098    case $SYSV_MAN_SECTIONS in
11099	true)				FILE_MAN_SUFFIX=4  ;;
11100	*)				FILE_MAN_SUFFIX=5  ;;
11101    esac
11102fi
11103if test x$FILE_MAN_DIR = x    ; then
11104    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11105fi
11106
11107if test x$MISC_MAN_SUFFIX = x    ; then
11108    case $SYSV_MAN_SECTIONS in
11109	true)				MISC_MAN_SUFFIX=5  ;;
11110	*)				MISC_MAN_SUFFIX=7  ;;
11111    esac
11112fi
11113if test x$MISC_MAN_DIR = x    ; then
11114    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11115fi
11116
11117if test x$DRIVER_MAN_SUFFIX = x    ; then
11118    case $SYSV_MAN_SECTIONS in
11119	true)				DRIVER_MAN_SUFFIX=7  ;;
11120	*)				DRIVER_MAN_SUFFIX=4  ;;
11121    esac
11122fi
11123if test x$DRIVER_MAN_DIR = x    ; then
11124    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11125fi
11126
11127if test x$ADMIN_MAN_SUFFIX = x    ; then
11128    case $SYSV_MAN_SECTIONS in
11129	true)				ADMIN_MAN_SUFFIX=1m ;;
11130	*)				ADMIN_MAN_SUFFIX=8  ;;
11131    esac
11132fi
11133if test x$ADMIN_MAN_DIR = x    ; then
11134    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11135fi
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151XORG_MAN_PAGE="X Version 11"
11152
11153MAN_SUBSTS="\
11154	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11155	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11156	-e 's|__xservername__|Xorg|g' \
11157	-e 's|__xconfigfile__|xorg.conf|g' \
11158	-e 's|__projectroot__|\$(prefix)|g' \
11159	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11160	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11161	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11162	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11163	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11164	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11165	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11166
11167
11168
11169# Check whether --enable-silent-rules was given.
11170if test ${enable_silent_rules+y}
11171then :
11172  enableval=$enable_silent_rules;
11173fi
11174
11175case $enable_silent_rules in # (((
11176  yes) AM_DEFAULT_VERBOSITY=0;;
11177   no) AM_DEFAULT_VERBOSITY=1;;
11178    *) AM_DEFAULT_VERBOSITY=0;;
11179esac
11180am_make=${MAKE-make}
11181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11182printf %s "checking whether $am_make supports nested variables... " >&6; }
11183if test ${am_cv_make_support_nested_variables+y}
11184then :
11185  printf %s "(cached) " >&6
11186else $as_nop
11187  if printf "%s\n" 'TRUE=$(BAR$(V))
11188BAR0=false
11189BAR1=true
11190V=1
11191am__doit:
11192	@$(TRUE)
11193.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11194  am_cv_make_support_nested_variables=yes
11195else
11196  am_cv_make_support_nested_variables=no
11197fi
11198fi
11199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11200printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11201if test $am_cv_make_support_nested_variables = yes; then
11202    AM_V='$(V)'
11203  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11204else
11205  AM_V=$AM_DEFAULT_VERBOSITY
11206  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11207fi
11208AM_BACKSLASH='\'
11209
11210
11211
11212
11213# Checks for pkg-config packages
11214
11215pkg_failed=no
11216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XDPYINFO" >&5
11217printf %s "checking for XDPYINFO... " >&6; }
11218
11219if test -n "$XDPYINFO_CFLAGS"; then
11220    pkg_cv_XDPYINFO_CFLAGS="$XDPYINFO_CFLAGS"
11221 elif test -n "$PKG_CONFIG"; then
11222    if test -n "$PKG_CONFIG" && \
11223    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext x11 xtst x11-xcb xcb xproto >= 7.0.22\""; } >&5
11224  ($PKG_CONFIG --exists --print-errors "xext x11 xtst x11-xcb xcb xproto >= 7.0.22") 2>&5
11225  ac_status=$?
11226  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11227  test $ac_status = 0; }; then
11228  pkg_cv_XDPYINFO_CFLAGS=`$PKG_CONFIG --cflags "xext x11 xtst x11-xcb xcb xproto >= 7.0.22" 2>/dev/null`
11229		      test "x$?" != "x0" && pkg_failed=yes
11230else
11231  pkg_failed=yes
11232fi
11233 else
11234    pkg_failed=untried
11235fi
11236if test -n "$XDPYINFO_LIBS"; then
11237    pkg_cv_XDPYINFO_LIBS="$XDPYINFO_LIBS"
11238 elif test -n "$PKG_CONFIG"; then
11239    if test -n "$PKG_CONFIG" && \
11240    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext x11 xtst x11-xcb xcb xproto >= 7.0.22\""; } >&5
11241  ($PKG_CONFIG --exists --print-errors "xext x11 xtst x11-xcb xcb xproto >= 7.0.22") 2>&5
11242  ac_status=$?
11243  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11244  test $ac_status = 0; }; then
11245  pkg_cv_XDPYINFO_LIBS=`$PKG_CONFIG --libs "xext x11 xtst x11-xcb xcb xproto >= 7.0.22" 2>/dev/null`
11246		      test "x$?" != "x0" && pkg_failed=yes
11247else
11248  pkg_failed=yes
11249fi
11250 else
11251    pkg_failed=untried
11252fi
11253
11254
11255
11256if test $pkg_failed = yes; then
11257   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11258printf "%s\n" "no" >&6; }
11259
11260if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11261        _pkg_short_errors_supported=yes
11262else
11263        _pkg_short_errors_supported=no
11264fi
11265        if test $_pkg_short_errors_supported = yes; then
11266	        XDPYINFO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext x11 xtst x11-xcb xcb xproto >= 7.0.22" 2>&1`
11267        else
11268	        XDPYINFO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext x11 xtst x11-xcb xcb xproto >= 7.0.22" 2>&1`
11269        fi
11270	# Put the nasty error message in config.log where it belongs
11271	echo "$XDPYINFO_PKG_ERRORS" >&5
11272
11273	as_fn_error $? "Package requirements (xext x11 xtst x11-xcb xcb xproto >= 7.0.22) were not met:
11274
11275$XDPYINFO_PKG_ERRORS
11276
11277Consider adjusting the PKG_CONFIG_PATH environment variable if you
11278installed software in a non-standard prefix.
11279
11280Alternatively, you may set the environment variables XDPYINFO_CFLAGS
11281and XDPYINFO_LIBS to avoid the need to call pkg-config.
11282See the pkg-config man page for more details." "$LINENO" 5
11283elif test $pkg_failed = untried; then
11284     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11285printf "%s\n" "no" >&6; }
11286	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11287printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11288as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11289is in your PATH or set the PKG_CONFIG environment variable to the full
11290path to pkg-config.
11291
11292Alternatively, you may set the environment variables XDPYINFO_CFLAGS
11293and XDPYINFO_LIBS to avoid the need to call pkg-config.
11294See the pkg-config man page for more details.
11295
11296To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11297See \`config.log' for more details" "$LINENO" 5; }
11298else
11299	XDPYINFO_CFLAGS=$pkg_cv_XDPYINFO_CFLAGS
11300	XDPYINFO_LIBS=$pkg_cv_XDPYINFO_LIBS
11301        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11302printf "%s\n" "yes" >&6; }
11303
11304fi
11305
11306# This is used below to allow <X11/Xlib.h> to be found
11307
11308pkg_failed=no
11309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DPY_X11" >&5
11310printf %s "checking for DPY_X11... " >&6; }
11311
11312if test -n "$DPY_X11_CFLAGS"; then
11313    pkg_cv_DPY_X11_CFLAGS="$DPY_X11_CFLAGS"
11314 elif test -n "$PKG_CONFIG"; then
11315    if test -n "$PKG_CONFIG" && \
11316    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
11317  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
11318  ac_status=$?
11319  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11320  test $ac_status = 0; }; then
11321  pkg_cv_DPY_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
11322		      test "x$?" != "x0" && pkg_failed=yes
11323else
11324  pkg_failed=yes
11325fi
11326 else
11327    pkg_failed=untried
11328fi
11329if test -n "$DPY_X11_LIBS"; then
11330    pkg_cv_DPY_X11_LIBS="$DPY_X11_LIBS"
11331 elif test -n "$PKG_CONFIG"; then
11332    if test -n "$PKG_CONFIG" && \
11333    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
11334  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
11335  ac_status=$?
11336  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11337  test $ac_status = 0; }; then
11338  pkg_cv_DPY_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
11339		      test "x$?" != "x0" && pkg_failed=yes
11340else
11341  pkg_failed=yes
11342fi
11343 else
11344    pkg_failed=untried
11345fi
11346
11347
11348
11349if test $pkg_failed = yes; then
11350   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11351printf "%s\n" "no" >&6; }
11352
11353if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11354        _pkg_short_errors_supported=yes
11355else
11356        _pkg_short_errors_supported=no
11357fi
11358        if test $_pkg_short_errors_supported = yes; then
11359	        DPY_X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
11360        else
11361	        DPY_X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
11362        fi
11363	# Put the nasty error message in config.log where it belongs
11364	echo "$DPY_X11_PKG_ERRORS" >&5
11365
11366	as_fn_error $? "Package requirements (x11) were not met:
11367
11368$DPY_X11_PKG_ERRORS
11369
11370Consider adjusting the PKG_CONFIG_PATH environment variable if you
11371installed software in a non-standard prefix.
11372
11373Alternatively, you may set the environment variables DPY_X11_CFLAGS
11374and DPY_X11_LIBS to avoid the need to call pkg-config.
11375See the pkg-config man page for more details." "$LINENO" 5
11376elif test $pkg_failed = untried; then
11377     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11378printf "%s\n" "no" >&6; }
11379	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11380printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11381as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11382is in your PATH or set the PKG_CONFIG environment variable to the full
11383path to pkg-config.
11384
11385Alternatively, you may set the environment variables DPY_X11_CFLAGS
11386and DPY_X11_LIBS to avoid the need to call pkg-config.
11387See the pkg-config man page for more details.
11388
11389To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11390See \`config.log' for more details" "$LINENO" 5; }
11391else
11392	DPY_X11_CFLAGS=$pkg_cv_DPY_X11_CFLAGS
11393	DPY_X11_LIBS=$pkg_cv_DPY_X11_LIBS
11394        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11395printf "%s\n" "yes" >&6; }
11396
11397fi
11398
11399
11400pkg_failed=no
11401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DPY_XEXT" >&5
11402printf %s "checking for DPY_XEXT... " >&6; }
11403
11404if test -n "$DPY_XEXT_CFLAGS"; then
11405    pkg_cv_DPY_XEXT_CFLAGS="$DPY_XEXT_CFLAGS"
11406 elif test -n "$PKG_CONFIG"; then
11407    if test -n "$PKG_CONFIG" && \
11408    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
11409  ($PKG_CONFIG --exists --print-errors "xext") 2>&5
11410  ac_status=$?
11411  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11412  test $ac_status = 0; }; then
11413  pkg_cv_DPY_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
11414		      test "x$?" != "x0" && pkg_failed=yes
11415else
11416  pkg_failed=yes
11417fi
11418 else
11419    pkg_failed=untried
11420fi
11421if test -n "$DPY_XEXT_LIBS"; then
11422    pkg_cv_DPY_XEXT_LIBS="$DPY_XEXT_LIBS"
11423 elif test -n "$PKG_CONFIG"; then
11424    if test -n "$PKG_CONFIG" && \
11425    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
11426  ($PKG_CONFIG --exists --print-errors "xext") 2>&5
11427  ac_status=$?
11428  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11429  test $ac_status = 0; }; then
11430  pkg_cv_DPY_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
11431		      test "x$?" != "x0" && pkg_failed=yes
11432else
11433  pkg_failed=yes
11434fi
11435 else
11436    pkg_failed=untried
11437fi
11438
11439
11440
11441if test $pkg_failed = yes; then
11442   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11443printf "%s\n" "no" >&6; }
11444
11445if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11446        _pkg_short_errors_supported=yes
11447else
11448        _pkg_short_errors_supported=no
11449fi
11450        if test $_pkg_short_errors_supported = yes; then
11451	        DPY_XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext" 2>&1`
11452        else
11453	        DPY_XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext" 2>&1`
11454        fi
11455	# Put the nasty error message in config.log where it belongs
11456	echo "$DPY_XEXT_PKG_ERRORS" >&5
11457
11458	echo "not found"
11459elif test $pkg_failed = untried; then
11460     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11461printf "%s\n" "no" >&6; }
11462	echo "not found"
11463else
11464	DPY_XEXT_CFLAGS=$pkg_cv_DPY_XEXT_CFLAGS
11465	DPY_XEXT_LIBS=$pkg_cv_DPY_XEXT_LIBS
11466        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11467printf "%s\n" "yes" >&6; }
11468	SAVE_CPPFLAGS="$CPPFLAGS"
11469	CPPFLAGS="$CPPFLAGS $DPY_XEXT_CFLAGS $DPY_X11_CFLAGS"
11470	ac_fn_c_check_header_compile "$LINENO" "X11/extensions/multibuf.h" "ac_cv_header_X11_extensions_multibuf_h" "#include <X11/Xlib.h>
11471"
11472if test "x$ac_cv_header_X11_extensions_multibuf_h" = xyes
11473then :
11474  printf "%s\n" "#define HAVE_X11_EXTENSIONS_MULTIBUF_H 1" >>confdefs.h
11475
11476fi
11477ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XShm.h" "ac_cv_header_X11_extensions_XShm_h" "#include <X11/Xlib.h>
11478"
11479if test "x$ac_cv_header_X11_extensions_XShm_h" = xyes
11480then :
11481  printf "%s\n" "#define HAVE_X11_EXTENSIONS_XSHM_H 1" >>confdefs.h
11482
11483fi
11484
11485	CPPFLAGS="$SAVE_CPPFLAGS"
11486fi
11487
11488
11489pkg_failed=no
11490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DPY_XKB" >&5
11491printf %s "checking for DPY_XKB... " >&6; }
11492
11493if test -n "$DPY_XKB_CFLAGS"; then
11494    pkg_cv_DPY_XKB_CFLAGS="$DPY_XKB_CFLAGS"
11495 elif test -n "$PKG_CONFIG"; then
11496    if test -n "$PKG_CONFIG" && \
11497    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
11498  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
11499  ac_status=$?
11500  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11501  test $ac_status = 0; }; then
11502  pkg_cv_DPY_XKB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
11503		      test "x$?" != "x0" && pkg_failed=yes
11504else
11505  pkg_failed=yes
11506fi
11507 else
11508    pkg_failed=untried
11509fi
11510if test -n "$DPY_XKB_LIBS"; then
11511    pkg_cv_DPY_XKB_LIBS="$DPY_XKB_LIBS"
11512 elif test -n "$PKG_CONFIG"; then
11513    if test -n "$PKG_CONFIG" && \
11514    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
11515  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
11516  ac_status=$?
11517  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11518  test $ac_status = 0; }; then
11519  pkg_cv_DPY_XKB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
11520		      test "x$?" != "x0" && pkg_failed=yes
11521else
11522  pkg_failed=yes
11523fi
11524 else
11525    pkg_failed=untried
11526fi
11527
11528
11529
11530if test $pkg_failed = yes; then
11531   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11532printf "%s\n" "no" >&6; }
11533
11534if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11535        _pkg_short_errors_supported=yes
11536else
11537        _pkg_short_errors_supported=no
11538fi
11539        if test $_pkg_short_errors_supported = yes; then
11540	        DPY_XKB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
11541        else
11542	        DPY_XKB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
11543        fi
11544	# Put the nasty error message in config.log where it belongs
11545	echo "$DPY_XKB_PKG_ERRORS" >&5
11546
11547	echo "not found"
11548elif test $pkg_failed = untried; then
11549     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11550printf "%s\n" "no" >&6; }
11551	echo "not found"
11552else
11553	DPY_XKB_CFLAGS=$pkg_cv_DPY_XKB_CFLAGS
11554	DPY_XKB_LIBS=$pkg_cv_DPY_XKB_LIBS
11555        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11556printf "%s\n" "yes" >&6; }
11557	SAVE_CPPFLAGS="$CPPFLAGS"
11558	CPPFLAGS="$CPPFLAGS $DPY_XKB_CFLAGS $DPY_X11_CFLAGS"
11559	ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XKB.h" "ac_cv_header_X11_extensions_XKB_h" "#include <X11/Xlib.h>
11560"
11561if test "x$ac_cv_header_X11_extensions_XKB_h" = xyes
11562then :
11563  printf "%s\n" "#define HAVE_X11_EXTENSIONS_XKB_H 1" >>confdefs.h
11564
11565fi
11566ac_fn_c_check_header_compile "$LINENO" "X11/XKBlib.h" "ac_cv_header_X11_XKBlib_h" "#include <X11/Xlib.h>
11567"
11568if test "x$ac_cv_header_X11_XKBlib_h" = xyes
11569then :
11570  printf "%s\n" "#define HAVE_X11_XKBLIB_H 1" >>confdefs.h
11571
11572fi
11573
11574	CPPFLAGS="$SAVE_CPPFLAGS"
11575fi
11576
11577
11578pkg_failed=no
11579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DPY_XF86VIDMODE" >&5
11580printf %s "checking for DPY_XF86VIDMODE... " >&6; }
11581
11582if test -n "$DPY_XF86VIDMODE_CFLAGS"; then
11583    pkg_cv_DPY_XF86VIDMODE_CFLAGS="$DPY_XF86VIDMODE_CFLAGS"
11584 elif test -n "$PKG_CONFIG"; then
11585    if test -n "$PKG_CONFIG" && \
11586    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86vm\""; } >&5
11587  ($PKG_CONFIG --exists --print-errors "xxf86vm") 2>&5
11588  ac_status=$?
11589  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11590  test $ac_status = 0; }; then
11591  pkg_cv_DPY_XF86VIDMODE_CFLAGS=`$PKG_CONFIG --cflags "xxf86vm" 2>/dev/null`
11592		      test "x$?" != "x0" && pkg_failed=yes
11593else
11594  pkg_failed=yes
11595fi
11596 else
11597    pkg_failed=untried
11598fi
11599if test -n "$DPY_XF86VIDMODE_LIBS"; then
11600    pkg_cv_DPY_XF86VIDMODE_LIBS="$DPY_XF86VIDMODE_LIBS"
11601 elif test -n "$PKG_CONFIG"; then
11602    if test -n "$PKG_CONFIG" && \
11603    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86vm\""; } >&5
11604  ($PKG_CONFIG --exists --print-errors "xxf86vm") 2>&5
11605  ac_status=$?
11606  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11607  test $ac_status = 0; }; then
11608  pkg_cv_DPY_XF86VIDMODE_LIBS=`$PKG_CONFIG --libs "xxf86vm" 2>/dev/null`
11609		      test "x$?" != "x0" && pkg_failed=yes
11610else
11611  pkg_failed=yes
11612fi
11613 else
11614    pkg_failed=untried
11615fi
11616
11617
11618
11619if test $pkg_failed = yes; then
11620   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11621printf "%s\n" "no" >&6; }
11622
11623if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11624        _pkg_short_errors_supported=yes
11625else
11626        _pkg_short_errors_supported=no
11627fi
11628        if test $_pkg_short_errors_supported = yes; then
11629	        DPY_XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xxf86vm" 2>&1`
11630        else
11631	        DPY_XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xxf86vm" 2>&1`
11632        fi
11633	# Put the nasty error message in config.log where it belongs
11634	echo "$DPY_XF86VIDMODE_PKG_ERRORS" >&5
11635
11636	echo "not found"
11637elif test $pkg_failed = untried; then
11638     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11639printf "%s\n" "no" >&6; }
11640	echo "not found"
11641else
11642	DPY_XF86VIDMODE_CFLAGS=$pkg_cv_DPY_XF86VIDMODE_CFLAGS
11643	DPY_XF86VIDMODE_LIBS=$pkg_cv_DPY_XF86VIDMODE_LIBS
11644        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11645printf "%s\n" "yes" >&6; }
11646	SAVE_CPPFLAGS="$CPPFLAGS"
11647	CPPFLAGS="$CPPFLAGS $DPY_XF86VIDMODE_CFLAGS $DPY_X11_CFLAGS"
11648	ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
11649"
11650if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes
11651then :
11652  printf "%s\n" "#define HAVE_X11_EXTENSIONS_XF86VMODE_H 1" >>confdefs.h
11653
11654fi
11655ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmstr.h" "ac_cv_header_X11_extensions_xf86vmstr_h" "#include <X11/Xlib.h>
11656"
11657if test "x$ac_cv_header_X11_extensions_xf86vmstr_h" = xyes
11658then :
11659  printf "%s\n" "#define HAVE_X11_EXTENSIONS_XF86VMSTR_H 1" >>confdefs.h
11660
11661fi
11662ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmproto.h" "ac_cv_header_X11_extensions_xf86vmproto_h" "#include <X11/Xlib.h>
11663"
11664if test "x$ac_cv_header_X11_extensions_xf86vmproto_h" = xyes
11665then :
11666  printf "%s\n" "#define HAVE_X11_EXTENSIONS_XF86VMPROTO_H 1" >>confdefs.h
11667
11668fi
11669
11670	CPPFLAGS="$SAVE_CPPFLAGS"
11671fi
11672
11673
11674# Check whether --with-dga was given.
11675if test ${with_dga+y}
11676then :
11677  withval=$with_dga; USE_DGA="$withval"
11678else $as_nop
11679  USE_DGA="yes"
11680fi
11681
11682if test "x$USE_DGA" != "xno" ; then
11683
11684pkg_failed=no
11685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DPY_XF86DGA" >&5
11686printf %s "checking for DPY_XF86DGA... " >&6; }
11687
11688if test -n "$DPY_XF86DGA_CFLAGS"; then
11689    pkg_cv_DPY_XF86DGA_CFLAGS="$DPY_XF86DGA_CFLAGS"
11690 elif test -n "$PKG_CONFIG"; then
11691    if test -n "$PKG_CONFIG" && \
11692    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86dga\""; } >&5
11693  ($PKG_CONFIG --exists --print-errors "xxf86dga") 2>&5
11694  ac_status=$?
11695  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11696  test $ac_status = 0; }; then
11697  pkg_cv_DPY_XF86DGA_CFLAGS=`$PKG_CONFIG --cflags "xxf86dga" 2>/dev/null`
11698		      test "x$?" != "x0" && pkg_failed=yes
11699else
11700  pkg_failed=yes
11701fi
11702 else
11703    pkg_failed=untried
11704fi
11705if test -n "$DPY_XF86DGA_LIBS"; then
11706    pkg_cv_DPY_XF86DGA_LIBS="$DPY_XF86DGA_LIBS"
11707 elif test -n "$PKG_CONFIG"; then
11708    if test -n "$PKG_CONFIG" && \
11709    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86dga\""; } >&5
11710  ($PKG_CONFIG --exists --print-errors "xxf86dga") 2>&5
11711  ac_status=$?
11712  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11713  test $ac_status = 0; }; then
11714  pkg_cv_DPY_XF86DGA_LIBS=`$PKG_CONFIG --libs "xxf86dga" 2>/dev/null`
11715		      test "x$?" != "x0" && pkg_failed=yes
11716else
11717  pkg_failed=yes
11718fi
11719 else
11720    pkg_failed=untried
11721fi
11722
11723
11724
11725if test $pkg_failed = yes; then
11726   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11727printf "%s\n" "no" >&6; }
11728
11729if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11730        _pkg_short_errors_supported=yes
11731else
11732        _pkg_short_errors_supported=no
11733fi
11734        if test $_pkg_short_errors_supported = yes; then
11735	        DPY_XF86DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xxf86dga" 2>&1`
11736        else
11737	        DPY_XF86DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xxf86dga" 2>&1`
11738        fi
11739	# Put the nasty error message in config.log where it belongs
11740	echo "$DPY_XF86DGA_PKG_ERRORS" >&5
11741
11742	echo "not found"
11743elif test $pkg_failed = untried; then
11744     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11745printf "%s\n" "no" >&6; }
11746	echo "not found"
11747else
11748	DPY_XF86DGA_CFLAGS=$pkg_cv_DPY_XF86DGA_CFLAGS
11749	DPY_XF86DGA_LIBS=$pkg_cv_DPY_XF86DGA_LIBS
11750        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11751printf "%s\n" "yes" >&6; }
11752	SAVE_CPPFLAGS="$CPPFLAGS"
11753		CPPFLAGS="$CPPFLAGS $DPY_XF86DGA_CFLAGS $DPY_X11_CFLAGS"
11754		ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xxf86dga.h" "ac_cv_header_X11_extensions_Xxf86dga_h" "#include <X11/Xlib.h>
11755#include <X11/Xproto.h>
11756"
11757if test "x$ac_cv_header_X11_extensions_Xxf86dga_h" = xyes
11758then :
11759  printf "%s\n" "#define HAVE_X11_EXTENSIONS_XXF86DGA_H 1" >>confdefs.h
11760
11761fi
11762ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86dgaproto.h" "ac_cv_header_X11_extensions_xf86dgaproto_h" "#include <X11/Xlib.h>
11763#include <X11/Xproto.h>
11764"
11765if test "x$ac_cv_header_X11_extensions_xf86dgaproto_h" = xyes
11766then :
11767  printf "%s\n" "#define HAVE_X11_EXTENSIONS_XF86DGAPROTO_H 1" >>confdefs.h
11768
11769fi
11770ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86dga.h" "ac_cv_header_X11_extensions_xf86dga_h" "#include <X11/Xlib.h>
11771#include <X11/Xproto.h>
11772"
11773if test "x$ac_cv_header_X11_extensions_xf86dga_h" = xyes
11774then :
11775  printf "%s\n" "#define HAVE_X11_EXTENSIONS_XF86DGA_H 1" >>confdefs.h
11776
11777fi
11778ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86dgastr.h" "ac_cv_header_X11_extensions_xf86dgastr_h" "#include <X11/Xlib.h>
11779#include <X11/Xproto.h>
11780"
11781if test "x$ac_cv_header_X11_extensions_xf86dgastr_h" = xyes
11782then :
11783  printf "%s\n" "#define HAVE_X11_EXTENSIONS_XF86DGASTR_H 1" >>confdefs.h
11784
11785fi
11786
11787		CPPFLAGS="$SAVE_CPPFLAGS"
11788fi
11789else
11790	echo "without dga"
11791fi
11792
11793
11794
11795# Check whether --with-xf86misc was given.
11796if test ${with_xf86misc+y}
11797then :
11798  withval=$with_xf86misc; USE_XF86MISC="$withval"
11799else $as_nop
11800  USE_XF86MISC="no"
11801fi
11802
11803if test "x$USE_XF86MISC" != "xno" ; then
11804
11805pkg_failed=no
11806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DPY_XF86MISC" >&5
11807printf %s "checking for DPY_XF86MISC... " >&6; }
11808
11809if test -n "$DPY_XF86MISC_CFLAGS"; then
11810    pkg_cv_DPY_XF86MISC_CFLAGS="$DPY_XF86MISC_CFLAGS"
11811 elif test -n "$PKG_CONFIG"; then
11812    if test -n "$PKG_CONFIG" && \
11813    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86misc\""; } >&5
11814  ($PKG_CONFIG --exists --print-errors "xxf86misc") 2>&5
11815  ac_status=$?
11816  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11817  test $ac_status = 0; }; then
11818  pkg_cv_DPY_XF86MISC_CFLAGS=`$PKG_CONFIG --cflags "xxf86misc" 2>/dev/null`
11819		      test "x$?" != "x0" && pkg_failed=yes
11820else
11821  pkg_failed=yes
11822fi
11823 else
11824    pkg_failed=untried
11825fi
11826if test -n "$DPY_XF86MISC_LIBS"; then
11827    pkg_cv_DPY_XF86MISC_LIBS="$DPY_XF86MISC_LIBS"
11828 elif test -n "$PKG_CONFIG"; then
11829    if test -n "$PKG_CONFIG" && \
11830    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86misc\""; } >&5
11831  ($PKG_CONFIG --exists --print-errors "xxf86misc") 2>&5
11832  ac_status=$?
11833  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11834  test $ac_status = 0; }; then
11835  pkg_cv_DPY_XF86MISC_LIBS=`$PKG_CONFIG --libs "xxf86misc" 2>/dev/null`
11836		      test "x$?" != "x0" && pkg_failed=yes
11837else
11838  pkg_failed=yes
11839fi
11840 else
11841    pkg_failed=untried
11842fi
11843
11844
11845
11846if test $pkg_failed = yes; then
11847   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11848printf "%s\n" "no" >&6; }
11849
11850if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11851        _pkg_short_errors_supported=yes
11852else
11853        _pkg_short_errors_supported=no
11854fi
11855        if test $_pkg_short_errors_supported = yes; then
11856	        DPY_XF86MISC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xxf86misc" 2>&1`
11857        else
11858	        DPY_XF86MISC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xxf86misc" 2>&1`
11859        fi
11860	# Put the nasty error message in config.log where it belongs
11861	echo "$DPY_XF86MISC_PKG_ERRORS" >&5
11862
11863	echo "not found"
11864elif test $pkg_failed = untried; then
11865     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11866printf "%s\n" "no" >&6; }
11867	echo "not found"
11868else
11869	DPY_XF86MISC_CFLAGS=$pkg_cv_DPY_XF86MISC_CFLAGS
11870	DPY_XF86MISC_LIBS=$pkg_cv_DPY_XF86MISC_LIBS
11871        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11872printf "%s\n" "yes" >&6; }
11873	SAVE_CPPFLAGS="$CPPFLAGS"
11874		CPPFLAGS="$CPPFLAGS $DPY_XF86MISC_CFLAGS $DPY_X11_CFLAGS"
11875		ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86misc.h" "ac_cv_header_X11_extensions_xf86misc_h" "#include <X11/Xlib.h>
11876#include <X11/Xproto.h>
11877"
11878if test "x$ac_cv_header_X11_extensions_xf86misc_h" = xyes
11879then :
11880  printf "%s\n" "#define HAVE_X11_EXTENSIONS_XF86MISC_H 1" >>confdefs.h
11881
11882fi
11883ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86mscstr.h" "ac_cv_header_X11_extensions_xf86mscstr_h" "#include <X11/Xlib.h>
11884#include <X11/Xproto.h>
11885"
11886if test "x$ac_cv_header_X11_extensions_xf86mscstr_h" = xyes
11887then :
11888  printf "%s\n" "#define HAVE_X11_EXTENSIONS_XF86MSCSTR_H 1" >>confdefs.h
11889
11890fi
11891
11892		CPPFLAGS="$SAVE_CPPFLAGS"
11893fi
11894else
11895	echo "without xf86misc"
11896fi
11897
11898
11899pkg_failed=no
11900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DPY_XINPUT" >&5
11901printf %s "checking for DPY_XINPUT... " >&6; }
11902
11903if test -n "$DPY_XINPUT_CFLAGS"; then
11904    pkg_cv_DPY_XINPUT_CFLAGS="$DPY_XINPUT_CFLAGS"
11905 elif test -n "$PKG_CONFIG"; then
11906    if test -n "$PKG_CONFIG" && \
11907    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi\""; } >&5
11908  ($PKG_CONFIG --exists --print-errors "xi") 2>&5
11909  ac_status=$?
11910  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11911  test $ac_status = 0; }; then
11912  pkg_cv_DPY_XINPUT_CFLAGS=`$PKG_CONFIG --cflags "xi" 2>/dev/null`
11913		      test "x$?" != "x0" && pkg_failed=yes
11914else
11915  pkg_failed=yes
11916fi
11917 else
11918    pkg_failed=untried
11919fi
11920if test -n "$DPY_XINPUT_LIBS"; then
11921    pkg_cv_DPY_XINPUT_LIBS="$DPY_XINPUT_LIBS"
11922 elif test -n "$PKG_CONFIG"; then
11923    if test -n "$PKG_CONFIG" && \
11924    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi\""; } >&5
11925  ($PKG_CONFIG --exists --print-errors "xi") 2>&5
11926  ac_status=$?
11927  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11928  test $ac_status = 0; }; then
11929  pkg_cv_DPY_XINPUT_LIBS=`$PKG_CONFIG --libs "xi" 2>/dev/null`
11930		      test "x$?" != "x0" && pkg_failed=yes
11931else
11932  pkg_failed=yes
11933fi
11934 else
11935    pkg_failed=untried
11936fi
11937
11938
11939
11940if test $pkg_failed = yes; then
11941   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11942printf "%s\n" "no" >&6; }
11943
11944if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11945        _pkg_short_errors_supported=yes
11946else
11947        _pkg_short_errors_supported=no
11948fi
11949        if test $_pkg_short_errors_supported = yes; then
11950	        DPY_XINPUT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xi" 2>&1`
11951        else
11952	        DPY_XINPUT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xi" 2>&1`
11953        fi
11954	# Put the nasty error message in config.log where it belongs
11955	echo "$DPY_XINPUT_PKG_ERRORS" >&5
11956
11957	echo "not found"
11958elif test $pkg_failed = untried; then
11959     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11960printf "%s\n" "no" >&6; }
11961	echo "not found"
11962else
11963	DPY_XINPUT_CFLAGS=$pkg_cv_DPY_XINPUT_CFLAGS
11964	DPY_XINPUT_LIBS=$pkg_cv_DPY_XINPUT_LIBS
11965        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11966printf "%s\n" "yes" >&6; }
11967	SAVE_CPPFLAGS="$CPPFLAGS"
11968	CPPFLAGS="$CPPFLAGS $DPY_XINPUT_CFLAGS $DPY_X11_CFLAGS"
11969	ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput.h" "ac_cv_header_X11_extensions_XInput_h" "#include <X11/Xlib.h>
11970"
11971if test "x$ac_cv_header_X11_extensions_XInput_h" = xyes
11972then :
11973  printf "%s\n" "#define HAVE_X11_EXTENSIONS_XINPUT_H 1" >>confdefs.h
11974
11975fi
11976
11977	CPPFLAGS="$SAVE_CPPFLAGS"
11978fi
11979
11980
11981pkg_failed=no
11982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DPY_XRENDER" >&5
11983printf %s "checking for DPY_XRENDER... " >&6; }
11984
11985if test -n "$DPY_XRENDER_CFLAGS"; then
11986    pkg_cv_DPY_XRENDER_CFLAGS="$DPY_XRENDER_CFLAGS"
11987 elif test -n "$PKG_CONFIG"; then
11988    if test -n "$PKG_CONFIG" && \
11989    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender\""; } >&5
11990  ($PKG_CONFIG --exists --print-errors "xrender") 2>&5
11991  ac_status=$?
11992  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11993  test $ac_status = 0; }; then
11994  pkg_cv_DPY_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "xrender" 2>/dev/null`
11995		      test "x$?" != "x0" && pkg_failed=yes
11996else
11997  pkg_failed=yes
11998fi
11999 else
12000    pkg_failed=untried
12001fi
12002if test -n "$DPY_XRENDER_LIBS"; then
12003    pkg_cv_DPY_XRENDER_LIBS="$DPY_XRENDER_LIBS"
12004 elif test -n "$PKG_CONFIG"; then
12005    if test -n "$PKG_CONFIG" && \
12006    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender\""; } >&5
12007  ($PKG_CONFIG --exists --print-errors "xrender") 2>&5
12008  ac_status=$?
12009  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12010  test $ac_status = 0; }; then
12011  pkg_cv_DPY_XRENDER_LIBS=`$PKG_CONFIG --libs "xrender" 2>/dev/null`
12012		      test "x$?" != "x0" && pkg_failed=yes
12013else
12014  pkg_failed=yes
12015fi
12016 else
12017    pkg_failed=untried
12018fi
12019
12020
12021
12022if test $pkg_failed = yes; then
12023   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12024printf "%s\n" "no" >&6; }
12025
12026if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12027        _pkg_short_errors_supported=yes
12028else
12029        _pkg_short_errors_supported=no
12030fi
12031        if test $_pkg_short_errors_supported = yes; then
12032	        DPY_XRENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrender" 2>&1`
12033        else
12034	        DPY_XRENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrender" 2>&1`
12035        fi
12036	# Put the nasty error message in config.log where it belongs
12037	echo "$DPY_XRENDER_PKG_ERRORS" >&5
12038
12039	echo "not found"
12040elif test $pkg_failed = untried; then
12041     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12042printf "%s\n" "no" >&6; }
12043	echo "not found"
12044else
12045	DPY_XRENDER_CFLAGS=$pkg_cv_DPY_XRENDER_CFLAGS
12046	DPY_XRENDER_LIBS=$pkg_cv_DPY_XRENDER_LIBS
12047        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12048printf "%s\n" "yes" >&6; }
12049	SAVE_CPPFLAGS="$CPPFLAGS"
12050	CPPFLAGS="$CPPFLAGS $DPY_XRENDER_CFLAGS $DPY_X11_CFLAGS"
12051	ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "#include <X11/Xlib.h>
12052"
12053if test "x$ac_cv_header_X11_extensions_Xrender_h" = xyes
12054then :
12055  printf "%s\n" "#define HAVE_X11_EXTENSIONS_XRENDER_H 1" >>confdefs.h
12056
12057fi
12058
12059	CPPFLAGS="$SAVE_CPPFLAGS"
12060fi
12061
12062
12063pkg_failed=no
12064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DPY_XCOMPOSITE" >&5
12065printf %s "checking for DPY_XCOMPOSITE... " >&6; }
12066
12067if test -n "$DPY_XCOMPOSITE_CFLAGS"; then
12068    pkg_cv_DPY_XCOMPOSITE_CFLAGS="$DPY_XCOMPOSITE_CFLAGS"
12069 elif test -n "$PKG_CONFIG"; then
12070    if test -n "$PKG_CONFIG" && \
12071    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcomposite\""; } >&5
12072  ($PKG_CONFIG --exists --print-errors "xcomposite") 2>&5
12073  ac_status=$?
12074  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12075  test $ac_status = 0; }; then
12076  pkg_cv_DPY_XCOMPOSITE_CFLAGS=`$PKG_CONFIG --cflags "xcomposite" 2>/dev/null`
12077		      test "x$?" != "x0" && pkg_failed=yes
12078else
12079  pkg_failed=yes
12080fi
12081 else
12082    pkg_failed=untried
12083fi
12084if test -n "$DPY_XCOMPOSITE_LIBS"; then
12085    pkg_cv_DPY_XCOMPOSITE_LIBS="$DPY_XCOMPOSITE_LIBS"
12086 elif test -n "$PKG_CONFIG"; then
12087    if test -n "$PKG_CONFIG" && \
12088    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcomposite\""; } >&5
12089  ($PKG_CONFIG --exists --print-errors "xcomposite") 2>&5
12090  ac_status=$?
12091  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12092  test $ac_status = 0; }; then
12093  pkg_cv_DPY_XCOMPOSITE_LIBS=`$PKG_CONFIG --libs "xcomposite" 2>/dev/null`
12094		      test "x$?" != "x0" && pkg_failed=yes
12095else
12096  pkg_failed=yes
12097fi
12098 else
12099    pkg_failed=untried
12100fi
12101
12102
12103
12104if test $pkg_failed = yes; then
12105   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12106printf "%s\n" "no" >&6; }
12107
12108if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12109        _pkg_short_errors_supported=yes
12110else
12111        _pkg_short_errors_supported=no
12112fi
12113        if test $_pkg_short_errors_supported = yes; then
12114	        DPY_XCOMPOSITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcomposite" 2>&1`
12115        else
12116	        DPY_XCOMPOSITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcomposite" 2>&1`
12117        fi
12118	# Put the nasty error message in config.log where it belongs
12119	echo "$DPY_XCOMPOSITE_PKG_ERRORS" >&5
12120
12121	echo "not found"
12122elif test $pkg_failed = untried; then
12123     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12124printf "%s\n" "no" >&6; }
12125	echo "not found"
12126else
12127	DPY_XCOMPOSITE_CFLAGS=$pkg_cv_DPY_XCOMPOSITE_CFLAGS
12128	DPY_XCOMPOSITE_LIBS=$pkg_cv_DPY_XCOMPOSITE_LIBS
12129        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12130printf "%s\n" "yes" >&6; }
12131	SAVE_CPPFLAGS="$CPPFLAGS"
12132	CPPFLAGS="$CPPFLAGS $DPY_XCOMPOSITE_CFLAGS $DPY_X11_CFLAGS"
12133	ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xcomposite.h" "ac_cv_header_X11_extensions_Xcomposite_h" "#include <X11/Xlib.h>
12134"
12135if test "x$ac_cv_header_X11_extensions_Xcomposite_h" = xyes
12136then :
12137  printf "%s\n" "#define HAVE_X11_EXTENSIONS_XCOMPOSITE_H 1" >>confdefs.h
12138
12139fi
12140
12141	CPPFLAGS="$SAVE_CPPFLAGS"
12142fi
12143
12144
12145# Check whether --with-xinerama was given.
12146if test ${with_xinerama+y}
12147then :
12148  withval=$with_xinerama; USE_XINERAMA="$withval"
12149else $as_nop
12150  USE_XINERAMA="yes"
12151fi
12152
12153if test "x$USE_XINERAMA" != "xno" ; then
12154
12155pkg_failed=no
12156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DPY_XINERAMA" >&5
12157printf %s "checking for DPY_XINERAMA... " >&6; }
12158
12159if test -n "$DPY_XINERAMA_CFLAGS"; then
12160    pkg_cv_DPY_XINERAMA_CFLAGS="$DPY_XINERAMA_CFLAGS"
12161 elif test -n "$PKG_CONFIG"; then
12162    if test -n "$PKG_CONFIG" && \
12163    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xinerama\""; } >&5
12164  ($PKG_CONFIG --exists --print-errors "xinerama") 2>&5
12165  ac_status=$?
12166  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12167  test $ac_status = 0; }; then
12168  pkg_cv_DPY_XINERAMA_CFLAGS=`$PKG_CONFIG --cflags "xinerama" 2>/dev/null`
12169		      test "x$?" != "x0" && pkg_failed=yes
12170else
12171  pkg_failed=yes
12172fi
12173 else
12174    pkg_failed=untried
12175fi
12176if test -n "$DPY_XINERAMA_LIBS"; then
12177    pkg_cv_DPY_XINERAMA_LIBS="$DPY_XINERAMA_LIBS"
12178 elif test -n "$PKG_CONFIG"; then
12179    if test -n "$PKG_CONFIG" && \
12180    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xinerama\""; } >&5
12181  ($PKG_CONFIG --exists --print-errors "xinerama") 2>&5
12182  ac_status=$?
12183  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12184  test $ac_status = 0; }; then
12185  pkg_cv_DPY_XINERAMA_LIBS=`$PKG_CONFIG --libs "xinerama" 2>/dev/null`
12186		      test "x$?" != "x0" && pkg_failed=yes
12187else
12188  pkg_failed=yes
12189fi
12190 else
12191    pkg_failed=untried
12192fi
12193
12194
12195
12196if test $pkg_failed = yes; then
12197   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12198printf "%s\n" "no" >&6; }
12199
12200if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12201        _pkg_short_errors_supported=yes
12202else
12203        _pkg_short_errors_supported=no
12204fi
12205        if test $_pkg_short_errors_supported = yes; then
12206	        DPY_XINERAMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xinerama" 2>&1`
12207        else
12208	        DPY_XINERAMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xinerama" 2>&1`
12209        fi
12210	# Put the nasty error message in config.log where it belongs
12211	echo "$DPY_XINERAMA_PKG_ERRORS" >&5
12212
12213	echo "not found"
12214elif test $pkg_failed = untried; then
12215     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12216printf "%s\n" "no" >&6; }
12217	echo "not found"
12218else
12219	DPY_XINERAMA_CFLAGS=$pkg_cv_DPY_XINERAMA_CFLAGS
12220	DPY_XINERAMA_LIBS=$pkg_cv_DPY_XINERAMA_LIBS
12221        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12222printf "%s\n" "yes" >&6; }
12223	SAVE_CPPFLAGS="$CPPFLAGS"
12224		CPPFLAGS="$CPPFLAGS $DPY_XINERAMA_CFLAGS $DPY_X11_CFLAGS"
12225		ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
12226"
12227if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes
12228then :
12229  printf "%s\n" "#define HAVE_X11_EXTENSIONS_XINERAMA_H 1" >>confdefs.h
12230
12231fi
12232
12233		CPPFLAGS="$SAVE_CPPFLAGS"
12234fi
12235else
12236	echo "without xinerama"
12237fi
12238
12239
12240# Check whether --with-dmx was given.
12241if test ${with_dmx+y}
12242then :
12243  withval=$with_dmx; USE_DMX="$withval"
12244else $as_nop
12245  USE_DMX="no"
12246fi
12247
12248if test "x$USE_DMX" != "xno" ; then
12249
12250pkg_failed=no
12251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DPY_DMX" >&5
12252printf %s "checking for DPY_DMX... " >&6; }
12253
12254if test -n "$DPY_DMX_CFLAGS"; then
12255    pkg_cv_DPY_DMX_CFLAGS="$DPY_DMX_CFLAGS"
12256 elif test -n "$PKG_CONFIG"; then
12257    if test -n "$PKG_CONFIG" && \
12258    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dmx\""; } >&5
12259  ($PKG_CONFIG --exists --print-errors "dmx") 2>&5
12260  ac_status=$?
12261  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12262  test $ac_status = 0; }; then
12263  pkg_cv_DPY_DMX_CFLAGS=`$PKG_CONFIG --cflags "dmx" 2>/dev/null`
12264		      test "x$?" != "x0" && pkg_failed=yes
12265else
12266  pkg_failed=yes
12267fi
12268 else
12269    pkg_failed=untried
12270fi
12271if test -n "$DPY_DMX_LIBS"; then
12272    pkg_cv_DPY_DMX_LIBS="$DPY_DMX_LIBS"
12273 elif test -n "$PKG_CONFIG"; then
12274    if test -n "$PKG_CONFIG" && \
12275    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dmx\""; } >&5
12276  ($PKG_CONFIG --exists --print-errors "dmx") 2>&5
12277  ac_status=$?
12278  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12279  test $ac_status = 0; }; then
12280  pkg_cv_DPY_DMX_LIBS=`$PKG_CONFIG --libs "dmx" 2>/dev/null`
12281		      test "x$?" != "x0" && pkg_failed=yes
12282else
12283  pkg_failed=yes
12284fi
12285 else
12286    pkg_failed=untried
12287fi
12288
12289
12290
12291if test $pkg_failed = yes; then
12292   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12293printf "%s\n" "no" >&6; }
12294
12295if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12296        _pkg_short_errors_supported=yes
12297else
12298        _pkg_short_errors_supported=no
12299fi
12300        if test $_pkg_short_errors_supported = yes; then
12301	        DPY_DMX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dmx" 2>&1`
12302        else
12303	        DPY_DMX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dmx" 2>&1`
12304        fi
12305	# Put the nasty error message in config.log where it belongs
12306	echo "$DPY_DMX_PKG_ERRORS" >&5
12307
12308	echo "not found"
12309elif test $pkg_failed = untried; then
12310     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12311printf "%s\n" "no" >&6; }
12312	echo "not found"
12313else
12314	DPY_DMX_CFLAGS=$pkg_cv_DPY_DMX_CFLAGS
12315	DPY_DMX_LIBS=$pkg_cv_DPY_DMX_LIBS
12316        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12317printf "%s\n" "yes" >&6; }
12318	SAVE_CPPFLAGS="$CPPFLAGS"
12319		CPPFLAGS="$CPPFLAGS $DPY_DMX_CFLAGS $DPY_X11_CFLAGS"
12320		ac_fn_c_check_header_compile "$LINENO" "X11/extensions/dmxext.h" "ac_cv_header_X11_extensions_dmxext_h" "#include <X11/Xlib.h>
12321"
12322if test "x$ac_cv_header_X11_extensions_dmxext_h" = xyes
12323then :
12324  printf "%s\n" "#define HAVE_X11_EXTENSIONS_DMXEXT_H 1" >>confdefs.h
12325
12326fi
12327
12328		CPPFLAGS="$SAVE_CPPFLAGS"
12329fi
12330else
12331	echo "without dmx"
12332fi
12333
12334
12335pkg_failed=no
12336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DPY_XTST" >&5
12337printf %s "checking for DPY_XTST... " >&6; }
12338
12339if test -n "$DPY_XTST_CFLAGS"; then
12340    pkg_cv_DPY_XTST_CFLAGS="$DPY_XTST_CFLAGS"
12341 elif test -n "$PKG_CONFIG"; then
12342    if test -n "$PKG_CONFIG" && \
12343    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xtst\""; } >&5
12344  ($PKG_CONFIG --exists --print-errors "xtst") 2>&5
12345  ac_status=$?
12346  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12347  test $ac_status = 0; }; then
12348  pkg_cv_DPY_XTST_CFLAGS=`$PKG_CONFIG --cflags "xtst" 2>/dev/null`
12349		      test "x$?" != "x0" && pkg_failed=yes
12350else
12351  pkg_failed=yes
12352fi
12353 else
12354    pkg_failed=untried
12355fi
12356if test -n "$DPY_XTST_LIBS"; then
12357    pkg_cv_DPY_XTST_LIBS="$DPY_XTST_LIBS"
12358 elif test -n "$PKG_CONFIG"; then
12359    if test -n "$PKG_CONFIG" && \
12360    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xtst\""; } >&5
12361  ($PKG_CONFIG --exists --print-errors "xtst") 2>&5
12362  ac_status=$?
12363  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12364  test $ac_status = 0; }; then
12365  pkg_cv_DPY_XTST_LIBS=`$PKG_CONFIG --libs "xtst" 2>/dev/null`
12366		      test "x$?" != "x0" && pkg_failed=yes
12367else
12368  pkg_failed=yes
12369fi
12370 else
12371    pkg_failed=untried
12372fi
12373
12374
12375
12376if test $pkg_failed = yes; then
12377   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12378printf "%s\n" "no" >&6; }
12379
12380if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12381        _pkg_short_errors_supported=yes
12382else
12383        _pkg_short_errors_supported=no
12384fi
12385        if test $_pkg_short_errors_supported = yes; then
12386	        DPY_XTST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xtst" 2>&1`
12387        else
12388	        DPY_XTST_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xtst" 2>&1`
12389        fi
12390	# Put the nasty error message in config.log where it belongs
12391	echo "$DPY_XTST_PKG_ERRORS" >&5
12392
12393	echo "not found"
12394elif test $pkg_failed = untried; then
12395     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12396printf "%s\n" "no" >&6; }
12397	echo "not found"
12398else
12399	DPY_XTST_CFLAGS=$pkg_cv_DPY_XTST_CFLAGS
12400	DPY_XTST_LIBS=$pkg_cv_DPY_XTST_LIBS
12401        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12402printf "%s\n" "yes" >&6; }
12403	SAVE_CPPFLAGS="$CPPFLAGS"
12404	CPPFLAGS="$CPPFLAGS $DPY_XTST_CFLAGS $DPY_X11_CFLAGS"
12405	ac_fn_c_check_header_compile "$LINENO" "X11/extensions/record.h" "ac_cv_header_X11_extensions_record_h" "#include <X11/Xlib.h>
12406"
12407if test "x$ac_cv_header_X11_extensions_record_h" = xyes
12408then :
12409  printf "%s\n" "#define HAVE_X11_EXTENSIONS_RECORD_H 1" >>confdefs.h
12410
12411fi
12412
12413	CPPFLAGS="$SAVE_CPPFLAGS"
12414fi
12415
12416
12417
12418
12419
12420
12421# Check whether --with-lint was given.
12422if test ${with_lint+y}
12423then :
12424  withval=$with_lint; use_lint=$withval
12425else $as_nop
12426  use_lint=no
12427fi
12428
12429
12430# Obtain platform specific info like program name and options
12431# The lint program on FreeBSD and NetBSD is different from the one on Solaris
12432case $host_os in
12433  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
12434	lint_name=splint
12435	lint_options="-badflag"
12436	;;
12437  *freebsd* | *netbsd*)
12438	lint_name=lint
12439	lint_options="-u -b"
12440	;;
12441  *solaris*)
12442	lint_name=lint
12443	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
12444	;;
12445esac
12446
12447# Test for the presence of the program (either guessed by the code or spelled out by the user)
12448if test "x$use_lint" = x"yes" ; then
12449   # Extract the first word of "$lint_name", so it can be a program name with args.
12450set dummy $lint_name; ac_word=$2
12451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12452printf %s "checking for $ac_word... " >&6; }
12453if test ${ac_cv_path_LINT+y}
12454then :
12455  printf %s "(cached) " >&6
12456else $as_nop
12457  case $LINT in
12458  [\\/]* | ?:[\\/]*)
12459  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
12460  ;;
12461  *)
12462  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12463for as_dir in $PATH
12464do
12465  IFS=$as_save_IFS
12466  case $as_dir in #(((
12467    '') as_dir=./ ;;
12468    */) ;;
12469    *) as_dir=$as_dir/ ;;
12470  esac
12471    for ac_exec_ext in '' $ac_executable_extensions; do
12472  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12473    ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
12474    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12475    break 2
12476  fi
12477done
12478  done
12479IFS=$as_save_IFS
12480
12481  ;;
12482esac
12483fi
12484LINT=$ac_cv_path_LINT
12485if test -n "$LINT"; then
12486  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
12487printf "%s\n" "$LINT" >&6; }
12488else
12489  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12490printf "%s\n" "no" >&6; }
12491fi
12492
12493
12494   if test "x$LINT" = "x"; then
12495        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
12496   fi
12497elif test "x$use_lint" = x"no" ; then
12498   if test "x$LINT" != "x"; then
12499      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
12500printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
12501   fi
12502else
12503   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
12504fi
12505
12506# User supplied flags override default flags
12507if test "x$LINT_FLAGS" != "x"; then
12508   lint_options=$LINT_FLAGS
12509fi
12510
12511LINT_FLAGS=$lint_options
12512
12513 if test "x$LINT" != x; then
12514  LINT_TRUE=
12515  LINT_FALSE='#'
12516else
12517  LINT_TRUE='#'
12518  LINT_FALSE=
12519fi
12520
12521
12522
12523
12524ac_config_files="$ac_config_files Makefile man/Makefile"
12525
12526cat >confcache <<\_ACEOF
12527# This file is a shell script that caches the results of configure
12528# tests run on this system so they can be shared between configure
12529# scripts and configure runs, see configure's option --config-cache.
12530# It is not useful on other systems.  If it contains results you don't
12531# want to keep, you may remove or edit it.
12532#
12533# config.status only pays attention to the cache file if you give it
12534# the --recheck option to rerun configure.
12535#
12536# `ac_cv_env_foo' variables (set or unset) will be overridden when
12537# loading this file, other *unset* `ac_cv_foo' will be assigned the
12538# following values.
12539
12540_ACEOF
12541
12542# The following way of writing the cache mishandles newlines in values,
12543# but we know of no workaround that is simple, portable, and efficient.
12544# So, we kill variables containing newlines.
12545# Ultrix sh set writes to stderr and can't be redirected directly,
12546# and sets the high bit in the cache file unless we assign to the vars.
12547(
12548  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12549    eval ac_val=\$$ac_var
12550    case $ac_val in #(
12551    *${as_nl}*)
12552      case $ac_var in #(
12553      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12554printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12555      esac
12556      case $ac_var in #(
12557      _ | IFS | as_nl) ;; #(
12558      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12559      *) { eval $ac_var=; unset $ac_var;} ;;
12560      esac ;;
12561    esac
12562  done
12563
12564  (set) 2>&1 |
12565    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12566    *${as_nl}ac_space=\ *)
12567      # `set' does not quote correctly, so add quotes: double-quote
12568      # substitution turns \\\\ into \\, and sed turns \\ into \.
12569      sed -n \
12570	"s/'/'\\\\''/g;
12571	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12572      ;; #(
12573    *)
12574      # `set' quotes correctly as required by POSIX, so do not add quotes.
12575      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12576      ;;
12577    esac |
12578    sort
12579) |
12580  sed '
12581     /^ac_cv_env_/b end
12582     t clear
12583     :clear
12584     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
12585     t end
12586     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12587     :end' >>confcache
12588if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12589  if test -w "$cache_file"; then
12590    if test "x$cache_file" != "x/dev/null"; then
12591      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12592printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
12593      if test ! -f "$cache_file" || test -h "$cache_file"; then
12594	cat confcache >"$cache_file"
12595      else
12596        case $cache_file in #(
12597        */* | ?:*)
12598	  mv -f confcache "$cache_file"$$ &&
12599	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12600        *)
12601	  mv -f confcache "$cache_file" ;;
12602	esac
12603      fi
12604    fi
12605  else
12606    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12607printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
12608  fi
12609fi
12610rm -f confcache
12611
12612test "x$prefix" = xNONE && prefix=$ac_default_prefix
12613# Let make expand exec_prefix.
12614test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12615
12616DEFS=-DHAVE_CONFIG_H
12617
12618ac_libobjs=
12619ac_ltlibobjs=
12620U=
12621for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12622  # 1. Remove the extension, and $U if already installed.
12623  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12624  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
12625  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12626  #    will be set to the directory where LIBOBJS objects are built.
12627  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12628  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12629done
12630LIBOBJS=$ac_libobjs
12631
12632LTLIBOBJS=$ac_ltlibobjs
12633
12634
12635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12636printf %s "checking that generated files are newer than configure... " >&6; }
12637   if test -n "$am_sleep_pid"; then
12638     # Hide warnings about reused PIDs.
12639     wait $am_sleep_pid 2>/dev/null
12640   fi
12641   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
12642printf "%s\n" "done" >&6; }
12643 if test -n "$EXEEXT"; then
12644  am__EXEEXT_TRUE=
12645  am__EXEEXT_FALSE='#'
12646else
12647  am__EXEEXT_TRUE='#'
12648  am__EXEEXT_FALSE=
12649fi
12650
12651if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12652  as_fn_error $? "conditional \"AMDEP\" was never defined.
12653Usually this means the macro was only invoked conditionally." "$LINENO" 5
12654fi
12655if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12656  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12657Usually this means the macro was only invoked conditionally." "$LINENO" 5
12658fi
12659if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
12660  as_fn_error $? "conditional \"LINT\" was never defined.
12661Usually this means the macro was only invoked conditionally." "$LINENO" 5
12662fi
12663
12664: "${CONFIG_STATUS=./config.status}"
12665ac_write_fail=0
12666ac_clean_files_save=$ac_clean_files
12667ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12669printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
12670as_write_fail=0
12671cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12672#! $SHELL
12673# Generated by $as_me.
12674# Run this file to recreate the current configuration.
12675# Compiler output produced by configure, useful for debugging
12676# configure, is in config.log if it exists.
12677
12678debug=false
12679ac_cs_recheck=false
12680ac_cs_silent=false
12681
12682SHELL=\${CONFIG_SHELL-$SHELL}
12683export SHELL
12684_ASEOF
12685cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12686## -------------------- ##
12687## M4sh Initialization. ##
12688## -------------------- ##
12689
12690# Be more Bourne compatible
12691DUALCASE=1; export DUALCASE # for MKS sh
12692as_nop=:
12693if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12694then :
12695  emulate sh
12696  NULLCMD=:
12697  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12698  # is contrary to our usage.  Disable this feature.
12699  alias -g '${1+"$@"}'='"$@"'
12700  setopt NO_GLOB_SUBST
12701else $as_nop
12702  case `(set -o) 2>/dev/null` in #(
12703  *posix*) :
12704    set -o posix ;; #(
12705  *) :
12706     ;;
12707esac
12708fi
12709
12710
12711
12712# Reset variables that may have inherited troublesome values from
12713# the environment.
12714
12715# IFS needs to be set, to space, tab, and newline, in precisely that order.
12716# (If _AS_PATH_WALK were called with IFS unset, it would have the
12717# side effect of setting IFS to empty, thus disabling word splitting.)
12718# Quoting is to prevent editors from complaining about space-tab.
12719as_nl='
12720'
12721export as_nl
12722IFS=" ""	$as_nl"
12723
12724PS1='$ '
12725PS2='> '
12726PS4='+ '
12727
12728# Ensure predictable behavior from utilities with locale-dependent output.
12729LC_ALL=C
12730export LC_ALL
12731LANGUAGE=C
12732export LANGUAGE
12733
12734# We cannot yet rely on "unset" to work, but we need these variables
12735# to be unset--not just set to an empty or harmless value--now, to
12736# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
12737# also avoids known problems related to "unset" and subshell syntax
12738# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12739for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12740do eval test \${$as_var+y} \
12741  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12742done
12743
12744# Ensure that fds 0, 1, and 2 are open.
12745if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12746if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12747if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
12748
12749# The user is always right.
12750if ${PATH_SEPARATOR+false} :; then
12751  PATH_SEPARATOR=:
12752  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12753    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12754      PATH_SEPARATOR=';'
12755  }
12756fi
12757
12758
12759# Find who we are.  Look in the path if we contain no directory separator.
12760as_myself=
12761case $0 in #((
12762  *[\\/]* ) as_myself=$0 ;;
12763  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12764for as_dir in $PATH
12765do
12766  IFS=$as_save_IFS
12767  case $as_dir in #(((
12768    '') as_dir=./ ;;
12769    */) ;;
12770    *) as_dir=$as_dir/ ;;
12771  esac
12772    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12773  done
12774IFS=$as_save_IFS
12775
12776     ;;
12777esac
12778# We did not find ourselves, most probably we were run as `sh COMMAND'
12779# in which case we are not to be found in the path.
12780if test "x$as_myself" = x; then
12781  as_myself=$0
12782fi
12783if test ! -f "$as_myself"; then
12784  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12785  exit 1
12786fi
12787
12788
12789
12790# as_fn_error STATUS ERROR [LINENO LOG_FD]
12791# ----------------------------------------
12792# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12793# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12794# script with STATUS, using 1 if that was 0.
12795as_fn_error ()
12796{
12797  as_status=$1; test $as_status -eq 0 && as_status=1
12798  if test "$4"; then
12799    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12800    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12801  fi
12802  printf "%s\n" "$as_me: error: $2" >&2
12803  as_fn_exit $as_status
12804} # as_fn_error
12805
12806
12807
12808# as_fn_set_status STATUS
12809# -----------------------
12810# Set $? to STATUS, without forking.
12811as_fn_set_status ()
12812{
12813  return $1
12814} # as_fn_set_status
12815
12816# as_fn_exit STATUS
12817# -----------------
12818# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12819as_fn_exit ()
12820{
12821  set +e
12822  as_fn_set_status $1
12823  exit $1
12824} # as_fn_exit
12825
12826# as_fn_unset VAR
12827# ---------------
12828# Portably unset VAR.
12829as_fn_unset ()
12830{
12831  { eval $1=; unset $1;}
12832}
12833as_unset=as_fn_unset
12834
12835# as_fn_append VAR VALUE
12836# ----------------------
12837# Append the text in VALUE to the end of the definition contained in VAR. Take
12838# advantage of any shell optimizations that allow amortized linear growth over
12839# repeated appends, instead of the typical quadratic growth present in naive
12840# implementations.
12841if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12842then :
12843  eval 'as_fn_append ()
12844  {
12845    eval $1+=\$2
12846  }'
12847else $as_nop
12848  as_fn_append ()
12849  {
12850    eval $1=\$$1\$2
12851  }
12852fi # as_fn_append
12853
12854# as_fn_arith ARG...
12855# ------------------
12856# Perform arithmetic evaluation on the ARGs, and store the result in the
12857# global $as_val. Take advantage of shells that can avoid forks. The arguments
12858# must be portable across $(()) and expr.
12859if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12860then :
12861  eval 'as_fn_arith ()
12862  {
12863    as_val=$(( $* ))
12864  }'
12865else $as_nop
12866  as_fn_arith ()
12867  {
12868    as_val=`expr "$@" || test $? -eq 1`
12869  }
12870fi # as_fn_arith
12871
12872
12873if expr a : '\(a\)' >/dev/null 2>&1 &&
12874   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12875  as_expr=expr
12876else
12877  as_expr=false
12878fi
12879
12880if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12881  as_basename=basename
12882else
12883  as_basename=false
12884fi
12885
12886if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12887  as_dirname=dirname
12888else
12889  as_dirname=false
12890fi
12891
12892as_me=`$as_basename -- "$0" ||
12893$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12894	 X"$0" : 'X\(//\)$' \| \
12895	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12896printf "%s\n" X/"$0" |
12897    sed '/^.*\/\([^/][^/]*\)\/*$/{
12898	    s//\1/
12899	    q
12900	  }
12901	  /^X\/\(\/\/\)$/{
12902	    s//\1/
12903	    q
12904	  }
12905	  /^X\/\(\/\).*/{
12906	    s//\1/
12907	    q
12908	  }
12909	  s/.*/./; q'`
12910
12911# Avoid depending upon Character Ranges.
12912as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12913as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12914as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12915as_cr_digits='0123456789'
12916as_cr_alnum=$as_cr_Letters$as_cr_digits
12917
12918
12919# Determine whether it's possible to make 'echo' print without a newline.
12920# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12921# for compatibility with existing Makefiles.
12922ECHO_C= ECHO_N= ECHO_T=
12923case `echo -n x` in #(((((
12924-n*)
12925  case `echo 'xy\c'` in
12926  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12927  xy)  ECHO_C='\c';;
12928  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12929       ECHO_T='	';;
12930  esac;;
12931*)
12932  ECHO_N='-n';;
12933esac
12934
12935# For backward compatibility with old third-party macros, we provide
12936# the shell variables $as_echo and $as_echo_n.  New code should use
12937# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12938as_echo='printf %s\n'
12939as_echo_n='printf %s'
12940
12941rm -f conf$$ conf$$.exe conf$$.file
12942if test -d conf$$.dir; then
12943  rm -f conf$$.dir/conf$$.file
12944else
12945  rm -f conf$$.dir
12946  mkdir conf$$.dir 2>/dev/null
12947fi
12948if (echo >conf$$.file) 2>/dev/null; then
12949  if ln -s conf$$.file conf$$ 2>/dev/null; then
12950    as_ln_s='ln -s'
12951    # ... but there are two gotchas:
12952    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12953    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12954    # In both cases, we have to default to `cp -pR'.
12955    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12956      as_ln_s='cp -pR'
12957  elif ln conf$$.file conf$$ 2>/dev/null; then
12958    as_ln_s=ln
12959  else
12960    as_ln_s='cp -pR'
12961  fi
12962else
12963  as_ln_s='cp -pR'
12964fi
12965rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12966rmdir conf$$.dir 2>/dev/null
12967
12968
12969# as_fn_mkdir_p
12970# -------------
12971# Create "$as_dir" as a directory, including parents if necessary.
12972as_fn_mkdir_p ()
12973{
12974
12975  case $as_dir in #(
12976  -*) as_dir=./$as_dir;;
12977  esac
12978  test -d "$as_dir" || eval $as_mkdir_p || {
12979    as_dirs=
12980    while :; do
12981      case $as_dir in #(
12982      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12983      *) as_qdir=$as_dir;;
12984      esac
12985      as_dirs="'$as_qdir' $as_dirs"
12986      as_dir=`$as_dirname -- "$as_dir" ||
12987$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12988	 X"$as_dir" : 'X\(//\)[^/]' \| \
12989	 X"$as_dir" : 'X\(//\)$' \| \
12990	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12991printf "%s\n" X"$as_dir" |
12992    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12993	    s//\1/
12994	    q
12995	  }
12996	  /^X\(\/\/\)[^/].*/{
12997	    s//\1/
12998	    q
12999	  }
13000	  /^X\(\/\/\)$/{
13001	    s//\1/
13002	    q
13003	  }
13004	  /^X\(\/\).*/{
13005	    s//\1/
13006	    q
13007	  }
13008	  s/.*/./; q'`
13009      test -d "$as_dir" && break
13010    done
13011    test -z "$as_dirs" || eval "mkdir $as_dirs"
13012  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13013
13014
13015} # as_fn_mkdir_p
13016if mkdir -p . 2>/dev/null; then
13017  as_mkdir_p='mkdir -p "$as_dir"'
13018else
13019  test -d ./-p && rmdir ./-p
13020  as_mkdir_p=false
13021fi
13022
13023
13024# as_fn_executable_p FILE
13025# -----------------------
13026# Test if FILE is an executable regular file.
13027as_fn_executable_p ()
13028{
13029  test -f "$1" && test -x "$1"
13030} # as_fn_executable_p
13031as_test_x='test -x'
13032as_executable_p=as_fn_executable_p
13033
13034# Sed expression to map a string onto a valid CPP name.
13035as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13036
13037# Sed expression to map a string onto a valid variable name.
13038as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13039
13040
13041exec 6>&1
13042## ----------------------------------- ##
13043## Main body of $CONFIG_STATUS script. ##
13044## ----------------------------------- ##
13045_ASEOF
13046test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13047
13048cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13049# Save the log message, to keep $0 and so on meaningful, and to
13050# report actual input values of CONFIG_FILES etc. instead of their
13051# values after options handling.
13052ac_log="
13053This file was extended by xdpyinfo $as_me 1.3.4, which was
13054generated by GNU Autoconf 2.71.  Invocation command line was
13055
13056  CONFIG_FILES    = $CONFIG_FILES
13057  CONFIG_HEADERS  = $CONFIG_HEADERS
13058  CONFIG_LINKS    = $CONFIG_LINKS
13059  CONFIG_COMMANDS = $CONFIG_COMMANDS
13060  $ $0 $@
13061
13062on `(hostname || uname -n) 2>/dev/null | sed 1q`
13063"
13064
13065_ACEOF
13066
13067case $ac_config_files in *"
13068"*) set x $ac_config_files; shift; ac_config_files=$*;;
13069esac
13070
13071case $ac_config_headers in *"
13072"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13073esac
13074
13075
13076cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13077# Files that config.status was made for.
13078config_files="$ac_config_files"
13079config_headers="$ac_config_headers"
13080config_commands="$ac_config_commands"
13081
13082_ACEOF
13083
13084cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13085ac_cs_usage="\
13086\`$as_me' instantiates files and other configuration actions
13087from templates according to the current configuration.  Unless the files
13088and actions are specified as TAGs, all are instantiated by default.
13089
13090Usage: $0 [OPTION]... [TAG]...
13091
13092  -h, --help       print this help, then exit
13093  -V, --version    print version number and configuration settings, then exit
13094      --config     print configuration, then exit
13095  -q, --quiet, --silent
13096                   do not print progress messages
13097  -d, --debug      don't remove temporary files
13098      --recheck    update $as_me by reconfiguring in the same conditions
13099      --file=FILE[:TEMPLATE]
13100                   instantiate the configuration file FILE
13101      --header=FILE[:TEMPLATE]
13102                   instantiate the configuration header FILE
13103
13104Configuration files:
13105$config_files
13106
13107Configuration headers:
13108$config_headers
13109
13110Configuration commands:
13111$config_commands
13112
13113Report bugs to <https://gitlab.freedesktop.org/xorg/app/xdpyinfo/-/issues>."
13114
13115_ACEOF
13116ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
13117ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
13118cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13119ac_cs_config='$ac_cs_config_escaped'
13120ac_cs_version="\\
13121xdpyinfo config.status 1.3.4
13122configured by $0, generated by GNU Autoconf 2.71,
13123  with options \\"\$ac_cs_config\\"
13124
13125Copyright (C) 2021 Free Software Foundation, Inc.
13126This config.status script is free software; the Free Software Foundation
13127gives unlimited permission to copy, distribute and modify it."
13128
13129ac_pwd='$ac_pwd'
13130srcdir='$srcdir'
13131INSTALL='$INSTALL'
13132MKDIR_P='$MKDIR_P'
13133AWK='$AWK'
13134test -n "\$AWK" || AWK=awk
13135_ACEOF
13136
13137cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13138# The default lists apply if the user does not specify any file.
13139ac_need_defaults=:
13140while test $# != 0
13141do
13142  case $1 in
13143  --*=?*)
13144    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13145    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13146    ac_shift=:
13147    ;;
13148  --*=)
13149    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13150    ac_optarg=
13151    ac_shift=:
13152    ;;
13153  *)
13154    ac_option=$1
13155    ac_optarg=$2
13156    ac_shift=shift
13157    ;;
13158  esac
13159
13160  case $ac_option in
13161  # Handling of the options.
13162  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13163    ac_cs_recheck=: ;;
13164  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13165    printf "%s\n" "$ac_cs_version"; exit ;;
13166  --config | --confi | --conf | --con | --co | --c )
13167    printf "%s\n" "$ac_cs_config"; exit ;;
13168  --debug | --debu | --deb | --de | --d | -d )
13169    debug=: ;;
13170  --file | --fil | --fi | --f )
13171    $ac_shift
13172    case $ac_optarg in
13173    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13174    '') as_fn_error $? "missing file argument" ;;
13175    esac
13176    as_fn_append CONFIG_FILES " '$ac_optarg'"
13177    ac_need_defaults=false;;
13178  --header | --heade | --head | --hea )
13179    $ac_shift
13180    case $ac_optarg in
13181    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13182    esac
13183    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13184    ac_need_defaults=false;;
13185  --he | --h)
13186    # Conflict between --help and --header
13187    as_fn_error $? "ambiguous option: \`$1'
13188Try \`$0 --help' for more information.";;
13189  --help | --hel | -h )
13190    printf "%s\n" "$ac_cs_usage"; exit ;;
13191  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13192  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13193    ac_cs_silent=: ;;
13194
13195  # This is an error.
13196  -*) as_fn_error $? "unrecognized option: \`$1'
13197Try \`$0 --help' for more information." ;;
13198
13199  *) as_fn_append ac_config_targets " $1"
13200     ac_need_defaults=false ;;
13201
13202  esac
13203  shift
13204done
13205
13206ac_configure_extra_args=
13207
13208if $ac_cs_silent; then
13209  exec 6>/dev/null
13210  ac_configure_extra_args="$ac_configure_extra_args --silent"
13211fi
13212
13213_ACEOF
13214cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13215if \$ac_cs_recheck; then
13216  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13217  shift
13218  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
13219  CONFIG_SHELL='$SHELL'
13220  export CONFIG_SHELL
13221  exec "\$@"
13222fi
13223
13224_ACEOF
13225cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13226exec 5>>config.log
13227{
13228  echo
13229  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13230## Running $as_me. ##
13231_ASBOX
13232  printf "%s\n" "$ac_log"
13233} >&5
13234
13235_ACEOF
13236cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13237#
13238# INIT-COMMANDS
13239#
13240AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
13241
13242_ACEOF
13243
13244cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13245
13246# Handling of arguments.
13247for ac_config_target in $ac_config_targets
13248do
13249  case $ac_config_target in
13250    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13251    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13252    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13253    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13254
13255  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13256  esac
13257done
13258
13259
13260# If the user did not use the arguments to specify the items to instantiate,
13261# then the envvar interface is used.  Set only those that are not.
13262# We use the long form for the default assignment because of an extremely
13263# bizarre bug on SunOS 4.1.3.
13264if $ac_need_defaults; then
13265  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
13266  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
13267  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
13268fi
13269
13270# Have a temporary directory for convenience.  Make it in the build tree
13271# simply because there is no reason against having it here, and in addition,
13272# creating and moving files from /tmp can sometimes cause problems.
13273# Hook for its removal unless debugging.
13274# Note that there is a small window in which the directory will not be cleaned:
13275# after its creation but before its name has been assigned to `$tmp'.
13276$debug ||
13277{
13278  tmp= ac_tmp=
13279  trap 'exit_status=$?
13280  : "${ac_tmp:=$tmp}"
13281  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13282' 0
13283  trap 'as_fn_exit 1' 1 2 13 15
13284}
13285# Create a (secure) tmp directory for tmp files.
13286
13287{
13288  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13289  test -d "$tmp"
13290}  ||
13291{
13292  tmp=./conf$$-$RANDOM
13293  (umask 077 && mkdir "$tmp")
13294} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13295ac_tmp=$tmp
13296
13297# Set up the scripts for CONFIG_FILES section.
13298# No need to generate them if there are no CONFIG_FILES.
13299# This happens for instance with `./config.status config.h'.
13300if test -n "$CONFIG_FILES"; then
13301
13302
13303ac_cr=`echo X | tr X '\015'`
13304# On cygwin, bash can eat \r inside `` if the user requested igncr.
13305# But we know of no other shell where ac_cr would be empty at this
13306# point, so we can use a bashism as a fallback.
13307if test "x$ac_cr" = x; then
13308  eval ac_cr=\$\'\\r\'
13309fi
13310ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13311if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13312  ac_cs_awk_cr='\\r'
13313else
13314  ac_cs_awk_cr=$ac_cr
13315fi
13316
13317echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13318_ACEOF
13319
13320
13321{
13322  echo "cat >conf$$subs.awk <<_ACEOF" &&
13323  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13324  echo "_ACEOF"
13325} >conf$$subs.sh ||
13326  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13327ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13328ac_delim='%!_!# '
13329for ac_last_try in false false false false false :; do
13330  . ./conf$$subs.sh ||
13331    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13332
13333  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13334  if test $ac_delim_n = $ac_delim_num; then
13335    break
13336  elif $ac_last_try; then
13337    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13338  else
13339    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13340  fi
13341done
13342rm -f conf$$subs.sh
13343
13344cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13345cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13346_ACEOF
13347sed -n '
13348h
13349s/^/S["/; s/!.*/"]=/
13350p
13351g
13352s/^[^!]*!//
13353:repl
13354t repl
13355s/'"$ac_delim"'$//
13356t delim
13357:nl
13358h
13359s/\(.\{148\}\)..*/\1/
13360t more1
13361s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13362p
13363n
13364b repl
13365:more1
13366s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13367p
13368g
13369s/.\{148\}//
13370t nl
13371:delim
13372h
13373s/\(.\{148\}\)..*/\1/
13374t more2
13375s/["\\]/\\&/g; s/^/"/; s/$/"/
13376p
13377b
13378:more2
13379s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13380p
13381g
13382s/.\{148\}//
13383t delim
13384' <conf$$subs.awk | sed '
13385/^[^""]/{
13386  N
13387  s/\n//
13388}
13389' >>$CONFIG_STATUS || ac_write_fail=1
13390rm -f conf$$subs.awk
13391cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13392_ACAWK
13393cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13394  for (key in S) S_is_set[key] = 1
13395  FS = ""
13396
13397}
13398{
13399  line = $ 0
13400  nfields = split(line, field, "@")
13401  substed = 0
13402  len = length(field[1])
13403  for (i = 2; i < nfields; i++) {
13404    key = field[i]
13405    keylen = length(key)
13406    if (S_is_set[key]) {
13407      value = S[key]
13408      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13409      len += length(value) + length(field[++i])
13410      substed = 1
13411    } else
13412      len += 1 + keylen
13413  }
13414
13415  print line
13416}
13417
13418_ACAWK
13419_ACEOF
13420cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13421if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13422  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13423else
13424  cat
13425fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13426  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13427_ACEOF
13428
13429# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13430# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13431# trailing colons and then remove the whole line if VPATH becomes empty
13432# (actually we leave an empty line to preserve line numbers).
13433if test "x$srcdir" = x.; then
13434  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13435h
13436s///
13437s/^/:/
13438s/[	 ]*$/:/
13439s/:\$(srcdir):/:/g
13440s/:\${srcdir}:/:/g
13441s/:@srcdir@:/:/g
13442s/^:*//
13443s/:*$//
13444x
13445s/\(=[	 ]*\).*/\1/
13446G
13447s/\n//
13448s/^[^=]*=[	 ]*$//
13449}'
13450fi
13451
13452cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13453fi # test -n "$CONFIG_FILES"
13454
13455# Set up the scripts for CONFIG_HEADERS section.
13456# No need to generate them if there are no CONFIG_HEADERS.
13457# This happens for instance with `./config.status Makefile'.
13458if test -n "$CONFIG_HEADERS"; then
13459cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13460BEGIN {
13461_ACEOF
13462
13463# Transform confdefs.h into an awk script `defines.awk', embedded as
13464# here-document in config.status, that substitutes the proper values into
13465# config.h.in to produce config.h.
13466
13467# Create a delimiter string that does not exist in confdefs.h, to ease
13468# handling of long lines.
13469ac_delim='%!_!# '
13470for ac_last_try in false false :; do
13471  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13472  if test -z "$ac_tt"; then
13473    break
13474  elif $ac_last_try; then
13475    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13476  else
13477    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13478  fi
13479done
13480
13481# For the awk script, D is an array of macro values keyed by name,
13482# likewise P contains macro parameters if any.  Preserve backslash
13483# newline sequences.
13484
13485ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13486sed -n '
13487s/.\{148\}/&'"$ac_delim"'/g
13488t rset
13489:rset
13490s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13491t def
13492d
13493:def
13494s/\\$//
13495t bsnl
13496s/["\\]/\\&/g
13497s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13498D["\1"]=" \3"/p
13499s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13500d
13501:bsnl
13502s/["\\]/\\&/g
13503s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13504D["\1"]=" \3\\\\\\n"\\/p
13505t cont
13506s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13507t cont
13508d
13509:cont
13510n
13511s/.\{148\}/&'"$ac_delim"'/g
13512t clear
13513:clear
13514s/\\$//
13515t bsnlc
13516s/["\\]/\\&/g; s/^/"/; s/$/"/p
13517d
13518:bsnlc
13519s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13520b cont
13521' <confdefs.h | sed '
13522s/'"$ac_delim"'/"\\\
13523"/g' >>$CONFIG_STATUS || ac_write_fail=1
13524
13525cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13526  for (key in D) D_is_set[key] = 1
13527  FS = ""
13528}
13529/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13530  line = \$ 0
13531  split(line, arg, " ")
13532  if (arg[1] == "#") {
13533    defundef = arg[2]
13534    mac1 = arg[3]
13535  } else {
13536    defundef = substr(arg[1], 2)
13537    mac1 = arg[2]
13538  }
13539  split(mac1, mac2, "(") #)
13540  macro = mac2[1]
13541  prefix = substr(line, 1, index(line, defundef) - 1)
13542  if (D_is_set[macro]) {
13543    # Preserve the white space surrounding the "#".
13544    print prefix "define", macro P[macro] D[macro]
13545    next
13546  } else {
13547    # Replace #undef with comments.  This is necessary, for example,
13548    # in the case of _POSIX_SOURCE, which is predefined and required
13549    # on some systems where configure will not decide to define it.
13550    if (defundef == "undef") {
13551      print "/*", prefix defundef, macro, "*/"
13552      next
13553    }
13554  }
13555}
13556{ print }
13557_ACAWK
13558_ACEOF
13559cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13560  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13561fi # test -n "$CONFIG_HEADERS"
13562
13563
13564eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13565shift
13566for ac_tag
13567do
13568  case $ac_tag in
13569  :[FHLC]) ac_mode=$ac_tag; continue;;
13570  esac
13571  case $ac_mode$ac_tag in
13572  :[FHL]*:*);;
13573  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13574  :[FH]-) ac_tag=-:-;;
13575  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13576  esac
13577  ac_save_IFS=$IFS
13578  IFS=:
13579  set x $ac_tag
13580  IFS=$ac_save_IFS
13581  shift
13582  ac_file=$1
13583  shift
13584
13585  case $ac_mode in
13586  :L) ac_source=$1;;
13587  :[FH])
13588    ac_file_inputs=
13589    for ac_f
13590    do
13591      case $ac_f in
13592      -) ac_f="$ac_tmp/stdin";;
13593      *) # Look for the file first in the build tree, then in the source tree
13594	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13595	 # because $ac_f cannot contain `:'.
13596	 test -f "$ac_f" ||
13597	   case $ac_f in
13598	   [\\/$]*) false;;
13599	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13600	   esac ||
13601	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13602      esac
13603      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13604      as_fn_append ac_file_inputs " '$ac_f'"
13605    done
13606
13607    # Let's still pretend it is `configure' which instantiates (i.e., don't
13608    # use $as_me), people would be surprised to read:
13609    #    /* config.h.  Generated by config.status.  */
13610    configure_input='Generated from '`
13611	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13612	`' by configure.'
13613    if test x"$ac_file" != x-; then
13614      configure_input="$ac_file.  $configure_input"
13615      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13616printf "%s\n" "$as_me: creating $ac_file" >&6;}
13617    fi
13618    # Neutralize special characters interpreted by sed in replacement strings.
13619    case $configure_input in #(
13620    *\&* | *\|* | *\\* )
13621       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
13622       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13623    *) ac_sed_conf_input=$configure_input;;
13624    esac
13625
13626    case $ac_tag in
13627    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13628      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13629    esac
13630    ;;
13631  esac
13632
13633  ac_dir=`$as_dirname -- "$ac_file" ||
13634$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13635	 X"$ac_file" : 'X\(//\)[^/]' \| \
13636	 X"$ac_file" : 'X\(//\)$' \| \
13637	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13638printf "%s\n" X"$ac_file" |
13639    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13640	    s//\1/
13641	    q
13642	  }
13643	  /^X\(\/\/\)[^/].*/{
13644	    s//\1/
13645	    q
13646	  }
13647	  /^X\(\/\/\)$/{
13648	    s//\1/
13649	    q
13650	  }
13651	  /^X\(\/\).*/{
13652	    s//\1/
13653	    q
13654	  }
13655	  s/.*/./; q'`
13656  as_dir="$ac_dir"; as_fn_mkdir_p
13657  ac_builddir=.
13658
13659case "$ac_dir" in
13660.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13661*)
13662  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
13663  # A ".." for each directory in $ac_dir_suffix.
13664  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13665  case $ac_top_builddir_sub in
13666  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13667  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13668  esac ;;
13669esac
13670ac_abs_top_builddir=$ac_pwd
13671ac_abs_builddir=$ac_pwd$ac_dir_suffix
13672# for backward compatibility:
13673ac_top_builddir=$ac_top_build_prefix
13674
13675case $srcdir in
13676  .)  # We are building in place.
13677    ac_srcdir=.
13678    ac_top_srcdir=$ac_top_builddir_sub
13679    ac_abs_top_srcdir=$ac_pwd ;;
13680  [\\/]* | ?:[\\/]* )  # Absolute name.
13681    ac_srcdir=$srcdir$ac_dir_suffix;
13682    ac_top_srcdir=$srcdir
13683    ac_abs_top_srcdir=$srcdir ;;
13684  *) # Relative name.
13685    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13686    ac_top_srcdir=$ac_top_build_prefix$srcdir
13687    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13688esac
13689ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13690
13691
13692  case $ac_mode in
13693  :F)
13694  #
13695  # CONFIG_FILE
13696  #
13697
13698  case $INSTALL in
13699  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13700  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13701  esac
13702  ac_MKDIR_P=$MKDIR_P
13703  case $MKDIR_P in
13704  [\\/$]* | ?:[\\/]* ) ;;
13705  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13706  esac
13707_ACEOF
13708
13709cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13710# If the template does not know about datarootdir, expand it.
13711# FIXME: This hack should be removed a few years after 2.60.
13712ac_datarootdir_hack=; ac_datarootdir_seen=
13713ac_sed_dataroot='
13714/datarootdir/ {
13715  p
13716  q
13717}
13718/@datadir@/p
13719/@docdir@/p
13720/@infodir@/p
13721/@localedir@/p
13722/@mandir@/p'
13723case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13724*datarootdir*) ac_datarootdir_seen=yes;;
13725*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13726  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13727printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13728_ACEOF
13729cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13730  ac_datarootdir_hack='
13731  s&@datadir@&$datadir&g
13732  s&@docdir@&$docdir&g
13733  s&@infodir@&$infodir&g
13734  s&@localedir@&$localedir&g
13735  s&@mandir@&$mandir&g
13736  s&\\\${datarootdir}&$datarootdir&g' ;;
13737esac
13738_ACEOF
13739
13740# Neutralize VPATH when `$srcdir' = `.'.
13741# Shell code in configure.ac might set extrasub.
13742# FIXME: do we really want to maintain this feature?
13743cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13744ac_sed_extra="$ac_vpsub
13745$extrasub
13746_ACEOF
13747cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13748:t
13749/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13750s|@configure_input@|$ac_sed_conf_input|;t t
13751s&@top_builddir@&$ac_top_builddir_sub&;t t
13752s&@top_build_prefix@&$ac_top_build_prefix&;t t
13753s&@srcdir@&$ac_srcdir&;t t
13754s&@abs_srcdir@&$ac_abs_srcdir&;t t
13755s&@top_srcdir@&$ac_top_srcdir&;t t
13756s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13757s&@builddir@&$ac_builddir&;t t
13758s&@abs_builddir@&$ac_abs_builddir&;t t
13759s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13760s&@INSTALL@&$ac_INSTALL&;t t
13761s&@MKDIR_P@&$ac_MKDIR_P&;t t
13762$ac_datarootdir_hack
13763"
13764eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13765  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13766
13767test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13768  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13769  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13770      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13771  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13772which seems to be undefined.  Please make sure it is defined" >&5
13773printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13774which seems to be undefined.  Please make sure it is defined" >&2;}
13775
13776  rm -f "$ac_tmp/stdin"
13777  case $ac_file in
13778  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13779  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13780  esac \
13781  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13782 ;;
13783  :H)
13784  #
13785  # CONFIG_HEADER
13786  #
13787  if test x"$ac_file" != x-; then
13788    {
13789      printf "%s\n" "/* $configure_input  */" >&1 \
13790      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13791    } >"$ac_tmp/config.h" \
13792      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13793    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13794      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13795printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13796    else
13797      rm -f "$ac_file"
13798      mv "$ac_tmp/config.h" "$ac_file" \
13799	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13800    fi
13801  else
13802    printf "%s\n" "/* $configure_input  */" >&1 \
13803      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13804      || as_fn_error $? "could not create -" "$LINENO" 5
13805  fi
13806# Compute "$ac_file"'s index in $config_headers.
13807_am_arg="$ac_file"
13808_am_stamp_count=1
13809for _am_header in $config_headers :; do
13810  case $_am_header in
13811    $_am_arg | $_am_arg:* )
13812      break ;;
13813    * )
13814      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13815  esac
13816done
13817echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13818$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13819	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13820	 X"$_am_arg" : 'X\(//\)$' \| \
13821	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13822printf "%s\n" X"$_am_arg" |
13823    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13824	    s//\1/
13825	    q
13826	  }
13827	  /^X\(\/\/\)[^/].*/{
13828	    s//\1/
13829	    q
13830	  }
13831	  /^X\(\/\/\)$/{
13832	    s//\1/
13833	    q
13834	  }
13835	  /^X\(\/\).*/{
13836	    s//\1/
13837	    q
13838	  }
13839	  s/.*/./; q'`/stamp-h$_am_stamp_count
13840 ;;
13841
13842  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13843printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13844 ;;
13845  esac
13846
13847
13848  case $ac_file$ac_mode in
13849    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13850  # Older Autoconf quotes --file arguments for eval, but not when files
13851  # are listed without --file.  Let's play safe and only enable the eval
13852  # if we detect the quoting.
13853  # TODO: see whether this extra hack can be removed once we start
13854  # requiring Autoconf 2.70 or later.
13855  case $CONFIG_FILES in #(
13856  *\'*) :
13857    eval set x "$CONFIG_FILES" ;; #(
13858  *) :
13859    set x $CONFIG_FILES ;; #(
13860  *) :
13861     ;;
13862esac
13863  shift
13864  # Used to flag and report bootstrapping failures.
13865  am_rc=0
13866  for am_mf
13867  do
13868    # Strip MF so we end up with the name of the file.
13869    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13870    # Check whether this is an Automake generated Makefile which includes
13871    # dependency-tracking related rules and includes.
13872    # Grep'ing the whole file directly is not great: AIX grep has a line
13873    # limit of 2048, but all sed's we know have understand at least 4000.
13874    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13875      || continue
13876    am_dirpart=`$as_dirname -- "$am_mf" ||
13877$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13878	 X"$am_mf" : 'X\(//\)[^/]' \| \
13879	 X"$am_mf" : 'X\(//\)$' \| \
13880	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13881printf "%s\n" X"$am_mf" |
13882    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13883	    s//\1/
13884	    q
13885	  }
13886	  /^X\(\/\/\)[^/].*/{
13887	    s//\1/
13888	    q
13889	  }
13890	  /^X\(\/\/\)$/{
13891	    s//\1/
13892	    q
13893	  }
13894	  /^X\(\/\).*/{
13895	    s//\1/
13896	    q
13897	  }
13898	  s/.*/./; q'`
13899    am_filepart=`$as_basename -- "$am_mf" ||
13900$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13901	 X"$am_mf" : 'X\(//\)$' \| \
13902	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13903printf "%s\n" X/"$am_mf" |
13904    sed '/^.*\/\([^/][^/]*\)\/*$/{
13905	    s//\1/
13906	    q
13907	  }
13908	  /^X\/\(\/\/\)$/{
13909	    s//\1/
13910	    q
13911	  }
13912	  /^X\/\(\/\).*/{
13913	    s//\1/
13914	    q
13915	  }
13916	  s/.*/./; q'`
13917    { echo "$as_me:$LINENO: cd "$am_dirpart" \
13918      && sed -e '/# am--include-marker/d' "$am_filepart" \
13919        | $MAKE -f - am--depfiles" >&5
13920   (cd "$am_dirpart" \
13921      && sed -e '/# am--include-marker/d' "$am_filepart" \
13922        | $MAKE -f - am--depfiles) >&5 2>&5
13923   ac_status=$?
13924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925   (exit $ac_status); } || am_rc=$?
13926  done
13927  if test $am_rc -ne 0; then
13928    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13929printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13930as_fn_error $? "Something went wrong bootstrapping makefile fragments
13931    for automatic dependency tracking.  If GNU make was not used, consider
13932    re-running the configure script with MAKE=\"gmake\" (or whatever is
13933    necessary).  You can also try re-running configure with the
13934    '--disable-dependency-tracking' option to at least be able to build
13935    the package (albeit without support for automatic dependency tracking).
13936See \`config.log' for more details" "$LINENO" 5; }
13937  fi
13938  { am_dirpart=; unset am_dirpart;}
13939  { am_filepart=; unset am_filepart;}
13940  { am_mf=; unset am_mf;}
13941  { am_rc=; unset am_rc;}
13942  rm -f conftest-deps.mk
13943}
13944 ;;
13945
13946  esac
13947done # for ac_tag
13948
13949
13950as_fn_exit 0
13951_ACEOF
13952ac_clean_files=$ac_clean_files_save
13953
13954test $ac_write_fail = 0 ||
13955  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13956
13957
13958# configure is writing to config.log, and then calls config.status.
13959# config.status does its own redirection, appending to config.log.
13960# Unfortunately, on DOS this fails, as config.log is still kept open
13961# by configure, so config.status won't be able to write to it; its
13962# output is simply discarded.  So we exec the FD to /dev/null,
13963# effectively closing config.log, so it can be properly (re)opened and
13964# appended to by config.status.  When coming back to configure, we
13965# need to make the FD available again.
13966if test "$no_create" != yes; then
13967  ac_cs_success=:
13968  ac_config_status_args=
13969  test "$silent" = yes &&
13970    ac_config_status_args="$ac_config_status_args --quiet"
13971  exec 5>/dev/null
13972  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13973  exec 5>>config.log
13974  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13975  # would make configure fail if this is the last instruction.
13976  $ac_cs_success || as_fn_exit 1
13977fi
13978if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13979  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13980printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13981fi
13982
13983
13984