1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xkbprint 1.0.5.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbprint/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/xkbprint/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='xkbprint'
583PACKAGE_TARNAME='xkbprint'
584PACKAGE_VERSION='1.0.5'
585PACKAGE_STRING='xkbprint 1.0.5'
586PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xkbprint/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
630XKBPRINT_LIBS
631XKBPRINT_CFLAGS
632MAN_SUBSTS
633XORG_MAN_PAGE
634ADMIN_MAN_DIR
635DRIVER_MAN_DIR
636MISC_MAN_DIR
637FILE_MAN_DIR
638LIB_MAN_DIR
639APP_MAN_DIR
640ADMIN_MAN_SUFFIX
641DRIVER_MAN_SUFFIX
642MISC_MAN_SUFFIX
643FILE_MAN_SUFFIX
644LIB_MAN_SUFFIX
645APP_MAN_SUFFIX
646SED
647host_os
648host_vendor
649host_cpu
650host
651build_os
652build_vendor
653build_cpu
654build
655INSTALL_CMD
656PKG_CONFIG_LIBDIR
657PKG_CONFIG_PATH
658PKG_CONFIG
659CHANGELOG_CMD
660STRICT_CFLAGS
661CWARNFLAGS
662BASE_CFLAGS
663AM_BACKSLASH
664AM_DEFAULT_VERBOSITY
665AM_DEFAULT_V
666AM_V
667am__fastdepCC_FALSE
668am__fastdepCC_TRUE
669CCDEPMODE
670am__nodep
671AMDEPBACKSLASH
672AMDEP_FALSE
673AMDEP_TRUE
674am__include
675DEPDIR
676am__untar
677am__tar
678AMTAR
679am__leading_dot
680SET_MAKE
681AWK
682mkdir_p
683MKDIR_P
684INSTALL_STRIP_PROGRAM
685STRIP
686install_sh
687MAKEINFO
688AUTOHEADER
689AUTOMAKE
690AUTOCONF
691ACLOCAL
692VERSION
693PACKAGE
694CYGPATH_W
695am__isrc
696INSTALL_DATA
697INSTALL_SCRIPT
698INSTALL_PROGRAM
699EGREP
700GREP
701CPP
702OBJEXT
703EXEEXT
704ac_ct_CC
705CPPFLAGS
706LDFLAGS
707CFLAGS
708CC
709target_alias
710host_alias
711build_alias
712LIBS
713ECHO_T
714ECHO_N
715ECHO_C
716DEFS
717mandir
718localedir
719libdir
720psdir
721pdfdir
722dvidir
723htmldir
724infodir
725docdir
726oldincludedir
727includedir
728localstatedir
729sharedstatedir
730sysconfdir
731datadir
732datarootdir
733libexecdir
734sbindir
735bindir
736program_transform_name
737prefix
738exec_prefix
739PACKAGE_URL
740PACKAGE_BUGREPORT
741PACKAGE_STRING
742PACKAGE_VERSION
743PACKAGE_TARNAME
744PACKAGE_NAME
745PATH_SEPARATOR
746SHELL
747am__quote'
748ac_subst_files=''
749ac_user_opts='
750enable_option_checking
751enable_dependency_tracking
752enable_silent_rules
753enable_selective_werror
754enable_strict_compilation
755'
756      ac_precious_vars='build_alias
757host_alias
758target_alias
759CC
760CFLAGS
761LDFLAGS
762LIBS
763CPPFLAGS
764CPP
765PKG_CONFIG
766PKG_CONFIG_PATH
767PKG_CONFIG_LIBDIR
768XKBPRINT_CFLAGS
769XKBPRINT_LIBS'
770
771
772# Initialize some variables set by options.
773ac_init_help=
774ac_init_version=false
775ac_unrecognized_opts=
776ac_unrecognized_sep=
777# The variables have the same names as the options, with
778# dashes changed to underlines.
779cache_file=/dev/null
780exec_prefix=NONE
781no_create=
782no_recursion=
783prefix=NONE
784program_prefix=NONE
785program_suffix=NONE
786program_transform_name=s,x,x,
787silent=
788site=
789srcdir=
790verbose=
791x_includes=NONE
792x_libraries=NONE
793
794# Installation directory options.
795# These are left unexpanded so users can "make install exec_prefix=/foo"
796# and all the variables that are supposed to be based on exec_prefix
797# by default will actually change.
798# Use braces instead of parens because sh, perl, etc. also accept them.
799# (The list follows the same order as the GNU Coding Standards.)
800bindir='${exec_prefix}/bin'
801sbindir='${exec_prefix}/sbin'
802libexecdir='${exec_prefix}/libexec'
803datarootdir='${prefix}/share'
804datadir='${datarootdir}'
805sysconfdir='${prefix}/etc'
806sharedstatedir='${prefix}/com'
807localstatedir='${prefix}/var'
808includedir='${prefix}/include'
809oldincludedir='/usr/include'
810docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
811infodir='${datarootdir}/info'
812htmldir='${docdir}'
813dvidir='${docdir}'
814pdfdir='${docdir}'
815psdir='${docdir}'
816libdir='${exec_prefix}/lib'
817localedir='${datarootdir}/locale'
818mandir='${datarootdir}/man'
819
820ac_prev=
821ac_dashdash=
822for ac_option
823do
824  # If the previous option needs an argument, assign it.
825  if test -n "$ac_prev"; then
826    eval $ac_prev=\$ac_option
827    ac_prev=
828    continue
829  fi
830
831  case $ac_option in
832  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
833  *=)   ac_optarg= ;;
834  *)    ac_optarg=yes ;;
835  esac
836
837  # Accept the important Cygnus configure options, so we can diagnose typos.
838
839  case $ac_dashdash$ac_option in
840  --)
841    ac_dashdash=yes ;;
842
843  -bindir | --bindir | --bindi | --bind | --bin | --bi)
844    ac_prev=bindir ;;
845  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
846    bindir=$ac_optarg ;;
847
848  -build | --build | --buil | --bui | --bu)
849    ac_prev=build_alias ;;
850  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
851    build_alias=$ac_optarg ;;
852
853  -cache-file | --cache-file | --cache-fil | --cache-fi \
854  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
855    ac_prev=cache_file ;;
856  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
857  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
858    cache_file=$ac_optarg ;;
859
860  --config-cache | -C)
861    cache_file=config.cache ;;
862
863  -datadir | --datadir | --datadi | --datad)
864    ac_prev=datadir ;;
865  -datadir=* | --datadir=* | --datadi=* | --datad=*)
866    datadir=$ac_optarg ;;
867
868  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
869  | --dataroo | --dataro | --datar)
870    ac_prev=datarootdir ;;
871  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
872  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
873    datarootdir=$ac_optarg ;;
874
875  -disable-* | --disable-*)
876    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
877    # Reject names that are not valid shell variable names.
878    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
879      as_fn_error $? "invalid feature name: $ac_useropt"
880    ac_useropt_orig=$ac_useropt
881    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
882    case $ac_user_opts in
883      *"
884"enable_$ac_useropt"
885"*) ;;
886      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
887	 ac_unrecognized_sep=', ';;
888    esac
889    eval enable_$ac_useropt=no ;;
890
891  -docdir | --docdir | --docdi | --doc | --do)
892    ac_prev=docdir ;;
893  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
894    docdir=$ac_optarg ;;
895
896  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
897    ac_prev=dvidir ;;
898  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
899    dvidir=$ac_optarg ;;
900
901  -enable-* | --enable-*)
902    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
903    # Reject names that are not valid shell variable names.
904    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905      as_fn_error $? "invalid feature name: $ac_useropt"
906    ac_useropt_orig=$ac_useropt
907    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908    case $ac_user_opts in
909      *"
910"enable_$ac_useropt"
911"*) ;;
912      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
913	 ac_unrecognized_sep=', ';;
914    esac
915    eval enable_$ac_useropt=\$ac_optarg ;;
916
917  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
918  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
919  | --exec | --exe | --ex)
920    ac_prev=exec_prefix ;;
921  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
922  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
923  | --exec=* | --exe=* | --ex=*)
924    exec_prefix=$ac_optarg ;;
925
926  -gas | --gas | --ga | --g)
927    # Obsolete; use --with-gas.
928    with_gas=yes ;;
929
930  -help | --help | --hel | --he | -h)
931    ac_init_help=long ;;
932  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
933    ac_init_help=recursive ;;
934  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
935    ac_init_help=short ;;
936
937  -host | --host | --hos | --ho)
938    ac_prev=host_alias ;;
939  -host=* | --host=* | --hos=* | --ho=*)
940    host_alias=$ac_optarg ;;
941
942  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
943    ac_prev=htmldir ;;
944  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
945  | --ht=*)
946    htmldir=$ac_optarg ;;
947
948  -includedir | --includedir | --includedi | --included | --include \
949  | --includ | --inclu | --incl | --inc)
950    ac_prev=includedir ;;
951  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
952  | --includ=* | --inclu=* | --incl=* | --inc=*)
953    includedir=$ac_optarg ;;
954
955  -infodir | --infodir | --infodi | --infod | --info | --inf)
956    ac_prev=infodir ;;
957  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
958    infodir=$ac_optarg ;;
959
960  -libdir | --libdir | --libdi | --libd)
961    ac_prev=libdir ;;
962  -libdir=* | --libdir=* | --libdi=* | --libd=*)
963    libdir=$ac_optarg ;;
964
965  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
966  | --libexe | --libex | --libe)
967    ac_prev=libexecdir ;;
968  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
969  | --libexe=* | --libex=* | --libe=*)
970    libexecdir=$ac_optarg ;;
971
972  -localedir | --localedir | --localedi | --localed | --locale)
973    ac_prev=localedir ;;
974  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
975    localedir=$ac_optarg ;;
976
977  -localstatedir | --localstatedir | --localstatedi | --localstated \
978  | --localstate | --localstat | --localsta | --localst | --locals)
979    ac_prev=localstatedir ;;
980  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
981  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
982    localstatedir=$ac_optarg ;;
983
984  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
985    ac_prev=mandir ;;
986  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
987    mandir=$ac_optarg ;;
988
989  -nfp | --nfp | --nf)
990    # Obsolete; use --without-fp.
991    with_fp=no ;;
992
993  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
994  | --no-cr | --no-c | -n)
995    no_create=yes ;;
996
997  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
998  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
999    no_recursion=yes ;;
1000
1001  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1002  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1003  | --oldin | --oldi | --old | --ol | --o)
1004    ac_prev=oldincludedir ;;
1005  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1006  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1007  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1008    oldincludedir=$ac_optarg ;;
1009
1010  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1011    ac_prev=prefix ;;
1012  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1013    prefix=$ac_optarg ;;
1014
1015  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1016  | --program-pre | --program-pr | --program-p)
1017    ac_prev=program_prefix ;;
1018  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1019  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1020    program_prefix=$ac_optarg ;;
1021
1022  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1023  | --program-suf | --program-su | --program-s)
1024    ac_prev=program_suffix ;;
1025  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1026  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1027    program_suffix=$ac_optarg ;;
1028
1029  -program-transform-name | --program-transform-name \
1030  | --program-transform-nam | --program-transform-na \
1031  | --program-transform-n | --program-transform- \
1032  | --program-transform | --program-transfor \
1033  | --program-transfo | --program-transf \
1034  | --program-trans | --program-tran \
1035  | --progr-tra | --program-tr | --program-t)
1036    ac_prev=program_transform_name ;;
1037  -program-transform-name=* | --program-transform-name=* \
1038  | --program-transform-nam=* | --program-transform-na=* \
1039  | --program-transform-n=* | --program-transform-=* \
1040  | --program-transform=* | --program-transfor=* \
1041  | --program-transfo=* | --program-transf=* \
1042  | --program-trans=* | --program-tran=* \
1043  | --progr-tra=* | --program-tr=* | --program-t=*)
1044    program_transform_name=$ac_optarg ;;
1045
1046  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1047    ac_prev=pdfdir ;;
1048  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1049    pdfdir=$ac_optarg ;;
1050
1051  -psdir | --psdir | --psdi | --psd | --ps)
1052    ac_prev=psdir ;;
1053  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1054    psdir=$ac_optarg ;;
1055
1056  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057  | -silent | --silent | --silen | --sile | --sil)
1058    silent=yes ;;
1059
1060  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1061    ac_prev=sbindir ;;
1062  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1063  | --sbi=* | --sb=*)
1064    sbindir=$ac_optarg ;;
1065
1066  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1067  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1068  | --sharedst | --shareds | --shared | --share | --shar \
1069  | --sha | --sh)
1070    ac_prev=sharedstatedir ;;
1071  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1072  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1073  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1074  | --sha=* | --sh=*)
1075    sharedstatedir=$ac_optarg ;;
1076
1077  -site | --site | --sit)
1078    ac_prev=site ;;
1079  -site=* | --site=* | --sit=*)
1080    site=$ac_optarg ;;
1081
1082  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1083    ac_prev=srcdir ;;
1084  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1085    srcdir=$ac_optarg ;;
1086
1087  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1088  | --syscon | --sysco | --sysc | --sys | --sy)
1089    ac_prev=sysconfdir ;;
1090  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1091  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1092    sysconfdir=$ac_optarg ;;
1093
1094  -target | --target | --targe | --targ | --tar | --ta | --t)
1095    ac_prev=target_alias ;;
1096  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1097    target_alias=$ac_optarg ;;
1098
1099  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1100    verbose=yes ;;
1101
1102  -version | --version | --versio | --versi | --vers | -V)
1103    ac_init_version=: ;;
1104
1105  -with-* | --with-*)
1106    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1107    # Reject names that are not valid shell variable names.
1108    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109      as_fn_error $? "invalid package name: $ac_useropt"
1110    ac_useropt_orig=$ac_useropt
1111    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112    case $ac_user_opts in
1113      *"
1114"with_$ac_useropt"
1115"*) ;;
1116      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1117	 ac_unrecognized_sep=', ';;
1118    esac
1119    eval with_$ac_useropt=\$ac_optarg ;;
1120
1121  -without-* | --without-*)
1122    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1123    # Reject names that are not valid shell variable names.
1124    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125      as_fn_error $? "invalid package name: $ac_useropt"
1126    ac_useropt_orig=$ac_useropt
1127    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128    case $ac_user_opts in
1129      *"
1130"with_$ac_useropt"
1131"*) ;;
1132      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1133	 ac_unrecognized_sep=', ';;
1134    esac
1135    eval with_$ac_useropt=no ;;
1136
1137  --x)
1138    # Obsolete; use --with-x.
1139    with_x=yes ;;
1140
1141  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1142  | --x-incl | --x-inc | --x-in | --x-i)
1143    ac_prev=x_includes ;;
1144  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1145  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1146    x_includes=$ac_optarg ;;
1147
1148  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1149  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1150    ac_prev=x_libraries ;;
1151  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1152  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1153    x_libraries=$ac_optarg ;;
1154
1155  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1156Try \`$0 --help' for more information"
1157    ;;
1158
1159  *=*)
1160    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1161    # Reject names that are not valid shell variable names.
1162    case $ac_envvar in #(
1163      '' | [0-9]* | *[!_$as_cr_alnum]* )
1164      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1165    esac
1166    eval $ac_envvar=\$ac_optarg
1167    export $ac_envvar ;;
1168
1169  *)
1170    # FIXME: should be removed in autoconf 3.0.
1171    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1172    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1173      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1174    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1175    ;;
1176
1177  esac
1178done
1179
1180if test -n "$ac_prev"; then
1181  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1182  as_fn_error $? "missing argument to $ac_option"
1183fi
1184
1185if test -n "$ac_unrecognized_opts"; then
1186  case $enable_option_checking in
1187    no) ;;
1188    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1189    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1190  esac
1191fi
1192
1193# Check all directory arguments for consistency.
1194for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1195		datadir sysconfdir sharedstatedir localstatedir includedir \
1196		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1197		libdir localedir mandir
1198do
1199  eval ac_val=\$$ac_var
1200  # Remove trailing slashes.
1201  case $ac_val in
1202    */ )
1203      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1204      eval $ac_var=\$ac_val;;
1205  esac
1206  # Be sure to have absolute directory names.
1207  case $ac_val in
1208    [\\/$]* | ?:[\\/]* )  continue;;
1209    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1210  esac
1211  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1212done
1213
1214# There might be people who depend on the old broken behavior: `$host'
1215# used to hold the argument of --host etc.
1216# FIXME: To remove some day.
1217build=$build_alias
1218host=$host_alias
1219target=$target_alias
1220
1221# FIXME: To remove some day.
1222if test "x$host_alias" != x; then
1223  if test "x$build_alias" = x; then
1224    cross_compiling=maybe
1225  elif test "x$build_alias" != "x$host_alias"; then
1226    cross_compiling=yes
1227  fi
1228fi
1229
1230ac_tool_prefix=
1231test -n "$host_alias" && ac_tool_prefix=$host_alias-
1232
1233test "$silent" = yes && exec 6>/dev/null
1234
1235
1236ac_pwd=`pwd` && test -n "$ac_pwd" &&
1237ac_ls_di=`ls -di .` &&
1238ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1239  as_fn_error $? "working directory cannot be determined"
1240test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1241  as_fn_error $? "pwd does not report name of working directory"
1242
1243
1244# Find the source files, if location was not specified.
1245if test -z "$srcdir"; then
1246  ac_srcdir_defaulted=yes
1247  # Try the directory containing this script, then the parent directory.
1248  ac_confdir=`$as_dirname -- "$as_myself" ||
1249$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1250	 X"$as_myself" : 'X\(//\)[^/]' \| \
1251	 X"$as_myself" : 'X\(//\)$' \| \
1252	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1253$as_echo X"$as_myself" |
1254    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1255	    s//\1/
1256	    q
1257	  }
1258	  /^X\(\/\/\)[^/].*/{
1259	    s//\1/
1260	    q
1261	  }
1262	  /^X\(\/\/\)$/{
1263	    s//\1/
1264	    q
1265	  }
1266	  /^X\(\/\).*/{
1267	    s//\1/
1268	    q
1269	  }
1270	  s/.*/./; q'`
1271  srcdir=$ac_confdir
1272  if test ! -r "$srcdir/$ac_unique_file"; then
1273    srcdir=..
1274  fi
1275else
1276  ac_srcdir_defaulted=no
1277fi
1278if test ! -r "$srcdir/$ac_unique_file"; then
1279  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1280  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1281fi
1282ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1283ac_abs_confdir=`(
1284	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1285	pwd)`
1286# When building in place, set srcdir=.
1287if test "$ac_abs_confdir" = "$ac_pwd"; then
1288  srcdir=.
1289fi
1290# Remove unnecessary trailing slashes from srcdir.
1291# Double slashes in file names in object file debugging info
1292# mess up M-x gdb in Emacs.
1293case $srcdir in
1294*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1295esac
1296for ac_var in $ac_precious_vars; do
1297  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1298  eval ac_env_${ac_var}_value=\$${ac_var}
1299  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1300  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1301done
1302
1303#
1304# Report the --help message.
1305#
1306if test "$ac_init_help" = "long"; then
1307  # Omit some internal or obsolete options to make the list less imposing.
1308  # This message is too long to be a string in the A/UX 3.1 sh.
1309  cat <<_ACEOF
1310\`configure' configures xkbprint 1.0.5 to adapt to many kinds of systems.
1311
1312Usage: $0 [OPTION]... [VAR=VALUE]...
1313
1314To assign environment variables (e.g., CC, CFLAGS...), specify them as
1315VAR=VALUE.  See below for descriptions of some of the useful variables.
1316
1317Defaults for the options are specified in brackets.
1318
1319Configuration:
1320  -h, --help              display this help and exit
1321      --help=short        display options specific to this package
1322      --help=recursive    display the short help of all the included packages
1323  -V, --version           display version information and exit
1324  -q, --quiet, --silent   do not print \`checking ...' messages
1325      --cache-file=FILE   cache test results in FILE [disabled]
1326  -C, --config-cache      alias for \`--cache-file=config.cache'
1327  -n, --no-create         do not create output files
1328      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1329
1330Installation directories:
1331  --prefix=PREFIX         install architecture-independent files in PREFIX
1332                          [$ac_default_prefix]
1333  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1334                          [PREFIX]
1335
1336By default, \`make install' will install all the files in
1337\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1338an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1339for instance \`--prefix=\$HOME'.
1340
1341For better control, use the options below.
1342
1343Fine tuning of the installation directories:
1344  --bindir=DIR            user executables [EPREFIX/bin]
1345  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1346  --libexecdir=DIR        program executables [EPREFIX/libexec]
1347  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1348  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1349  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1350  --libdir=DIR            object code libraries [EPREFIX/lib]
1351  --includedir=DIR        C header files [PREFIX/include]
1352  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1353  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1354  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1355  --infodir=DIR           info documentation [DATAROOTDIR/info]
1356  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1357  --mandir=DIR            man documentation [DATAROOTDIR/man]
1358  --docdir=DIR            documentation root [DATAROOTDIR/doc/xkbprint]
1359  --htmldir=DIR           html documentation [DOCDIR]
1360  --dvidir=DIR            dvi documentation [DOCDIR]
1361  --pdfdir=DIR            pdf documentation [DOCDIR]
1362  --psdir=DIR             ps documentation [DOCDIR]
1363_ACEOF
1364
1365  cat <<\_ACEOF
1366
1367Program names:
1368  --program-prefix=PREFIX            prepend PREFIX to installed program names
1369  --program-suffix=SUFFIX            append SUFFIX to installed program names
1370  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1371
1372System types:
1373  --build=BUILD     configure for building on BUILD [guessed]
1374  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1375_ACEOF
1376fi
1377
1378if test -n "$ac_init_help"; then
1379  case $ac_init_help in
1380     short | recursive ) echo "Configuration of xkbprint 1.0.5:";;
1381   esac
1382  cat <<\_ACEOF
1383
1384Optional Features:
1385  --disable-option-checking  ignore unrecognized --enable/--with options
1386  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1387  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1388  --enable-dependency-tracking
1389                          do not reject slow dependency extractors
1390  --disable-dependency-tracking
1391                          speeds up one-time build
1392  --enable-silent-rules   less verbose build output (undo: "make V=1")
1393  --disable-silent-rules  verbose build output (undo: "make V=0")
1394  --disable-selective-werror
1395                          Turn off selective compiler errors. (default:
1396                          enabled)
1397  --enable-strict-compilation
1398                          Enable all warnings from compiler and make them
1399                          errors (default: disabled)
1400
1401Some influential environment variables:
1402  CC          C compiler command
1403  CFLAGS      C compiler flags
1404  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1405              nonstandard directory <lib dir>
1406  LIBS        libraries to pass to the linker, e.g. -l<library>
1407  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1408              you have headers in a nonstandard directory <include dir>
1409  CPP         C preprocessor
1410  PKG_CONFIG  path to pkg-config utility
1411  PKG_CONFIG_PATH
1412              directories to add to pkg-config's search path
1413  PKG_CONFIG_LIBDIR
1414              path overriding pkg-config's built-in search path
1415  XKBPRINT_CFLAGS
1416              C compiler flags for XKBPRINT, overriding pkg-config
1417  XKBPRINT_LIBS
1418              linker flags for XKBPRINT, overriding pkg-config
1419
1420Use these variables to override the choices made by `configure' or to help
1421it to find libraries and programs with nonstandard names/locations.
1422
1423Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbprint/issues>.
1424_ACEOF
1425ac_status=$?
1426fi
1427
1428if test "$ac_init_help" = "recursive"; then
1429  # If there are subdirs, report their specific --help.
1430  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1431    test -d "$ac_dir" ||
1432      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1433      continue
1434    ac_builddir=.
1435
1436case "$ac_dir" in
1437.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1438*)
1439  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1440  # A ".." for each directory in $ac_dir_suffix.
1441  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1442  case $ac_top_builddir_sub in
1443  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1444  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1445  esac ;;
1446esac
1447ac_abs_top_builddir=$ac_pwd
1448ac_abs_builddir=$ac_pwd$ac_dir_suffix
1449# for backward compatibility:
1450ac_top_builddir=$ac_top_build_prefix
1451
1452case $srcdir in
1453  .)  # We are building in place.
1454    ac_srcdir=.
1455    ac_top_srcdir=$ac_top_builddir_sub
1456    ac_abs_top_srcdir=$ac_pwd ;;
1457  [\\/]* | ?:[\\/]* )  # Absolute name.
1458    ac_srcdir=$srcdir$ac_dir_suffix;
1459    ac_top_srcdir=$srcdir
1460    ac_abs_top_srcdir=$srcdir ;;
1461  *) # Relative name.
1462    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1463    ac_top_srcdir=$ac_top_build_prefix$srcdir
1464    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1465esac
1466ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1467
1468    cd "$ac_dir" || { ac_status=$?; continue; }
1469    # Check for guested configure.
1470    if test -f "$ac_srcdir/configure.gnu"; then
1471      echo &&
1472      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1473    elif test -f "$ac_srcdir/configure"; then
1474      echo &&
1475      $SHELL "$ac_srcdir/configure" --help=recursive
1476    else
1477      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1478    fi || ac_status=$?
1479    cd "$ac_pwd" || { ac_status=$?; break; }
1480  done
1481fi
1482
1483test -n "$ac_init_help" && exit $ac_status
1484if $ac_init_version; then
1485  cat <<\_ACEOF
1486xkbprint configure 1.0.5
1487generated by GNU Autoconf 2.69
1488
1489Copyright (C) 2012 Free Software Foundation, Inc.
1490This configure script is free software; the Free Software Foundation
1491gives unlimited permission to copy, distribute and modify it.
1492_ACEOF
1493  exit
1494fi
1495
1496## ------------------------ ##
1497## Autoconf initialization. ##
1498## ------------------------ ##
1499
1500# ac_fn_c_try_compile LINENO
1501# --------------------------
1502# Try to compile conftest.$ac_ext, and return whether this succeeded.
1503ac_fn_c_try_compile ()
1504{
1505  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1506  rm -f conftest.$ac_objext
1507  if { { ac_try="$ac_compile"
1508case "(($ac_try" in
1509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1510  *) ac_try_echo=$ac_try;;
1511esac
1512eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1513$as_echo "$ac_try_echo"; } >&5
1514  (eval "$ac_compile") 2>conftest.err
1515  ac_status=$?
1516  if test -s conftest.err; then
1517    grep -v '^ *+' conftest.err >conftest.er1
1518    cat conftest.er1 >&5
1519    mv -f conftest.er1 conftest.err
1520  fi
1521  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1522  test $ac_status = 0; } && {
1523	 test -z "$ac_c_werror_flag" ||
1524	 test ! -s conftest.err
1525       } && test -s conftest.$ac_objext; then :
1526  ac_retval=0
1527else
1528  $as_echo "$as_me: failed program was:" >&5
1529sed 's/^/| /' conftest.$ac_ext >&5
1530
1531	ac_retval=1
1532fi
1533  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1534  as_fn_set_status $ac_retval
1535
1536} # ac_fn_c_try_compile
1537
1538# ac_fn_c_try_cpp LINENO
1539# ----------------------
1540# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1541ac_fn_c_try_cpp ()
1542{
1543  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544  if { { ac_try="$ac_cpp conftest.$ac_ext"
1545case "(($ac_try" in
1546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1547  *) ac_try_echo=$ac_try;;
1548esac
1549eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550$as_echo "$ac_try_echo"; } >&5
1551  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1552  ac_status=$?
1553  if test -s conftest.err; then
1554    grep -v '^ *+' conftest.err >conftest.er1
1555    cat conftest.er1 >&5
1556    mv -f conftest.er1 conftest.err
1557  fi
1558  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559  test $ac_status = 0; } > conftest.i && {
1560	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1561	 test ! -s conftest.err
1562       }; then :
1563  ac_retval=0
1564else
1565  $as_echo "$as_me: failed program was:" >&5
1566sed 's/^/| /' conftest.$ac_ext >&5
1567
1568    ac_retval=1
1569fi
1570  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1571  as_fn_set_status $ac_retval
1572
1573} # ac_fn_c_try_cpp
1574
1575# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1576# -------------------------------------------------------
1577# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1578# the include files in INCLUDES and setting the cache variable VAR
1579# accordingly.
1580ac_fn_c_check_header_mongrel ()
1581{
1582  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583  if eval \${$3+:} false; then :
1584  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1585$as_echo_n "checking for $2... " >&6; }
1586if eval \${$3+:} false; then :
1587  $as_echo_n "(cached) " >&6
1588fi
1589eval ac_res=\$$3
1590	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1591$as_echo "$ac_res" >&6; }
1592else
1593  # Is the header compilable?
1594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1595$as_echo_n "checking $2 usability... " >&6; }
1596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1597/* end confdefs.h.  */
1598$4
1599#include <$2>
1600_ACEOF
1601if ac_fn_c_try_compile "$LINENO"; then :
1602  ac_header_compiler=yes
1603else
1604  ac_header_compiler=no
1605fi
1606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1608$as_echo "$ac_header_compiler" >&6; }
1609
1610# Is the header present?
1611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1612$as_echo_n "checking $2 presence... " >&6; }
1613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1614/* end confdefs.h.  */
1615#include <$2>
1616_ACEOF
1617if ac_fn_c_try_cpp "$LINENO"; then :
1618  ac_header_preproc=yes
1619else
1620  ac_header_preproc=no
1621fi
1622rm -f conftest.err conftest.i conftest.$ac_ext
1623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1624$as_echo "$ac_header_preproc" >&6; }
1625
1626# So?  What about this header?
1627case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1628  yes:no: )
1629    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1630$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1631    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1632$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1633    ;;
1634  no:yes:* )
1635    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1636$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1637    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1638$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1639    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1640$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1641    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1642$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1643    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1644$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1645( $as_echo "## ---------------------------------------------------------------------- ##
1646## Report this to https://gitlab.freedesktop.org/xorg/app/xkbprint/issues ##
1647## ---------------------------------------------------------------------- ##"
1648     ) | sed "s/^/$as_me: WARNING:     /" >&2
1649    ;;
1650esac
1651  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1652$as_echo_n "checking for $2... " >&6; }
1653if eval \${$3+:} false; then :
1654  $as_echo_n "(cached) " >&6
1655else
1656  eval "$3=\$ac_header_compiler"
1657fi
1658eval ac_res=\$$3
1659	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1660$as_echo "$ac_res" >&6; }
1661fi
1662  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663
1664} # ac_fn_c_check_header_mongrel
1665
1666# ac_fn_c_try_run LINENO
1667# ----------------------
1668# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1669# that executables *can* be run.
1670ac_fn_c_try_run ()
1671{
1672  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673  if { { ac_try="$ac_link"
1674case "(($ac_try" in
1675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676  *) ac_try_echo=$ac_try;;
1677esac
1678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679$as_echo "$ac_try_echo"; } >&5
1680  (eval "$ac_link") 2>&5
1681  ac_status=$?
1682  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1684  { { case "(($ac_try" in
1685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686  *) ac_try_echo=$ac_try;;
1687esac
1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689$as_echo "$ac_try_echo"; } >&5
1690  (eval "$ac_try") 2>&5
1691  ac_status=$?
1692  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693  test $ac_status = 0; }; }; then :
1694  ac_retval=0
1695else
1696  $as_echo "$as_me: program exited with status $ac_status" >&5
1697       $as_echo "$as_me: failed program was:" >&5
1698sed 's/^/| /' conftest.$ac_ext >&5
1699
1700       ac_retval=$ac_status
1701fi
1702  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1703  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704  as_fn_set_status $ac_retval
1705
1706} # ac_fn_c_try_run
1707
1708# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1709# -------------------------------------------------------
1710# Tests whether HEADER exists and can be compiled using the include files in
1711# INCLUDES, setting the cache variable VAR accordingly.
1712ac_fn_c_check_header_compile ()
1713{
1714  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1716$as_echo_n "checking for $2... " >&6; }
1717if eval \${$3+:} false; then :
1718  $as_echo_n "(cached) " >&6
1719else
1720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1721/* end confdefs.h.  */
1722$4
1723#include <$2>
1724_ACEOF
1725if ac_fn_c_try_compile "$LINENO"; then :
1726  eval "$3=yes"
1727else
1728  eval "$3=no"
1729fi
1730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1731fi
1732eval ac_res=\$$3
1733	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1734$as_echo "$ac_res" >&6; }
1735  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736
1737} # ac_fn_c_check_header_compile
1738
1739# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1740# ---------------------------------------------
1741# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1742# accordingly.
1743ac_fn_c_check_decl ()
1744{
1745  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746  as_decl_name=`echo $2|sed 's/ *(.*//'`
1747  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1748  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1749$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1750if eval \${$3+:} false; then :
1751  $as_echo_n "(cached) " >&6
1752else
1753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754/* end confdefs.h.  */
1755$4
1756int
1757main ()
1758{
1759#ifndef $as_decl_name
1760#ifdef __cplusplus
1761  (void) $as_decl_use;
1762#else
1763  (void) $as_decl_name;
1764#endif
1765#endif
1766
1767  ;
1768  return 0;
1769}
1770_ACEOF
1771if ac_fn_c_try_compile "$LINENO"; then :
1772  eval "$3=yes"
1773else
1774  eval "$3=no"
1775fi
1776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1777fi
1778eval ac_res=\$$3
1779	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780$as_echo "$ac_res" >&6; }
1781  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782
1783} # ac_fn_c_check_decl
1784
1785# ac_fn_c_try_link LINENO
1786# -----------------------
1787# Try to link conftest.$ac_ext, and return whether this succeeded.
1788ac_fn_c_try_link ()
1789{
1790  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791  rm -f conftest.$ac_objext conftest$ac_exeext
1792  if { { ac_try="$ac_link"
1793case "(($ac_try" in
1794  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795  *) ac_try_echo=$ac_try;;
1796esac
1797eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798$as_echo "$ac_try_echo"; } >&5
1799  (eval "$ac_link") 2>conftest.err
1800  ac_status=$?
1801  if test -s conftest.err; then
1802    grep -v '^ *+' conftest.err >conftest.er1
1803    cat conftest.er1 >&5
1804    mv -f conftest.er1 conftest.err
1805  fi
1806  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807  test $ac_status = 0; } && {
1808	 test -z "$ac_c_werror_flag" ||
1809	 test ! -s conftest.err
1810       } && test -s conftest$ac_exeext && {
1811	 test "$cross_compiling" = yes ||
1812	 test -x conftest$ac_exeext
1813       }; then :
1814  ac_retval=0
1815else
1816  $as_echo "$as_me: failed program was:" >&5
1817sed 's/^/| /' conftest.$ac_ext >&5
1818
1819	ac_retval=1
1820fi
1821  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1822  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1823  # interfere with the next link command; also delete a directory that is
1824  # left behind by Apple's compiler.  We do this before executing the actions.
1825  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1826  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827  as_fn_set_status $ac_retval
1828
1829} # ac_fn_c_try_link
1830
1831# ac_fn_c_check_func LINENO FUNC VAR
1832# ----------------------------------
1833# Tests whether FUNC exists, setting the cache variable VAR accordingly
1834ac_fn_c_check_func ()
1835{
1836  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1838$as_echo_n "checking for $2... " >&6; }
1839if eval \${$3+:} false; then :
1840  $as_echo_n "(cached) " >&6
1841else
1842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843/* end confdefs.h.  */
1844/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1845   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1846#define $2 innocuous_$2
1847
1848/* System header to define __stub macros and hopefully few prototypes,
1849    which can conflict with char $2 (); below.
1850    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1851    <limits.h> exists even on freestanding compilers.  */
1852
1853#ifdef __STDC__
1854# include <limits.h>
1855#else
1856# include <assert.h>
1857#endif
1858
1859#undef $2
1860
1861/* Override any GCC internal prototype to avoid an error.
1862   Use char because int might match the return type of a GCC
1863   builtin and then its argument prototype would still apply.  */
1864#ifdef __cplusplus
1865extern "C"
1866#endif
1867char $2 ();
1868/* The GNU C library defines this for functions which it implements
1869    to always fail with ENOSYS.  Some functions are actually named
1870    something starting with __ and the normal name is an alias.  */
1871#if defined __stub_$2 || defined __stub___$2
1872choke me
1873#endif
1874
1875int
1876main ()
1877{
1878return $2 ();
1879  ;
1880  return 0;
1881}
1882_ACEOF
1883if ac_fn_c_try_link "$LINENO"; then :
1884  eval "$3=yes"
1885else
1886  eval "$3=no"
1887fi
1888rm -f core conftest.err conftest.$ac_objext \
1889    conftest$ac_exeext conftest.$ac_ext
1890fi
1891eval ac_res=\$$3
1892	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893$as_echo "$ac_res" >&6; }
1894  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895
1896} # ac_fn_c_check_func
1897cat >config.log <<_ACEOF
1898This file contains any messages produced by compilers while
1899running configure, to aid debugging if configure makes a mistake.
1900
1901It was created by xkbprint $as_me 1.0.5, which was
1902generated by GNU Autoconf 2.69.  Invocation command line was
1903
1904  $ $0 $@
1905
1906_ACEOF
1907exec 5>>config.log
1908{
1909cat <<_ASUNAME
1910## --------- ##
1911## Platform. ##
1912## --------- ##
1913
1914hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1915uname -m = `(uname -m) 2>/dev/null || echo unknown`
1916uname -r = `(uname -r) 2>/dev/null || echo unknown`
1917uname -s = `(uname -s) 2>/dev/null || echo unknown`
1918uname -v = `(uname -v) 2>/dev/null || echo unknown`
1919
1920/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1921/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1922
1923/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1924/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1925/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1926/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1927/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1928/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1929/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1930
1931_ASUNAME
1932
1933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934for as_dir in $PATH
1935do
1936  IFS=$as_save_IFS
1937  test -z "$as_dir" && as_dir=.
1938    $as_echo "PATH: $as_dir"
1939  done
1940IFS=$as_save_IFS
1941
1942} >&5
1943
1944cat >&5 <<_ACEOF
1945
1946
1947## ----------- ##
1948## Core tests. ##
1949## ----------- ##
1950
1951_ACEOF
1952
1953
1954# Keep a trace of the command line.
1955# Strip out --no-create and --no-recursion so they do not pile up.
1956# Strip out --silent because we don't want to record it for future runs.
1957# Also quote any args containing shell meta-characters.
1958# Make two passes to allow for proper duplicate-argument suppression.
1959ac_configure_args=
1960ac_configure_args0=
1961ac_configure_args1=
1962ac_must_keep_next=false
1963for ac_pass in 1 2
1964do
1965  for ac_arg
1966  do
1967    case $ac_arg in
1968    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1969    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1970    | -silent | --silent | --silen | --sile | --sil)
1971      continue ;;
1972    *\'*)
1973      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1974    esac
1975    case $ac_pass in
1976    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1977    2)
1978      as_fn_append ac_configure_args1 " '$ac_arg'"
1979      if test $ac_must_keep_next = true; then
1980	ac_must_keep_next=false # Got value, back to normal.
1981      else
1982	case $ac_arg in
1983	  *=* | --config-cache | -C | -disable-* | --disable-* \
1984	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1985	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1986	  | -with-* | --with-* | -without-* | --without-* | --x)
1987	    case "$ac_configure_args0 " in
1988	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1989	    esac
1990	    ;;
1991	  -* ) ac_must_keep_next=true ;;
1992	esac
1993      fi
1994      as_fn_append ac_configure_args " '$ac_arg'"
1995      ;;
1996    esac
1997  done
1998done
1999{ ac_configure_args0=; unset ac_configure_args0;}
2000{ ac_configure_args1=; unset ac_configure_args1;}
2001
2002# When interrupted or exit'd, cleanup temporary files, and complete
2003# config.log.  We remove comments because anyway the quotes in there
2004# would cause problems or look ugly.
2005# WARNING: Use '\'' to represent an apostrophe within the trap.
2006# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2007trap 'exit_status=$?
2008  # Save into config.log some information that might help in debugging.
2009  {
2010    echo
2011
2012    $as_echo "## ---------------- ##
2013## Cache variables. ##
2014## ---------------- ##"
2015    echo
2016    # The following way of writing the cache mishandles newlines in values,
2017(
2018  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2019    eval ac_val=\$$ac_var
2020    case $ac_val in #(
2021    *${as_nl}*)
2022      case $ac_var in #(
2023      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2024$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2025      esac
2026      case $ac_var in #(
2027      _ | IFS | as_nl) ;; #(
2028      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2029      *) { eval $ac_var=; unset $ac_var;} ;;
2030      esac ;;
2031    esac
2032  done
2033  (set) 2>&1 |
2034    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2035    *${as_nl}ac_space=\ *)
2036      sed -n \
2037	"s/'\''/'\''\\\\'\'''\''/g;
2038	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2039      ;; #(
2040    *)
2041      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2042      ;;
2043    esac |
2044    sort
2045)
2046    echo
2047
2048    $as_echo "## ----------------- ##
2049## Output variables. ##
2050## ----------------- ##"
2051    echo
2052    for ac_var in $ac_subst_vars
2053    do
2054      eval ac_val=\$$ac_var
2055      case $ac_val in
2056      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2057      esac
2058      $as_echo "$ac_var='\''$ac_val'\''"
2059    done | sort
2060    echo
2061
2062    if test -n "$ac_subst_files"; then
2063      $as_echo "## ------------------- ##
2064## File substitutions. ##
2065## ------------------- ##"
2066      echo
2067      for ac_var in $ac_subst_files
2068      do
2069	eval ac_val=\$$ac_var
2070	case $ac_val in
2071	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2072	esac
2073	$as_echo "$ac_var='\''$ac_val'\''"
2074      done | sort
2075      echo
2076    fi
2077
2078    if test -s confdefs.h; then
2079      $as_echo "## ----------- ##
2080## confdefs.h. ##
2081## ----------- ##"
2082      echo
2083      cat confdefs.h
2084      echo
2085    fi
2086    test "$ac_signal" != 0 &&
2087      $as_echo "$as_me: caught signal $ac_signal"
2088    $as_echo "$as_me: exit $exit_status"
2089  } >&5
2090  rm -f core *.core core.conftest.* &&
2091    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2092    exit $exit_status
2093' 0
2094for ac_signal in 1 2 13 15; do
2095  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2096done
2097ac_signal=0
2098
2099# confdefs.h avoids OS command line length limits that DEFS can exceed.
2100rm -f -r conftest* confdefs.h
2101
2102$as_echo "/* confdefs.h */" > confdefs.h
2103
2104# Predefined preprocessor variables.
2105
2106cat >>confdefs.h <<_ACEOF
2107#define PACKAGE_NAME "$PACKAGE_NAME"
2108_ACEOF
2109
2110cat >>confdefs.h <<_ACEOF
2111#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2112_ACEOF
2113
2114cat >>confdefs.h <<_ACEOF
2115#define PACKAGE_VERSION "$PACKAGE_VERSION"
2116_ACEOF
2117
2118cat >>confdefs.h <<_ACEOF
2119#define PACKAGE_STRING "$PACKAGE_STRING"
2120_ACEOF
2121
2122cat >>confdefs.h <<_ACEOF
2123#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2124_ACEOF
2125
2126cat >>confdefs.h <<_ACEOF
2127#define PACKAGE_URL "$PACKAGE_URL"
2128_ACEOF
2129
2130
2131# Let the site file select an alternate cache file if it wants to.
2132# Prefer an explicitly selected file to automatically selected ones.
2133ac_site_file1=NONE
2134ac_site_file2=NONE
2135if test -n "$CONFIG_SITE"; then
2136  # We do not want a PATH search for config.site.
2137  case $CONFIG_SITE in #((
2138    -*)  ac_site_file1=./$CONFIG_SITE;;
2139    */*) ac_site_file1=$CONFIG_SITE;;
2140    *)   ac_site_file1=./$CONFIG_SITE;;
2141  esac
2142elif test "x$prefix" != xNONE; then
2143  ac_site_file1=$prefix/share/config.site
2144  ac_site_file2=$prefix/etc/config.site
2145else
2146  ac_site_file1=$ac_default_prefix/share/config.site
2147  ac_site_file2=$ac_default_prefix/etc/config.site
2148fi
2149for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2150do
2151  test "x$ac_site_file" = xNONE && continue
2152  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2153    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2154$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2155    sed 's/^/| /' "$ac_site_file" >&5
2156    . "$ac_site_file" \
2157      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2158$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2159as_fn_error $? "failed to load site script $ac_site_file
2160See \`config.log' for more details" "$LINENO" 5; }
2161  fi
2162done
2163
2164if test -r "$cache_file"; then
2165  # Some versions of bash will fail to source /dev/null (special files
2166  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2167  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2168    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2169$as_echo "$as_me: loading cache $cache_file" >&6;}
2170    case $cache_file in
2171      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2172      *)                      . "./$cache_file";;
2173    esac
2174  fi
2175else
2176  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2177$as_echo "$as_me: creating cache $cache_file" >&6;}
2178  >$cache_file
2179fi
2180
2181# Check that the precious variables saved in the cache have kept the same
2182# value.
2183ac_cache_corrupted=false
2184for ac_var in $ac_precious_vars; do
2185  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2186  eval ac_new_set=\$ac_env_${ac_var}_set
2187  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2188  eval ac_new_val=\$ac_env_${ac_var}_value
2189  case $ac_old_set,$ac_new_set in
2190    set,)
2191      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2192$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2193      ac_cache_corrupted=: ;;
2194    ,set)
2195      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2196$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2197      ac_cache_corrupted=: ;;
2198    ,);;
2199    *)
2200      if test "x$ac_old_val" != "x$ac_new_val"; then
2201	# differences in whitespace do not lead to failure.
2202	ac_old_val_w=`echo x $ac_old_val`
2203	ac_new_val_w=`echo x $ac_new_val`
2204	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2205	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2206$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2207	  ac_cache_corrupted=:
2208	else
2209	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2210$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2211	  eval $ac_var=\$ac_old_val
2212	fi
2213	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2214$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2215	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2216$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2217      fi;;
2218  esac
2219  # Pass precious variables to config.status.
2220  if test "$ac_new_set" = set; then
2221    case $ac_new_val in
2222    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2223    *) ac_arg=$ac_var=$ac_new_val ;;
2224    esac
2225    case " $ac_configure_args " in
2226      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2227      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2228    esac
2229  fi
2230done
2231if $ac_cache_corrupted; then
2232  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2233$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2234  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2235$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2236  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2237fi
2238## -------------------- ##
2239## Main body of script. ##
2240## -------------------- ##
2241
2242ac_ext=c
2243ac_cpp='$CPP $CPPFLAGS'
2244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2246ac_compiler_gnu=$ac_cv_c_compiler_gnu
2247
2248
2249
2250ac_config_headers="$ac_config_headers config.h"
2251
2252# Needed for asprintf on GNU libc
2253ac_aux_dir=
2254for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2255  if test -f "$ac_dir/install-sh"; then
2256    ac_aux_dir=$ac_dir
2257    ac_install_sh="$ac_aux_dir/install-sh -c"
2258    break
2259  elif test -f "$ac_dir/install.sh"; then
2260    ac_aux_dir=$ac_dir
2261    ac_install_sh="$ac_aux_dir/install.sh -c"
2262    break
2263  elif test -f "$ac_dir/shtool"; then
2264    ac_aux_dir=$ac_dir
2265    ac_install_sh="$ac_aux_dir/shtool install -c"
2266    break
2267  fi
2268done
2269if test -z "$ac_aux_dir"; then
2270  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2271fi
2272
2273# These three variables are undocumented and unsupported,
2274# and are intended to be withdrawn in a future Autoconf release.
2275# They can cause serious problems if a builder's source tree is in a directory
2276# whose full name contains unusual characters.
2277ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2278ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2279ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2280
2281
2282# Expand $ac_aux_dir to an absolute path.
2283am_aux_dir=`cd "$ac_aux_dir" && pwd`
2284
2285ac_ext=c
2286ac_cpp='$CPP $CPPFLAGS'
2287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2289ac_compiler_gnu=$ac_cv_c_compiler_gnu
2290if test -n "$ac_tool_prefix"; then
2291  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2292set dummy ${ac_tool_prefix}gcc; ac_word=$2
2293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2294$as_echo_n "checking for $ac_word... " >&6; }
2295if ${ac_cv_prog_CC+:} false; then :
2296  $as_echo_n "(cached) " >&6
2297else
2298  if test -n "$CC"; then
2299  ac_cv_prog_CC="$CC" # Let the user override the test.
2300else
2301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302for as_dir in $PATH
2303do
2304  IFS=$as_save_IFS
2305  test -z "$as_dir" && as_dir=.
2306    for ac_exec_ext in '' $ac_executable_extensions; do
2307  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2308    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2309    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2310    break 2
2311  fi
2312done
2313  done
2314IFS=$as_save_IFS
2315
2316fi
2317fi
2318CC=$ac_cv_prog_CC
2319if test -n "$CC"; then
2320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2321$as_echo "$CC" >&6; }
2322else
2323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2324$as_echo "no" >&6; }
2325fi
2326
2327
2328fi
2329if test -z "$ac_cv_prog_CC"; then
2330  ac_ct_CC=$CC
2331  # Extract the first word of "gcc", so it can be a program name with args.
2332set dummy gcc; ac_word=$2
2333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2334$as_echo_n "checking for $ac_word... " >&6; }
2335if ${ac_cv_prog_ac_ct_CC+:} false; then :
2336  $as_echo_n "(cached) " >&6
2337else
2338  if test -n "$ac_ct_CC"; then
2339  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2340else
2341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342for as_dir in $PATH
2343do
2344  IFS=$as_save_IFS
2345  test -z "$as_dir" && as_dir=.
2346    for ac_exec_ext in '' $ac_executable_extensions; do
2347  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2348    ac_cv_prog_ac_ct_CC="gcc"
2349    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2350    break 2
2351  fi
2352done
2353  done
2354IFS=$as_save_IFS
2355
2356fi
2357fi
2358ac_ct_CC=$ac_cv_prog_ac_ct_CC
2359if test -n "$ac_ct_CC"; then
2360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2361$as_echo "$ac_ct_CC" >&6; }
2362else
2363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2364$as_echo "no" >&6; }
2365fi
2366
2367  if test "x$ac_ct_CC" = x; then
2368    CC=""
2369  else
2370    case $cross_compiling:$ac_tool_warned in
2371yes:)
2372{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2373$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2374ac_tool_warned=yes ;;
2375esac
2376    CC=$ac_ct_CC
2377  fi
2378else
2379  CC="$ac_cv_prog_CC"
2380fi
2381
2382if test -z "$CC"; then
2383          if test -n "$ac_tool_prefix"; then
2384    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2385set dummy ${ac_tool_prefix}cc; ac_word=$2
2386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2387$as_echo_n "checking for $ac_word... " >&6; }
2388if ${ac_cv_prog_CC+:} false; then :
2389  $as_echo_n "(cached) " >&6
2390else
2391  if test -n "$CC"; then
2392  ac_cv_prog_CC="$CC" # Let the user override the test.
2393else
2394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395for as_dir in $PATH
2396do
2397  IFS=$as_save_IFS
2398  test -z "$as_dir" && as_dir=.
2399    for ac_exec_ext in '' $ac_executable_extensions; do
2400  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2401    ac_cv_prog_CC="${ac_tool_prefix}cc"
2402    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2403    break 2
2404  fi
2405done
2406  done
2407IFS=$as_save_IFS
2408
2409fi
2410fi
2411CC=$ac_cv_prog_CC
2412if test -n "$CC"; then
2413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2414$as_echo "$CC" >&6; }
2415else
2416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2417$as_echo "no" >&6; }
2418fi
2419
2420
2421  fi
2422fi
2423if test -z "$CC"; then
2424  # Extract the first word of "cc", so it can be a program name with args.
2425set dummy cc; ac_word=$2
2426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2427$as_echo_n "checking for $ac_word... " >&6; }
2428if ${ac_cv_prog_CC+:} false; then :
2429  $as_echo_n "(cached) " >&6
2430else
2431  if test -n "$CC"; then
2432  ac_cv_prog_CC="$CC" # Let the user override the test.
2433else
2434  ac_prog_rejected=no
2435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436for as_dir in $PATH
2437do
2438  IFS=$as_save_IFS
2439  test -z "$as_dir" && as_dir=.
2440    for ac_exec_ext in '' $ac_executable_extensions; do
2441  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2442    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2443       ac_prog_rejected=yes
2444       continue
2445     fi
2446    ac_cv_prog_CC="cc"
2447    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2448    break 2
2449  fi
2450done
2451  done
2452IFS=$as_save_IFS
2453
2454if test $ac_prog_rejected = yes; then
2455  # We found a bogon in the path, so make sure we never use it.
2456  set dummy $ac_cv_prog_CC
2457  shift
2458  if test $# != 0; then
2459    # We chose a different compiler from the bogus one.
2460    # However, it has the same basename, so the bogon will be chosen
2461    # first if we set CC to just the basename; use the full file name.
2462    shift
2463    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2464  fi
2465fi
2466fi
2467fi
2468CC=$ac_cv_prog_CC
2469if test -n "$CC"; then
2470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2471$as_echo "$CC" >&6; }
2472else
2473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2474$as_echo "no" >&6; }
2475fi
2476
2477
2478fi
2479if test -z "$CC"; then
2480  if test -n "$ac_tool_prefix"; then
2481  for ac_prog in cl.exe
2482  do
2483    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2484set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2486$as_echo_n "checking for $ac_word... " >&6; }
2487if ${ac_cv_prog_CC+:} false; then :
2488  $as_echo_n "(cached) " >&6
2489else
2490  if test -n "$CC"; then
2491  ac_cv_prog_CC="$CC" # Let the user override the test.
2492else
2493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494for as_dir in $PATH
2495do
2496  IFS=$as_save_IFS
2497  test -z "$as_dir" && as_dir=.
2498    for ac_exec_ext in '' $ac_executable_extensions; do
2499  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2500    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2501    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2502    break 2
2503  fi
2504done
2505  done
2506IFS=$as_save_IFS
2507
2508fi
2509fi
2510CC=$ac_cv_prog_CC
2511if test -n "$CC"; then
2512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2513$as_echo "$CC" >&6; }
2514else
2515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2516$as_echo "no" >&6; }
2517fi
2518
2519
2520    test -n "$CC" && break
2521  done
2522fi
2523if test -z "$CC"; then
2524  ac_ct_CC=$CC
2525  for ac_prog in cl.exe
2526do
2527  # Extract the first word of "$ac_prog", so it can be a program name with args.
2528set dummy $ac_prog; ac_word=$2
2529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2530$as_echo_n "checking for $ac_word... " >&6; }
2531if ${ac_cv_prog_ac_ct_CC+:} false; then :
2532  $as_echo_n "(cached) " >&6
2533else
2534  if test -n "$ac_ct_CC"; then
2535  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2536else
2537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538for as_dir in $PATH
2539do
2540  IFS=$as_save_IFS
2541  test -z "$as_dir" && as_dir=.
2542    for ac_exec_ext in '' $ac_executable_extensions; do
2543  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2544    ac_cv_prog_ac_ct_CC="$ac_prog"
2545    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2546    break 2
2547  fi
2548done
2549  done
2550IFS=$as_save_IFS
2551
2552fi
2553fi
2554ac_ct_CC=$ac_cv_prog_ac_ct_CC
2555if test -n "$ac_ct_CC"; then
2556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2557$as_echo "$ac_ct_CC" >&6; }
2558else
2559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2560$as_echo "no" >&6; }
2561fi
2562
2563
2564  test -n "$ac_ct_CC" && break
2565done
2566
2567  if test "x$ac_ct_CC" = x; then
2568    CC=""
2569  else
2570    case $cross_compiling:$ac_tool_warned in
2571yes:)
2572{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2573$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2574ac_tool_warned=yes ;;
2575esac
2576    CC=$ac_ct_CC
2577  fi
2578fi
2579
2580fi
2581
2582
2583test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2584$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2585as_fn_error $? "no acceptable C compiler found in \$PATH
2586See \`config.log' for more details" "$LINENO" 5; }
2587
2588# Provide some information about the compiler.
2589$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2590set X $ac_compile
2591ac_compiler=$2
2592for ac_option in --version -v -V -qversion; do
2593  { { ac_try="$ac_compiler $ac_option >&5"
2594case "(($ac_try" in
2595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2596  *) ac_try_echo=$ac_try;;
2597esac
2598eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2599$as_echo "$ac_try_echo"; } >&5
2600  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2601  ac_status=$?
2602  if test -s conftest.err; then
2603    sed '10a\
2604... rest of stderr output deleted ...
2605         10q' conftest.err >conftest.er1
2606    cat conftest.er1 >&5
2607  fi
2608  rm -f conftest.er1 conftest.err
2609  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2610  test $ac_status = 0; }
2611done
2612
2613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2614/* end confdefs.h.  */
2615
2616int
2617main ()
2618{
2619
2620  ;
2621  return 0;
2622}
2623_ACEOF
2624ac_clean_files_save=$ac_clean_files
2625ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2626# Try to create an executable without -o first, disregard a.out.
2627# It will help us diagnose broken compilers, and finding out an intuition
2628# of exeext.
2629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2630$as_echo_n "checking whether the C compiler works... " >&6; }
2631ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2632
2633# The possible output files:
2634ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2635
2636ac_rmfiles=
2637for ac_file in $ac_files
2638do
2639  case $ac_file in
2640    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2641    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2642  esac
2643done
2644rm -f $ac_rmfiles
2645
2646if { { ac_try="$ac_link_default"
2647case "(($ac_try" in
2648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2649  *) ac_try_echo=$ac_try;;
2650esac
2651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2652$as_echo "$ac_try_echo"; } >&5
2653  (eval "$ac_link_default") 2>&5
2654  ac_status=$?
2655  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2656  test $ac_status = 0; }; then :
2657  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2658# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2659# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2660# so that the user can short-circuit this test for compilers unknown to
2661# Autoconf.
2662for ac_file in $ac_files ''
2663do
2664  test -f "$ac_file" || continue
2665  case $ac_file in
2666    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2667	;;
2668    [ab].out )
2669	# We found the default executable, but exeext='' is most
2670	# certainly right.
2671	break;;
2672    *.* )
2673	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2674	then :; else
2675	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2676	fi
2677	# We set ac_cv_exeext here because the later test for it is not
2678	# safe: cross compilers may not add the suffix if given an `-o'
2679	# argument, so we may need to know it at that point already.
2680	# Even if this section looks crufty: it has the advantage of
2681	# actually working.
2682	break;;
2683    * )
2684	break;;
2685  esac
2686done
2687test "$ac_cv_exeext" = no && ac_cv_exeext=
2688
2689else
2690  ac_file=''
2691fi
2692if test -z "$ac_file"; then :
2693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2694$as_echo "no" >&6; }
2695$as_echo "$as_me: failed program was:" >&5
2696sed 's/^/| /' conftest.$ac_ext >&5
2697
2698{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2699$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2700as_fn_error 77 "C compiler cannot create executables
2701See \`config.log' for more details" "$LINENO" 5; }
2702else
2703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2704$as_echo "yes" >&6; }
2705fi
2706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2707$as_echo_n "checking for C compiler default output file name... " >&6; }
2708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2709$as_echo "$ac_file" >&6; }
2710ac_exeext=$ac_cv_exeext
2711
2712rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2713ac_clean_files=$ac_clean_files_save
2714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2715$as_echo_n "checking for suffix of executables... " >&6; }
2716if { { ac_try="$ac_link"
2717case "(($ac_try" in
2718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2719  *) ac_try_echo=$ac_try;;
2720esac
2721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2722$as_echo "$ac_try_echo"; } >&5
2723  (eval "$ac_link") 2>&5
2724  ac_status=$?
2725  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2726  test $ac_status = 0; }; then :
2727  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2728# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2729# work properly (i.e., refer to `conftest.exe'), while it won't with
2730# `rm'.
2731for ac_file in conftest.exe conftest conftest.*; do
2732  test -f "$ac_file" || continue
2733  case $ac_file in
2734    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2735    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2736	  break;;
2737    * ) break;;
2738  esac
2739done
2740else
2741  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2742$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2743as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2744See \`config.log' for more details" "$LINENO" 5; }
2745fi
2746rm -f conftest conftest$ac_cv_exeext
2747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2748$as_echo "$ac_cv_exeext" >&6; }
2749
2750rm -f conftest.$ac_ext
2751EXEEXT=$ac_cv_exeext
2752ac_exeext=$EXEEXT
2753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2754/* end confdefs.h.  */
2755#include <stdio.h>
2756int
2757main ()
2758{
2759FILE *f = fopen ("conftest.out", "w");
2760 return ferror (f) || fclose (f) != 0;
2761
2762  ;
2763  return 0;
2764}
2765_ACEOF
2766ac_clean_files="$ac_clean_files conftest.out"
2767# Check that the compiler produces executables we can run.  If not, either
2768# the compiler is broken, or we cross compile.
2769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2770$as_echo_n "checking whether we are cross compiling... " >&6; }
2771if test "$cross_compiling" != yes; then
2772  { { ac_try="$ac_link"
2773case "(($ac_try" in
2774  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2775  *) ac_try_echo=$ac_try;;
2776esac
2777eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2778$as_echo "$ac_try_echo"; } >&5
2779  (eval "$ac_link") 2>&5
2780  ac_status=$?
2781  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2782  test $ac_status = 0; }
2783  if { ac_try='./conftest$ac_cv_exeext'
2784  { { case "(($ac_try" in
2785  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786  *) ac_try_echo=$ac_try;;
2787esac
2788eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2789$as_echo "$ac_try_echo"; } >&5
2790  (eval "$ac_try") 2>&5
2791  ac_status=$?
2792  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2793  test $ac_status = 0; }; }; then
2794    cross_compiling=no
2795  else
2796    if test "$cross_compiling" = maybe; then
2797	cross_compiling=yes
2798    else
2799	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2800$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2801as_fn_error $? "cannot run C compiled programs.
2802If you meant to cross compile, use \`--host'.
2803See \`config.log' for more details" "$LINENO" 5; }
2804    fi
2805  fi
2806fi
2807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2808$as_echo "$cross_compiling" >&6; }
2809
2810rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2811ac_clean_files=$ac_clean_files_save
2812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2813$as_echo_n "checking for suffix of object files... " >&6; }
2814if ${ac_cv_objext+:} false; then :
2815  $as_echo_n "(cached) " >&6
2816else
2817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2818/* end confdefs.h.  */
2819
2820int
2821main ()
2822{
2823
2824  ;
2825  return 0;
2826}
2827_ACEOF
2828rm -f conftest.o conftest.obj
2829if { { ac_try="$ac_compile"
2830case "(($ac_try" in
2831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2832  *) ac_try_echo=$ac_try;;
2833esac
2834eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2835$as_echo "$ac_try_echo"; } >&5
2836  (eval "$ac_compile") 2>&5
2837  ac_status=$?
2838  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2839  test $ac_status = 0; }; then :
2840  for ac_file in conftest.o conftest.obj conftest.*; do
2841  test -f "$ac_file" || continue;
2842  case $ac_file in
2843    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2844    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2845       break;;
2846  esac
2847done
2848else
2849  $as_echo "$as_me: failed program was:" >&5
2850sed 's/^/| /' conftest.$ac_ext >&5
2851
2852{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2853$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2854as_fn_error $? "cannot compute suffix of object files: cannot compile
2855See \`config.log' for more details" "$LINENO" 5; }
2856fi
2857rm -f conftest.$ac_cv_objext conftest.$ac_ext
2858fi
2859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2860$as_echo "$ac_cv_objext" >&6; }
2861OBJEXT=$ac_cv_objext
2862ac_objext=$OBJEXT
2863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2864$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2865if ${ac_cv_c_compiler_gnu+:} false; then :
2866  $as_echo_n "(cached) " >&6
2867else
2868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2869/* end confdefs.h.  */
2870
2871int
2872main ()
2873{
2874#ifndef __GNUC__
2875       choke me
2876#endif
2877
2878  ;
2879  return 0;
2880}
2881_ACEOF
2882if ac_fn_c_try_compile "$LINENO"; then :
2883  ac_compiler_gnu=yes
2884else
2885  ac_compiler_gnu=no
2886fi
2887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2888ac_cv_c_compiler_gnu=$ac_compiler_gnu
2889
2890fi
2891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2892$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2893if test $ac_compiler_gnu = yes; then
2894  GCC=yes
2895else
2896  GCC=
2897fi
2898ac_test_CFLAGS=${CFLAGS+set}
2899ac_save_CFLAGS=$CFLAGS
2900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2901$as_echo_n "checking whether $CC accepts -g... " >&6; }
2902if ${ac_cv_prog_cc_g+:} false; then :
2903  $as_echo_n "(cached) " >&6
2904else
2905  ac_save_c_werror_flag=$ac_c_werror_flag
2906   ac_c_werror_flag=yes
2907   ac_cv_prog_cc_g=no
2908   CFLAGS="-g"
2909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2910/* end confdefs.h.  */
2911
2912int
2913main ()
2914{
2915
2916  ;
2917  return 0;
2918}
2919_ACEOF
2920if ac_fn_c_try_compile "$LINENO"; then :
2921  ac_cv_prog_cc_g=yes
2922else
2923  CFLAGS=""
2924      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2925/* end confdefs.h.  */
2926
2927int
2928main ()
2929{
2930
2931  ;
2932  return 0;
2933}
2934_ACEOF
2935if ac_fn_c_try_compile "$LINENO"; then :
2936
2937else
2938  ac_c_werror_flag=$ac_save_c_werror_flag
2939	 CFLAGS="-g"
2940	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2941/* end confdefs.h.  */
2942
2943int
2944main ()
2945{
2946
2947  ;
2948  return 0;
2949}
2950_ACEOF
2951if ac_fn_c_try_compile "$LINENO"; then :
2952  ac_cv_prog_cc_g=yes
2953fi
2954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2955fi
2956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2957fi
2958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2959   ac_c_werror_flag=$ac_save_c_werror_flag
2960fi
2961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2962$as_echo "$ac_cv_prog_cc_g" >&6; }
2963if test "$ac_test_CFLAGS" = set; then
2964  CFLAGS=$ac_save_CFLAGS
2965elif test $ac_cv_prog_cc_g = yes; then
2966  if test "$GCC" = yes; then
2967    CFLAGS="-g -O2"
2968  else
2969    CFLAGS="-g"
2970  fi
2971else
2972  if test "$GCC" = yes; then
2973    CFLAGS="-O2"
2974  else
2975    CFLAGS=
2976  fi
2977fi
2978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2979$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2980if ${ac_cv_prog_cc_c89+:} false; then :
2981  $as_echo_n "(cached) " >&6
2982else
2983  ac_cv_prog_cc_c89=no
2984ac_save_CC=$CC
2985cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2986/* end confdefs.h.  */
2987#include <stdarg.h>
2988#include <stdio.h>
2989struct stat;
2990/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2991struct buf { int x; };
2992FILE * (*rcsopen) (struct buf *, struct stat *, int);
2993static char *e (p, i)
2994     char **p;
2995     int i;
2996{
2997  return p[i];
2998}
2999static char *f (char * (*g) (char **, int), char **p, ...)
3000{
3001  char *s;
3002  va_list v;
3003  va_start (v,p);
3004  s = g (p, va_arg (v,int));
3005  va_end (v);
3006  return s;
3007}
3008
3009/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3010   function prototypes and stuff, but not '\xHH' hex character constants.
3011   These don't provoke an error unfortunately, instead are silently treated
3012   as 'x'.  The following induces an error, until -std is added to get
3013   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3014   array size at least.  It's necessary to write '\x00'==0 to get something
3015   that's true only with -std.  */
3016int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3017
3018/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3019   inside strings and character constants.  */
3020#define FOO(x) 'x'
3021int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3022
3023int test (int i, double x);
3024struct s1 {int (*f) (int a);};
3025struct s2 {int (*f) (double a);};
3026int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3027int argc;
3028char **argv;
3029int
3030main ()
3031{
3032return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3033  ;
3034  return 0;
3035}
3036_ACEOF
3037for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3038	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3039do
3040  CC="$ac_save_CC $ac_arg"
3041  if ac_fn_c_try_compile "$LINENO"; then :
3042  ac_cv_prog_cc_c89=$ac_arg
3043fi
3044rm -f core conftest.err conftest.$ac_objext
3045  test "x$ac_cv_prog_cc_c89" != "xno" && break
3046done
3047rm -f conftest.$ac_ext
3048CC=$ac_save_CC
3049
3050fi
3051# AC_CACHE_VAL
3052case "x$ac_cv_prog_cc_c89" in
3053  x)
3054    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3055$as_echo "none needed" >&6; } ;;
3056  xno)
3057    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3058$as_echo "unsupported" >&6; } ;;
3059  *)
3060    CC="$CC $ac_cv_prog_cc_c89"
3061    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3062$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3063esac
3064if test "x$ac_cv_prog_cc_c89" != xno; then :
3065
3066fi
3067
3068ac_ext=c
3069ac_cpp='$CPP $CPPFLAGS'
3070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3072ac_compiler_gnu=$ac_cv_c_compiler_gnu
3073
3074ac_ext=c
3075ac_cpp='$CPP $CPPFLAGS'
3076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3078ac_compiler_gnu=$ac_cv_c_compiler_gnu
3079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3080$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3081if ${am_cv_prog_cc_c_o+:} false; then :
3082  $as_echo_n "(cached) " >&6
3083else
3084  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3085/* end confdefs.h.  */
3086
3087int
3088main ()
3089{
3090
3091  ;
3092  return 0;
3093}
3094_ACEOF
3095  # Make sure it works both with $CC and with simple cc.
3096  # Following AC_PROG_CC_C_O, we do the test twice because some
3097  # compilers refuse to overwrite an existing .o file with -o,
3098  # though they will create one.
3099  am_cv_prog_cc_c_o=yes
3100  for am_i in 1 2; do
3101    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3102   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3103   ac_status=$?
3104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105   (exit $ac_status); } \
3106         && test -f conftest2.$ac_objext; then
3107      : OK
3108    else
3109      am_cv_prog_cc_c_o=no
3110      break
3111    fi
3112  done
3113  rm -f core conftest*
3114  unset am_i
3115fi
3116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3117$as_echo "$am_cv_prog_cc_c_o" >&6; }
3118if test "$am_cv_prog_cc_c_o" != yes; then
3119   # Losing compiler, so override with the script.
3120   # FIXME: It is wrong to rewrite CC.
3121   # But if we don't then we get into trouble of one sort or another.
3122   # A longer-term fix would be to have automake use am__CC in this case,
3123   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3124   CC="$am_aux_dir/compile $CC"
3125fi
3126ac_ext=c
3127ac_cpp='$CPP $CPPFLAGS'
3128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3130ac_compiler_gnu=$ac_cv_c_compiler_gnu
3131
3132
3133
3134ac_ext=c
3135ac_cpp='$CPP $CPPFLAGS'
3136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3138ac_compiler_gnu=$ac_cv_c_compiler_gnu
3139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3140$as_echo_n "checking how to run the C preprocessor... " >&6; }
3141# On Suns, sometimes $CPP names a directory.
3142if test -n "$CPP" && test -d "$CPP"; then
3143  CPP=
3144fi
3145if test -z "$CPP"; then
3146  if ${ac_cv_prog_CPP+:} false; then :
3147  $as_echo_n "(cached) " >&6
3148else
3149      # Double quotes because CPP needs to be expanded
3150    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3151    do
3152      ac_preproc_ok=false
3153for ac_c_preproc_warn_flag in '' yes
3154do
3155  # Use a header file that comes with gcc, so configuring glibc
3156  # with a fresh cross-compiler works.
3157  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3158  # <limits.h> exists even on freestanding compilers.
3159  # On the NeXT, cc -E runs the code through the compiler's parser,
3160  # not just through cpp. "Syntax error" is here to catch this case.
3161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3162/* end confdefs.h.  */
3163#ifdef __STDC__
3164# include <limits.h>
3165#else
3166# include <assert.h>
3167#endif
3168		     Syntax error
3169_ACEOF
3170if ac_fn_c_try_cpp "$LINENO"; then :
3171
3172else
3173  # Broken: fails on valid input.
3174continue
3175fi
3176rm -f conftest.err conftest.i conftest.$ac_ext
3177
3178  # OK, works on sane cases.  Now check whether nonexistent headers
3179  # can be detected and how.
3180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3181/* end confdefs.h.  */
3182#include <ac_nonexistent.h>
3183_ACEOF
3184if ac_fn_c_try_cpp "$LINENO"; then :
3185  # Broken: success on invalid input.
3186continue
3187else
3188  # Passes both tests.
3189ac_preproc_ok=:
3190break
3191fi
3192rm -f conftest.err conftest.i conftest.$ac_ext
3193
3194done
3195# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3196rm -f conftest.i conftest.err conftest.$ac_ext
3197if $ac_preproc_ok; then :
3198  break
3199fi
3200
3201    done
3202    ac_cv_prog_CPP=$CPP
3203
3204fi
3205  CPP=$ac_cv_prog_CPP
3206else
3207  ac_cv_prog_CPP=$CPP
3208fi
3209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3210$as_echo "$CPP" >&6; }
3211ac_preproc_ok=false
3212for ac_c_preproc_warn_flag in '' yes
3213do
3214  # Use a header file that comes with gcc, so configuring glibc
3215  # with a fresh cross-compiler works.
3216  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3217  # <limits.h> exists even on freestanding compilers.
3218  # On the NeXT, cc -E runs the code through the compiler's parser,
3219  # not just through cpp. "Syntax error" is here to catch this case.
3220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3221/* end confdefs.h.  */
3222#ifdef __STDC__
3223# include <limits.h>
3224#else
3225# include <assert.h>
3226#endif
3227		     Syntax error
3228_ACEOF
3229if ac_fn_c_try_cpp "$LINENO"; then :
3230
3231else
3232  # Broken: fails on valid input.
3233continue
3234fi
3235rm -f conftest.err conftest.i conftest.$ac_ext
3236
3237  # OK, works on sane cases.  Now check whether nonexistent headers
3238  # can be detected and how.
3239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3240/* end confdefs.h.  */
3241#include <ac_nonexistent.h>
3242_ACEOF
3243if ac_fn_c_try_cpp "$LINENO"; then :
3244  # Broken: success on invalid input.
3245continue
3246else
3247  # Passes both tests.
3248ac_preproc_ok=:
3249break
3250fi
3251rm -f conftest.err conftest.i conftest.$ac_ext
3252
3253done
3254# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3255rm -f conftest.i conftest.err conftest.$ac_ext
3256if $ac_preproc_ok; then :
3257
3258else
3259  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3260$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3261as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3262See \`config.log' for more details" "$LINENO" 5; }
3263fi
3264
3265ac_ext=c
3266ac_cpp='$CPP $CPPFLAGS'
3267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269ac_compiler_gnu=$ac_cv_c_compiler_gnu
3270
3271
3272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3273$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3274if ${ac_cv_path_GREP+:} false; then :
3275  $as_echo_n "(cached) " >&6
3276else
3277  if test -z "$GREP"; then
3278  ac_path_GREP_found=false
3279  # Loop through the user's path and test for each of PROGNAME-LIST
3280  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3282do
3283  IFS=$as_save_IFS
3284  test -z "$as_dir" && as_dir=.
3285    for ac_prog in grep ggrep; do
3286    for ac_exec_ext in '' $ac_executable_extensions; do
3287      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3288      as_fn_executable_p "$ac_path_GREP" || continue
3289# Check for GNU ac_path_GREP and select it if it is found.
3290  # Check for GNU $ac_path_GREP
3291case `"$ac_path_GREP" --version 2>&1` in
3292*GNU*)
3293  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3294*)
3295  ac_count=0
3296  $as_echo_n 0123456789 >"conftest.in"
3297  while :
3298  do
3299    cat "conftest.in" "conftest.in" >"conftest.tmp"
3300    mv "conftest.tmp" "conftest.in"
3301    cp "conftest.in" "conftest.nl"
3302    $as_echo 'GREP' >> "conftest.nl"
3303    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3304    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3305    as_fn_arith $ac_count + 1 && ac_count=$as_val
3306    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3307      # Best one so far, save it but keep looking for a better one
3308      ac_cv_path_GREP="$ac_path_GREP"
3309      ac_path_GREP_max=$ac_count
3310    fi
3311    # 10*(2^10) chars as input seems more than enough
3312    test $ac_count -gt 10 && break
3313  done
3314  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3315esac
3316
3317      $ac_path_GREP_found && break 3
3318    done
3319  done
3320  done
3321IFS=$as_save_IFS
3322  if test -z "$ac_cv_path_GREP"; then
3323    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3324  fi
3325else
3326  ac_cv_path_GREP=$GREP
3327fi
3328
3329fi
3330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3331$as_echo "$ac_cv_path_GREP" >&6; }
3332 GREP="$ac_cv_path_GREP"
3333
3334
3335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3336$as_echo_n "checking for egrep... " >&6; }
3337if ${ac_cv_path_EGREP+:} false; then :
3338  $as_echo_n "(cached) " >&6
3339else
3340  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3341   then ac_cv_path_EGREP="$GREP -E"
3342   else
3343     if test -z "$EGREP"; then
3344  ac_path_EGREP_found=false
3345  # Loop through the user's path and test for each of PROGNAME-LIST
3346  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3348do
3349  IFS=$as_save_IFS
3350  test -z "$as_dir" && as_dir=.
3351    for ac_prog in egrep; do
3352    for ac_exec_ext in '' $ac_executable_extensions; do
3353      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3354      as_fn_executable_p "$ac_path_EGREP" || continue
3355# Check for GNU ac_path_EGREP and select it if it is found.
3356  # Check for GNU $ac_path_EGREP
3357case `"$ac_path_EGREP" --version 2>&1` in
3358*GNU*)
3359  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3360*)
3361  ac_count=0
3362  $as_echo_n 0123456789 >"conftest.in"
3363  while :
3364  do
3365    cat "conftest.in" "conftest.in" >"conftest.tmp"
3366    mv "conftest.tmp" "conftest.in"
3367    cp "conftest.in" "conftest.nl"
3368    $as_echo 'EGREP' >> "conftest.nl"
3369    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3370    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3371    as_fn_arith $ac_count + 1 && ac_count=$as_val
3372    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3373      # Best one so far, save it but keep looking for a better one
3374      ac_cv_path_EGREP="$ac_path_EGREP"
3375      ac_path_EGREP_max=$ac_count
3376    fi
3377    # 10*(2^10) chars as input seems more than enough
3378    test $ac_count -gt 10 && break
3379  done
3380  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3381esac
3382
3383      $ac_path_EGREP_found && break 3
3384    done
3385  done
3386  done
3387IFS=$as_save_IFS
3388  if test -z "$ac_cv_path_EGREP"; then
3389    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3390  fi
3391else
3392  ac_cv_path_EGREP=$EGREP
3393fi
3394
3395   fi
3396fi
3397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3398$as_echo "$ac_cv_path_EGREP" >&6; }
3399 EGREP="$ac_cv_path_EGREP"
3400
3401
3402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3403$as_echo_n "checking for ANSI C header files... " >&6; }
3404if ${ac_cv_header_stdc+:} false; then :
3405  $as_echo_n "(cached) " >&6
3406else
3407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408/* end confdefs.h.  */
3409#include <stdlib.h>
3410#include <stdarg.h>
3411#include <string.h>
3412#include <float.h>
3413
3414int
3415main ()
3416{
3417
3418  ;
3419  return 0;
3420}
3421_ACEOF
3422if ac_fn_c_try_compile "$LINENO"; then :
3423  ac_cv_header_stdc=yes
3424else
3425  ac_cv_header_stdc=no
3426fi
3427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3428
3429if test $ac_cv_header_stdc = yes; then
3430  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432/* end confdefs.h.  */
3433#include <string.h>
3434
3435_ACEOF
3436if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3437  $EGREP "memchr" >/dev/null 2>&1; then :
3438
3439else
3440  ac_cv_header_stdc=no
3441fi
3442rm -f conftest*
3443
3444fi
3445
3446if test $ac_cv_header_stdc = yes; then
3447  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449/* end confdefs.h.  */
3450#include <stdlib.h>
3451
3452_ACEOF
3453if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3454  $EGREP "free" >/dev/null 2>&1; then :
3455
3456else
3457  ac_cv_header_stdc=no
3458fi
3459rm -f conftest*
3460
3461fi
3462
3463if test $ac_cv_header_stdc = yes; then
3464  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3465  if test "$cross_compiling" = yes; then :
3466  :
3467else
3468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469/* end confdefs.h.  */
3470#include <ctype.h>
3471#include <stdlib.h>
3472#if ((' ' & 0x0FF) == 0x020)
3473# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3474# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3475#else
3476# define ISLOWER(c) \
3477		   (('a' <= (c) && (c) <= 'i') \
3478		     || ('j' <= (c) && (c) <= 'r') \
3479		     || ('s' <= (c) && (c) <= 'z'))
3480# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3481#endif
3482
3483#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3484int
3485main ()
3486{
3487  int i;
3488  for (i = 0; i < 256; i++)
3489    if (XOR (islower (i), ISLOWER (i))
3490	|| toupper (i) != TOUPPER (i))
3491      return 2;
3492  return 0;
3493}
3494_ACEOF
3495if ac_fn_c_try_run "$LINENO"; then :
3496
3497else
3498  ac_cv_header_stdc=no
3499fi
3500rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3501  conftest.$ac_objext conftest.beam conftest.$ac_ext
3502fi
3503
3504fi
3505fi
3506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3507$as_echo "$ac_cv_header_stdc" >&6; }
3508if test $ac_cv_header_stdc = yes; then
3509
3510$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3511
3512fi
3513
3514# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3515for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3516		  inttypes.h stdint.h unistd.h
3517do :
3518  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3519ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3520"
3521if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3522  cat >>confdefs.h <<_ACEOF
3523#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3524_ACEOF
3525
3526fi
3527
3528done
3529
3530
3531
3532  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3533if test "x$ac_cv_header_minix_config_h" = xyes; then :
3534  MINIX=yes
3535else
3536  MINIX=
3537fi
3538
3539
3540  if test "$MINIX" = yes; then
3541
3542$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3543
3544
3545$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3546
3547
3548$as_echo "#define _MINIX 1" >>confdefs.h
3549
3550  fi
3551
3552
3553  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3554$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3555if ${ac_cv_safe_to_define___extensions__+:} false; then :
3556  $as_echo_n "(cached) " >&6
3557else
3558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559/* end confdefs.h.  */
3560
3561#         define __EXTENSIONS__ 1
3562          $ac_includes_default
3563int
3564main ()
3565{
3566
3567  ;
3568  return 0;
3569}
3570_ACEOF
3571if ac_fn_c_try_compile "$LINENO"; then :
3572  ac_cv_safe_to_define___extensions__=yes
3573else
3574  ac_cv_safe_to_define___extensions__=no
3575fi
3576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577fi
3578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3579$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3580  test $ac_cv_safe_to_define___extensions__ = yes &&
3581    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3582
3583  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3584
3585  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3586
3587  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3588
3589  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3590
3591
3592
3593# Initialize Automake
3594am__api_version='1.16'
3595
3596# Find a good install program.  We prefer a C program (faster),
3597# so one script is as good as another.  But avoid the broken or
3598# incompatible versions:
3599# SysV /etc/install, /usr/sbin/install
3600# SunOS /usr/etc/install
3601# IRIX /sbin/install
3602# AIX /bin/install
3603# AmigaOS /C/install, which installs bootblocks on floppy discs
3604# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3605# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3606# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3607# OS/2's system install, which has a completely different semantic
3608# ./install, which can be erroneously created by make from ./install.sh.
3609# Reject install programs that cannot install multiple files.
3610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3611$as_echo_n "checking for a BSD-compatible install... " >&6; }
3612if test -z "$INSTALL"; then
3613if ${ac_cv_path_install+:} false; then :
3614  $as_echo_n "(cached) " >&6
3615else
3616  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617for as_dir in $PATH
3618do
3619  IFS=$as_save_IFS
3620  test -z "$as_dir" && as_dir=.
3621    # Account for people who put trailing slashes in PATH elements.
3622case $as_dir/ in #((
3623  ./ | .// | /[cC]/* | \
3624  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3625  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3626  /usr/ucb/* ) ;;
3627  *)
3628    # OSF1 and SCO ODT 3.0 have their own names for install.
3629    # Don't use installbsd from OSF since it installs stuff as root
3630    # by default.
3631    for ac_prog in ginstall scoinst install; do
3632      for ac_exec_ext in '' $ac_executable_extensions; do
3633	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3634	  if test $ac_prog = install &&
3635	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3636	    # AIX install.  It has an incompatible calling convention.
3637	    :
3638	  elif test $ac_prog = install &&
3639	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3640	    # program-specific install script used by HP pwplus--don't use.
3641	    :
3642	  else
3643	    rm -rf conftest.one conftest.two conftest.dir
3644	    echo one > conftest.one
3645	    echo two > conftest.two
3646	    mkdir conftest.dir
3647	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3648	      test -s conftest.one && test -s conftest.two &&
3649	      test -s conftest.dir/conftest.one &&
3650	      test -s conftest.dir/conftest.two
3651	    then
3652	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3653	      break 3
3654	    fi
3655	  fi
3656	fi
3657      done
3658    done
3659    ;;
3660esac
3661
3662  done
3663IFS=$as_save_IFS
3664
3665rm -rf conftest.one conftest.two conftest.dir
3666
3667fi
3668  if test "${ac_cv_path_install+set}" = set; then
3669    INSTALL=$ac_cv_path_install
3670  else
3671    # As a last resort, use the slow shell script.  Don't cache a
3672    # value for INSTALL within a source directory, because that will
3673    # break other packages using the cache if that directory is
3674    # removed, or if the value is a relative name.
3675    INSTALL=$ac_install_sh
3676  fi
3677fi
3678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3679$as_echo "$INSTALL" >&6; }
3680
3681# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3682# It thinks the first close brace ends the variable substitution.
3683test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3684
3685test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3686
3687test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3688
3689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3690$as_echo_n "checking whether build environment is sane... " >&6; }
3691# Reject unsafe characters in $srcdir or the absolute working directory
3692# name.  Accept space and tab only in the latter.
3693am_lf='
3694'
3695case `pwd` in
3696  *[\\\"\#\$\&\'\`$am_lf]*)
3697    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3698esac
3699case $srcdir in
3700  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3701    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3702esac
3703
3704# Do 'set' in a subshell so we don't clobber the current shell's
3705# arguments.  Must try -L first in case configure is actually a
3706# symlink; some systems play weird games with the mod time of symlinks
3707# (eg FreeBSD returns the mod time of the symlink's containing
3708# directory).
3709if (
3710   am_has_slept=no
3711   for am_try in 1 2; do
3712     echo "timestamp, slept: $am_has_slept" > conftest.file
3713     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3714     if test "$*" = "X"; then
3715	# -L didn't work.
3716	set X `ls -t "$srcdir/configure" conftest.file`
3717     fi
3718     if test "$*" != "X $srcdir/configure conftest.file" \
3719	&& test "$*" != "X conftest.file $srcdir/configure"; then
3720
3721	# If neither matched, then we have a broken ls.  This can happen
3722	# if, for instance, CONFIG_SHELL is bash and it inherits a
3723	# broken ls alias from the environment.  This has actually
3724	# happened.  Such a system could not be considered "sane".
3725	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3726  alias in your environment" "$LINENO" 5
3727     fi
3728     if test "$2" = conftest.file || test $am_try -eq 2; then
3729       break
3730     fi
3731     # Just in case.
3732     sleep 1
3733     am_has_slept=yes
3734   done
3735   test "$2" = conftest.file
3736   )
3737then
3738   # Ok.
3739   :
3740else
3741   as_fn_error $? "newly created file is older than distributed files!
3742Check your system clock" "$LINENO" 5
3743fi
3744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3745$as_echo "yes" >&6; }
3746# If we didn't sleep, we still need to ensure time stamps of config.status and
3747# generated files are strictly newer.
3748am_sleep_pid=
3749if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3750  ( sleep 1 ) &
3751  am_sleep_pid=$!
3752fi
3753
3754rm -f conftest.file
3755
3756test "$program_prefix" != NONE &&
3757  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3758# Use a double $ so make ignores it.
3759test "$program_suffix" != NONE &&
3760  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3761# Double any \ or $.
3762# By default was `s,x,x', remove it if useless.
3763ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3764program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3765
3766if test x"${MISSING+set}" != xset; then
3767  case $am_aux_dir in
3768  *\ * | *\	*)
3769    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3770  *)
3771    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3772  esac
3773fi
3774# Use eval to expand $SHELL
3775if eval "$MISSING --is-lightweight"; then
3776  am_missing_run="$MISSING "
3777else
3778  am_missing_run=
3779  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3780$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3781fi
3782
3783if test x"${install_sh+set}" != xset; then
3784  case $am_aux_dir in
3785  *\ * | *\	*)
3786    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3787  *)
3788    install_sh="\${SHELL} $am_aux_dir/install-sh"
3789  esac
3790fi
3791
3792# Installed binaries are usually stripped using 'strip' when the user
3793# run "make install-strip".  However 'strip' might not be the right
3794# tool to use in cross-compilation environments, therefore Automake
3795# will honor the 'STRIP' environment variable to overrule this program.
3796if test "$cross_compiling" != no; then
3797  if test -n "$ac_tool_prefix"; then
3798  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3799set dummy ${ac_tool_prefix}strip; ac_word=$2
3800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3801$as_echo_n "checking for $ac_word... " >&6; }
3802if ${ac_cv_prog_STRIP+:} false; then :
3803  $as_echo_n "(cached) " >&6
3804else
3805  if test -n "$STRIP"; then
3806  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3807else
3808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809for as_dir in $PATH
3810do
3811  IFS=$as_save_IFS
3812  test -z "$as_dir" && as_dir=.
3813    for ac_exec_ext in '' $ac_executable_extensions; do
3814  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3815    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3816    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3817    break 2
3818  fi
3819done
3820  done
3821IFS=$as_save_IFS
3822
3823fi
3824fi
3825STRIP=$ac_cv_prog_STRIP
3826if test -n "$STRIP"; then
3827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3828$as_echo "$STRIP" >&6; }
3829else
3830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3831$as_echo "no" >&6; }
3832fi
3833
3834
3835fi
3836if test -z "$ac_cv_prog_STRIP"; then
3837  ac_ct_STRIP=$STRIP
3838  # Extract the first word of "strip", so it can be a program name with args.
3839set dummy strip; ac_word=$2
3840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3841$as_echo_n "checking for $ac_word... " >&6; }
3842if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3843  $as_echo_n "(cached) " >&6
3844else
3845  if test -n "$ac_ct_STRIP"; then
3846  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3847else
3848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849for as_dir in $PATH
3850do
3851  IFS=$as_save_IFS
3852  test -z "$as_dir" && as_dir=.
3853    for ac_exec_ext in '' $ac_executable_extensions; do
3854  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3855    ac_cv_prog_ac_ct_STRIP="strip"
3856    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3857    break 2
3858  fi
3859done
3860  done
3861IFS=$as_save_IFS
3862
3863fi
3864fi
3865ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3866if test -n "$ac_ct_STRIP"; then
3867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3868$as_echo "$ac_ct_STRIP" >&6; }
3869else
3870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3871$as_echo "no" >&6; }
3872fi
3873
3874  if test "x$ac_ct_STRIP" = x; then
3875    STRIP=":"
3876  else
3877    case $cross_compiling:$ac_tool_warned in
3878yes:)
3879{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3880$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3881ac_tool_warned=yes ;;
3882esac
3883    STRIP=$ac_ct_STRIP
3884  fi
3885else
3886  STRIP="$ac_cv_prog_STRIP"
3887fi
3888
3889fi
3890INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3891
3892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3893$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3894if test -z "$MKDIR_P"; then
3895  if ${ac_cv_path_mkdir+:} false; then :
3896  $as_echo_n "(cached) " >&6
3897else
3898  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3900do
3901  IFS=$as_save_IFS
3902  test -z "$as_dir" && as_dir=.
3903    for ac_prog in mkdir gmkdir; do
3904	 for ac_exec_ext in '' $ac_executable_extensions; do
3905	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3906	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3907	     'mkdir (GNU coreutils) '* | \
3908	     'mkdir (coreutils) '* | \
3909	     'mkdir (fileutils) '4.1*)
3910	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3911	       break 3;;
3912	   esac
3913	 done
3914       done
3915  done
3916IFS=$as_save_IFS
3917
3918fi
3919
3920  test -d ./--version && rmdir ./--version
3921  if test "${ac_cv_path_mkdir+set}" = set; then
3922    MKDIR_P="$ac_cv_path_mkdir -p"
3923  else
3924    # As a last resort, use the slow shell script.  Don't cache a
3925    # value for MKDIR_P within a source directory, because that will
3926    # break other packages using the cache if that directory is
3927    # removed, or if the value is a relative name.
3928    MKDIR_P="$ac_install_sh -d"
3929  fi
3930fi
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3932$as_echo "$MKDIR_P" >&6; }
3933
3934for ac_prog in gawk mawk nawk awk
3935do
3936  # Extract the first word of "$ac_prog", so it can be a program name with args.
3937set dummy $ac_prog; ac_word=$2
3938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3939$as_echo_n "checking for $ac_word... " >&6; }
3940if ${ac_cv_prog_AWK+:} false; then :
3941  $as_echo_n "(cached) " >&6
3942else
3943  if test -n "$AWK"; then
3944  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3945else
3946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947for as_dir in $PATH
3948do
3949  IFS=$as_save_IFS
3950  test -z "$as_dir" && as_dir=.
3951    for ac_exec_ext in '' $ac_executable_extensions; do
3952  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3953    ac_cv_prog_AWK="$ac_prog"
3954    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3955    break 2
3956  fi
3957done
3958  done
3959IFS=$as_save_IFS
3960
3961fi
3962fi
3963AWK=$ac_cv_prog_AWK
3964if test -n "$AWK"; then
3965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3966$as_echo "$AWK" >&6; }
3967else
3968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3969$as_echo "no" >&6; }
3970fi
3971
3972
3973  test -n "$AWK" && break
3974done
3975
3976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3977$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3978set x ${MAKE-make}
3979ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3980if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3981  $as_echo_n "(cached) " >&6
3982else
3983  cat >conftest.make <<\_ACEOF
3984SHELL = /bin/sh
3985all:
3986	@echo '@@@%%%=$(MAKE)=@@@%%%'
3987_ACEOF
3988# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3989case `${MAKE-make} -f conftest.make 2>/dev/null` in
3990  *@@@%%%=?*=@@@%%%*)
3991    eval ac_cv_prog_make_${ac_make}_set=yes;;
3992  *)
3993    eval ac_cv_prog_make_${ac_make}_set=no;;
3994esac
3995rm -f conftest.make
3996fi
3997if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3999$as_echo "yes" >&6; }
4000  SET_MAKE=
4001else
4002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4003$as_echo "no" >&6; }
4004  SET_MAKE="MAKE=${MAKE-make}"
4005fi
4006
4007rm -rf .tst 2>/dev/null
4008mkdir .tst 2>/dev/null
4009if test -d .tst; then
4010  am__leading_dot=.
4011else
4012  am__leading_dot=_
4013fi
4014rmdir .tst 2>/dev/null
4015
4016DEPDIR="${am__leading_dot}deps"
4017
4018ac_config_commands="$ac_config_commands depfiles"
4019
4020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4021$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4022cat > confinc.mk << 'END'
4023am__doit:
4024	@echo this is the am__doit target >confinc.out
4025.PHONY: am__doit
4026END
4027am__include="#"
4028am__quote=
4029# BSD make does it like this.
4030echo '.include "confinc.mk" # ignored' > confmf.BSD
4031# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4032echo 'include confinc.mk # ignored' > confmf.GNU
4033_am_result=no
4034for s in GNU BSD; do
4035  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4036   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4037   ac_status=$?
4038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039   (exit $ac_status); }
4040  case $?:`cat confinc.out 2>/dev/null` in #(
4041  '0:this is the am__doit target') :
4042    case $s in #(
4043  BSD) :
4044    am__include='.include' am__quote='"' ;; #(
4045  *) :
4046    am__include='include' am__quote='' ;;
4047esac ;; #(
4048  *) :
4049     ;;
4050esac
4051  if test "$am__include" != "#"; then
4052    _am_result="yes ($s style)"
4053    break
4054  fi
4055done
4056rm -f confinc.* confmf.*
4057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4058$as_echo "${_am_result}" >&6; }
4059
4060# Check whether --enable-dependency-tracking was given.
4061if test "${enable_dependency_tracking+set}" = set; then :
4062  enableval=$enable_dependency_tracking;
4063fi
4064
4065if test "x$enable_dependency_tracking" != xno; then
4066  am_depcomp="$ac_aux_dir/depcomp"
4067  AMDEPBACKSLASH='\'
4068  am__nodep='_no'
4069fi
4070 if test "x$enable_dependency_tracking" != xno; then
4071  AMDEP_TRUE=
4072  AMDEP_FALSE='#'
4073else
4074  AMDEP_TRUE='#'
4075  AMDEP_FALSE=
4076fi
4077
4078
4079# Check whether --enable-silent-rules was given.
4080if test "${enable_silent_rules+set}" = set; then :
4081  enableval=$enable_silent_rules;
4082fi
4083
4084case $enable_silent_rules in # (((
4085  yes) AM_DEFAULT_VERBOSITY=0;;
4086   no) AM_DEFAULT_VERBOSITY=1;;
4087    *) AM_DEFAULT_VERBOSITY=1;;
4088esac
4089am_make=${MAKE-make}
4090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4091$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4092if ${am_cv_make_support_nested_variables+:} false; then :
4093  $as_echo_n "(cached) " >&6
4094else
4095  if $as_echo 'TRUE=$(BAR$(V))
4096BAR0=false
4097BAR1=true
4098V=1
4099am__doit:
4100	@$(TRUE)
4101.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4102  am_cv_make_support_nested_variables=yes
4103else
4104  am_cv_make_support_nested_variables=no
4105fi
4106fi
4107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4108$as_echo "$am_cv_make_support_nested_variables" >&6; }
4109if test $am_cv_make_support_nested_variables = yes; then
4110    AM_V='$(V)'
4111  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4112else
4113  AM_V=$AM_DEFAULT_VERBOSITY
4114  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4115fi
4116AM_BACKSLASH='\'
4117
4118if test "`cd $srcdir && pwd`" != "`pwd`"; then
4119  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4120  # is not polluted with repeated "-I."
4121  am__isrc=' -I$(srcdir)'
4122  # test to see if srcdir already configured
4123  if test -f $srcdir/config.status; then
4124    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4125  fi
4126fi
4127
4128# test whether we have cygpath
4129if test -z "$CYGPATH_W"; then
4130  if (cygpath --version) >/dev/null 2>/dev/null; then
4131    CYGPATH_W='cygpath -w'
4132  else
4133    CYGPATH_W=echo
4134  fi
4135fi
4136
4137
4138# Define the identity of the package.
4139 PACKAGE='xkbprint'
4140 VERSION='1.0.5'
4141
4142
4143cat >>confdefs.h <<_ACEOF
4144#define PACKAGE "$PACKAGE"
4145_ACEOF
4146
4147
4148cat >>confdefs.h <<_ACEOF
4149#define VERSION "$VERSION"
4150_ACEOF
4151
4152# Some tools Automake needs.
4153
4154ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4155
4156
4157AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4158
4159
4160AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4161
4162
4163AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4164
4165
4166MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4167
4168# For better backward compatibility.  To be removed once Automake 1.9.x
4169# dies out for good.  For more background, see:
4170# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4171# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4172mkdir_p='$(MKDIR_P)'
4173
4174# We need awk for the "check" target (and possibly the TAP driver).  The
4175# system "awk" is bad on some platforms.
4176# Always define AMTAR for backward compatibility.  Yes, it's still used
4177# in the wild :-(  We should find a proper way to deprecate it ...
4178AMTAR='$${TAR-tar}'
4179
4180
4181# We'll loop over all known methods to create a tar archive until one works.
4182_am_tools='gnutar  pax cpio none'
4183
4184am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4185
4186
4187
4188
4189
4190depcc="$CC"   am_compiler_list=
4191
4192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4193$as_echo_n "checking dependency style of $depcc... " >&6; }
4194if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4195  $as_echo_n "(cached) " >&6
4196else
4197  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4198  # We make a subdir and do the tests there.  Otherwise we can end up
4199  # making bogus files that we don't know about and never remove.  For
4200  # instance it was reported that on HP-UX the gcc test will end up
4201  # making a dummy file named 'D' -- because '-MD' means "put the output
4202  # in D".
4203  rm -rf conftest.dir
4204  mkdir conftest.dir
4205  # Copy depcomp to subdir because otherwise we won't find it if we're
4206  # using a relative directory.
4207  cp "$am_depcomp" conftest.dir
4208  cd conftest.dir
4209  # We will build objects and dependencies in a subdirectory because
4210  # it helps to detect inapplicable dependency modes.  For instance
4211  # both Tru64's cc and ICC support -MD to output dependencies as a
4212  # side effect of compilation, but ICC will put the dependencies in
4213  # the current directory while Tru64 will put them in the object
4214  # directory.
4215  mkdir sub
4216
4217  am_cv_CC_dependencies_compiler_type=none
4218  if test "$am_compiler_list" = ""; then
4219     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4220  fi
4221  am__universal=false
4222  case " $depcc " in #(
4223     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4224     esac
4225
4226  for depmode in $am_compiler_list; do
4227    # Setup a source with many dependencies, because some compilers
4228    # like to wrap large dependency lists on column 80 (with \), and
4229    # we should not choose a depcomp mode which is confused by this.
4230    #
4231    # We need to recreate these files for each test, as the compiler may
4232    # overwrite some of them when testing with obscure command lines.
4233    # This happens at least with the AIX C compiler.
4234    : > sub/conftest.c
4235    for i in 1 2 3 4 5 6; do
4236      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4237      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4238      # Solaris 10 /bin/sh.
4239      echo '/* dummy */' > sub/conftst$i.h
4240    done
4241    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4242
4243    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4244    # mode.  It turns out that the SunPro C++ compiler does not properly
4245    # handle '-M -o', and we need to detect this.  Also, some Intel
4246    # versions had trouble with output in subdirs.
4247    am__obj=sub/conftest.${OBJEXT-o}
4248    am__minus_obj="-o $am__obj"
4249    case $depmode in
4250    gcc)
4251      # This depmode causes a compiler race in universal mode.
4252      test "$am__universal" = false || continue
4253      ;;
4254    nosideeffect)
4255      # After this tag, mechanisms are not by side-effect, so they'll
4256      # only be used when explicitly requested.
4257      if test "x$enable_dependency_tracking" = xyes; then
4258	continue
4259      else
4260	break
4261      fi
4262      ;;
4263    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4264      # This compiler won't grok '-c -o', but also, the minuso test has
4265      # not run yet.  These depmodes are late enough in the game, and
4266      # so weak that their functioning should not be impacted.
4267      am__obj=conftest.${OBJEXT-o}
4268      am__minus_obj=
4269      ;;
4270    none) break ;;
4271    esac
4272    if depmode=$depmode \
4273       source=sub/conftest.c object=$am__obj \
4274       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4275       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4276         >/dev/null 2>conftest.err &&
4277       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4278       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4279       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4280       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4281      # icc doesn't choke on unknown options, it will just issue warnings
4282      # or remarks (even with -Werror).  So we grep stderr for any message
4283      # that says an option was ignored or not supported.
4284      # When given -MP, icc 7.0 and 7.1 complain thusly:
4285      #   icc: Command line warning: ignoring option '-M'; no argument required
4286      # The diagnosis changed in icc 8.0:
4287      #   icc: Command line remark: option '-MP' not supported
4288      if (grep 'ignoring option' conftest.err ||
4289          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4290        am_cv_CC_dependencies_compiler_type=$depmode
4291        break
4292      fi
4293    fi
4294  done
4295
4296  cd ..
4297  rm -rf conftest.dir
4298else
4299  am_cv_CC_dependencies_compiler_type=none
4300fi
4301
4302fi
4303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4304$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4305CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4306
4307 if
4308  test "x$enable_dependency_tracking" != xno \
4309  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4310  am__fastdepCC_TRUE=
4311  am__fastdepCC_FALSE='#'
4312else
4313  am__fastdepCC_TRUE='#'
4314  am__fastdepCC_FALSE=
4315fi
4316
4317
4318
4319# POSIX will say in a future version that running "rm -f" with no argument
4320# is OK; and we want to be able to make that assumption in our Makefile
4321# recipes.  So use an aggressive probe to check that the usage we want is
4322# actually supported "in the wild" to an acceptable degree.
4323# See automake bug#10828.
4324# To make any issue more visible, cause the running configure to be aborted
4325# by default if the 'rm' program in use doesn't match our expectations; the
4326# user can still override this though.
4327if rm -f && rm -fr && rm -rf; then : OK; else
4328  cat >&2 <<'END'
4329Oops!
4330
4331Your 'rm' program seems unable to run without file operands specified
4332on the command line, even when the '-f' option is present.  This is contrary
4333to the behaviour of most rm programs out there, and not conforming with
4334the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4335
4336Please tell bug-automake@gnu.org about your system, including the value
4337of your $PATH and any error possibly output before this message.  This
4338can help us improve future automake versions.
4339
4340END
4341  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4342    echo 'Configuration will proceed anyway, since you have set the' >&2
4343    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4344    echo >&2
4345  else
4346    cat >&2 <<'END'
4347Aborting the configuration process, to ensure you take notice of the issue.
4348
4349You can download and install GNU coreutils to get an 'rm' implementation
4350that behaves properly: <https://www.gnu.org/software/coreutils/>.
4351
4352If you want to complete the configuration process using your problematic
4353'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4354to "yes", and re-run configure.
4355
4356END
4357    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4358  fi
4359fi
4360
4361
4362# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4375$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4376if ${ac_cv_prog_cc_c99+:} false; then :
4377  $as_echo_n "(cached) " >&6
4378else
4379  ac_cv_prog_cc_c99=no
4380ac_save_CC=$CC
4381cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382/* end confdefs.h.  */
4383#include <stdarg.h>
4384#include <stdbool.h>
4385#include <stdlib.h>
4386#include <wchar.h>
4387#include <stdio.h>
4388
4389// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4390#define debug(...) fprintf (stderr, __VA_ARGS__)
4391#define showlist(...) puts (#__VA_ARGS__)
4392#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4393static void
4394test_varargs_macros (void)
4395{
4396  int x = 1234;
4397  int y = 5678;
4398  debug ("Flag");
4399  debug ("X = %d\n", x);
4400  showlist (The first, second, and third items.);
4401  report (x>y, "x is %d but y is %d", x, y);
4402}
4403
4404// Check long long types.
4405#define BIG64 18446744073709551615ull
4406#define BIG32 4294967295ul
4407#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4408#if !BIG_OK
4409  your preprocessor is broken;
4410#endif
4411#if BIG_OK
4412#else
4413  your preprocessor is broken;
4414#endif
4415static long long int bignum = -9223372036854775807LL;
4416static unsigned long long int ubignum = BIG64;
4417
4418struct incomplete_array
4419{
4420  int datasize;
4421  double data[];
4422};
4423
4424struct named_init {
4425  int number;
4426  const wchar_t *name;
4427  double average;
4428};
4429
4430typedef const char *ccp;
4431
4432static inline int
4433test_restrict (ccp restrict text)
4434{
4435  // See if C++-style comments work.
4436  // Iterate through items via the restricted pointer.
4437  // Also check for declarations in for loops.
4438  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4439    continue;
4440  return 0;
4441}
4442
4443// Check varargs and va_copy.
4444static void
4445test_varargs (const char *format, ...)
4446{
4447  va_list args;
4448  va_start (args, format);
4449  va_list args_copy;
4450  va_copy (args_copy, args);
4451
4452  const char *str;
4453  int number;
4454  float fnumber;
4455
4456  while (*format)
4457    {
4458      switch (*format++)
4459	{
4460	case 's': // string
4461	  str = va_arg (args_copy, const char *);
4462	  break;
4463	case 'd': // int
4464	  number = va_arg (args_copy, int);
4465	  break;
4466	case 'f': // float
4467	  fnumber = va_arg (args_copy, double);
4468	  break;
4469	default:
4470	  break;
4471	}
4472    }
4473  va_end (args_copy);
4474  va_end (args);
4475}
4476
4477int
4478main ()
4479{
4480
4481  // Check bool.
4482  _Bool success = false;
4483
4484  // Check restrict.
4485  if (test_restrict ("String literal") == 0)
4486    success = true;
4487  char *restrict newvar = "Another string";
4488
4489  // Check varargs.
4490  test_varargs ("s, d' f .", "string", 65, 34.234);
4491  test_varargs_macros ();
4492
4493  // Check flexible array members.
4494  struct incomplete_array *ia =
4495    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4496  ia->datasize = 10;
4497  for (int i = 0; i < ia->datasize; ++i)
4498    ia->data[i] = i * 1.234;
4499
4500  // Check named initializers.
4501  struct named_init ni = {
4502    .number = 34,
4503    .name = L"Test wide string",
4504    .average = 543.34343,
4505  };
4506
4507  ni.number = 58;
4508
4509  int dynamic_array[ni.number];
4510  dynamic_array[ni.number - 1] = 543;
4511
4512  // work around unused variable warnings
4513  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4514	  || dynamic_array[ni.number - 1] != 543);
4515
4516  ;
4517  return 0;
4518}
4519_ACEOF
4520for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4521do
4522  CC="$ac_save_CC $ac_arg"
4523  if ac_fn_c_try_compile "$LINENO"; then :
4524  ac_cv_prog_cc_c99=$ac_arg
4525fi
4526rm -f core conftest.err conftest.$ac_objext
4527  test "x$ac_cv_prog_cc_c99" != "xno" && break
4528done
4529rm -f conftest.$ac_ext
4530CC=$ac_save_CC
4531
4532fi
4533# AC_CACHE_VAL
4534case "x$ac_cv_prog_cc_c99" in
4535  x)
4536    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4537$as_echo "none needed" >&6; } ;;
4538  xno)
4539    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4540$as_echo "unsupported" >&6; } ;;
4541  *)
4542    CC="$CC $ac_cv_prog_cc_c99"
4543    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4544$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4545esac
4546if test "x$ac_cv_prog_cc_c99" != xno; then :
4547
4548fi
4549
4550
4551
4552
4553
4554
4555ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4556if test "x$ac_cv_have_decl___clang__" = xyes; then :
4557  CLANGCC="yes"
4558else
4559  CLANGCC="no"
4560fi
4561
4562ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4563if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4564  INTELCC="yes"
4565else
4566  INTELCC="no"
4567fi
4568
4569ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4570if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4571  SUNCC="yes"
4572else
4573  SUNCC="no"
4574fi
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4585	if test -n "$ac_tool_prefix"; then
4586  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4587set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4589$as_echo_n "checking for $ac_word... " >&6; }
4590if ${ac_cv_path_PKG_CONFIG+:} false; then :
4591  $as_echo_n "(cached) " >&6
4592else
4593  case $PKG_CONFIG in
4594  [\\/]* | ?:[\\/]*)
4595  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4596  ;;
4597  *)
4598  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599for as_dir in $PATH
4600do
4601  IFS=$as_save_IFS
4602  test -z "$as_dir" && as_dir=.
4603    for ac_exec_ext in '' $ac_executable_extensions; do
4604  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4605    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4606    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4607    break 2
4608  fi
4609done
4610  done
4611IFS=$as_save_IFS
4612
4613  ;;
4614esac
4615fi
4616PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4617if test -n "$PKG_CONFIG"; then
4618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4619$as_echo "$PKG_CONFIG" >&6; }
4620else
4621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4622$as_echo "no" >&6; }
4623fi
4624
4625
4626fi
4627if test -z "$ac_cv_path_PKG_CONFIG"; then
4628  ac_pt_PKG_CONFIG=$PKG_CONFIG
4629  # Extract the first word of "pkg-config", so it can be a program name with args.
4630set dummy pkg-config; ac_word=$2
4631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4632$as_echo_n "checking for $ac_word... " >&6; }
4633if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4634  $as_echo_n "(cached) " >&6
4635else
4636  case $ac_pt_PKG_CONFIG in
4637  [\\/]* | ?:[\\/]*)
4638  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4639  ;;
4640  *)
4641  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642for as_dir in $PATH
4643do
4644  IFS=$as_save_IFS
4645  test -z "$as_dir" && as_dir=.
4646    for ac_exec_ext in '' $ac_executable_extensions; do
4647  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4648    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4649    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4650    break 2
4651  fi
4652done
4653  done
4654IFS=$as_save_IFS
4655
4656  ;;
4657esac
4658fi
4659ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4660if test -n "$ac_pt_PKG_CONFIG"; then
4661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4662$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4663else
4664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4665$as_echo "no" >&6; }
4666fi
4667
4668  if test "x$ac_pt_PKG_CONFIG" = x; then
4669    PKG_CONFIG=""
4670  else
4671    case $cross_compiling:$ac_tool_warned in
4672yes:)
4673{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4674$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4675ac_tool_warned=yes ;;
4676esac
4677    PKG_CONFIG=$ac_pt_PKG_CONFIG
4678  fi
4679else
4680  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4681fi
4682
4683fi
4684if test -n "$PKG_CONFIG"; then
4685	_pkg_min_version=0.9.0
4686	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4687$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4688	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4689		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4690$as_echo "yes" >&6; }
4691	else
4692		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4693$as_echo "no" >&6; }
4694		PKG_CONFIG=""
4695	fi
4696fi
4697# Make sure we can run config.sub.
4698$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4699  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4700
4701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4702$as_echo_n "checking build system type... " >&6; }
4703if ${ac_cv_build+:} false; then :
4704  $as_echo_n "(cached) " >&6
4705else
4706  ac_build_alias=$build_alias
4707test "x$ac_build_alias" = x &&
4708  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4709test "x$ac_build_alias" = x &&
4710  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4711ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4712  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4713
4714fi
4715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4716$as_echo "$ac_cv_build" >&6; }
4717case $ac_cv_build in
4718*-*-*) ;;
4719*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4720esac
4721build=$ac_cv_build
4722ac_save_IFS=$IFS; IFS='-'
4723set x $ac_cv_build
4724shift
4725build_cpu=$1
4726build_vendor=$2
4727shift; shift
4728# Remember, the first character of IFS is used to create $*,
4729# except with old shells:
4730build_os=$*
4731IFS=$ac_save_IFS
4732case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4733
4734
4735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4736$as_echo_n "checking host system type... " >&6; }
4737if ${ac_cv_host+:} false; then :
4738  $as_echo_n "(cached) " >&6
4739else
4740  if test "x$host_alias" = x; then
4741  ac_cv_host=$ac_cv_build
4742else
4743  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4744    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4745fi
4746
4747fi
4748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4749$as_echo "$ac_cv_host" >&6; }
4750case $ac_cv_host in
4751*-*-*) ;;
4752*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4753esac
4754host=$ac_cv_host
4755ac_save_IFS=$IFS; IFS='-'
4756set x $ac_cv_host
4757shift
4758host_cpu=$1
4759host_vendor=$2
4760shift; shift
4761# Remember, the first character of IFS is used to create $*,
4762# except with old shells:
4763host_os=$*
4764IFS=$ac_save_IFS
4765case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4766
4767
4768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4769$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4770if ${ac_cv_path_SED+:} false; then :
4771  $as_echo_n "(cached) " >&6
4772else
4773            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4774     for ac_i in 1 2 3 4 5 6 7; do
4775       ac_script="$ac_script$as_nl$ac_script"
4776     done
4777     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4778     { ac_script=; unset ac_script;}
4779     if test -z "$SED"; then
4780  ac_path_SED_found=false
4781  # Loop through the user's path and test for each of PROGNAME-LIST
4782  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783for as_dir in $PATH
4784do
4785  IFS=$as_save_IFS
4786  test -z "$as_dir" && as_dir=.
4787    for ac_prog in sed gsed; do
4788    for ac_exec_ext in '' $ac_executable_extensions; do
4789      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4790      as_fn_executable_p "$ac_path_SED" || continue
4791# Check for GNU ac_path_SED and select it if it is found.
4792  # Check for GNU $ac_path_SED
4793case `"$ac_path_SED" --version 2>&1` in
4794*GNU*)
4795  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4796*)
4797  ac_count=0
4798  $as_echo_n 0123456789 >"conftest.in"
4799  while :
4800  do
4801    cat "conftest.in" "conftest.in" >"conftest.tmp"
4802    mv "conftest.tmp" "conftest.in"
4803    cp "conftest.in" "conftest.nl"
4804    $as_echo '' >> "conftest.nl"
4805    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4806    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4807    as_fn_arith $ac_count + 1 && ac_count=$as_val
4808    if test $ac_count -gt ${ac_path_SED_max-0}; then
4809      # Best one so far, save it but keep looking for a better one
4810      ac_cv_path_SED="$ac_path_SED"
4811      ac_path_SED_max=$ac_count
4812    fi
4813    # 10*(2^10) chars as input seems more than enough
4814    test $ac_count -gt 10 && break
4815  done
4816  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4817esac
4818
4819      $ac_path_SED_found && break 3
4820    done
4821  done
4822  done
4823IFS=$as_save_IFS
4824  if test -z "$ac_cv_path_SED"; then
4825    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4826  fi
4827else
4828  ac_cv_path_SED=$SED
4829fi
4830
4831fi
4832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4833$as_echo "$ac_cv_path_SED" >&6; }
4834 SED="$ac_cv_path_SED"
4835  rm -f conftest.sed
4836
4837
4838
4839
4840
4841
4842# Check whether --enable-selective-werror was given.
4843if test "${enable_selective_werror+set}" = set; then :
4844  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4845else
4846  SELECTIVE_WERROR=yes
4847fi
4848
4849
4850
4851
4852
4853# -v is too short to test reliably with XORG_TESTSET_CFLAG
4854if test "x$SUNCC" = "xyes"; then
4855    BASE_CFLAGS="-v"
4856else
4857    BASE_CFLAGS=""
4858fi
4859
4860# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874xorg_testset_save_CFLAGS="$CFLAGS"
4875
4876if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4877	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4878	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4879$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4880if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4881  $as_echo_n "(cached) " >&6
4882else
4883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884/* end confdefs.h.  */
4885int i;
4886_ACEOF
4887if ac_fn_c_try_compile "$LINENO"; then :
4888  xorg_cv_cc_flag_unknown_warning_option=yes
4889else
4890  xorg_cv_cc_flag_unknown_warning_option=no
4891fi
4892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4893fi
4894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4895$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4896	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4897	CFLAGS="$xorg_testset_save_CFLAGS"
4898fi
4899
4900if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4901	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4902		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4903	fi
4904	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4905	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4906$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4907if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4908  $as_echo_n "(cached) " >&6
4909else
4910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911/* end confdefs.h.  */
4912int i;
4913_ACEOF
4914if ac_fn_c_try_compile "$LINENO"; then :
4915  xorg_cv_cc_flag_unused_command_line_argument=yes
4916else
4917  xorg_cv_cc_flag_unused_command_line_argument=no
4918fi
4919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4920fi
4921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4922$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4923	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4924	CFLAGS="$xorg_testset_save_CFLAGS"
4925fi
4926
4927found="no"
4928
4929	if test $found = "no" ; then
4930		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4931			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4932		fi
4933
4934		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4935			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4936		fi
4937
4938		CFLAGS="$CFLAGS -Wall"
4939
4940		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4941$as_echo_n "checking if $CC supports -Wall... " >&6; }
4942		cacheid=xorg_cv_cc_flag__Wall
4943		if eval \${$cacheid+:} false; then :
4944  $as_echo_n "(cached) " >&6
4945else
4946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4947/* end confdefs.h.  */
4948int i;
4949int
4950main ()
4951{
4952
4953  ;
4954  return 0;
4955}
4956_ACEOF
4957if ac_fn_c_try_link "$LINENO"; then :
4958  eval $cacheid=yes
4959else
4960  eval $cacheid=no
4961fi
4962rm -f core conftest.err conftest.$ac_objext \
4963    conftest$ac_exeext conftest.$ac_ext
4964fi
4965
4966
4967		CFLAGS="$xorg_testset_save_CFLAGS"
4968
4969		eval supported=\$$cacheid
4970		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4971$as_echo "$supported" >&6; }
4972		if test "$supported" = "yes" ; then
4973			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4974			found="yes"
4975		fi
4976	fi
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992xorg_testset_save_CFLAGS="$CFLAGS"
4993
4994if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4995	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4996	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4997$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4998if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4999  $as_echo_n "(cached) " >&6
5000else
5001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5002/* end confdefs.h.  */
5003int i;
5004_ACEOF
5005if ac_fn_c_try_compile "$LINENO"; then :
5006  xorg_cv_cc_flag_unknown_warning_option=yes
5007else
5008  xorg_cv_cc_flag_unknown_warning_option=no
5009fi
5010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5011fi
5012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5013$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5014	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5015	CFLAGS="$xorg_testset_save_CFLAGS"
5016fi
5017
5018if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5019	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5020		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5021	fi
5022	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5023	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5024$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5025if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5026  $as_echo_n "(cached) " >&6
5027else
5028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029/* end confdefs.h.  */
5030int i;
5031_ACEOF
5032if ac_fn_c_try_compile "$LINENO"; then :
5033  xorg_cv_cc_flag_unused_command_line_argument=yes
5034else
5035  xorg_cv_cc_flag_unused_command_line_argument=no
5036fi
5037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5038fi
5039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5040$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5041	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5042	CFLAGS="$xorg_testset_save_CFLAGS"
5043fi
5044
5045found="no"
5046
5047	if test $found = "no" ; then
5048		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5049			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5050		fi
5051
5052		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5053			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5054		fi
5055
5056		CFLAGS="$CFLAGS -Wpointer-arith"
5057
5058		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5059$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5060		cacheid=xorg_cv_cc_flag__Wpointer_arith
5061		if eval \${$cacheid+:} false; then :
5062  $as_echo_n "(cached) " >&6
5063else
5064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5065/* end confdefs.h.  */
5066int i;
5067int
5068main ()
5069{
5070
5071  ;
5072  return 0;
5073}
5074_ACEOF
5075if ac_fn_c_try_link "$LINENO"; then :
5076  eval $cacheid=yes
5077else
5078  eval $cacheid=no
5079fi
5080rm -f core conftest.err conftest.$ac_objext \
5081    conftest$ac_exeext conftest.$ac_ext
5082fi
5083
5084
5085		CFLAGS="$xorg_testset_save_CFLAGS"
5086
5087		eval supported=\$$cacheid
5088		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5089$as_echo "$supported" >&6; }
5090		if test "$supported" = "yes" ; then
5091			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5092			found="yes"
5093		fi
5094	fi
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110xorg_testset_save_CFLAGS="$CFLAGS"
5111
5112if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5113	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5114	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5115$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5116if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5117  $as_echo_n "(cached) " >&6
5118else
5119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120/* end confdefs.h.  */
5121int i;
5122_ACEOF
5123if ac_fn_c_try_compile "$LINENO"; then :
5124  xorg_cv_cc_flag_unknown_warning_option=yes
5125else
5126  xorg_cv_cc_flag_unknown_warning_option=no
5127fi
5128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5129fi
5130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5131$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5132	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5133	CFLAGS="$xorg_testset_save_CFLAGS"
5134fi
5135
5136if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5137	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5138		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5139	fi
5140	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5141	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5142$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5143if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5144  $as_echo_n "(cached) " >&6
5145else
5146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5147/* end confdefs.h.  */
5148int i;
5149_ACEOF
5150if ac_fn_c_try_compile "$LINENO"; then :
5151  xorg_cv_cc_flag_unused_command_line_argument=yes
5152else
5153  xorg_cv_cc_flag_unused_command_line_argument=no
5154fi
5155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5156fi
5157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5158$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5159	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5160	CFLAGS="$xorg_testset_save_CFLAGS"
5161fi
5162
5163found="no"
5164
5165	if test $found = "no" ; then
5166		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5167			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5168		fi
5169
5170		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5171			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5172		fi
5173
5174		CFLAGS="$CFLAGS -Wmissing-declarations"
5175
5176		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5177$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5178		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5179		if eval \${$cacheid+:} false; then :
5180  $as_echo_n "(cached) " >&6
5181else
5182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5183/* end confdefs.h.  */
5184int i;
5185int
5186main ()
5187{
5188
5189  ;
5190  return 0;
5191}
5192_ACEOF
5193if ac_fn_c_try_link "$LINENO"; then :
5194  eval $cacheid=yes
5195else
5196  eval $cacheid=no
5197fi
5198rm -f core conftest.err conftest.$ac_objext \
5199    conftest$ac_exeext conftest.$ac_ext
5200fi
5201
5202
5203		CFLAGS="$xorg_testset_save_CFLAGS"
5204
5205		eval supported=\$$cacheid
5206		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5207$as_echo "$supported" >&6; }
5208		if test "$supported" = "yes" ; then
5209			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5210			found="yes"
5211		fi
5212	fi
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228xorg_testset_save_CFLAGS="$CFLAGS"
5229
5230if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5231	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5232	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5233$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5234if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5235  $as_echo_n "(cached) " >&6
5236else
5237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238/* end confdefs.h.  */
5239int i;
5240_ACEOF
5241if ac_fn_c_try_compile "$LINENO"; then :
5242  xorg_cv_cc_flag_unknown_warning_option=yes
5243else
5244  xorg_cv_cc_flag_unknown_warning_option=no
5245fi
5246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5247fi
5248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5249$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5250	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5251	CFLAGS="$xorg_testset_save_CFLAGS"
5252fi
5253
5254if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5255	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5256		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5257	fi
5258	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5259	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5260$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5261if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5262  $as_echo_n "(cached) " >&6
5263else
5264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265/* end confdefs.h.  */
5266int i;
5267_ACEOF
5268if ac_fn_c_try_compile "$LINENO"; then :
5269  xorg_cv_cc_flag_unused_command_line_argument=yes
5270else
5271  xorg_cv_cc_flag_unused_command_line_argument=no
5272fi
5273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5274fi
5275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5276$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5277	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5278	CFLAGS="$xorg_testset_save_CFLAGS"
5279fi
5280
5281found="no"
5282
5283	if test $found = "no" ; then
5284		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5285			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5286		fi
5287
5288		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5289			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5290		fi
5291
5292		CFLAGS="$CFLAGS -Wformat=2"
5293
5294		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5295$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5296		cacheid=xorg_cv_cc_flag__Wformat_2
5297		if eval \${$cacheid+:} false; then :
5298  $as_echo_n "(cached) " >&6
5299else
5300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5301/* end confdefs.h.  */
5302int i;
5303int
5304main ()
5305{
5306
5307  ;
5308  return 0;
5309}
5310_ACEOF
5311if ac_fn_c_try_link "$LINENO"; then :
5312  eval $cacheid=yes
5313else
5314  eval $cacheid=no
5315fi
5316rm -f core conftest.err conftest.$ac_objext \
5317    conftest$ac_exeext conftest.$ac_ext
5318fi
5319
5320
5321		CFLAGS="$xorg_testset_save_CFLAGS"
5322
5323		eval supported=\$$cacheid
5324		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5325$as_echo "$supported" >&6; }
5326		if test "$supported" = "yes" ; then
5327			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5328			found="yes"
5329		fi
5330	fi
5331
5332	if test $found = "no" ; then
5333		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5334			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5335		fi
5336
5337		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5338			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5339		fi
5340
5341		CFLAGS="$CFLAGS -Wformat"
5342
5343		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5344$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5345		cacheid=xorg_cv_cc_flag__Wformat
5346		if eval \${$cacheid+:} false; then :
5347  $as_echo_n "(cached) " >&6
5348else
5349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5350/* end confdefs.h.  */
5351int i;
5352int
5353main ()
5354{
5355
5356  ;
5357  return 0;
5358}
5359_ACEOF
5360if ac_fn_c_try_link "$LINENO"; then :
5361  eval $cacheid=yes
5362else
5363  eval $cacheid=no
5364fi
5365rm -f core conftest.err conftest.$ac_objext \
5366    conftest$ac_exeext conftest.$ac_ext
5367fi
5368
5369
5370		CFLAGS="$xorg_testset_save_CFLAGS"
5371
5372		eval supported=\$$cacheid
5373		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5374$as_echo "$supported" >&6; }
5375		if test "$supported" = "yes" ; then
5376			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5377			found="yes"
5378		fi
5379	fi
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397xorg_testset_save_CFLAGS="$CFLAGS"
5398
5399if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5400	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5401	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5402$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5403if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5404  $as_echo_n "(cached) " >&6
5405else
5406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407/* end confdefs.h.  */
5408int i;
5409_ACEOF
5410if ac_fn_c_try_compile "$LINENO"; then :
5411  xorg_cv_cc_flag_unknown_warning_option=yes
5412else
5413  xorg_cv_cc_flag_unknown_warning_option=no
5414fi
5415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5416fi
5417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5418$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5419	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5420	CFLAGS="$xorg_testset_save_CFLAGS"
5421fi
5422
5423if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5424	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5425		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5426	fi
5427	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5428	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5429$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5430if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5431  $as_echo_n "(cached) " >&6
5432else
5433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5434/* end confdefs.h.  */
5435int i;
5436_ACEOF
5437if ac_fn_c_try_compile "$LINENO"; then :
5438  xorg_cv_cc_flag_unused_command_line_argument=yes
5439else
5440  xorg_cv_cc_flag_unused_command_line_argument=no
5441fi
5442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5443fi
5444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5445$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5446	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5447	CFLAGS="$xorg_testset_save_CFLAGS"
5448fi
5449
5450found="no"
5451
5452	if test $found = "no" ; then
5453		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5454			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5455		fi
5456
5457		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5458			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5459		fi
5460
5461		CFLAGS="$CFLAGS -Wstrict-prototypes"
5462
5463		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5464$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5465		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5466		if eval \${$cacheid+:} false; then :
5467  $as_echo_n "(cached) " >&6
5468else
5469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470/* end confdefs.h.  */
5471int i;
5472int
5473main ()
5474{
5475
5476  ;
5477  return 0;
5478}
5479_ACEOF
5480if ac_fn_c_try_link "$LINENO"; then :
5481  eval $cacheid=yes
5482else
5483  eval $cacheid=no
5484fi
5485rm -f core conftest.err conftest.$ac_objext \
5486    conftest$ac_exeext conftest.$ac_ext
5487fi
5488
5489
5490		CFLAGS="$xorg_testset_save_CFLAGS"
5491
5492		eval supported=\$$cacheid
5493		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5494$as_echo "$supported" >&6; }
5495		if test "$supported" = "yes" ; then
5496			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5497			found="yes"
5498		fi
5499	fi
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515xorg_testset_save_CFLAGS="$CFLAGS"
5516
5517if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5518	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5519	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5520$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5521if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5522  $as_echo_n "(cached) " >&6
5523else
5524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525/* end confdefs.h.  */
5526int i;
5527_ACEOF
5528if ac_fn_c_try_compile "$LINENO"; then :
5529  xorg_cv_cc_flag_unknown_warning_option=yes
5530else
5531  xorg_cv_cc_flag_unknown_warning_option=no
5532fi
5533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5534fi
5535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5536$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5537	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5538	CFLAGS="$xorg_testset_save_CFLAGS"
5539fi
5540
5541if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5542	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5543		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5544	fi
5545	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5546	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5547$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5548if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5549  $as_echo_n "(cached) " >&6
5550else
5551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552/* end confdefs.h.  */
5553int i;
5554_ACEOF
5555if ac_fn_c_try_compile "$LINENO"; then :
5556  xorg_cv_cc_flag_unused_command_line_argument=yes
5557else
5558  xorg_cv_cc_flag_unused_command_line_argument=no
5559fi
5560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5561fi
5562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5563$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5564	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5565	CFLAGS="$xorg_testset_save_CFLAGS"
5566fi
5567
5568found="no"
5569
5570	if test $found = "no" ; then
5571		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5572			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5573		fi
5574
5575		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5576			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5577		fi
5578
5579		CFLAGS="$CFLAGS -Wmissing-prototypes"
5580
5581		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5582$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5583		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5584		if eval \${$cacheid+:} false; then :
5585  $as_echo_n "(cached) " >&6
5586else
5587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5588/* end confdefs.h.  */
5589int i;
5590int
5591main ()
5592{
5593
5594  ;
5595  return 0;
5596}
5597_ACEOF
5598if ac_fn_c_try_link "$LINENO"; then :
5599  eval $cacheid=yes
5600else
5601  eval $cacheid=no
5602fi
5603rm -f core conftest.err conftest.$ac_objext \
5604    conftest$ac_exeext conftest.$ac_ext
5605fi
5606
5607
5608		CFLAGS="$xorg_testset_save_CFLAGS"
5609
5610		eval supported=\$$cacheid
5611		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5612$as_echo "$supported" >&6; }
5613		if test "$supported" = "yes" ; then
5614			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5615			found="yes"
5616		fi
5617	fi
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633xorg_testset_save_CFLAGS="$CFLAGS"
5634
5635if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5636	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5637	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5638$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5639if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5640  $as_echo_n "(cached) " >&6
5641else
5642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643/* end confdefs.h.  */
5644int i;
5645_ACEOF
5646if ac_fn_c_try_compile "$LINENO"; then :
5647  xorg_cv_cc_flag_unknown_warning_option=yes
5648else
5649  xorg_cv_cc_flag_unknown_warning_option=no
5650fi
5651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5652fi
5653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5654$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5655	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5656	CFLAGS="$xorg_testset_save_CFLAGS"
5657fi
5658
5659if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5660	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5661		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5662	fi
5663	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5664	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5665$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5666if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5667  $as_echo_n "(cached) " >&6
5668else
5669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670/* end confdefs.h.  */
5671int i;
5672_ACEOF
5673if ac_fn_c_try_compile "$LINENO"; then :
5674  xorg_cv_cc_flag_unused_command_line_argument=yes
5675else
5676  xorg_cv_cc_flag_unused_command_line_argument=no
5677fi
5678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5679fi
5680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5681$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5682	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5683	CFLAGS="$xorg_testset_save_CFLAGS"
5684fi
5685
5686found="no"
5687
5688	if test $found = "no" ; then
5689		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5690			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5691		fi
5692
5693		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5694			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5695		fi
5696
5697		CFLAGS="$CFLAGS -Wnested-externs"
5698
5699		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5700$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5701		cacheid=xorg_cv_cc_flag__Wnested_externs
5702		if eval \${$cacheid+:} false; then :
5703  $as_echo_n "(cached) " >&6
5704else
5705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5706/* end confdefs.h.  */
5707int i;
5708int
5709main ()
5710{
5711
5712  ;
5713  return 0;
5714}
5715_ACEOF
5716if ac_fn_c_try_link "$LINENO"; then :
5717  eval $cacheid=yes
5718else
5719  eval $cacheid=no
5720fi
5721rm -f core conftest.err conftest.$ac_objext \
5722    conftest$ac_exeext conftest.$ac_ext
5723fi
5724
5725
5726		CFLAGS="$xorg_testset_save_CFLAGS"
5727
5728		eval supported=\$$cacheid
5729		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5730$as_echo "$supported" >&6; }
5731		if test "$supported" = "yes" ; then
5732			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5733			found="yes"
5734		fi
5735	fi
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751xorg_testset_save_CFLAGS="$CFLAGS"
5752
5753if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5754	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5755	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5756$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5757if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5758  $as_echo_n "(cached) " >&6
5759else
5760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761/* end confdefs.h.  */
5762int i;
5763_ACEOF
5764if ac_fn_c_try_compile "$LINENO"; then :
5765  xorg_cv_cc_flag_unknown_warning_option=yes
5766else
5767  xorg_cv_cc_flag_unknown_warning_option=no
5768fi
5769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5770fi
5771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5772$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5773	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5774	CFLAGS="$xorg_testset_save_CFLAGS"
5775fi
5776
5777if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5778	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5779		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5780	fi
5781	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5782	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5783$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5784if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5785  $as_echo_n "(cached) " >&6
5786else
5787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5788/* end confdefs.h.  */
5789int i;
5790_ACEOF
5791if ac_fn_c_try_compile "$LINENO"; then :
5792  xorg_cv_cc_flag_unused_command_line_argument=yes
5793else
5794  xorg_cv_cc_flag_unused_command_line_argument=no
5795fi
5796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5797fi
5798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5799$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5800	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5801	CFLAGS="$xorg_testset_save_CFLAGS"
5802fi
5803
5804found="no"
5805
5806	if test $found = "no" ; then
5807		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5808			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5809		fi
5810
5811		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5812			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5813		fi
5814
5815		CFLAGS="$CFLAGS -Wbad-function-cast"
5816
5817		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5818$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5819		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5820		if eval \${$cacheid+:} false; then :
5821  $as_echo_n "(cached) " >&6
5822else
5823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5824/* end confdefs.h.  */
5825int i;
5826int
5827main ()
5828{
5829
5830  ;
5831  return 0;
5832}
5833_ACEOF
5834if ac_fn_c_try_link "$LINENO"; then :
5835  eval $cacheid=yes
5836else
5837  eval $cacheid=no
5838fi
5839rm -f core conftest.err conftest.$ac_objext \
5840    conftest$ac_exeext conftest.$ac_ext
5841fi
5842
5843
5844		CFLAGS="$xorg_testset_save_CFLAGS"
5845
5846		eval supported=\$$cacheid
5847		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5848$as_echo "$supported" >&6; }
5849		if test "$supported" = "yes" ; then
5850			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5851			found="yes"
5852		fi
5853	fi
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869xorg_testset_save_CFLAGS="$CFLAGS"
5870
5871if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5872	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5873	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5874$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5875if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5876  $as_echo_n "(cached) " >&6
5877else
5878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5879/* end confdefs.h.  */
5880int i;
5881_ACEOF
5882if ac_fn_c_try_compile "$LINENO"; then :
5883  xorg_cv_cc_flag_unknown_warning_option=yes
5884else
5885  xorg_cv_cc_flag_unknown_warning_option=no
5886fi
5887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5888fi
5889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5890$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5891	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5892	CFLAGS="$xorg_testset_save_CFLAGS"
5893fi
5894
5895if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5896	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5897		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5898	fi
5899	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5900	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5901$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5902if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5903  $as_echo_n "(cached) " >&6
5904else
5905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5906/* end confdefs.h.  */
5907int i;
5908_ACEOF
5909if ac_fn_c_try_compile "$LINENO"; then :
5910  xorg_cv_cc_flag_unused_command_line_argument=yes
5911else
5912  xorg_cv_cc_flag_unused_command_line_argument=no
5913fi
5914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5915fi
5916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5917$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5918	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5919	CFLAGS="$xorg_testset_save_CFLAGS"
5920fi
5921
5922found="no"
5923
5924	if test $found = "no" ; then
5925		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5926			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5927		fi
5928
5929		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5930			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5931		fi
5932
5933		CFLAGS="$CFLAGS -Wold-style-definition"
5934
5935		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5936$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5937		cacheid=xorg_cv_cc_flag__Wold_style_definition
5938		if eval \${$cacheid+:} false; then :
5939  $as_echo_n "(cached) " >&6
5940else
5941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5942/* end confdefs.h.  */
5943int i;
5944int
5945main ()
5946{
5947
5948  ;
5949  return 0;
5950}
5951_ACEOF
5952if ac_fn_c_try_link "$LINENO"; then :
5953  eval $cacheid=yes
5954else
5955  eval $cacheid=no
5956fi
5957rm -f core conftest.err conftest.$ac_objext \
5958    conftest$ac_exeext conftest.$ac_ext
5959fi
5960
5961
5962		CFLAGS="$xorg_testset_save_CFLAGS"
5963
5964		eval supported=\$$cacheid
5965		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5966$as_echo "$supported" >&6; }
5967		if test "$supported" = "yes" ; then
5968			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5969			found="yes"
5970		fi
5971	fi
5972
5973	if test $found = "no" ; then
5974		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5975			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5976		fi
5977
5978		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5979			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5980		fi
5981
5982		CFLAGS="$CFLAGS -fd"
5983
5984		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5985$as_echo_n "checking if $CC supports -fd... " >&6; }
5986		cacheid=xorg_cv_cc_flag__fd
5987		if eval \${$cacheid+:} false; then :
5988  $as_echo_n "(cached) " >&6
5989else
5990  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991/* end confdefs.h.  */
5992int i;
5993int
5994main ()
5995{
5996
5997  ;
5998  return 0;
5999}
6000_ACEOF
6001if ac_fn_c_try_link "$LINENO"; then :
6002  eval $cacheid=yes
6003else
6004  eval $cacheid=no
6005fi
6006rm -f core conftest.err conftest.$ac_objext \
6007    conftest$ac_exeext conftest.$ac_ext
6008fi
6009
6010
6011		CFLAGS="$xorg_testset_save_CFLAGS"
6012
6013		eval supported=\$$cacheid
6014		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6015$as_echo "$supported" >&6; }
6016		if test "$supported" = "yes" ; then
6017			BASE_CFLAGS="$BASE_CFLAGS -fd"
6018			found="yes"
6019		fi
6020	fi
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036xorg_testset_save_CFLAGS="$CFLAGS"
6037
6038if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6039	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6040	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6041$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6042if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6043  $as_echo_n "(cached) " >&6
6044else
6045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6046/* end confdefs.h.  */
6047int i;
6048_ACEOF
6049if ac_fn_c_try_compile "$LINENO"; then :
6050  xorg_cv_cc_flag_unknown_warning_option=yes
6051else
6052  xorg_cv_cc_flag_unknown_warning_option=no
6053fi
6054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6055fi
6056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6057$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6058	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6059	CFLAGS="$xorg_testset_save_CFLAGS"
6060fi
6061
6062if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6063	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6064		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6065	fi
6066	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6067	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6068$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6069if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6070  $as_echo_n "(cached) " >&6
6071else
6072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6073/* end confdefs.h.  */
6074int i;
6075_ACEOF
6076if ac_fn_c_try_compile "$LINENO"; then :
6077  xorg_cv_cc_flag_unused_command_line_argument=yes
6078else
6079  xorg_cv_cc_flag_unused_command_line_argument=no
6080fi
6081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6082fi
6083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6084$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6085	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6086	CFLAGS="$xorg_testset_save_CFLAGS"
6087fi
6088
6089found="no"
6090
6091	if test $found = "no" ; then
6092		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6093			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6094		fi
6095
6096		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6097			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6098		fi
6099
6100		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6101
6102		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6103$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6104		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6105		if eval \${$cacheid+:} false; then :
6106  $as_echo_n "(cached) " >&6
6107else
6108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6109/* end confdefs.h.  */
6110int i;
6111int
6112main ()
6113{
6114
6115  ;
6116  return 0;
6117}
6118_ACEOF
6119if ac_fn_c_try_link "$LINENO"; then :
6120  eval $cacheid=yes
6121else
6122  eval $cacheid=no
6123fi
6124rm -f core conftest.err conftest.$ac_objext \
6125    conftest$ac_exeext conftest.$ac_ext
6126fi
6127
6128
6129		CFLAGS="$xorg_testset_save_CFLAGS"
6130
6131		eval supported=\$$cacheid
6132		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6133$as_echo "$supported" >&6; }
6134		if test "$supported" = "yes" ; then
6135			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6136			found="yes"
6137		fi
6138	fi
6139
6140
6141
6142
6143
6144# This chunk adds additional warnings that could catch undesired effects.
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158xorg_testset_save_CFLAGS="$CFLAGS"
6159
6160if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6161	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6162	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6163$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6164if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6165  $as_echo_n "(cached) " >&6
6166else
6167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6168/* end confdefs.h.  */
6169int i;
6170_ACEOF
6171if ac_fn_c_try_compile "$LINENO"; then :
6172  xorg_cv_cc_flag_unknown_warning_option=yes
6173else
6174  xorg_cv_cc_flag_unknown_warning_option=no
6175fi
6176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6177fi
6178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6179$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6180	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6181	CFLAGS="$xorg_testset_save_CFLAGS"
6182fi
6183
6184if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6185	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6186		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6187	fi
6188	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6189	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6190$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6191if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6192  $as_echo_n "(cached) " >&6
6193else
6194  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6195/* end confdefs.h.  */
6196int i;
6197_ACEOF
6198if ac_fn_c_try_compile "$LINENO"; then :
6199  xorg_cv_cc_flag_unused_command_line_argument=yes
6200else
6201  xorg_cv_cc_flag_unused_command_line_argument=no
6202fi
6203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6204fi
6205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6206$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6207	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6208	CFLAGS="$xorg_testset_save_CFLAGS"
6209fi
6210
6211found="no"
6212
6213	if test $found = "no" ; then
6214		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6215			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6216		fi
6217
6218		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6219			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6220		fi
6221
6222		CFLAGS="$CFLAGS -Wunused"
6223
6224		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6225$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6226		cacheid=xorg_cv_cc_flag__Wunused
6227		if eval \${$cacheid+:} false; then :
6228  $as_echo_n "(cached) " >&6
6229else
6230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6231/* end confdefs.h.  */
6232int i;
6233int
6234main ()
6235{
6236
6237  ;
6238  return 0;
6239}
6240_ACEOF
6241if ac_fn_c_try_link "$LINENO"; then :
6242  eval $cacheid=yes
6243else
6244  eval $cacheid=no
6245fi
6246rm -f core conftest.err conftest.$ac_objext \
6247    conftest$ac_exeext conftest.$ac_ext
6248fi
6249
6250
6251		CFLAGS="$xorg_testset_save_CFLAGS"
6252
6253		eval supported=\$$cacheid
6254		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6255$as_echo "$supported" >&6; }
6256		if test "$supported" = "yes" ; then
6257			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6258			found="yes"
6259		fi
6260	fi
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276xorg_testset_save_CFLAGS="$CFLAGS"
6277
6278if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6279	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6280	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6281$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6282if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6283  $as_echo_n "(cached) " >&6
6284else
6285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6286/* end confdefs.h.  */
6287int i;
6288_ACEOF
6289if ac_fn_c_try_compile "$LINENO"; then :
6290  xorg_cv_cc_flag_unknown_warning_option=yes
6291else
6292  xorg_cv_cc_flag_unknown_warning_option=no
6293fi
6294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6295fi
6296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6297$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6298	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6299	CFLAGS="$xorg_testset_save_CFLAGS"
6300fi
6301
6302if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6303	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6304		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6305	fi
6306	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6307	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6308$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6309if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6310  $as_echo_n "(cached) " >&6
6311else
6312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6313/* end confdefs.h.  */
6314int i;
6315_ACEOF
6316if ac_fn_c_try_compile "$LINENO"; then :
6317  xorg_cv_cc_flag_unused_command_line_argument=yes
6318else
6319  xorg_cv_cc_flag_unused_command_line_argument=no
6320fi
6321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6322fi
6323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6324$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6325	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6326	CFLAGS="$xorg_testset_save_CFLAGS"
6327fi
6328
6329found="no"
6330
6331	if test $found = "no" ; then
6332		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6333			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6334		fi
6335
6336		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6337			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6338		fi
6339
6340		CFLAGS="$CFLAGS -Wuninitialized"
6341
6342		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6343$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6344		cacheid=xorg_cv_cc_flag__Wuninitialized
6345		if eval \${$cacheid+:} false; then :
6346  $as_echo_n "(cached) " >&6
6347else
6348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6349/* end confdefs.h.  */
6350int i;
6351int
6352main ()
6353{
6354
6355  ;
6356  return 0;
6357}
6358_ACEOF
6359if ac_fn_c_try_link "$LINENO"; then :
6360  eval $cacheid=yes
6361else
6362  eval $cacheid=no
6363fi
6364rm -f core conftest.err conftest.$ac_objext \
6365    conftest$ac_exeext conftest.$ac_ext
6366fi
6367
6368
6369		CFLAGS="$xorg_testset_save_CFLAGS"
6370
6371		eval supported=\$$cacheid
6372		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6373$as_echo "$supported" >&6; }
6374		if test "$supported" = "yes" ; then
6375			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6376			found="yes"
6377		fi
6378	fi
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394xorg_testset_save_CFLAGS="$CFLAGS"
6395
6396if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6397	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6398	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6399$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6400if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6401  $as_echo_n "(cached) " >&6
6402else
6403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6404/* end confdefs.h.  */
6405int i;
6406_ACEOF
6407if ac_fn_c_try_compile "$LINENO"; then :
6408  xorg_cv_cc_flag_unknown_warning_option=yes
6409else
6410  xorg_cv_cc_flag_unknown_warning_option=no
6411fi
6412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6413fi
6414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6415$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6416	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6417	CFLAGS="$xorg_testset_save_CFLAGS"
6418fi
6419
6420if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6421	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6422		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6423	fi
6424	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6425	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6426$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6427if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6428  $as_echo_n "(cached) " >&6
6429else
6430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6431/* end confdefs.h.  */
6432int i;
6433_ACEOF
6434if ac_fn_c_try_compile "$LINENO"; then :
6435  xorg_cv_cc_flag_unused_command_line_argument=yes
6436else
6437  xorg_cv_cc_flag_unused_command_line_argument=no
6438fi
6439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6440fi
6441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6442$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6443	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6444	CFLAGS="$xorg_testset_save_CFLAGS"
6445fi
6446
6447found="no"
6448
6449	if test $found = "no" ; then
6450		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6451			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6452		fi
6453
6454		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6455			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6456		fi
6457
6458		CFLAGS="$CFLAGS -Wshadow"
6459
6460		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6461$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6462		cacheid=xorg_cv_cc_flag__Wshadow
6463		if eval \${$cacheid+:} false; then :
6464  $as_echo_n "(cached) " >&6
6465else
6466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6467/* end confdefs.h.  */
6468int i;
6469int
6470main ()
6471{
6472
6473  ;
6474  return 0;
6475}
6476_ACEOF
6477if ac_fn_c_try_link "$LINENO"; then :
6478  eval $cacheid=yes
6479else
6480  eval $cacheid=no
6481fi
6482rm -f core conftest.err conftest.$ac_objext \
6483    conftest$ac_exeext conftest.$ac_ext
6484fi
6485
6486
6487		CFLAGS="$xorg_testset_save_CFLAGS"
6488
6489		eval supported=\$$cacheid
6490		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6491$as_echo "$supported" >&6; }
6492		if test "$supported" = "yes" ; then
6493			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6494			found="yes"
6495		fi
6496	fi
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512xorg_testset_save_CFLAGS="$CFLAGS"
6513
6514if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6515	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6516	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6517$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6518if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6519  $as_echo_n "(cached) " >&6
6520else
6521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6522/* end confdefs.h.  */
6523int i;
6524_ACEOF
6525if ac_fn_c_try_compile "$LINENO"; then :
6526  xorg_cv_cc_flag_unknown_warning_option=yes
6527else
6528  xorg_cv_cc_flag_unknown_warning_option=no
6529fi
6530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6531fi
6532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6533$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6534	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6535	CFLAGS="$xorg_testset_save_CFLAGS"
6536fi
6537
6538if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6539	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6540		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6541	fi
6542	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6543	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6544$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6545if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6546  $as_echo_n "(cached) " >&6
6547else
6548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6549/* end confdefs.h.  */
6550int i;
6551_ACEOF
6552if ac_fn_c_try_compile "$LINENO"; then :
6553  xorg_cv_cc_flag_unused_command_line_argument=yes
6554else
6555  xorg_cv_cc_flag_unused_command_line_argument=no
6556fi
6557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6558fi
6559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6560$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6561	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6562	CFLAGS="$xorg_testset_save_CFLAGS"
6563fi
6564
6565found="no"
6566
6567	if test $found = "no" ; then
6568		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6569			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6570		fi
6571
6572		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6573			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6574		fi
6575
6576		CFLAGS="$CFLAGS -Wmissing-noreturn"
6577
6578		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6579$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6580		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6581		if eval \${$cacheid+:} false; then :
6582  $as_echo_n "(cached) " >&6
6583else
6584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6585/* end confdefs.h.  */
6586int i;
6587int
6588main ()
6589{
6590
6591  ;
6592  return 0;
6593}
6594_ACEOF
6595if ac_fn_c_try_link "$LINENO"; then :
6596  eval $cacheid=yes
6597else
6598  eval $cacheid=no
6599fi
6600rm -f core conftest.err conftest.$ac_objext \
6601    conftest$ac_exeext conftest.$ac_ext
6602fi
6603
6604
6605		CFLAGS="$xorg_testset_save_CFLAGS"
6606
6607		eval supported=\$$cacheid
6608		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6609$as_echo "$supported" >&6; }
6610		if test "$supported" = "yes" ; then
6611			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6612			found="yes"
6613		fi
6614	fi
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630xorg_testset_save_CFLAGS="$CFLAGS"
6631
6632if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6633	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6634	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6635$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6636if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6637  $as_echo_n "(cached) " >&6
6638else
6639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6640/* end confdefs.h.  */
6641int i;
6642_ACEOF
6643if ac_fn_c_try_compile "$LINENO"; then :
6644  xorg_cv_cc_flag_unknown_warning_option=yes
6645else
6646  xorg_cv_cc_flag_unknown_warning_option=no
6647fi
6648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6649fi
6650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6651$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6652	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6653	CFLAGS="$xorg_testset_save_CFLAGS"
6654fi
6655
6656if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6657	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6658		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6659	fi
6660	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6661	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6662$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6663if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6664  $as_echo_n "(cached) " >&6
6665else
6666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6667/* end confdefs.h.  */
6668int i;
6669_ACEOF
6670if ac_fn_c_try_compile "$LINENO"; then :
6671  xorg_cv_cc_flag_unused_command_line_argument=yes
6672else
6673  xorg_cv_cc_flag_unused_command_line_argument=no
6674fi
6675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6676fi
6677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6678$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6679	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6680	CFLAGS="$xorg_testset_save_CFLAGS"
6681fi
6682
6683found="no"
6684
6685	if test $found = "no" ; then
6686		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6687			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6688		fi
6689
6690		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6691			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6692		fi
6693
6694		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6695
6696		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6697$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6698		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6699		if eval \${$cacheid+:} false; then :
6700  $as_echo_n "(cached) " >&6
6701else
6702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6703/* end confdefs.h.  */
6704int i;
6705int
6706main ()
6707{
6708
6709  ;
6710  return 0;
6711}
6712_ACEOF
6713if ac_fn_c_try_link "$LINENO"; then :
6714  eval $cacheid=yes
6715else
6716  eval $cacheid=no
6717fi
6718rm -f core conftest.err conftest.$ac_objext \
6719    conftest$ac_exeext conftest.$ac_ext
6720fi
6721
6722
6723		CFLAGS="$xorg_testset_save_CFLAGS"
6724
6725		eval supported=\$$cacheid
6726		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6727$as_echo "$supported" >&6; }
6728		if test "$supported" = "yes" ; then
6729			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6730			found="yes"
6731		fi
6732	fi
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748xorg_testset_save_CFLAGS="$CFLAGS"
6749
6750if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6751	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6752	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6753$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6754if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6755  $as_echo_n "(cached) " >&6
6756else
6757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6758/* end confdefs.h.  */
6759int i;
6760_ACEOF
6761if ac_fn_c_try_compile "$LINENO"; then :
6762  xorg_cv_cc_flag_unknown_warning_option=yes
6763else
6764  xorg_cv_cc_flag_unknown_warning_option=no
6765fi
6766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6767fi
6768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6769$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6770	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6771	CFLAGS="$xorg_testset_save_CFLAGS"
6772fi
6773
6774if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6775	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6776		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6777	fi
6778	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6779	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6780$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6781if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6782  $as_echo_n "(cached) " >&6
6783else
6784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785/* end confdefs.h.  */
6786int i;
6787_ACEOF
6788if ac_fn_c_try_compile "$LINENO"; then :
6789  xorg_cv_cc_flag_unused_command_line_argument=yes
6790else
6791  xorg_cv_cc_flag_unused_command_line_argument=no
6792fi
6793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6794fi
6795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6796$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6797	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6798	CFLAGS="$xorg_testset_save_CFLAGS"
6799fi
6800
6801found="no"
6802
6803	if test $found = "no" ; then
6804		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6805			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6806		fi
6807
6808		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6809			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6810		fi
6811
6812		CFLAGS="$CFLAGS -Wredundant-decls"
6813
6814		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6815$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6816		cacheid=xorg_cv_cc_flag__Wredundant_decls
6817		if eval \${$cacheid+:} false; then :
6818  $as_echo_n "(cached) " >&6
6819else
6820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6821/* end confdefs.h.  */
6822int i;
6823int
6824main ()
6825{
6826
6827  ;
6828  return 0;
6829}
6830_ACEOF
6831if ac_fn_c_try_link "$LINENO"; then :
6832  eval $cacheid=yes
6833else
6834  eval $cacheid=no
6835fi
6836rm -f core conftest.err conftest.$ac_objext \
6837    conftest$ac_exeext conftest.$ac_ext
6838fi
6839
6840
6841		CFLAGS="$xorg_testset_save_CFLAGS"
6842
6843		eval supported=\$$cacheid
6844		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6845$as_echo "$supported" >&6; }
6846		if test "$supported" = "yes" ; then
6847			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6848			found="yes"
6849		fi
6850	fi
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866xorg_testset_save_CFLAGS="$CFLAGS"
6867
6868if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6869	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6870	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6871$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6872if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6873  $as_echo_n "(cached) " >&6
6874else
6875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6876/* end confdefs.h.  */
6877int i;
6878_ACEOF
6879if ac_fn_c_try_compile "$LINENO"; then :
6880  xorg_cv_cc_flag_unknown_warning_option=yes
6881else
6882  xorg_cv_cc_flag_unknown_warning_option=no
6883fi
6884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6885fi
6886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6887$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6888	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6889	CFLAGS="$xorg_testset_save_CFLAGS"
6890fi
6891
6892if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6893	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6894		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6895	fi
6896	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6897	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6898$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6899if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6900  $as_echo_n "(cached) " >&6
6901else
6902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6903/* end confdefs.h.  */
6904int i;
6905_ACEOF
6906if ac_fn_c_try_compile "$LINENO"; then :
6907  xorg_cv_cc_flag_unused_command_line_argument=yes
6908else
6909  xorg_cv_cc_flag_unused_command_line_argument=no
6910fi
6911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6912fi
6913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6914$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6915	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6916	CFLAGS="$xorg_testset_save_CFLAGS"
6917fi
6918
6919found="no"
6920
6921	if test $found = "no" ; then
6922		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6923			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6924		fi
6925
6926		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6927			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6928		fi
6929
6930		CFLAGS="$CFLAGS -Wlogical-op"
6931
6932		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6933$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6934		cacheid=xorg_cv_cc_flag__Wlogical_op
6935		if eval \${$cacheid+:} false; then :
6936  $as_echo_n "(cached) " >&6
6937else
6938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6939/* end confdefs.h.  */
6940int i;
6941int
6942main ()
6943{
6944
6945  ;
6946  return 0;
6947}
6948_ACEOF
6949if ac_fn_c_try_link "$LINENO"; then :
6950  eval $cacheid=yes
6951else
6952  eval $cacheid=no
6953fi
6954rm -f core conftest.err conftest.$ac_objext \
6955    conftest$ac_exeext conftest.$ac_ext
6956fi
6957
6958
6959		CFLAGS="$xorg_testset_save_CFLAGS"
6960
6961		eval supported=\$$cacheid
6962		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6963$as_echo "$supported" >&6; }
6964		if test "$supported" = "yes" ; then
6965			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6966			found="yes"
6967		fi
6968	fi
6969
6970
6971
6972# These are currently disabled because they are noisy.  They will be enabled
6973# in the future once the codebase is sufficiently modernized to silence
6974# them.  For now, I don't want them to drown out the other warnings.
6975# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6976# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6977# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6978
6979# Turn some warnings into errors, so we don't accidently get successful builds
6980# when there are problems that should be fixed.
6981
6982if test "x$SELECTIVE_WERROR" = "xyes" ; then
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996xorg_testset_save_CFLAGS="$CFLAGS"
6997
6998if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6999	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7000	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7001$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7002if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7003  $as_echo_n "(cached) " >&6
7004else
7005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7006/* end confdefs.h.  */
7007int i;
7008_ACEOF
7009if ac_fn_c_try_compile "$LINENO"; then :
7010  xorg_cv_cc_flag_unknown_warning_option=yes
7011else
7012  xorg_cv_cc_flag_unknown_warning_option=no
7013fi
7014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7015fi
7016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7017$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7018	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7019	CFLAGS="$xorg_testset_save_CFLAGS"
7020fi
7021
7022if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7023	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7024		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7025	fi
7026	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7027	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7028$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7029if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7030  $as_echo_n "(cached) " >&6
7031else
7032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7033/* end confdefs.h.  */
7034int i;
7035_ACEOF
7036if ac_fn_c_try_compile "$LINENO"; then :
7037  xorg_cv_cc_flag_unused_command_line_argument=yes
7038else
7039  xorg_cv_cc_flag_unused_command_line_argument=no
7040fi
7041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7042fi
7043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7044$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7045	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7046	CFLAGS="$xorg_testset_save_CFLAGS"
7047fi
7048
7049found="no"
7050
7051	if test $found = "no" ; then
7052		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7053			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7054		fi
7055
7056		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7057			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7058		fi
7059
7060		CFLAGS="$CFLAGS -Werror=implicit"
7061
7062		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7063$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7064		cacheid=xorg_cv_cc_flag__Werror_implicit
7065		if eval \${$cacheid+:} false; then :
7066  $as_echo_n "(cached) " >&6
7067else
7068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069/* end confdefs.h.  */
7070int i;
7071int
7072main ()
7073{
7074
7075  ;
7076  return 0;
7077}
7078_ACEOF
7079if ac_fn_c_try_link "$LINENO"; then :
7080  eval $cacheid=yes
7081else
7082  eval $cacheid=no
7083fi
7084rm -f core conftest.err conftest.$ac_objext \
7085    conftest$ac_exeext conftest.$ac_ext
7086fi
7087
7088
7089		CFLAGS="$xorg_testset_save_CFLAGS"
7090
7091		eval supported=\$$cacheid
7092		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7093$as_echo "$supported" >&6; }
7094		if test "$supported" = "yes" ; then
7095			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7096			found="yes"
7097		fi
7098	fi
7099
7100	if test $found = "no" ; then
7101		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7102			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7103		fi
7104
7105		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7106			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7107		fi
7108
7109		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7110
7111		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7112$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7113		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7114		if eval \${$cacheid+:} false; then :
7115  $as_echo_n "(cached) " >&6
7116else
7117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7118/* end confdefs.h.  */
7119int i;
7120int
7121main ()
7122{
7123
7124  ;
7125  return 0;
7126}
7127_ACEOF
7128if ac_fn_c_try_link "$LINENO"; then :
7129  eval $cacheid=yes
7130else
7131  eval $cacheid=no
7132fi
7133rm -f core conftest.err conftest.$ac_objext \
7134    conftest$ac_exeext conftest.$ac_ext
7135fi
7136
7137
7138		CFLAGS="$xorg_testset_save_CFLAGS"
7139
7140		eval supported=\$$cacheid
7141		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7142$as_echo "$supported" >&6; }
7143		if test "$supported" = "yes" ; then
7144			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7145			found="yes"
7146		fi
7147	fi
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163xorg_testset_save_CFLAGS="$CFLAGS"
7164
7165if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7166	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7167	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7168$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7169if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7170  $as_echo_n "(cached) " >&6
7171else
7172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7173/* end confdefs.h.  */
7174int i;
7175_ACEOF
7176if ac_fn_c_try_compile "$LINENO"; then :
7177  xorg_cv_cc_flag_unknown_warning_option=yes
7178else
7179  xorg_cv_cc_flag_unknown_warning_option=no
7180fi
7181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7182fi
7183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7184$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7185	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7186	CFLAGS="$xorg_testset_save_CFLAGS"
7187fi
7188
7189if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7190	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7191		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7192	fi
7193	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7194	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7195$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7196if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7197  $as_echo_n "(cached) " >&6
7198else
7199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7200/* end confdefs.h.  */
7201int i;
7202_ACEOF
7203if ac_fn_c_try_compile "$LINENO"; then :
7204  xorg_cv_cc_flag_unused_command_line_argument=yes
7205else
7206  xorg_cv_cc_flag_unused_command_line_argument=no
7207fi
7208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7209fi
7210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7211$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7212	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7213	CFLAGS="$xorg_testset_save_CFLAGS"
7214fi
7215
7216found="no"
7217
7218	if test $found = "no" ; then
7219		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7220			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7221		fi
7222
7223		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7224			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7225		fi
7226
7227		CFLAGS="$CFLAGS -Werror=nonnull"
7228
7229		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7230$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7231		cacheid=xorg_cv_cc_flag__Werror_nonnull
7232		if eval \${$cacheid+:} false; then :
7233  $as_echo_n "(cached) " >&6
7234else
7235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7236/* end confdefs.h.  */
7237int i;
7238int
7239main ()
7240{
7241
7242  ;
7243  return 0;
7244}
7245_ACEOF
7246if ac_fn_c_try_link "$LINENO"; then :
7247  eval $cacheid=yes
7248else
7249  eval $cacheid=no
7250fi
7251rm -f core conftest.err conftest.$ac_objext \
7252    conftest$ac_exeext conftest.$ac_ext
7253fi
7254
7255
7256		CFLAGS="$xorg_testset_save_CFLAGS"
7257
7258		eval supported=\$$cacheid
7259		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7260$as_echo "$supported" >&6; }
7261		if test "$supported" = "yes" ; then
7262			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7263			found="yes"
7264		fi
7265	fi
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281xorg_testset_save_CFLAGS="$CFLAGS"
7282
7283if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7284	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7285	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7286$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7287if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7288  $as_echo_n "(cached) " >&6
7289else
7290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7291/* end confdefs.h.  */
7292int i;
7293_ACEOF
7294if ac_fn_c_try_compile "$LINENO"; then :
7295  xorg_cv_cc_flag_unknown_warning_option=yes
7296else
7297  xorg_cv_cc_flag_unknown_warning_option=no
7298fi
7299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7300fi
7301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7302$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7303	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7304	CFLAGS="$xorg_testset_save_CFLAGS"
7305fi
7306
7307if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7308	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7309		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7310	fi
7311	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7312	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7313$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7314if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7315  $as_echo_n "(cached) " >&6
7316else
7317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7318/* end confdefs.h.  */
7319int i;
7320_ACEOF
7321if ac_fn_c_try_compile "$LINENO"; then :
7322  xorg_cv_cc_flag_unused_command_line_argument=yes
7323else
7324  xorg_cv_cc_flag_unused_command_line_argument=no
7325fi
7326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7327fi
7328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7329$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7330	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7331	CFLAGS="$xorg_testset_save_CFLAGS"
7332fi
7333
7334found="no"
7335
7336	if test $found = "no" ; then
7337		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7338			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7339		fi
7340
7341		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7342			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7343		fi
7344
7345		CFLAGS="$CFLAGS -Werror=init-self"
7346
7347		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7348$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7349		cacheid=xorg_cv_cc_flag__Werror_init_self
7350		if eval \${$cacheid+:} false; then :
7351  $as_echo_n "(cached) " >&6
7352else
7353  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7354/* end confdefs.h.  */
7355int i;
7356int
7357main ()
7358{
7359
7360  ;
7361  return 0;
7362}
7363_ACEOF
7364if ac_fn_c_try_link "$LINENO"; then :
7365  eval $cacheid=yes
7366else
7367  eval $cacheid=no
7368fi
7369rm -f core conftest.err conftest.$ac_objext \
7370    conftest$ac_exeext conftest.$ac_ext
7371fi
7372
7373
7374		CFLAGS="$xorg_testset_save_CFLAGS"
7375
7376		eval supported=\$$cacheid
7377		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7378$as_echo "$supported" >&6; }
7379		if test "$supported" = "yes" ; then
7380			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7381			found="yes"
7382		fi
7383	fi
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399xorg_testset_save_CFLAGS="$CFLAGS"
7400
7401if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7402	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7403	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7404$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7405if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7406  $as_echo_n "(cached) " >&6
7407else
7408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7409/* end confdefs.h.  */
7410int i;
7411_ACEOF
7412if ac_fn_c_try_compile "$LINENO"; then :
7413  xorg_cv_cc_flag_unknown_warning_option=yes
7414else
7415  xorg_cv_cc_flag_unknown_warning_option=no
7416fi
7417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7418fi
7419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7420$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7421	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7422	CFLAGS="$xorg_testset_save_CFLAGS"
7423fi
7424
7425if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7426	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7427		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7428	fi
7429	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7430	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7431$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7432if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7433  $as_echo_n "(cached) " >&6
7434else
7435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7436/* end confdefs.h.  */
7437int i;
7438_ACEOF
7439if ac_fn_c_try_compile "$LINENO"; then :
7440  xorg_cv_cc_flag_unused_command_line_argument=yes
7441else
7442  xorg_cv_cc_flag_unused_command_line_argument=no
7443fi
7444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7445fi
7446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7447$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7448	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7449	CFLAGS="$xorg_testset_save_CFLAGS"
7450fi
7451
7452found="no"
7453
7454	if test $found = "no" ; then
7455		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7456			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7457		fi
7458
7459		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7460			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7461		fi
7462
7463		CFLAGS="$CFLAGS -Werror=main"
7464
7465		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7466$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7467		cacheid=xorg_cv_cc_flag__Werror_main
7468		if eval \${$cacheid+:} false; then :
7469  $as_echo_n "(cached) " >&6
7470else
7471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7472/* end confdefs.h.  */
7473int i;
7474int
7475main ()
7476{
7477
7478  ;
7479  return 0;
7480}
7481_ACEOF
7482if ac_fn_c_try_link "$LINENO"; then :
7483  eval $cacheid=yes
7484else
7485  eval $cacheid=no
7486fi
7487rm -f core conftest.err conftest.$ac_objext \
7488    conftest$ac_exeext conftest.$ac_ext
7489fi
7490
7491
7492		CFLAGS="$xorg_testset_save_CFLAGS"
7493
7494		eval supported=\$$cacheid
7495		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7496$as_echo "$supported" >&6; }
7497		if test "$supported" = "yes" ; then
7498			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7499			found="yes"
7500		fi
7501	fi
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517xorg_testset_save_CFLAGS="$CFLAGS"
7518
7519if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7520	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7521	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7522$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7523if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7524  $as_echo_n "(cached) " >&6
7525else
7526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7527/* end confdefs.h.  */
7528int i;
7529_ACEOF
7530if ac_fn_c_try_compile "$LINENO"; then :
7531  xorg_cv_cc_flag_unknown_warning_option=yes
7532else
7533  xorg_cv_cc_flag_unknown_warning_option=no
7534fi
7535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7536fi
7537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7538$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7539	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7540	CFLAGS="$xorg_testset_save_CFLAGS"
7541fi
7542
7543if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7544	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7545		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7546	fi
7547	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7548	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7549$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7550if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7551  $as_echo_n "(cached) " >&6
7552else
7553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7554/* end confdefs.h.  */
7555int i;
7556_ACEOF
7557if ac_fn_c_try_compile "$LINENO"; then :
7558  xorg_cv_cc_flag_unused_command_line_argument=yes
7559else
7560  xorg_cv_cc_flag_unused_command_line_argument=no
7561fi
7562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7563fi
7564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7565$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7566	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7567	CFLAGS="$xorg_testset_save_CFLAGS"
7568fi
7569
7570found="no"
7571
7572	if test $found = "no" ; then
7573		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7574			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7575		fi
7576
7577		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7578			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7579		fi
7580
7581		CFLAGS="$CFLAGS -Werror=missing-braces"
7582
7583		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7584$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7585		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7586		if eval \${$cacheid+:} false; then :
7587  $as_echo_n "(cached) " >&6
7588else
7589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7590/* end confdefs.h.  */
7591int i;
7592int
7593main ()
7594{
7595
7596  ;
7597  return 0;
7598}
7599_ACEOF
7600if ac_fn_c_try_link "$LINENO"; then :
7601  eval $cacheid=yes
7602else
7603  eval $cacheid=no
7604fi
7605rm -f core conftest.err conftest.$ac_objext \
7606    conftest$ac_exeext conftest.$ac_ext
7607fi
7608
7609
7610		CFLAGS="$xorg_testset_save_CFLAGS"
7611
7612		eval supported=\$$cacheid
7613		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7614$as_echo "$supported" >&6; }
7615		if test "$supported" = "yes" ; then
7616			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7617			found="yes"
7618		fi
7619	fi
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635xorg_testset_save_CFLAGS="$CFLAGS"
7636
7637if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7638	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7639	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7640$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7641if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7642  $as_echo_n "(cached) " >&6
7643else
7644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7645/* end confdefs.h.  */
7646int i;
7647_ACEOF
7648if ac_fn_c_try_compile "$LINENO"; then :
7649  xorg_cv_cc_flag_unknown_warning_option=yes
7650else
7651  xorg_cv_cc_flag_unknown_warning_option=no
7652fi
7653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7654fi
7655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7656$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7657	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7658	CFLAGS="$xorg_testset_save_CFLAGS"
7659fi
7660
7661if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7662	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7663		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7664	fi
7665	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7666	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7667$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7668if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7669  $as_echo_n "(cached) " >&6
7670else
7671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7672/* end confdefs.h.  */
7673int i;
7674_ACEOF
7675if ac_fn_c_try_compile "$LINENO"; then :
7676  xorg_cv_cc_flag_unused_command_line_argument=yes
7677else
7678  xorg_cv_cc_flag_unused_command_line_argument=no
7679fi
7680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7681fi
7682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7683$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7684	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7685	CFLAGS="$xorg_testset_save_CFLAGS"
7686fi
7687
7688found="no"
7689
7690	if test $found = "no" ; then
7691		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7692			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7693		fi
7694
7695		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7696			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7697		fi
7698
7699		CFLAGS="$CFLAGS -Werror=sequence-point"
7700
7701		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7702$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7703		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7704		if eval \${$cacheid+:} false; then :
7705  $as_echo_n "(cached) " >&6
7706else
7707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7708/* end confdefs.h.  */
7709int i;
7710int
7711main ()
7712{
7713
7714  ;
7715  return 0;
7716}
7717_ACEOF
7718if ac_fn_c_try_link "$LINENO"; then :
7719  eval $cacheid=yes
7720else
7721  eval $cacheid=no
7722fi
7723rm -f core conftest.err conftest.$ac_objext \
7724    conftest$ac_exeext conftest.$ac_ext
7725fi
7726
7727
7728		CFLAGS="$xorg_testset_save_CFLAGS"
7729
7730		eval supported=\$$cacheid
7731		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7732$as_echo "$supported" >&6; }
7733		if test "$supported" = "yes" ; then
7734			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7735			found="yes"
7736		fi
7737	fi
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753xorg_testset_save_CFLAGS="$CFLAGS"
7754
7755if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7756	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7757	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7758$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7759if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7760  $as_echo_n "(cached) " >&6
7761else
7762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7763/* end confdefs.h.  */
7764int i;
7765_ACEOF
7766if ac_fn_c_try_compile "$LINENO"; then :
7767  xorg_cv_cc_flag_unknown_warning_option=yes
7768else
7769  xorg_cv_cc_flag_unknown_warning_option=no
7770fi
7771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7772fi
7773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7774$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7775	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7776	CFLAGS="$xorg_testset_save_CFLAGS"
7777fi
7778
7779if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7780	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7781		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7782	fi
7783	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7784	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7785$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7786if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7787  $as_echo_n "(cached) " >&6
7788else
7789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7790/* end confdefs.h.  */
7791int i;
7792_ACEOF
7793if ac_fn_c_try_compile "$LINENO"; then :
7794  xorg_cv_cc_flag_unused_command_line_argument=yes
7795else
7796  xorg_cv_cc_flag_unused_command_line_argument=no
7797fi
7798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7799fi
7800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7801$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7802	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7803	CFLAGS="$xorg_testset_save_CFLAGS"
7804fi
7805
7806found="no"
7807
7808	if test $found = "no" ; then
7809		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7810			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7811		fi
7812
7813		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7814			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7815		fi
7816
7817		CFLAGS="$CFLAGS -Werror=return-type"
7818
7819		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7820$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7821		cacheid=xorg_cv_cc_flag__Werror_return_type
7822		if eval \${$cacheid+:} false; then :
7823  $as_echo_n "(cached) " >&6
7824else
7825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7826/* end confdefs.h.  */
7827int i;
7828int
7829main ()
7830{
7831
7832  ;
7833  return 0;
7834}
7835_ACEOF
7836if ac_fn_c_try_link "$LINENO"; then :
7837  eval $cacheid=yes
7838else
7839  eval $cacheid=no
7840fi
7841rm -f core conftest.err conftest.$ac_objext \
7842    conftest$ac_exeext conftest.$ac_ext
7843fi
7844
7845
7846		CFLAGS="$xorg_testset_save_CFLAGS"
7847
7848		eval supported=\$$cacheid
7849		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7850$as_echo "$supported" >&6; }
7851		if test "$supported" = "yes" ; then
7852			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7853			found="yes"
7854		fi
7855	fi
7856
7857	if test $found = "no" ; then
7858		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7859			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7860		fi
7861
7862		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7863			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7864		fi
7865
7866		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7867
7868		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7869$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7870		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7871		if eval \${$cacheid+:} false; then :
7872  $as_echo_n "(cached) " >&6
7873else
7874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7875/* end confdefs.h.  */
7876int i;
7877int
7878main ()
7879{
7880
7881  ;
7882  return 0;
7883}
7884_ACEOF
7885if ac_fn_c_try_link "$LINENO"; then :
7886  eval $cacheid=yes
7887else
7888  eval $cacheid=no
7889fi
7890rm -f core conftest.err conftest.$ac_objext \
7891    conftest$ac_exeext conftest.$ac_ext
7892fi
7893
7894
7895		CFLAGS="$xorg_testset_save_CFLAGS"
7896
7897		eval supported=\$$cacheid
7898		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7899$as_echo "$supported" >&6; }
7900		if test "$supported" = "yes" ; then
7901			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7902			found="yes"
7903		fi
7904	fi
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920xorg_testset_save_CFLAGS="$CFLAGS"
7921
7922if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7923	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7924	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7925$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7926if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7927  $as_echo_n "(cached) " >&6
7928else
7929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7930/* end confdefs.h.  */
7931int i;
7932_ACEOF
7933if ac_fn_c_try_compile "$LINENO"; then :
7934  xorg_cv_cc_flag_unknown_warning_option=yes
7935else
7936  xorg_cv_cc_flag_unknown_warning_option=no
7937fi
7938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7939fi
7940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7941$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7942	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7943	CFLAGS="$xorg_testset_save_CFLAGS"
7944fi
7945
7946if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7947	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7948		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7949	fi
7950	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7951	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7952$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7953if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7954  $as_echo_n "(cached) " >&6
7955else
7956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7957/* end confdefs.h.  */
7958int i;
7959_ACEOF
7960if ac_fn_c_try_compile "$LINENO"; then :
7961  xorg_cv_cc_flag_unused_command_line_argument=yes
7962else
7963  xorg_cv_cc_flag_unused_command_line_argument=no
7964fi
7965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7966fi
7967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7968$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7969	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7970	CFLAGS="$xorg_testset_save_CFLAGS"
7971fi
7972
7973found="no"
7974
7975	if test $found = "no" ; then
7976		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7977			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7978		fi
7979
7980		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7981			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7982		fi
7983
7984		CFLAGS="$CFLAGS -Werror=trigraphs"
7985
7986		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7987$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7988		cacheid=xorg_cv_cc_flag__Werror_trigraphs
7989		if eval \${$cacheid+:} false; then :
7990  $as_echo_n "(cached) " >&6
7991else
7992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7993/* end confdefs.h.  */
7994int i;
7995int
7996main ()
7997{
7998
7999  ;
8000  return 0;
8001}
8002_ACEOF
8003if ac_fn_c_try_link "$LINENO"; then :
8004  eval $cacheid=yes
8005else
8006  eval $cacheid=no
8007fi
8008rm -f core conftest.err conftest.$ac_objext \
8009    conftest$ac_exeext conftest.$ac_ext
8010fi
8011
8012
8013		CFLAGS="$xorg_testset_save_CFLAGS"
8014
8015		eval supported=\$$cacheid
8016		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8017$as_echo "$supported" >&6; }
8018		if test "$supported" = "yes" ; then
8019			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8020			found="yes"
8021		fi
8022	fi
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038xorg_testset_save_CFLAGS="$CFLAGS"
8039
8040if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8041	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8042	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8043$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8044if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8045  $as_echo_n "(cached) " >&6
8046else
8047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8048/* end confdefs.h.  */
8049int i;
8050_ACEOF
8051if ac_fn_c_try_compile "$LINENO"; then :
8052  xorg_cv_cc_flag_unknown_warning_option=yes
8053else
8054  xorg_cv_cc_flag_unknown_warning_option=no
8055fi
8056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8057fi
8058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8059$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8060	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8061	CFLAGS="$xorg_testset_save_CFLAGS"
8062fi
8063
8064if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8065	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8066		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8067	fi
8068	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8069	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8070$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8071if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8072  $as_echo_n "(cached) " >&6
8073else
8074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8075/* end confdefs.h.  */
8076int i;
8077_ACEOF
8078if ac_fn_c_try_compile "$LINENO"; then :
8079  xorg_cv_cc_flag_unused_command_line_argument=yes
8080else
8081  xorg_cv_cc_flag_unused_command_line_argument=no
8082fi
8083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8084fi
8085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8086$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8087	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8088	CFLAGS="$xorg_testset_save_CFLAGS"
8089fi
8090
8091found="no"
8092
8093	if test $found = "no" ; then
8094		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8095			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8096		fi
8097
8098		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8099			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8100		fi
8101
8102		CFLAGS="$CFLAGS -Werror=array-bounds"
8103
8104		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8105$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8106		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8107		if eval \${$cacheid+:} false; then :
8108  $as_echo_n "(cached) " >&6
8109else
8110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111/* end confdefs.h.  */
8112int i;
8113int
8114main ()
8115{
8116
8117  ;
8118  return 0;
8119}
8120_ACEOF
8121if ac_fn_c_try_link "$LINENO"; then :
8122  eval $cacheid=yes
8123else
8124  eval $cacheid=no
8125fi
8126rm -f core conftest.err conftest.$ac_objext \
8127    conftest$ac_exeext conftest.$ac_ext
8128fi
8129
8130
8131		CFLAGS="$xorg_testset_save_CFLAGS"
8132
8133		eval supported=\$$cacheid
8134		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8135$as_echo "$supported" >&6; }
8136		if test "$supported" = "yes" ; then
8137			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8138			found="yes"
8139		fi
8140	fi
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156xorg_testset_save_CFLAGS="$CFLAGS"
8157
8158if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8159	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8160	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8161$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8162if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8163  $as_echo_n "(cached) " >&6
8164else
8165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8166/* end confdefs.h.  */
8167int i;
8168_ACEOF
8169if ac_fn_c_try_compile "$LINENO"; then :
8170  xorg_cv_cc_flag_unknown_warning_option=yes
8171else
8172  xorg_cv_cc_flag_unknown_warning_option=no
8173fi
8174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8175fi
8176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8177$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8178	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8179	CFLAGS="$xorg_testset_save_CFLAGS"
8180fi
8181
8182if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8183	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8184		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8185	fi
8186	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8187	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8188$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8189if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8190  $as_echo_n "(cached) " >&6
8191else
8192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8193/* end confdefs.h.  */
8194int i;
8195_ACEOF
8196if ac_fn_c_try_compile "$LINENO"; then :
8197  xorg_cv_cc_flag_unused_command_line_argument=yes
8198else
8199  xorg_cv_cc_flag_unused_command_line_argument=no
8200fi
8201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8202fi
8203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8204$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8205	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8206	CFLAGS="$xorg_testset_save_CFLAGS"
8207fi
8208
8209found="no"
8210
8211	if test $found = "no" ; then
8212		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8213			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8214		fi
8215
8216		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8217			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8218		fi
8219
8220		CFLAGS="$CFLAGS -Werror=write-strings"
8221
8222		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8223$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8224		cacheid=xorg_cv_cc_flag__Werror_write_strings
8225		if eval \${$cacheid+:} false; then :
8226  $as_echo_n "(cached) " >&6
8227else
8228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8229/* end confdefs.h.  */
8230int i;
8231int
8232main ()
8233{
8234
8235  ;
8236  return 0;
8237}
8238_ACEOF
8239if ac_fn_c_try_link "$LINENO"; then :
8240  eval $cacheid=yes
8241else
8242  eval $cacheid=no
8243fi
8244rm -f core conftest.err conftest.$ac_objext \
8245    conftest$ac_exeext conftest.$ac_ext
8246fi
8247
8248
8249		CFLAGS="$xorg_testset_save_CFLAGS"
8250
8251		eval supported=\$$cacheid
8252		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8253$as_echo "$supported" >&6; }
8254		if test "$supported" = "yes" ; then
8255			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8256			found="yes"
8257		fi
8258	fi
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274xorg_testset_save_CFLAGS="$CFLAGS"
8275
8276if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8277	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8278	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8279$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8280if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8281  $as_echo_n "(cached) " >&6
8282else
8283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8284/* end confdefs.h.  */
8285int i;
8286_ACEOF
8287if ac_fn_c_try_compile "$LINENO"; then :
8288  xorg_cv_cc_flag_unknown_warning_option=yes
8289else
8290  xorg_cv_cc_flag_unknown_warning_option=no
8291fi
8292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8293fi
8294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8295$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8296	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8297	CFLAGS="$xorg_testset_save_CFLAGS"
8298fi
8299
8300if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8301	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8302		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8303	fi
8304	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8305	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8306$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8307if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8308  $as_echo_n "(cached) " >&6
8309else
8310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8311/* end confdefs.h.  */
8312int i;
8313_ACEOF
8314if ac_fn_c_try_compile "$LINENO"; then :
8315  xorg_cv_cc_flag_unused_command_line_argument=yes
8316else
8317  xorg_cv_cc_flag_unused_command_line_argument=no
8318fi
8319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8320fi
8321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8322$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8323	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8324	CFLAGS="$xorg_testset_save_CFLAGS"
8325fi
8326
8327found="no"
8328
8329	if test $found = "no" ; then
8330		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8331			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8332		fi
8333
8334		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8335			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8336		fi
8337
8338		CFLAGS="$CFLAGS -Werror=address"
8339
8340		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8341$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8342		cacheid=xorg_cv_cc_flag__Werror_address
8343		if eval \${$cacheid+:} false; then :
8344  $as_echo_n "(cached) " >&6
8345else
8346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8347/* end confdefs.h.  */
8348int i;
8349int
8350main ()
8351{
8352
8353  ;
8354  return 0;
8355}
8356_ACEOF
8357if ac_fn_c_try_link "$LINENO"; then :
8358  eval $cacheid=yes
8359else
8360  eval $cacheid=no
8361fi
8362rm -f core conftest.err conftest.$ac_objext \
8363    conftest$ac_exeext conftest.$ac_ext
8364fi
8365
8366
8367		CFLAGS="$xorg_testset_save_CFLAGS"
8368
8369		eval supported=\$$cacheid
8370		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8371$as_echo "$supported" >&6; }
8372		if test "$supported" = "yes" ; then
8373			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8374			found="yes"
8375		fi
8376	fi
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392xorg_testset_save_CFLAGS="$CFLAGS"
8393
8394if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8395	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8396	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8397$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8398if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8399  $as_echo_n "(cached) " >&6
8400else
8401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8402/* end confdefs.h.  */
8403int i;
8404_ACEOF
8405if ac_fn_c_try_compile "$LINENO"; then :
8406  xorg_cv_cc_flag_unknown_warning_option=yes
8407else
8408  xorg_cv_cc_flag_unknown_warning_option=no
8409fi
8410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8411fi
8412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8413$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8414	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8415	CFLAGS="$xorg_testset_save_CFLAGS"
8416fi
8417
8418if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8419	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8420		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8421	fi
8422	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8423	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8424$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8425if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8426  $as_echo_n "(cached) " >&6
8427else
8428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8429/* end confdefs.h.  */
8430int i;
8431_ACEOF
8432if ac_fn_c_try_compile "$LINENO"; then :
8433  xorg_cv_cc_flag_unused_command_line_argument=yes
8434else
8435  xorg_cv_cc_flag_unused_command_line_argument=no
8436fi
8437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8438fi
8439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8440$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8441	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8442	CFLAGS="$xorg_testset_save_CFLAGS"
8443fi
8444
8445found="no"
8446
8447	if test $found = "no" ; then
8448		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8449			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8450		fi
8451
8452		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8453			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8454		fi
8455
8456		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8457
8458		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8459$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8460		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8461		if eval \${$cacheid+:} false; then :
8462  $as_echo_n "(cached) " >&6
8463else
8464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8465/* end confdefs.h.  */
8466int i;
8467int
8468main ()
8469{
8470
8471  ;
8472  return 0;
8473}
8474_ACEOF
8475if ac_fn_c_try_link "$LINENO"; then :
8476  eval $cacheid=yes
8477else
8478  eval $cacheid=no
8479fi
8480rm -f core conftest.err conftest.$ac_objext \
8481    conftest$ac_exeext conftest.$ac_ext
8482fi
8483
8484
8485		CFLAGS="$xorg_testset_save_CFLAGS"
8486
8487		eval supported=\$$cacheid
8488		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8489$as_echo "$supported" >&6; }
8490		if test "$supported" = "yes" ; then
8491			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8492			found="yes"
8493		fi
8494	fi
8495
8496	if test $found = "no" ; then
8497		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8498			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8499		fi
8500
8501		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8502			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8503		fi
8504
8505		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8506
8507		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8508$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8509		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8510		if eval \${$cacheid+:} false; then :
8511  $as_echo_n "(cached) " >&6
8512else
8513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8514/* end confdefs.h.  */
8515int i;
8516int
8517main ()
8518{
8519
8520  ;
8521  return 0;
8522}
8523_ACEOF
8524if ac_fn_c_try_link "$LINENO"; then :
8525  eval $cacheid=yes
8526else
8527  eval $cacheid=no
8528fi
8529rm -f core conftest.err conftest.$ac_objext \
8530    conftest$ac_exeext conftest.$ac_ext
8531fi
8532
8533
8534		CFLAGS="$xorg_testset_save_CFLAGS"
8535
8536		eval supported=\$$cacheid
8537		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8538$as_echo "$supported" >&6; }
8539		if test "$supported" = "yes" ; then
8540			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8541			found="yes"
8542		fi
8543	fi
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559xorg_testset_save_CFLAGS="$CFLAGS"
8560
8561if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8562	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8563	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8564$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8565if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8566  $as_echo_n "(cached) " >&6
8567else
8568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8569/* end confdefs.h.  */
8570int i;
8571_ACEOF
8572if ac_fn_c_try_compile "$LINENO"; then :
8573  xorg_cv_cc_flag_unknown_warning_option=yes
8574else
8575  xorg_cv_cc_flag_unknown_warning_option=no
8576fi
8577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8578fi
8579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8580$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8581	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8582	CFLAGS="$xorg_testset_save_CFLAGS"
8583fi
8584
8585if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8586	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8587		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8588	fi
8589	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8590	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8591$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8592if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8593  $as_echo_n "(cached) " >&6
8594else
8595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8596/* end confdefs.h.  */
8597int i;
8598_ACEOF
8599if ac_fn_c_try_compile "$LINENO"; then :
8600  xorg_cv_cc_flag_unused_command_line_argument=yes
8601else
8602  xorg_cv_cc_flag_unused_command_line_argument=no
8603fi
8604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8605fi
8606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8607$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8608	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8609	CFLAGS="$xorg_testset_save_CFLAGS"
8610fi
8611
8612found="no"
8613
8614	if test $found = "no" ; then
8615		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8616			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8617		fi
8618
8619		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8620			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8621		fi
8622
8623		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8624
8625		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8626$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8627		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8628		if eval \${$cacheid+:} false; then :
8629  $as_echo_n "(cached) " >&6
8630else
8631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8632/* end confdefs.h.  */
8633int i;
8634int
8635main ()
8636{
8637
8638  ;
8639  return 0;
8640}
8641_ACEOF
8642if ac_fn_c_try_link "$LINENO"; then :
8643  eval $cacheid=yes
8644else
8645  eval $cacheid=no
8646fi
8647rm -f core conftest.err conftest.$ac_objext \
8648    conftest$ac_exeext conftest.$ac_ext
8649fi
8650
8651
8652		CFLAGS="$xorg_testset_save_CFLAGS"
8653
8654		eval supported=\$$cacheid
8655		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8656$as_echo "$supported" >&6; }
8657		if test "$supported" = "yes" ; then
8658			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8659			found="yes"
8660		fi
8661	fi
8662
8663 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8664else
8665{ $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
8666$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;}
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680xorg_testset_save_CFLAGS="$CFLAGS"
8681
8682if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8683	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8684	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8685$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8686if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8687  $as_echo_n "(cached) " >&6
8688else
8689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690/* end confdefs.h.  */
8691int i;
8692_ACEOF
8693if ac_fn_c_try_compile "$LINENO"; then :
8694  xorg_cv_cc_flag_unknown_warning_option=yes
8695else
8696  xorg_cv_cc_flag_unknown_warning_option=no
8697fi
8698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8699fi
8700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8701$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8702	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8703	CFLAGS="$xorg_testset_save_CFLAGS"
8704fi
8705
8706if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8707	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8708		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8709	fi
8710	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8711	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8712$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8713if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8714  $as_echo_n "(cached) " >&6
8715else
8716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8717/* end confdefs.h.  */
8718int i;
8719_ACEOF
8720if ac_fn_c_try_compile "$LINENO"; then :
8721  xorg_cv_cc_flag_unused_command_line_argument=yes
8722else
8723  xorg_cv_cc_flag_unused_command_line_argument=no
8724fi
8725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8726fi
8727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8728$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8729	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8730	CFLAGS="$xorg_testset_save_CFLAGS"
8731fi
8732
8733found="no"
8734
8735	if test $found = "no" ; then
8736		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8737			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8738		fi
8739
8740		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8741			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8742		fi
8743
8744		CFLAGS="$CFLAGS -Wimplicit"
8745
8746		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8747$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8748		cacheid=xorg_cv_cc_flag__Wimplicit
8749		if eval \${$cacheid+:} false; then :
8750  $as_echo_n "(cached) " >&6
8751else
8752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8753/* end confdefs.h.  */
8754int i;
8755int
8756main ()
8757{
8758
8759  ;
8760  return 0;
8761}
8762_ACEOF
8763if ac_fn_c_try_link "$LINENO"; then :
8764  eval $cacheid=yes
8765else
8766  eval $cacheid=no
8767fi
8768rm -f core conftest.err conftest.$ac_objext \
8769    conftest$ac_exeext conftest.$ac_ext
8770fi
8771
8772
8773		CFLAGS="$xorg_testset_save_CFLAGS"
8774
8775		eval supported=\$$cacheid
8776		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8777$as_echo "$supported" >&6; }
8778		if test "$supported" = "yes" ; then
8779			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8780			found="yes"
8781		fi
8782	fi
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798xorg_testset_save_CFLAGS="$CFLAGS"
8799
8800if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8801	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8802	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8803$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8804if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8805  $as_echo_n "(cached) " >&6
8806else
8807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8808/* end confdefs.h.  */
8809int i;
8810_ACEOF
8811if ac_fn_c_try_compile "$LINENO"; then :
8812  xorg_cv_cc_flag_unknown_warning_option=yes
8813else
8814  xorg_cv_cc_flag_unknown_warning_option=no
8815fi
8816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8817fi
8818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8819$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8820	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8821	CFLAGS="$xorg_testset_save_CFLAGS"
8822fi
8823
8824if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8825	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8826		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8827	fi
8828	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8829	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8830$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8831if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8832  $as_echo_n "(cached) " >&6
8833else
8834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8835/* end confdefs.h.  */
8836int i;
8837_ACEOF
8838if ac_fn_c_try_compile "$LINENO"; then :
8839  xorg_cv_cc_flag_unused_command_line_argument=yes
8840else
8841  xorg_cv_cc_flag_unused_command_line_argument=no
8842fi
8843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8844fi
8845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8846$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8847	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8848	CFLAGS="$xorg_testset_save_CFLAGS"
8849fi
8850
8851found="no"
8852
8853	if test $found = "no" ; then
8854		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8855			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8856		fi
8857
8858		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8859			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8860		fi
8861
8862		CFLAGS="$CFLAGS -Wnonnull"
8863
8864		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8865$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8866		cacheid=xorg_cv_cc_flag__Wnonnull
8867		if eval \${$cacheid+:} false; then :
8868  $as_echo_n "(cached) " >&6
8869else
8870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8871/* end confdefs.h.  */
8872int i;
8873int
8874main ()
8875{
8876
8877  ;
8878  return 0;
8879}
8880_ACEOF
8881if ac_fn_c_try_link "$LINENO"; then :
8882  eval $cacheid=yes
8883else
8884  eval $cacheid=no
8885fi
8886rm -f core conftest.err conftest.$ac_objext \
8887    conftest$ac_exeext conftest.$ac_ext
8888fi
8889
8890
8891		CFLAGS="$xorg_testset_save_CFLAGS"
8892
8893		eval supported=\$$cacheid
8894		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8895$as_echo "$supported" >&6; }
8896		if test "$supported" = "yes" ; then
8897			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8898			found="yes"
8899		fi
8900	fi
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916xorg_testset_save_CFLAGS="$CFLAGS"
8917
8918if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8919	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8920	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8921$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8922if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8923  $as_echo_n "(cached) " >&6
8924else
8925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8926/* end confdefs.h.  */
8927int i;
8928_ACEOF
8929if ac_fn_c_try_compile "$LINENO"; then :
8930  xorg_cv_cc_flag_unknown_warning_option=yes
8931else
8932  xorg_cv_cc_flag_unknown_warning_option=no
8933fi
8934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8935fi
8936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8937$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8938	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8939	CFLAGS="$xorg_testset_save_CFLAGS"
8940fi
8941
8942if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8943	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8944		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8945	fi
8946	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8947	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8948$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8949if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8950  $as_echo_n "(cached) " >&6
8951else
8952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8953/* end confdefs.h.  */
8954int i;
8955_ACEOF
8956if ac_fn_c_try_compile "$LINENO"; then :
8957  xorg_cv_cc_flag_unused_command_line_argument=yes
8958else
8959  xorg_cv_cc_flag_unused_command_line_argument=no
8960fi
8961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8962fi
8963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8964$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8965	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8966	CFLAGS="$xorg_testset_save_CFLAGS"
8967fi
8968
8969found="no"
8970
8971	if test $found = "no" ; then
8972		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8973			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8974		fi
8975
8976		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8977			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8978		fi
8979
8980		CFLAGS="$CFLAGS -Winit-self"
8981
8982		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8983$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8984		cacheid=xorg_cv_cc_flag__Winit_self
8985		if eval \${$cacheid+:} false; then :
8986  $as_echo_n "(cached) " >&6
8987else
8988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8989/* end confdefs.h.  */
8990int i;
8991int
8992main ()
8993{
8994
8995  ;
8996  return 0;
8997}
8998_ACEOF
8999if ac_fn_c_try_link "$LINENO"; then :
9000  eval $cacheid=yes
9001else
9002  eval $cacheid=no
9003fi
9004rm -f core conftest.err conftest.$ac_objext \
9005    conftest$ac_exeext conftest.$ac_ext
9006fi
9007
9008
9009		CFLAGS="$xorg_testset_save_CFLAGS"
9010
9011		eval supported=\$$cacheid
9012		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9013$as_echo "$supported" >&6; }
9014		if test "$supported" = "yes" ; then
9015			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9016			found="yes"
9017		fi
9018	fi
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034xorg_testset_save_CFLAGS="$CFLAGS"
9035
9036if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9037	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9038	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9039$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9040if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9041  $as_echo_n "(cached) " >&6
9042else
9043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9044/* end confdefs.h.  */
9045int i;
9046_ACEOF
9047if ac_fn_c_try_compile "$LINENO"; then :
9048  xorg_cv_cc_flag_unknown_warning_option=yes
9049else
9050  xorg_cv_cc_flag_unknown_warning_option=no
9051fi
9052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9053fi
9054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9055$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9056	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9057	CFLAGS="$xorg_testset_save_CFLAGS"
9058fi
9059
9060if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9061	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9062		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9063	fi
9064	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9065	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9066$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9067if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9068  $as_echo_n "(cached) " >&6
9069else
9070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9071/* end confdefs.h.  */
9072int i;
9073_ACEOF
9074if ac_fn_c_try_compile "$LINENO"; then :
9075  xorg_cv_cc_flag_unused_command_line_argument=yes
9076else
9077  xorg_cv_cc_flag_unused_command_line_argument=no
9078fi
9079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9080fi
9081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9082$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9083	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9084	CFLAGS="$xorg_testset_save_CFLAGS"
9085fi
9086
9087found="no"
9088
9089	if test $found = "no" ; then
9090		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9091			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9092		fi
9093
9094		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9095			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9096		fi
9097
9098		CFLAGS="$CFLAGS -Wmain"
9099
9100		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9101$as_echo_n "checking if $CC supports -Wmain... " >&6; }
9102		cacheid=xorg_cv_cc_flag__Wmain
9103		if eval \${$cacheid+:} false; then :
9104  $as_echo_n "(cached) " >&6
9105else
9106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9107/* end confdefs.h.  */
9108int i;
9109int
9110main ()
9111{
9112
9113  ;
9114  return 0;
9115}
9116_ACEOF
9117if ac_fn_c_try_link "$LINENO"; then :
9118  eval $cacheid=yes
9119else
9120  eval $cacheid=no
9121fi
9122rm -f core conftest.err conftest.$ac_objext \
9123    conftest$ac_exeext conftest.$ac_ext
9124fi
9125
9126
9127		CFLAGS="$xorg_testset_save_CFLAGS"
9128
9129		eval supported=\$$cacheid
9130		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9131$as_echo "$supported" >&6; }
9132		if test "$supported" = "yes" ; then
9133			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9134			found="yes"
9135		fi
9136	fi
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152xorg_testset_save_CFLAGS="$CFLAGS"
9153
9154if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9155	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9156	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9157$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9158if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9159  $as_echo_n "(cached) " >&6
9160else
9161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9162/* end confdefs.h.  */
9163int i;
9164_ACEOF
9165if ac_fn_c_try_compile "$LINENO"; then :
9166  xorg_cv_cc_flag_unknown_warning_option=yes
9167else
9168  xorg_cv_cc_flag_unknown_warning_option=no
9169fi
9170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9171fi
9172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9173$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9174	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9175	CFLAGS="$xorg_testset_save_CFLAGS"
9176fi
9177
9178if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9179	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9180		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9181	fi
9182	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9183	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9184$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9185if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9186  $as_echo_n "(cached) " >&6
9187else
9188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9189/* end confdefs.h.  */
9190int i;
9191_ACEOF
9192if ac_fn_c_try_compile "$LINENO"; then :
9193  xorg_cv_cc_flag_unused_command_line_argument=yes
9194else
9195  xorg_cv_cc_flag_unused_command_line_argument=no
9196fi
9197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9198fi
9199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9200$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9201	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9202	CFLAGS="$xorg_testset_save_CFLAGS"
9203fi
9204
9205found="no"
9206
9207	if test $found = "no" ; then
9208		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9209			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9210		fi
9211
9212		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9213			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9214		fi
9215
9216		CFLAGS="$CFLAGS -Wmissing-braces"
9217
9218		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9219$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9220		cacheid=xorg_cv_cc_flag__Wmissing_braces
9221		if eval \${$cacheid+:} false; then :
9222  $as_echo_n "(cached) " >&6
9223else
9224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9225/* end confdefs.h.  */
9226int i;
9227int
9228main ()
9229{
9230
9231  ;
9232  return 0;
9233}
9234_ACEOF
9235if ac_fn_c_try_link "$LINENO"; then :
9236  eval $cacheid=yes
9237else
9238  eval $cacheid=no
9239fi
9240rm -f core conftest.err conftest.$ac_objext \
9241    conftest$ac_exeext conftest.$ac_ext
9242fi
9243
9244
9245		CFLAGS="$xorg_testset_save_CFLAGS"
9246
9247		eval supported=\$$cacheid
9248		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9249$as_echo "$supported" >&6; }
9250		if test "$supported" = "yes" ; then
9251			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9252			found="yes"
9253		fi
9254	fi
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270xorg_testset_save_CFLAGS="$CFLAGS"
9271
9272if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9273	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9274	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9275$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9276if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9277  $as_echo_n "(cached) " >&6
9278else
9279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9280/* end confdefs.h.  */
9281int i;
9282_ACEOF
9283if ac_fn_c_try_compile "$LINENO"; then :
9284  xorg_cv_cc_flag_unknown_warning_option=yes
9285else
9286  xorg_cv_cc_flag_unknown_warning_option=no
9287fi
9288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9289fi
9290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9291$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9292	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9293	CFLAGS="$xorg_testset_save_CFLAGS"
9294fi
9295
9296if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9297	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9298		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9299	fi
9300	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9301	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9302$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9303if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9304  $as_echo_n "(cached) " >&6
9305else
9306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9307/* end confdefs.h.  */
9308int i;
9309_ACEOF
9310if ac_fn_c_try_compile "$LINENO"; then :
9311  xorg_cv_cc_flag_unused_command_line_argument=yes
9312else
9313  xorg_cv_cc_flag_unused_command_line_argument=no
9314fi
9315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9316fi
9317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9318$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9319	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9320	CFLAGS="$xorg_testset_save_CFLAGS"
9321fi
9322
9323found="no"
9324
9325	if test $found = "no" ; then
9326		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9327			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9328		fi
9329
9330		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9331			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9332		fi
9333
9334		CFLAGS="$CFLAGS -Wsequence-point"
9335
9336		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9337$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9338		cacheid=xorg_cv_cc_flag__Wsequence_point
9339		if eval \${$cacheid+:} false; then :
9340  $as_echo_n "(cached) " >&6
9341else
9342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9343/* end confdefs.h.  */
9344int i;
9345int
9346main ()
9347{
9348
9349  ;
9350  return 0;
9351}
9352_ACEOF
9353if ac_fn_c_try_link "$LINENO"; then :
9354  eval $cacheid=yes
9355else
9356  eval $cacheid=no
9357fi
9358rm -f core conftest.err conftest.$ac_objext \
9359    conftest$ac_exeext conftest.$ac_ext
9360fi
9361
9362
9363		CFLAGS="$xorg_testset_save_CFLAGS"
9364
9365		eval supported=\$$cacheid
9366		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9367$as_echo "$supported" >&6; }
9368		if test "$supported" = "yes" ; then
9369			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9370			found="yes"
9371		fi
9372	fi
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388xorg_testset_save_CFLAGS="$CFLAGS"
9389
9390if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9391	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9392	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9393$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9394if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9395  $as_echo_n "(cached) " >&6
9396else
9397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9398/* end confdefs.h.  */
9399int i;
9400_ACEOF
9401if ac_fn_c_try_compile "$LINENO"; then :
9402  xorg_cv_cc_flag_unknown_warning_option=yes
9403else
9404  xorg_cv_cc_flag_unknown_warning_option=no
9405fi
9406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9407fi
9408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9409$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9410	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9411	CFLAGS="$xorg_testset_save_CFLAGS"
9412fi
9413
9414if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9415	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9416		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9417	fi
9418	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9419	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9420$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9421if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9422  $as_echo_n "(cached) " >&6
9423else
9424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9425/* end confdefs.h.  */
9426int i;
9427_ACEOF
9428if ac_fn_c_try_compile "$LINENO"; then :
9429  xorg_cv_cc_flag_unused_command_line_argument=yes
9430else
9431  xorg_cv_cc_flag_unused_command_line_argument=no
9432fi
9433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9434fi
9435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9436$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9437	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9438	CFLAGS="$xorg_testset_save_CFLAGS"
9439fi
9440
9441found="no"
9442
9443	if test $found = "no" ; then
9444		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9445			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9446		fi
9447
9448		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9449			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9450		fi
9451
9452		CFLAGS="$CFLAGS -Wreturn-type"
9453
9454		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9455$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9456		cacheid=xorg_cv_cc_flag__Wreturn_type
9457		if eval \${$cacheid+:} false; then :
9458  $as_echo_n "(cached) " >&6
9459else
9460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9461/* end confdefs.h.  */
9462int i;
9463int
9464main ()
9465{
9466
9467  ;
9468  return 0;
9469}
9470_ACEOF
9471if ac_fn_c_try_link "$LINENO"; then :
9472  eval $cacheid=yes
9473else
9474  eval $cacheid=no
9475fi
9476rm -f core conftest.err conftest.$ac_objext \
9477    conftest$ac_exeext conftest.$ac_ext
9478fi
9479
9480
9481		CFLAGS="$xorg_testset_save_CFLAGS"
9482
9483		eval supported=\$$cacheid
9484		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9485$as_echo "$supported" >&6; }
9486		if test "$supported" = "yes" ; then
9487			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9488			found="yes"
9489		fi
9490	fi
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506xorg_testset_save_CFLAGS="$CFLAGS"
9507
9508if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9509	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9510	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9511$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9512if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9513  $as_echo_n "(cached) " >&6
9514else
9515  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9516/* end confdefs.h.  */
9517int i;
9518_ACEOF
9519if ac_fn_c_try_compile "$LINENO"; then :
9520  xorg_cv_cc_flag_unknown_warning_option=yes
9521else
9522  xorg_cv_cc_flag_unknown_warning_option=no
9523fi
9524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9525fi
9526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9527$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9528	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9529	CFLAGS="$xorg_testset_save_CFLAGS"
9530fi
9531
9532if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9533	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9534		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9535	fi
9536	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9537	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9538$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9539if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9540  $as_echo_n "(cached) " >&6
9541else
9542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9543/* end confdefs.h.  */
9544int i;
9545_ACEOF
9546if ac_fn_c_try_compile "$LINENO"; then :
9547  xorg_cv_cc_flag_unused_command_line_argument=yes
9548else
9549  xorg_cv_cc_flag_unused_command_line_argument=no
9550fi
9551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9552fi
9553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9554$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9555	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9556	CFLAGS="$xorg_testset_save_CFLAGS"
9557fi
9558
9559found="no"
9560
9561	if test $found = "no" ; then
9562		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9563			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9564		fi
9565
9566		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9567			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9568		fi
9569
9570		CFLAGS="$CFLAGS -Wtrigraphs"
9571
9572		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9573$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9574		cacheid=xorg_cv_cc_flag__Wtrigraphs
9575		if eval \${$cacheid+:} false; then :
9576  $as_echo_n "(cached) " >&6
9577else
9578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9579/* end confdefs.h.  */
9580int i;
9581int
9582main ()
9583{
9584
9585  ;
9586  return 0;
9587}
9588_ACEOF
9589if ac_fn_c_try_link "$LINENO"; then :
9590  eval $cacheid=yes
9591else
9592  eval $cacheid=no
9593fi
9594rm -f core conftest.err conftest.$ac_objext \
9595    conftest$ac_exeext conftest.$ac_ext
9596fi
9597
9598
9599		CFLAGS="$xorg_testset_save_CFLAGS"
9600
9601		eval supported=\$$cacheid
9602		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9603$as_echo "$supported" >&6; }
9604		if test "$supported" = "yes" ; then
9605			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9606			found="yes"
9607		fi
9608	fi
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624xorg_testset_save_CFLAGS="$CFLAGS"
9625
9626if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9627	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9628	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9629$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9630if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9631  $as_echo_n "(cached) " >&6
9632else
9633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9634/* end confdefs.h.  */
9635int i;
9636_ACEOF
9637if ac_fn_c_try_compile "$LINENO"; then :
9638  xorg_cv_cc_flag_unknown_warning_option=yes
9639else
9640  xorg_cv_cc_flag_unknown_warning_option=no
9641fi
9642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9643fi
9644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9645$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9646	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9647	CFLAGS="$xorg_testset_save_CFLAGS"
9648fi
9649
9650if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9651	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9652		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9653	fi
9654	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9655	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9656$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9657if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9658  $as_echo_n "(cached) " >&6
9659else
9660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9661/* end confdefs.h.  */
9662int i;
9663_ACEOF
9664if ac_fn_c_try_compile "$LINENO"; then :
9665  xorg_cv_cc_flag_unused_command_line_argument=yes
9666else
9667  xorg_cv_cc_flag_unused_command_line_argument=no
9668fi
9669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9670fi
9671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9672$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9673	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9674	CFLAGS="$xorg_testset_save_CFLAGS"
9675fi
9676
9677found="no"
9678
9679	if test $found = "no" ; then
9680		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9681			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9682		fi
9683
9684		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9685			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9686		fi
9687
9688		CFLAGS="$CFLAGS -Warray-bounds"
9689
9690		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9691$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9692		cacheid=xorg_cv_cc_flag__Warray_bounds
9693		if eval \${$cacheid+:} false; then :
9694  $as_echo_n "(cached) " >&6
9695else
9696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9697/* end confdefs.h.  */
9698int i;
9699int
9700main ()
9701{
9702
9703  ;
9704  return 0;
9705}
9706_ACEOF
9707if ac_fn_c_try_link "$LINENO"; then :
9708  eval $cacheid=yes
9709else
9710  eval $cacheid=no
9711fi
9712rm -f core conftest.err conftest.$ac_objext \
9713    conftest$ac_exeext conftest.$ac_ext
9714fi
9715
9716
9717		CFLAGS="$xorg_testset_save_CFLAGS"
9718
9719		eval supported=\$$cacheid
9720		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9721$as_echo "$supported" >&6; }
9722		if test "$supported" = "yes" ; then
9723			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9724			found="yes"
9725		fi
9726	fi
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742xorg_testset_save_CFLAGS="$CFLAGS"
9743
9744if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9745	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9746	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9747$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9748if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9749  $as_echo_n "(cached) " >&6
9750else
9751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9752/* end confdefs.h.  */
9753int i;
9754_ACEOF
9755if ac_fn_c_try_compile "$LINENO"; then :
9756  xorg_cv_cc_flag_unknown_warning_option=yes
9757else
9758  xorg_cv_cc_flag_unknown_warning_option=no
9759fi
9760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9761fi
9762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9763$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9764	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9765	CFLAGS="$xorg_testset_save_CFLAGS"
9766fi
9767
9768if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9769	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9770		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9771	fi
9772	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9773	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9774$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9775if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9776  $as_echo_n "(cached) " >&6
9777else
9778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9779/* end confdefs.h.  */
9780int i;
9781_ACEOF
9782if ac_fn_c_try_compile "$LINENO"; then :
9783  xorg_cv_cc_flag_unused_command_line_argument=yes
9784else
9785  xorg_cv_cc_flag_unused_command_line_argument=no
9786fi
9787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9788fi
9789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9790$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9791	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9792	CFLAGS="$xorg_testset_save_CFLAGS"
9793fi
9794
9795found="no"
9796
9797	if test $found = "no" ; then
9798		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9799			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9800		fi
9801
9802		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9803			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9804		fi
9805
9806		CFLAGS="$CFLAGS -Wwrite-strings"
9807
9808		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9809$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9810		cacheid=xorg_cv_cc_flag__Wwrite_strings
9811		if eval \${$cacheid+:} false; then :
9812  $as_echo_n "(cached) " >&6
9813else
9814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9815/* end confdefs.h.  */
9816int i;
9817int
9818main ()
9819{
9820
9821  ;
9822  return 0;
9823}
9824_ACEOF
9825if ac_fn_c_try_link "$LINENO"; then :
9826  eval $cacheid=yes
9827else
9828  eval $cacheid=no
9829fi
9830rm -f core conftest.err conftest.$ac_objext \
9831    conftest$ac_exeext conftest.$ac_ext
9832fi
9833
9834
9835		CFLAGS="$xorg_testset_save_CFLAGS"
9836
9837		eval supported=\$$cacheid
9838		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9839$as_echo "$supported" >&6; }
9840		if test "$supported" = "yes" ; then
9841			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9842			found="yes"
9843		fi
9844	fi
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860xorg_testset_save_CFLAGS="$CFLAGS"
9861
9862if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9863	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9864	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9865$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9866if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9867  $as_echo_n "(cached) " >&6
9868else
9869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9870/* end confdefs.h.  */
9871int i;
9872_ACEOF
9873if ac_fn_c_try_compile "$LINENO"; then :
9874  xorg_cv_cc_flag_unknown_warning_option=yes
9875else
9876  xorg_cv_cc_flag_unknown_warning_option=no
9877fi
9878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9879fi
9880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9881$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9882	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9883	CFLAGS="$xorg_testset_save_CFLAGS"
9884fi
9885
9886if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9887	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9888		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9889	fi
9890	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9891	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9892$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9893if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9894  $as_echo_n "(cached) " >&6
9895else
9896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9897/* end confdefs.h.  */
9898int i;
9899_ACEOF
9900if ac_fn_c_try_compile "$LINENO"; then :
9901  xorg_cv_cc_flag_unused_command_line_argument=yes
9902else
9903  xorg_cv_cc_flag_unused_command_line_argument=no
9904fi
9905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9906fi
9907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9908$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9909	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9910	CFLAGS="$xorg_testset_save_CFLAGS"
9911fi
9912
9913found="no"
9914
9915	if test $found = "no" ; then
9916		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9917			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9918		fi
9919
9920		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9921			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9922		fi
9923
9924		CFLAGS="$CFLAGS -Waddress"
9925
9926		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9927$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9928		cacheid=xorg_cv_cc_flag__Waddress
9929		if eval \${$cacheid+:} false; then :
9930  $as_echo_n "(cached) " >&6
9931else
9932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9933/* end confdefs.h.  */
9934int i;
9935int
9936main ()
9937{
9938
9939  ;
9940  return 0;
9941}
9942_ACEOF
9943if ac_fn_c_try_link "$LINENO"; then :
9944  eval $cacheid=yes
9945else
9946  eval $cacheid=no
9947fi
9948rm -f core conftest.err conftest.$ac_objext \
9949    conftest$ac_exeext conftest.$ac_ext
9950fi
9951
9952
9953		CFLAGS="$xorg_testset_save_CFLAGS"
9954
9955		eval supported=\$$cacheid
9956		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9957$as_echo "$supported" >&6; }
9958		if test "$supported" = "yes" ; then
9959			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9960			found="yes"
9961		fi
9962	fi
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978xorg_testset_save_CFLAGS="$CFLAGS"
9979
9980if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9981	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9982	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9983$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9984if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9985  $as_echo_n "(cached) " >&6
9986else
9987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9988/* end confdefs.h.  */
9989int i;
9990_ACEOF
9991if ac_fn_c_try_compile "$LINENO"; then :
9992  xorg_cv_cc_flag_unknown_warning_option=yes
9993else
9994  xorg_cv_cc_flag_unknown_warning_option=no
9995fi
9996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9997fi
9998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9999$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10000	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10001	CFLAGS="$xorg_testset_save_CFLAGS"
10002fi
10003
10004if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10005	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10006		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10007	fi
10008	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10009	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10010$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10011if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10012  $as_echo_n "(cached) " >&6
10013else
10014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10015/* end confdefs.h.  */
10016int i;
10017_ACEOF
10018if ac_fn_c_try_compile "$LINENO"; then :
10019  xorg_cv_cc_flag_unused_command_line_argument=yes
10020else
10021  xorg_cv_cc_flag_unused_command_line_argument=no
10022fi
10023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10024fi
10025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10026$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10027	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10028	CFLAGS="$xorg_testset_save_CFLAGS"
10029fi
10030
10031found="no"
10032
10033	if test $found = "no" ; then
10034		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10035			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10036		fi
10037
10038		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10039			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10040		fi
10041
10042		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10043
10044		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10045$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10046		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10047		if eval \${$cacheid+:} false; then :
10048  $as_echo_n "(cached) " >&6
10049else
10050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10051/* end confdefs.h.  */
10052int i;
10053int
10054main ()
10055{
10056
10057  ;
10058  return 0;
10059}
10060_ACEOF
10061if ac_fn_c_try_link "$LINENO"; then :
10062  eval $cacheid=yes
10063else
10064  eval $cacheid=no
10065fi
10066rm -f core conftest.err conftest.$ac_objext \
10067    conftest$ac_exeext conftest.$ac_ext
10068fi
10069
10070
10071		CFLAGS="$xorg_testset_save_CFLAGS"
10072
10073		eval supported=\$$cacheid
10074		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10075$as_echo "$supported" >&6; }
10076		if test "$supported" = "yes" ; then
10077			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10078			found="yes"
10079		fi
10080	fi
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096xorg_testset_save_CFLAGS="$CFLAGS"
10097
10098if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10099	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10100	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10101$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10102if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10103  $as_echo_n "(cached) " >&6
10104else
10105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10106/* end confdefs.h.  */
10107int i;
10108_ACEOF
10109if ac_fn_c_try_compile "$LINENO"; then :
10110  xorg_cv_cc_flag_unknown_warning_option=yes
10111else
10112  xorg_cv_cc_flag_unknown_warning_option=no
10113fi
10114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10115fi
10116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10117$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10118	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10119	CFLAGS="$xorg_testset_save_CFLAGS"
10120fi
10121
10122if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10123	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10124		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10125	fi
10126	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10127	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10128$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10129if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10130  $as_echo_n "(cached) " >&6
10131else
10132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10133/* end confdefs.h.  */
10134int i;
10135_ACEOF
10136if ac_fn_c_try_compile "$LINENO"; then :
10137  xorg_cv_cc_flag_unused_command_line_argument=yes
10138else
10139  xorg_cv_cc_flag_unused_command_line_argument=no
10140fi
10141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10142fi
10143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10144$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10145	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10146	CFLAGS="$xorg_testset_save_CFLAGS"
10147fi
10148
10149found="no"
10150
10151	if test $found = "no" ; then
10152		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10153			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10154		fi
10155
10156		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10157			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10158		fi
10159
10160		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10161
10162		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10163$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10164		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10165		if eval \${$cacheid+:} false; then :
10166  $as_echo_n "(cached) " >&6
10167else
10168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10169/* end confdefs.h.  */
10170int i;
10171int
10172main ()
10173{
10174
10175  ;
10176  return 0;
10177}
10178_ACEOF
10179if ac_fn_c_try_link "$LINENO"; then :
10180  eval $cacheid=yes
10181else
10182  eval $cacheid=no
10183fi
10184rm -f core conftest.err conftest.$ac_objext \
10185    conftest$ac_exeext conftest.$ac_ext
10186fi
10187
10188
10189		CFLAGS="$xorg_testset_save_CFLAGS"
10190
10191		eval supported=\$$cacheid
10192		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10193$as_echo "$supported" >&6; }
10194		if test "$supported" = "yes" ; then
10195			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10196			found="yes"
10197		fi
10198	fi
10199
10200
10201fi
10202
10203
10204
10205
10206
10207
10208
10209		CWARNFLAGS="$BASE_CFLAGS"
10210		if  test "x$GCC" = xyes ; then
10211		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10212		fi
10213
10214
10215
10216
10217
10218
10219
10220
10221# Check whether --enable-strict-compilation was given.
10222if test "${enable_strict_compilation+set}" = set; then :
10223  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10224else
10225  STRICT_COMPILE=no
10226fi
10227
10228
10229
10230
10231
10232
10233STRICT_CFLAGS=""
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247xorg_testset_save_CFLAGS="$CFLAGS"
10248
10249if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10250	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10251	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10252$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10253if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10254  $as_echo_n "(cached) " >&6
10255else
10256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10257/* end confdefs.h.  */
10258int i;
10259_ACEOF
10260if ac_fn_c_try_compile "$LINENO"; then :
10261  xorg_cv_cc_flag_unknown_warning_option=yes
10262else
10263  xorg_cv_cc_flag_unknown_warning_option=no
10264fi
10265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10266fi
10267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10268$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10269	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10270	CFLAGS="$xorg_testset_save_CFLAGS"
10271fi
10272
10273if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10274	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10275		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10276	fi
10277	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10278	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10279$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10280if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10281  $as_echo_n "(cached) " >&6
10282else
10283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10284/* end confdefs.h.  */
10285int i;
10286_ACEOF
10287if ac_fn_c_try_compile "$LINENO"; then :
10288  xorg_cv_cc_flag_unused_command_line_argument=yes
10289else
10290  xorg_cv_cc_flag_unused_command_line_argument=no
10291fi
10292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10293fi
10294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10295$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10296	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10297	CFLAGS="$xorg_testset_save_CFLAGS"
10298fi
10299
10300found="no"
10301
10302	if test $found = "no" ; then
10303		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10304			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10305		fi
10306
10307		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10308			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10309		fi
10310
10311		CFLAGS="$CFLAGS -pedantic"
10312
10313		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10314$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10315		cacheid=xorg_cv_cc_flag__pedantic
10316		if eval \${$cacheid+:} false; then :
10317  $as_echo_n "(cached) " >&6
10318else
10319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10320/* end confdefs.h.  */
10321int i;
10322int
10323main ()
10324{
10325
10326  ;
10327  return 0;
10328}
10329_ACEOF
10330if ac_fn_c_try_link "$LINENO"; then :
10331  eval $cacheid=yes
10332else
10333  eval $cacheid=no
10334fi
10335rm -f core conftest.err conftest.$ac_objext \
10336    conftest$ac_exeext conftest.$ac_ext
10337fi
10338
10339
10340		CFLAGS="$xorg_testset_save_CFLAGS"
10341
10342		eval supported=\$$cacheid
10343		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10344$as_echo "$supported" >&6; }
10345		if test "$supported" = "yes" ; then
10346			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10347			found="yes"
10348		fi
10349	fi
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365xorg_testset_save_CFLAGS="$CFLAGS"
10366
10367if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10368	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10369	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10370$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10371if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10372  $as_echo_n "(cached) " >&6
10373else
10374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10375/* end confdefs.h.  */
10376int i;
10377_ACEOF
10378if ac_fn_c_try_compile "$LINENO"; then :
10379  xorg_cv_cc_flag_unknown_warning_option=yes
10380else
10381  xorg_cv_cc_flag_unknown_warning_option=no
10382fi
10383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10384fi
10385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10386$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10387	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10388	CFLAGS="$xorg_testset_save_CFLAGS"
10389fi
10390
10391if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10392	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10393		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10394	fi
10395	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10396	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10397$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10398if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10399  $as_echo_n "(cached) " >&6
10400else
10401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10402/* end confdefs.h.  */
10403int i;
10404_ACEOF
10405if ac_fn_c_try_compile "$LINENO"; then :
10406  xorg_cv_cc_flag_unused_command_line_argument=yes
10407else
10408  xorg_cv_cc_flag_unused_command_line_argument=no
10409fi
10410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10411fi
10412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10413$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10414	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10415	CFLAGS="$xorg_testset_save_CFLAGS"
10416fi
10417
10418found="no"
10419
10420	if test $found = "no" ; then
10421		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10422			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10423		fi
10424
10425		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10426			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10427		fi
10428
10429		CFLAGS="$CFLAGS -Werror"
10430
10431		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10432$as_echo_n "checking if $CC supports -Werror... " >&6; }
10433		cacheid=xorg_cv_cc_flag__Werror
10434		if eval \${$cacheid+:} false; then :
10435  $as_echo_n "(cached) " >&6
10436else
10437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10438/* end confdefs.h.  */
10439int i;
10440int
10441main ()
10442{
10443
10444  ;
10445  return 0;
10446}
10447_ACEOF
10448if ac_fn_c_try_link "$LINENO"; then :
10449  eval $cacheid=yes
10450else
10451  eval $cacheid=no
10452fi
10453rm -f core conftest.err conftest.$ac_objext \
10454    conftest$ac_exeext conftest.$ac_ext
10455fi
10456
10457
10458		CFLAGS="$xorg_testset_save_CFLAGS"
10459
10460		eval supported=\$$cacheid
10461		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10462$as_echo "$supported" >&6; }
10463		if test "$supported" = "yes" ; then
10464			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10465			found="yes"
10466		fi
10467	fi
10468
10469	if test $found = "no" ; then
10470		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10471			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10472		fi
10473
10474		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10475			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10476		fi
10477
10478		CFLAGS="$CFLAGS -errwarn"
10479
10480		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10481$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10482		cacheid=xorg_cv_cc_flag__errwarn
10483		if eval \${$cacheid+:} false; then :
10484  $as_echo_n "(cached) " >&6
10485else
10486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10487/* end confdefs.h.  */
10488int i;
10489int
10490main ()
10491{
10492
10493  ;
10494  return 0;
10495}
10496_ACEOF
10497if ac_fn_c_try_link "$LINENO"; then :
10498  eval $cacheid=yes
10499else
10500  eval $cacheid=no
10501fi
10502rm -f core conftest.err conftest.$ac_objext \
10503    conftest$ac_exeext conftest.$ac_ext
10504fi
10505
10506
10507		CFLAGS="$xorg_testset_save_CFLAGS"
10508
10509		eval supported=\$$cacheid
10510		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10511$as_echo "$supported" >&6; }
10512		if test "$supported" = "yes" ; then
10513			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10514			found="yes"
10515		fi
10516	fi
10517
10518
10519
10520# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10521# activate it with -Werror, so we add it here explicitly.
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535xorg_testset_save_CFLAGS="$CFLAGS"
10536
10537if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10538	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10539	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10540$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10541if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10542  $as_echo_n "(cached) " >&6
10543else
10544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10545/* end confdefs.h.  */
10546int i;
10547_ACEOF
10548if ac_fn_c_try_compile "$LINENO"; then :
10549  xorg_cv_cc_flag_unknown_warning_option=yes
10550else
10551  xorg_cv_cc_flag_unknown_warning_option=no
10552fi
10553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10554fi
10555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10556$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10557	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10558	CFLAGS="$xorg_testset_save_CFLAGS"
10559fi
10560
10561if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10562	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10563		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10564	fi
10565	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10566	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10567$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10568if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10569  $as_echo_n "(cached) " >&6
10570else
10571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10572/* end confdefs.h.  */
10573int i;
10574_ACEOF
10575if ac_fn_c_try_compile "$LINENO"; then :
10576  xorg_cv_cc_flag_unused_command_line_argument=yes
10577else
10578  xorg_cv_cc_flag_unused_command_line_argument=no
10579fi
10580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10581fi
10582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10583$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10584	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10585	CFLAGS="$xorg_testset_save_CFLAGS"
10586fi
10587
10588found="no"
10589
10590	if test $found = "no" ; then
10591		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10592			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10593		fi
10594
10595		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10596			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10597		fi
10598
10599		CFLAGS="$CFLAGS -Werror=attributes"
10600
10601		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10602$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10603		cacheid=xorg_cv_cc_flag__Werror_attributes
10604		if eval \${$cacheid+:} false; then :
10605  $as_echo_n "(cached) " >&6
10606else
10607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10608/* end confdefs.h.  */
10609int i;
10610int
10611main ()
10612{
10613
10614  ;
10615  return 0;
10616}
10617_ACEOF
10618if ac_fn_c_try_link "$LINENO"; then :
10619  eval $cacheid=yes
10620else
10621  eval $cacheid=no
10622fi
10623rm -f core conftest.err conftest.$ac_objext \
10624    conftest$ac_exeext conftest.$ac_ext
10625fi
10626
10627
10628		CFLAGS="$xorg_testset_save_CFLAGS"
10629
10630		eval supported=\$$cacheid
10631		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10632$as_echo "$supported" >&6; }
10633		if test "$supported" = "yes" ; then
10634			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10635			found="yes"
10636		fi
10637	fi
10638
10639
10640
10641if test "x$STRICT_COMPILE" = "xyes"; then
10642    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10643    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10644fi
10645
10646
10647
10648
10649
10650
10651cat >>confdefs.h <<_ACEOF
10652#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10653_ACEOF
10654
10655	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10656	if test "x$PVM" = "x"; then
10657		PVM="0"
10658	fi
10659
10660cat >>confdefs.h <<_ACEOF
10661#define PACKAGE_VERSION_MINOR $PVM
10662_ACEOF
10663
10664	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10665	if test "x$PVP" = "x"; then
10666		PVP="0"
10667	fi
10668
10669cat >>confdefs.h <<_ACEOF
10670#define PACKAGE_VERSION_PATCHLEVEL $PVP
10671_ACEOF
10672
10673
10674
10675CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10676mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10677|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10678touch \$(top_srcdir)/ChangeLog; \
10679echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10680
10681
10682
10683
10684macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10685INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10686mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10687|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
10688touch \$(top_srcdir)/INSTALL; \
10689echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
10690
10691
10692
10693
10694
10695
10696case $host_os in
10697    solaris*)
10698        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
10699        # check for a man page file found in later versions that use
10700        # traditional section numbers instead
10701        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
10702$as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; }
10703if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then :
10704  $as_echo_n "(cached) " >&6
10705else
10706  test "$cross_compiling" = yes &&
10707  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10708if test -r "/usr/share/man/man7/attributes.7"; then
10709  ac_cv_file__usr_share_man_man7_attributes_7=yes
10710else
10711  ac_cv_file__usr_share_man_man7_attributes_7=no
10712fi
10713fi
10714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
10715$as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
10716if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then :
10717  SYSV_MAN_SECTIONS=false
10718else
10719  SYSV_MAN_SECTIONS=true
10720fi
10721
10722        ;;
10723    *) SYSV_MAN_SECTIONS=false ;;
10724esac
10725
10726if test x$APP_MAN_SUFFIX = x    ; then
10727    APP_MAN_SUFFIX=1
10728fi
10729if test x$APP_MAN_DIR = x    ; then
10730    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10731fi
10732
10733if test x$LIB_MAN_SUFFIX = x    ; then
10734    LIB_MAN_SUFFIX=3
10735fi
10736if test x$LIB_MAN_DIR = x    ; then
10737    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10738fi
10739
10740if test x$FILE_MAN_SUFFIX = x    ; then
10741    case $SYSV_MAN_SECTIONS in
10742	true)				FILE_MAN_SUFFIX=4  ;;
10743	*)				FILE_MAN_SUFFIX=5  ;;
10744    esac
10745fi
10746if test x$FILE_MAN_DIR = x    ; then
10747    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10748fi
10749
10750if test x$MISC_MAN_SUFFIX = x    ; then
10751    case $SYSV_MAN_SECTIONS in
10752	true)				MISC_MAN_SUFFIX=5  ;;
10753	*)				MISC_MAN_SUFFIX=7  ;;
10754    esac
10755fi
10756if test x$MISC_MAN_DIR = x    ; then
10757    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10758fi
10759
10760if test x$DRIVER_MAN_SUFFIX = x    ; then
10761    case $SYSV_MAN_SECTIONS in
10762	true)				DRIVER_MAN_SUFFIX=7  ;;
10763	*)				DRIVER_MAN_SUFFIX=4  ;;
10764    esac
10765fi
10766if test x$DRIVER_MAN_DIR = x    ; then
10767    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10768fi
10769
10770if test x$ADMIN_MAN_SUFFIX = x    ; then
10771    case $SYSV_MAN_SECTIONS in
10772	true)				ADMIN_MAN_SUFFIX=1m ;;
10773	*)				ADMIN_MAN_SUFFIX=8  ;;
10774    esac
10775fi
10776if test x$ADMIN_MAN_DIR = x    ; then
10777    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10778fi
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794XORG_MAN_PAGE="X Version 11"
10795
10796MAN_SUBSTS="\
10797	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10798	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10799	-e 's|__xservername__|Xorg|g' \
10800	-e 's|__xconfigfile__|xorg.conf|g' \
10801	-e 's|__projectroot__|\$(prefix)|g' \
10802	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10803	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10804	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10805	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10806	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10807	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10808	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10809
10810
10811
10812# Check whether --enable-silent-rules was given.
10813if test "${enable_silent_rules+set}" = set; then :
10814  enableval=$enable_silent_rules;
10815fi
10816
10817case $enable_silent_rules in # (((
10818  yes) AM_DEFAULT_VERBOSITY=0;;
10819   no) AM_DEFAULT_VERBOSITY=1;;
10820    *) AM_DEFAULT_VERBOSITY=0;;
10821esac
10822am_make=${MAKE-make}
10823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10824$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10825if ${am_cv_make_support_nested_variables+:} false; then :
10826  $as_echo_n "(cached) " >&6
10827else
10828  if $as_echo 'TRUE=$(BAR$(V))
10829BAR0=false
10830BAR1=true
10831V=1
10832am__doit:
10833	@$(TRUE)
10834.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10835  am_cv_make_support_nested_variables=yes
10836else
10837  am_cv_make_support_nested_variables=no
10838fi
10839fi
10840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10841$as_echo "$am_cv_make_support_nested_variables" >&6; }
10842if test $am_cv_make_support_nested_variables = yes; then
10843    AM_V='$(V)'
10844  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10845else
10846  AM_V=$AM_DEFAULT_VERBOSITY
10847  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10848fi
10849AM_BACKSLASH='\'
10850
10851
10852
10853for ac_func in asprintf
10854do :
10855  ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
10856if test "x$ac_cv_func_asprintf" = xyes; then :
10857  cat >>confdefs.h <<_ACEOF
10858#define HAVE_ASPRINTF 1
10859_ACEOF
10860
10861fi
10862done
10863
10864
10865# Checks for pkg-config packages
10866
10867pkg_failed=no
10868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XKBPRINT" >&5
10869$as_echo_n "checking for XKBPRINT... " >&6; }
10870
10871if test -n "$XKBPRINT_CFLAGS"; then
10872    pkg_cv_XKBPRINT_CFLAGS="$XKBPRINT_CFLAGS"
10873 elif test -n "$PKG_CONFIG"; then
10874    if test -n "$PKG_CONFIG" && \
10875    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile x11 xproto >= 7.0.17\""; } >&5
10876  ($PKG_CONFIG --exists --print-errors "xkbfile x11 xproto >= 7.0.17") 2>&5
10877  ac_status=$?
10878  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10879  test $ac_status = 0; }; then
10880  pkg_cv_XKBPRINT_CFLAGS=`$PKG_CONFIG --cflags "xkbfile x11 xproto >= 7.0.17" 2>/dev/null`
10881		      test "x$?" != "x0" && pkg_failed=yes
10882else
10883  pkg_failed=yes
10884fi
10885 else
10886    pkg_failed=untried
10887fi
10888if test -n "$XKBPRINT_LIBS"; then
10889    pkg_cv_XKBPRINT_LIBS="$XKBPRINT_LIBS"
10890 elif test -n "$PKG_CONFIG"; then
10891    if test -n "$PKG_CONFIG" && \
10892    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile x11 xproto >= 7.0.17\""; } >&5
10893  ($PKG_CONFIG --exists --print-errors "xkbfile x11 xproto >= 7.0.17") 2>&5
10894  ac_status=$?
10895  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10896  test $ac_status = 0; }; then
10897  pkg_cv_XKBPRINT_LIBS=`$PKG_CONFIG --libs "xkbfile x11 xproto >= 7.0.17" 2>/dev/null`
10898		      test "x$?" != "x0" && pkg_failed=yes
10899else
10900  pkg_failed=yes
10901fi
10902 else
10903    pkg_failed=untried
10904fi
10905
10906
10907
10908if test $pkg_failed = yes; then
10909   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10910$as_echo "no" >&6; }
10911
10912if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10913        _pkg_short_errors_supported=yes
10914else
10915        _pkg_short_errors_supported=no
10916fi
10917        if test $_pkg_short_errors_supported = yes; then
10918	        XKBPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xkbfile x11 xproto >= 7.0.17" 2>&1`
10919        else
10920	        XKBPRINT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xkbfile x11 xproto >= 7.0.17" 2>&1`
10921        fi
10922	# Put the nasty error message in config.log where it belongs
10923	echo "$XKBPRINT_PKG_ERRORS" >&5
10924
10925	as_fn_error $? "Package requirements (xkbfile x11 xproto >= 7.0.17) were not met:
10926
10927$XKBPRINT_PKG_ERRORS
10928
10929Consider adjusting the PKG_CONFIG_PATH environment variable if you
10930installed software in a non-standard prefix.
10931
10932Alternatively, you may set the environment variables XKBPRINT_CFLAGS
10933and XKBPRINT_LIBS to avoid the need to call pkg-config.
10934See the pkg-config man page for more details." "$LINENO" 5
10935elif test $pkg_failed = untried; then
10936     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10937$as_echo "no" >&6; }
10938	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10939$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10940as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10941is in your PATH or set the PKG_CONFIG environment variable to the full
10942path to pkg-config.
10943
10944Alternatively, you may set the environment variables XKBPRINT_CFLAGS
10945and XKBPRINT_LIBS to avoid the need to call pkg-config.
10946See the pkg-config man page for more details.
10947
10948To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10949See \`config.log' for more details" "$LINENO" 5; }
10950else
10951	XKBPRINT_CFLAGS=$pkg_cv_XKBPRINT_CFLAGS
10952	XKBPRINT_LIBS=$pkg_cv_XKBPRINT_LIBS
10953        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10954$as_echo "yes" >&6; }
10955
10956fi
10957
10958ac_config_files="$ac_config_files Makefile man/Makefile"
10959
10960cat >confcache <<\_ACEOF
10961# This file is a shell script that caches the results of configure
10962# tests run on this system so they can be shared between configure
10963# scripts and configure runs, see configure's option --config-cache.
10964# It is not useful on other systems.  If it contains results you don't
10965# want to keep, you may remove or edit it.
10966#
10967# config.status only pays attention to the cache file if you give it
10968# the --recheck option to rerun configure.
10969#
10970# `ac_cv_env_foo' variables (set or unset) will be overridden when
10971# loading this file, other *unset* `ac_cv_foo' will be assigned the
10972# following values.
10973
10974_ACEOF
10975
10976# The following way of writing the cache mishandles newlines in values,
10977# but we know of no workaround that is simple, portable, and efficient.
10978# So, we kill variables containing newlines.
10979# Ultrix sh set writes to stderr and can't be redirected directly,
10980# and sets the high bit in the cache file unless we assign to the vars.
10981(
10982  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10983    eval ac_val=\$$ac_var
10984    case $ac_val in #(
10985    *${as_nl}*)
10986      case $ac_var in #(
10987      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10988$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10989      esac
10990      case $ac_var in #(
10991      _ | IFS | as_nl) ;; #(
10992      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10993      *) { eval $ac_var=; unset $ac_var;} ;;
10994      esac ;;
10995    esac
10996  done
10997
10998  (set) 2>&1 |
10999    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11000    *${as_nl}ac_space=\ *)
11001      # `set' does not quote correctly, so add quotes: double-quote
11002      # substitution turns \\\\ into \\, and sed turns \\ into \.
11003      sed -n \
11004	"s/'/'\\\\''/g;
11005	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11006      ;; #(
11007    *)
11008      # `set' quotes correctly as required by POSIX, so do not add quotes.
11009      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11010      ;;
11011    esac |
11012    sort
11013) |
11014  sed '
11015     /^ac_cv_env_/b end
11016     t clear
11017     :clear
11018     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11019     t end
11020     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11021     :end' >>confcache
11022if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11023  if test -w "$cache_file"; then
11024    if test "x$cache_file" != "x/dev/null"; then
11025      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11026$as_echo "$as_me: updating cache $cache_file" >&6;}
11027      if test ! -f "$cache_file" || test -h "$cache_file"; then
11028	cat confcache >"$cache_file"
11029      else
11030        case $cache_file in #(
11031        */* | ?:*)
11032	  mv -f confcache "$cache_file"$$ &&
11033	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11034        *)
11035	  mv -f confcache "$cache_file" ;;
11036	esac
11037      fi
11038    fi
11039  else
11040    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11041$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11042  fi
11043fi
11044rm -f confcache
11045
11046test "x$prefix" = xNONE && prefix=$ac_default_prefix
11047# Let make expand exec_prefix.
11048test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11049
11050DEFS=-DHAVE_CONFIG_H
11051
11052ac_libobjs=
11053ac_ltlibobjs=
11054U=
11055for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11056  # 1. Remove the extension, and $U if already installed.
11057  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11058  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11059  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11060  #    will be set to the directory where LIBOBJS objects are built.
11061  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11062  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11063done
11064LIBOBJS=$ac_libobjs
11065
11066LTLIBOBJS=$ac_ltlibobjs
11067
11068
11069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11070$as_echo_n "checking that generated files are newer than configure... " >&6; }
11071   if test -n "$am_sleep_pid"; then
11072     # Hide warnings about reused PIDs.
11073     wait $am_sleep_pid 2>/dev/null
11074   fi
11075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11076$as_echo "done" >&6; }
11077if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11078  as_fn_error $? "conditional \"AMDEP\" was never defined.
11079Usually this means the macro was only invoked conditionally." "$LINENO" 5
11080fi
11081if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11082  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11083Usually this means the macro was only invoked conditionally." "$LINENO" 5
11084fi
11085 if test -n "$EXEEXT"; then
11086  am__EXEEXT_TRUE=
11087  am__EXEEXT_FALSE='#'
11088else
11089  am__EXEEXT_TRUE='#'
11090  am__EXEEXT_FALSE=
11091fi
11092
11093
11094: "${CONFIG_STATUS=./config.status}"
11095ac_write_fail=0
11096ac_clean_files_save=$ac_clean_files
11097ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11098{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11099$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11100as_write_fail=0
11101cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11102#! $SHELL
11103# Generated by $as_me.
11104# Run this file to recreate the current configuration.
11105# Compiler output produced by configure, useful for debugging
11106# configure, is in config.log if it exists.
11107
11108debug=false
11109ac_cs_recheck=false
11110ac_cs_silent=false
11111
11112SHELL=\${CONFIG_SHELL-$SHELL}
11113export SHELL
11114_ASEOF
11115cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11116## -------------------- ##
11117## M4sh Initialization. ##
11118## -------------------- ##
11119
11120# Be more Bourne compatible
11121DUALCASE=1; export DUALCASE # for MKS sh
11122if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11123  emulate sh
11124  NULLCMD=:
11125  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11126  # is contrary to our usage.  Disable this feature.
11127  alias -g '${1+"$@"}'='"$@"'
11128  setopt NO_GLOB_SUBST
11129else
11130  case `(set -o) 2>/dev/null` in #(
11131  *posix*) :
11132    set -o posix ;; #(
11133  *) :
11134     ;;
11135esac
11136fi
11137
11138
11139as_nl='
11140'
11141export as_nl
11142# Printing a long string crashes Solaris 7 /usr/bin/printf.
11143as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11144as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11145as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11146# Prefer a ksh shell builtin over an external printf program on Solaris,
11147# but without wasting forks for bash or zsh.
11148if test -z "$BASH_VERSION$ZSH_VERSION" \
11149    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11150  as_echo='print -r --'
11151  as_echo_n='print -rn --'
11152elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11153  as_echo='printf %s\n'
11154  as_echo_n='printf %s'
11155else
11156  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11157    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11158    as_echo_n='/usr/ucb/echo -n'
11159  else
11160    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11161    as_echo_n_body='eval
11162      arg=$1;
11163      case $arg in #(
11164      *"$as_nl"*)
11165	expr "X$arg" : "X\\(.*\\)$as_nl";
11166	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11167      esac;
11168      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11169    '
11170    export as_echo_n_body
11171    as_echo_n='sh -c $as_echo_n_body as_echo'
11172  fi
11173  export as_echo_body
11174  as_echo='sh -c $as_echo_body as_echo'
11175fi
11176
11177# The user is always right.
11178if test "${PATH_SEPARATOR+set}" != set; then
11179  PATH_SEPARATOR=:
11180  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11181    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11182      PATH_SEPARATOR=';'
11183  }
11184fi
11185
11186
11187# IFS
11188# We need space, tab and new line, in precisely that order.  Quoting is
11189# there to prevent editors from complaining about space-tab.
11190# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11191# splitting by setting IFS to empty value.)
11192IFS=" ""	$as_nl"
11193
11194# Find who we are.  Look in the path if we contain no directory separator.
11195as_myself=
11196case $0 in #((
11197  *[\\/]* ) as_myself=$0 ;;
11198  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11199for as_dir in $PATH
11200do
11201  IFS=$as_save_IFS
11202  test -z "$as_dir" && as_dir=.
11203    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11204  done
11205IFS=$as_save_IFS
11206
11207     ;;
11208esac
11209# We did not find ourselves, most probably we were run as `sh COMMAND'
11210# in which case we are not to be found in the path.
11211if test "x$as_myself" = x; then
11212  as_myself=$0
11213fi
11214if test ! -f "$as_myself"; then
11215  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11216  exit 1
11217fi
11218
11219# Unset variables that we do not need and which cause bugs (e.g. in
11220# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11221# suppresses any "Segmentation fault" message there.  '((' could
11222# trigger a bug in pdksh 5.2.14.
11223for as_var in BASH_ENV ENV MAIL MAILPATH
11224do eval test x\${$as_var+set} = xset \
11225  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11226done
11227PS1='$ '
11228PS2='> '
11229PS4='+ '
11230
11231# NLS nuisances.
11232LC_ALL=C
11233export LC_ALL
11234LANGUAGE=C
11235export LANGUAGE
11236
11237# CDPATH.
11238(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11239
11240
11241# as_fn_error STATUS ERROR [LINENO LOG_FD]
11242# ----------------------------------------
11243# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11244# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11245# script with STATUS, using 1 if that was 0.
11246as_fn_error ()
11247{
11248  as_status=$1; test $as_status -eq 0 && as_status=1
11249  if test "$4"; then
11250    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11251    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11252  fi
11253  $as_echo "$as_me: error: $2" >&2
11254  as_fn_exit $as_status
11255} # as_fn_error
11256
11257
11258# as_fn_set_status STATUS
11259# -----------------------
11260# Set $? to STATUS, without forking.
11261as_fn_set_status ()
11262{
11263  return $1
11264} # as_fn_set_status
11265
11266# as_fn_exit STATUS
11267# -----------------
11268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11269as_fn_exit ()
11270{
11271  set +e
11272  as_fn_set_status $1
11273  exit $1
11274} # as_fn_exit
11275
11276# as_fn_unset VAR
11277# ---------------
11278# Portably unset VAR.
11279as_fn_unset ()
11280{
11281  { eval $1=; unset $1;}
11282}
11283as_unset=as_fn_unset
11284# as_fn_append VAR VALUE
11285# ----------------------
11286# Append the text in VALUE to the end of the definition contained in VAR. Take
11287# advantage of any shell optimizations that allow amortized linear growth over
11288# repeated appends, instead of the typical quadratic growth present in naive
11289# implementations.
11290if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11291  eval 'as_fn_append ()
11292  {
11293    eval $1+=\$2
11294  }'
11295else
11296  as_fn_append ()
11297  {
11298    eval $1=\$$1\$2
11299  }
11300fi # as_fn_append
11301
11302# as_fn_arith ARG...
11303# ------------------
11304# Perform arithmetic evaluation on the ARGs, and store the result in the
11305# global $as_val. Take advantage of shells that can avoid forks. The arguments
11306# must be portable across $(()) and expr.
11307if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11308  eval 'as_fn_arith ()
11309  {
11310    as_val=$(( $* ))
11311  }'
11312else
11313  as_fn_arith ()
11314  {
11315    as_val=`expr "$@" || test $? -eq 1`
11316  }
11317fi # as_fn_arith
11318
11319
11320if expr a : '\(a\)' >/dev/null 2>&1 &&
11321   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11322  as_expr=expr
11323else
11324  as_expr=false
11325fi
11326
11327if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11328  as_basename=basename
11329else
11330  as_basename=false
11331fi
11332
11333if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11334  as_dirname=dirname
11335else
11336  as_dirname=false
11337fi
11338
11339as_me=`$as_basename -- "$0" ||
11340$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11341	 X"$0" : 'X\(//\)$' \| \
11342	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11343$as_echo X/"$0" |
11344    sed '/^.*\/\([^/][^/]*\)\/*$/{
11345	    s//\1/
11346	    q
11347	  }
11348	  /^X\/\(\/\/\)$/{
11349	    s//\1/
11350	    q
11351	  }
11352	  /^X\/\(\/\).*/{
11353	    s//\1/
11354	    q
11355	  }
11356	  s/.*/./; q'`
11357
11358# Avoid depending upon Character Ranges.
11359as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11360as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11361as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11362as_cr_digits='0123456789'
11363as_cr_alnum=$as_cr_Letters$as_cr_digits
11364
11365ECHO_C= ECHO_N= ECHO_T=
11366case `echo -n x` in #(((((
11367-n*)
11368  case `echo 'xy\c'` in
11369  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11370  xy)  ECHO_C='\c';;
11371  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11372       ECHO_T='	';;
11373  esac;;
11374*)
11375  ECHO_N='-n';;
11376esac
11377
11378rm -f conf$$ conf$$.exe conf$$.file
11379if test -d conf$$.dir; then
11380  rm -f conf$$.dir/conf$$.file
11381else
11382  rm -f conf$$.dir
11383  mkdir conf$$.dir 2>/dev/null
11384fi
11385if (echo >conf$$.file) 2>/dev/null; then
11386  if ln -s conf$$.file conf$$ 2>/dev/null; then
11387    as_ln_s='ln -s'
11388    # ... but there are two gotchas:
11389    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11390    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11391    # In both cases, we have to default to `cp -pR'.
11392    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11393      as_ln_s='cp -pR'
11394  elif ln conf$$.file conf$$ 2>/dev/null; then
11395    as_ln_s=ln
11396  else
11397    as_ln_s='cp -pR'
11398  fi
11399else
11400  as_ln_s='cp -pR'
11401fi
11402rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11403rmdir conf$$.dir 2>/dev/null
11404
11405
11406# as_fn_mkdir_p
11407# -------------
11408# Create "$as_dir" as a directory, including parents if necessary.
11409as_fn_mkdir_p ()
11410{
11411
11412  case $as_dir in #(
11413  -*) as_dir=./$as_dir;;
11414  esac
11415  test -d "$as_dir" || eval $as_mkdir_p || {
11416    as_dirs=
11417    while :; do
11418      case $as_dir in #(
11419      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11420      *) as_qdir=$as_dir;;
11421      esac
11422      as_dirs="'$as_qdir' $as_dirs"
11423      as_dir=`$as_dirname -- "$as_dir" ||
11424$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11425	 X"$as_dir" : 'X\(//\)[^/]' \| \
11426	 X"$as_dir" : 'X\(//\)$' \| \
11427	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11428$as_echo X"$as_dir" |
11429    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11430	    s//\1/
11431	    q
11432	  }
11433	  /^X\(\/\/\)[^/].*/{
11434	    s//\1/
11435	    q
11436	  }
11437	  /^X\(\/\/\)$/{
11438	    s//\1/
11439	    q
11440	  }
11441	  /^X\(\/\).*/{
11442	    s//\1/
11443	    q
11444	  }
11445	  s/.*/./; q'`
11446      test -d "$as_dir" && break
11447    done
11448    test -z "$as_dirs" || eval "mkdir $as_dirs"
11449  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11450
11451
11452} # as_fn_mkdir_p
11453if mkdir -p . 2>/dev/null; then
11454  as_mkdir_p='mkdir -p "$as_dir"'
11455else
11456  test -d ./-p && rmdir ./-p
11457  as_mkdir_p=false
11458fi
11459
11460
11461# as_fn_executable_p FILE
11462# -----------------------
11463# Test if FILE is an executable regular file.
11464as_fn_executable_p ()
11465{
11466  test -f "$1" && test -x "$1"
11467} # as_fn_executable_p
11468as_test_x='test -x'
11469as_executable_p=as_fn_executable_p
11470
11471# Sed expression to map a string onto a valid CPP name.
11472as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11473
11474# Sed expression to map a string onto a valid variable name.
11475as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11476
11477
11478exec 6>&1
11479## ----------------------------------- ##
11480## Main body of $CONFIG_STATUS script. ##
11481## ----------------------------------- ##
11482_ASEOF
11483test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11484
11485cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11486# Save the log message, to keep $0 and so on meaningful, and to
11487# report actual input values of CONFIG_FILES etc. instead of their
11488# values after options handling.
11489ac_log="
11490This file was extended by xkbprint $as_me 1.0.5, which was
11491generated by GNU Autoconf 2.69.  Invocation command line was
11492
11493  CONFIG_FILES    = $CONFIG_FILES
11494  CONFIG_HEADERS  = $CONFIG_HEADERS
11495  CONFIG_LINKS    = $CONFIG_LINKS
11496  CONFIG_COMMANDS = $CONFIG_COMMANDS
11497  $ $0 $@
11498
11499on `(hostname || uname -n) 2>/dev/null | sed 1q`
11500"
11501
11502_ACEOF
11503
11504case $ac_config_files in *"
11505"*) set x $ac_config_files; shift; ac_config_files=$*;;
11506esac
11507
11508case $ac_config_headers in *"
11509"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11510esac
11511
11512
11513cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11514# Files that config.status was made for.
11515config_files="$ac_config_files"
11516config_headers="$ac_config_headers"
11517config_commands="$ac_config_commands"
11518
11519_ACEOF
11520
11521cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11522ac_cs_usage="\
11523\`$as_me' instantiates files and other configuration actions
11524from templates according to the current configuration.  Unless the files
11525and actions are specified as TAGs, all are instantiated by default.
11526
11527Usage: $0 [OPTION]... [TAG]...
11528
11529  -h, --help       print this help, then exit
11530  -V, --version    print version number and configuration settings, then exit
11531      --config     print configuration, then exit
11532  -q, --quiet, --silent
11533                   do not print progress messages
11534  -d, --debug      don't remove temporary files
11535      --recheck    update $as_me by reconfiguring in the same conditions
11536      --file=FILE[:TEMPLATE]
11537                   instantiate the configuration file FILE
11538      --header=FILE[:TEMPLATE]
11539                   instantiate the configuration header FILE
11540
11541Configuration files:
11542$config_files
11543
11544Configuration headers:
11545$config_headers
11546
11547Configuration commands:
11548$config_commands
11549
11550Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbprint/issues>."
11551
11552_ACEOF
11553cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11554ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11555ac_cs_version="\\
11556xkbprint config.status 1.0.5
11557configured by $0, generated by GNU Autoconf 2.69,
11558  with options \\"\$ac_cs_config\\"
11559
11560Copyright (C) 2012 Free Software Foundation, Inc.
11561This config.status script is free software; the Free Software Foundation
11562gives unlimited permission to copy, distribute and modify it."
11563
11564ac_pwd='$ac_pwd'
11565srcdir='$srcdir'
11566INSTALL='$INSTALL'
11567MKDIR_P='$MKDIR_P'
11568AWK='$AWK'
11569test -n "\$AWK" || AWK=awk
11570_ACEOF
11571
11572cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11573# The default lists apply if the user does not specify any file.
11574ac_need_defaults=:
11575while test $# != 0
11576do
11577  case $1 in
11578  --*=?*)
11579    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11580    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11581    ac_shift=:
11582    ;;
11583  --*=)
11584    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11585    ac_optarg=
11586    ac_shift=:
11587    ;;
11588  *)
11589    ac_option=$1
11590    ac_optarg=$2
11591    ac_shift=shift
11592    ;;
11593  esac
11594
11595  case $ac_option in
11596  # Handling of the options.
11597  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11598    ac_cs_recheck=: ;;
11599  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11600    $as_echo "$ac_cs_version"; exit ;;
11601  --config | --confi | --conf | --con | --co | --c )
11602    $as_echo "$ac_cs_config"; exit ;;
11603  --debug | --debu | --deb | --de | --d | -d )
11604    debug=: ;;
11605  --file | --fil | --fi | --f )
11606    $ac_shift
11607    case $ac_optarg in
11608    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11609    '') as_fn_error $? "missing file argument" ;;
11610    esac
11611    as_fn_append CONFIG_FILES " '$ac_optarg'"
11612    ac_need_defaults=false;;
11613  --header | --heade | --head | --hea )
11614    $ac_shift
11615    case $ac_optarg in
11616    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11617    esac
11618    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11619    ac_need_defaults=false;;
11620  --he | --h)
11621    # Conflict between --help and --header
11622    as_fn_error $? "ambiguous option: \`$1'
11623Try \`$0 --help' for more information.";;
11624  --help | --hel | -h )
11625    $as_echo "$ac_cs_usage"; exit ;;
11626  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11627  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11628    ac_cs_silent=: ;;
11629
11630  # This is an error.
11631  -*) as_fn_error $? "unrecognized option: \`$1'
11632Try \`$0 --help' for more information." ;;
11633
11634  *) as_fn_append ac_config_targets " $1"
11635     ac_need_defaults=false ;;
11636
11637  esac
11638  shift
11639done
11640
11641ac_configure_extra_args=
11642
11643if $ac_cs_silent; then
11644  exec 6>/dev/null
11645  ac_configure_extra_args="$ac_configure_extra_args --silent"
11646fi
11647
11648_ACEOF
11649cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11650if \$ac_cs_recheck; then
11651  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11652  shift
11653  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11654  CONFIG_SHELL='$SHELL'
11655  export CONFIG_SHELL
11656  exec "\$@"
11657fi
11658
11659_ACEOF
11660cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11661exec 5>>config.log
11662{
11663  echo
11664  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11665## Running $as_me. ##
11666_ASBOX
11667  $as_echo "$ac_log"
11668} >&5
11669
11670_ACEOF
11671cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11672#
11673# INIT-COMMANDS
11674#
11675AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
11676
11677_ACEOF
11678
11679cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11680
11681# Handling of arguments.
11682for ac_config_target in $ac_config_targets
11683do
11684  case $ac_config_target in
11685    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11686    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11687    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11688    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11689
11690  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11691  esac
11692done
11693
11694
11695# If the user did not use the arguments to specify the items to instantiate,
11696# then the envvar interface is used.  Set only those that are not.
11697# We use the long form for the default assignment because of an extremely
11698# bizarre bug on SunOS 4.1.3.
11699if $ac_need_defaults; then
11700  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11701  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11702  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11703fi
11704
11705# Have a temporary directory for convenience.  Make it in the build tree
11706# simply because there is no reason against having it here, and in addition,
11707# creating and moving files from /tmp can sometimes cause problems.
11708# Hook for its removal unless debugging.
11709# Note that there is a small window in which the directory will not be cleaned:
11710# after its creation but before its name has been assigned to `$tmp'.
11711$debug ||
11712{
11713  tmp= ac_tmp=
11714  trap 'exit_status=$?
11715  : "${ac_tmp:=$tmp}"
11716  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11717' 0
11718  trap 'as_fn_exit 1' 1 2 13 15
11719}
11720# Create a (secure) tmp directory for tmp files.
11721
11722{
11723  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11724  test -d "$tmp"
11725}  ||
11726{
11727  tmp=./conf$$-$RANDOM
11728  (umask 077 && mkdir "$tmp")
11729} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11730ac_tmp=$tmp
11731
11732# Set up the scripts for CONFIG_FILES section.
11733# No need to generate them if there are no CONFIG_FILES.
11734# This happens for instance with `./config.status config.h'.
11735if test -n "$CONFIG_FILES"; then
11736
11737
11738ac_cr=`echo X | tr X '\015'`
11739# On cygwin, bash can eat \r inside `` if the user requested igncr.
11740# But we know of no other shell where ac_cr would be empty at this
11741# point, so we can use a bashism as a fallback.
11742if test "x$ac_cr" = x; then
11743  eval ac_cr=\$\'\\r\'
11744fi
11745ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11746if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11747  ac_cs_awk_cr='\\r'
11748else
11749  ac_cs_awk_cr=$ac_cr
11750fi
11751
11752echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11753_ACEOF
11754
11755
11756{
11757  echo "cat >conf$$subs.awk <<_ACEOF" &&
11758  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11759  echo "_ACEOF"
11760} >conf$$subs.sh ||
11761  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11762ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11763ac_delim='%!_!# '
11764for ac_last_try in false false false false false :; do
11765  . ./conf$$subs.sh ||
11766    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11767
11768  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11769  if test $ac_delim_n = $ac_delim_num; then
11770    break
11771  elif $ac_last_try; then
11772    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11773  else
11774    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11775  fi
11776done
11777rm -f conf$$subs.sh
11778
11779cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11780cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11781_ACEOF
11782sed -n '
11783h
11784s/^/S["/; s/!.*/"]=/
11785p
11786g
11787s/^[^!]*!//
11788:repl
11789t repl
11790s/'"$ac_delim"'$//
11791t delim
11792:nl
11793h
11794s/\(.\{148\}\)..*/\1/
11795t more1
11796s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11797p
11798n
11799b repl
11800:more1
11801s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11802p
11803g
11804s/.\{148\}//
11805t nl
11806:delim
11807h
11808s/\(.\{148\}\)..*/\1/
11809t more2
11810s/["\\]/\\&/g; s/^/"/; s/$/"/
11811p
11812b
11813:more2
11814s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11815p
11816g
11817s/.\{148\}//
11818t delim
11819' <conf$$subs.awk | sed '
11820/^[^""]/{
11821  N
11822  s/\n//
11823}
11824' >>$CONFIG_STATUS || ac_write_fail=1
11825rm -f conf$$subs.awk
11826cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11827_ACAWK
11828cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11829  for (key in S) S_is_set[key] = 1
11830  FS = ""
11831
11832}
11833{
11834  line = $ 0
11835  nfields = split(line, field, "@")
11836  substed = 0
11837  len = length(field[1])
11838  for (i = 2; i < nfields; i++) {
11839    key = field[i]
11840    keylen = length(key)
11841    if (S_is_set[key]) {
11842      value = S[key]
11843      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11844      len += length(value) + length(field[++i])
11845      substed = 1
11846    } else
11847      len += 1 + keylen
11848  }
11849
11850  print line
11851}
11852
11853_ACAWK
11854_ACEOF
11855cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11856if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11857  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11858else
11859  cat
11860fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11861  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11862_ACEOF
11863
11864# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11865# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11866# trailing colons and then remove the whole line if VPATH becomes empty
11867# (actually we leave an empty line to preserve line numbers).
11868if test "x$srcdir" = x.; then
11869  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11870h
11871s///
11872s/^/:/
11873s/[	 ]*$/:/
11874s/:\$(srcdir):/:/g
11875s/:\${srcdir}:/:/g
11876s/:@srcdir@:/:/g
11877s/^:*//
11878s/:*$//
11879x
11880s/\(=[	 ]*\).*/\1/
11881G
11882s/\n//
11883s/^[^=]*=[	 ]*$//
11884}'
11885fi
11886
11887cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11888fi # test -n "$CONFIG_FILES"
11889
11890# Set up the scripts for CONFIG_HEADERS section.
11891# No need to generate them if there are no CONFIG_HEADERS.
11892# This happens for instance with `./config.status Makefile'.
11893if test -n "$CONFIG_HEADERS"; then
11894cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11895BEGIN {
11896_ACEOF
11897
11898# Transform confdefs.h into an awk script `defines.awk', embedded as
11899# here-document in config.status, that substitutes the proper values into
11900# config.h.in to produce config.h.
11901
11902# Create a delimiter string that does not exist in confdefs.h, to ease
11903# handling of long lines.
11904ac_delim='%!_!# '
11905for ac_last_try in false false :; do
11906  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11907  if test -z "$ac_tt"; then
11908    break
11909  elif $ac_last_try; then
11910    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11911  else
11912    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11913  fi
11914done
11915
11916# For the awk script, D is an array of macro values keyed by name,
11917# likewise P contains macro parameters if any.  Preserve backslash
11918# newline sequences.
11919
11920ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11921sed -n '
11922s/.\{148\}/&'"$ac_delim"'/g
11923t rset
11924:rset
11925s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
11926t def
11927d
11928:def
11929s/\\$//
11930t bsnl
11931s/["\\]/\\&/g
11932s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11933D["\1"]=" \3"/p
11934s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
11935d
11936:bsnl
11937s/["\\]/\\&/g
11938s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11939D["\1"]=" \3\\\\\\n"\\/p
11940t cont
11941s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11942t cont
11943d
11944:cont
11945n
11946s/.\{148\}/&'"$ac_delim"'/g
11947t clear
11948:clear
11949s/\\$//
11950t bsnlc
11951s/["\\]/\\&/g; s/^/"/; s/$/"/p
11952d
11953:bsnlc
11954s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11955b cont
11956' <confdefs.h | sed '
11957s/'"$ac_delim"'/"\\\
11958"/g' >>$CONFIG_STATUS || ac_write_fail=1
11959
11960cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11961  for (key in D) D_is_set[key] = 1
11962  FS = ""
11963}
11964/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11965  line = \$ 0
11966  split(line, arg, " ")
11967  if (arg[1] == "#") {
11968    defundef = arg[2]
11969    mac1 = arg[3]
11970  } else {
11971    defundef = substr(arg[1], 2)
11972    mac1 = arg[2]
11973  }
11974  split(mac1, mac2, "(") #)
11975  macro = mac2[1]
11976  prefix = substr(line, 1, index(line, defundef) - 1)
11977  if (D_is_set[macro]) {
11978    # Preserve the white space surrounding the "#".
11979    print prefix "define", macro P[macro] D[macro]
11980    next
11981  } else {
11982    # Replace #undef with comments.  This is necessary, for example,
11983    # in the case of _POSIX_SOURCE, which is predefined and required
11984    # on some systems where configure will not decide to define it.
11985    if (defundef == "undef") {
11986      print "/*", prefix defundef, macro, "*/"
11987      next
11988    }
11989  }
11990}
11991{ print }
11992_ACAWK
11993_ACEOF
11994cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11995  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11996fi # test -n "$CONFIG_HEADERS"
11997
11998
11999eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12000shift
12001for ac_tag
12002do
12003  case $ac_tag in
12004  :[FHLC]) ac_mode=$ac_tag; continue;;
12005  esac
12006  case $ac_mode$ac_tag in
12007  :[FHL]*:*);;
12008  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12009  :[FH]-) ac_tag=-:-;;
12010  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12011  esac
12012  ac_save_IFS=$IFS
12013  IFS=:
12014  set x $ac_tag
12015  IFS=$ac_save_IFS
12016  shift
12017  ac_file=$1
12018  shift
12019
12020  case $ac_mode in
12021  :L) ac_source=$1;;
12022  :[FH])
12023    ac_file_inputs=
12024    for ac_f
12025    do
12026      case $ac_f in
12027      -) ac_f="$ac_tmp/stdin";;
12028      *) # Look for the file first in the build tree, then in the source tree
12029	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12030	 # because $ac_f cannot contain `:'.
12031	 test -f "$ac_f" ||
12032	   case $ac_f in
12033	   [\\/$]*) false;;
12034	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12035	   esac ||
12036	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12037      esac
12038      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12039      as_fn_append ac_file_inputs " '$ac_f'"
12040    done
12041
12042    # Let's still pretend it is `configure' which instantiates (i.e., don't
12043    # use $as_me), people would be surprised to read:
12044    #    /* config.h.  Generated by config.status.  */
12045    configure_input='Generated from '`
12046	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12047	`' by configure.'
12048    if test x"$ac_file" != x-; then
12049      configure_input="$ac_file.  $configure_input"
12050      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12051$as_echo "$as_me: creating $ac_file" >&6;}
12052    fi
12053    # Neutralize special characters interpreted by sed in replacement strings.
12054    case $configure_input in #(
12055    *\&* | *\|* | *\\* )
12056       ac_sed_conf_input=`$as_echo "$configure_input" |
12057       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12058    *) ac_sed_conf_input=$configure_input;;
12059    esac
12060
12061    case $ac_tag in
12062    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12063      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12064    esac
12065    ;;
12066  esac
12067
12068  ac_dir=`$as_dirname -- "$ac_file" ||
12069$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12070	 X"$ac_file" : 'X\(//\)[^/]' \| \
12071	 X"$ac_file" : 'X\(//\)$' \| \
12072	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12073$as_echo X"$ac_file" |
12074    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12075	    s//\1/
12076	    q
12077	  }
12078	  /^X\(\/\/\)[^/].*/{
12079	    s//\1/
12080	    q
12081	  }
12082	  /^X\(\/\/\)$/{
12083	    s//\1/
12084	    q
12085	  }
12086	  /^X\(\/\).*/{
12087	    s//\1/
12088	    q
12089	  }
12090	  s/.*/./; q'`
12091  as_dir="$ac_dir"; as_fn_mkdir_p
12092  ac_builddir=.
12093
12094case "$ac_dir" in
12095.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12096*)
12097  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12098  # A ".." for each directory in $ac_dir_suffix.
12099  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12100  case $ac_top_builddir_sub in
12101  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12102  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12103  esac ;;
12104esac
12105ac_abs_top_builddir=$ac_pwd
12106ac_abs_builddir=$ac_pwd$ac_dir_suffix
12107# for backward compatibility:
12108ac_top_builddir=$ac_top_build_prefix
12109
12110case $srcdir in
12111  .)  # We are building in place.
12112    ac_srcdir=.
12113    ac_top_srcdir=$ac_top_builddir_sub
12114    ac_abs_top_srcdir=$ac_pwd ;;
12115  [\\/]* | ?:[\\/]* )  # Absolute name.
12116    ac_srcdir=$srcdir$ac_dir_suffix;
12117    ac_top_srcdir=$srcdir
12118    ac_abs_top_srcdir=$srcdir ;;
12119  *) # Relative name.
12120    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12121    ac_top_srcdir=$ac_top_build_prefix$srcdir
12122    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12123esac
12124ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12125
12126
12127  case $ac_mode in
12128  :F)
12129  #
12130  # CONFIG_FILE
12131  #
12132
12133  case $INSTALL in
12134  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12135  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12136  esac
12137  ac_MKDIR_P=$MKDIR_P
12138  case $MKDIR_P in
12139  [\\/$]* | ?:[\\/]* ) ;;
12140  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12141  esac
12142_ACEOF
12143
12144cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12145# If the template does not know about datarootdir, expand it.
12146# FIXME: This hack should be removed a few years after 2.60.
12147ac_datarootdir_hack=; ac_datarootdir_seen=
12148ac_sed_dataroot='
12149/datarootdir/ {
12150  p
12151  q
12152}
12153/@datadir@/p
12154/@docdir@/p
12155/@infodir@/p
12156/@localedir@/p
12157/@mandir@/p'
12158case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12159*datarootdir*) ac_datarootdir_seen=yes;;
12160*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12161  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12162$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12163_ACEOF
12164cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12165  ac_datarootdir_hack='
12166  s&@datadir@&$datadir&g
12167  s&@docdir@&$docdir&g
12168  s&@infodir@&$infodir&g
12169  s&@localedir@&$localedir&g
12170  s&@mandir@&$mandir&g
12171  s&\\\${datarootdir}&$datarootdir&g' ;;
12172esac
12173_ACEOF
12174
12175# Neutralize VPATH when `$srcdir' = `.'.
12176# Shell code in configure.ac might set extrasub.
12177# FIXME: do we really want to maintain this feature?
12178cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12179ac_sed_extra="$ac_vpsub
12180$extrasub
12181_ACEOF
12182cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12183:t
12184/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12185s|@configure_input@|$ac_sed_conf_input|;t t
12186s&@top_builddir@&$ac_top_builddir_sub&;t t
12187s&@top_build_prefix@&$ac_top_build_prefix&;t t
12188s&@srcdir@&$ac_srcdir&;t t
12189s&@abs_srcdir@&$ac_abs_srcdir&;t t
12190s&@top_srcdir@&$ac_top_srcdir&;t t
12191s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12192s&@builddir@&$ac_builddir&;t t
12193s&@abs_builddir@&$ac_abs_builddir&;t t
12194s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12195s&@INSTALL@&$ac_INSTALL&;t t
12196s&@MKDIR_P@&$ac_MKDIR_P&;t t
12197$ac_datarootdir_hack
12198"
12199eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12200  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12201
12202test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12203  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12204  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12205      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12206  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12207which seems to be undefined.  Please make sure it is defined" >&5
12208$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12209which seems to be undefined.  Please make sure it is defined" >&2;}
12210
12211  rm -f "$ac_tmp/stdin"
12212  case $ac_file in
12213  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12214  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12215  esac \
12216  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12217 ;;
12218  :H)
12219  #
12220  # CONFIG_HEADER
12221  #
12222  if test x"$ac_file" != x-; then
12223    {
12224      $as_echo "/* $configure_input  */" \
12225      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12226    } >"$ac_tmp/config.h" \
12227      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12228    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12229      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12230$as_echo "$as_me: $ac_file is unchanged" >&6;}
12231    else
12232      rm -f "$ac_file"
12233      mv "$ac_tmp/config.h" "$ac_file" \
12234	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12235    fi
12236  else
12237    $as_echo "/* $configure_input  */" \
12238      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12239      || as_fn_error $? "could not create -" "$LINENO" 5
12240  fi
12241# Compute "$ac_file"'s index in $config_headers.
12242_am_arg="$ac_file"
12243_am_stamp_count=1
12244for _am_header in $config_headers :; do
12245  case $_am_header in
12246    $_am_arg | $_am_arg:* )
12247      break ;;
12248    * )
12249      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12250  esac
12251done
12252echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12253$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12254	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12255	 X"$_am_arg" : 'X\(//\)$' \| \
12256	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12257$as_echo X"$_am_arg" |
12258    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12259	    s//\1/
12260	    q
12261	  }
12262	  /^X\(\/\/\)[^/].*/{
12263	    s//\1/
12264	    q
12265	  }
12266	  /^X\(\/\/\)$/{
12267	    s//\1/
12268	    q
12269	  }
12270	  /^X\(\/\).*/{
12271	    s//\1/
12272	    q
12273	  }
12274	  s/.*/./; q'`/stamp-h$_am_stamp_count
12275 ;;
12276
12277  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12278$as_echo "$as_me: executing $ac_file commands" >&6;}
12279 ;;
12280  esac
12281
12282
12283  case $ac_file$ac_mode in
12284    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12285  # Older Autoconf quotes --file arguments for eval, but not when files
12286  # are listed without --file.  Let's play safe and only enable the eval
12287  # if we detect the quoting.
12288  # TODO: see whether this extra hack can be removed once we start
12289  # requiring Autoconf 2.70 or later.
12290  case $CONFIG_FILES in #(
12291  *\'*) :
12292    eval set x "$CONFIG_FILES" ;; #(
12293  *) :
12294    set x $CONFIG_FILES ;; #(
12295  *) :
12296     ;;
12297esac
12298  shift
12299  # Used to flag and report bootstrapping failures.
12300  am_rc=0
12301  for am_mf
12302  do
12303    # Strip MF so we end up with the name of the file.
12304    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
12305    # Check whether this is an Automake generated Makefile which includes
12306    # dependency-tracking related rules and includes.
12307    # Grep'ing the whole file directly is not great: AIX grep has a line
12308    # limit of 2048, but all sed's we know have understand at least 4000.
12309    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12310      || continue
12311    am_dirpart=`$as_dirname -- "$am_mf" ||
12312$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12313	 X"$am_mf" : 'X\(//\)[^/]' \| \
12314	 X"$am_mf" : 'X\(//\)$' \| \
12315	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12316$as_echo X"$am_mf" |
12317    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12318	    s//\1/
12319	    q
12320	  }
12321	  /^X\(\/\/\)[^/].*/{
12322	    s//\1/
12323	    q
12324	  }
12325	  /^X\(\/\/\)$/{
12326	    s//\1/
12327	    q
12328	  }
12329	  /^X\(\/\).*/{
12330	    s//\1/
12331	    q
12332	  }
12333	  s/.*/./; q'`
12334    am_filepart=`$as_basename -- "$am_mf" ||
12335$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12336	 X"$am_mf" : 'X\(//\)$' \| \
12337	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12338$as_echo X/"$am_mf" |
12339    sed '/^.*\/\([^/][^/]*\)\/*$/{
12340	    s//\1/
12341	    q
12342	  }
12343	  /^X\/\(\/\/\)$/{
12344	    s//\1/
12345	    q
12346	  }
12347	  /^X\/\(\/\).*/{
12348	    s//\1/
12349	    q
12350	  }
12351	  s/.*/./; q'`
12352    { echo "$as_me:$LINENO: cd "$am_dirpart" \
12353      && sed -e '/# am--include-marker/d' "$am_filepart" \
12354        | $MAKE -f - am--depfiles" >&5
12355   (cd "$am_dirpart" \
12356      && sed -e '/# am--include-marker/d' "$am_filepart" \
12357        | $MAKE -f - am--depfiles) >&5 2>&5
12358   ac_status=$?
12359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360   (exit $ac_status); } || am_rc=$?
12361  done
12362  if test $am_rc -ne 0; then
12363    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12364$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12365as_fn_error $? "Something went wrong bootstrapping makefile fragments
12366    for automatic dependency tracking.  Try re-running configure with the
12367    '--disable-dependency-tracking' option to at least be able to build
12368    the package (albeit without support for automatic dependency tracking).
12369See \`config.log' for more details" "$LINENO" 5; }
12370  fi
12371  { am_dirpart=; unset am_dirpart;}
12372  { am_filepart=; unset am_filepart;}
12373  { am_mf=; unset am_mf;}
12374  { am_rc=; unset am_rc;}
12375  rm -f conftest-deps.mk
12376}
12377 ;;
12378
12379  esac
12380done # for ac_tag
12381
12382
12383as_fn_exit 0
12384_ACEOF
12385ac_clean_files=$ac_clean_files_save
12386
12387test $ac_write_fail = 0 ||
12388  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12389
12390
12391# configure is writing to config.log, and then calls config.status.
12392# config.status does its own redirection, appending to config.log.
12393# Unfortunately, on DOS this fails, as config.log is still kept open
12394# by configure, so config.status won't be able to write to it; its
12395# output is simply discarded.  So we exec the FD to /dev/null,
12396# effectively closing config.log, so it can be properly (re)opened and
12397# appended to by config.status.  When coming back to configure, we
12398# need to make the FD available again.
12399if test "$no_create" != yes; then
12400  ac_cs_success=:
12401  ac_config_status_args=
12402  test "$silent" = yes &&
12403    ac_config_status_args="$ac_config_status_args --quiet"
12404  exec 5>/dev/null
12405  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12406  exec 5>>config.log
12407  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12408  # would make configure fail if this is the last instruction.
12409  $ac_cs_success || as_fn_exit 1
12410fi
12411if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12412  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12413$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12414fi
12415
12416