configure revision b5cf802f
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xprop 1.2.4.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xprop/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
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  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214  IFS=$as_save_IFS
215  test -z "$as_dir" && as_dir=.
216  as_found=:
217  case $as_dir in #(
218	 /*)
219	   for as_base in sh bash ksh sh5; do
220	     # Try only shells that exist, to save several forks.
221	     as_shell=$as_dir/$as_base
222	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226  break 2
227fi
228fi
229	   done;;
230       esac
231  as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235  CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240      if test "x$CONFIG_SHELL" != x; then :
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'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno; then :
263  $as_echo "$0: This script requires a shell more modern than all"
264  $as_echo "$0: the shells that I found on your system."
265  if test x${ZSH_VERSION+set} = xset ; then
266    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268  else
269    $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: https://gitlab.freedesktop.org/xorg/app/xprop/issues
271$0: about your system, including any error possibly output
272$0: before this message. Then install a modern shell, or
273$0: manually run the script under such a shell if you do
274$0: have one."
275  fi
276  exit 1
277fi
278fi
279fi
280SHELL=${CONFIG_SHELL-/bin/sh}
281export SHELL
282# Unset more variables known to interfere with behavior of common tools.
283CLICOLOR_FORCE= GREP_OPTIONS=
284unset CLICOLOR_FORCE GREP_OPTIONS
285
286## --------------------- ##
287## M4sh Shell Functions. ##
288## --------------------- ##
289# as_fn_unset VAR
290# ---------------
291# Portably unset VAR.
292as_fn_unset ()
293{
294  { eval $1=; unset $1;}
295}
296as_unset=as_fn_unset
297
298# as_fn_set_status STATUS
299# -----------------------
300# Set $? to STATUS, without forking.
301as_fn_set_status ()
302{
303  return $1
304} # as_fn_set_status
305
306# as_fn_exit STATUS
307# -----------------
308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309as_fn_exit ()
310{
311  set +e
312  as_fn_set_status $1
313  exit $1
314} # as_fn_exit
315
316# as_fn_mkdir_p
317# -------------
318# Create "$as_dir" as a directory, including parents if necessary.
319as_fn_mkdir_p ()
320{
321
322  case $as_dir in #(
323  -*) as_dir=./$as_dir;;
324  esac
325  test -d "$as_dir" || eval $as_mkdir_p || {
326    as_dirs=
327    while :; do
328      case $as_dir in #(
329      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330      *) as_qdir=$as_dir;;
331      esac
332      as_dirs="'$as_qdir' $as_dirs"
333      as_dir=`$as_dirname -- "$as_dir" ||
334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335	 X"$as_dir" : 'X\(//\)[^/]' \| \
336	 X"$as_dir" : 'X\(//\)$' \| \
337	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338$as_echo X"$as_dir" |
339    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)[^/].*/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\).*/{
352	    s//\1/
353	    q
354	  }
355	  s/.*/./; q'`
356      test -d "$as_dir" && break
357    done
358    test -z "$as_dirs" || eval "mkdir $as_dirs"
359  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362} # as_fn_mkdir_p
363
364# as_fn_executable_p FILE
365# -----------------------
366# Test if FILE is an executable regular file.
367as_fn_executable_p ()
368{
369  test -f "$1" && test -x "$1"
370} # as_fn_executable_p
371# as_fn_append VAR VALUE
372# ----------------------
373# Append the text in VALUE to the end of the definition contained in VAR. Take
374# advantage of any shell optimizations that allow amortized linear growth over
375# repeated appends, instead of the typical quadratic growth present in naive
376# implementations.
377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378  eval 'as_fn_append ()
379  {
380    eval $1+=\$2
381  }'
382else
383  as_fn_append ()
384  {
385    eval $1=\$$1\$2
386  }
387fi # as_fn_append
388
389# as_fn_arith ARG...
390# ------------------
391# Perform arithmetic evaluation on the ARGs, and store the result in the
392# global $as_val. Take advantage of shells that can avoid forks. The arguments
393# must be portable across $(()) and expr.
394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395  eval 'as_fn_arith ()
396  {
397    as_val=$(( $* ))
398  }'
399else
400  as_fn_arith ()
401  {
402    as_val=`expr "$@" || test $? -eq 1`
403  }
404fi # as_fn_arith
405
406
407# as_fn_error STATUS ERROR [LINENO LOG_FD]
408# ----------------------------------------
409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411# script with STATUS, using 1 if that was 0.
412as_fn_error ()
413{
414  as_status=$1; test $as_status -eq 0 && as_status=1
415  if test "$4"; then
416    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418  fi
419  $as_echo "$as_me: error: $2" >&2
420  as_fn_exit $as_status
421} # as_fn_error
422
423if expr a : '\(a\)' >/dev/null 2>&1 &&
424   test "X`expr 00001 : '.*\(...\)'`" = X001; then
425  as_expr=expr
426else
427  as_expr=false
428fi
429
430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431  as_basename=basename
432else
433  as_basename=false
434fi
435
436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437  as_dirname=dirname
438else
439  as_dirname=false
440fi
441
442as_me=`$as_basename -- "$0" ||
443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444	 X"$0" : 'X\(//\)$' \| \
445	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446$as_echo X/"$0" |
447    sed '/^.*\/\([^/][^/]*\)\/*$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\/\)$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\).*/{
456	    s//\1/
457	    q
458	  }
459	  s/.*/./; q'`
460
461# Avoid depending upon Character Ranges.
462as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465as_cr_digits='0123456789'
466as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469  as_lineno_1=$LINENO as_lineno_1a=$LINENO
470  as_lineno_2=$LINENO as_lineno_2a=$LINENO
471  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
474  sed -n '
475    p
476    /[$]LINENO/=
477  ' <$as_myself |
478    sed '
479      s/[$]LINENO.*/&-/
480      t lineno
481      b
482      :lineno
483      N
484      :loop
485      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486      t loop
487      s/-\n.*//
488    ' >$as_me.lineno &&
489  chmod +x "$as_me.lineno" ||
490    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493  # already done that, so ensure we don't try to do so again and fall
494  # in an infinite loop.  This has already happened in practice.
495  _as_can_reexec=no; export _as_can_reexec
496  # Don't try to exec as it changes $[0], causing all sort of problems
497  # (the dirname of $[0] is not the place where we might find the
498  # original and so on.  Autoconf is especially sensitive to this).
499  . "./$as_me.lineno"
500  # Exit status is that of the last command.
501  exit
502}
503
504ECHO_C= ECHO_N= ECHO_T=
505case `echo -n x` in #(((((
506-n*)
507  case `echo 'xy\c'` in
508  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
509  xy)  ECHO_C='\c';;
510  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
511       ECHO_T='	';;
512  esac;;
513*)
514  ECHO_N='-n';;
515esac
516
517rm -f conf$$ conf$$.exe conf$$.file
518if test -d conf$$.dir; then
519  rm -f conf$$.dir/conf$$.file
520else
521  rm -f conf$$.dir
522  mkdir conf$$.dir 2>/dev/null
523fi
524if (echo >conf$$.file) 2>/dev/null; then
525  if ln -s conf$$.file conf$$ 2>/dev/null; then
526    as_ln_s='ln -s'
527    # ... but there are two gotchas:
528    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530    # In both cases, we have to default to `cp -pR'.
531    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532      as_ln_s='cp -pR'
533  elif ln conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s=ln
535  else
536    as_ln_s='cp -pR'
537  fi
538else
539  as_ln_s='cp -pR'
540fi
541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542rmdir conf$$.dir 2>/dev/null
543
544if mkdir -p . 2>/dev/null; then
545  as_mkdir_p='mkdir -p "$as_dir"'
546else
547  test -d ./-p && rmdir ./-p
548  as_mkdir_p=false
549fi
550
551as_test_x='test -x'
552as_executable_p=as_fn_executable_p
553
554# Sed expression to map a string onto a valid CPP name.
555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557# Sed expression to map a string onto a valid variable name.
558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561test -n "$DJDIR" || exec 7<&0 </dev/null
562exec 6>&1
563
564# Name of the host.
565# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566# so uname gets run too.
567ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569#
570# Initializations.
571#
572ac_default_prefix=/usr/local
573ac_clean_files=
574ac_config_libobj_dir=.
575LIBOBJS=
576cross_compiling=no
577subdirs=
578MFLAGS=
579MAKEFLAGS=
580
581# Identity of this package.
582PACKAGE_NAME='xprop'
583PACKAGE_TARNAME='xprop'
584PACKAGE_VERSION='1.2.4'
585PACKAGE_STRING='xprop 1.2.4'
586PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xprop/issues'
587PACKAGE_URL=''
588
589ac_unique_file="Makefile.am"
590# Factoring default headers for most tests.
591ac_includes_default="\
592#include <stdio.h>
593#ifdef HAVE_SYS_TYPES_H
594# include <sys/types.h>
595#endif
596#ifdef HAVE_SYS_STAT_H
597# include <sys/stat.h>
598#endif
599#ifdef STDC_HEADERS
600# include <stdlib.h>
601# include <stddef.h>
602#else
603# ifdef HAVE_STDLIB_H
604#  include <stdlib.h>
605# endif
606#endif
607#ifdef HAVE_STRING_H
608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609#  include <memory.h>
610# endif
611# include <string.h>
612#endif
613#ifdef HAVE_STRINGS_H
614# include <strings.h>
615#endif
616#ifdef HAVE_INTTYPES_H
617# include <inttypes.h>
618#endif
619#ifdef HAVE_STDINT_H
620# include <stdint.h>
621#endif
622#ifdef HAVE_UNISTD_H
623# include <unistd.h>
624#endif"
625
626ac_subst_vars='am__EXEEXT_FALSE
627am__EXEEXT_TRUE
628LTLIBOBJS
629LIBOBJS
630LINT_FALSE
631LINT_TRUE
632LINT_FLAGS
633LINT
634XPROP_LIBS
635XPROP_CFLAGS
636MAN_SUBSTS
637XORG_MAN_PAGE
638ADMIN_MAN_DIR
639DRIVER_MAN_DIR
640MISC_MAN_DIR
641FILE_MAN_DIR
642LIB_MAN_DIR
643APP_MAN_DIR
644ADMIN_MAN_SUFFIX
645DRIVER_MAN_SUFFIX
646MISC_MAN_SUFFIX
647FILE_MAN_SUFFIX
648LIB_MAN_SUFFIX
649APP_MAN_SUFFIX
650SED
651host_os
652host_vendor
653host_cpu
654host
655build_os
656build_vendor
657build_cpu
658build
659INSTALL_CMD
660PKG_CONFIG_LIBDIR
661PKG_CONFIG_PATH
662PKG_CONFIG
663CHANGELOG_CMD
664STRICT_CFLAGS
665CWARNFLAGS
666BASE_CFLAGS
667EGREP
668GREP
669CPP
670am__fastdepCC_FALSE
671am__fastdepCC_TRUE
672CCDEPMODE
673am__nodep
674AMDEPBACKSLASH
675AMDEP_FALSE
676AMDEP_TRUE
677am__quote
678am__include
679DEPDIR
680OBJEXT
681EXEEXT
682ac_ct_CC
683CPPFLAGS
684LDFLAGS
685CFLAGS
686CC
687AM_BACKSLASH
688AM_DEFAULT_VERBOSITY
689AM_DEFAULT_V
690AM_V
691am__untar
692am__tar
693AMTAR
694am__leading_dot
695SET_MAKE
696AWK
697mkdir_p
698MKDIR_P
699INSTALL_STRIP_PROGRAM
700STRIP
701install_sh
702MAKEINFO
703AUTOHEADER
704AUTOMAKE
705AUTOCONF
706ACLOCAL
707VERSION
708PACKAGE
709CYGPATH_W
710am__isrc
711INSTALL_DATA
712INSTALL_SCRIPT
713INSTALL_PROGRAM
714target_alias
715host_alias
716build_alias
717LIBS
718ECHO_T
719ECHO_N
720ECHO_C
721DEFS
722mandir
723localedir
724libdir
725psdir
726pdfdir
727dvidir
728htmldir
729infodir
730docdir
731oldincludedir
732includedir
733localstatedir
734sharedstatedir
735sysconfdir
736datadir
737datarootdir
738libexecdir
739sbindir
740bindir
741program_transform_name
742prefix
743exec_prefix
744PACKAGE_URL
745PACKAGE_BUGREPORT
746PACKAGE_STRING
747PACKAGE_VERSION
748PACKAGE_TARNAME
749PACKAGE_NAME
750PATH_SEPARATOR
751SHELL'
752ac_subst_files=''
753ac_user_opts='
754enable_option_checking
755enable_silent_rules
756enable_dependency_tracking
757enable_selective_werror
758enable_strict_compilation
759with_lint
760'
761      ac_precious_vars='build_alias
762host_alias
763target_alias
764CC
765CFLAGS
766LDFLAGS
767LIBS
768CPPFLAGS
769CPP
770PKG_CONFIG
771PKG_CONFIG_PATH
772PKG_CONFIG_LIBDIR
773XPROP_CFLAGS
774XPROP_LIBS
775LINT
776LINT_FLAGS'
777
778
779# Initialize some variables set by options.
780ac_init_help=
781ac_init_version=false
782ac_unrecognized_opts=
783ac_unrecognized_sep=
784# The variables have the same names as the options, with
785# dashes changed to underlines.
786cache_file=/dev/null
787exec_prefix=NONE
788no_create=
789no_recursion=
790prefix=NONE
791program_prefix=NONE
792program_suffix=NONE
793program_transform_name=s,x,x,
794silent=
795site=
796srcdir=
797verbose=
798x_includes=NONE
799x_libraries=NONE
800
801# Installation directory options.
802# These are left unexpanded so users can "make install exec_prefix=/foo"
803# and all the variables that are supposed to be based on exec_prefix
804# by default will actually change.
805# Use braces instead of parens because sh, perl, etc. also accept them.
806# (The list follows the same order as the GNU Coding Standards.)
807bindir='${exec_prefix}/bin'
808sbindir='${exec_prefix}/sbin'
809libexecdir='${exec_prefix}/libexec'
810datarootdir='${prefix}/share'
811datadir='${datarootdir}'
812sysconfdir='${prefix}/etc'
813sharedstatedir='${prefix}/com'
814localstatedir='${prefix}/var'
815includedir='${prefix}/include'
816oldincludedir='/usr/include'
817docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
818infodir='${datarootdir}/info'
819htmldir='${docdir}'
820dvidir='${docdir}'
821pdfdir='${docdir}'
822psdir='${docdir}'
823libdir='${exec_prefix}/lib'
824localedir='${datarootdir}/locale'
825mandir='${datarootdir}/man'
826
827ac_prev=
828ac_dashdash=
829for ac_option
830do
831  # If the previous option needs an argument, assign it.
832  if test -n "$ac_prev"; then
833    eval $ac_prev=\$ac_option
834    ac_prev=
835    continue
836  fi
837
838  case $ac_option in
839  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
840  *=)   ac_optarg= ;;
841  *)    ac_optarg=yes ;;
842  esac
843
844  # Accept the important Cygnus configure options, so we can diagnose typos.
845
846  case $ac_dashdash$ac_option in
847  --)
848    ac_dashdash=yes ;;
849
850  -bindir | --bindir | --bindi | --bind | --bin | --bi)
851    ac_prev=bindir ;;
852  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
853    bindir=$ac_optarg ;;
854
855  -build | --build | --buil | --bui | --bu)
856    ac_prev=build_alias ;;
857  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
858    build_alias=$ac_optarg ;;
859
860  -cache-file | --cache-file | --cache-fil | --cache-fi \
861  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
862    ac_prev=cache_file ;;
863  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
864  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
865    cache_file=$ac_optarg ;;
866
867  --config-cache | -C)
868    cache_file=config.cache ;;
869
870  -datadir | --datadir | --datadi | --datad)
871    ac_prev=datadir ;;
872  -datadir=* | --datadir=* | --datadi=* | --datad=*)
873    datadir=$ac_optarg ;;
874
875  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
876  | --dataroo | --dataro | --datar)
877    ac_prev=datarootdir ;;
878  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
879  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
880    datarootdir=$ac_optarg ;;
881
882  -disable-* | --disable-*)
883    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
884    # Reject names that are not valid shell variable names.
885    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
886      as_fn_error $? "invalid feature name: $ac_useropt"
887    ac_useropt_orig=$ac_useropt
888    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
889    case $ac_user_opts in
890      *"
891"enable_$ac_useropt"
892"*) ;;
893      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
894	 ac_unrecognized_sep=', ';;
895    esac
896    eval enable_$ac_useropt=no ;;
897
898  -docdir | --docdir | --docdi | --doc | --do)
899    ac_prev=docdir ;;
900  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
901    docdir=$ac_optarg ;;
902
903  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
904    ac_prev=dvidir ;;
905  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
906    dvidir=$ac_optarg ;;
907
908  -enable-* | --enable-*)
909    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
910    # Reject names that are not valid shell variable names.
911    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912      as_fn_error $? "invalid feature name: $ac_useropt"
913    ac_useropt_orig=$ac_useropt
914    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915    case $ac_user_opts in
916      *"
917"enable_$ac_useropt"
918"*) ;;
919      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
920	 ac_unrecognized_sep=', ';;
921    esac
922    eval enable_$ac_useropt=\$ac_optarg ;;
923
924  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
925  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
926  | --exec | --exe | --ex)
927    ac_prev=exec_prefix ;;
928  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
929  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
930  | --exec=* | --exe=* | --ex=*)
931    exec_prefix=$ac_optarg ;;
932
933  -gas | --gas | --ga | --g)
934    # Obsolete; use --with-gas.
935    with_gas=yes ;;
936
937  -help | --help | --hel | --he | -h)
938    ac_init_help=long ;;
939  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
940    ac_init_help=recursive ;;
941  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
942    ac_init_help=short ;;
943
944  -host | --host | --hos | --ho)
945    ac_prev=host_alias ;;
946  -host=* | --host=* | --hos=* | --ho=*)
947    host_alias=$ac_optarg ;;
948
949  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
950    ac_prev=htmldir ;;
951  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
952  | --ht=*)
953    htmldir=$ac_optarg ;;
954
955  -includedir | --includedir | --includedi | --included | --include \
956  | --includ | --inclu | --incl | --inc)
957    ac_prev=includedir ;;
958  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
959  | --includ=* | --inclu=* | --incl=* | --inc=*)
960    includedir=$ac_optarg ;;
961
962  -infodir | --infodir | --infodi | --infod | --info | --inf)
963    ac_prev=infodir ;;
964  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
965    infodir=$ac_optarg ;;
966
967  -libdir | --libdir | --libdi | --libd)
968    ac_prev=libdir ;;
969  -libdir=* | --libdir=* | --libdi=* | --libd=*)
970    libdir=$ac_optarg ;;
971
972  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
973  | --libexe | --libex | --libe)
974    ac_prev=libexecdir ;;
975  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
976  | --libexe=* | --libex=* | --libe=*)
977    libexecdir=$ac_optarg ;;
978
979  -localedir | --localedir | --localedi | --localed | --locale)
980    ac_prev=localedir ;;
981  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
982    localedir=$ac_optarg ;;
983
984  -localstatedir | --localstatedir | --localstatedi | --localstated \
985  | --localstate | --localstat | --localsta | --localst | --locals)
986    ac_prev=localstatedir ;;
987  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
988  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
989    localstatedir=$ac_optarg ;;
990
991  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
992    ac_prev=mandir ;;
993  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
994    mandir=$ac_optarg ;;
995
996  -nfp | --nfp | --nf)
997    # Obsolete; use --without-fp.
998    with_fp=no ;;
999
1000  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1001  | --no-cr | --no-c | -n)
1002    no_create=yes ;;
1003
1004  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1005  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1006    no_recursion=yes ;;
1007
1008  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1009  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1010  | --oldin | --oldi | --old | --ol | --o)
1011    ac_prev=oldincludedir ;;
1012  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1013  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1014  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1015    oldincludedir=$ac_optarg ;;
1016
1017  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1018    ac_prev=prefix ;;
1019  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1020    prefix=$ac_optarg ;;
1021
1022  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1023  | --program-pre | --program-pr | --program-p)
1024    ac_prev=program_prefix ;;
1025  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1026  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1027    program_prefix=$ac_optarg ;;
1028
1029  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1030  | --program-suf | --program-su | --program-s)
1031    ac_prev=program_suffix ;;
1032  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1033  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1034    program_suffix=$ac_optarg ;;
1035
1036  -program-transform-name | --program-transform-name \
1037  | --program-transform-nam | --program-transform-na \
1038  | --program-transform-n | --program-transform- \
1039  | --program-transform | --program-transfor \
1040  | --program-transfo | --program-transf \
1041  | --program-trans | --program-tran \
1042  | --progr-tra | --program-tr | --program-t)
1043    ac_prev=program_transform_name ;;
1044  -program-transform-name=* | --program-transform-name=* \
1045  | --program-transform-nam=* | --program-transform-na=* \
1046  | --program-transform-n=* | --program-transform-=* \
1047  | --program-transform=* | --program-transfor=* \
1048  | --program-transfo=* | --program-transf=* \
1049  | --program-trans=* | --program-tran=* \
1050  | --progr-tra=* | --program-tr=* | --program-t=*)
1051    program_transform_name=$ac_optarg ;;
1052
1053  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1054    ac_prev=pdfdir ;;
1055  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1056    pdfdir=$ac_optarg ;;
1057
1058  -psdir | --psdir | --psdi | --psd | --ps)
1059    ac_prev=psdir ;;
1060  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1061    psdir=$ac_optarg ;;
1062
1063  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064  | -silent | --silent | --silen | --sile | --sil)
1065    silent=yes ;;
1066
1067  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1068    ac_prev=sbindir ;;
1069  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1070  | --sbi=* | --sb=*)
1071    sbindir=$ac_optarg ;;
1072
1073  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1074  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1075  | --sharedst | --shareds | --shared | --share | --shar \
1076  | --sha | --sh)
1077    ac_prev=sharedstatedir ;;
1078  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1079  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1080  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1081  | --sha=* | --sh=*)
1082    sharedstatedir=$ac_optarg ;;
1083
1084  -site | --site | --sit)
1085    ac_prev=site ;;
1086  -site=* | --site=* | --sit=*)
1087    site=$ac_optarg ;;
1088
1089  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1090    ac_prev=srcdir ;;
1091  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1092    srcdir=$ac_optarg ;;
1093
1094  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1095  | --syscon | --sysco | --sysc | --sys | --sy)
1096    ac_prev=sysconfdir ;;
1097  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1098  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1099    sysconfdir=$ac_optarg ;;
1100
1101  -target | --target | --targe | --targ | --tar | --ta | --t)
1102    ac_prev=target_alias ;;
1103  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1104    target_alias=$ac_optarg ;;
1105
1106  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1107    verbose=yes ;;
1108
1109  -version | --version | --versio | --versi | --vers | -V)
1110    ac_init_version=: ;;
1111
1112  -with-* | --with-*)
1113    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1114    # Reject names that are not valid shell variable names.
1115    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1116      as_fn_error $? "invalid package name: $ac_useropt"
1117    ac_useropt_orig=$ac_useropt
1118    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119    case $ac_user_opts in
1120      *"
1121"with_$ac_useropt"
1122"*) ;;
1123      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1124	 ac_unrecognized_sep=', ';;
1125    esac
1126    eval with_$ac_useropt=\$ac_optarg ;;
1127
1128  -without-* | --without-*)
1129    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1130    # Reject names that are not valid shell variable names.
1131    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132      as_fn_error $? "invalid package name: $ac_useropt"
1133    ac_useropt_orig=$ac_useropt
1134    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135    case $ac_user_opts in
1136      *"
1137"with_$ac_useropt"
1138"*) ;;
1139      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1140	 ac_unrecognized_sep=', ';;
1141    esac
1142    eval with_$ac_useropt=no ;;
1143
1144  --x)
1145    # Obsolete; use --with-x.
1146    with_x=yes ;;
1147
1148  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1149  | --x-incl | --x-inc | --x-in | --x-i)
1150    ac_prev=x_includes ;;
1151  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1152  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1153    x_includes=$ac_optarg ;;
1154
1155  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1156  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1157    ac_prev=x_libraries ;;
1158  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1159  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1160    x_libraries=$ac_optarg ;;
1161
1162  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1163Try \`$0 --help' for more information"
1164    ;;
1165
1166  *=*)
1167    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1168    # Reject names that are not valid shell variable names.
1169    case $ac_envvar in #(
1170      '' | [0-9]* | *[!_$as_cr_alnum]* )
1171      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1172    esac
1173    eval $ac_envvar=\$ac_optarg
1174    export $ac_envvar ;;
1175
1176  *)
1177    # FIXME: should be removed in autoconf 3.0.
1178    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1179    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1180      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1181    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1182    ;;
1183
1184  esac
1185done
1186
1187if test -n "$ac_prev"; then
1188  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1189  as_fn_error $? "missing argument to $ac_option"
1190fi
1191
1192if test -n "$ac_unrecognized_opts"; then
1193  case $enable_option_checking in
1194    no) ;;
1195    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1196    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1197  esac
1198fi
1199
1200# Check all directory arguments for consistency.
1201for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1202		datadir sysconfdir sharedstatedir localstatedir includedir \
1203		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1204		libdir localedir mandir
1205do
1206  eval ac_val=\$$ac_var
1207  # Remove trailing slashes.
1208  case $ac_val in
1209    */ )
1210      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1211      eval $ac_var=\$ac_val;;
1212  esac
1213  # Be sure to have absolute directory names.
1214  case $ac_val in
1215    [\\/$]* | ?:[\\/]* )  continue;;
1216    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1217  esac
1218  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1219done
1220
1221# There might be people who depend on the old broken behavior: `$host'
1222# used to hold the argument of --host etc.
1223# FIXME: To remove some day.
1224build=$build_alias
1225host=$host_alias
1226target=$target_alias
1227
1228# FIXME: To remove some day.
1229if test "x$host_alias" != x; then
1230  if test "x$build_alias" = x; then
1231    cross_compiling=maybe
1232  elif test "x$build_alias" != "x$host_alias"; then
1233    cross_compiling=yes
1234  fi
1235fi
1236
1237ac_tool_prefix=
1238test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239
1240test "$silent" = yes && exec 6>/dev/null
1241
1242
1243ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244ac_ls_di=`ls -di .` &&
1245ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246  as_fn_error $? "working directory cannot be determined"
1247test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248  as_fn_error $? "pwd does not report name of working directory"
1249
1250
1251# Find the source files, if location was not specified.
1252if test -z "$srcdir"; then
1253  ac_srcdir_defaulted=yes
1254  # Try the directory containing this script, then the parent directory.
1255  ac_confdir=`$as_dirname -- "$as_myself" ||
1256$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257	 X"$as_myself" : 'X\(//\)[^/]' \| \
1258	 X"$as_myself" : 'X\(//\)$' \| \
1259	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1260$as_echo X"$as_myself" |
1261    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262	    s//\1/
1263	    q
1264	  }
1265	  /^X\(\/\/\)[^/].*/{
1266	    s//\1/
1267	    q
1268	  }
1269	  /^X\(\/\/\)$/{
1270	    s//\1/
1271	    q
1272	  }
1273	  /^X\(\/\).*/{
1274	    s//\1/
1275	    q
1276	  }
1277	  s/.*/./; q'`
1278  srcdir=$ac_confdir
1279  if test ! -r "$srcdir/$ac_unique_file"; then
1280    srcdir=..
1281  fi
1282else
1283  ac_srcdir_defaulted=no
1284fi
1285if test ! -r "$srcdir/$ac_unique_file"; then
1286  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1288fi
1289ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290ac_abs_confdir=`(
1291	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1292	pwd)`
1293# When building in place, set srcdir=.
1294if test "$ac_abs_confdir" = "$ac_pwd"; then
1295  srcdir=.
1296fi
1297# Remove unnecessary trailing slashes from srcdir.
1298# Double slashes in file names in object file debugging info
1299# mess up M-x gdb in Emacs.
1300case $srcdir in
1301*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1302esac
1303for ac_var in $ac_precious_vars; do
1304  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1305  eval ac_env_${ac_var}_value=\$${ac_var}
1306  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1307  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1308done
1309
1310#
1311# Report the --help message.
1312#
1313if test "$ac_init_help" = "long"; then
1314  # Omit some internal or obsolete options to make the list less imposing.
1315  # This message is too long to be a string in the A/UX 3.1 sh.
1316  cat <<_ACEOF
1317\`configure' configures xprop 1.2.4 to adapt to many kinds of systems.
1318
1319Usage: $0 [OPTION]... [VAR=VALUE]...
1320
1321To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322VAR=VALUE.  See below for descriptions of some of the useful variables.
1323
1324Defaults for the options are specified in brackets.
1325
1326Configuration:
1327  -h, --help              display this help and exit
1328      --help=short        display options specific to this package
1329      --help=recursive    display the short help of all the included packages
1330  -V, --version           display version information and exit
1331  -q, --quiet, --silent   do not print \`checking ...' messages
1332      --cache-file=FILE   cache test results in FILE [disabled]
1333  -C, --config-cache      alias for \`--cache-file=config.cache'
1334  -n, --no-create         do not create output files
1335      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1336
1337Installation directories:
1338  --prefix=PREFIX         install architecture-independent files in PREFIX
1339                          [$ac_default_prefix]
1340  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1341                          [PREFIX]
1342
1343By default, \`make install' will install all the files in
1344\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1345an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346for instance \`--prefix=\$HOME'.
1347
1348For better control, use the options below.
1349
1350Fine tuning of the installation directories:
1351  --bindir=DIR            user executables [EPREFIX/bin]
1352  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1353  --libexecdir=DIR        program executables [EPREFIX/libexec]
1354  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1355  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1356  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1357  --libdir=DIR            object code libraries [EPREFIX/lib]
1358  --includedir=DIR        C header files [PREFIX/include]
1359  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1360  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1361  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1362  --infodir=DIR           info documentation [DATAROOTDIR/info]
1363  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1364  --mandir=DIR            man documentation [DATAROOTDIR/man]
1365  --docdir=DIR            documentation root [DATAROOTDIR/doc/xprop]
1366  --htmldir=DIR           html documentation [DOCDIR]
1367  --dvidir=DIR            dvi documentation [DOCDIR]
1368  --pdfdir=DIR            pdf documentation [DOCDIR]
1369  --psdir=DIR             ps documentation [DOCDIR]
1370_ACEOF
1371
1372  cat <<\_ACEOF
1373
1374Program names:
1375  --program-prefix=PREFIX            prepend PREFIX to installed program names
1376  --program-suffix=SUFFIX            append SUFFIX to installed program names
1377  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1378
1379System types:
1380  --build=BUILD     configure for building on BUILD [guessed]
1381  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1382_ACEOF
1383fi
1384
1385if test -n "$ac_init_help"; then
1386  case $ac_init_help in
1387     short | recursive ) echo "Configuration of xprop 1.2.4:";;
1388   esac
1389  cat <<\_ACEOF
1390
1391Optional Features:
1392  --disable-option-checking  ignore unrecognized --enable/--with options
1393  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1394  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1395  --enable-silent-rules   less verbose build output (undo: "make V=1")
1396  --disable-silent-rules  verbose build output (undo: "make V=0")
1397  --enable-dependency-tracking
1398                          do not reject slow dependency extractors
1399  --disable-dependency-tracking
1400                          speeds up one-time build
1401  --disable-selective-werror
1402                          Turn off selective compiler errors. (default:
1403                          enabled)
1404  --enable-strict-compilation
1405                          Enable all warnings from compiler and make them
1406                          errors (default: disabled)
1407
1408Optional Packages:
1409  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1410  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1411  --with-lint             Use a lint-style source code checker (default:
1412                          disabled)
1413
1414Some influential environment variables:
1415  CC          C compiler command
1416  CFLAGS      C compiler flags
1417  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1418              nonstandard directory <lib dir>
1419  LIBS        libraries to pass to the linker, e.g. -l<library>
1420  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1421              you have headers in a nonstandard directory <include dir>
1422  CPP         C preprocessor
1423  PKG_CONFIG  path to pkg-config utility
1424  PKG_CONFIG_PATH
1425              directories to add to pkg-config's search path
1426  PKG_CONFIG_LIBDIR
1427              path overriding pkg-config's built-in search path
1428  XPROP_CFLAGS
1429              C compiler flags for XPROP, overriding pkg-config
1430  XPROP_LIBS  linker flags for XPROP, overriding pkg-config
1431  LINT        Path to a lint-style command
1432  LINT_FLAGS  Flags for the lint-style command
1433
1434Use these variables to override the choices made by `configure' or to help
1435it to find libraries and programs with nonstandard names/locations.
1436
1437Report bugs to <https://gitlab.freedesktop.org/xorg/app/xprop/issues>.
1438_ACEOF
1439ac_status=$?
1440fi
1441
1442if test "$ac_init_help" = "recursive"; then
1443  # If there are subdirs, report their specific --help.
1444  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1445    test -d "$ac_dir" ||
1446      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1447      continue
1448    ac_builddir=.
1449
1450case "$ac_dir" in
1451.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1452*)
1453  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1454  # A ".." for each directory in $ac_dir_suffix.
1455  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1456  case $ac_top_builddir_sub in
1457  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1458  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1459  esac ;;
1460esac
1461ac_abs_top_builddir=$ac_pwd
1462ac_abs_builddir=$ac_pwd$ac_dir_suffix
1463# for backward compatibility:
1464ac_top_builddir=$ac_top_build_prefix
1465
1466case $srcdir in
1467  .)  # We are building in place.
1468    ac_srcdir=.
1469    ac_top_srcdir=$ac_top_builddir_sub
1470    ac_abs_top_srcdir=$ac_pwd ;;
1471  [\\/]* | ?:[\\/]* )  # Absolute name.
1472    ac_srcdir=$srcdir$ac_dir_suffix;
1473    ac_top_srcdir=$srcdir
1474    ac_abs_top_srcdir=$srcdir ;;
1475  *) # Relative name.
1476    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1477    ac_top_srcdir=$ac_top_build_prefix$srcdir
1478    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1479esac
1480ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1481
1482    cd "$ac_dir" || { ac_status=$?; continue; }
1483    # Check for guested configure.
1484    if test -f "$ac_srcdir/configure.gnu"; then
1485      echo &&
1486      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1487    elif test -f "$ac_srcdir/configure"; then
1488      echo &&
1489      $SHELL "$ac_srcdir/configure" --help=recursive
1490    else
1491      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1492    fi || ac_status=$?
1493    cd "$ac_pwd" || { ac_status=$?; break; }
1494  done
1495fi
1496
1497test -n "$ac_init_help" && exit $ac_status
1498if $ac_init_version; then
1499  cat <<\_ACEOF
1500xprop configure 1.2.4
1501generated by GNU Autoconf 2.69
1502
1503Copyright (C) 2012 Free Software Foundation, Inc.
1504This configure script is free software; the Free Software Foundation
1505gives unlimited permission to copy, distribute and modify it.
1506_ACEOF
1507  exit
1508fi
1509
1510## ------------------------ ##
1511## Autoconf initialization. ##
1512## ------------------------ ##
1513
1514# ac_fn_c_try_compile LINENO
1515# --------------------------
1516# Try to compile conftest.$ac_ext, and return whether this succeeded.
1517ac_fn_c_try_compile ()
1518{
1519  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1520  rm -f conftest.$ac_objext
1521  if { { ac_try="$ac_compile"
1522case "(($ac_try" in
1523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1524  *) ac_try_echo=$ac_try;;
1525esac
1526eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1527$as_echo "$ac_try_echo"; } >&5
1528  (eval "$ac_compile") 2>conftest.err
1529  ac_status=$?
1530  if test -s conftest.err; then
1531    grep -v '^ *+' conftest.err >conftest.er1
1532    cat conftest.er1 >&5
1533    mv -f conftest.er1 conftest.err
1534  fi
1535  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1536  test $ac_status = 0; } && {
1537	 test -z "$ac_c_werror_flag" ||
1538	 test ! -s conftest.err
1539       } && test -s conftest.$ac_objext; then :
1540  ac_retval=0
1541else
1542  $as_echo "$as_me: failed program was:" >&5
1543sed 's/^/| /' conftest.$ac_ext >&5
1544
1545	ac_retval=1
1546fi
1547  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1548  as_fn_set_status $ac_retval
1549
1550} # ac_fn_c_try_compile
1551
1552# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1553# ---------------------------------------------
1554# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1555# accordingly.
1556ac_fn_c_check_decl ()
1557{
1558  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559  as_decl_name=`echo $2|sed 's/ *(.*//'`
1560  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1561  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1562$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1563if eval \${$3+:} false; then :
1564  $as_echo_n "(cached) " >&6
1565else
1566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1567/* end confdefs.h.  */
1568$4
1569int
1570main ()
1571{
1572#ifndef $as_decl_name
1573#ifdef __cplusplus
1574  (void) $as_decl_use;
1575#else
1576  (void) $as_decl_name;
1577#endif
1578#endif
1579
1580  ;
1581  return 0;
1582}
1583_ACEOF
1584if ac_fn_c_try_compile "$LINENO"; then :
1585  eval "$3=yes"
1586else
1587  eval "$3=no"
1588fi
1589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1590fi
1591eval ac_res=\$$3
1592	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1593$as_echo "$ac_res" >&6; }
1594  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1595
1596} # ac_fn_c_check_decl
1597
1598# ac_fn_c_try_cpp LINENO
1599# ----------------------
1600# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1601ac_fn_c_try_cpp ()
1602{
1603  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604  if { { ac_try="$ac_cpp conftest.$ac_ext"
1605case "(($ac_try" in
1606  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1607  *) ac_try_echo=$ac_try;;
1608esac
1609eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1610$as_echo "$ac_try_echo"; } >&5
1611  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1612  ac_status=$?
1613  if test -s conftest.err; then
1614    grep -v '^ *+' conftest.err >conftest.er1
1615    cat conftest.er1 >&5
1616    mv -f conftest.er1 conftest.err
1617  fi
1618  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1619  test $ac_status = 0; } > conftest.i && {
1620	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1621	 test ! -s conftest.err
1622       }; then :
1623  ac_retval=0
1624else
1625  $as_echo "$as_me: failed program was:" >&5
1626sed 's/^/| /' conftest.$ac_ext >&5
1627
1628    ac_retval=1
1629fi
1630  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1631  as_fn_set_status $ac_retval
1632
1633} # ac_fn_c_try_cpp
1634
1635# ac_fn_c_try_run LINENO
1636# ----------------------
1637# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1638# that executables *can* be run.
1639ac_fn_c_try_run ()
1640{
1641  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642  if { { ac_try="$ac_link"
1643case "(($ac_try" in
1644  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645  *) ac_try_echo=$ac_try;;
1646esac
1647eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648$as_echo "$ac_try_echo"; } >&5
1649  (eval "$ac_link") 2>&5
1650  ac_status=$?
1651  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1653  { { case "(($ac_try" in
1654  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655  *) ac_try_echo=$ac_try;;
1656esac
1657eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658$as_echo "$ac_try_echo"; } >&5
1659  (eval "$ac_try") 2>&5
1660  ac_status=$?
1661  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662  test $ac_status = 0; }; }; then :
1663  ac_retval=0
1664else
1665  $as_echo "$as_me: program exited with status $ac_status" >&5
1666       $as_echo "$as_me: failed program was:" >&5
1667sed 's/^/| /' conftest.$ac_ext >&5
1668
1669       ac_retval=$ac_status
1670fi
1671  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1672  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673  as_fn_set_status $ac_retval
1674
1675} # ac_fn_c_try_run
1676
1677# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1678# -------------------------------------------------------
1679# Tests whether HEADER exists and can be compiled using the include files in
1680# INCLUDES, setting the cache variable VAR accordingly.
1681ac_fn_c_check_header_compile ()
1682{
1683  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1685$as_echo_n "checking for $2... " >&6; }
1686if eval \${$3+:} false; then :
1687  $as_echo_n "(cached) " >&6
1688else
1689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1690/* end confdefs.h.  */
1691$4
1692#include <$2>
1693_ACEOF
1694if ac_fn_c_try_compile "$LINENO"; then :
1695  eval "$3=yes"
1696else
1697  eval "$3=no"
1698fi
1699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1700fi
1701eval ac_res=\$$3
1702	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1703$as_echo "$ac_res" >&6; }
1704  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705
1706} # ac_fn_c_check_header_compile
1707
1708# ac_fn_c_try_link LINENO
1709# -----------------------
1710# Try to link conftest.$ac_ext, and return whether this succeeded.
1711ac_fn_c_try_link ()
1712{
1713  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714  rm -f conftest.$ac_objext conftest$ac_exeext
1715  if { { ac_try="$ac_link"
1716case "(($ac_try" in
1717  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718  *) ac_try_echo=$ac_try;;
1719esac
1720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721$as_echo "$ac_try_echo"; } >&5
1722  (eval "$ac_link") 2>conftest.err
1723  ac_status=$?
1724  if test -s conftest.err; then
1725    grep -v '^ *+' conftest.err >conftest.er1
1726    cat conftest.er1 >&5
1727    mv -f conftest.er1 conftest.err
1728  fi
1729  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730  test $ac_status = 0; } && {
1731	 test -z "$ac_c_werror_flag" ||
1732	 test ! -s conftest.err
1733       } && test -s conftest$ac_exeext && {
1734	 test "$cross_compiling" = yes ||
1735	 test -x conftest$ac_exeext
1736       }; then :
1737  ac_retval=0
1738else
1739  $as_echo "$as_me: failed program was:" >&5
1740sed 's/^/| /' conftest.$ac_ext >&5
1741
1742	ac_retval=1
1743fi
1744  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1745  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1746  # interfere with the next link command; also delete a directory that is
1747  # left behind by Apple's compiler.  We do this before executing the actions.
1748  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1749  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750  as_fn_set_status $ac_retval
1751
1752} # ac_fn_c_try_link
1753
1754# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1755# -------------------------------------------------------
1756# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1757# the include files in INCLUDES and setting the cache variable VAR
1758# accordingly.
1759ac_fn_c_check_header_mongrel ()
1760{
1761  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762  if eval \${$3+:} false; then :
1763  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764$as_echo_n "checking for $2... " >&6; }
1765if eval \${$3+:} false; then :
1766  $as_echo_n "(cached) " >&6
1767fi
1768eval ac_res=\$$3
1769	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770$as_echo "$ac_res" >&6; }
1771else
1772  # Is the header compilable?
1773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1774$as_echo_n "checking $2 usability... " >&6; }
1775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776/* end confdefs.h.  */
1777$4
1778#include <$2>
1779_ACEOF
1780if ac_fn_c_try_compile "$LINENO"; then :
1781  ac_header_compiler=yes
1782else
1783  ac_header_compiler=no
1784fi
1785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1787$as_echo "$ac_header_compiler" >&6; }
1788
1789# Is the header present?
1790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1791$as_echo_n "checking $2 presence... " >&6; }
1792cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793/* end confdefs.h.  */
1794#include <$2>
1795_ACEOF
1796if ac_fn_c_try_cpp "$LINENO"; then :
1797  ac_header_preproc=yes
1798else
1799  ac_header_preproc=no
1800fi
1801rm -f conftest.err conftest.i conftest.$ac_ext
1802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1803$as_echo "$ac_header_preproc" >&6; }
1804
1805# So?  What about this header?
1806case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1807  yes:no: )
1808    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1809$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1810    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1811$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1812    ;;
1813  no:yes:* )
1814    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1815$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1816    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1817$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1818    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1819$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1820    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1821$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1822    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1823$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1824( $as_echo "## ------------------------------------------------------------------- ##
1825## Report this to https://gitlab.freedesktop.org/xorg/app/xprop/issues ##
1826## ------------------------------------------------------------------- ##"
1827     ) | sed "s/^/$as_me: WARNING:     /" >&2
1828    ;;
1829esac
1830  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831$as_echo_n "checking for $2... " >&6; }
1832if eval \${$3+:} false; then :
1833  $as_echo_n "(cached) " >&6
1834else
1835  eval "$3=\$ac_header_compiler"
1836fi
1837eval ac_res=\$$3
1838	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839$as_echo "$ac_res" >&6; }
1840fi
1841  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842
1843} # ac_fn_c_check_header_mongrel
1844cat >config.log <<_ACEOF
1845This file contains any messages produced by compilers while
1846running configure, to aid debugging if configure makes a mistake.
1847
1848It was created by xprop $as_me 1.2.4, which was
1849generated by GNU Autoconf 2.69.  Invocation command line was
1850
1851  $ $0 $@
1852
1853_ACEOF
1854exec 5>>config.log
1855{
1856cat <<_ASUNAME
1857## --------- ##
1858## Platform. ##
1859## --------- ##
1860
1861hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1862uname -m = `(uname -m) 2>/dev/null || echo unknown`
1863uname -r = `(uname -r) 2>/dev/null || echo unknown`
1864uname -s = `(uname -s) 2>/dev/null || echo unknown`
1865uname -v = `(uname -v) 2>/dev/null || echo unknown`
1866
1867/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1868/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1869
1870/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1871/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1872/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1873/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1874/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1875/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1876/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1877
1878_ASUNAME
1879
1880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1881for as_dir in $PATH
1882do
1883  IFS=$as_save_IFS
1884  test -z "$as_dir" && as_dir=.
1885    $as_echo "PATH: $as_dir"
1886  done
1887IFS=$as_save_IFS
1888
1889} >&5
1890
1891cat >&5 <<_ACEOF
1892
1893
1894## ----------- ##
1895## Core tests. ##
1896## ----------- ##
1897
1898_ACEOF
1899
1900
1901# Keep a trace of the command line.
1902# Strip out --no-create and --no-recursion so they do not pile up.
1903# Strip out --silent because we don't want to record it for future runs.
1904# Also quote any args containing shell meta-characters.
1905# Make two passes to allow for proper duplicate-argument suppression.
1906ac_configure_args=
1907ac_configure_args0=
1908ac_configure_args1=
1909ac_must_keep_next=false
1910for ac_pass in 1 2
1911do
1912  for ac_arg
1913  do
1914    case $ac_arg in
1915    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1916    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1917    | -silent | --silent | --silen | --sile | --sil)
1918      continue ;;
1919    *\'*)
1920      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1921    esac
1922    case $ac_pass in
1923    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1924    2)
1925      as_fn_append ac_configure_args1 " '$ac_arg'"
1926      if test $ac_must_keep_next = true; then
1927	ac_must_keep_next=false # Got value, back to normal.
1928      else
1929	case $ac_arg in
1930	  *=* | --config-cache | -C | -disable-* | --disable-* \
1931	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1932	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1933	  | -with-* | --with-* | -without-* | --without-* | --x)
1934	    case "$ac_configure_args0 " in
1935	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1936	    esac
1937	    ;;
1938	  -* ) ac_must_keep_next=true ;;
1939	esac
1940      fi
1941      as_fn_append ac_configure_args " '$ac_arg'"
1942      ;;
1943    esac
1944  done
1945done
1946{ ac_configure_args0=; unset ac_configure_args0;}
1947{ ac_configure_args1=; unset ac_configure_args1;}
1948
1949# When interrupted or exit'd, cleanup temporary files, and complete
1950# config.log.  We remove comments because anyway the quotes in there
1951# would cause problems or look ugly.
1952# WARNING: Use '\'' to represent an apostrophe within the trap.
1953# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1954trap 'exit_status=$?
1955  # Save into config.log some information that might help in debugging.
1956  {
1957    echo
1958
1959    $as_echo "## ---------------- ##
1960## Cache variables. ##
1961## ---------------- ##"
1962    echo
1963    # The following way of writing the cache mishandles newlines in values,
1964(
1965  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1966    eval ac_val=\$$ac_var
1967    case $ac_val in #(
1968    *${as_nl}*)
1969      case $ac_var in #(
1970      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1971$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1972      esac
1973      case $ac_var in #(
1974      _ | IFS | as_nl) ;; #(
1975      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1976      *) { eval $ac_var=; unset $ac_var;} ;;
1977      esac ;;
1978    esac
1979  done
1980  (set) 2>&1 |
1981    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1982    *${as_nl}ac_space=\ *)
1983      sed -n \
1984	"s/'\''/'\''\\\\'\'''\''/g;
1985	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1986      ;; #(
1987    *)
1988      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1989      ;;
1990    esac |
1991    sort
1992)
1993    echo
1994
1995    $as_echo "## ----------------- ##
1996## Output variables. ##
1997## ----------------- ##"
1998    echo
1999    for ac_var in $ac_subst_vars
2000    do
2001      eval ac_val=\$$ac_var
2002      case $ac_val in
2003      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2004      esac
2005      $as_echo "$ac_var='\''$ac_val'\''"
2006    done | sort
2007    echo
2008
2009    if test -n "$ac_subst_files"; then
2010      $as_echo "## ------------------- ##
2011## File substitutions. ##
2012## ------------------- ##"
2013      echo
2014      for ac_var in $ac_subst_files
2015      do
2016	eval ac_val=\$$ac_var
2017	case $ac_val in
2018	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2019	esac
2020	$as_echo "$ac_var='\''$ac_val'\''"
2021      done | sort
2022      echo
2023    fi
2024
2025    if test -s confdefs.h; then
2026      $as_echo "## ----------- ##
2027## confdefs.h. ##
2028## ----------- ##"
2029      echo
2030      cat confdefs.h
2031      echo
2032    fi
2033    test "$ac_signal" != 0 &&
2034      $as_echo "$as_me: caught signal $ac_signal"
2035    $as_echo "$as_me: exit $exit_status"
2036  } >&5
2037  rm -f core *.core core.conftest.* &&
2038    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2039    exit $exit_status
2040' 0
2041for ac_signal in 1 2 13 15; do
2042  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2043done
2044ac_signal=0
2045
2046# confdefs.h avoids OS command line length limits that DEFS can exceed.
2047rm -f -r conftest* confdefs.h
2048
2049$as_echo "/* confdefs.h */" > confdefs.h
2050
2051# Predefined preprocessor variables.
2052
2053cat >>confdefs.h <<_ACEOF
2054#define PACKAGE_NAME "$PACKAGE_NAME"
2055_ACEOF
2056
2057cat >>confdefs.h <<_ACEOF
2058#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2059_ACEOF
2060
2061cat >>confdefs.h <<_ACEOF
2062#define PACKAGE_VERSION "$PACKAGE_VERSION"
2063_ACEOF
2064
2065cat >>confdefs.h <<_ACEOF
2066#define PACKAGE_STRING "$PACKAGE_STRING"
2067_ACEOF
2068
2069cat >>confdefs.h <<_ACEOF
2070#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2071_ACEOF
2072
2073cat >>confdefs.h <<_ACEOF
2074#define PACKAGE_URL "$PACKAGE_URL"
2075_ACEOF
2076
2077
2078# Let the site file select an alternate cache file if it wants to.
2079# Prefer an explicitly selected file to automatically selected ones.
2080ac_site_file1=NONE
2081ac_site_file2=NONE
2082if test -n "$CONFIG_SITE"; then
2083  # We do not want a PATH search for config.site.
2084  case $CONFIG_SITE in #((
2085    -*)  ac_site_file1=./$CONFIG_SITE;;
2086    */*) ac_site_file1=$CONFIG_SITE;;
2087    *)   ac_site_file1=./$CONFIG_SITE;;
2088  esac
2089elif test "x$prefix" != xNONE; then
2090  ac_site_file1=$prefix/share/config.site
2091  ac_site_file2=$prefix/etc/config.site
2092else
2093  ac_site_file1=$ac_default_prefix/share/config.site
2094  ac_site_file2=$ac_default_prefix/etc/config.site
2095fi
2096for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2097do
2098  test "x$ac_site_file" = xNONE && continue
2099  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2100    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2101$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2102    sed 's/^/| /' "$ac_site_file" >&5
2103    . "$ac_site_file" \
2104      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2105$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2106as_fn_error $? "failed to load site script $ac_site_file
2107See \`config.log' for more details" "$LINENO" 5; }
2108  fi
2109done
2110
2111if test -r "$cache_file"; then
2112  # Some versions of bash will fail to source /dev/null (special files
2113  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2114  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2115    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2116$as_echo "$as_me: loading cache $cache_file" >&6;}
2117    case $cache_file in
2118      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2119      *)                      . "./$cache_file";;
2120    esac
2121  fi
2122else
2123  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2124$as_echo "$as_me: creating cache $cache_file" >&6;}
2125  >$cache_file
2126fi
2127
2128# Check that the precious variables saved in the cache have kept the same
2129# value.
2130ac_cache_corrupted=false
2131for ac_var in $ac_precious_vars; do
2132  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2133  eval ac_new_set=\$ac_env_${ac_var}_set
2134  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2135  eval ac_new_val=\$ac_env_${ac_var}_value
2136  case $ac_old_set,$ac_new_set in
2137    set,)
2138      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2139$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2140      ac_cache_corrupted=: ;;
2141    ,set)
2142      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2143$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2144      ac_cache_corrupted=: ;;
2145    ,);;
2146    *)
2147      if test "x$ac_old_val" != "x$ac_new_val"; then
2148	# differences in whitespace do not lead to failure.
2149	ac_old_val_w=`echo x $ac_old_val`
2150	ac_new_val_w=`echo x $ac_new_val`
2151	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2152	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2153$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2154	  ac_cache_corrupted=:
2155	else
2156	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2157$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2158	  eval $ac_var=\$ac_old_val
2159	fi
2160	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2161$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2162	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2163$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2164      fi;;
2165  esac
2166  # Pass precious variables to config.status.
2167  if test "$ac_new_set" = set; then
2168    case $ac_new_val in
2169    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2170    *) ac_arg=$ac_var=$ac_new_val ;;
2171    esac
2172    case " $ac_configure_args " in
2173      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2174      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2175    esac
2176  fi
2177done
2178if $ac_cache_corrupted; then
2179  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2180$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2181  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2182$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2183  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2184fi
2185## -------------------- ##
2186## Main body of script. ##
2187## -------------------- ##
2188
2189ac_ext=c
2190ac_cpp='$CPP $CPPFLAGS'
2191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2193ac_compiler_gnu=$ac_cv_c_compiler_gnu
2194
2195
2196
2197ac_config_headers="$ac_config_headers config.h"
2198
2199
2200# Initialize Automake
2201am__api_version='1.15'
2202
2203ac_aux_dir=
2204for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2205  if test -f "$ac_dir/install-sh"; then
2206    ac_aux_dir=$ac_dir
2207    ac_install_sh="$ac_aux_dir/install-sh -c"
2208    break
2209  elif test -f "$ac_dir/install.sh"; then
2210    ac_aux_dir=$ac_dir
2211    ac_install_sh="$ac_aux_dir/install.sh -c"
2212    break
2213  elif test -f "$ac_dir/shtool"; then
2214    ac_aux_dir=$ac_dir
2215    ac_install_sh="$ac_aux_dir/shtool install -c"
2216    break
2217  fi
2218done
2219if test -z "$ac_aux_dir"; then
2220  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2221fi
2222
2223# These three variables are undocumented and unsupported,
2224# and are intended to be withdrawn in a future Autoconf release.
2225# They can cause serious problems if a builder's source tree is in a directory
2226# whose full name contains unusual characters.
2227ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2228ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2229ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2230
2231
2232# Find a good install program.  We prefer a C program (faster),
2233# so one script is as good as another.  But avoid the broken or
2234# incompatible versions:
2235# SysV /etc/install, /usr/sbin/install
2236# SunOS /usr/etc/install
2237# IRIX /sbin/install
2238# AIX /bin/install
2239# AmigaOS /C/install, which installs bootblocks on floppy discs
2240# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2241# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2242# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2243# OS/2's system install, which has a completely different semantic
2244# ./install, which can be erroneously created by make from ./install.sh.
2245# Reject install programs that cannot install multiple files.
2246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2247$as_echo_n "checking for a BSD-compatible install... " >&6; }
2248if test -z "$INSTALL"; then
2249if ${ac_cv_path_install+:} false; then :
2250  $as_echo_n "(cached) " >&6
2251else
2252  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2253for as_dir in $PATH
2254do
2255  IFS=$as_save_IFS
2256  test -z "$as_dir" && as_dir=.
2257    # Account for people who put trailing slashes in PATH elements.
2258case $as_dir/ in #((
2259  ./ | .// | /[cC]/* | \
2260  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2261  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2262  /usr/ucb/* ) ;;
2263  *)
2264    # OSF1 and SCO ODT 3.0 have their own names for install.
2265    # Don't use installbsd from OSF since it installs stuff as root
2266    # by default.
2267    for ac_prog in ginstall scoinst install; do
2268      for ac_exec_ext in '' $ac_executable_extensions; do
2269	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2270	  if test $ac_prog = install &&
2271	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2272	    # AIX install.  It has an incompatible calling convention.
2273	    :
2274	  elif test $ac_prog = install &&
2275	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2276	    # program-specific install script used by HP pwplus--don't use.
2277	    :
2278	  else
2279	    rm -rf conftest.one conftest.two conftest.dir
2280	    echo one > conftest.one
2281	    echo two > conftest.two
2282	    mkdir conftest.dir
2283	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2284	      test -s conftest.one && test -s conftest.two &&
2285	      test -s conftest.dir/conftest.one &&
2286	      test -s conftest.dir/conftest.two
2287	    then
2288	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2289	      break 3
2290	    fi
2291	  fi
2292	fi
2293      done
2294    done
2295    ;;
2296esac
2297
2298  done
2299IFS=$as_save_IFS
2300
2301rm -rf conftest.one conftest.two conftest.dir
2302
2303fi
2304  if test "${ac_cv_path_install+set}" = set; then
2305    INSTALL=$ac_cv_path_install
2306  else
2307    # As a last resort, use the slow shell script.  Don't cache a
2308    # value for INSTALL within a source directory, because that will
2309    # break other packages using the cache if that directory is
2310    # removed, or if the value is a relative name.
2311    INSTALL=$ac_install_sh
2312  fi
2313fi
2314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2315$as_echo "$INSTALL" >&6; }
2316
2317# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2318# It thinks the first close brace ends the variable substitution.
2319test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2320
2321test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2322
2323test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2324
2325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2326$as_echo_n "checking whether build environment is sane... " >&6; }
2327# Reject unsafe characters in $srcdir or the absolute working directory
2328# name.  Accept space and tab only in the latter.
2329am_lf='
2330'
2331case `pwd` in
2332  *[\\\"\#\$\&\'\`$am_lf]*)
2333    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2334esac
2335case $srcdir in
2336  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2337    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2338esac
2339
2340# Do 'set' in a subshell so we don't clobber the current shell's
2341# arguments.  Must try -L first in case configure is actually a
2342# symlink; some systems play weird games with the mod time of symlinks
2343# (eg FreeBSD returns the mod time of the symlink's containing
2344# directory).
2345if (
2346   am_has_slept=no
2347   for am_try in 1 2; do
2348     echo "timestamp, slept: $am_has_slept" > conftest.file
2349     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2350     if test "$*" = "X"; then
2351	# -L didn't work.
2352	set X `ls -t "$srcdir/configure" conftest.file`
2353     fi
2354     if test "$*" != "X $srcdir/configure conftest.file" \
2355	&& test "$*" != "X conftest.file $srcdir/configure"; then
2356
2357	# If neither matched, then we have a broken ls.  This can happen
2358	# if, for instance, CONFIG_SHELL is bash and it inherits a
2359	# broken ls alias from the environment.  This has actually
2360	# happened.  Such a system could not be considered "sane".
2361	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2362  alias in your environment" "$LINENO" 5
2363     fi
2364     if test "$2" = conftest.file || test $am_try -eq 2; then
2365       break
2366     fi
2367     # Just in case.
2368     sleep 1
2369     am_has_slept=yes
2370   done
2371   test "$2" = conftest.file
2372   )
2373then
2374   # Ok.
2375   :
2376else
2377   as_fn_error $? "newly created file is older than distributed files!
2378Check your system clock" "$LINENO" 5
2379fi
2380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2381$as_echo "yes" >&6; }
2382# If we didn't sleep, we still need to ensure time stamps of config.status and
2383# generated files are strictly newer.
2384am_sleep_pid=
2385if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2386  ( sleep 1 ) &
2387  am_sleep_pid=$!
2388fi
2389
2390rm -f conftest.file
2391
2392test "$program_prefix" != NONE &&
2393  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2394# Use a double $ so make ignores it.
2395test "$program_suffix" != NONE &&
2396  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2397# Double any \ or $.
2398# By default was `s,x,x', remove it if useless.
2399ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2400program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2401
2402# Expand $ac_aux_dir to an absolute path.
2403am_aux_dir=`cd "$ac_aux_dir" && pwd`
2404
2405if test x"${MISSING+set}" != xset; then
2406  case $am_aux_dir in
2407  *\ * | *\	*)
2408    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2409  *)
2410    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2411  esac
2412fi
2413# Use eval to expand $SHELL
2414if eval "$MISSING --is-lightweight"; then
2415  am_missing_run="$MISSING "
2416else
2417  am_missing_run=
2418  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2419$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2420fi
2421
2422if test x"${install_sh+set}" != xset; then
2423  case $am_aux_dir in
2424  *\ * | *\	*)
2425    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2426  *)
2427    install_sh="\${SHELL} $am_aux_dir/install-sh"
2428  esac
2429fi
2430
2431# Installed binaries are usually stripped using 'strip' when the user
2432# run "make install-strip".  However 'strip' might not be the right
2433# tool to use in cross-compilation environments, therefore Automake
2434# will honor the 'STRIP' environment variable to overrule this program.
2435if test "$cross_compiling" != no; then
2436  if test -n "$ac_tool_prefix"; then
2437  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2438set dummy ${ac_tool_prefix}strip; ac_word=$2
2439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2440$as_echo_n "checking for $ac_word... " >&6; }
2441if ${ac_cv_prog_STRIP+:} false; then :
2442  $as_echo_n "(cached) " >&6
2443else
2444  if test -n "$STRIP"; then
2445  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2446else
2447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448for as_dir in $PATH
2449do
2450  IFS=$as_save_IFS
2451  test -z "$as_dir" && as_dir=.
2452    for ac_exec_ext in '' $ac_executable_extensions; do
2453  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2454    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2455    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2456    break 2
2457  fi
2458done
2459  done
2460IFS=$as_save_IFS
2461
2462fi
2463fi
2464STRIP=$ac_cv_prog_STRIP
2465if test -n "$STRIP"; then
2466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2467$as_echo "$STRIP" >&6; }
2468else
2469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2470$as_echo "no" >&6; }
2471fi
2472
2473
2474fi
2475if test -z "$ac_cv_prog_STRIP"; then
2476  ac_ct_STRIP=$STRIP
2477  # Extract the first word of "strip", so it can be a program name with args.
2478set dummy strip; ac_word=$2
2479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2480$as_echo_n "checking for $ac_word... " >&6; }
2481if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2482  $as_echo_n "(cached) " >&6
2483else
2484  if test -n "$ac_ct_STRIP"; then
2485  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2486else
2487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488for as_dir in $PATH
2489do
2490  IFS=$as_save_IFS
2491  test -z "$as_dir" && as_dir=.
2492    for ac_exec_ext in '' $ac_executable_extensions; do
2493  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2494    ac_cv_prog_ac_ct_STRIP="strip"
2495    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2496    break 2
2497  fi
2498done
2499  done
2500IFS=$as_save_IFS
2501
2502fi
2503fi
2504ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2505if test -n "$ac_ct_STRIP"; then
2506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2507$as_echo "$ac_ct_STRIP" >&6; }
2508else
2509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2510$as_echo "no" >&6; }
2511fi
2512
2513  if test "x$ac_ct_STRIP" = x; then
2514    STRIP=":"
2515  else
2516    case $cross_compiling:$ac_tool_warned in
2517yes:)
2518{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2519$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2520ac_tool_warned=yes ;;
2521esac
2522    STRIP=$ac_ct_STRIP
2523  fi
2524else
2525  STRIP="$ac_cv_prog_STRIP"
2526fi
2527
2528fi
2529INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2530
2531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2532$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2533if test -z "$MKDIR_P"; then
2534  if ${ac_cv_path_mkdir+:} false; then :
2535  $as_echo_n "(cached) " >&6
2536else
2537  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2539do
2540  IFS=$as_save_IFS
2541  test -z "$as_dir" && as_dir=.
2542    for ac_prog in mkdir gmkdir; do
2543	 for ac_exec_ext in '' $ac_executable_extensions; do
2544	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2545	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2546	     'mkdir (GNU coreutils) '* | \
2547	     'mkdir (coreutils) '* | \
2548	     'mkdir (fileutils) '4.1*)
2549	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2550	       break 3;;
2551	   esac
2552	 done
2553       done
2554  done
2555IFS=$as_save_IFS
2556
2557fi
2558
2559  test -d ./--version && rmdir ./--version
2560  if test "${ac_cv_path_mkdir+set}" = set; then
2561    MKDIR_P="$ac_cv_path_mkdir -p"
2562  else
2563    # As a last resort, use the slow shell script.  Don't cache a
2564    # value for MKDIR_P within a source directory, because that will
2565    # break other packages using the cache if that directory is
2566    # removed, or if the value is a relative name.
2567    MKDIR_P="$ac_install_sh -d"
2568  fi
2569fi
2570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2571$as_echo "$MKDIR_P" >&6; }
2572
2573for ac_prog in gawk mawk nawk awk
2574do
2575  # Extract the first word of "$ac_prog", so it can be a program name with args.
2576set dummy $ac_prog; ac_word=$2
2577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2578$as_echo_n "checking for $ac_word... " >&6; }
2579if ${ac_cv_prog_AWK+:} false; then :
2580  $as_echo_n "(cached) " >&6
2581else
2582  if test -n "$AWK"; then
2583  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2584else
2585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586for as_dir in $PATH
2587do
2588  IFS=$as_save_IFS
2589  test -z "$as_dir" && as_dir=.
2590    for ac_exec_ext in '' $ac_executable_extensions; do
2591  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2592    ac_cv_prog_AWK="$ac_prog"
2593    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2594    break 2
2595  fi
2596done
2597  done
2598IFS=$as_save_IFS
2599
2600fi
2601fi
2602AWK=$ac_cv_prog_AWK
2603if test -n "$AWK"; then
2604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2605$as_echo "$AWK" >&6; }
2606else
2607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2608$as_echo "no" >&6; }
2609fi
2610
2611
2612  test -n "$AWK" && break
2613done
2614
2615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2616$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2617set x ${MAKE-make}
2618ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2619if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2620  $as_echo_n "(cached) " >&6
2621else
2622  cat >conftest.make <<\_ACEOF
2623SHELL = /bin/sh
2624all:
2625	@echo '@@@%%%=$(MAKE)=@@@%%%'
2626_ACEOF
2627# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2628case `${MAKE-make} -f conftest.make 2>/dev/null` in
2629  *@@@%%%=?*=@@@%%%*)
2630    eval ac_cv_prog_make_${ac_make}_set=yes;;
2631  *)
2632    eval ac_cv_prog_make_${ac_make}_set=no;;
2633esac
2634rm -f conftest.make
2635fi
2636if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2638$as_echo "yes" >&6; }
2639  SET_MAKE=
2640else
2641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2642$as_echo "no" >&6; }
2643  SET_MAKE="MAKE=${MAKE-make}"
2644fi
2645
2646rm -rf .tst 2>/dev/null
2647mkdir .tst 2>/dev/null
2648if test -d .tst; then
2649  am__leading_dot=.
2650else
2651  am__leading_dot=_
2652fi
2653rmdir .tst 2>/dev/null
2654
2655# Check whether --enable-silent-rules was given.
2656if test "${enable_silent_rules+set}" = set; then :
2657  enableval=$enable_silent_rules;
2658fi
2659
2660case $enable_silent_rules in # (((
2661  yes) AM_DEFAULT_VERBOSITY=0;;
2662   no) AM_DEFAULT_VERBOSITY=1;;
2663    *) AM_DEFAULT_VERBOSITY=1;;
2664esac
2665am_make=${MAKE-make}
2666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2667$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2668if ${am_cv_make_support_nested_variables+:} false; then :
2669  $as_echo_n "(cached) " >&6
2670else
2671  if $as_echo 'TRUE=$(BAR$(V))
2672BAR0=false
2673BAR1=true
2674V=1
2675am__doit:
2676	@$(TRUE)
2677.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2678  am_cv_make_support_nested_variables=yes
2679else
2680  am_cv_make_support_nested_variables=no
2681fi
2682fi
2683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2684$as_echo "$am_cv_make_support_nested_variables" >&6; }
2685if test $am_cv_make_support_nested_variables = yes; then
2686    AM_V='$(V)'
2687  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2688else
2689  AM_V=$AM_DEFAULT_VERBOSITY
2690  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2691fi
2692AM_BACKSLASH='\'
2693
2694if test "`cd $srcdir && pwd`" != "`pwd`"; then
2695  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2696  # is not polluted with repeated "-I."
2697  am__isrc=' -I$(srcdir)'
2698  # test to see if srcdir already configured
2699  if test -f $srcdir/config.status; then
2700    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2701  fi
2702fi
2703
2704# test whether we have cygpath
2705if test -z "$CYGPATH_W"; then
2706  if (cygpath --version) >/dev/null 2>/dev/null; then
2707    CYGPATH_W='cygpath -w'
2708  else
2709    CYGPATH_W=echo
2710  fi
2711fi
2712
2713
2714# Define the identity of the package.
2715 PACKAGE='xprop'
2716 VERSION='1.2.4'
2717
2718
2719cat >>confdefs.h <<_ACEOF
2720#define PACKAGE "$PACKAGE"
2721_ACEOF
2722
2723
2724cat >>confdefs.h <<_ACEOF
2725#define VERSION "$VERSION"
2726_ACEOF
2727
2728# Some tools Automake needs.
2729
2730ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2731
2732
2733AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2734
2735
2736AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2737
2738
2739AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2740
2741
2742MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2743
2744# For better backward compatibility.  To be removed once Automake 1.9.x
2745# dies out for good.  For more background, see:
2746# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2747# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2748mkdir_p='$(MKDIR_P)'
2749
2750# We need awk for the "check" target (and possibly the TAP driver).  The
2751# system "awk" is bad on some platforms.
2752# Always define AMTAR for backward compatibility.  Yes, it's still used
2753# in the wild :-(  We should find a proper way to deprecate it ...
2754AMTAR='$${TAR-tar}'
2755
2756
2757# We'll loop over all known methods to create a tar archive until one works.
2758_am_tools='gnutar  pax cpio none'
2759
2760am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2761
2762
2763
2764
2765
2766
2767# POSIX will say in a future version that running "rm -f" with no argument
2768# is OK; and we want to be able to make that assumption in our Makefile
2769# recipes.  So use an aggressive probe to check that the usage we want is
2770# actually supported "in the wild" to an acceptable degree.
2771# See automake bug#10828.
2772# To make any issue more visible, cause the running configure to be aborted
2773# by default if the 'rm' program in use doesn't match our expectations; the
2774# user can still override this though.
2775if rm -f && rm -fr && rm -rf; then : OK; else
2776  cat >&2 <<'END'
2777Oops!
2778
2779Your 'rm' program seems unable to run without file operands specified
2780on the command line, even when the '-f' option is present.  This is contrary
2781to the behaviour of most rm programs out there, and not conforming with
2782the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2783
2784Please tell bug-automake@gnu.org about your system, including the value
2785of your $PATH and any error possibly output before this message.  This
2786can help us improve future automake versions.
2787
2788END
2789  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2790    echo 'Configuration will proceed anyway, since you have set the' >&2
2791    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2792    echo >&2
2793  else
2794    cat >&2 <<'END'
2795Aborting the configuration process, to ensure you take notice of the issue.
2796
2797You can download and install GNU coreutils to get an 'rm' implementation
2798that behaves properly: <http://www.gnu.org/software/coreutils/>.
2799
2800If you want to complete the configuration process using your problematic
2801'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2802to "yes", and re-run configure.
2803
2804END
2805    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2806  fi
2807fi
2808
2809
2810# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822DEPDIR="${am__leading_dot}deps"
2823
2824ac_config_commands="$ac_config_commands depfiles"
2825
2826
2827am_make=${MAKE-make}
2828cat > confinc << 'END'
2829am__doit:
2830	@echo this is the am__doit target
2831.PHONY: am__doit
2832END
2833# If we don't find an include directive, just comment out the code.
2834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2835$as_echo_n "checking for style of include used by $am_make... " >&6; }
2836am__include="#"
2837am__quote=
2838_am_result=none
2839# First try GNU make style include.
2840echo "include confinc" > confmf
2841# Ignore all kinds of additional output from 'make'.
2842case `$am_make -s -f confmf 2> /dev/null` in #(
2843*the\ am__doit\ target*)
2844  am__include=include
2845  am__quote=
2846  _am_result=GNU
2847  ;;
2848esac
2849# Now try BSD make style include.
2850if test "$am__include" = "#"; then
2851   echo '.include "confinc"' > confmf
2852   case `$am_make -s -f confmf 2> /dev/null` in #(
2853   *the\ am__doit\ target*)
2854     am__include=.include
2855     am__quote="\""
2856     _am_result=BSD
2857     ;;
2858   esac
2859fi
2860
2861
2862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2863$as_echo "$_am_result" >&6; }
2864rm -f confinc confmf
2865
2866# Check whether --enable-dependency-tracking was given.
2867if test "${enable_dependency_tracking+set}" = set; then :
2868  enableval=$enable_dependency_tracking;
2869fi
2870
2871if test "x$enable_dependency_tracking" != xno; then
2872  am_depcomp="$ac_aux_dir/depcomp"
2873  AMDEPBACKSLASH='\'
2874  am__nodep='_no'
2875fi
2876 if test "x$enable_dependency_tracking" != xno; then
2877  AMDEP_TRUE=
2878  AMDEP_FALSE='#'
2879else
2880  AMDEP_TRUE='#'
2881  AMDEP_FALSE=
2882fi
2883
2884
2885ac_ext=c
2886ac_cpp='$CPP $CPPFLAGS'
2887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2889ac_compiler_gnu=$ac_cv_c_compiler_gnu
2890if test -n "$ac_tool_prefix"; then
2891  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2892set dummy ${ac_tool_prefix}gcc; ac_word=$2
2893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2894$as_echo_n "checking for $ac_word... " >&6; }
2895if ${ac_cv_prog_CC+:} false; then :
2896  $as_echo_n "(cached) " >&6
2897else
2898  if test -n "$CC"; then
2899  ac_cv_prog_CC="$CC" # Let the user override the test.
2900else
2901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902for as_dir in $PATH
2903do
2904  IFS=$as_save_IFS
2905  test -z "$as_dir" && as_dir=.
2906    for ac_exec_ext in '' $ac_executable_extensions; do
2907  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2908    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2909    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2910    break 2
2911  fi
2912done
2913  done
2914IFS=$as_save_IFS
2915
2916fi
2917fi
2918CC=$ac_cv_prog_CC
2919if test -n "$CC"; then
2920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2921$as_echo "$CC" >&6; }
2922else
2923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2924$as_echo "no" >&6; }
2925fi
2926
2927
2928fi
2929if test -z "$ac_cv_prog_CC"; then
2930  ac_ct_CC=$CC
2931  # Extract the first word of "gcc", so it can be a program name with args.
2932set dummy gcc; ac_word=$2
2933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2934$as_echo_n "checking for $ac_word... " >&6; }
2935if ${ac_cv_prog_ac_ct_CC+:} false; then :
2936  $as_echo_n "(cached) " >&6
2937else
2938  if test -n "$ac_ct_CC"; then
2939  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2940else
2941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942for as_dir in $PATH
2943do
2944  IFS=$as_save_IFS
2945  test -z "$as_dir" && as_dir=.
2946    for ac_exec_ext in '' $ac_executable_extensions; do
2947  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2948    ac_cv_prog_ac_ct_CC="gcc"
2949    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2950    break 2
2951  fi
2952done
2953  done
2954IFS=$as_save_IFS
2955
2956fi
2957fi
2958ac_ct_CC=$ac_cv_prog_ac_ct_CC
2959if test -n "$ac_ct_CC"; then
2960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2961$as_echo "$ac_ct_CC" >&6; }
2962else
2963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964$as_echo "no" >&6; }
2965fi
2966
2967  if test "x$ac_ct_CC" = x; then
2968    CC=""
2969  else
2970    case $cross_compiling:$ac_tool_warned in
2971yes:)
2972{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2973$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2974ac_tool_warned=yes ;;
2975esac
2976    CC=$ac_ct_CC
2977  fi
2978else
2979  CC="$ac_cv_prog_CC"
2980fi
2981
2982if test -z "$CC"; then
2983          if test -n "$ac_tool_prefix"; then
2984    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2985set dummy ${ac_tool_prefix}cc; ac_word=$2
2986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2987$as_echo_n "checking for $ac_word... " >&6; }
2988if ${ac_cv_prog_CC+:} false; then :
2989  $as_echo_n "(cached) " >&6
2990else
2991  if test -n "$CC"; then
2992  ac_cv_prog_CC="$CC" # Let the user override the test.
2993else
2994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995for as_dir in $PATH
2996do
2997  IFS=$as_save_IFS
2998  test -z "$as_dir" && as_dir=.
2999    for ac_exec_ext in '' $ac_executable_extensions; do
3000  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3001    ac_cv_prog_CC="${ac_tool_prefix}cc"
3002    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3003    break 2
3004  fi
3005done
3006  done
3007IFS=$as_save_IFS
3008
3009fi
3010fi
3011CC=$ac_cv_prog_CC
3012if test -n "$CC"; then
3013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3014$as_echo "$CC" >&6; }
3015else
3016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3017$as_echo "no" >&6; }
3018fi
3019
3020
3021  fi
3022fi
3023if test -z "$CC"; then
3024  # Extract the first word of "cc", so it can be a program name with args.
3025set dummy cc; ac_word=$2
3026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3027$as_echo_n "checking for $ac_word... " >&6; }
3028if ${ac_cv_prog_CC+:} false; then :
3029  $as_echo_n "(cached) " >&6
3030else
3031  if test -n "$CC"; then
3032  ac_cv_prog_CC="$CC" # Let the user override the test.
3033else
3034  ac_prog_rejected=no
3035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036for as_dir in $PATH
3037do
3038  IFS=$as_save_IFS
3039  test -z "$as_dir" && as_dir=.
3040    for ac_exec_ext in '' $ac_executable_extensions; do
3041  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3042    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3043       ac_prog_rejected=yes
3044       continue
3045     fi
3046    ac_cv_prog_CC="cc"
3047    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3048    break 2
3049  fi
3050done
3051  done
3052IFS=$as_save_IFS
3053
3054if test $ac_prog_rejected = yes; then
3055  # We found a bogon in the path, so make sure we never use it.
3056  set dummy $ac_cv_prog_CC
3057  shift
3058  if test $# != 0; then
3059    # We chose a different compiler from the bogus one.
3060    # However, it has the same basename, so the bogon will be chosen
3061    # first if we set CC to just the basename; use the full file name.
3062    shift
3063    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3064  fi
3065fi
3066fi
3067fi
3068CC=$ac_cv_prog_CC
3069if test -n "$CC"; then
3070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3071$as_echo "$CC" >&6; }
3072else
3073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074$as_echo "no" >&6; }
3075fi
3076
3077
3078fi
3079if test -z "$CC"; then
3080  if test -n "$ac_tool_prefix"; then
3081  for ac_prog in cl.exe
3082  do
3083    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3084set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3086$as_echo_n "checking for $ac_word... " >&6; }
3087if ${ac_cv_prog_CC+:} false; then :
3088  $as_echo_n "(cached) " >&6
3089else
3090  if test -n "$CC"; then
3091  ac_cv_prog_CC="$CC" # Let the user override the test.
3092else
3093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094for as_dir in $PATH
3095do
3096  IFS=$as_save_IFS
3097  test -z "$as_dir" && as_dir=.
3098    for ac_exec_ext in '' $ac_executable_extensions; do
3099  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3100    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3101    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3102    break 2
3103  fi
3104done
3105  done
3106IFS=$as_save_IFS
3107
3108fi
3109fi
3110CC=$ac_cv_prog_CC
3111if test -n "$CC"; then
3112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3113$as_echo "$CC" >&6; }
3114else
3115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116$as_echo "no" >&6; }
3117fi
3118
3119
3120    test -n "$CC" && break
3121  done
3122fi
3123if test -z "$CC"; then
3124  ac_ct_CC=$CC
3125  for ac_prog in cl.exe
3126do
3127  # Extract the first word of "$ac_prog", so it can be a program name with args.
3128set dummy $ac_prog; ac_word=$2
3129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3130$as_echo_n "checking for $ac_word... " >&6; }
3131if ${ac_cv_prog_ac_ct_CC+:} false; then :
3132  $as_echo_n "(cached) " >&6
3133else
3134  if test -n "$ac_ct_CC"; then
3135  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3136else
3137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138for as_dir in $PATH
3139do
3140  IFS=$as_save_IFS
3141  test -z "$as_dir" && as_dir=.
3142    for ac_exec_ext in '' $ac_executable_extensions; do
3143  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3144    ac_cv_prog_ac_ct_CC="$ac_prog"
3145    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3146    break 2
3147  fi
3148done
3149  done
3150IFS=$as_save_IFS
3151
3152fi
3153fi
3154ac_ct_CC=$ac_cv_prog_ac_ct_CC
3155if test -n "$ac_ct_CC"; then
3156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3157$as_echo "$ac_ct_CC" >&6; }
3158else
3159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3160$as_echo "no" >&6; }
3161fi
3162
3163
3164  test -n "$ac_ct_CC" && break
3165done
3166
3167  if test "x$ac_ct_CC" = x; then
3168    CC=""
3169  else
3170    case $cross_compiling:$ac_tool_warned in
3171yes:)
3172{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3173$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3174ac_tool_warned=yes ;;
3175esac
3176    CC=$ac_ct_CC
3177  fi
3178fi
3179
3180fi
3181
3182
3183test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3185as_fn_error $? "no acceptable C compiler found in \$PATH
3186See \`config.log' for more details" "$LINENO" 5; }
3187
3188# Provide some information about the compiler.
3189$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3190set X $ac_compile
3191ac_compiler=$2
3192for ac_option in --version -v -V -qversion; do
3193  { { ac_try="$ac_compiler $ac_option >&5"
3194case "(($ac_try" in
3195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196  *) ac_try_echo=$ac_try;;
3197esac
3198eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3199$as_echo "$ac_try_echo"; } >&5
3200  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3201  ac_status=$?
3202  if test -s conftest.err; then
3203    sed '10a\
3204... rest of stderr output deleted ...
3205         10q' conftest.err >conftest.er1
3206    cat conftest.er1 >&5
3207  fi
3208  rm -f conftest.er1 conftest.err
3209  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3210  test $ac_status = 0; }
3211done
3212
3213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3214/* end confdefs.h.  */
3215
3216int
3217main ()
3218{
3219
3220  ;
3221  return 0;
3222}
3223_ACEOF
3224ac_clean_files_save=$ac_clean_files
3225ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3226# Try to create an executable without -o first, disregard a.out.
3227# It will help us diagnose broken compilers, and finding out an intuition
3228# of exeext.
3229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3230$as_echo_n "checking whether the C compiler works... " >&6; }
3231ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3232
3233# The possible output files:
3234ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3235
3236ac_rmfiles=
3237for ac_file in $ac_files
3238do
3239  case $ac_file in
3240    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3241    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3242  esac
3243done
3244rm -f $ac_rmfiles
3245
3246if { { ac_try="$ac_link_default"
3247case "(($ac_try" in
3248  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249  *) ac_try_echo=$ac_try;;
3250esac
3251eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3252$as_echo "$ac_try_echo"; } >&5
3253  (eval "$ac_link_default") 2>&5
3254  ac_status=$?
3255  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3256  test $ac_status = 0; }; then :
3257  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3258# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3259# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3260# so that the user can short-circuit this test for compilers unknown to
3261# Autoconf.
3262for ac_file in $ac_files ''
3263do
3264  test -f "$ac_file" || continue
3265  case $ac_file in
3266    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3267	;;
3268    [ab].out )
3269	# We found the default executable, but exeext='' is most
3270	# certainly right.
3271	break;;
3272    *.* )
3273	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3274	then :; else
3275	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3276	fi
3277	# We set ac_cv_exeext here because the later test for it is not
3278	# safe: cross compilers may not add the suffix if given an `-o'
3279	# argument, so we may need to know it at that point already.
3280	# Even if this section looks crufty: it has the advantage of
3281	# actually working.
3282	break;;
3283    * )
3284	break;;
3285  esac
3286done
3287test "$ac_cv_exeext" = no && ac_cv_exeext=
3288
3289else
3290  ac_file=''
3291fi
3292if test -z "$ac_file"; then :
3293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294$as_echo "no" >&6; }
3295$as_echo "$as_me: failed program was:" >&5
3296sed 's/^/| /' conftest.$ac_ext >&5
3297
3298{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3299$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3300as_fn_error 77 "C compiler cannot create executables
3301See \`config.log' for more details" "$LINENO" 5; }
3302else
3303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3304$as_echo "yes" >&6; }
3305fi
3306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3307$as_echo_n "checking for C compiler default output file name... " >&6; }
3308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3309$as_echo "$ac_file" >&6; }
3310ac_exeext=$ac_cv_exeext
3311
3312rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3313ac_clean_files=$ac_clean_files_save
3314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3315$as_echo_n "checking for suffix of executables... " >&6; }
3316if { { ac_try="$ac_link"
3317case "(($ac_try" in
3318  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319  *) ac_try_echo=$ac_try;;
3320esac
3321eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3322$as_echo "$ac_try_echo"; } >&5
3323  (eval "$ac_link") 2>&5
3324  ac_status=$?
3325  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3326  test $ac_status = 0; }; then :
3327  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3328# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3329# work properly (i.e., refer to `conftest.exe'), while it won't with
3330# `rm'.
3331for ac_file in conftest.exe conftest conftest.*; do
3332  test -f "$ac_file" || continue
3333  case $ac_file in
3334    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3335    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3336	  break;;
3337    * ) break;;
3338  esac
3339done
3340else
3341  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3342$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3343as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3344See \`config.log' for more details" "$LINENO" 5; }
3345fi
3346rm -f conftest conftest$ac_cv_exeext
3347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3348$as_echo "$ac_cv_exeext" >&6; }
3349
3350rm -f conftest.$ac_ext
3351EXEEXT=$ac_cv_exeext
3352ac_exeext=$EXEEXT
3353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354/* end confdefs.h.  */
3355#include <stdio.h>
3356int
3357main ()
3358{
3359FILE *f = fopen ("conftest.out", "w");
3360 return ferror (f) || fclose (f) != 0;
3361
3362  ;
3363  return 0;
3364}
3365_ACEOF
3366ac_clean_files="$ac_clean_files conftest.out"
3367# Check that the compiler produces executables we can run.  If not, either
3368# the compiler is broken, or we cross compile.
3369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3370$as_echo_n "checking whether we are cross compiling... " >&6; }
3371if test "$cross_compiling" != yes; then
3372  { { ac_try="$ac_link"
3373case "(($ac_try" in
3374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375  *) ac_try_echo=$ac_try;;
3376esac
3377eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3378$as_echo "$ac_try_echo"; } >&5
3379  (eval "$ac_link") 2>&5
3380  ac_status=$?
3381  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3382  test $ac_status = 0; }
3383  if { ac_try='./conftest$ac_cv_exeext'
3384  { { case "(($ac_try" in
3385  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386  *) ac_try_echo=$ac_try;;
3387esac
3388eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389$as_echo "$ac_try_echo"; } >&5
3390  (eval "$ac_try") 2>&5
3391  ac_status=$?
3392  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393  test $ac_status = 0; }; }; then
3394    cross_compiling=no
3395  else
3396    if test "$cross_compiling" = maybe; then
3397	cross_compiling=yes
3398    else
3399	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3401as_fn_error $? "cannot run C compiled programs.
3402If you meant to cross compile, use \`--host'.
3403See \`config.log' for more details" "$LINENO" 5; }
3404    fi
3405  fi
3406fi
3407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3408$as_echo "$cross_compiling" >&6; }
3409
3410rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3411ac_clean_files=$ac_clean_files_save
3412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3413$as_echo_n "checking for suffix of object files... " >&6; }
3414if ${ac_cv_objext+:} false; then :
3415  $as_echo_n "(cached) " >&6
3416else
3417  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418/* end confdefs.h.  */
3419
3420int
3421main ()
3422{
3423
3424  ;
3425  return 0;
3426}
3427_ACEOF
3428rm -f conftest.o conftest.obj
3429if { { ac_try="$ac_compile"
3430case "(($ac_try" in
3431  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432  *) ac_try_echo=$ac_try;;
3433esac
3434eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3435$as_echo "$ac_try_echo"; } >&5
3436  (eval "$ac_compile") 2>&5
3437  ac_status=$?
3438  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3439  test $ac_status = 0; }; then :
3440  for ac_file in conftest.o conftest.obj conftest.*; do
3441  test -f "$ac_file" || continue;
3442  case $ac_file in
3443    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3444    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3445       break;;
3446  esac
3447done
3448else
3449  $as_echo "$as_me: failed program was:" >&5
3450sed 's/^/| /' conftest.$ac_ext >&5
3451
3452{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3453$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3454as_fn_error $? "cannot compute suffix of object files: cannot compile
3455See \`config.log' for more details" "$LINENO" 5; }
3456fi
3457rm -f conftest.$ac_cv_objext conftest.$ac_ext
3458fi
3459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3460$as_echo "$ac_cv_objext" >&6; }
3461OBJEXT=$ac_cv_objext
3462ac_objext=$OBJEXT
3463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3464$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3465if ${ac_cv_c_compiler_gnu+:} false; then :
3466  $as_echo_n "(cached) " >&6
3467else
3468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469/* end confdefs.h.  */
3470
3471int
3472main ()
3473{
3474#ifndef __GNUC__
3475       choke me
3476#endif
3477
3478  ;
3479  return 0;
3480}
3481_ACEOF
3482if ac_fn_c_try_compile "$LINENO"; then :
3483  ac_compiler_gnu=yes
3484else
3485  ac_compiler_gnu=no
3486fi
3487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3488ac_cv_c_compiler_gnu=$ac_compiler_gnu
3489
3490fi
3491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3492$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3493if test $ac_compiler_gnu = yes; then
3494  GCC=yes
3495else
3496  GCC=
3497fi
3498ac_test_CFLAGS=${CFLAGS+set}
3499ac_save_CFLAGS=$CFLAGS
3500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3501$as_echo_n "checking whether $CC accepts -g... " >&6; }
3502if ${ac_cv_prog_cc_g+:} false; then :
3503  $as_echo_n "(cached) " >&6
3504else
3505  ac_save_c_werror_flag=$ac_c_werror_flag
3506   ac_c_werror_flag=yes
3507   ac_cv_prog_cc_g=no
3508   CFLAGS="-g"
3509   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510/* end confdefs.h.  */
3511
3512int
3513main ()
3514{
3515
3516  ;
3517  return 0;
3518}
3519_ACEOF
3520if ac_fn_c_try_compile "$LINENO"; then :
3521  ac_cv_prog_cc_g=yes
3522else
3523  CFLAGS=""
3524      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525/* end confdefs.h.  */
3526
3527int
3528main ()
3529{
3530
3531  ;
3532  return 0;
3533}
3534_ACEOF
3535if ac_fn_c_try_compile "$LINENO"; then :
3536
3537else
3538  ac_c_werror_flag=$ac_save_c_werror_flag
3539	 CFLAGS="-g"
3540	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541/* end confdefs.h.  */
3542
3543int
3544main ()
3545{
3546
3547  ;
3548  return 0;
3549}
3550_ACEOF
3551if ac_fn_c_try_compile "$LINENO"; then :
3552  ac_cv_prog_cc_g=yes
3553fi
3554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3555fi
3556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3557fi
3558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3559   ac_c_werror_flag=$ac_save_c_werror_flag
3560fi
3561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3562$as_echo "$ac_cv_prog_cc_g" >&6; }
3563if test "$ac_test_CFLAGS" = set; then
3564  CFLAGS=$ac_save_CFLAGS
3565elif test $ac_cv_prog_cc_g = yes; then
3566  if test "$GCC" = yes; then
3567    CFLAGS="-g -O2"
3568  else
3569    CFLAGS="-g"
3570  fi
3571else
3572  if test "$GCC" = yes; then
3573    CFLAGS="-O2"
3574  else
3575    CFLAGS=
3576  fi
3577fi
3578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3579$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3580if ${ac_cv_prog_cc_c89+:} false; then :
3581  $as_echo_n "(cached) " >&6
3582else
3583  ac_cv_prog_cc_c89=no
3584ac_save_CC=$CC
3585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586/* end confdefs.h.  */
3587#include <stdarg.h>
3588#include <stdio.h>
3589struct stat;
3590/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3591struct buf { int x; };
3592FILE * (*rcsopen) (struct buf *, struct stat *, int);
3593static char *e (p, i)
3594     char **p;
3595     int i;
3596{
3597  return p[i];
3598}
3599static char *f (char * (*g) (char **, int), char **p, ...)
3600{
3601  char *s;
3602  va_list v;
3603  va_start (v,p);
3604  s = g (p, va_arg (v,int));
3605  va_end (v);
3606  return s;
3607}
3608
3609/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3610   function prototypes and stuff, but not '\xHH' hex character constants.
3611   These don't provoke an error unfortunately, instead are silently treated
3612   as 'x'.  The following induces an error, until -std is added to get
3613   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3614   array size at least.  It's necessary to write '\x00'==0 to get something
3615   that's true only with -std.  */
3616int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3617
3618/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3619   inside strings and character constants.  */
3620#define FOO(x) 'x'
3621int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3622
3623int test (int i, double x);
3624struct s1 {int (*f) (int a);};
3625struct s2 {int (*f) (double a);};
3626int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3627int argc;
3628char **argv;
3629int
3630main ()
3631{
3632return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3633  ;
3634  return 0;
3635}
3636_ACEOF
3637for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3638	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3639do
3640  CC="$ac_save_CC $ac_arg"
3641  if ac_fn_c_try_compile "$LINENO"; then :
3642  ac_cv_prog_cc_c89=$ac_arg
3643fi
3644rm -f core conftest.err conftest.$ac_objext
3645  test "x$ac_cv_prog_cc_c89" != "xno" && break
3646done
3647rm -f conftest.$ac_ext
3648CC=$ac_save_CC
3649
3650fi
3651# AC_CACHE_VAL
3652case "x$ac_cv_prog_cc_c89" in
3653  x)
3654    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3655$as_echo "none needed" >&6; } ;;
3656  xno)
3657    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3658$as_echo "unsupported" >&6; } ;;
3659  *)
3660    CC="$CC $ac_cv_prog_cc_c89"
3661    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3662$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3663esac
3664if test "x$ac_cv_prog_cc_c89" != xno; then :
3665
3666fi
3667
3668ac_ext=c
3669ac_cpp='$CPP $CPPFLAGS'
3670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3672ac_compiler_gnu=$ac_cv_c_compiler_gnu
3673
3674ac_ext=c
3675ac_cpp='$CPP $CPPFLAGS'
3676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3678ac_compiler_gnu=$ac_cv_c_compiler_gnu
3679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3680$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3681if ${am_cv_prog_cc_c_o+:} false; then :
3682  $as_echo_n "(cached) " >&6
3683else
3684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3685/* end confdefs.h.  */
3686
3687int
3688main ()
3689{
3690
3691  ;
3692  return 0;
3693}
3694_ACEOF
3695  # Make sure it works both with $CC and with simple cc.
3696  # Following AC_PROG_CC_C_O, we do the test twice because some
3697  # compilers refuse to overwrite an existing .o file with -o,
3698  # though they will create one.
3699  am_cv_prog_cc_c_o=yes
3700  for am_i in 1 2; do
3701    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3702   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3703   ac_status=$?
3704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705   (exit $ac_status); } \
3706         && test -f conftest2.$ac_objext; then
3707      : OK
3708    else
3709      am_cv_prog_cc_c_o=no
3710      break
3711    fi
3712  done
3713  rm -f core conftest*
3714  unset am_i
3715fi
3716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3717$as_echo "$am_cv_prog_cc_c_o" >&6; }
3718if test "$am_cv_prog_cc_c_o" != yes; then
3719   # Losing compiler, so override with the script.
3720   # FIXME: It is wrong to rewrite CC.
3721   # But if we don't then we get into trouble of one sort or another.
3722   # A longer-term fix would be to have automake use am__CC in this case,
3723   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3724   CC="$am_aux_dir/compile $CC"
3725fi
3726ac_ext=c
3727ac_cpp='$CPP $CPPFLAGS'
3728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3730ac_compiler_gnu=$ac_cv_c_compiler_gnu
3731
3732
3733depcc="$CC"   am_compiler_list=
3734
3735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3736$as_echo_n "checking dependency style of $depcc... " >&6; }
3737if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3738  $as_echo_n "(cached) " >&6
3739else
3740  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3741  # We make a subdir and do the tests there.  Otherwise we can end up
3742  # making bogus files that we don't know about and never remove.  For
3743  # instance it was reported that on HP-UX the gcc test will end up
3744  # making a dummy file named 'D' -- because '-MD' means "put the output
3745  # in D".
3746  rm -rf conftest.dir
3747  mkdir conftest.dir
3748  # Copy depcomp to subdir because otherwise we won't find it if we're
3749  # using a relative directory.
3750  cp "$am_depcomp" conftest.dir
3751  cd conftest.dir
3752  # We will build objects and dependencies in a subdirectory because
3753  # it helps to detect inapplicable dependency modes.  For instance
3754  # both Tru64's cc and ICC support -MD to output dependencies as a
3755  # side effect of compilation, but ICC will put the dependencies in
3756  # the current directory while Tru64 will put them in the object
3757  # directory.
3758  mkdir sub
3759
3760  am_cv_CC_dependencies_compiler_type=none
3761  if test "$am_compiler_list" = ""; then
3762     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3763  fi
3764  am__universal=false
3765  case " $depcc " in #(
3766     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3767     esac
3768
3769  for depmode in $am_compiler_list; do
3770    # Setup a source with many dependencies, because some compilers
3771    # like to wrap large dependency lists on column 80 (with \), and
3772    # we should not choose a depcomp mode which is confused by this.
3773    #
3774    # We need to recreate these files for each test, as the compiler may
3775    # overwrite some of them when testing with obscure command lines.
3776    # This happens at least with the AIX C compiler.
3777    : > sub/conftest.c
3778    for i in 1 2 3 4 5 6; do
3779      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3780      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3781      # Solaris 10 /bin/sh.
3782      echo '/* dummy */' > sub/conftst$i.h
3783    done
3784    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3785
3786    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3787    # mode.  It turns out that the SunPro C++ compiler does not properly
3788    # handle '-M -o', and we need to detect this.  Also, some Intel
3789    # versions had trouble with output in subdirs.
3790    am__obj=sub/conftest.${OBJEXT-o}
3791    am__minus_obj="-o $am__obj"
3792    case $depmode in
3793    gcc)
3794      # This depmode causes a compiler race in universal mode.
3795      test "$am__universal" = false || continue
3796      ;;
3797    nosideeffect)
3798      # After this tag, mechanisms are not by side-effect, so they'll
3799      # only be used when explicitly requested.
3800      if test "x$enable_dependency_tracking" = xyes; then
3801	continue
3802      else
3803	break
3804      fi
3805      ;;
3806    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3807      # This compiler won't grok '-c -o', but also, the minuso test has
3808      # not run yet.  These depmodes are late enough in the game, and
3809      # so weak that their functioning should not be impacted.
3810      am__obj=conftest.${OBJEXT-o}
3811      am__minus_obj=
3812      ;;
3813    none) break ;;
3814    esac
3815    if depmode=$depmode \
3816       source=sub/conftest.c object=$am__obj \
3817       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3818       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3819         >/dev/null 2>conftest.err &&
3820       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3821       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3822       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3823       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3824      # icc doesn't choke on unknown options, it will just issue warnings
3825      # or remarks (even with -Werror).  So we grep stderr for any message
3826      # that says an option was ignored or not supported.
3827      # When given -MP, icc 7.0 and 7.1 complain thusly:
3828      #   icc: Command line warning: ignoring option '-M'; no argument required
3829      # The diagnosis changed in icc 8.0:
3830      #   icc: Command line remark: option '-MP' not supported
3831      if (grep 'ignoring option' conftest.err ||
3832          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3833        am_cv_CC_dependencies_compiler_type=$depmode
3834        break
3835      fi
3836    fi
3837  done
3838
3839  cd ..
3840  rm -rf conftest.dir
3841else
3842  am_cv_CC_dependencies_compiler_type=none
3843fi
3844
3845fi
3846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3847$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3848CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3849
3850 if
3851  test "x$enable_dependency_tracking" != xno \
3852  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3853  am__fastdepCC_TRUE=
3854  am__fastdepCC_FALSE='#'
3855else
3856  am__fastdepCC_TRUE='#'
3857  am__fastdepCC_FALSE=
3858fi
3859
3860
3861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3862$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3863if ${ac_cv_prog_cc_c99+:} false; then :
3864  $as_echo_n "(cached) " >&6
3865else
3866  ac_cv_prog_cc_c99=no
3867ac_save_CC=$CC
3868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3869/* end confdefs.h.  */
3870#include <stdarg.h>
3871#include <stdbool.h>
3872#include <stdlib.h>
3873#include <wchar.h>
3874#include <stdio.h>
3875
3876// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3877#define debug(...) fprintf (stderr, __VA_ARGS__)
3878#define showlist(...) puts (#__VA_ARGS__)
3879#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3880static void
3881test_varargs_macros (void)
3882{
3883  int x = 1234;
3884  int y = 5678;
3885  debug ("Flag");
3886  debug ("X = %d\n", x);
3887  showlist (The first, second, and third items.);
3888  report (x>y, "x is %d but y is %d", x, y);
3889}
3890
3891// Check long long types.
3892#define BIG64 18446744073709551615ull
3893#define BIG32 4294967295ul
3894#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3895#if !BIG_OK
3896  your preprocessor is broken;
3897#endif
3898#if BIG_OK
3899#else
3900  your preprocessor is broken;
3901#endif
3902static long long int bignum = -9223372036854775807LL;
3903static unsigned long long int ubignum = BIG64;
3904
3905struct incomplete_array
3906{
3907  int datasize;
3908  double data[];
3909};
3910
3911struct named_init {
3912  int number;
3913  const wchar_t *name;
3914  double average;
3915};
3916
3917typedef const char *ccp;
3918
3919static inline int
3920test_restrict (ccp restrict text)
3921{
3922  // See if C++-style comments work.
3923  // Iterate through items via the restricted pointer.
3924  // Also check for declarations in for loops.
3925  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3926    continue;
3927  return 0;
3928}
3929
3930// Check varargs and va_copy.
3931static void
3932test_varargs (const char *format, ...)
3933{
3934  va_list args;
3935  va_start (args, format);
3936  va_list args_copy;
3937  va_copy (args_copy, args);
3938
3939  const char *str;
3940  int number;
3941  float fnumber;
3942
3943  while (*format)
3944    {
3945      switch (*format++)
3946	{
3947	case 's': // string
3948	  str = va_arg (args_copy, const char *);
3949	  break;
3950	case 'd': // int
3951	  number = va_arg (args_copy, int);
3952	  break;
3953	case 'f': // float
3954	  fnumber = va_arg (args_copy, double);
3955	  break;
3956	default:
3957	  break;
3958	}
3959    }
3960  va_end (args_copy);
3961  va_end (args);
3962}
3963
3964int
3965main ()
3966{
3967
3968  // Check bool.
3969  _Bool success = false;
3970
3971  // Check restrict.
3972  if (test_restrict ("String literal") == 0)
3973    success = true;
3974  char *restrict newvar = "Another string";
3975
3976  // Check varargs.
3977  test_varargs ("s, d' f .", "string", 65, 34.234);
3978  test_varargs_macros ();
3979
3980  // Check flexible array members.
3981  struct incomplete_array *ia =
3982    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3983  ia->datasize = 10;
3984  for (int i = 0; i < ia->datasize; ++i)
3985    ia->data[i] = i * 1.234;
3986
3987  // Check named initializers.
3988  struct named_init ni = {
3989    .number = 34,
3990    .name = L"Test wide string",
3991    .average = 543.34343,
3992  };
3993
3994  ni.number = 58;
3995
3996  int dynamic_array[ni.number];
3997  dynamic_array[ni.number - 1] = 543;
3998
3999  // work around unused variable warnings
4000  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4001	  || dynamic_array[ni.number - 1] != 543);
4002
4003  ;
4004  return 0;
4005}
4006_ACEOF
4007for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4008do
4009  CC="$ac_save_CC $ac_arg"
4010  if ac_fn_c_try_compile "$LINENO"; then :
4011  ac_cv_prog_cc_c99=$ac_arg
4012fi
4013rm -f core conftest.err conftest.$ac_objext
4014  test "x$ac_cv_prog_cc_c99" != "xno" && break
4015done
4016rm -f conftest.$ac_ext
4017CC=$ac_save_CC
4018
4019fi
4020# AC_CACHE_VAL
4021case "x$ac_cv_prog_cc_c99" in
4022  x)
4023    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4024$as_echo "none needed" >&6; } ;;
4025  xno)
4026    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4027$as_echo "unsupported" >&6; } ;;
4028  *)
4029    CC="$CC $ac_cv_prog_cc_c99"
4030    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4031$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4032esac
4033if test "x$ac_cv_prog_cc_c99" != xno; then :
4034
4035fi
4036
4037
4038
4039ac_ext=c
4040ac_cpp='$CPP $CPPFLAGS'
4041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4043ac_compiler_gnu=$ac_cv_c_compiler_gnu
4044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4045$as_echo_n "checking how to run the C preprocessor... " >&6; }
4046# On Suns, sometimes $CPP names a directory.
4047if test -n "$CPP" && test -d "$CPP"; then
4048  CPP=
4049fi
4050if test -z "$CPP"; then
4051  if ${ac_cv_prog_CPP+:} false; then :
4052  $as_echo_n "(cached) " >&6
4053else
4054      # Double quotes because CPP needs to be expanded
4055    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4056    do
4057      ac_preproc_ok=false
4058for ac_c_preproc_warn_flag in '' yes
4059do
4060  # Use a header file that comes with gcc, so configuring glibc
4061  # with a fresh cross-compiler works.
4062  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4063  # <limits.h> exists even on freestanding compilers.
4064  # On the NeXT, cc -E runs the code through the compiler's parser,
4065  # not just through cpp. "Syntax error" is here to catch this case.
4066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067/* end confdefs.h.  */
4068#ifdef __STDC__
4069# include <limits.h>
4070#else
4071# include <assert.h>
4072#endif
4073		     Syntax error
4074_ACEOF
4075if ac_fn_c_try_cpp "$LINENO"; then :
4076
4077else
4078  # Broken: fails on valid input.
4079continue
4080fi
4081rm -f conftest.err conftest.i conftest.$ac_ext
4082
4083  # OK, works on sane cases.  Now check whether nonexistent headers
4084  # can be detected and how.
4085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086/* end confdefs.h.  */
4087#include <ac_nonexistent.h>
4088_ACEOF
4089if ac_fn_c_try_cpp "$LINENO"; then :
4090  # Broken: success on invalid input.
4091continue
4092else
4093  # Passes both tests.
4094ac_preproc_ok=:
4095break
4096fi
4097rm -f conftest.err conftest.i conftest.$ac_ext
4098
4099done
4100# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4101rm -f conftest.i conftest.err conftest.$ac_ext
4102if $ac_preproc_ok; then :
4103  break
4104fi
4105
4106    done
4107    ac_cv_prog_CPP=$CPP
4108
4109fi
4110  CPP=$ac_cv_prog_CPP
4111else
4112  ac_cv_prog_CPP=$CPP
4113fi
4114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4115$as_echo "$CPP" >&6; }
4116ac_preproc_ok=false
4117for ac_c_preproc_warn_flag in '' yes
4118do
4119  # Use a header file that comes with gcc, so configuring glibc
4120  # with a fresh cross-compiler works.
4121  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4122  # <limits.h> exists even on freestanding compilers.
4123  # On the NeXT, cc -E runs the code through the compiler's parser,
4124  # not just through cpp. "Syntax error" is here to catch this case.
4125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126/* end confdefs.h.  */
4127#ifdef __STDC__
4128# include <limits.h>
4129#else
4130# include <assert.h>
4131#endif
4132		     Syntax error
4133_ACEOF
4134if ac_fn_c_try_cpp "$LINENO"; then :
4135
4136else
4137  # Broken: fails on valid input.
4138continue
4139fi
4140rm -f conftest.err conftest.i conftest.$ac_ext
4141
4142  # OK, works on sane cases.  Now check whether nonexistent headers
4143  # can be detected and how.
4144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145/* end confdefs.h.  */
4146#include <ac_nonexistent.h>
4147_ACEOF
4148if ac_fn_c_try_cpp "$LINENO"; then :
4149  # Broken: success on invalid input.
4150continue
4151else
4152  # Passes both tests.
4153ac_preproc_ok=:
4154break
4155fi
4156rm -f conftest.err conftest.i conftest.$ac_ext
4157
4158done
4159# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4160rm -f conftest.i conftest.err conftest.$ac_ext
4161if $ac_preproc_ok; then :
4162
4163else
4164  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4165$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4166as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4167See \`config.log' for more details" "$LINENO" 5; }
4168fi
4169
4170ac_ext=c
4171ac_cpp='$CPP $CPPFLAGS'
4172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4174ac_compiler_gnu=$ac_cv_c_compiler_gnu
4175
4176
4177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4178$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4179if ${ac_cv_path_GREP+:} false; then :
4180  $as_echo_n "(cached) " >&6
4181else
4182  if test -z "$GREP"; then
4183  ac_path_GREP_found=false
4184  # Loop through the user's path and test for each of PROGNAME-LIST
4185  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4187do
4188  IFS=$as_save_IFS
4189  test -z "$as_dir" && as_dir=.
4190    for ac_prog in grep ggrep; do
4191    for ac_exec_ext in '' $ac_executable_extensions; do
4192      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4193      as_fn_executable_p "$ac_path_GREP" || continue
4194# Check for GNU ac_path_GREP and select it if it is found.
4195  # Check for GNU $ac_path_GREP
4196case `"$ac_path_GREP" --version 2>&1` in
4197*GNU*)
4198  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4199*)
4200  ac_count=0
4201  $as_echo_n 0123456789 >"conftest.in"
4202  while :
4203  do
4204    cat "conftest.in" "conftest.in" >"conftest.tmp"
4205    mv "conftest.tmp" "conftest.in"
4206    cp "conftest.in" "conftest.nl"
4207    $as_echo 'GREP' >> "conftest.nl"
4208    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4209    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4210    as_fn_arith $ac_count + 1 && ac_count=$as_val
4211    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4212      # Best one so far, save it but keep looking for a better one
4213      ac_cv_path_GREP="$ac_path_GREP"
4214      ac_path_GREP_max=$ac_count
4215    fi
4216    # 10*(2^10) chars as input seems more than enough
4217    test $ac_count -gt 10 && break
4218  done
4219  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4220esac
4221
4222      $ac_path_GREP_found && break 3
4223    done
4224  done
4225  done
4226IFS=$as_save_IFS
4227  if test -z "$ac_cv_path_GREP"; then
4228    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4229  fi
4230else
4231  ac_cv_path_GREP=$GREP
4232fi
4233
4234fi
4235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4236$as_echo "$ac_cv_path_GREP" >&6; }
4237 GREP="$ac_cv_path_GREP"
4238
4239
4240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4241$as_echo_n "checking for egrep... " >&6; }
4242if ${ac_cv_path_EGREP+:} false; then :
4243  $as_echo_n "(cached) " >&6
4244else
4245  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4246   then ac_cv_path_EGREP="$GREP -E"
4247   else
4248     if test -z "$EGREP"; then
4249  ac_path_EGREP_found=false
4250  # Loop through the user's path and test for each of PROGNAME-LIST
4251  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4253do
4254  IFS=$as_save_IFS
4255  test -z "$as_dir" && as_dir=.
4256    for ac_prog in egrep; do
4257    for ac_exec_ext in '' $ac_executable_extensions; do
4258      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4259      as_fn_executable_p "$ac_path_EGREP" || continue
4260# Check for GNU ac_path_EGREP and select it if it is found.
4261  # Check for GNU $ac_path_EGREP
4262case `"$ac_path_EGREP" --version 2>&1` in
4263*GNU*)
4264  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4265*)
4266  ac_count=0
4267  $as_echo_n 0123456789 >"conftest.in"
4268  while :
4269  do
4270    cat "conftest.in" "conftest.in" >"conftest.tmp"
4271    mv "conftest.tmp" "conftest.in"
4272    cp "conftest.in" "conftest.nl"
4273    $as_echo 'EGREP' >> "conftest.nl"
4274    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4275    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4276    as_fn_arith $ac_count + 1 && ac_count=$as_val
4277    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4278      # Best one so far, save it but keep looking for a better one
4279      ac_cv_path_EGREP="$ac_path_EGREP"
4280      ac_path_EGREP_max=$ac_count
4281    fi
4282    # 10*(2^10) chars as input seems more than enough
4283    test $ac_count -gt 10 && break
4284  done
4285  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4286esac
4287
4288      $ac_path_EGREP_found && break 3
4289    done
4290  done
4291  done
4292IFS=$as_save_IFS
4293  if test -z "$ac_cv_path_EGREP"; then
4294    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4295  fi
4296else
4297  ac_cv_path_EGREP=$EGREP
4298fi
4299
4300   fi
4301fi
4302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4303$as_echo "$ac_cv_path_EGREP" >&6; }
4304 EGREP="$ac_cv_path_EGREP"
4305
4306
4307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4308$as_echo_n "checking for ANSI C header files... " >&6; }
4309if ${ac_cv_header_stdc+:} false; then :
4310  $as_echo_n "(cached) " >&6
4311else
4312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4313/* end confdefs.h.  */
4314#include <stdlib.h>
4315#include <stdarg.h>
4316#include <string.h>
4317#include <float.h>
4318
4319int
4320main ()
4321{
4322
4323  ;
4324  return 0;
4325}
4326_ACEOF
4327if ac_fn_c_try_compile "$LINENO"; then :
4328  ac_cv_header_stdc=yes
4329else
4330  ac_cv_header_stdc=no
4331fi
4332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4333
4334if test $ac_cv_header_stdc = yes; then
4335  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337/* end confdefs.h.  */
4338#include <string.h>
4339
4340_ACEOF
4341if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4342  $EGREP "memchr" >/dev/null 2>&1; then :
4343
4344else
4345  ac_cv_header_stdc=no
4346fi
4347rm -f conftest*
4348
4349fi
4350
4351if test $ac_cv_header_stdc = yes; then
4352  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4353  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4354/* end confdefs.h.  */
4355#include <stdlib.h>
4356
4357_ACEOF
4358if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4359  $EGREP "free" >/dev/null 2>&1; then :
4360
4361else
4362  ac_cv_header_stdc=no
4363fi
4364rm -f conftest*
4365
4366fi
4367
4368if test $ac_cv_header_stdc = yes; then
4369  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4370  if test "$cross_compiling" = yes; then :
4371  :
4372else
4373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4374/* end confdefs.h.  */
4375#include <ctype.h>
4376#include <stdlib.h>
4377#if ((' ' & 0x0FF) == 0x020)
4378# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4379# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4380#else
4381# define ISLOWER(c) \
4382		   (('a' <= (c) && (c) <= 'i') \
4383		     || ('j' <= (c) && (c) <= 'r') \
4384		     || ('s' <= (c) && (c) <= 'z'))
4385# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4386#endif
4387
4388#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4389int
4390main ()
4391{
4392  int i;
4393  for (i = 0; i < 256; i++)
4394    if (XOR (islower (i), ISLOWER (i))
4395	|| toupper (i) != TOUPPER (i))
4396      return 2;
4397  return 0;
4398}
4399_ACEOF
4400if ac_fn_c_try_run "$LINENO"; then :
4401
4402else
4403  ac_cv_header_stdc=no
4404fi
4405rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4406  conftest.$ac_objext conftest.beam conftest.$ac_ext
4407fi
4408
4409fi
4410fi
4411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4412$as_echo "$ac_cv_header_stdc" >&6; }
4413if test $ac_cv_header_stdc = yes; then
4414
4415$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4416
4417fi
4418
4419# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4420for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4421		  inttypes.h stdint.h unistd.h
4422do :
4423  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4424ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4425"
4426if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4427  cat >>confdefs.h <<_ACEOF
4428#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4429_ACEOF
4430
4431fi
4432
4433done
4434
4435
4436
4437
4438
4439
4440ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4441if test "x$ac_cv_have_decl___clang__" = xyes; then :
4442  CLANGCC="yes"
4443else
4444  CLANGCC="no"
4445fi
4446
4447ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4448if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4449  INTELCC="yes"
4450else
4451  INTELCC="no"
4452fi
4453
4454ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4455if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4456  SUNCC="yes"
4457else
4458  SUNCC="no"
4459fi
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4470	if test -n "$ac_tool_prefix"; then
4471  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4472set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4474$as_echo_n "checking for $ac_word... " >&6; }
4475if ${ac_cv_path_PKG_CONFIG+:} false; then :
4476  $as_echo_n "(cached) " >&6
4477else
4478  case $PKG_CONFIG in
4479  [\\/]* | ?:[\\/]*)
4480  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4481  ;;
4482  *)
4483  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484for as_dir in $PATH
4485do
4486  IFS=$as_save_IFS
4487  test -z "$as_dir" && as_dir=.
4488    for ac_exec_ext in '' $ac_executable_extensions; do
4489  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4490    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4491    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4492    break 2
4493  fi
4494done
4495  done
4496IFS=$as_save_IFS
4497
4498  ;;
4499esac
4500fi
4501PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4502if test -n "$PKG_CONFIG"; then
4503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4504$as_echo "$PKG_CONFIG" >&6; }
4505else
4506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4507$as_echo "no" >&6; }
4508fi
4509
4510
4511fi
4512if test -z "$ac_cv_path_PKG_CONFIG"; then
4513  ac_pt_PKG_CONFIG=$PKG_CONFIG
4514  # Extract the first word of "pkg-config", so it can be a program name with args.
4515set dummy pkg-config; ac_word=$2
4516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4517$as_echo_n "checking for $ac_word... " >&6; }
4518if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4519  $as_echo_n "(cached) " >&6
4520else
4521  case $ac_pt_PKG_CONFIG in
4522  [\\/]* | ?:[\\/]*)
4523  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4524  ;;
4525  *)
4526  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527for as_dir in $PATH
4528do
4529  IFS=$as_save_IFS
4530  test -z "$as_dir" && as_dir=.
4531    for ac_exec_ext in '' $ac_executable_extensions; do
4532  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4533    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4534    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4535    break 2
4536  fi
4537done
4538  done
4539IFS=$as_save_IFS
4540
4541  ;;
4542esac
4543fi
4544ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4545if test -n "$ac_pt_PKG_CONFIG"; then
4546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4547$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4548else
4549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4550$as_echo "no" >&6; }
4551fi
4552
4553  if test "x$ac_pt_PKG_CONFIG" = x; then
4554    PKG_CONFIG=""
4555  else
4556    case $cross_compiling:$ac_tool_warned in
4557yes:)
4558{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4559$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4560ac_tool_warned=yes ;;
4561esac
4562    PKG_CONFIG=$ac_pt_PKG_CONFIG
4563  fi
4564else
4565  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4566fi
4567
4568fi
4569if test -n "$PKG_CONFIG"; then
4570	_pkg_min_version=0.9.0
4571	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4572$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4573	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4574		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4575$as_echo "yes" >&6; }
4576	else
4577		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4578$as_echo "no" >&6; }
4579		PKG_CONFIG=""
4580	fi
4581fi
4582# Make sure we can run config.sub.
4583$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4584  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4585
4586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4587$as_echo_n "checking build system type... " >&6; }
4588if ${ac_cv_build+:} false; then :
4589  $as_echo_n "(cached) " >&6
4590else
4591  ac_build_alias=$build_alias
4592test "x$ac_build_alias" = x &&
4593  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4594test "x$ac_build_alias" = x &&
4595  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4596ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4597  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4598
4599fi
4600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4601$as_echo "$ac_cv_build" >&6; }
4602case $ac_cv_build in
4603*-*-*) ;;
4604*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4605esac
4606build=$ac_cv_build
4607ac_save_IFS=$IFS; IFS='-'
4608set x $ac_cv_build
4609shift
4610build_cpu=$1
4611build_vendor=$2
4612shift; shift
4613# Remember, the first character of IFS is used to create $*,
4614# except with old shells:
4615build_os=$*
4616IFS=$ac_save_IFS
4617case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4618
4619
4620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4621$as_echo_n "checking host system type... " >&6; }
4622if ${ac_cv_host+:} false; then :
4623  $as_echo_n "(cached) " >&6
4624else
4625  if test "x$host_alias" = x; then
4626  ac_cv_host=$ac_cv_build
4627else
4628  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4629    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4630fi
4631
4632fi
4633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4634$as_echo "$ac_cv_host" >&6; }
4635case $ac_cv_host in
4636*-*-*) ;;
4637*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4638esac
4639host=$ac_cv_host
4640ac_save_IFS=$IFS; IFS='-'
4641set x $ac_cv_host
4642shift
4643host_cpu=$1
4644host_vendor=$2
4645shift; shift
4646# Remember, the first character of IFS is used to create $*,
4647# except with old shells:
4648host_os=$*
4649IFS=$ac_save_IFS
4650case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4651
4652
4653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4654$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4655if ${ac_cv_path_SED+:} false; then :
4656  $as_echo_n "(cached) " >&6
4657else
4658            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4659     for ac_i in 1 2 3 4 5 6 7; do
4660       ac_script="$ac_script$as_nl$ac_script"
4661     done
4662     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4663     { ac_script=; unset ac_script;}
4664     if test -z "$SED"; then
4665  ac_path_SED_found=false
4666  # Loop through the user's path and test for each of PROGNAME-LIST
4667  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668for as_dir in $PATH
4669do
4670  IFS=$as_save_IFS
4671  test -z "$as_dir" && as_dir=.
4672    for ac_prog in sed gsed; do
4673    for ac_exec_ext in '' $ac_executable_extensions; do
4674      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4675      as_fn_executable_p "$ac_path_SED" || continue
4676# Check for GNU ac_path_SED and select it if it is found.
4677  # Check for GNU $ac_path_SED
4678case `"$ac_path_SED" --version 2>&1` in
4679*GNU*)
4680  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4681*)
4682  ac_count=0
4683  $as_echo_n 0123456789 >"conftest.in"
4684  while :
4685  do
4686    cat "conftest.in" "conftest.in" >"conftest.tmp"
4687    mv "conftest.tmp" "conftest.in"
4688    cp "conftest.in" "conftest.nl"
4689    $as_echo '' >> "conftest.nl"
4690    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4691    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4692    as_fn_arith $ac_count + 1 && ac_count=$as_val
4693    if test $ac_count -gt ${ac_path_SED_max-0}; then
4694      # Best one so far, save it but keep looking for a better one
4695      ac_cv_path_SED="$ac_path_SED"
4696      ac_path_SED_max=$ac_count
4697    fi
4698    # 10*(2^10) chars as input seems more than enough
4699    test $ac_count -gt 10 && break
4700  done
4701  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4702esac
4703
4704      $ac_path_SED_found && break 3
4705    done
4706  done
4707  done
4708IFS=$as_save_IFS
4709  if test -z "$ac_cv_path_SED"; then
4710    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4711  fi
4712else
4713  ac_cv_path_SED=$SED
4714fi
4715
4716fi
4717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4718$as_echo "$ac_cv_path_SED" >&6; }
4719 SED="$ac_cv_path_SED"
4720  rm -f conftest.sed
4721
4722
4723
4724
4725
4726
4727# Check whether --enable-selective-werror was given.
4728if test "${enable_selective_werror+set}" = set; then :
4729  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4730else
4731  SELECTIVE_WERROR=yes
4732fi
4733
4734
4735
4736
4737
4738# -v is too short to test reliably with XORG_TESTSET_CFLAG
4739if test "x$SUNCC" = "xyes"; then
4740    BASE_CFLAGS="-v"
4741else
4742    BASE_CFLAGS=""
4743fi
4744
4745# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759xorg_testset_save_CFLAGS="$CFLAGS"
4760
4761if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4762	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4763	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4764$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4765if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4766  $as_echo_n "(cached) " >&6
4767else
4768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4769/* end confdefs.h.  */
4770int i;
4771_ACEOF
4772if ac_fn_c_try_compile "$LINENO"; then :
4773  xorg_cv_cc_flag_unknown_warning_option=yes
4774else
4775  xorg_cv_cc_flag_unknown_warning_option=no
4776fi
4777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4778fi
4779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4780$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4781	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4782	CFLAGS="$xorg_testset_save_CFLAGS"
4783fi
4784
4785if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4786	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4787		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4788	fi
4789	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4790	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4791$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4792if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4793  $as_echo_n "(cached) " >&6
4794else
4795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796/* end confdefs.h.  */
4797int i;
4798_ACEOF
4799if ac_fn_c_try_compile "$LINENO"; then :
4800  xorg_cv_cc_flag_unused_command_line_argument=yes
4801else
4802  xorg_cv_cc_flag_unused_command_line_argument=no
4803fi
4804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4805fi
4806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4807$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4808	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4809	CFLAGS="$xorg_testset_save_CFLAGS"
4810fi
4811
4812found="no"
4813
4814	if test $found = "no" ; then
4815		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4816			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4817		fi
4818
4819		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4820			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4821		fi
4822
4823		CFLAGS="$CFLAGS -Wall"
4824
4825		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4826$as_echo_n "checking if $CC supports -Wall... " >&6; }
4827		cacheid=xorg_cv_cc_flag__Wall
4828		if eval \${$cacheid+:} false; then :
4829  $as_echo_n "(cached) " >&6
4830else
4831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4832/* end confdefs.h.  */
4833int i;
4834int
4835main ()
4836{
4837
4838  ;
4839  return 0;
4840}
4841_ACEOF
4842if ac_fn_c_try_link "$LINENO"; then :
4843  eval $cacheid=yes
4844else
4845  eval $cacheid=no
4846fi
4847rm -f core conftest.err conftest.$ac_objext \
4848    conftest$ac_exeext conftest.$ac_ext
4849fi
4850
4851
4852		CFLAGS="$xorg_testset_save_CFLAGS"
4853
4854		eval supported=\$$cacheid
4855		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4856$as_echo "$supported" >&6; }
4857		if test "$supported" = "yes" ; then
4858			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4859			found="yes"
4860		fi
4861	fi
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877xorg_testset_save_CFLAGS="$CFLAGS"
4878
4879if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4880	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4881	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4882$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4883if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4884  $as_echo_n "(cached) " >&6
4885else
4886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4887/* end confdefs.h.  */
4888int i;
4889_ACEOF
4890if ac_fn_c_try_compile "$LINENO"; then :
4891  xorg_cv_cc_flag_unknown_warning_option=yes
4892else
4893  xorg_cv_cc_flag_unknown_warning_option=no
4894fi
4895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4896fi
4897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4898$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4899	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4900	CFLAGS="$xorg_testset_save_CFLAGS"
4901fi
4902
4903if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4904	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4905		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4906	fi
4907	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4908	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4909$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4910if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4911  $as_echo_n "(cached) " >&6
4912else
4913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914/* end confdefs.h.  */
4915int i;
4916_ACEOF
4917if ac_fn_c_try_compile "$LINENO"; then :
4918  xorg_cv_cc_flag_unused_command_line_argument=yes
4919else
4920  xorg_cv_cc_flag_unused_command_line_argument=no
4921fi
4922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4923fi
4924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4925$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4926	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4927	CFLAGS="$xorg_testset_save_CFLAGS"
4928fi
4929
4930found="no"
4931
4932	if test $found = "no" ; then
4933		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4934			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4935		fi
4936
4937		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4938			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4939		fi
4940
4941		CFLAGS="$CFLAGS -Wpointer-arith"
4942
4943		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4944$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4945		cacheid=xorg_cv_cc_flag__Wpointer_arith
4946		if eval \${$cacheid+:} false; then :
4947  $as_echo_n "(cached) " >&6
4948else
4949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4950/* end confdefs.h.  */
4951int i;
4952int
4953main ()
4954{
4955
4956  ;
4957  return 0;
4958}
4959_ACEOF
4960if ac_fn_c_try_link "$LINENO"; then :
4961  eval $cacheid=yes
4962else
4963  eval $cacheid=no
4964fi
4965rm -f core conftest.err conftest.$ac_objext \
4966    conftest$ac_exeext conftest.$ac_ext
4967fi
4968
4969
4970		CFLAGS="$xorg_testset_save_CFLAGS"
4971
4972		eval supported=\$$cacheid
4973		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4974$as_echo "$supported" >&6; }
4975		if test "$supported" = "yes" ; then
4976			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4977			found="yes"
4978		fi
4979	fi
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995xorg_testset_save_CFLAGS="$CFLAGS"
4996
4997if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4998	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4999	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5000$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5001if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5002  $as_echo_n "(cached) " >&6
5003else
5004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5005/* end confdefs.h.  */
5006int i;
5007_ACEOF
5008if ac_fn_c_try_compile "$LINENO"; then :
5009  xorg_cv_cc_flag_unknown_warning_option=yes
5010else
5011  xorg_cv_cc_flag_unknown_warning_option=no
5012fi
5013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5014fi
5015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5016$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5017	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5018	CFLAGS="$xorg_testset_save_CFLAGS"
5019fi
5020
5021if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5022	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5023		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5024	fi
5025	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5026	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5027$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5028if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5029  $as_echo_n "(cached) " >&6
5030else
5031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5032/* end confdefs.h.  */
5033int i;
5034_ACEOF
5035if ac_fn_c_try_compile "$LINENO"; then :
5036  xorg_cv_cc_flag_unused_command_line_argument=yes
5037else
5038  xorg_cv_cc_flag_unused_command_line_argument=no
5039fi
5040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5041fi
5042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5043$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5044	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5045	CFLAGS="$xorg_testset_save_CFLAGS"
5046fi
5047
5048found="no"
5049
5050	if test $found = "no" ; then
5051		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5052			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5053		fi
5054
5055		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5056			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5057		fi
5058
5059		CFLAGS="$CFLAGS -Wmissing-declarations"
5060
5061		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5062$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5063		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5064		if eval \${$cacheid+:} false; then :
5065  $as_echo_n "(cached) " >&6
5066else
5067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068/* end confdefs.h.  */
5069int i;
5070int
5071main ()
5072{
5073
5074  ;
5075  return 0;
5076}
5077_ACEOF
5078if ac_fn_c_try_link "$LINENO"; then :
5079  eval $cacheid=yes
5080else
5081  eval $cacheid=no
5082fi
5083rm -f core conftest.err conftest.$ac_objext \
5084    conftest$ac_exeext conftest.$ac_ext
5085fi
5086
5087
5088		CFLAGS="$xorg_testset_save_CFLAGS"
5089
5090		eval supported=\$$cacheid
5091		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5092$as_echo "$supported" >&6; }
5093		if test "$supported" = "yes" ; then
5094			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5095			found="yes"
5096		fi
5097	fi
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113xorg_testset_save_CFLAGS="$CFLAGS"
5114
5115if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5116	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5117	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5118$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5119if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5120  $as_echo_n "(cached) " >&6
5121else
5122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123/* end confdefs.h.  */
5124int i;
5125_ACEOF
5126if ac_fn_c_try_compile "$LINENO"; then :
5127  xorg_cv_cc_flag_unknown_warning_option=yes
5128else
5129  xorg_cv_cc_flag_unknown_warning_option=no
5130fi
5131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5132fi
5133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5134$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5135	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5136	CFLAGS="$xorg_testset_save_CFLAGS"
5137fi
5138
5139if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5140	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5141		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5142	fi
5143	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5144	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5145$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5146if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5147  $as_echo_n "(cached) " >&6
5148else
5149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5150/* end confdefs.h.  */
5151int i;
5152_ACEOF
5153if ac_fn_c_try_compile "$LINENO"; then :
5154  xorg_cv_cc_flag_unused_command_line_argument=yes
5155else
5156  xorg_cv_cc_flag_unused_command_line_argument=no
5157fi
5158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5159fi
5160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5161$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5162	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5163	CFLAGS="$xorg_testset_save_CFLAGS"
5164fi
5165
5166found="no"
5167
5168	if test $found = "no" ; then
5169		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5170			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5171		fi
5172
5173		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5174			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5175		fi
5176
5177		CFLAGS="$CFLAGS -Wformat=2"
5178
5179		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5180$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5181		cacheid=xorg_cv_cc_flag__Wformat_2
5182		if eval \${$cacheid+:} false; then :
5183  $as_echo_n "(cached) " >&6
5184else
5185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5186/* end confdefs.h.  */
5187int i;
5188int
5189main ()
5190{
5191
5192  ;
5193  return 0;
5194}
5195_ACEOF
5196if ac_fn_c_try_link "$LINENO"; then :
5197  eval $cacheid=yes
5198else
5199  eval $cacheid=no
5200fi
5201rm -f core conftest.err conftest.$ac_objext \
5202    conftest$ac_exeext conftest.$ac_ext
5203fi
5204
5205
5206		CFLAGS="$xorg_testset_save_CFLAGS"
5207
5208		eval supported=\$$cacheid
5209		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5210$as_echo "$supported" >&6; }
5211		if test "$supported" = "yes" ; then
5212			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5213			found="yes"
5214		fi
5215	fi
5216
5217	if test $found = "no" ; then
5218		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5219			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5220		fi
5221
5222		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5223			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5224		fi
5225
5226		CFLAGS="$CFLAGS -Wformat"
5227
5228		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5229$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5230		cacheid=xorg_cv_cc_flag__Wformat
5231		if eval \${$cacheid+:} false; then :
5232  $as_echo_n "(cached) " >&6
5233else
5234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5235/* end confdefs.h.  */
5236int i;
5237int
5238main ()
5239{
5240
5241  ;
5242  return 0;
5243}
5244_ACEOF
5245if ac_fn_c_try_link "$LINENO"; then :
5246  eval $cacheid=yes
5247else
5248  eval $cacheid=no
5249fi
5250rm -f core conftest.err conftest.$ac_objext \
5251    conftest$ac_exeext conftest.$ac_ext
5252fi
5253
5254
5255		CFLAGS="$xorg_testset_save_CFLAGS"
5256
5257		eval supported=\$$cacheid
5258		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5259$as_echo "$supported" >&6; }
5260		if test "$supported" = "yes" ; then
5261			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5262			found="yes"
5263		fi
5264	fi
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282xorg_testset_save_CFLAGS="$CFLAGS"
5283
5284if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5285	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5286	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5287$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5288if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5289  $as_echo_n "(cached) " >&6
5290else
5291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292/* end confdefs.h.  */
5293int i;
5294_ACEOF
5295if ac_fn_c_try_compile "$LINENO"; then :
5296  xorg_cv_cc_flag_unknown_warning_option=yes
5297else
5298  xorg_cv_cc_flag_unknown_warning_option=no
5299fi
5300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5301fi
5302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5303$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5304	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5305	CFLAGS="$xorg_testset_save_CFLAGS"
5306fi
5307
5308if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5309	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5310		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5311	fi
5312	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5313	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5314$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5315if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5316  $as_echo_n "(cached) " >&6
5317else
5318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5319/* end confdefs.h.  */
5320int i;
5321_ACEOF
5322if ac_fn_c_try_compile "$LINENO"; then :
5323  xorg_cv_cc_flag_unused_command_line_argument=yes
5324else
5325  xorg_cv_cc_flag_unused_command_line_argument=no
5326fi
5327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5328fi
5329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5330$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5331	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5332	CFLAGS="$xorg_testset_save_CFLAGS"
5333fi
5334
5335found="no"
5336
5337	if test $found = "no" ; then
5338		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5339			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5340		fi
5341
5342		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5343			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5344		fi
5345
5346		CFLAGS="$CFLAGS -Wstrict-prototypes"
5347
5348		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5349$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5350		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5351		if eval \${$cacheid+:} false; then :
5352  $as_echo_n "(cached) " >&6
5353else
5354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355/* end confdefs.h.  */
5356int i;
5357int
5358main ()
5359{
5360
5361  ;
5362  return 0;
5363}
5364_ACEOF
5365if ac_fn_c_try_link "$LINENO"; then :
5366  eval $cacheid=yes
5367else
5368  eval $cacheid=no
5369fi
5370rm -f core conftest.err conftest.$ac_objext \
5371    conftest$ac_exeext conftest.$ac_ext
5372fi
5373
5374
5375		CFLAGS="$xorg_testset_save_CFLAGS"
5376
5377		eval supported=\$$cacheid
5378		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5379$as_echo "$supported" >&6; }
5380		if test "$supported" = "yes" ; then
5381			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5382			found="yes"
5383		fi
5384	fi
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400xorg_testset_save_CFLAGS="$CFLAGS"
5401
5402if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5403	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5404	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5405$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5406if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5407  $as_echo_n "(cached) " >&6
5408else
5409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5410/* end confdefs.h.  */
5411int i;
5412_ACEOF
5413if ac_fn_c_try_compile "$LINENO"; then :
5414  xorg_cv_cc_flag_unknown_warning_option=yes
5415else
5416  xorg_cv_cc_flag_unknown_warning_option=no
5417fi
5418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5419fi
5420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5421$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5422	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5423	CFLAGS="$xorg_testset_save_CFLAGS"
5424fi
5425
5426if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5427	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5428		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5429	fi
5430	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5431	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5432$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5433if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5434  $as_echo_n "(cached) " >&6
5435else
5436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5437/* end confdefs.h.  */
5438int i;
5439_ACEOF
5440if ac_fn_c_try_compile "$LINENO"; then :
5441  xorg_cv_cc_flag_unused_command_line_argument=yes
5442else
5443  xorg_cv_cc_flag_unused_command_line_argument=no
5444fi
5445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5446fi
5447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5448$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5449	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5450	CFLAGS="$xorg_testset_save_CFLAGS"
5451fi
5452
5453found="no"
5454
5455	if test $found = "no" ; then
5456		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5457			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5458		fi
5459
5460		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5461			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5462		fi
5463
5464		CFLAGS="$CFLAGS -Wmissing-prototypes"
5465
5466		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5467$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5468		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5469		if eval \${$cacheid+:} false; then :
5470  $as_echo_n "(cached) " >&6
5471else
5472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5473/* end confdefs.h.  */
5474int i;
5475int
5476main ()
5477{
5478
5479  ;
5480  return 0;
5481}
5482_ACEOF
5483if ac_fn_c_try_link "$LINENO"; then :
5484  eval $cacheid=yes
5485else
5486  eval $cacheid=no
5487fi
5488rm -f core conftest.err conftest.$ac_objext \
5489    conftest$ac_exeext conftest.$ac_ext
5490fi
5491
5492
5493		CFLAGS="$xorg_testset_save_CFLAGS"
5494
5495		eval supported=\$$cacheid
5496		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5497$as_echo "$supported" >&6; }
5498		if test "$supported" = "yes" ; then
5499			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5500			found="yes"
5501		fi
5502	fi
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518xorg_testset_save_CFLAGS="$CFLAGS"
5519
5520if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5521	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5522	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5523$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5524if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5525  $as_echo_n "(cached) " >&6
5526else
5527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5528/* end confdefs.h.  */
5529int i;
5530_ACEOF
5531if ac_fn_c_try_compile "$LINENO"; then :
5532  xorg_cv_cc_flag_unknown_warning_option=yes
5533else
5534  xorg_cv_cc_flag_unknown_warning_option=no
5535fi
5536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537fi
5538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5539$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5540	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5541	CFLAGS="$xorg_testset_save_CFLAGS"
5542fi
5543
5544if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5545	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5546		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5547	fi
5548	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5549	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5550$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5551if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5552  $as_echo_n "(cached) " >&6
5553else
5554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5555/* end confdefs.h.  */
5556int i;
5557_ACEOF
5558if ac_fn_c_try_compile "$LINENO"; then :
5559  xorg_cv_cc_flag_unused_command_line_argument=yes
5560else
5561  xorg_cv_cc_flag_unused_command_line_argument=no
5562fi
5563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5564fi
5565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5566$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5567	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5568	CFLAGS="$xorg_testset_save_CFLAGS"
5569fi
5570
5571found="no"
5572
5573	if test $found = "no" ; then
5574		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5575			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5576		fi
5577
5578		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5579			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5580		fi
5581
5582		CFLAGS="$CFLAGS -Wnested-externs"
5583
5584		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5585$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5586		cacheid=xorg_cv_cc_flag__Wnested_externs
5587		if eval \${$cacheid+:} false; then :
5588  $as_echo_n "(cached) " >&6
5589else
5590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5591/* end confdefs.h.  */
5592int i;
5593int
5594main ()
5595{
5596
5597  ;
5598  return 0;
5599}
5600_ACEOF
5601if ac_fn_c_try_link "$LINENO"; then :
5602  eval $cacheid=yes
5603else
5604  eval $cacheid=no
5605fi
5606rm -f core conftest.err conftest.$ac_objext \
5607    conftest$ac_exeext conftest.$ac_ext
5608fi
5609
5610
5611		CFLAGS="$xorg_testset_save_CFLAGS"
5612
5613		eval supported=\$$cacheid
5614		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5615$as_echo "$supported" >&6; }
5616		if test "$supported" = "yes" ; then
5617			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5618			found="yes"
5619		fi
5620	fi
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636xorg_testset_save_CFLAGS="$CFLAGS"
5637
5638if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5639	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5640	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5641$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5642if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5643  $as_echo_n "(cached) " >&6
5644else
5645  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646/* end confdefs.h.  */
5647int i;
5648_ACEOF
5649if ac_fn_c_try_compile "$LINENO"; then :
5650  xorg_cv_cc_flag_unknown_warning_option=yes
5651else
5652  xorg_cv_cc_flag_unknown_warning_option=no
5653fi
5654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5655fi
5656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5657$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5658	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5659	CFLAGS="$xorg_testset_save_CFLAGS"
5660fi
5661
5662if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5663	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5664		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5665	fi
5666	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5667	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5668$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5669if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5670  $as_echo_n "(cached) " >&6
5671else
5672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5673/* end confdefs.h.  */
5674int i;
5675_ACEOF
5676if ac_fn_c_try_compile "$LINENO"; then :
5677  xorg_cv_cc_flag_unused_command_line_argument=yes
5678else
5679  xorg_cv_cc_flag_unused_command_line_argument=no
5680fi
5681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5682fi
5683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5684$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5685	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5686	CFLAGS="$xorg_testset_save_CFLAGS"
5687fi
5688
5689found="no"
5690
5691	if test $found = "no" ; then
5692		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5693			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5694		fi
5695
5696		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5697			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5698		fi
5699
5700		CFLAGS="$CFLAGS -Wbad-function-cast"
5701
5702		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5703$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5704		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5705		if eval \${$cacheid+:} false; then :
5706  $as_echo_n "(cached) " >&6
5707else
5708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5709/* end confdefs.h.  */
5710int i;
5711int
5712main ()
5713{
5714
5715  ;
5716  return 0;
5717}
5718_ACEOF
5719if ac_fn_c_try_link "$LINENO"; then :
5720  eval $cacheid=yes
5721else
5722  eval $cacheid=no
5723fi
5724rm -f core conftest.err conftest.$ac_objext \
5725    conftest$ac_exeext conftest.$ac_ext
5726fi
5727
5728
5729		CFLAGS="$xorg_testset_save_CFLAGS"
5730
5731		eval supported=\$$cacheid
5732		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5733$as_echo "$supported" >&6; }
5734		if test "$supported" = "yes" ; then
5735			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5736			found="yes"
5737		fi
5738	fi
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754xorg_testset_save_CFLAGS="$CFLAGS"
5755
5756if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5757	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5758	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5759$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5760if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5761  $as_echo_n "(cached) " >&6
5762else
5763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5764/* end confdefs.h.  */
5765int i;
5766_ACEOF
5767if ac_fn_c_try_compile "$LINENO"; then :
5768  xorg_cv_cc_flag_unknown_warning_option=yes
5769else
5770  xorg_cv_cc_flag_unknown_warning_option=no
5771fi
5772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5773fi
5774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5775$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5776	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5777	CFLAGS="$xorg_testset_save_CFLAGS"
5778fi
5779
5780if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5781	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5782		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5783	fi
5784	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5785	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5786$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5787if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5788  $as_echo_n "(cached) " >&6
5789else
5790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5791/* end confdefs.h.  */
5792int i;
5793_ACEOF
5794if ac_fn_c_try_compile "$LINENO"; then :
5795  xorg_cv_cc_flag_unused_command_line_argument=yes
5796else
5797  xorg_cv_cc_flag_unused_command_line_argument=no
5798fi
5799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5800fi
5801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5802$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5803	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5804	CFLAGS="$xorg_testset_save_CFLAGS"
5805fi
5806
5807found="no"
5808
5809	if test $found = "no" ; then
5810		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5811			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5812		fi
5813
5814		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5815			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5816		fi
5817
5818		CFLAGS="$CFLAGS -Wold-style-definition"
5819
5820		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5821$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5822		cacheid=xorg_cv_cc_flag__Wold_style_definition
5823		if eval \${$cacheid+:} false; then :
5824  $as_echo_n "(cached) " >&6
5825else
5826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5827/* end confdefs.h.  */
5828int i;
5829int
5830main ()
5831{
5832
5833  ;
5834  return 0;
5835}
5836_ACEOF
5837if ac_fn_c_try_link "$LINENO"; then :
5838  eval $cacheid=yes
5839else
5840  eval $cacheid=no
5841fi
5842rm -f core conftest.err conftest.$ac_objext \
5843    conftest$ac_exeext conftest.$ac_ext
5844fi
5845
5846
5847		CFLAGS="$xorg_testset_save_CFLAGS"
5848
5849		eval supported=\$$cacheid
5850		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5851$as_echo "$supported" >&6; }
5852		if test "$supported" = "yes" ; then
5853			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5854			found="yes"
5855		fi
5856	fi
5857
5858	if test $found = "no" ; then
5859		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5860			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5861		fi
5862
5863		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5864			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5865		fi
5866
5867		CFLAGS="$CFLAGS -fd"
5868
5869		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5870$as_echo_n "checking if $CC supports -fd... " >&6; }
5871		cacheid=xorg_cv_cc_flag__fd
5872		if eval \${$cacheid+:} false; then :
5873  $as_echo_n "(cached) " >&6
5874else
5875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5876/* end confdefs.h.  */
5877int i;
5878int
5879main ()
5880{
5881
5882  ;
5883  return 0;
5884}
5885_ACEOF
5886if ac_fn_c_try_link "$LINENO"; then :
5887  eval $cacheid=yes
5888else
5889  eval $cacheid=no
5890fi
5891rm -f core conftest.err conftest.$ac_objext \
5892    conftest$ac_exeext conftest.$ac_ext
5893fi
5894
5895
5896		CFLAGS="$xorg_testset_save_CFLAGS"
5897
5898		eval supported=\$$cacheid
5899		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5900$as_echo "$supported" >&6; }
5901		if test "$supported" = "yes" ; then
5902			BASE_CFLAGS="$BASE_CFLAGS -fd"
5903			found="yes"
5904		fi
5905	fi
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921xorg_testset_save_CFLAGS="$CFLAGS"
5922
5923if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5924	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5925	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5926$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5927if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5928  $as_echo_n "(cached) " >&6
5929else
5930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5931/* end confdefs.h.  */
5932int i;
5933_ACEOF
5934if ac_fn_c_try_compile "$LINENO"; then :
5935  xorg_cv_cc_flag_unknown_warning_option=yes
5936else
5937  xorg_cv_cc_flag_unknown_warning_option=no
5938fi
5939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5940fi
5941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5942$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5943	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5944	CFLAGS="$xorg_testset_save_CFLAGS"
5945fi
5946
5947if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5948	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5949		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5950	fi
5951	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5952	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5953$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5954if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5955  $as_echo_n "(cached) " >&6
5956else
5957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5958/* end confdefs.h.  */
5959int i;
5960_ACEOF
5961if ac_fn_c_try_compile "$LINENO"; then :
5962  xorg_cv_cc_flag_unused_command_line_argument=yes
5963else
5964  xorg_cv_cc_flag_unused_command_line_argument=no
5965fi
5966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5967fi
5968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5969$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5970	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5971	CFLAGS="$xorg_testset_save_CFLAGS"
5972fi
5973
5974found="no"
5975
5976	if test $found = "no" ; then
5977		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5978			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5979		fi
5980
5981		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5982			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5983		fi
5984
5985		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5986
5987		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5988$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5989		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5990		if eval \${$cacheid+:} false; then :
5991  $as_echo_n "(cached) " >&6
5992else
5993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5994/* end confdefs.h.  */
5995int i;
5996int
5997main ()
5998{
5999
6000  ;
6001  return 0;
6002}
6003_ACEOF
6004if ac_fn_c_try_link "$LINENO"; then :
6005  eval $cacheid=yes
6006else
6007  eval $cacheid=no
6008fi
6009rm -f core conftest.err conftest.$ac_objext \
6010    conftest$ac_exeext conftest.$ac_ext
6011fi
6012
6013
6014		CFLAGS="$xorg_testset_save_CFLAGS"
6015
6016		eval supported=\$$cacheid
6017		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6018$as_echo "$supported" >&6; }
6019		if test "$supported" = "yes" ; then
6020			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6021			found="yes"
6022		fi
6023	fi
6024
6025
6026
6027
6028
6029# This chunk adds additional warnings that could catch undesired effects.
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043xorg_testset_save_CFLAGS="$CFLAGS"
6044
6045if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6046	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6047	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6048$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6049if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6050  $as_echo_n "(cached) " >&6
6051else
6052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6053/* end confdefs.h.  */
6054int i;
6055_ACEOF
6056if ac_fn_c_try_compile "$LINENO"; then :
6057  xorg_cv_cc_flag_unknown_warning_option=yes
6058else
6059  xorg_cv_cc_flag_unknown_warning_option=no
6060fi
6061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6062fi
6063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6064$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6065	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6066	CFLAGS="$xorg_testset_save_CFLAGS"
6067fi
6068
6069if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6070	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6071		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6072	fi
6073	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6074	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6075$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6076if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6077  $as_echo_n "(cached) " >&6
6078else
6079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6080/* end confdefs.h.  */
6081int i;
6082_ACEOF
6083if ac_fn_c_try_compile "$LINENO"; then :
6084  xorg_cv_cc_flag_unused_command_line_argument=yes
6085else
6086  xorg_cv_cc_flag_unused_command_line_argument=no
6087fi
6088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6089fi
6090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6091$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6092	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6093	CFLAGS="$xorg_testset_save_CFLAGS"
6094fi
6095
6096found="no"
6097
6098	if test $found = "no" ; then
6099		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6100			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6101		fi
6102
6103		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6104			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6105		fi
6106
6107		CFLAGS="$CFLAGS -Wunused"
6108
6109		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6110$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6111		cacheid=xorg_cv_cc_flag__Wunused
6112		if eval \${$cacheid+:} false; then :
6113  $as_echo_n "(cached) " >&6
6114else
6115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6116/* end confdefs.h.  */
6117int i;
6118int
6119main ()
6120{
6121
6122  ;
6123  return 0;
6124}
6125_ACEOF
6126if ac_fn_c_try_link "$LINENO"; then :
6127  eval $cacheid=yes
6128else
6129  eval $cacheid=no
6130fi
6131rm -f core conftest.err conftest.$ac_objext \
6132    conftest$ac_exeext conftest.$ac_ext
6133fi
6134
6135
6136		CFLAGS="$xorg_testset_save_CFLAGS"
6137
6138		eval supported=\$$cacheid
6139		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6140$as_echo "$supported" >&6; }
6141		if test "$supported" = "yes" ; then
6142			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6143			found="yes"
6144		fi
6145	fi
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161xorg_testset_save_CFLAGS="$CFLAGS"
6162
6163if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6164	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6165	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6166$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6167if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6168  $as_echo_n "(cached) " >&6
6169else
6170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6171/* end confdefs.h.  */
6172int i;
6173_ACEOF
6174if ac_fn_c_try_compile "$LINENO"; then :
6175  xorg_cv_cc_flag_unknown_warning_option=yes
6176else
6177  xorg_cv_cc_flag_unknown_warning_option=no
6178fi
6179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6180fi
6181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6182$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6183	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6184	CFLAGS="$xorg_testset_save_CFLAGS"
6185fi
6186
6187if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6188	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6189		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6190	fi
6191	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6192	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6193$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6194if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6195  $as_echo_n "(cached) " >&6
6196else
6197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6198/* end confdefs.h.  */
6199int i;
6200_ACEOF
6201if ac_fn_c_try_compile "$LINENO"; then :
6202  xorg_cv_cc_flag_unused_command_line_argument=yes
6203else
6204  xorg_cv_cc_flag_unused_command_line_argument=no
6205fi
6206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6207fi
6208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6209$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6210	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6211	CFLAGS="$xorg_testset_save_CFLAGS"
6212fi
6213
6214found="no"
6215
6216	if test $found = "no" ; then
6217		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6218			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6219		fi
6220
6221		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6222			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6223		fi
6224
6225		CFLAGS="$CFLAGS -Wuninitialized"
6226
6227		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6228$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6229		cacheid=xorg_cv_cc_flag__Wuninitialized
6230		if eval \${$cacheid+:} false; then :
6231  $as_echo_n "(cached) " >&6
6232else
6233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6234/* end confdefs.h.  */
6235int i;
6236int
6237main ()
6238{
6239
6240  ;
6241  return 0;
6242}
6243_ACEOF
6244if ac_fn_c_try_link "$LINENO"; then :
6245  eval $cacheid=yes
6246else
6247  eval $cacheid=no
6248fi
6249rm -f core conftest.err conftest.$ac_objext \
6250    conftest$ac_exeext conftest.$ac_ext
6251fi
6252
6253
6254		CFLAGS="$xorg_testset_save_CFLAGS"
6255
6256		eval supported=\$$cacheid
6257		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6258$as_echo "$supported" >&6; }
6259		if test "$supported" = "yes" ; then
6260			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6261			found="yes"
6262		fi
6263	fi
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279xorg_testset_save_CFLAGS="$CFLAGS"
6280
6281if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6282	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6283	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6284$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6285if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6286  $as_echo_n "(cached) " >&6
6287else
6288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6289/* end confdefs.h.  */
6290int i;
6291_ACEOF
6292if ac_fn_c_try_compile "$LINENO"; then :
6293  xorg_cv_cc_flag_unknown_warning_option=yes
6294else
6295  xorg_cv_cc_flag_unknown_warning_option=no
6296fi
6297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6298fi
6299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6300$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6301	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6302	CFLAGS="$xorg_testset_save_CFLAGS"
6303fi
6304
6305if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6306	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6307		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6308	fi
6309	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6310	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6311$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6312if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6313  $as_echo_n "(cached) " >&6
6314else
6315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6316/* end confdefs.h.  */
6317int i;
6318_ACEOF
6319if ac_fn_c_try_compile "$LINENO"; then :
6320  xorg_cv_cc_flag_unused_command_line_argument=yes
6321else
6322  xorg_cv_cc_flag_unused_command_line_argument=no
6323fi
6324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6325fi
6326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6327$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6328	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6329	CFLAGS="$xorg_testset_save_CFLAGS"
6330fi
6331
6332found="no"
6333
6334	if test $found = "no" ; then
6335		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6336			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6337		fi
6338
6339		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6340			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6341		fi
6342
6343		CFLAGS="$CFLAGS -Wshadow"
6344
6345		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6346$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6347		cacheid=xorg_cv_cc_flag__Wshadow
6348		if eval \${$cacheid+:} false; then :
6349  $as_echo_n "(cached) " >&6
6350else
6351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6352/* end confdefs.h.  */
6353int i;
6354int
6355main ()
6356{
6357
6358  ;
6359  return 0;
6360}
6361_ACEOF
6362if ac_fn_c_try_link "$LINENO"; then :
6363  eval $cacheid=yes
6364else
6365  eval $cacheid=no
6366fi
6367rm -f core conftest.err conftest.$ac_objext \
6368    conftest$ac_exeext conftest.$ac_ext
6369fi
6370
6371
6372		CFLAGS="$xorg_testset_save_CFLAGS"
6373
6374		eval supported=\$$cacheid
6375		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6376$as_echo "$supported" >&6; }
6377		if test "$supported" = "yes" ; then
6378			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6379			found="yes"
6380		fi
6381	fi
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397xorg_testset_save_CFLAGS="$CFLAGS"
6398
6399if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6400	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6401	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6402$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6403if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6404  $as_echo_n "(cached) " >&6
6405else
6406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6407/* end confdefs.h.  */
6408int i;
6409_ACEOF
6410if ac_fn_c_try_compile "$LINENO"; then :
6411  xorg_cv_cc_flag_unknown_warning_option=yes
6412else
6413  xorg_cv_cc_flag_unknown_warning_option=no
6414fi
6415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6416fi
6417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6418$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6419	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6420	CFLAGS="$xorg_testset_save_CFLAGS"
6421fi
6422
6423if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6424	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6425		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6426	fi
6427	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6428	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6429$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6430if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6431  $as_echo_n "(cached) " >&6
6432else
6433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6434/* end confdefs.h.  */
6435int i;
6436_ACEOF
6437if ac_fn_c_try_compile "$LINENO"; then :
6438  xorg_cv_cc_flag_unused_command_line_argument=yes
6439else
6440  xorg_cv_cc_flag_unused_command_line_argument=no
6441fi
6442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6443fi
6444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6445$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6446	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6447	CFLAGS="$xorg_testset_save_CFLAGS"
6448fi
6449
6450found="no"
6451
6452	if test $found = "no" ; then
6453		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6454			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6455		fi
6456
6457		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6458			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6459		fi
6460
6461		CFLAGS="$CFLAGS -Wmissing-noreturn"
6462
6463		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6464$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6465		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6466		if eval \${$cacheid+:} false; then :
6467  $as_echo_n "(cached) " >&6
6468else
6469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6470/* end confdefs.h.  */
6471int i;
6472int
6473main ()
6474{
6475
6476  ;
6477  return 0;
6478}
6479_ACEOF
6480if ac_fn_c_try_link "$LINENO"; then :
6481  eval $cacheid=yes
6482else
6483  eval $cacheid=no
6484fi
6485rm -f core conftest.err conftest.$ac_objext \
6486    conftest$ac_exeext conftest.$ac_ext
6487fi
6488
6489
6490		CFLAGS="$xorg_testset_save_CFLAGS"
6491
6492		eval supported=\$$cacheid
6493		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6494$as_echo "$supported" >&6; }
6495		if test "$supported" = "yes" ; then
6496			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6497			found="yes"
6498		fi
6499	fi
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515xorg_testset_save_CFLAGS="$CFLAGS"
6516
6517if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6518	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6519	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6520$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6521if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6522  $as_echo_n "(cached) " >&6
6523else
6524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6525/* end confdefs.h.  */
6526int i;
6527_ACEOF
6528if ac_fn_c_try_compile "$LINENO"; then :
6529  xorg_cv_cc_flag_unknown_warning_option=yes
6530else
6531  xorg_cv_cc_flag_unknown_warning_option=no
6532fi
6533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6534fi
6535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6536$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6537	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6538	CFLAGS="$xorg_testset_save_CFLAGS"
6539fi
6540
6541if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6542	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6543		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6544	fi
6545	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6546	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6547$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6548if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6549  $as_echo_n "(cached) " >&6
6550else
6551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6552/* end confdefs.h.  */
6553int i;
6554_ACEOF
6555if ac_fn_c_try_compile "$LINENO"; then :
6556  xorg_cv_cc_flag_unused_command_line_argument=yes
6557else
6558  xorg_cv_cc_flag_unused_command_line_argument=no
6559fi
6560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6561fi
6562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6563$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6564	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6565	CFLAGS="$xorg_testset_save_CFLAGS"
6566fi
6567
6568found="no"
6569
6570	if test $found = "no" ; then
6571		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6572			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6573		fi
6574
6575		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6576			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6577		fi
6578
6579		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6580
6581		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6582$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6583		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6584		if eval \${$cacheid+:} false; then :
6585  $as_echo_n "(cached) " >&6
6586else
6587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6588/* end confdefs.h.  */
6589int i;
6590int
6591main ()
6592{
6593
6594  ;
6595  return 0;
6596}
6597_ACEOF
6598if ac_fn_c_try_link "$LINENO"; then :
6599  eval $cacheid=yes
6600else
6601  eval $cacheid=no
6602fi
6603rm -f core conftest.err conftest.$ac_objext \
6604    conftest$ac_exeext conftest.$ac_ext
6605fi
6606
6607
6608		CFLAGS="$xorg_testset_save_CFLAGS"
6609
6610		eval supported=\$$cacheid
6611		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6612$as_echo "$supported" >&6; }
6613		if test "$supported" = "yes" ; then
6614			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6615			found="yes"
6616		fi
6617	fi
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633xorg_testset_save_CFLAGS="$CFLAGS"
6634
6635if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6636	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6637	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6638$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6639if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6640  $as_echo_n "(cached) " >&6
6641else
6642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643/* end confdefs.h.  */
6644int i;
6645_ACEOF
6646if ac_fn_c_try_compile "$LINENO"; then :
6647  xorg_cv_cc_flag_unknown_warning_option=yes
6648else
6649  xorg_cv_cc_flag_unknown_warning_option=no
6650fi
6651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6652fi
6653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6654$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6655	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6656	CFLAGS="$xorg_testset_save_CFLAGS"
6657fi
6658
6659if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6660	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6661		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6662	fi
6663	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6664	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6665$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6666if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6667  $as_echo_n "(cached) " >&6
6668else
6669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6670/* end confdefs.h.  */
6671int i;
6672_ACEOF
6673if ac_fn_c_try_compile "$LINENO"; then :
6674  xorg_cv_cc_flag_unused_command_line_argument=yes
6675else
6676  xorg_cv_cc_flag_unused_command_line_argument=no
6677fi
6678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6679fi
6680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6681$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6682	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6683	CFLAGS="$xorg_testset_save_CFLAGS"
6684fi
6685
6686found="no"
6687
6688	if test $found = "no" ; then
6689		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6690			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6691		fi
6692
6693		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6694			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6695		fi
6696
6697		CFLAGS="$CFLAGS -Wredundant-decls"
6698
6699		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6700$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6701		cacheid=xorg_cv_cc_flag__Wredundant_decls
6702		if eval \${$cacheid+:} false; then :
6703  $as_echo_n "(cached) " >&6
6704else
6705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6706/* end confdefs.h.  */
6707int i;
6708int
6709main ()
6710{
6711
6712  ;
6713  return 0;
6714}
6715_ACEOF
6716if ac_fn_c_try_link "$LINENO"; then :
6717  eval $cacheid=yes
6718else
6719  eval $cacheid=no
6720fi
6721rm -f core conftest.err conftest.$ac_objext \
6722    conftest$ac_exeext conftest.$ac_ext
6723fi
6724
6725
6726		CFLAGS="$xorg_testset_save_CFLAGS"
6727
6728		eval supported=\$$cacheid
6729		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6730$as_echo "$supported" >&6; }
6731		if test "$supported" = "yes" ; then
6732			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6733			found="yes"
6734		fi
6735	fi
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751xorg_testset_save_CFLAGS="$CFLAGS"
6752
6753if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6754	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6755	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6756$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6757if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6758  $as_echo_n "(cached) " >&6
6759else
6760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6761/* end confdefs.h.  */
6762int i;
6763_ACEOF
6764if ac_fn_c_try_compile "$LINENO"; then :
6765  xorg_cv_cc_flag_unknown_warning_option=yes
6766else
6767  xorg_cv_cc_flag_unknown_warning_option=no
6768fi
6769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6770fi
6771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6772$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6773	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6774	CFLAGS="$xorg_testset_save_CFLAGS"
6775fi
6776
6777if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6778	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6779		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6780	fi
6781	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6782	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6783$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6784if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6785  $as_echo_n "(cached) " >&6
6786else
6787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6788/* end confdefs.h.  */
6789int i;
6790_ACEOF
6791if ac_fn_c_try_compile "$LINENO"; then :
6792  xorg_cv_cc_flag_unused_command_line_argument=yes
6793else
6794  xorg_cv_cc_flag_unused_command_line_argument=no
6795fi
6796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6797fi
6798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6799$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6800	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6801	CFLAGS="$xorg_testset_save_CFLAGS"
6802fi
6803
6804found="no"
6805
6806	if test $found = "no" ; then
6807		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6808			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6809		fi
6810
6811		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6812			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6813		fi
6814
6815		CFLAGS="$CFLAGS -Wlogical-op"
6816
6817		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6818$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6819		cacheid=xorg_cv_cc_flag__Wlogical_op
6820		if eval \${$cacheid+:} false; then :
6821  $as_echo_n "(cached) " >&6
6822else
6823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6824/* end confdefs.h.  */
6825int i;
6826int
6827main ()
6828{
6829
6830  ;
6831  return 0;
6832}
6833_ACEOF
6834if ac_fn_c_try_link "$LINENO"; then :
6835  eval $cacheid=yes
6836else
6837  eval $cacheid=no
6838fi
6839rm -f core conftest.err conftest.$ac_objext \
6840    conftest$ac_exeext conftest.$ac_ext
6841fi
6842
6843
6844		CFLAGS="$xorg_testset_save_CFLAGS"
6845
6846		eval supported=\$$cacheid
6847		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6848$as_echo "$supported" >&6; }
6849		if test "$supported" = "yes" ; then
6850			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6851			found="yes"
6852		fi
6853	fi
6854
6855
6856
6857# These are currently disabled because they are noisy.  They will be enabled
6858# in the future once the codebase is sufficiently modernized to silence
6859# them.  For now, I don't want them to drown out the other warnings.
6860# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6861# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6862# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6863
6864# Turn some warnings into errors, so we don't accidently get successful builds
6865# when there are problems that should be fixed.
6866
6867if test "x$SELECTIVE_WERROR" = "xyes" ; then
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881xorg_testset_save_CFLAGS="$CFLAGS"
6882
6883if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6884	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6885	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6886$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6887if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6888  $as_echo_n "(cached) " >&6
6889else
6890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6891/* end confdefs.h.  */
6892int i;
6893_ACEOF
6894if ac_fn_c_try_compile "$LINENO"; then :
6895  xorg_cv_cc_flag_unknown_warning_option=yes
6896else
6897  xorg_cv_cc_flag_unknown_warning_option=no
6898fi
6899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6900fi
6901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6902$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6903	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6904	CFLAGS="$xorg_testset_save_CFLAGS"
6905fi
6906
6907if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6908	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6909		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6910	fi
6911	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6912	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6913$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6914if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6915  $as_echo_n "(cached) " >&6
6916else
6917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6918/* end confdefs.h.  */
6919int i;
6920_ACEOF
6921if ac_fn_c_try_compile "$LINENO"; then :
6922  xorg_cv_cc_flag_unused_command_line_argument=yes
6923else
6924  xorg_cv_cc_flag_unused_command_line_argument=no
6925fi
6926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6927fi
6928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6929$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6930	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6931	CFLAGS="$xorg_testset_save_CFLAGS"
6932fi
6933
6934found="no"
6935
6936	if test $found = "no" ; then
6937		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6938			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6939		fi
6940
6941		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6942			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6943		fi
6944
6945		CFLAGS="$CFLAGS -Werror=implicit"
6946
6947		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6948$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6949		cacheid=xorg_cv_cc_flag__Werror_implicit
6950		if eval \${$cacheid+:} false; then :
6951  $as_echo_n "(cached) " >&6
6952else
6953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6954/* end confdefs.h.  */
6955int i;
6956int
6957main ()
6958{
6959
6960  ;
6961  return 0;
6962}
6963_ACEOF
6964if ac_fn_c_try_link "$LINENO"; then :
6965  eval $cacheid=yes
6966else
6967  eval $cacheid=no
6968fi
6969rm -f core conftest.err conftest.$ac_objext \
6970    conftest$ac_exeext conftest.$ac_ext
6971fi
6972
6973
6974		CFLAGS="$xorg_testset_save_CFLAGS"
6975
6976		eval supported=\$$cacheid
6977		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6978$as_echo "$supported" >&6; }
6979		if test "$supported" = "yes" ; then
6980			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6981			found="yes"
6982		fi
6983	fi
6984
6985	if test $found = "no" ; then
6986		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6987			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6988		fi
6989
6990		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6991			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6992		fi
6993
6994		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6995
6996		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6997$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6998		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6999		if eval \${$cacheid+:} false; then :
7000  $as_echo_n "(cached) " >&6
7001else
7002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7003/* end confdefs.h.  */
7004int i;
7005int
7006main ()
7007{
7008
7009  ;
7010  return 0;
7011}
7012_ACEOF
7013if ac_fn_c_try_link "$LINENO"; then :
7014  eval $cacheid=yes
7015else
7016  eval $cacheid=no
7017fi
7018rm -f core conftest.err conftest.$ac_objext \
7019    conftest$ac_exeext conftest.$ac_ext
7020fi
7021
7022
7023		CFLAGS="$xorg_testset_save_CFLAGS"
7024
7025		eval supported=\$$cacheid
7026		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7027$as_echo "$supported" >&6; }
7028		if test "$supported" = "yes" ; then
7029			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7030			found="yes"
7031		fi
7032	fi
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048xorg_testset_save_CFLAGS="$CFLAGS"
7049
7050if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7051	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7052	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7053$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7054if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7055  $as_echo_n "(cached) " >&6
7056else
7057  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7058/* end confdefs.h.  */
7059int i;
7060_ACEOF
7061if ac_fn_c_try_compile "$LINENO"; then :
7062  xorg_cv_cc_flag_unknown_warning_option=yes
7063else
7064  xorg_cv_cc_flag_unknown_warning_option=no
7065fi
7066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7067fi
7068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7069$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7070	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7071	CFLAGS="$xorg_testset_save_CFLAGS"
7072fi
7073
7074if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7075	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7076		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7077	fi
7078	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7079	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7080$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7081if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7082  $as_echo_n "(cached) " >&6
7083else
7084  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7085/* end confdefs.h.  */
7086int i;
7087_ACEOF
7088if ac_fn_c_try_compile "$LINENO"; then :
7089  xorg_cv_cc_flag_unused_command_line_argument=yes
7090else
7091  xorg_cv_cc_flag_unused_command_line_argument=no
7092fi
7093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7094fi
7095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7096$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7097	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7098	CFLAGS="$xorg_testset_save_CFLAGS"
7099fi
7100
7101found="no"
7102
7103	if test $found = "no" ; then
7104		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7105			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7106		fi
7107
7108		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7109			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7110		fi
7111
7112		CFLAGS="$CFLAGS -Werror=nonnull"
7113
7114		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7115$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7116		cacheid=xorg_cv_cc_flag__Werror_nonnull
7117		if eval \${$cacheid+:} false; then :
7118  $as_echo_n "(cached) " >&6
7119else
7120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7121/* end confdefs.h.  */
7122int i;
7123int
7124main ()
7125{
7126
7127  ;
7128  return 0;
7129}
7130_ACEOF
7131if ac_fn_c_try_link "$LINENO"; then :
7132  eval $cacheid=yes
7133else
7134  eval $cacheid=no
7135fi
7136rm -f core conftest.err conftest.$ac_objext \
7137    conftest$ac_exeext conftest.$ac_ext
7138fi
7139
7140
7141		CFLAGS="$xorg_testset_save_CFLAGS"
7142
7143		eval supported=\$$cacheid
7144		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7145$as_echo "$supported" >&6; }
7146		if test "$supported" = "yes" ; then
7147			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7148			found="yes"
7149		fi
7150	fi
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166xorg_testset_save_CFLAGS="$CFLAGS"
7167
7168if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7169	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7170	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7171$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7172if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7173  $as_echo_n "(cached) " >&6
7174else
7175  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7176/* end confdefs.h.  */
7177int i;
7178_ACEOF
7179if ac_fn_c_try_compile "$LINENO"; then :
7180  xorg_cv_cc_flag_unknown_warning_option=yes
7181else
7182  xorg_cv_cc_flag_unknown_warning_option=no
7183fi
7184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7185fi
7186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7187$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7188	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7189	CFLAGS="$xorg_testset_save_CFLAGS"
7190fi
7191
7192if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7193	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7194		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7195	fi
7196	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7197	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7198$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7199if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7200  $as_echo_n "(cached) " >&6
7201else
7202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7203/* end confdefs.h.  */
7204int i;
7205_ACEOF
7206if ac_fn_c_try_compile "$LINENO"; then :
7207  xorg_cv_cc_flag_unused_command_line_argument=yes
7208else
7209  xorg_cv_cc_flag_unused_command_line_argument=no
7210fi
7211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7212fi
7213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7214$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7215	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7216	CFLAGS="$xorg_testset_save_CFLAGS"
7217fi
7218
7219found="no"
7220
7221	if test $found = "no" ; then
7222		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7223			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7224		fi
7225
7226		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7227			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7228		fi
7229
7230		CFLAGS="$CFLAGS -Werror=init-self"
7231
7232		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7233$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7234		cacheid=xorg_cv_cc_flag__Werror_init_self
7235		if eval \${$cacheid+:} false; then :
7236  $as_echo_n "(cached) " >&6
7237else
7238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7239/* end confdefs.h.  */
7240int i;
7241int
7242main ()
7243{
7244
7245  ;
7246  return 0;
7247}
7248_ACEOF
7249if ac_fn_c_try_link "$LINENO"; then :
7250  eval $cacheid=yes
7251else
7252  eval $cacheid=no
7253fi
7254rm -f core conftest.err conftest.$ac_objext \
7255    conftest$ac_exeext conftest.$ac_ext
7256fi
7257
7258
7259		CFLAGS="$xorg_testset_save_CFLAGS"
7260
7261		eval supported=\$$cacheid
7262		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7263$as_echo "$supported" >&6; }
7264		if test "$supported" = "yes" ; then
7265			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7266			found="yes"
7267		fi
7268	fi
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284xorg_testset_save_CFLAGS="$CFLAGS"
7285
7286if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7287	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7288	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7289$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7290if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7291  $as_echo_n "(cached) " >&6
7292else
7293  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7294/* end confdefs.h.  */
7295int i;
7296_ACEOF
7297if ac_fn_c_try_compile "$LINENO"; then :
7298  xorg_cv_cc_flag_unknown_warning_option=yes
7299else
7300  xorg_cv_cc_flag_unknown_warning_option=no
7301fi
7302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7303fi
7304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7305$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7306	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7307	CFLAGS="$xorg_testset_save_CFLAGS"
7308fi
7309
7310if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7311	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7312		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7313	fi
7314	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7315	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7316$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7317if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7318  $as_echo_n "(cached) " >&6
7319else
7320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7321/* end confdefs.h.  */
7322int i;
7323_ACEOF
7324if ac_fn_c_try_compile "$LINENO"; then :
7325  xorg_cv_cc_flag_unused_command_line_argument=yes
7326else
7327  xorg_cv_cc_flag_unused_command_line_argument=no
7328fi
7329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7330fi
7331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7332$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7333	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7334	CFLAGS="$xorg_testset_save_CFLAGS"
7335fi
7336
7337found="no"
7338
7339	if test $found = "no" ; then
7340		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7341			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7342		fi
7343
7344		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7345			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7346		fi
7347
7348		CFLAGS="$CFLAGS -Werror=main"
7349
7350		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7351$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7352		cacheid=xorg_cv_cc_flag__Werror_main
7353		if eval \${$cacheid+:} false; then :
7354  $as_echo_n "(cached) " >&6
7355else
7356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357/* end confdefs.h.  */
7358int i;
7359int
7360main ()
7361{
7362
7363  ;
7364  return 0;
7365}
7366_ACEOF
7367if ac_fn_c_try_link "$LINENO"; then :
7368  eval $cacheid=yes
7369else
7370  eval $cacheid=no
7371fi
7372rm -f core conftest.err conftest.$ac_objext \
7373    conftest$ac_exeext conftest.$ac_ext
7374fi
7375
7376
7377		CFLAGS="$xorg_testset_save_CFLAGS"
7378
7379		eval supported=\$$cacheid
7380		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7381$as_echo "$supported" >&6; }
7382		if test "$supported" = "yes" ; then
7383			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7384			found="yes"
7385		fi
7386	fi
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402xorg_testset_save_CFLAGS="$CFLAGS"
7403
7404if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7405	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7406	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7407$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7408if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7409  $as_echo_n "(cached) " >&6
7410else
7411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7412/* end confdefs.h.  */
7413int i;
7414_ACEOF
7415if ac_fn_c_try_compile "$LINENO"; then :
7416  xorg_cv_cc_flag_unknown_warning_option=yes
7417else
7418  xorg_cv_cc_flag_unknown_warning_option=no
7419fi
7420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7421fi
7422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7423$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7424	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7425	CFLAGS="$xorg_testset_save_CFLAGS"
7426fi
7427
7428if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7429	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7430		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7431	fi
7432	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7433	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7434$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7435if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7436  $as_echo_n "(cached) " >&6
7437else
7438  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7439/* end confdefs.h.  */
7440int i;
7441_ACEOF
7442if ac_fn_c_try_compile "$LINENO"; then :
7443  xorg_cv_cc_flag_unused_command_line_argument=yes
7444else
7445  xorg_cv_cc_flag_unused_command_line_argument=no
7446fi
7447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7448fi
7449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7450$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7451	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7452	CFLAGS="$xorg_testset_save_CFLAGS"
7453fi
7454
7455found="no"
7456
7457	if test $found = "no" ; then
7458		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7459			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7460		fi
7461
7462		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7463			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7464		fi
7465
7466		CFLAGS="$CFLAGS -Werror=missing-braces"
7467
7468		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7469$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7470		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7471		if eval \${$cacheid+:} false; then :
7472  $as_echo_n "(cached) " >&6
7473else
7474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475/* end confdefs.h.  */
7476int i;
7477int
7478main ()
7479{
7480
7481  ;
7482  return 0;
7483}
7484_ACEOF
7485if ac_fn_c_try_link "$LINENO"; then :
7486  eval $cacheid=yes
7487else
7488  eval $cacheid=no
7489fi
7490rm -f core conftest.err conftest.$ac_objext \
7491    conftest$ac_exeext conftest.$ac_ext
7492fi
7493
7494
7495		CFLAGS="$xorg_testset_save_CFLAGS"
7496
7497		eval supported=\$$cacheid
7498		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7499$as_echo "$supported" >&6; }
7500		if test "$supported" = "yes" ; then
7501			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7502			found="yes"
7503		fi
7504	fi
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520xorg_testset_save_CFLAGS="$CFLAGS"
7521
7522if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7523	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7524	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7525$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7526if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7527  $as_echo_n "(cached) " >&6
7528else
7529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7530/* end confdefs.h.  */
7531int i;
7532_ACEOF
7533if ac_fn_c_try_compile "$LINENO"; then :
7534  xorg_cv_cc_flag_unknown_warning_option=yes
7535else
7536  xorg_cv_cc_flag_unknown_warning_option=no
7537fi
7538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7539fi
7540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7541$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7542	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7543	CFLAGS="$xorg_testset_save_CFLAGS"
7544fi
7545
7546if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7547	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7548		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7549	fi
7550	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7551	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7552$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7553if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7554  $as_echo_n "(cached) " >&6
7555else
7556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7557/* end confdefs.h.  */
7558int i;
7559_ACEOF
7560if ac_fn_c_try_compile "$LINENO"; then :
7561  xorg_cv_cc_flag_unused_command_line_argument=yes
7562else
7563  xorg_cv_cc_flag_unused_command_line_argument=no
7564fi
7565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7566fi
7567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7568$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7569	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7570	CFLAGS="$xorg_testset_save_CFLAGS"
7571fi
7572
7573found="no"
7574
7575	if test $found = "no" ; then
7576		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7577			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7578		fi
7579
7580		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7581			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7582		fi
7583
7584		CFLAGS="$CFLAGS -Werror=sequence-point"
7585
7586		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7587$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7588		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7589		if eval \${$cacheid+:} false; then :
7590  $as_echo_n "(cached) " >&6
7591else
7592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7593/* end confdefs.h.  */
7594int i;
7595int
7596main ()
7597{
7598
7599  ;
7600  return 0;
7601}
7602_ACEOF
7603if ac_fn_c_try_link "$LINENO"; then :
7604  eval $cacheid=yes
7605else
7606  eval $cacheid=no
7607fi
7608rm -f core conftest.err conftest.$ac_objext \
7609    conftest$ac_exeext conftest.$ac_ext
7610fi
7611
7612
7613		CFLAGS="$xorg_testset_save_CFLAGS"
7614
7615		eval supported=\$$cacheid
7616		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7617$as_echo "$supported" >&6; }
7618		if test "$supported" = "yes" ; then
7619			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7620			found="yes"
7621		fi
7622	fi
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638xorg_testset_save_CFLAGS="$CFLAGS"
7639
7640if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7641	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7642	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7643$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7644if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7645  $as_echo_n "(cached) " >&6
7646else
7647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7648/* end confdefs.h.  */
7649int i;
7650_ACEOF
7651if ac_fn_c_try_compile "$LINENO"; then :
7652  xorg_cv_cc_flag_unknown_warning_option=yes
7653else
7654  xorg_cv_cc_flag_unknown_warning_option=no
7655fi
7656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7657fi
7658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7659$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7660	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7661	CFLAGS="$xorg_testset_save_CFLAGS"
7662fi
7663
7664if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7665	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7666		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7667	fi
7668	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7669	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7670$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7671if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7672  $as_echo_n "(cached) " >&6
7673else
7674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7675/* end confdefs.h.  */
7676int i;
7677_ACEOF
7678if ac_fn_c_try_compile "$LINENO"; then :
7679  xorg_cv_cc_flag_unused_command_line_argument=yes
7680else
7681  xorg_cv_cc_flag_unused_command_line_argument=no
7682fi
7683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7684fi
7685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7686$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7687	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7688	CFLAGS="$xorg_testset_save_CFLAGS"
7689fi
7690
7691found="no"
7692
7693	if test $found = "no" ; then
7694		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7695			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7696		fi
7697
7698		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7699			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7700		fi
7701
7702		CFLAGS="$CFLAGS -Werror=return-type"
7703
7704		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7705$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7706		cacheid=xorg_cv_cc_flag__Werror_return_type
7707		if eval \${$cacheid+:} false; then :
7708  $as_echo_n "(cached) " >&6
7709else
7710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7711/* end confdefs.h.  */
7712int i;
7713int
7714main ()
7715{
7716
7717  ;
7718  return 0;
7719}
7720_ACEOF
7721if ac_fn_c_try_link "$LINENO"; then :
7722  eval $cacheid=yes
7723else
7724  eval $cacheid=no
7725fi
7726rm -f core conftest.err conftest.$ac_objext \
7727    conftest$ac_exeext conftest.$ac_ext
7728fi
7729
7730
7731		CFLAGS="$xorg_testset_save_CFLAGS"
7732
7733		eval supported=\$$cacheid
7734		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7735$as_echo "$supported" >&6; }
7736		if test "$supported" = "yes" ; then
7737			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7738			found="yes"
7739		fi
7740	fi
7741
7742	if test $found = "no" ; then
7743		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7744			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7745		fi
7746
7747		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7748			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7749		fi
7750
7751		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7752
7753		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7754$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7755		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7756		if eval \${$cacheid+:} false; then :
7757  $as_echo_n "(cached) " >&6
7758else
7759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7760/* end confdefs.h.  */
7761int i;
7762int
7763main ()
7764{
7765
7766  ;
7767  return 0;
7768}
7769_ACEOF
7770if ac_fn_c_try_link "$LINENO"; then :
7771  eval $cacheid=yes
7772else
7773  eval $cacheid=no
7774fi
7775rm -f core conftest.err conftest.$ac_objext \
7776    conftest$ac_exeext conftest.$ac_ext
7777fi
7778
7779
7780		CFLAGS="$xorg_testset_save_CFLAGS"
7781
7782		eval supported=\$$cacheid
7783		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7784$as_echo "$supported" >&6; }
7785		if test "$supported" = "yes" ; then
7786			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7787			found="yes"
7788		fi
7789	fi
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805xorg_testset_save_CFLAGS="$CFLAGS"
7806
7807if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7808	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7809	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7810$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7811if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7812  $as_echo_n "(cached) " >&6
7813else
7814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7815/* end confdefs.h.  */
7816int i;
7817_ACEOF
7818if ac_fn_c_try_compile "$LINENO"; then :
7819  xorg_cv_cc_flag_unknown_warning_option=yes
7820else
7821  xorg_cv_cc_flag_unknown_warning_option=no
7822fi
7823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7824fi
7825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7826$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7827	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7828	CFLAGS="$xorg_testset_save_CFLAGS"
7829fi
7830
7831if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7832	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7833		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7834	fi
7835	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7836	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7837$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7838if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7839  $as_echo_n "(cached) " >&6
7840else
7841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7842/* end confdefs.h.  */
7843int i;
7844_ACEOF
7845if ac_fn_c_try_compile "$LINENO"; then :
7846  xorg_cv_cc_flag_unused_command_line_argument=yes
7847else
7848  xorg_cv_cc_flag_unused_command_line_argument=no
7849fi
7850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7851fi
7852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7853$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7854	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7855	CFLAGS="$xorg_testset_save_CFLAGS"
7856fi
7857
7858found="no"
7859
7860	if test $found = "no" ; then
7861		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7862			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7863		fi
7864
7865		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7866			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7867		fi
7868
7869		CFLAGS="$CFLAGS -Werror=trigraphs"
7870
7871		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7872$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7873		cacheid=xorg_cv_cc_flag__Werror_trigraphs
7874		if eval \${$cacheid+:} false; then :
7875  $as_echo_n "(cached) " >&6
7876else
7877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7878/* end confdefs.h.  */
7879int i;
7880int
7881main ()
7882{
7883
7884  ;
7885  return 0;
7886}
7887_ACEOF
7888if ac_fn_c_try_link "$LINENO"; then :
7889  eval $cacheid=yes
7890else
7891  eval $cacheid=no
7892fi
7893rm -f core conftest.err conftest.$ac_objext \
7894    conftest$ac_exeext conftest.$ac_ext
7895fi
7896
7897
7898		CFLAGS="$xorg_testset_save_CFLAGS"
7899
7900		eval supported=\$$cacheid
7901		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7902$as_echo "$supported" >&6; }
7903		if test "$supported" = "yes" ; then
7904			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7905			found="yes"
7906		fi
7907	fi
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923xorg_testset_save_CFLAGS="$CFLAGS"
7924
7925if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7926	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7927	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7928$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7929if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7930  $as_echo_n "(cached) " >&6
7931else
7932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7933/* end confdefs.h.  */
7934int i;
7935_ACEOF
7936if ac_fn_c_try_compile "$LINENO"; then :
7937  xorg_cv_cc_flag_unknown_warning_option=yes
7938else
7939  xorg_cv_cc_flag_unknown_warning_option=no
7940fi
7941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7942fi
7943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7944$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7945	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7946	CFLAGS="$xorg_testset_save_CFLAGS"
7947fi
7948
7949if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7950	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7951		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7952	fi
7953	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7954	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7955$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7956if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7957  $as_echo_n "(cached) " >&6
7958else
7959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7960/* end confdefs.h.  */
7961int i;
7962_ACEOF
7963if ac_fn_c_try_compile "$LINENO"; then :
7964  xorg_cv_cc_flag_unused_command_line_argument=yes
7965else
7966  xorg_cv_cc_flag_unused_command_line_argument=no
7967fi
7968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7969fi
7970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7971$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7972	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7973	CFLAGS="$xorg_testset_save_CFLAGS"
7974fi
7975
7976found="no"
7977
7978	if test $found = "no" ; then
7979		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7980			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7981		fi
7982
7983		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7984			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7985		fi
7986
7987		CFLAGS="$CFLAGS -Werror=array-bounds"
7988
7989		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7990$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7991		cacheid=xorg_cv_cc_flag__Werror_array_bounds
7992		if eval \${$cacheid+:} false; then :
7993  $as_echo_n "(cached) " >&6
7994else
7995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7996/* end confdefs.h.  */
7997int i;
7998int
7999main ()
8000{
8001
8002  ;
8003  return 0;
8004}
8005_ACEOF
8006if ac_fn_c_try_link "$LINENO"; then :
8007  eval $cacheid=yes
8008else
8009  eval $cacheid=no
8010fi
8011rm -f core conftest.err conftest.$ac_objext \
8012    conftest$ac_exeext conftest.$ac_ext
8013fi
8014
8015
8016		CFLAGS="$xorg_testset_save_CFLAGS"
8017
8018		eval supported=\$$cacheid
8019		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8020$as_echo "$supported" >&6; }
8021		if test "$supported" = "yes" ; then
8022			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8023			found="yes"
8024		fi
8025	fi
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041xorg_testset_save_CFLAGS="$CFLAGS"
8042
8043if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8044	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8045	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8046$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8047if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8048  $as_echo_n "(cached) " >&6
8049else
8050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8051/* end confdefs.h.  */
8052int i;
8053_ACEOF
8054if ac_fn_c_try_compile "$LINENO"; then :
8055  xorg_cv_cc_flag_unknown_warning_option=yes
8056else
8057  xorg_cv_cc_flag_unknown_warning_option=no
8058fi
8059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8060fi
8061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8062$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8063	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8064	CFLAGS="$xorg_testset_save_CFLAGS"
8065fi
8066
8067if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8068	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8069		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8070	fi
8071	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8072	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8073$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8074if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8075  $as_echo_n "(cached) " >&6
8076else
8077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8078/* end confdefs.h.  */
8079int i;
8080_ACEOF
8081if ac_fn_c_try_compile "$LINENO"; then :
8082  xorg_cv_cc_flag_unused_command_line_argument=yes
8083else
8084  xorg_cv_cc_flag_unused_command_line_argument=no
8085fi
8086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8087fi
8088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8089$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8090	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8091	CFLAGS="$xorg_testset_save_CFLAGS"
8092fi
8093
8094found="no"
8095
8096	if test $found = "no" ; then
8097		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8098			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8099		fi
8100
8101		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8102			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8103		fi
8104
8105		CFLAGS="$CFLAGS -Werror=write-strings"
8106
8107		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8108$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8109		cacheid=xorg_cv_cc_flag__Werror_write_strings
8110		if eval \${$cacheid+:} false; then :
8111  $as_echo_n "(cached) " >&6
8112else
8113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8114/* end confdefs.h.  */
8115int i;
8116int
8117main ()
8118{
8119
8120  ;
8121  return 0;
8122}
8123_ACEOF
8124if ac_fn_c_try_link "$LINENO"; then :
8125  eval $cacheid=yes
8126else
8127  eval $cacheid=no
8128fi
8129rm -f core conftest.err conftest.$ac_objext \
8130    conftest$ac_exeext conftest.$ac_ext
8131fi
8132
8133
8134		CFLAGS="$xorg_testset_save_CFLAGS"
8135
8136		eval supported=\$$cacheid
8137		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8138$as_echo "$supported" >&6; }
8139		if test "$supported" = "yes" ; then
8140			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8141			found="yes"
8142		fi
8143	fi
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159xorg_testset_save_CFLAGS="$CFLAGS"
8160
8161if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8162	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8163	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8164$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8165if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8166  $as_echo_n "(cached) " >&6
8167else
8168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8169/* end confdefs.h.  */
8170int i;
8171_ACEOF
8172if ac_fn_c_try_compile "$LINENO"; then :
8173  xorg_cv_cc_flag_unknown_warning_option=yes
8174else
8175  xorg_cv_cc_flag_unknown_warning_option=no
8176fi
8177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8178fi
8179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8180$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8181	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8182	CFLAGS="$xorg_testset_save_CFLAGS"
8183fi
8184
8185if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8186	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8187		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8188	fi
8189	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8190	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8191$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8192if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8193  $as_echo_n "(cached) " >&6
8194else
8195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8196/* end confdefs.h.  */
8197int i;
8198_ACEOF
8199if ac_fn_c_try_compile "$LINENO"; then :
8200  xorg_cv_cc_flag_unused_command_line_argument=yes
8201else
8202  xorg_cv_cc_flag_unused_command_line_argument=no
8203fi
8204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8205fi
8206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8207$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8208	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8209	CFLAGS="$xorg_testset_save_CFLAGS"
8210fi
8211
8212found="no"
8213
8214	if test $found = "no" ; then
8215		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8216			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8217		fi
8218
8219		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8220			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8221		fi
8222
8223		CFLAGS="$CFLAGS -Werror=address"
8224
8225		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8226$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8227		cacheid=xorg_cv_cc_flag__Werror_address
8228		if eval \${$cacheid+:} false; then :
8229  $as_echo_n "(cached) " >&6
8230else
8231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8232/* end confdefs.h.  */
8233int i;
8234int
8235main ()
8236{
8237
8238  ;
8239  return 0;
8240}
8241_ACEOF
8242if ac_fn_c_try_link "$LINENO"; then :
8243  eval $cacheid=yes
8244else
8245  eval $cacheid=no
8246fi
8247rm -f core conftest.err conftest.$ac_objext \
8248    conftest$ac_exeext conftest.$ac_ext
8249fi
8250
8251
8252		CFLAGS="$xorg_testset_save_CFLAGS"
8253
8254		eval supported=\$$cacheid
8255		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8256$as_echo "$supported" >&6; }
8257		if test "$supported" = "yes" ; then
8258			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8259			found="yes"
8260		fi
8261	fi
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277xorg_testset_save_CFLAGS="$CFLAGS"
8278
8279if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8280	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8281	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8282$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8283if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8284  $as_echo_n "(cached) " >&6
8285else
8286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8287/* end confdefs.h.  */
8288int i;
8289_ACEOF
8290if ac_fn_c_try_compile "$LINENO"; then :
8291  xorg_cv_cc_flag_unknown_warning_option=yes
8292else
8293  xorg_cv_cc_flag_unknown_warning_option=no
8294fi
8295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8296fi
8297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8298$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8299	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8300	CFLAGS="$xorg_testset_save_CFLAGS"
8301fi
8302
8303if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8304	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8305		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8306	fi
8307	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8308	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8309$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8310if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8311  $as_echo_n "(cached) " >&6
8312else
8313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8314/* end confdefs.h.  */
8315int i;
8316_ACEOF
8317if ac_fn_c_try_compile "$LINENO"; then :
8318  xorg_cv_cc_flag_unused_command_line_argument=yes
8319else
8320  xorg_cv_cc_flag_unused_command_line_argument=no
8321fi
8322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8323fi
8324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8325$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8326	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8327	CFLAGS="$xorg_testset_save_CFLAGS"
8328fi
8329
8330found="no"
8331
8332	if test $found = "no" ; then
8333		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8334			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8335		fi
8336
8337		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8338			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8339		fi
8340
8341		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8342
8343		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8344$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8345		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8346		if eval \${$cacheid+:} false; then :
8347  $as_echo_n "(cached) " >&6
8348else
8349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8350/* end confdefs.h.  */
8351int i;
8352int
8353main ()
8354{
8355
8356  ;
8357  return 0;
8358}
8359_ACEOF
8360if ac_fn_c_try_link "$LINENO"; then :
8361  eval $cacheid=yes
8362else
8363  eval $cacheid=no
8364fi
8365rm -f core conftest.err conftest.$ac_objext \
8366    conftest$ac_exeext conftest.$ac_ext
8367fi
8368
8369
8370		CFLAGS="$xorg_testset_save_CFLAGS"
8371
8372		eval supported=\$$cacheid
8373		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8374$as_echo "$supported" >&6; }
8375		if test "$supported" = "yes" ; then
8376			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8377			found="yes"
8378		fi
8379	fi
8380
8381	if test $found = "no" ; then
8382		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8383			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8384		fi
8385
8386		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8387			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8388		fi
8389
8390		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8391
8392		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8393$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8394		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8395		if eval \${$cacheid+:} false; then :
8396  $as_echo_n "(cached) " >&6
8397else
8398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8399/* end confdefs.h.  */
8400int i;
8401int
8402main ()
8403{
8404
8405  ;
8406  return 0;
8407}
8408_ACEOF
8409if ac_fn_c_try_link "$LINENO"; then :
8410  eval $cacheid=yes
8411else
8412  eval $cacheid=no
8413fi
8414rm -f core conftest.err conftest.$ac_objext \
8415    conftest$ac_exeext conftest.$ac_ext
8416fi
8417
8418
8419		CFLAGS="$xorg_testset_save_CFLAGS"
8420
8421		eval supported=\$$cacheid
8422		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8423$as_echo "$supported" >&6; }
8424		if test "$supported" = "yes" ; then
8425			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8426			found="yes"
8427		fi
8428	fi
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444xorg_testset_save_CFLAGS="$CFLAGS"
8445
8446if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8447	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8448	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8449$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8450if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8451  $as_echo_n "(cached) " >&6
8452else
8453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8454/* end confdefs.h.  */
8455int i;
8456_ACEOF
8457if ac_fn_c_try_compile "$LINENO"; then :
8458  xorg_cv_cc_flag_unknown_warning_option=yes
8459else
8460  xorg_cv_cc_flag_unknown_warning_option=no
8461fi
8462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8463fi
8464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8465$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8466	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8467	CFLAGS="$xorg_testset_save_CFLAGS"
8468fi
8469
8470if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8471	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8472		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8473	fi
8474	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8475	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8476$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8477if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8478  $as_echo_n "(cached) " >&6
8479else
8480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8481/* end confdefs.h.  */
8482int i;
8483_ACEOF
8484if ac_fn_c_try_compile "$LINENO"; then :
8485  xorg_cv_cc_flag_unused_command_line_argument=yes
8486else
8487  xorg_cv_cc_flag_unused_command_line_argument=no
8488fi
8489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8490fi
8491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8492$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8493	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8494	CFLAGS="$xorg_testset_save_CFLAGS"
8495fi
8496
8497found="no"
8498
8499	if test $found = "no" ; then
8500		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8501			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8502		fi
8503
8504		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8505			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8506		fi
8507
8508		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8509
8510		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8511$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8512		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8513		if eval \${$cacheid+:} false; then :
8514  $as_echo_n "(cached) " >&6
8515else
8516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8517/* end confdefs.h.  */
8518int i;
8519int
8520main ()
8521{
8522
8523  ;
8524  return 0;
8525}
8526_ACEOF
8527if ac_fn_c_try_link "$LINENO"; then :
8528  eval $cacheid=yes
8529else
8530  eval $cacheid=no
8531fi
8532rm -f core conftest.err conftest.$ac_objext \
8533    conftest$ac_exeext conftest.$ac_ext
8534fi
8535
8536
8537		CFLAGS="$xorg_testset_save_CFLAGS"
8538
8539		eval supported=\$$cacheid
8540		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8541$as_echo "$supported" >&6; }
8542		if test "$supported" = "yes" ; then
8543			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8544			found="yes"
8545		fi
8546	fi
8547
8548 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8549else
8550{ $as_echo "$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
8551$as_echo "$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;}
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565xorg_testset_save_CFLAGS="$CFLAGS"
8566
8567if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8568	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8569	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8570$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8571if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8572  $as_echo_n "(cached) " >&6
8573else
8574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8575/* end confdefs.h.  */
8576int i;
8577_ACEOF
8578if ac_fn_c_try_compile "$LINENO"; then :
8579  xorg_cv_cc_flag_unknown_warning_option=yes
8580else
8581  xorg_cv_cc_flag_unknown_warning_option=no
8582fi
8583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8584fi
8585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8586$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8587	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8588	CFLAGS="$xorg_testset_save_CFLAGS"
8589fi
8590
8591if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8592	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8593		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8594	fi
8595	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8596	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8597$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8598if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8599  $as_echo_n "(cached) " >&6
8600else
8601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8602/* end confdefs.h.  */
8603int i;
8604_ACEOF
8605if ac_fn_c_try_compile "$LINENO"; then :
8606  xorg_cv_cc_flag_unused_command_line_argument=yes
8607else
8608  xorg_cv_cc_flag_unused_command_line_argument=no
8609fi
8610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8611fi
8612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8613$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8614	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8615	CFLAGS="$xorg_testset_save_CFLAGS"
8616fi
8617
8618found="no"
8619
8620	if test $found = "no" ; then
8621		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8622			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8623		fi
8624
8625		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8626			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8627		fi
8628
8629		CFLAGS="$CFLAGS -Wimplicit"
8630
8631		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8632$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8633		cacheid=xorg_cv_cc_flag__Wimplicit
8634		if eval \${$cacheid+:} false; then :
8635  $as_echo_n "(cached) " >&6
8636else
8637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8638/* end confdefs.h.  */
8639int i;
8640int
8641main ()
8642{
8643
8644  ;
8645  return 0;
8646}
8647_ACEOF
8648if ac_fn_c_try_link "$LINENO"; then :
8649  eval $cacheid=yes
8650else
8651  eval $cacheid=no
8652fi
8653rm -f core conftest.err conftest.$ac_objext \
8654    conftest$ac_exeext conftest.$ac_ext
8655fi
8656
8657
8658		CFLAGS="$xorg_testset_save_CFLAGS"
8659
8660		eval supported=\$$cacheid
8661		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8662$as_echo "$supported" >&6; }
8663		if test "$supported" = "yes" ; then
8664			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8665			found="yes"
8666		fi
8667	fi
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683xorg_testset_save_CFLAGS="$CFLAGS"
8684
8685if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8686	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8687	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8688$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8689if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8690  $as_echo_n "(cached) " >&6
8691else
8692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8693/* end confdefs.h.  */
8694int i;
8695_ACEOF
8696if ac_fn_c_try_compile "$LINENO"; then :
8697  xorg_cv_cc_flag_unknown_warning_option=yes
8698else
8699  xorg_cv_cc_flag_unknown_warning_option=no
8700fi
8701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8702fi
8703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8704$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8705	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8706	CFLAGS="$xorg_testset_save_CFLAGS"
8707fi
8708
8709if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8710	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8711		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8712	fi
8713	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8714	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8715$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8716if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8717  $as_echo_n "(cached) " >&6
8718else
8719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8720/* end confdefs.h.  */
8721int i;
8722_ACEOF
8723if ac_fn_c_try_compile "$LINENO"; then :
8724  xorg_cv_cc_flag_unused_command_line_argument=yes
8725else
8726  xorg_cv_cc_flag_unused_command_line_argument=no
8727fi
8728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8729fi
8730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8731$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8732	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8733	CFLAGS="$xorg_testset_save_CFLAGS"
8734fi
8735
8736found="no"
8737
8738	if test $found = "no" ; then
8739		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8740			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8741		fi
8742
8743		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8744			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8745		fi
8746
8747		CFLAGS="$CFLAGS -Wnonnull"
8748
8749		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8750$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8751		cacheid=xorg_cv_cc_flag__Wnonnull
8752		if eval \${$cacheid+:} false; then :
8753  $as_echo_n "(cached) " >&6
8754else
8755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8756/* end confdefs.h.  */
8757int i;
8758int
8759main ()
8760{
8761
8762  ;
8763  return 0;
8764}
8765_ACEOF
8766if ac_fn_c_try_link "$LINENO"; then :
8767  eval $cacheid=yes
8768else
8769  eval $cacheid=no
8770fi
8771rm -f core conftest.err conftest.$ac_objext \
8772    conftest$ac_exeext conftest.$ac_ext
8773fi
8774
8775
8776		CFLAGS="$xorg_testset_save_CFLAGS"
8777
8778		eval supported=\$$cacheid
8779		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8780$as_echo "$supported" >&6; }
8781		if test "$supported" = "yes" ; then
8782			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8783			found="yes"
8784		fi
8785	fi
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801xorg_testset_save_CFLAGS="$CFLAGS"
8802
8803if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8804	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8805	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8806$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8807if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8808  $as_echo_n "(cached) " >&6
8809else
8810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8811/* end confdefs.h.  */
8812int i;
8813_ACEOF
8814if ac_fn_c_try_compile "$LINENO"; then :
8815  xorg_cv_cc_flag_unknown_warning_option=yes
8816else
8817  xorg_cv_cc_flag_unknown_warning_option=no
8818fi
8819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8820fi
8821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8822$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8823	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8824	CFLAGS="$xorg_testset_save_CFLAGS"
8825fi
8826
8827if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8828	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8829		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8830	fi
8831	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8832	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8833$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8834if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8835  $as_echo_n "(cached) " >&6
8836else
8837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8838/* end confdefs.h.  */
8839int i;
8840_ACEOF
8841if ac_fn_c_try_compile "$LINENO"; then :
8842  xorg_cv_cc_flag_unused_command_line_argument=yes
8843else
8844  xorg_cv_cc_flag_unused_command_line_argument=no
8845fi
8846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8847fi
8848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8849$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8850	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8851	CFLAGS="$xorg_testset_save_CFLAGS"
8852fi
8853
8854found="no"
8855
8856	if test $found = "no" ; then
8857		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8858			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8859		fi
8860
8861		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8862			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8863		fi
8864
8865		CFLAGS="$CFLAGS -Winit-self"
8866
8867		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8868$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8869		cacheid=xorg_cv_cc_flag__Winit_self
8870		if eval \${$cacheid+:} false; then :
8871  $as_echo_n "(cached) " >&6
8872else
8873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8874/* end confdefs.h.  */
8875int i;
8876int
8877main ()
8878{
8879
8880  ;
8881  return 0;
8882}
8883_ACEOF
8884if ac_fn_c_try_link "$LINENO"; then :
8885  eval $cacheid=yes
8886else
8887  eval $cacheid=no
8888fi
8889rm -f core conftest.err conftest.$ac_objext \
8890    conftest$ac_exeext conftest.$ac_ext
8891fi
8892
8893
8894		CFLAGS="$xorg_testset_save_CFLAGS"
8895
8896		eval supported=\$$cacheid
8897		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8898$as_echo "$supported" >&6; }
8899		if test "$supported" = "yes" ; then
8900			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8901			found="yes"
8902		fi
8903	fi
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919xorg_testset_save_CFLAGS="$CFLAGS"
8920
8921if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8922	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8923	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8924$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8925if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8926  $as_echo_n "(cached) " >&6
8927else
8928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8929/* end confdefs.h.  */
8930int i;
8931_ACEOF
8932if ac_fn_c_try_compile "$LINENO"; then :
8933  xorg_cv_cc_flag_unknown_warning_option=yes
8934else
8935  xorg_cv_cc_flag_unknown_warning_option=no
8936fi
8937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8938fi
8939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8940$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8941	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8942	CFLAGS="$xorg_testset_save_CFLAGS"
8943fi
8944
8945if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8946	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8947		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8948	fi
8949	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8950	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8951$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8952if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8953  $as_echo_n "(cached) " >&6
8954else
8955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8956/* end confdefs.h.  */
8957int i;
8958_ACEOF
8959if ac_fn_c_try_compile "$LINENO"; then :
8960  xorg_cv_cc_flag_unused_command_line_argument=yes
8961else
8962  xorg_cv_cc_flag_unused_command_line_argument=no
8963fi
8964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8965fi
8966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8967$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8968	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8969	CFLAGS="$xorg_testset_save_CFLAGS"
8970fi
8971
8972found="no"
8973
8974	if test $found = "no" ; then
8975		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8976			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8977		fi
8978
8979		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8980			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8981		fi
8982
8983		CFLAGS="$CFLAGS -Wmain"
8984
8985		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8986$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8987		cacheid=xorg_cv_cc_flag__Wmain
8988		if eval \${$cacheid+:} false; then :
8989  $as_echo_n "(cached) " >&6
8990else
8991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8992/* end confdefs.h.  */
8993int i;
8994int
8995main ()
8996{
8997
8998  ;
8999  return 0;
9000}
9001_ACEOF
9002if ac_fn_c_try_link "$LINENO"; then :
9003  eval $cacheid=yes
9004else
9005  eval $cacheid=no
9006fi
9007rm -f core conftest.err conftest.$ac_objext \
9008    conftest$ac_exeext conftest.$ac_ext
9009fi
9010
9011
9012		CFLAGS="$xorg_testset_save_CFLAGS"
9013
9014		eval supported=\$$cacheid
9015		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9016$as_echo "$supported" >&6; }
9017		if test "$supported" = "yes" ; then
9018			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9019			found="yes"
9020		fi
9021	fi
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037xorg_testset_save_CFLAGS="$CFLAGS"
9038
9039if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9040	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9041	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9042$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9043if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9044  $as_echo_n "(cached) " >&6
9045else
9046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9047/* end confdefs.h.  */
9048int i;
9049_ACEOF
9050if ac_fn_c_try_compile "$LINENO"; then :
9051  xorg_cv_cc_flag_unknown_warning_option=yes
9052else
9053  xorg_cv_cc_flag_unknown_warning_option=no
9054fi
9055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9056fi
9057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9058$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9059	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9060	CFLAGS="$xorg_testset_save_CFLAGS"
9061fi
9062
9063if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9064	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9065		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9066	fi
9067	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9068	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9069$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9070if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9071  $as_echo_n "(cached) " >&6
9072else
9073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9074/* end confdefs.h.  */
9075int i;
9076_ACEOF
9077if ac_fn_c_try_compile "$LINENO"; then :
9078  xorg_cv_cc_flag_unused_command_line_argument=yes
9079else
9080  xorg_cv_cc_flag_unused_command_line_argument=no
9081fi
9082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9083fi
9084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9085$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9086	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9087	CFLAGS="$xorg_testset_save_CFLAGS"
9088fi
9089
9090found="no"
9091
9092	if test $found = "no" ; then
9093		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9094			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9095		fi
9096
9097		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9098			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9099		fi
9100
9101		CFLAGS="$CFLAGS -Wmissing-braces"
9102
9103		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9104$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9105		cacheid=xorg_cv_cc_flag__Wmissing_braces
9106		if eval \${$cacheid+:} false; then :
9107  $as_echo_n "(cached) " >&6
9108else
9109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9110/* end confdefs.h.  */
9111int i;
9112int
9113main ()
9114{
9115
9116  ;
9117  return 0;
9118}
9119_ACEOF
9120if ac_fn_c_try_link "$LINENO"; then :
9121  eval $cacheid=yes
9122else
9123  eval $cacheid=no
9124fi
9125rm -f core conftest.err conftest.$ac_objext \
9126    conftest$ac_exeext conftest.$ac_ext
9127fi
9128
9129
9130		CFLAGS="$xorg_testset_save_CFLAGS"
9131
9132		eval supported=\$$cacheid
9133		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9134$as_echo "$supported" >&6; }
9135		if test "$supported" = "yes" ; then
9136			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9137			found="yes"
9138		fi
9139	fi
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155xorg_testset_save_CFLAGS="$CFLAGS"
9156
9157if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9158	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9159	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9160$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9161if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9162  $as_echo_n "(cached) " >&6
9163else
9164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9165/* end confdefs.h.  */
9166int i;
9167_ACEOF
9168if ac_fn_c_try_compile "$LINENO"; then :
9169  xorg_cv_cc_flag_unknown_warning_option=yes
9170else
9171  xorg_cv_cc_flag_unknown_warning_option=no
9172fi
9173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9174fi
9175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9176$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9177	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9178	CFLAGS="$xorg_testset_save_CFLAGS"
9179fi
9180
9181if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9182	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9183		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9184	fi
9185	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9186	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9187$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9188if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9189  $as_echo_n "(cached) " >&6
9190else
9191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9192/* end confdefs.h.  */
9193int i;
9194_ACEOF
9195if ac_fn_c_try_compile "$LINENO"; then :
9196  xorg_cv_cc_flag_unused_command_line_argument=yes
9197else
9198  xorg_cv_cc_flag_unused_command_line_argument=no
9199fi
9200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9201fi
9202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9203$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9204	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9205	CFLAGS="$xorg_testset_save_CFLAGS"
9206fi
9207
9208found="no"
9209
9210	if test $found = "no" ; then
9211		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9212			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9213		fi
9214
9215		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9216			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9217		fi
9218
9219		CFLAGS="$CFLAGS -Wsequence-point"
9220
9221		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9222$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9223		cacheid=xorg_cv_cc_flag__Wsequence_point
9224		if eval \${$cacheid+:} false; then :
9225  $as_echo_n "(cached) " >&6
9226else
9227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9228/* end confdefs.h.  */
9229int i;
9230int
9231main ()
9232{
9233
9234  ;
9235  return 0;
9236}
9237_ACEOF
9238if ac_fn_c_try_link "$LINENO"; then :
9239  eval $cacheid=yes
9240else
9241  eval $cacheid=no
9242fi
9243rm -f core conftest.err conftest.$ac_objext \
9244    conftest$ac_exeext conftest.$ac_ext
9245fi
9246
9247
9248		CFLAGS="$xorg_testset_save_CFLAGS"
9249
9250		eval supported=\$$cacheid
9251		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9252$as_echo "$supported" >&6; }
9253		if test "$supported" = "yes" ; then
9254			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9255			found="yes"
9256		fi
9257	fi
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273xorg_testset_save_CFLAGS="$CFLAGS"
9274
9275if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9276	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9277	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9278$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9279if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9280  $as_echo_n "(cached) " >&6
9281else
9282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9283/* end confdefs.h.  */
9284int i;
9285_ACEOF
9286if ac_fn_c_try_compile "$LINENO"; then :
9287  xorg_cv_cc_flag_unknown_warning_option=yes
9288else
9289  xorg_cv_cc_flag_unknown_warning_option=no
9290fi
9291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9292fi
9293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9294$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9295	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9296	CFLAGS="$xorg_testset_save_CFLAGS"
9297fi
9298
9299if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9300	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9301		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9302	fi
9303	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9304	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9305$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9306if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9307  $as_echo_n "(cached) " >&6
9308else
9309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9310/* end confdefs.h.  */
9311int i;
9312_ACEOF
9313if ac_fn_c_try_compile "$LINENO"; then :
9314  xorg_cv_cc_flag_unused_command_line_argument=yes
9315else
9316  xorg_cv_cc_flag_unused_command_line_argument=no
9317fi
9318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9319fi
9320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9321$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9322	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9323	CFLAGS="$xorg_testset_save_CFLAGS"
9324fi
9325
9326found="no"
9327
9328	if test $found = "no" ; then
9329		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9330			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9331		fi
9332
9333		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9334			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9335		fi
9336
9337		CFLAGS="$CFLAGS -Wreturn-type"
9338
9339		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9340$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9341		cacheid=xorg_cv_cc_flag__Wreturn_type
9342		if eval \${$cacheid+:} false; then :
9343  $as_echo_n "(cached) " >&6
9344else
9345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9346/* end confdefs.h.  */
9347int i;
9348int
9349main ()
9350{
9351
9352  ;
9353  return 0;
9354}
9355_ACEOF
9356if ac_fn_c_try_link "$LINENO"; then :
9357  eval $cacheid=yes
9358else
9359  eval $cacheid=no
9360fi
9361rm -f core conftest.err conftest.$ac_objext \
9362    conftest$ac_exeext conftest.$ac_ext
9363fi
9364
9365
9366		CFLAGS="$xorg_testset_save_CFLAGS"
9367
9368		eval supported=\$$cacheid
9369		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9370$as_echo "$supported" >&6; }
9371		if test "$supported" = "yes" ; then
9372			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9373			found="yes"
9374		fi
9375	fi
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391xorg_testset_save_CFLAGS="$CFLAGS"
9392
9393if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9394	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9395	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9396$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9397if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9398  $as_echo_n "(cached) " >&6
9399else
9400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9401/* end confdefs.h.  */
9402int i;
9403_ACEOF
9404if ac_fn_c_try_compile "$LINENO"; then :
9405  xorg_cv_cc_flag_unknown_warning_option=yes
9406else
9407  xorg_cv_cc_flag_unknown_warning_option=no
9408fi
9409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9410fi
9411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9412$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9413	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9414	CFLAGS="$xorg_testset_save_CFLAGS"
9415fi
9416
9417if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9418	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9419		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9420	fi
9421	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9422	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9423$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9424if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9425  $as_echo_n "(cached) " >&6
9426else
9427  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9428/* end confdefs.h.  */
9429int i;
9430_ACEOF
9431if ac_fn_c_try_compile "$LINENO"; then :
9432  xorg_cv_cc_flag_unused_command_line_argument=yes
9433else
9434  xorg_cv_cc_flag_unused_command_line_argument=no
9435fi
9436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9437fi
9438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9439$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9440	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9441	CFLAGS="$xorg_testset_save_CFLAGS"
9442fi
9443
9444found="no"
9445
9446	if test $found = "no" ; then
9447		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9448			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9449		fi
9450
9451		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9452			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9453		fi
9454
9455		CFLAGS="$CFLAGS -Wtrigraphs"
9456
9457		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9458$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9459		cacheid=xorg_cv_cc_flag__Wtrigraphs
9460		if eval \${$cacheid+:} false; then :
9461  $as_echo_n "(cached) " >&6
9462else
9463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9464/* end confdefs.h.  */
9465int i;
9466int
9467main ()
9468{
9469
9470  ;
9471  return 0;
9472}
9473_ACEOF
9474if ac_fn_c_try_link "$LINENO"; then :
9475  eval $cacheid=yes
9476else
9477  eval $cacheid=no
9478fi
9479rm -f core conftest.err conftest.$ac_objext \
9480    conftest$ac_exeext conftest.$ac_ext
9481fi
9482
9483
9484		CFLAGS="$xorg_testset_save_CFLAGS"
9485
9486		eval supported=\$$cacheid
9487		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9488$as_echo "$supported" >&6; }
9489		if test "$supported" = "yes" ; then
9490			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9491			found="yes"
9492		fi
9493	fi
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509xorg_testset_save_CFLAGS="$CFLAGS"
9510
9511if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9512	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9513	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9514$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9515if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9516  $as_echo_n "(cached) " >&6
9517else
9518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9519/* end confdefs.h.  */
9520int i;
9521_ACEOF
9522if ac_fn_c_try_compile "$LINENO"; then :
9523  xorg_cv_cc_flag_unknown_warning_option=yes
9524else
9525  xorg_cv_cc_flag_unknown_warning_option=no
9526fi
9527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9528fi
9529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9530$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9531	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9532	CFLAGS="$xorg_testset_save_CFLAGS"
9533fi
9534
9535if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9536	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9537		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9538	fi
9539	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9540	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9541$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9542if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9543  $as_echo_n "(cached) " >&6
9544else
9545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9546/* end confdefs.h.  */
9547int i;
9548_ACEOF
9549if ac_fn_c_try_compile "$LINENO"; then :
9550  xorg_cv_cc_flag_unused_command_line_argument=yes
9551else
9552  xorg_cv_cc_flag_unused_command_line_argument=no
9553fi
9554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9555fi
9556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9557$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9558	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9559	CFLAGS="$xorg_testset_save_CFLAGS"
9560fi
9561
9562found="no"
9563
9564	if test $found = "no" ; then
9565		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9566			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9567		fi
9568
9569		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9570			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9571		fi
9572
9573		CFLAGS="$CFLAGS -Warray-bounds"
9574
9575		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9576$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9577		cacheid=xorg_cv_cc_flag__Warray_bounds
9578		if eval \${$cacheid+:} false; then :
9579  $as_echo_n "(cached) " >&6
9580else
9581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9582/* end confdefs.h.  */
9583int i;
9584int
9585main ()
9586{
9587
9588  ;
9589  return 0;
9590}
9591_ACEOF
9592if ac_fn_c_try_link "$LINENO"; then :
9593  eval $cacheid=yes
9594else
9595  eval $cacheid=no
9596fi
9597rm -f core conftest.err conftest.$ac_objext \
9598    conftest$ac_exeext conftest.$ac_ext
9599fi
9600
9601
9602		CFLAGS="$xorg_testset_save_CFLAGS"
9603
9604		eval supported=\$$cacheid
9605		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9606$as_echo "$supported" >&6; }
9607		if test "$supported" = "yes" ; then
9608			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9609			found="yes"
9610		fi
9611	fi
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627xorg_testset_save_CFLAGS="$CFLAGS"
9628
9629if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9630	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9631	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9632$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9633if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9634  $as_echo_n "(cached) " >&6
9635else
9636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9637/* end confdefs.h.  */
9638int i;
9639_ACEOF
9640if ac_fn_c_try_compile "$LINENO"; then :
9641  xorg_cv_cc_flag_unknown_warning_option=yes
9642else
9643  xorg_cv_cc_flag_unknown_warning_option=no
9644fi
9645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9646fi
9647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9648$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9649	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9650	CFLAGS="$xorg_testset_save_CFLAGS"
9651fi
9652
9653if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9654	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9655		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9656	fi
9657	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9658	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9659$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9660if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9661  $as_echo_n "(cached) " >&6
9662else
9663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9664/* end confdefs.h.  */
9665int i;
9666_ACEOF
9667if ac_fn_c_try_compile "$LINENO"; then :
9668  xorg_cv_cc_flag_unused_command_line_argument=yes
9669else
9670  xorg_cv_cc_flag_unused_command_line_argument=no
9671fi
9672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9673fi
9674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9675$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9676	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9677	CFLAGS="$xorg_testset_save_CFLAGS"
9678fi
9679
9680found="no"
9681
9682	if test $found = "no" ; then
9683		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9684			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9685		fi
9686
9687		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9688			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9689		fi
9690
9691		CFLAGS="$CFLAGS -Wwrite-strings"
9692
9693		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9694$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9695		cacheid=xorg_cv_cc_flag__Wwrite_strings
9696		if eval \${$cacheid+:} false; then :
9697  $as_echo_n "(cached) " >&6
9698else
9699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9700/* end confdefs.h.  */
9701int i;
9702int
9703main ()
9704{
9705
9706  ;
9707  return 0;
9708}
9709_ACEOF
9710if ac_fn_c_try_link "$LINENO"; then :
9711  eval $cacheid=yes
9712else
9713  eval $cacheid=no
9714fi
9715rm -f core conftest.err conftest.$ac_objext \
9716    conftest$ac_exeext conftest.$ac_ext
9717fi
9718
9719
9720		CFLAGS="$xorg_testset_save_CFLAGS"
9721
9722		eval supported=\$$cacheid
9723		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9724$as_echo "$supported" >&6; }
9725		if test "$supported" = "yes" ; then
9726			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9727			found="yes"
9728		fi
9729	fi
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745xorg_testset_save_CFLAGS="$CFLAGS"
9746
9747if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9748	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9749	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9750$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9751if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9752  $as_echo_n "(cached) " >&6
9753else
9754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9755/* end confdefs.h.  */
9756int i;
9757_ACEOF
9758if ac_fn_c_try_compile "$LINENO"; then :
9759  xorg_cv_cc_flag_unknown_warning_option=yes
9760else
9761  xorg_cv_cc_flag_unknown_warning_option=no
9762fi
9763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9764fi
9765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9766$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9767	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9768	CFLAGS="$xorg_testset_save_CFLAGS"
9769fi
9770
9771if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9772	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9773		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9774	fi
9775	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9776	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9777$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9778if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9779  $as_echo_n "(cached) " >&6
9780else
9781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9782/* end confdefs.h.  */
9783int i;
9784_ACEOF
9785if ac_fn_c_try_compile "$LINENO"; then :
9786  xorg_cv_cc_flag_unused_command_line_argument=yes
9787else
9788  xorg_cv_cc_flag_unused_command_line_argument=no
9789fi
9790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9791fi
9792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9793$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9794	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9795	CFLAGS="$xorg_testset_save_CFLAGS"
9796fi
9797
9798found="no"
9799
9800	if test $found = "no" ; then
9801		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9802			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9803		fi
9804
9805		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9806			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9807		fi
9808
9809		CFLAGS="$CFLAGS -Waddress"
9810
9811		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9812$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9813		cacheid=xorg_cv_cc_flag__Waddress
9814		if eval \${$cacheid+:} false; then :
9815  $as_echo_n "(cached) " >&6
9816else
9817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9818/* end confdefs.h.  */
9819int i;
9820int
9821main ()
9822{
9823
9824  ;
9825  return 0;
9826}
9827_ACEOF
9828if ac_fn_c_try_link "$LINENO"; then :
9829  eval $cacheid=yes
9830else
9831  eval $cacheid=no
9832fi
9833rm -f core conftest.err conftest.$ac_objext \
9834    conftest$ac_exeext conftest.$ac_ext
9835fi
9836
9837
9838		CFLAGS="$xorg_testset_save_CFLAGS"
9839
9840		eval supported=\$$cacheid
9841		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9842$as_echo "$supported" >&6; }
9843		if test "$supported" = "yes" ; then
9844			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9845			found="yes"
9846		fi
9847	fi
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863xorg_testset_save_CFLAGS="$CFLAGS"
9864
9865if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9866	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9867	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9868$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9869if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9870  $as_echo_n "(cached) " >&6
9871else
9872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9873/* end confdefs.h.  */
9874int i;
9875_ACEOF
9876if ac_fn_c_try_compile "$LINENO"; then :
9877  xorg_cv_cc_flag_unknown_warning_option=yes
9878else
9879  xorg_cv_cc_flag_unknown_warning_option=no
9880fi
9881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9882fi
9883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9884$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9885	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9886	CFLAGS="$xorg_testset_save_CFLAGS"
9887fi
9888
9889if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9890	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9891		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9892	fi
9893	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9894	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9895$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9896if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9897  $as_echo_n "(cached) " >&6
9898else
9899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9900/* end confdefs.h.  */
9901int i;
9902_ACEOF
9903if ac_fn_c_try_compile "$LINENO"; then :
9904  xorg_cv_cc_flag_unused_command_line_argument=yes
9905else
9906  xorg_cv_cc_flag_unused_command_line_argument=no
9907fi
9908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9909fi
9910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9911$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9912	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9913	CFLAGS="$xorg_testset_save_CFLAGS"
9914fi
9915
9916found="no"
9917
9918	if test $found = "no" ; then
9919		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9920			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9921		fi
9922
9923		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9924			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9925		fi
9926
9927		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9928
9929		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9930$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9931		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9932		if eval \${$cacheid+:} false; then :
9933  $as_echo_n "(cached) " >&6
9934else
9935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9936/* end confdefs.h.  */
9937int i;
9938int
9939main ()
9940{
9941
9942  ;
9943  return 0;
9944}
9945_ACEOF
9946if ac_fn_c_try_link "$LINENO"; then :
9947  eval $cacheid=yes
9948else
9949  eval $cacheid=no
9950fi
9951rm -f core conftest.err conftest.$ac_objext \
9952    conftest$ac_exeext conftest.$ac_ext
9953fi
9954
9955
9956		CFLAGS="$xorg_testset_save_CFLAGS"
9957
9958		eval supported=\$$cacheid
9959		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9960$as_echo "$supported" >&6; }
9961		if test "$supported" = "yes" ; then
9962			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9963			found="yes"
9964		fi
9965	fi
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981xorg_testset_save_CFLAGS="$CFLAGS"
9982
9983if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9984	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9985	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9986$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9987if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9988  $as_echo_n "(cached) " >&6
9989else
9990  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9991/* end confdefs.h.  */
9992int i;
9993_ACEOF
9994if ac_fn_c_try_compile "$LINENO"; then :
9995  xorg_cv_cc_flag_unknown_warning_option=yes
9996else
9997  xorg_cv_cc_flag_unknown_warning_option=no
9998fi
9999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10000fi
10001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10002$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10003	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10004	CFLAGS="$xorg_testset_save_CFLAGS"
10005fi
10006
10007if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10008	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10009		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10010	fi
10011	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10012	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10013$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10014if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10015  $as_echo_n "(cached) " >&6
10016else
10017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10018/* end confdefs.h.  */
10019int i;
10020_ACEOF
10021if ac_fn_c_try_compile "$LINENO"; then :
10022  xorg_cv_cc_flag_unused_command_line_argument=yes
10023else
10024  xorg_cv_cc_flag_unused_command_line_argument=no
10025fi
10026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10027fi
10028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10029$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10030	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10031	CFLAGS="$xorg_testset_save_CFLAGS"
10032fi
10033
10034found="no"
10035
10036	if test $found = "no" ; then
10037		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10038			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10039		fi
10040
10041		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10042			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10043		fi
10044
10045		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10046
10047		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10048$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10049		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10050		if eval \${$cacheid+:} false; then :
10051  $as_echo_n "(cached) " >&6
10052else
10053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10054/* end confdefs.h.  */
10055int i;
10056int
10057main ()
10058{
10059
10060  ;
10061  return 0;
10062}
10063_ACEOF
10064if ac_fn_c_try_link "$LINENO"; then :
10065  eval $cacheid=yes
10066else
10067  eval $cacheid=no
10068fi
10069rm -f core conftest.err conftest.$ac_objext \
10070    conftest$ac_exeext conftest.$ac_ext
10071fi
10072
10073
10074		CFLAGS="$xorg_testset_save_CFLAGS"
10075
10076		eval supported=\$$cacheid
10077		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10078$as_echo "$supported" >&6; }
10079		if test "$supported" = "yes" ; then
10080			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10081			found="yes"
10082		fi
10083	fi
10084
10085
10086fi
10087
10088
10089
10090
10091
10092
10093
10094		CWARNFLAGS="$BASE_CFLAGS"
10095		if  test "x$GCC" = xyes ; then
10096		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10097		fi
10098
10099
10100
10101
10102
10103
10104
10105
10106# Check whether --enable-strict-compilation was given.
10107if test "${enable_strict_compilation+set}" = set; then :
10108  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10109else
10110  STRICT_COMPILE=no
10111fi
10112
10113
10114
10115
10116
10117
10118STRICT_CFLAGS=""
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132xorg_testset_save_CFLAGS="$CFLAGS"
10133
10134if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10135	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10136	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10137$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10138if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10139  $as_echo_n "(cached) " >&6
10140else
10141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10142/* end confdefs.h.  */
10143int i;
10144_ACEOF
10145if ac_fn_c_try_compile "$LINENO"; then :
10146  xorg_cv_cc_flag_unknown_warning_option=yes
10147else
10148  xorg_cv_cc_flag_unknown_warning_option=no
10149fi
10150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10151fi
10152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10153$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10154	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10155	CFLAGS="$xorg_testset_save_CFLAGS"
10156fi
10157
10158if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10159	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10160		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10161	fi
10162	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10163	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10164$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10165if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10166  $as_echo_n "(cached) " >&6
10167else
10168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10169/* end confdefs.h.  */
10170int i;
10171_ACEOF
10172if ac_fn_c_try_compile "$LINENO"; then :
10173  xorg_cv_cc_flag_unused_command_line_argument=yes
10174else
10175  xorg_cv_cc_flag_unused_command_line_argument=no
10176fi
10177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10178fi
10179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10180$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10181	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10182	CFLAGS="$xorg_testset_save_CFLAGS"
10183fi
10184
10185found="no"
10186
10187	if test $found = "no" ; then
10188		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10189			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10190		fi
10191
10192		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10193			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10194		fi
10195
10196		CFLAGS="$CFLAGS -pedantic"
10197
10198		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10199$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10200		cacheid=xorg_cv_cc_flag__pedantic
10201		if eval \${$cacheid+:} false; then :
10202  $as_echo_n "(cached) " >&6
10203else
10204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10205/* end confdefs.h.  */
10206int i;
10207int
10208main ()
10209{
10210
10211  ;
10212  return 0;
10213}
10214_ACEOF
10215if ac_fn_c_try_link "$LINENO"; then :
10216  eval $cacheid=yes
10217else
10218  eval $cacheid=no
10219fi
10220rm -f core conftest.err conftest.$ac_objext \
10221    conftest$ac_exeext conftest.$ac_ext
10222fi
10223
10224
10225		CFLAGS="$xorg_testset_save_CFLAGS"
10226
10227		eval supported=\$$cacheid
10228		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10229$as_echo "$supported" >&6; }
10230		if test "$supported" = "yes" ; then
10231			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10232			found="yes"
10233		fi
10234	fi
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250xorg_testset_save_CFLAGS="$CFLAGS"
10251
10252if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10253	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10254	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10255$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10256if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10257  $as_echo_n "(cached) " >&6
10258else
10259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10260/* end confdefs.h.  */
10261int i;
10262_ACEOF
10263if ac_fn_c_try_compile "$LINENO"; then :
10264  xorg_cv_cc_flag_unknown_warning_option=yes
10265else
10266  xorg_cv_cc_flag_unknown_warning_option=no
10267fi
10268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10269fi
10270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10271$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10272	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10273	CFLAGS="$xorg_testset_save_CFLAGS"
10274fi
10275
10276if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10277	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10278		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10279	fi
10280	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10281	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10282$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10283if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10284  $as_echo_n "(cached) " >&6
10285else
10286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10287/* end confdefs.h.  */
10288int i;
10289_ACEOF
10290if ac_fn_c_try_compile "$LINENO"; then :
10291  xorg_cv_cc_flag_unused_command_line_argument=yes
10292else
10293  xorg_cv_cc_flag_unused_command_line_argument=no
10294fi
10295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10296fi
10297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10298$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10299	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10300	CFLAGS="$xorg_testset_save_CFLAGS"
10301fi
10302
10303found="no"
10304
10305	if test $found = "no" ; then
10306		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10307			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10308		fi
10309
10310		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10311			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10312		fi
10313
10314		CFLAGS="$CFLAGS -Werror"
10315
10316		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10317$as_echo_n "checking if $CC supports -Werror... " >&6; }
10318		cacheid=xorg_cv_cc_flag__Werror
10319		if eval \${$cacheid+:} false; then :
10320  $as_echo_n "(cached) " >&6
10321else
10322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10323/* end confdefs.h.  */
10324int i;
10325int
10326main ()
10327{
10328
10329  ;
10330  return 0;
10331}
10332_ACEOF
10333if ac_fn_c_try_link "$LINENO"; then :
10334  eval $cacheid=yes
10335else
10336  eval $cacheid=no
10337fi
10338rm -f core conftest.err conftest.$ac_objext \
10339    conftest$ac_exeext conftest.$ac_ext
10340fi
10341
10342
10343		CFLAGS="$xorg_testset_save_CFLAGS"
10344
10345		eval supported=\$$cacheid
10346		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10347$as_echo "$supported" >&6; }
10348		if test "$supported" = "yes" ; then
10349			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10350			found="yes"
10351		fi
10352	fi
10353
10354	if test $found = "no" ; then
10355		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10356			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10357		fi
10358
10359		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10360			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10361		fi
10362
10363		CFLAGS="$CFLAGS -errwarn"
10364
10365		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10366$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10367		cacheid=xorg_cv_cc_flag__errwarn
10368		if eval \${$cacheid+:} false; then :
10369  $as_echo_n "(cached) " >&6
10370else
10371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10372/* end confdefs.h.  */
10373int i;
10374int
10375main ()
10376{
10377
10378  ;
10379  return 0;
10380}
10381_ACEOF
10382if ac_fn_c_try_link "$LINENO"; then :
10383  eval $cacheid=yes
10384else
10385  eval $cacheid=no
10386fi
10387rm -f core conftest.err conftest.$ac_objext \
10388    conftest$ac_exeext conftest.$ac_ext
10389fi
10390
10391
10392		CFLAGS="$xorg_testset_save_CFLAGS"
10393
10394		eval supported=\$$cacheid
10395		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10396$as_echo "$supported" >&6; }
10397		if test "$supported" = "yes" ; then
10398			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10399			found="yes"
10400		fi
10401	fi
10402
10403
10404
10405# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10406# activate it with -Werror, so we add it here explicitly.
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420xorg_testset_save_CFLAGS="$CFLAGS"
10421
10422if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10423	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10424	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10425$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10426if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10427  $as_echo_n "(cached) " >&6
10428else
10429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10430/* end confdefs.h.  */
10431int i;
10432_ACEOF
10433if ac_fn_c_try_compile "$LINENO"; then :
10434  xorg_cv_cc_flag_unknown_warning_option=yes
10435else
10436  xorg_cv_cc_flag_unknown_warning_option=no
10437fi
10438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10439fi
10440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10441$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10442	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10443	CFLAGS="$xorg_testset_save_CFLAGS"
10444fi
10445
10446if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10447	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10448		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10449	fi
10450	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10451	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10452$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10453if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10454  $as_echo_n "(cached) " >&6
10455else
10456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10457/* end confdefs.h.  */
10458int i;
10459_ACEOF
10460if ac_fn_c_try_compile "$LINENO"; then :
10461  xorg_cv_cc_flag_unused_command_line_argument=yes
10462else
10463  xorg_cv_cc_flag_unused_command_line_argument=no
10464fi
10465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10466fi
10467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10468$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10469	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10470	CFLAGS="$xorg_testset_save_CFLAGS"
10471fi
10472
10473found="no"
10474
10475	if test $found = "no" ; then
10476		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10477			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10478		fi
10479
10480		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10481			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10482		fi
10483
10484		CFLAGS="$CFLAGS -Werror=attributes"
10485
10486		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10487$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10488		cacheid=xorg_cv_cc_flag__Werror_attributes
10489		if eval \${$cacheid+:} false; then :
10490  $as_echo_n "(cached) " >&6
10491else
10492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10493/* end confdefs.h.  */
10494int i;
10495int
10496main ()
10497{
10498
10499  ;
10500  return 0;
10501}
10502_ACEOF
10503if ac_fn_c_try_link "$LINENO"; then :
10504  eval $cacheid=yes
10505else
10506  eval $cacheid=no
10507fi
10508rm -f core conftest.err conftest.$ac_objext \
10509    conftest$ac_exeext conftest.$ac_ext
10510fi
10511
10512
10513		CFLAGS="$xorg_testset_save_CFLAGS"
10514
10515		eval supported=\$$cacheid
10516		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10517$as_echo "$supported" >&6; }
10518		if test "$supported" = "yes" ; then
10519			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10520			found="yes"
10521		fi
10522	fi
10523
10524
10525
10526if test "x$STRICT_COMPILE" = "xyes"; then
10527    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10528    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10529fi
10530
10531
10532
10533
10534
10535
10536cat >>confdefs.h <<_ACEOF
10537#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10538_ACEOF
10539
10540	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10541	if test "x$PVM" = "x"; then
10542		PVM="0"
10543	fi
10544
10545cat >>confdefs.h <<_ACEOF
10546#define PACKAGE_VERSION_MINOR $PVM
10547_ACEOF
10548
10549	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10550	if test "x$PVP" = "x"; then
10551		PVP="0"
10552	fi
10553
10554cat >>confdefs.h <<_ACEOF
10555#define PACKAGE_VERSION_PATCHLEVEL $PVP
10556_ACEOF
10557
10558
10559
10560CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10561mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10562|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10563echo 'git directory not found: installing possibly empty changelog.' >&2)"
10564
10565
10566
10567
10568macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10569INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10570mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10571|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10572echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10573
10574
10575
10576
10577
10578
10579if test x$APP_MAN_SUFFIX = x    ; then
10580    APP_MAN_SUFFIX=1
10581fi
10582if test x$APP_MAN_DIR = x    ; then
10583    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10584fi
10585
10586if test x$LIB_MAN_SUFFIX = x    ; then
10587    LIB_MAN_SUFFIX=3
10588fi
10589if test x$LIB_MAN_DIR = x    ; then
10590    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10591fi
10592
10593if test x$FILE_MAN_SUFFIX = x    ; then
10594    case $host_os in
10595	# Solaris 2.0 - 11 use SysV man page sections
10596	solaris2.?|solaris2.1[01])	FILE_MAN_SUFFIX=4  ;;
10597	*)				FILE_MAN_SUFFIX=5  ;;
10598    esac
10599fi
10600if test x$FILE_MAN_DIR = x    ; then
10601    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10602fi
10603
10604if test x$MISC_MAN_SUFFIX = x    ; then
10605    case $host_os in
10606	# Solaris 2.0 - 11 use SysV man page sections
10607	solaris2.?|solaris2.1[01])	MISC_MAN_SUFFIX=5  ;;
10608	*)				MISC_MAN_SUFFIX=7  ;;
10609    esac
10610fi
10611if test x$MISC_MAN_DIR = x    ; then
10612    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10613fi
10614
10615if test x$DRIVER_MAN_SUFFIX = x    ; then
10616    case $host_os in
10617	# Solaris 2.0 - 11 use SysV man page sections
10618	solaris2.?|solaris2.1[01])	DRIVER_MAN_SUFFIX=7  ;;
10619	*)				DRIVER_MAN_SUFFIX=4  ;;
10620    esac
10621fi
10622if test x$DRIVER_MAN_DIR = x    ; then
10623    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10624fi
10625
10626if test x$ADMIN_MAN_SUFFIX = x    ; then
10627    case $host_os in
10628	# Solaris 2.0 - 11 use SysV man page sections
10629	solaris2.?|solaris2.1[01])	ADMIN_MAN_SUFFIX=1m ;;
10630	*)				ADMIN_MAN_SUFFIX=8  ;;
10631    esac
10632fi
10633if test x$ADMIN_MAN_DIR = x    ; then
10634    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10635fi
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651XORG_MAN_PAGE="X Version 11"
10652
10653MAN_SUBSTS="\
10654	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10655	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10656	-e 's|__xservername__|Xorg|g' \
10657	-e 's|__xconfigfile__|xorg.conf|g' \
10658	-e 's|__projectroot__|\$(prefix)|g' \
10659	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10660	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10661	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10662	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10663	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10664	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10665	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10666
10667
10668
10669# Check whether --enable-silent-rules was given.
10670if test "${enable_silent_rules+set}" = set; then :
10671  enableval=$enable_silent_rules;
10672fi
10673
10674case $enable_silent_rules in # (((
10675  yes) AM_DEFAULT_VERBOSITY=0;;
10676   no) AM_DEFAULT_VERBOSITY=1;;
10677    *) AM_DEFAULT_VERBOSITY=0;;
10678esac
10679am_make=${MAKE-make}
10680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10681$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10682if ${am_cv_make_support_nested_variables+:} false; then :
10683  $as_echo_n "(cached) " >&6
10684else
10685  if $as_echo 'TRUE=$(BAR$(V))
10686BAR0=false
10687BAR1=true
10688V=1
10689am__doit:
10690	@$(TRUE)
10691.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10692  am_cv_make_support_nested_variables=yes
10693else
10694  am_cv_make_support_nested_variables=no
10695fi
10696fi
10697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10698$as_echo "$am_cv_make_support_nested_variables" >&6; }
10699if test $am_cv_make_support_nested_variables = yes; then
10700    AM_V='$(V)'
10701  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10702else
10703  AM_V=$AM_DEFAULT_VERBOSITY
10704  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10705fi
10706AM_BACKSLASH='\'
10707
10708
10709
10710for ac_header in wchar.h wctype.h langinfo.h
10711do :
10712  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10713ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10714if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10715  cat >>confdefs.h <<_ACEOF
10716#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10717_ACEOF
10718
10719fi
10720
10721done
10722
10723
10724# Checks for pkg-config packages
10725
10726pkg_failed=no
10727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPROP" >&5
10728$as_echo_n "checking for XPROP... " >&6; }
10729
10730if test -n "$XPROP_CFLAGS"; then
10731    pkg_cv_XPROP_CFLAGS="$XPROP_CFLAGS"
10732 elif test -n "$PKG_CONFIG"; then
10733    if test -n "$PKG_CONFIG" && \
10734    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25\""; } >&5
10735  ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25") 2>&5
10736  ac_status=$?
10737  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10738  test $ac_status = 0; }; then
10739  pkg_cv_XPROP_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.25" 2>/dev/null`
10740		      test "x$?" != "x0" && pkg_failed=yes
10741else
10742  pkg_failed=yes
10743fi
10744 else
10745    pkg_failed=untried
10746fi
10747if test -n "$XPROP_LIBS"; then
10748    pkg_cv_XPROP_LIBS="$XPROP_LIBS"
10749 elif test -n "$PKG_CONFIG"; then
10750    if test -n "$PKG_CONFIG" && \
10751    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25\""; } >&5
10752  ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25") 2>&5
10753  ac_status=$?
10754  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10755  test $ac_status = 0; }; then
10756  pkg_cv_XPROP_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.25" 2>/dev/null`
10757		      test "x$?" != "x0" && pkg_failed=yes
10758else
10759  pkg_failed=yes
10760fi
10761 else
10762    pkg_failed=untried
10763fi
10764
10765
10766
10767if test $pkg_failed = yes; then
10768   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10769$as_echo "no" >&6; }
10770
10771if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10772        _pkg_short_errors_supported=yes
10773else
10774        _pkg_short_errors_supported=no
10775fi
10776        if test $_pkg_short_errors_supported = yes; then
10777	        XPROP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xproto >= 7.0.25" 2>&1`
10778        else
10779	        XPROP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xproto >= 7.0.25" 2>&1`
10780        fi
10781	# Put the nasty error message in config.log where it belongs
10782	echo "$XPROP_PKG_ERRORS" >&5
10783
10784	as_fn_error $? "Package requirements (x11 xproto >= 7.0.25) were not met:
10785
10786$XPROP_PKG_ERRORS
10787
10788Consider adjusting the PKG_CONFIG_PATH environment variable if you
10789installed software in a non-standard prefix.
10790
10791Alternatively, you may set the environment variables XPROP_CFLAGS
10792and XPROP_LIBS to avoid the need to call pkg-config.
10793See the pkg-config man page for more details." "$LINENO" 5
10794elif test $pkg_failed = untried; then
10795     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10796$as_echo "no" >&6; }
10797	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10798$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10799as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10800is in your PATH or set the PKG_CONFIG environment variable to the full
10801path to pkg-config.
10802
10803Alternatively, you may set the environment variables XPROP_CFLAGS
10804and XPROP_LIBS to avoid the need to call pkg-config.
10805See the pkg-config man page for more details.
10806
10807To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10808See \`config.log' for more details" "$LINENO" 5; }
10809else
10810	XPROP_CFLAGS=$pkg_cv_XPROP_CFLAGS
10811	XPROP_LIBS=$pkg_cv_XPROP_LIBS
10812        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10813$as_echo "yes" >&6; }
10814
10815fi
10816
10817
10818
10819
10820
10821
10822# Check whether --with-lint was given.
10823if test "${with_lint+set}" = set; then :
10824  withval=$with_lint; use_lint=$withval
10825else
10826  use_lint=no
10827fi
10828
10829
10830# Obtain platform specific info like program name and options
10831# The lint program on FreeBSD and NetBSD is different from the one on Solaris
10832case $host_os in
10833  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
10834	lint_name=splint
10835	lint_options="-badflag"
10836	;;
10837  *freebsd* | *netbsd*)
10838	lint_name=lint
10839	lint_options="-u -b"
10840	;;
10841  *solaris*)
10842	lint_name=lint
10843	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
10844	;;
10845esac
10846
10847# Test for the presence of the program (either guessed by the code or spelled out by the user)
10848if test "x$use_lint" = x"yes" ; then
10849   # Extract the first word of "$lint_name", so it can be a program name with args.
10850set dummy $lint_name; ac_word=$2
10851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10852$as_echo_n "checking for $ac_word... " >&6; }
10853if ${ac_cv_path_LINT+:} false; then :
10854  $as_echo_n "(cached) " >&6
10855else
10856  case $LINT in
10857  [\\/]* | ?:[\\/]*)
10858  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
10859  ;;
10860  *)
10861  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10862for as_dir in $PATH
10863do
10864  IFS=$as_save_IFS
10865  test -z "$as_dir" && as_dir=.
10866    for ac_exec_ext in '' $ac_executable_extensions; do
10867  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10868    ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
10869    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10870    break 2
10871  fi
10872done
10873  done
10874IFS=$as_save_IFS
10875
10876  ;;
10877esac
10878fi
10879LINT=$ac_cv_path_LINT
10880if test -n "$LINT"; then
10881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
10882$as_echo "$LINT" >&6; }
10883else
10884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10885$as_echo "no" >&6; }
10886fi
10887
10888
10889   if test "x$LINT" = "x"; then
10890        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
10891   fi
10892elif test "x$use_lint" = x"no" ; then
10893   if test "x$LINT" != "x"; then
10894      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
10895$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
10896   fi
10897else
10898   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
10899fi
10900
10901# User supplied flags override default flags
10902if test "x$LINT_FLAGS" != "x"; then
10903   lint_options=$LINT_FLAGS
10904fi
10905
10906LINT_FLAGS=$lint_options
10907
10908 if test "x$LINT" != x; then
10909  LINT_TRUE=
10910  LINT_FALSE='#'
10911else
10912  LINT_TRUE='#'
10913  LINT_FALSE=
10914fi
10915
10916
10917
10918
10919ac_config_files="$ac_config_files Makefile man/Makefile"
10920
10921cat >confcache <<\_ACEOF
10922# This file is a shell script that caches the results of configure
10923# tests run on this system so they can be shared between configure
10924# scripts and configure runs, see configure's option --config-cache.
10925# It is not useful on other systems.  If it contains results you don't
10926# want to keep, you may remove or edit it.
10927#
10928# config.status only pays attention to the cache file if you give it
10929# the --recheck option to rerun configure.
10930#
10931# `ac_cv_env_foo' variables (set or unset) will be overridden when
10932# loading this file, other *unset* `ac_cv_foo' will be assigned the
10933# following values.
10934
10935_ACEOF
10936
10937# The following way of writing the cache mishandles newlines in values,
10938# but we know of no workaround that is simple, portable, and efficient.
10939# So, we kill variables containing newlines.
10940# Ultrix sh set writes to stderr and can't be redirected directly,
10941# and sets the high bit in the cache file unless we assign to the vars.
10942(
10943  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10944    eval ac_val=\$$ac_var
10945    case $ac_val in #(
10946    *${as_nl}*)
10947      case $ac_var in #(
10948      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10949$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10950      esac
10951      case $ac_var in #(
10952      _ | IFS | as_nl) ;; #(
10953      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10954      *) { eval $ac_var=; unset $ac_var;} ;;
10955      esac ;;
10956    esac
10957  done
10958
10959  (set) 2>&1 |
10960    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10961    *${as_nl}ac_space=\ *)
10962      # `set' does not quote correctly, so add quotes: double-quote
10963      # substitution turns \\\\ into \\, and sed turns \\ into \.
10964      sed -n \
10965	"s/'/'\\\\''/g;
10966	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10967      ;; #(
10968    *)
10969      # `set' quotes correctly as required by POSIX, so do not add quotes.
10970      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10971      ;;
10972    esac |
10973    sort
10974) |
10975  sed '
10976     /^ac_cv_env_/b end
10977     t clear
10978     :clear
10979     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10980     t end
10981     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10982     :end' >>confcache
10983if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10984  if test -w "$cache_file"; then
10985    if test "x$cache_file" != "x/dev/null"; then
10986      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10987$as_echo "$as_me: updating cache $cache_file" >&6;}
10988      if test ! -f "$cache_file" || test -h "$cache_file"; then
10989	cat confcache >"$cache_file"
10990      else
10991        case $cache_file in #(
10992        */* | ?:*)
10993	  mv -f confcache "$cache_file"$$ &&
10994	  mv -f "$cache_file"$$ "$cache_file" ;; #(
10995        *)
10996	  mv -f confcache "$cache_file" ;;
10997	esac
10998      fi
10999    fi
11000  else
11001    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11002$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11003  fi
11004fi
11005rm -f confcache
11006
11007test "x$prefix" = xNONE && prefix=$ac_default_prefix
11008# Let make expand exec_prefix.
11009test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11010
11011DEFS=-DHAVE_CONFIG_H
11012
11013ac_libobjs=
11014ac_ltlibobjs=
11015U=
11016for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11017  # 1. Remove the extension, and $U if already installed.
11018  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11019  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11020  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11021  #    will be set to the directory where LIBOBJS objects are built.
11022  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11023  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11024done
11025LIBOBJS=$ac_libobjs
11026
11027LTLIBOBJS=$ac_ltlibobjs
11028
11029
11030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11031$as_echo_n "checking that generated files are newer than configure... " >&6; }
11032   if test -n "$am_sleep_pid"; then
11033     # Hide warnings about reused PIDs.
11034     wait $am_sleep_pid 2>/dev/null
11035   fi
11036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11037$as_echo "done" >&6; }
11038 if test -n "$EXEEXT"; then
11039  am__EXEEXT_TRUE=
11040  am__EXEEXT_FALSE='#'
11041else
11042  am__EXEEXT_TRUE='#'
11043  am__EXEEXT_FALSE=
11044fi
11045
11046if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11047  as_fn_error $? "conditional \"AMDEP\" was never defined.
11048Usually this means the macro was only invoked conditionally." "$LINENO" 5
11049fi
11050if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11051  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11052Usually this means the macro was only invoked conditionally." "$LINENO" 5
11053fi
11054if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
11055  as_fn_error $? "conditional \"LINT\" was never defined.
11056Usually this means the macro was only invoked conditionally." "$LINENO" 5
11057fi
11058
11059: "${CONFIG_STATUS=./config.status}"
11060ac_write_fail=0
11061ac_clean_files_save=$ac_clean_files
11062ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11063{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11064$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11065as_write_fail=0
11066cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11067#! $SHELL
11068# Generated by $as_me.
11069# Run this file to recreate the current configuration.
11070# Compiler output produced by configure, useful for debugging
11071# configure, is in config.log if it exists.
11072
11073debug=false
11074ac_cs_recheck=false
11075ac_cs_silent=false
11076
11077SHELL=\${CONFIG_SHELL-$SHELL}
11078export SHELL
11079_ASEOF
11080cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11081## -------------------- ##
11082## M4sh Initialization. ##
11083## -------------------- ##
11084
11085# Be more Bourne compatible
11086DUALCASE=1; export DUALCASE # for MKS sh
11087if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11088  emulate sh
11089  NULLCMD=:
11090  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11091  # is contrary to our usage.  Disable this feature.
11092  alias -g '${1+"$@"}'='"$@"'
11093  setopt NO_GLOB_SUBST
11094else
11095  case `(set -o) 2>/dev/null` in #(
11096  *posix*) :
11097    set -o posix ;; #(
11098  *) :
11099     ;;
11100esac
11101fi
11102
11103
11104as_nl='
11105'
11106export as_nl
11107# Printing a long string crashes Solaris 7 /usr/bin/printf.
11108as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11109as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11110as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11111# Prefer a ksh shell builtin over an external printf program on Solaris,
11112# but without wasting forks for bash or zsh.
11113if test -z "$BASH_VERSION$ZSH_VERSION" \
11114    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11115  as_echo='print -r --'
11116  as_echo_n='print -rn --'
11117elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11118  as_echo='printf %s\n'
11119  as_echo_n='printf %s'
11120else
11121  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11122    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11123    as_echo_n='/usr/ucb/echo -n'
11124  else
11125    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11126    as_echo_n_body='eval
11127      arg=$1;
11128      case $arg in #(
11129      *"$as_nl"*)
11130	expr "X$arg" : "X\\(.*\\)$as_nl";
11131	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11132      esac;
11133      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11134    '
11135    export as_echo_n_body
11136    as_echo_n='sh -c $as_echo_n_body as_echo'
11137  fi
11138  export as_echo_body
11139  as_echo='sh -c $as_echo_body as_echo'
11140fi
11141
11142# The user is always right.
11143if test "${PATH_SEPARATOR+set}" != set; then
11144  PATH_SEPARATOR=:
11145  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11146    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11147      PATH_SEPARATOR=';'
11148  }
11149fi
11150
11151
11152# IFS
11153# We need space, tab and new line, in precisely that order.  Quoting is
11154# there to prevent editors from complaining about space-tab.
11155# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11156# splitting by setting IFS to empty value.)
11157IFS=" ""	$as_nl"
11158
11159# Find who we are.  Look in the path if we contain no directory separator.
11160as_myself=
11161case $0 in #((
11162  *[\\/]* ) as_myself=$0 ;;
11163  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11164for as_dir in $PATH
11165do
11166  IFS=$as_save_IFS
11167  test -z "$as_dir" && as_dir=.
11168    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11169  done
11170IFS=$as_save_IFS
11171
11172     ;;
11173esac
11174# We did not find ourselves, most probably we were run as `sh COMMAND'
11175# in which case we are not to be found in the path.
11176if test "x$as_myself" = x; then
11177  as_myself=$0
11178fi
11179if test ! -f "$as_myself"; then
11180  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11181  exit 1
11182fi
11183
11184# Unset variables that we do not need and which cause bugs (e.g. in
11185# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11186# suppresses any "Segmentation fault" message there.  '((' could
11187# trigger a bug in pdksh 5.2.14.
11188for as_var in BASH_ENV ENV MAIL MAILPATH
11189do eval test x\${$as_var+set} = xset \
11190  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11191done
11192PS1='$ '
11193PS2='> '
11194PS4='+ '
11195
11196# NLS nuisances.
11197LC_ALL=C
11198export LC_ALL
11199LANGUAGE=C
11200export LANGUAGE
11201
11202# CDPATH.
11203(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11204
11205
11206# as_fn_error STATUS ERROR [LINENO LOG_FD]
11207# ----------------------------------------
11208# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11209# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11210# script with STATUS, using 1 if that was 0.
11211as_fn_error ()
11212{
11213  as_status=$1; test $as_status -eq 0 && as_status=1
11214  if test "$4"; then
11215    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11216    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11217  fi
11218  $as_echo "$as_me: error: $2" >&2
11219  as_fn_exit $as_status
11220} # as_fn_error
11221
11222
11223# as_fn_set_status STATUS
11224# -----------------------
11225# Set $? to STATUS, without forking.
11226as_fn_set_status ()
11227{
11228  return $1
11229} # as_fn_set_status
11230
11231# as_fn_exit STATUS
11232# -----------------
11233# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11234as_fn_exit ()
11235{
11236  set +e
11237  as_fn_set_status $1
11238  exit $1
11239} # as_fn_exit
11240
11241# as_fn_unset VAR
11242# ---------------
11243# Portably unset VAR.
11244as_fn_unset ()
11245{
11246  { eval $1=; unset $1;}
11247}
11248as_unset=as_fn_unset
11249# as_fn_append VAR VALUE
11250# ----------------------
11251# Append the text in VALUE to the end of the definition contained in VAR. Take
11252# advantage of any shell optimizations that allow amortized linear growth over
11253# repeated appends, instead of the typical quadratic growth present in naive
11254# implementations.
11255if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11256  eval 'as_fn_append ()
11257  {
11258    eval $1+=\$2
11259  }'
11260else
11261  as_fn_append ()
11262  {
11263    eval $1=\$$1\$2
11264  }
11265fi # as_fn_append
11266
11267# as_fn_arith ARG...
11268# ------------------
11269# Perform arithmetic evaluation on the ARGs, and store the result in the
11270# global $as_val. Take advantage of shells that can avoid forks. The arguments
11271# must be portable across $(()) and expr.
11272if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11273  eval 'as_fn_arith ()
11274  {
11275    as_val=$(( $* ))
11276  }'
11277else
11278  as_fn_arith ()
11279  {
11280    as_val=`expr "$@" || test $? -eq 1`
11281  }
11282fi # as_fn_arith
11283
11284
11285if expr a : '\(a\)' >/dev/null 2>&1 &&
11286   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11287  as_expr=expr
11288else
11289  as_expr=false
11290fi
11291
11292if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11293  as_basename=basename
11294else
11295  as_basename=false
11296fi
11297
11298if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11299  as_dirname=dirname
11300else
11301  as_dirname=false
11302fi
11303
11304as_me=`$as_basename -- "$0" ||
11305$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11306	 X"$0" : 'X\(//\)$' \| \
11307	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11308$as_echo X/"$0" |
11309    sed '/^.*\/\([^/][^/]*\)\/*$/{
11310	    s//\1/
11311	    q
11312	  }
11313	  /^X\/\(\/\/\)$/{
11314	    s//\1/
11315	    q
11316	  }
11317	  /^X\/\(\/\).*/{
11318	    s//\1/
11319	    q
11320	  }
11321	  s/.*/./; q'`
11322
11323# Avoid depending upon Character Ranges.
11324as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11325as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11326as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11327as_cr_digits='0123456789'
11328as_cr_alnum=$as_cr_Letters$as_cr_digits
11329
11330ECHO_C= ECHO_N= ECHO_T=
11331case `echo -n x` in #(((((
11332-n*)
11333  case `echo 'xy\c'` in
11334  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11335  xy)  ECHO_C='\c';;
11336  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11337       ECHO_T='	';;
11338  esac;;
11339*)
11340  ECHO_N='-n';;
11341esac
11342
11343rm -f conf$$ conf$$.exe conf$$.file
11344if test -d conf$$.dir; then
11345  rm -f conf$$.dir/conf$$.file
11346else
11347  rm -f conf$$.dir
11348  mkdir conf$$.dir 2>/dev/null
11349fi
11350if (echo >conf$$.file) 2>/dev/null; then
11351  if ln -s conf$$.file conf$$ 2>/dev/null; then
11352    as_ln_s='ln -s'
11353    # ... but there are two gotchas:
11354    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11355    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11356    # In both cases, we have to default to `cp -pR'.
11357    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11358      as_ln_s='cp -pR'
11359  elif ln conf$$.file conf$$ 2>/dev/null; then
11360    as_ln_s=ln
11361  else
11362    as_ln_s='cp -pR'
11363  fi
11364else
11365  as_ln_s='cp -pR'
11366fi
11367rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11368rmdir conf$$.dir 2>/dev/null
11369
11370
11371# as_fn_mkdir_p
11372# -------------
11373# Create "$as_dir" as a directory, including parents if necessary.
11374as_fn_mkdir_p ()
11375{
11376
11377  case $as_dir in #(
11378  -*) as_dir=./$as_dir;;
11379  esac
11380  test -d "$as_dir" || eval $as_mkdir_p || {
11381    as_dirs=
11382    while :; do
11383      case $as_dir in #(
11384      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11385      *) as_qdir=$as_dir;;
11386      esac
11387      as_dirs="'$as_qdir' $as_dirs"
11388      as_dir=`$as_dirname -- "$as_dir" ||
11389$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11390	 X"$as_dir" : 'X\(//\)[^/]' \| \
11391	 X"$as_dir" : 'X\(//\)$' \| \
11392	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11393$as_echo X"$as_dir" |
11394    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11395	    s//\1/
11396	    q
11397	  }
11398	  /^X\(\/\/\)[^/].*/{
11399	    s//\1/
11400	    q
11401	  }
11402	  /^X\(\/\/\)$/{
11403	    s//\1/
11404	    q
11405	  }
11406	  /^X\(\/\).*/{
11407	    s//\1/
11408	    q
11409	  }
11410	  s/.*/./; q'`
11411      test -d "$as_dir" && break
11412    done
11413    test -z "$as_dirs" || eval "mkdir $as_dirs"
11414  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11415
11416
11417} # as_fn_mkdir_p
11418if mkdir -p . 2>/dev/null; then
11419  as_mkdir_p='mkdir -p "$as_dir"'
11420else
11421  test -d ./-p && rmdir ./-p
11422  as_mkdir_p=false
11423fi
11424
11425
11426# as_fn_executable_p FILE
11427# -----------------------
11428# Test if FILE is an executable regular file.
11429as_fn_executable_p ()
11430{
11431  test -f "$1" && test -x "$1"
11432} # as_fn_executable_p
11433as_test_x='test -x'
11434as_executable_p=as_fn_executable_p
11435
11436# Sed expression to map a string onto a valid CPP name.
11437as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11438
11439# Sed expression to map a string onto a valid variable name.
11440as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11441
11442
11443exec 6>&1
11444## ----------------------------------- ##
11445## Main body of $CONFIG_STATUS script. ##
11446## ----------------------------------- ##
11447_ASEOF
11448test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11449
11450cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11451# Save the log message, to keep $0 and so on meaningful, and to
11452# report actual input values of CONFIG_FILES etc. instead of their
11453# values after options handling.
11454ac_log="
11455This file was extended by xprop $as_me 1.2.4, which was
11456generated by GNU Autoconf 2.69.  Invocation command line was
11457
11458  CONFIG_FILES    = $CONFIG_FILES
11459  CONFIG_HEADERS  = $CONFIG_HEADERS
11460  CONFIG_LINKS    = $CONFIG_LINKS
11461  CONFIG_COMMANDS = $CONFIG_COMMANDS
11462  $ $0 $@
11463
11464on `(hostname || uname -n) 2>/dev/null | sed 1q`
11465"
11466
11467_ACEOF
11468
11469case $ac_config_files in *"
11470"*) set x $ac_config_files; shift; ac_config_files=$*;;
11471esac
11472
11473case $ac_config_headers in *"
11474"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11475esac
11476
11477
11478cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11479# Files that config.status was made for.
11480config_files="$ac_config_files"
11481config_headers="$ac_config_headers"
11482config_commands="$ac_config_commands"
11483
11484_ACEOF
11485
11486cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11487ac_cs_usage="\
11488\`$as_me' instantiates files and other configuration actions
11489from templates according to the current configuration.  Unless the files
11490and actions are specified as TAGs, all are instantiated by default.
11491
11492Usage: $0 [OPTION]... [TAG]...
11493
11494  -h, --help       print this help, then exit
11495  -V, --version    print version number and configuration settings, then exit
11496      --config     print configuration, then exit
11497  -q, --quiet, --silent
11498                   do not print progress messages
11499  -d, --debug      don't remove temporary files
11500      --recheck    update $as_me by reconfiguring in the same conditions
11501      --file=FILE[:TEMPLATE]
11502                   instantiate the configuration file FILE
11503      --header=FILE[:TEMPLATE]
11504                   instantiate the configuration header FILE
11505
11506Configuration files:
11507$config_files
11508
11509Configuration headers:
11510$config_headers
11511
11512Configuration commands:
11513$config_commands
11514
11515Report bugs to <https://gitlab.freedesktop.org/xorg/app/xprop/issues>."
11516
11517_ACEOF
11518cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11519ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11520ac_cs_version="\\
11521xprop config.status 1.2.4
11522configured by $0, generated by GNU Autoconf 2.69,
11523  with options \\"\$ac_cs_config\\"
11524
11525Copyright (C) 2012 Free Software Foundation, Inc.
11526This config.status script is free software; the Free Software Foundation
11527gives unlimited permission to copy, distribute and modify it."
11528
11529ac_pwd='$ac_pwd'
11530srcdir='$srcdir'
11531INSTALL='$INSTALL'
11532MKDIR_P='$MKDIR_P'
11533AWK='$AWK'
11534test -n "\$AWK" || AWK=awk
11535_ACEOF
11536
11537cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11538# The default lists apply if the user does not specify any file.
11539ac_need_defaults=:
11540while test $# != 0
11541do
11542  case $1 in
11543  --*=?*)
11544    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11545    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11546    ac_shift=:
11547    ;;
11548  --*=)
11549    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11550    ac_optarg=
11551    ac_shift=:
11552    ;;
11553  *)
11554    ac_option=$1
11555    ac_optarg=$2
11556    ac_shift=shift
11557    ;;
11558  esac
11559
11560  case $ac_option in
11561  # Handling of the options.
11562  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11563    ac_cs_recheck=: ;;
11564  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11565    $as_echo "$ac_cs_version"; exit ;;
11566  --config | --confi | --conf | --con | --co | --c )
11567    $as_echo "$ac_cs_config"; exit ;;
11568  --debug | --debu | --deb | --de | --d | -d )
11569    debug=: ;;
11570  --file | --fil | --fi | --f )
11571    $ac_shift
11572    case $ac_optarg in
11573    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11574    '') as_fn_error $? "missing file argument" ;;
11575    esac
11576    as_fn_append CONFIG_FILES " '$ac_optarg'"
11577    ac_need_defaults=false;;
11578  --header | --heade | --head | --hea )
11579    $ac_shift
11580    case $ac_optarg in
11581    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11582    esac
11583    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11584    ac_need_defaults=false;;
11585  --he | --h)
11586    # Conflict between --help and --header
11587    as_fn_error $? "ambiguous option: \`$1'
11588Try \`$0 --help' for more information.";;
11589  --help | --hel | -h )
11590    $as_echo "$ac_cs_usage"; exit ;;
11591  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11592  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11593    ac_cs_silent=: ;;
11594
11595  # This is an error.
11596  -*) as_fn_error $? "unrecognized option: \`$1'
11597Try \`$0 --help' for more information." ;;
11598
11599  *) as_fn_append ac_config_targets " $1"
11600     ac_need_defaults=false ;;
11601
11602  esac
11603  shift
11604done
11605
11606ac_configure_extra_args=
11607
11608if $ac_cs_silent; then
11609  exec 6>/dev/null
11610  ac_configure_extra_args="$ac_configure_extra_args --silent"
11611fi
11612
11613_ACEOF
11614cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11615if \$ac_cs_recheck; then
11616  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11617  shift
11618  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11619  CONFIG_SHELL='$SHELL'
11620  export CONFIG_SHELL
11621  exec "\$@"
11622fi
11623
11624_ACEOF
11625cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11626exec 5>>config.log
11627{
11628  echo
11629  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11630## Running $as_me. ##
11631_ASBOX
11632  $as_echo "$ac_log"
11633} >&5
11634
11635_ACEOF
11636cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11637#
11638# INIT-COMMANDS
11639#
11640AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11641
11642_ACEOF
11643
11644cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11645
11646# Handling of arguments.
11647for ac_config_target in $ac_config_targets
11648do
11649  case $ac_config_target in
11650    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11651    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11652    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11653    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11654
11655  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11656  esac
11657done
11658
11659
11660# If the user did not use the arguments to specify the items to instantiate,
11661# then the envvar interface is used.  Set only those that are not.
11662# We use the long form for the default assignment because of an extremely
11663# bizarre bug on SunOS 4.1.3.
11664if $ac_need_defaults; then
11665  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11666  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11667  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11668fi
11669
11670# Have a temporary directory for convenience.  Make it in the build tree
11671# simply because there is no reason against having it here, and in addition,
11672# creating and moving files from /tmp can sometimes cause problems.
11673# Hook for its removal unless debugging.
11674# Note that there is a small window in which the directory will not be cleaned:
11675# after its creation but before its name has been assigned to `$tmp'.
11676$debug ||
11677{
11678  tmp= ac_tmp=
11679  trap 'exit_status=$?
11680  : "${ac_tmp:=$tmp}"
11681  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11682' 0
11683  trap 'as_fn_exit 1' 1 2 13 15
11684}
11685# Create a (secure) tmp directory for tmp files.
11686
11687{
11688  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11689  test -d "$tmp"
11690}  ||
11691{
11692  tmp=./conf$$-$RANDOM
11693  (umask 077 && mkdir "$tmp")
11694} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11695ac_tmp=$tmp
11696
11697# Set up the scripts for CONFIG_FILES section.
11698# No need to generate them if there are no CONFIG_FILES.
11699# This happens for instance with `./config.status config.h'.
11700if test -n "$CONFIG_FILES"; then
11701
11702
11703ac_cr=`echo X | tr X '\015'`
11704# On cygwin, bash can eat \r inside `` if the user requested igncr.
11705# But we know of no other shell where ac_cr would be empty at this
11706# point, so we can use a bashism as a fallback.
11707if test "x$ac_cr" = x; then
11708  eval ac_cr=\$\'\\r\'
11709fi
11710ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11711if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11712  ac_cs_awk_cr='\\r'
11713else
11714  ac_cs_awk_cr=$ac_cr
11715fi
11716
11717echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11718_ACEOF
11719
11720
11721{
11722  echo "cat >conf$$subs.awk <<_ACEOF" &&
11723  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11724  echo "_ACEOF"
11725} >conf$$subs.sh ||
11726  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11727ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11728ac_delim='%!_!# '
11729for ac_last_try in false false false false false :; do
11730  . ./conf$$subs.sh ||
11731    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11732
11733  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11734  if test $ac_delim_n = $ac_delim_num; then
11735    break
11736  elif $ac_last_try; then
11737    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11738  else
11739    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11740  fi
11741done
11742rm -f conf$$subs.sh
11743
11744cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11745cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11746_ACEOF
11747sed -n '
11748h
11749s/^/S["/; s/!.*/"]=/
11750p
11751g
11752s/^[^!]*!//
11753:repl
11754t repl
11755s/'"$ac_delim"'$//
11756t delim
11757:nl
11758h
11759s/\(.\{148\}\)..*/\1/
11760t more1
11761s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11762p
11763n
11764b repl
11765:more1
11766s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11767p
11768g
11769s/.\{148\}//
11770t nl
11771:delim
11772h
11773s/\(.\{148\}\)..*/\1/
11774t more2
11775s/["\\]/\\&/g; s/^/"/; s/$/"/
11776p
11777b
11778:more2
11779s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11780p
11781g
11782s/.\{148\}//
11783t delim
11784' <conf$$subs.awk | sed '
11785/^[^""]/{
11786  N
11787  s/\n//
11788}
11789' >>$CONFIG_STATUS || ac_write_fail=1
11790rm -f conf$$subs.awk
11791cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11792_ACAWK
11793cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11794  for (key in S) S_is_set[key] = 1
11795  FS = ""
11796
11797}
11798{
11799  line = $ 0
11800  nfields = split(line, field, "@")
11801  substed = 0
11802  len = length(field[1])
11803  for (i = 2; i < nfields; i++) {
11804    key = field[i]
11805    keylen = length(key)
11806    if (S_is_set[key]) {
11807      value = S[key]
11808      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11809      len += length(value) + length(field[++i])
11810      substed = 1
11811    } else
11812      len += 1 + keylen
11813  }
11814
11815  print line
11816}
11817
11818_ACAWK
11819_ACEOF
11820cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11821if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11822  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11823else
11824  cat
11825fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11826  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11827_ACEOF
11828
11829# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11830# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11831# trailing colons and then remove the whole line if VPATH becomes empty
11832# (actually we leave an empty line to preserve line numbers).
11833if test "x$srcdir" = x.; then
11834  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11835h
11836s///
11837s/^/:/
11838s/[	 ]*$/:/
11839s/:\$(srcdir):/:/g
11840s/:\${srcdir}:/:/g
11841s/:@srcdir@:/:/g
11842s/^:*//
11843s/:*$//
11844x
11845s/\(=[	 ]*\).*/\1/
11846G
11847s/\n//
11848s/^[^=]*=[	 ]*$//
11849}'
11850fi
11851
11852cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11853fi # test -n "$CONFIG_FILES"
11854
11855# Set up the scripts for CONFIG_HEADERS section.
11856# No need to generate them if there are no CONFIG_HEADERS.
11857# This happens for instance with `./config.status Makefile'.
11858if test -n "$CONFIG_HEADERS"; then
11859cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11860BEGIN {
11861_ACEOF
11862
11863# Transform confdefs.h into an awk script `defines.awk', embedded as
11864# here-document in config.status, that substitutes the proper values into
11865# config.h.in to produce config.h.
11866
11867# Create a delimiter string that does not exist in confdefs.h, to ease
11868# handling of long lines.
11869ac_delim='%!_!# '
11870for ac_last_try in false false :; do
11871  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11872  if test -z "$ac_tt"; then
11873    break
11874  elif $ac_last_try; then
11875    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11876  else
11877    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11878  fi
11879done
11880
11881# For the awk script, D is an array of macro values keyed by name,
11882# likewise P contains macro parameters if any.  Preserve backslash
11883# newline sequences.
11884
11885ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11886sed -n '
11887s/.\{148\}/&'"$ac_delim"'/g
11888t rset
11889:rset
11890s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
11891t def
11892d
11893:def
11894s/\\$//
11895t bsnl
11896s/["\\]/\\&/g
11897s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11898D["\1"]=" \3"/p
11899s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
11900d
11901:bsnl
11902s/["\\]/\\&/g
11903s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11904D["\1"]=" \3\\\\\\n"\\/p
11905t cont
11906s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11907t cont
11908d
11909:cont
11910n
11911s/.\{148\}/&'"$ac_delim"'/g
11912t clear
11913:clear
11914s/\\$//
11915t bsnlc
11916s/["\\]/\\&/g; s/^/"/; s/$/"/p
11917d
11918:bsnlc
11919s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11920b cont
11921' <confdefs.h | sed '
11922s/'"$ac_delim"'/"\\\
11923"/g' >>$CONFIG_STATUS || ac_write_fail=1
11924
11925cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11926  for (key in D) D_is_set[key] = 1
11927  FS = ""
11928}
11929/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11930  line = \$ 0
11931  split(line, arg, " ")
11932  if (arg[1] == "#") {
11933    defundef = arg[2]
11934    mac1 = arg[3]
11935  } else {
11936    defundef = substr(arg[1], 2)
11937    mac1 = arg[2]
11938  }
11939  split(mac1, mac2, "(") #)
11940  macro = mac2[1]
11941  prefix = substr(line, 1, index(line, defundef) - 1)
11942  if (D_is_set[macro]) {
11943    # Preserve the white space surrounding the "#".
11944    print prefix "define", macro P[macro] D[macro]
11945    next
11946  } else {
11947    # Replace #undef with comments.  This is necessary, for example,
11948    # in the case of _POSIX_SOURCE, which is predefined and required
11949    # on some systems where configure will not decide to define it.
11950    if (defundef == "undef") {
11951      print "/*", prefix defundef, macro, "*/"
11952      next
11953    }
11954  }
11955}
11956{ print }
11957_ACAWK
11958_ACEOF
11959cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11960  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11961fi # test -n "$CONFIG_HEADERS"
11962
11963
11964eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
11965shift
11966for ac_tag
11967do
11968  case $ac_tag in
11969  :[FHLC]) ac_mode=$ac_tag; continue;;
11970  esac
11971  case $ac_mode$ac_tag in
11972  :[FHL]*:*);;
11973  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11974  :[FH]-) ac_tag=-:-;;
11975  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11976  esac
11977  ac_save_IFS=$IFS
11978  IFS=:
11979  set x $ac_tag
11980  IFS=$ac_save_IFS
11981  shift
11982  ac_file=$1
11983  shift
11984
11985  case $ac_mode in
11986  :L) ac_source=$1;;
11987  :[FH])
11988    ac_file_inputs=
11989    for ac_f
11990    do
11991      case $ac_f in
11992      -) ac_f="$ac_tmp/stdin";;
11993      *) # Look for the file first in the build tree, then in the source tree
11994	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11995	 # because $ac_f cannot contain `:'.
11996	 test -f "$ac_f" ||
11997	   case $ac_f in
11998	   [\\/$]*) false;;
11999	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12000	   esac ||
12001	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12002      esac
12003      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12004      as_fn_append ac_file_inputs " '$ac_f'"
12005    done
12006
12007    # Let's still pretend it is `configure' which instantiates (i.e., don't
12008    # use $as_me), people would be surprised to read:
12009    #    /* config.h.  Generated by config.status.  */
12010    configure_input='Generated from '`
12011	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12012	`' by configure.'
12013    if test x"$ac_file" != x-; then
12014      configure_input="$ac_file.  $configure_input"
12015      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12016$as_echo "$as_me: creating $ac_file" >&6;}
12017    fi
12018    # Neutralize special characters interpreted by sed in replacement strings.
12019    case $configure_input in #(
12020    *\&* | *\|* | *\\* )
12021       ac_sed_conf_input=`$as_echo "$configure_input" |
12022       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12023    *) ac_sed_conf_input=$configure_input;;
12024    esac
12025
12026    case $ac_tag in
12027    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12028      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12029    esac
12030    ;;
12031  esac
12032
12033  ac_dir=`$as_dirname -- "$ac_file" ||
12034$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12035	 X"$ac_file" : 'X\(//\)[^/]' \| \
12036	 X"$ac_file" : 'X\(//\)$' \| \
12037	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12038$as_echo X"$ac_file" |
12039    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12040	    s//\1/
12041	    q
12042	  }
12043	  /^X\(\/\/\)[^/].*/{
12044	    s//\1/
12045	    q
12046	  }
12047	  /^X\(\/\/\)$/{
12048	    s//\1/
12049	    q
12050	  }
12051	  /^X\(\/\).*/{
12052	    s//\1/
12053	    q
12054	  }
12055	  s/.*/./; q'`
12056  as_dir="$ac_dir"; as_fn_mkdir_p
12057  ac_builddir=.
12058
12059case "$ac_dir" in
12060.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12061*)
12062  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12063  # A ".." for each directory in $ac_dir_suffix.
12064  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12065  case $ac_top_builddir_sub in
12066  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12067  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12068  esac ;;
12069esac
12070ac_abs_top_builddir=$ac_pwd
12071ac_abs_builddir=$ac_pwd$ac_dir_suffix
12072# for backward compatibility:
12073ac_top_builddir=$ac_top_build_prefix
12074
12075case $srcdir in
12076  .)  # We are building in place.
12077    ac_srcdir=.
12078    ac_top_srcdir=$ac_top_builddir_sub
12079    ac_abs_top_srcdir=$ac_pwd ;;
12080  [\\/]* | ?:[\\/]* )  # Absolute name.
12081    ac_srcdir=$srcdir$ac_dir_suffix;
12082    ac_top_srcdir=$srcdir
12083    ac_abs_top_srcdir=$srcdir ;;
12084  *) # Relative name.
12085    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12086    ac_top_srcdir=$ac_top_build_prefix$srcdir
12087    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12088esac
12089ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12090
12091
12092  case $ac_mode in
12093  :F)
12094  #
12095  # CONFIG_FILE
12096  #
12097
12098  case $INSTALL in
12099  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12100  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12101  esac
12102  ac_MKDIR_P=$MKDIR_P
12103  case $MKDIR_P in
12104  [\\/$]* | ?:[\\/]* ) ;;
12105  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12106  esac
12107_ACEOF
12108
12109cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12110# If the template does not know about datarootdir, expand it.
12111# FIXME: This hack should be removed a few years after 2.60.
12112ac_datarootdir_hack=; ac_datarootdir_seen=
12113ac_sed_dataroot='
12114/datarootdir/ {
12115  p
12116  q
12117}
12118/@datadir@/p
12119/@docdir@/p
12120/@infodir@/p
12121/@localedir@/p
12122/@mandir@/p'
12123case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12124*datarootdir*) ac_datarootdir_seen=yes;;
12125*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12126  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12127$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12128_ACEOF
12129cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12130  ac_datarootdir_hack='
12131  s&@datadir@&$datadir&g
12132  s&@docdir@&$docdir&g
12133  s&@infodir@&$infodir&g
12134  s&@localedir@&$localedir&g
12135  s&@mandir@&$mandir&g
12136  s&\\\${datarootdir}&$datarootdir&g' ;;
12137esac
12138_ACEOF
12139
12140# Neutralize VPATH when `$srcdir' = `.'.
12141# Shell code in configure.ac might set extrasub.
12142# FIXME: do we really want to maintain this feature?
12143cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12144ac_sed_extra="$ac_vpsub
12145$extrasub
12146_ACEOF
12147cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12148:t
12149/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12150s|@configure_input@|$ac_sed_conf_input|;t t
12151s&@top_builddir@&$ac_top_builddir_sub&;t t
12152s&@top_build_prefix@&$ac_top_build_prefix&;t t
12153s&@srcdir@&$ac_srcdir&;t t
12154s&@abs_srcdir@&$ac_abs_srcdir&;t t
12155s&@top_srcdir@&$ac_top_srcdir&;t t
12156s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12157s&@builddir@&$ac_builddir&;t t
12158s&@abs_builddir@&$ac_abs_builddir&;t t
12159s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12160s&@INSTALL@&$ac_INSTALL&;t t
12161s&@MKDIR_P@&$ac_MKDIR_P&;t t
12162$ac_datarootdir_hack
12163"
12164eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12165  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12166
12167test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12168  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12169  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12170      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12171  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12172which seems to be undefined.  Please make sure it is defined" >&5
12173$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12174which seems to be undefined.  Please make sure it is defined" >&2;}
12175
12176  rm -f "$ac_tmp/stdin"
12177  case $ac_file in
12178  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12179  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12180  esac \
12181  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12182 ;;
12183  :H)
12184  #
12185  # CONFIG_HEADER
12186  #
12187  if test x"$ac_file" != x-; then
12188    {
12189      $as_echo "/* $configure_input  */" \
12190      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12191    } >"$ac_tmp/config.h" \
12192      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12193    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12194      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12195$as_echo "$as_me: $ac_file is unchanged" >&6;}
12196    else
12197      rm -f "$ac_file"
12198      mv "$ac_tmp/config.h" "$ac_file" \
12199	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12200    fi
12201  else
12202    $as_echo "/* $configure_input  */" \
12203      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12204      || as_fn_error $? "could not create -" "$LINENO" 5
12205  fi
12206# Compute "$ac_file"'s index in $config_headers.
12207_am_arg="$ac_file"
12208_am_stamp_count=1
12209for _am_header in $config_headers :; do
12210  case $_am_header in
12211    $_am_arg | $_am_arg:* )
12212      break ;;
12213    * )
12214      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12215  esac
12216done
12217echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12218$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12219	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12220	 X"$_am_arg" : 'X\(//\)$' \| \
12221	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12222$as_echo X"$_am_arg" |
12223    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12224	    s//\1/
12225	    q
12226	  }
12227	  /^X\(\/\/\)[^/].*/{
12228	    s//\1/
12229	    q
12230	  }
12231	  /^X\(\/\/\)$/{
12232	    s//\1/
12233	    q
12234	  }
12235	  /^X\(\/\).*/{
12236	    s//\1/
12237	    q
12238	  }
12239	  s/.*/./; q'`/stamp-h$_am_stamp_count
12240 ;;
12241
12242  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12243$as_echo "$as_me: executing $ac_file commands" >&6;}
12244 ;;
12245  esac
12246
12247
12248  case $ac_file$ac_mode in
12249    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12250  # Older Autoconf quotes --file arguments for eval, but not when files
12251  # are listed without --file.  Let's play safe and only enable the eval
12252  # if we detect the quoting.
12253  case $CONFIG_FILES in
12254  *\'*) eval set x "$CONFIG_FILES" ;;
12255  *)   set x $CONFIG_FILES ;;
12256  esac
12257  shift
12258  for mf
12259  do
12260    # Strip MF so we end up with the name of the file.
12261    mf=`echo "$mf" | sed -e 's/:.*$//'`
12262    # Check whether this is an Automake generated Makefile or not.
12263    # We used to match only the files named 'Makefile.in', but
12264    # some people rename them; so instead we look at the file content.
12265    # Grep'ing the first line is not enough: some people post-process
12266    # each Makefile.in and add a new line on top of each file to say so.
12267    # Grep'ing the whole file is not good either: AIX grep has a line
12268    # limit of 2048, but all sed's we know have understand at least 4000.
12269    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12270      dirpart=`$as_dirname -- "$mf" ||
12271$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12272	 X"$mf" : 'X\(//\)[^/]' \| \
12273	 X"$mf" : 'X\(//\)$' \| \
12274	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12275$as_echo X"$mf" |
12276    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12277	    s//\1/
12278	    q
12279	  }
12280	  /^X\(\/\/\)[^/].*/{
12281	    s//\1/
12282	    q
12283	  }
12284	  /^X\(\/\/\)$/{
12285	    s//\1/
12286	    q
12287	  }
12288	  /^X\(\/\).*/{
12289	    s//\1/
12290	    q
12291	  }
12292	  s/.*/./; q'`
12293    else
12294      continue
12295    fi
12296    # Extract the definition of DEPDIR, am__include, and am__quote
12297    # from the Makefile without running 'make'.
12298    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12299    test -z "$DEPDIR" && continue
12300    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12301    test -z "$am__include" && continue
12302    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12303    # Find all dependency output files, they are included files with
12304    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12305    # simplest approach to changing $(DEPDIR) to its actual value in the
12306    # expansion.
12307    for file in `sed -n "
12308      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12309	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12310      # Make sure the directory exists.
12311      test -f "$dirpart/$file" && continue
12312      fdir=`$as_dirname -- "$file" ||
12313$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12314	 X"$file" : 'X\(//\)[^/]' \| \
12315	 X"$file" : 'X\(//\)$' \| \
12316	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12317$as_echo X"$file" |
12318    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12319	    s//\1/
12320	    q
12321	  }
12322	  /^X\(\/\/\)[^/].*/{
12323	    s//\1/
12324	    q
12325	  }
12326	  /^X\(\/\/\)$/{
12327	    s//\1/
12328	    q
12329	  }
12330	  /^X\(\/\).*/{
12331	    s//\1/
12332	    q
12333	  }
12334	  s/.*/./; q'`
12335      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12336      # echo "creating $dirpart/$file"
12337      echo '# dummy' > "$dirpart/$file"
12338    done
12339  done
12340}
12341 ;;
12342
12343  esac
12344done # for ac_tag
12345
12346
12347as_fn_exit 0
12348_ACEOF
12349ac_clean_files=$ac_clean_files_save
12350
12351test $ac_write_fail = 0 ||
12352  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12353
12354
12355# configure is writing to config.log, and then calls config.status.
12356# config.status does its own redirection, appending to config.log.
12357# Unfortunately, on DOS this fails, as config.log is still kept open
12358# by configure, so config.status won't be able to write to it; its
12359# output is simply discarded.  So we exec the FD to /dev/null,
12360# effectively closing config.log, so it can be properly (re)opened and
12361# appended to by config.status.  When coming back to configure, we
12362# need to make the FD available again.
12363if test "$no_create" != yes; then
12364  ac_cs_success=:
12365  ac_config_status_args=
12366  test "$silent" = yes &&
12367    ac_config_status_args="$ac_config_status_args --quiet"
12368  exec 5>/dev/null
12369  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12370  exec 5>>config.log
12371  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12372  # would make configure fail if this is the last instruction.
12373  $ac_cs_success || as_fn_exit 1
12374fi
12375if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12376  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12377$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12378fi
12379
12380