configure revision 423b239c
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xmodmap 1.0.10.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xmodmap/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/xmodmap/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='xmodmap'
583PACKAGE_TARNAME='xmodmap'
584PACKAGE_VERSION='1.0.10'
585PACKAGE_STRING='xmodmap 1.0.10'
586PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xmodmap/issues'
587PACKAGE_URL=''
588
589ac_unique_file="Makefile.am"
590# Factoring default headers for most tests.
591ac_includes_default="\
592#include <stdio.h>
593#ifdef HAVE_SYS_TYPES_H
594# include <sys/types.h>
595#endif
596#ifdef HAVE_SYS_STAT_H
597# include <sys/stat.h>
598#endif
599#ifdef STDC_HEADERS
600# include <stdlib.h>
601# include <stddef.h>
602#else
603# ifdef HAVE_STDLIB_H
604#  include <stdlib.h>
605# endif
606#endif
607#ifdef HAVE_STRING_H
608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609#  include <memory.h>
610# endif
611# include <string.h>
612#endif
613#ifdef HAVE_STRINGS_H
614# include <strings.h>
615#endif
616#ifdef HAVE_INTTYPES_H
617# include <inttypes.h>
618#endif
619#ifdef HAVE_STDINT_H
620# include <stdint.h>
621#endif
622#ifdef HAVE_UNISTD_H
623# include <unistd.h>
624#endif"
625
626ac_subst_vars='am__EXEEXT_FALSE
627am__EXEEXT_TRUE
628LTLIBOBJS
629LIBOBJS
630LINT_FALSE
631LINT_TRUE
632LINT_FLAGS
633LINT
634XMODMAP_LIBS
635XMODMAP_CFLAGS
636MAN_SUBSTS
637XORG_MAN_PAGE
638ADMIN_MAN_DIR
639DRIVER_MAN_DIR
640MISC_MAN_DIR
641FILE_MAN_DIR
642LIB_MAN_DIR
643APP_MAN_DIR
644ADMIN_MAN_SUFFIX
645DRIVER_MAN_SUFFIX
646MISC_MAN_SUFFIX
647FILE_MAN_SUFFIX
648LIB_MAN_SUFFIX
649APP_MAN_SUFFIX
650SED
651host_os
652host_vendor
653host_cpu
654host
655build_os
656build_vendor
657build_cpu
658build
659INSTALL_CMD
660PKG_CONFIG_LIBDIR
661PKG_CONFIG_PATH
662PKG_CONFIG
663CHANGELOG_CMD
664STRICT_CFLAGS
665CWARNFLAGS
666BASE_CFLAGS
667AM_BACKSLASH
668AM_DEFAULT_VERBOSITY
669AM_DEFAULT_V
670AM_V
671am__fastdepCC_FALSE
672am__fastdepCC_TRUE
673CCDEPMODE
674am__nodep
675AMDEPBACKSLASH
676AMDEP_FALSE
677AMDEP_TRUE
678am__quote
679am__include
680DEPDIR
681am__untar
682am__tar
683AMTAR
684am__leading_dot
685SET_MAKE
686AWK
687mkdir_p
688MKDIR_P
689INSTALL_STRIP_PROGRAM
690STRIP
691install_sh
692MAKEINFO
693AUTOHEADER
694AUTOMAKE
695AUTOCONF
696ACLOCAL
697VERSION
698PACKAGE
699CYGPATH_W
700am__isrc
701INSTALL_DATA
702INSTALL_SCRIPT
703INSTALL_PROGRAM
704EGREP
705GREP
706CPP
707OBJEXT
708EXEEXT
709ac_ct_CC
710CPPFLAGS
711LDFLAGS
712CFLAGS
713CC
714target_alias
715host_alias
716build_alias
717LIBS
718ECHO_T
719ECHO_N
720ECHO_C
721DEFS
722mandir
723localedir
724libdir
725psdir
726pdfdir
727dvidir
728htmldir
729infodir
730docdir
731oldincludedir
732includedir
733localstatedir
734sharedstatedir
735sysconfdir
736datadir
737datarootdir
738libexecdir
739sbindir
740bindir
741program_transform_name
742prefix
743exec_prefix
744PACKAGE_URL
745PACKAGE_BUGREPORT
746PACKAGE_STRING
747PACKAGE_VERSION
748PACKAGE_TARNAME
749PACKAGE_NAME
750PATH_SEPARATOR
751SHELL'
752ac_subst_files=''
753ac_user_opts='
754enable_option_checking
755enable_dependency_tracking
756enable_silent_rules
757enable_selective_werror
758enable_strict_compilation
759with_lint
760'
761      ac_precious_vars='build_alias
762host_alias
763target_alias
764CC
765CFLAGS
766LDFLAGS
767LIBS
768CPPFLAGS
769CPP
770PKG_CONFIG
771PKG_CONFIG_PATH
772PKG_CONFIG_LIBDIR
773XMODMAP_CFLAGS
774XMODMAP_LIBS
775LINT
776LINT_FLAGS'
777
778
779# Initialize some variables set by options.
780ac_init_help=
781ac_init_version=false
782ac_unrecognized_opts=
783ac_unrecognized_sep=
784# The variables have the same names as the options, with
785# dashes changed to underlines.
786cache_file=/dev/null
787exec_prefix=NONE
788no_create=
789no_recursion=
790prefix=NONE
791program_prefix=NONE
792program_suffix=NONE
793program_transform_name=s,x,x,
794silent=
795site=
796srcdir=
797verbose=
798x_includes=NONE
799x_libraries=NONE
800
801# Installation directory options.
802# These are left unexpanded so users can "make install exec_prefix=/foo"
803# and all the variables that are supposed to be based on exec_prefix
804# by default will actually change.
805# Use braces instead of parens because sh, perl, etc. also accept them.
806# (The list follows the same order as the GNU Coding Standards.)
807bindir='${exec_prefix}/bin'
808sbindir='${exec_prefix}/sbin'
809libexecdir='${exec_prefix}/libexec'
810datarootdir='${prefix}/share'
811datadir='${datarootdir}'
812sysconfdir='${prefix}/etc'
813sharedstatedir='${prefix}/com'
814localstatedir='${prefix}/var'
815includedir='${prefix}/include'
816oldincludedir='/usr/include'
817docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
818infodir='${datarootdir}/info'
819htmldir='${docdir}'
820dvidir='${docdir}'
821pdfdir='${docdir}'
822psdir='${docdir}'
823libdir='${exec_prefix}/lib'
824localedir='${datarootdir}/locale'
825mandir='${datarootdir}/man'
826
827ac_prev=
828ac_dashdash=
829for ac_option
830do
831  # If the previous option needs an argument, assign it.
832  if test -n "$ac_prev"; then
833    eval $ac_prev=\$ac_option
834    ac_prev=
835    continue
836  fi
837
838  case $ac_option in
839  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
840  *=)   ac_optarg= ;;
841  *)    ac_optarg=yes ;;
842  esac
843
844  # Accept the important Cygnus configure options, so we can diagnose typos.
845
846  case $ac_dashdash$ac_option in
847  --)
848    ac_dashdash=yes ;;
849
850  -bindir | --bindir | --bindi | --bind | --bin | --bi)
851    ac_prev=bindir ;;
852  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
853    bindir=$ac_optarg ;;
854
855  -build | --build | --buil | --bui | --bu)
856    ac_prev=build_alias ;;
857  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
858    build_alias=$ac_optarg ;;
859
860  -cache-file | --cache-file | --cache-fil | --cache-fi \
861  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
862    ac_prev=cache_file ;;
863  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
864  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
865    cache_file=$ac_optarg ;;
866
867  --config-cache | -C)
868    cache_file=config.cache ;;
869
870  -datadir | --datadir | --datadi | --datad)
871    ac_prev=datadir ;;
872  -datadir=* | --datadir=* | --datadi=* | --datad=*)
873    datadir=$ac_optarg ;;
874
875  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
876  | --dataroo | --dataro | --datar)
877    ac_prev=datarootdir ;;
878  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
879  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
880    datarootdir=$ac_optarg ;;
881
882  -disable-* | --disable-*)
883    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
884    # Reject names that are not valid shell variable names.
885    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
886      as_fn_error $? "invalid feature name: $ac_useropt"
887    ac_useropt_orig=$ac_useropt
888    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
889    case $ac_user_opts in
890      *"
891"enable_$ac_useropt"
892"*) ;;
893      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
894	 ac_unrecognized_sep=', ';;
895    esac
896    eval enable_$ac_useropt=no ;;
897
898  -docdir | --docdir | --docdi | --doc | --do)
899    ac_prev=docdir ;;
900  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
901    docdir=$ac_optarg ;;
902
903  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
904    ac_prev=dvidir ;;
905  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
906    dvidir=$ac_optarg ;;
907
908  -enable-* | --enable-*)
909    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
910    # Reject names that are not valid shell variable names.
911    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912      as_fn_error $? "invalid feature name: $ac_useropt"
913    ac_useropt_orig=$ac_useropt
914    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915    case $ac_user_opts in
916      *"
917"enable_$ac_useropt"
918"*) ;;
919      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
920	 ac_unrecognized_sep=', ';;
921    esac
922    eval enable_$ac_useropt=\$ac_optarg ;;
923
924  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
925  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
926  | --exec | --exe | --ex)
927    ac_prev=exec_prefix ;;
928  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
929  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
930  | --exec=* | --exe=* | --ex=*)
931    exec_prefix=$ac_optarg ;;
932
933  -gas | --gas | --ga | --g)
934    # Obsolete; use --with-gas.
935    with_gas=yes ;;
936
937  -help | --help | --hel | --he | -h)
938    ac_init_help=long ;;
939  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
940    ac_init_help=recursive ;;
941  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
942    ac_init_help=short ;;
943
944  -host | --host | --hos | --ho)
945    ac_prev=host_alias ;;
946  -host=* | --host=* | --hos=* | --ho=*)
947    host_alias=$ac_optarg ;;
948
949  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
950    ac_prev=htmldir ;;
951  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
952  | --ht=*)
953    htmldir=$ac_optarg ;;
954
955  -includedir | --includedir | --includedi | --included | --include \
956  | --includ | --inclu | --incl | --inc)
957    ac_prev=includedir ;;
958  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
959  | --includ=* | --inclu=* | --incl=* | --inc=*)
960    includedir=$ac_optarg ;;
961
962  -infodir | --infodir | --infodi | --infod | --info | --inf)
963    ac_prev=infodir ;;
964  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
965    infodir=$ac_optarg ;;
966
967  -libdir | --libdir | --libdi | --libd)
968    ac_prev=libdir ;;
969  -libdir=* | --libdir=* | --libdi=* | --libd=*)
970    libdir=$ac_optarg ;;
971
972  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
973  | --libexe | --libex | --libe)
974    ac_prev=libexecdir ;;
975  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
976  | --libexe=* | --libex=* | --libe=*)
977    libexecdir=$ac_optarg ;;
978
979  -localedir | --localedir | --localedi | --localed | --locale)
980    ac_prev=localedir ;;
981  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
982    localedir=$ac_optarg ;;
983
984  -localstatedir | --localstatedir | --localstatedi | --localstated \
985  | --localstate | --localstat | --localsta | --localst | --locals)
986    ac_prev=localstatedir ;;
987  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
988  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
989    localstatedir=$ac_optarg ;;
990
991  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
992    ac_prev=mandir ;;
993  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
994    mandir=$ac_optarg ;;
995
996  -nfp | --nfp | --nf)
997    # Obsolete; use --without-fp.
998    with_fp=no ;;
999
1000  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1001  | --no-cr | --no-c | -n)
1002    no_create=yes ;;
1003
1004  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1005  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1006    no_recursion=yes ;;
1007
1008  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1009  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1010  | --oldin | --oldi | --old | --ol | --o)
1011    ac_prev=oldincludedir ;;
1012  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1013  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1014  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1015    oldincludedir=$ac_optarg ;;
1016
1017  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1018    ac_prev=prefix ;;
1019  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1020    prefix=$ac_optarg ;;
1021
1022  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1023  | --program-pre | --program-pr | --program-p)
1024    ac_prev=program_prefix ;;
1025  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1026  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1027    program_prefix=$ac_optarg ;;
1028
1029  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1030  | --program-suf | --program-su | --program-s)
1031    ac_prev=program_suffix ;;
1032  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1033  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1034    program_suffix=$ac_optarg ;;
1035
1036  -program-transform-name | --program-transform-name \
1037  | --program-transform-nam | --program-transform-na \
1038  | --program-transform-n | --program-transform- \
1039  | --program-transform | --program-transfor \
1040  | --program-transfo | --program-transf \
1041  | --program-trans | --program-tran \
1042  | --progr-tra | --program-tr | --program-t)
1043    ac_prev=program_transform_name ;;
1044  -program-transform-name=* | --program-transform-name=* \
1045  | --program-transform-nam=* | --program-transform-na=* \
1046  | --program-transform-n=* | --program-transform-=* \
1047  | --program-transform=* | --program-transfor=* \
1048  | --program-transfo=* | --program-transf=* \
1049  | --program-trans=* | --program-tran=* \
1050  | --progr-tra=* | --program-tr=* | --program-t=*)
1051    program_transform_name=$ac_optarg ;;
1052
1053  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1054    ac_prev=pdfdir ;;
1055  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1056    pdfdir=$ac_optarg ;;
1057
1058  -psdir | --psdir | --psdi | --psd | --ps)
1059    ac_prev=psdir ;;
1060  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1061    psdir=$ac_optarg ;;
1062
1063  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064  | -silent | --silent | --silen | --sile | --sil)
1065    silent=yes ;;
1066
1067  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1068    ac_prev=sbindir ;;
1069  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1070  | --sbi=* | --sb=*)
1071    sbindir=$ac_optarg ;;
1072
1073  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1074  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1075  | --sharedst | --shareds | --shared | --share | --shar \
1076  | --sha | --sh)
1077    ac_prev=sharedstatedir ;;
1078  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1079  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1080  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1081  | --sha=* | --sh=*)
1082    sharedstatedir=$ac_optarg ;;
1083
1084  -site | --site | --sit)
1085    ac_prev=site ;;
1086  -site=* | --site=* | --sit=*)
1087    site=$ac_optarg ;;
1088
1089  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1090    ac_prev=srcdir ;;
1091  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1092    srcdir=$ac_optarg ;;
1093
1094  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1095  | --syscon | --sysco | --sysc | --sys | --sy)
1096    ac_prev=sysconfdir ;;
1097  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1098  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1099    sysconfdir=$ac_optarg ;;
1100
1101  -target | --target | --targe | --targ | --tar | --ta | --t)
1102    ac_prev=target_alias ;;
1103  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1104    target_alias=$ac_optarg ;;
1105
1106  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1107    verbose=yes ;;
1108
1109  -version | --version | --versio | --versi | --vers | -V)
1110    ac_init_version=: ;;
1111
1112  -with-* | --with-*)
1113    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1114    # Reject names that are not valid shell variable names.
1115    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1116      as_fn_error $? "invalid package name: $ac_useropt"
1117    ac_useropt_orig=$ac_useropt
1118    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119    case $ac_user_opts in
1120      *"
1121"with_$ac_useropt"
1122"*) ;;
1123      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1124	 ac_unrecognized_sep=', ';;
1125    esac
1126    eval with_$ac_useropt=\$ac_optarg ;;
1127
1128  -without-* | --without-*)
1129    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1130    # Reject names that are not valid shell variable names.
1131    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132      as_fn_error $? "invalid package name: $ac_useropt"
1133    ac_useropt_orig=$ac_useropt
1134    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135    case $ac_user_opts in
1136      *"
1137"with_$ac_useropt"
1138"*) ;;
1139      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1140	 ac_unrecognized_sep=', ';;
1141    esac
1142    eval with_$ac_useropt=no ;;
1143
1144  --x)
1145    # Obsolete; use --with-x.
1146    with_x=yes ;;
1147
1148  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1149  | --x-incl | --x-inc | --x-in | --x-i)
1150    ac_prev=x_includes ;;
1151  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1152  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1153    x_includes=$ac_optarg ;;
1154
1155  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1156  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1157    ac_prev=x_libraries ;;
1158  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1159  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1160    x_libraries=$ac_optarg ;;
1161
1162  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1163Try \`$0 --help' for more information"
1164    ;;
1165
1166  *=*)
1167    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1168    # Reject names that are not valid shell variable names.
1169    case $ac_envvar in #(
1170      '' | [0-9]* | *[!_$as_cr_alnum]* )
1171      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1172    esac
1173    eval $ac_envvar=\$ac_optarg
1174    export $ac_envvar ;;
1175
1176  *)
1177    # FIXME: should be removed in autoconf 3.0.
1178    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1179    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1180      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1181    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1182    ;;
1183
1184  esac
1185done
1186
1187if test -n "$ac_prev"; then
1188  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1189  as_fn_error $? "missing argument to $ac_option"
1190fi
1191
1192if test -n "$ac_unrecognized_opts"; then
1193  case $enable_option_checking in
1194    no) ;;
1195    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1196    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1197  esac
1198fi
1199
1200# Check all directory arguments for consistency.
1201for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1202		datadir sysconfdir sharedstatedir localstatedir includedir \
1203		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1204		libdir localedir mandir
1205do
1206  eval ac_val=\$$ac_var
1207  # Remove trailing slashes.
1208  case $ac_val in
1209    */ )
1210      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1211      eval $ac_var=\$ac_val;;
1212  esac
1213  # Be sure to have absolute directory names.
1214  case $ac_val in
1215    [\\/$]* | ?:[\\/]* )  continue;;
1216    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1217  esac
1218  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1219done
1220
1221# There might be people who depend on the old broken behavior: `$host'
1222# used to hold the argument of --host etc.
1223# FIXME: To remove some day.
1224build=$build_alias
1225host=$host_alias
1226target=$target_alias
1227
1228# FIXME: To remove some day.
1229if test "x$host_alias" != x; then
1230  if test "x$build_alias" = x; then
1231    cross_compiling=maybe
1232  elif test "x$build_alias" != "x$host_alias"; then
1233    cross_compiling=yes
1234  fi
1235fi
1236
1237ac_tool_prefix=
1238test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239
1240test "$silent" = yes && exec 6>/dev/null
1241
1242
1243ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244ac_ls_di=`ls -di .` &&
1245ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246  as_fn_error $? "working directory cannot be determined"
1247test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248  as_fn_error $? "pwd does not report name of working directory"
1249
1250
1251# Find the source files, if location was not specified.
1252if test -z "$srcdir"; then
1253  ac_srcdir_defaulted=yes
1254  # Try the directory containing this script, then the parent directory.
1255  ac_confdir=`$as_dirname -- "$as_myself" ||
1256$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257	 X"$as_myself" : 'X\(//\)[^/]' \| \
1258	 X"$as_myself" : 'X\(//\)$' \| \
1259	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1260$as_echo X"$as_myself" |
1261    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262	    s//\1/
1263	    q
1264	  }
1265	  /^X\(\/\/\)[^/].*/{
1266	    s//\1/
1267	    q
1268	  }
1269	  /^X\(\/\/\)$/{
1270	    s//\1/
1271	    q
1272	  }
1273	  /^X\(\/\).*/{
1274	    s//\1/
1275	    q
1276	  }
1277	  s/.*/./; q'`
1278  srcdir=$ac_confdir
1279  if test ! -r "$srcdir/$ac_unique_file"; then
1280    srcdir=..
1281  fi
1282else
1283  ac_srcdir_defaulted=no
1284fi
1285if test ! -r "$srcdir/$ac_unique_file"; then
1286  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1288fi
1289ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290ac_abs_confdir=`(
1291	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1292	pwd)`
1293# When building in place, set srcdir=.
1294if test "$ac_abs_confdir" = "$ac_pwd"; then
1295  srcdir=.
1296fi
1297# Remove unnecessary trailing slashes from srcdir.
1298# Double slashes in file names in object file debugging info
1299# mess up M-x gdb in Emacs.
1300case $srcdir in
1301*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1302esac
1303for ac_var in $ac_precious_vars; do
1304  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1305  eval ac_env_${ac_var}_value=\$${ac_var}
1306  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1307  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1308done
1309
1310#
1311# Report the --help message.
1312#
1313if test "$ac_init_help" = "long"; then
1314  # Omit some internal or obsolete options to make the list less imposing.
1315  # This message is too long to be a string in the A/UX 3.1 sh.
1316  cat <<_ACEOF
1317\`configure' configures xmodmap 1.0.10 to adapt to many kinds of systems.
1318
1319Usage: $0 [OPTION]... [VAR=VALUE]...
1320
1321To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322VAR=VALUE.  See below for descriptions of some of the useful variables.
1323
1324Defaults for the options are specified in brackets.
1325
1326Configuration:
1327  -h, --help              display this help and exit
1328      --help=short        display options specific to this package
1329      --help=recursive    display the short help of all the included packages
1330  -V, --version           display version information and exit
1331  -q, --quiet, --silent   do not print \`checking ...' messages
1332      --cache-file=FILE   cache test results in FILE [disabled]
1333  -C, --config-cache      alias for \`--cache-file=config.cache'
1334  -n, --no-create         do not create output files
1335      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1336
1337Installation directories:
1338  --prefix=PREFIX         install architecture-independent files in PREFIX
1339                          [$ac_default_prefix]
1340  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1341                          [PREFIX]
1342
1343By default, \`make install' will install all the files in
1344\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1345an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346for instance \`--prefix=\$HOME'.
1347
1348For better control, use the options below.
1349
1350Fine tuning of the installation directories:
1351  --bindir=DIR            user executables [EPREFIX/bin]
1352  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1353  --libexecdir=DIR        program executables [EPREFIX/libexec]
1354  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1355  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1356  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1357  --libdir=DIR            object code libraries [EPREFIX/lib]
1358  --includedir=DIR        C header files [PREFIX/include]
1359  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1360  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1361  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1362  --infodir=DIR           info documentation [DATAROOTDIR/info]
1363  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1364  --mandir=DIR            man documentation [DATAROOTDIR/man]
1365  --docdir=DIR            documentation root [DATAROOTDIR/doc/xmodmap]
1366  --htmldir=DIR           html documentation [DOCDIR]
1367  --dvidir=DIR            dvi documentation [DOCDIR]
1368  --pdfdir=DIR            pdf documentation [DOCDIR]
1369  --psdir=DIR             ps documentation [DOCDIR]
1370_ACEOF
1371
1372  cat <<\_ACEOF
1373
1374Program names:
1375  --program-prefix=PREFIX            prepend PREFIX to installed program names
1376  --program-suffix=SUFFIX            append SUFFIX to installed program names
1377  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1378
1379System types:
1380  --build=BUILD     configure for building on BUILD [guessed]
1381  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1382_ACEOF
1383fi
1384
1385if test -n "$ac_init_help"; then
1386  case $ac_init_help in
1387     short | recursive ) echo "Configuration of xmodmap 1.0.10:";;
1388   esac
1389  cat <<\_ACEOF
1390
1391Optional Features:
1392  --disable-option-checking  ignore unrecognized --enable/--with options
1393  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1394  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1395  --enable-dependency-tracking
1396                          do not reject slow dependency extractors
1397  --disable-dependency-tracking
1398                          speeds up one-time build
1399  --enable-silent-rules   less verbose build output (undo: "make V=1")
1400  --disable-silent-rules  verbose build output (undo: "make V=0")
1401  --disable-selective-werror
1402                          Turn off selective compiler errors. (default:
1403                          enabled)
1404  --enable-strict-compilation
1405                          Enable all warnings from compiler and make them
1406                          errors (default: disabled)
1407
1408Optional Packages:
1409  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1410  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1411  --with-lint             Use a lint-style source code checker (default:
1412                          disabled)
1413
1414Some influential environment variables:
1415  CC          C compiler command
1416  CFLAGS      C compiler flags
1417  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1418              nonstandard directory <lib dir>
1419  LIBS        libraries to pass to the linker, e.g. -l<library>
1420  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1421              you have headers in a nonstandard directory <include dir>
1422  CPP         C preprocessor
1423  PKG_CONFIG  path to pkg-config utility
1424  PKG_CONFIG_PATH
1425              directories to add to pkg-config's search path
1426  PKG_CONFIG_LIBDIR
1427              path overriding pkg-config's built-in search path
1428  XMODMAP_CFLAGS
1429              C compiler flags for XMODMAP, overriding pkg-config
1430  XMODMAP_LIBS
1431              linker flags for XMODMAP, overriding pkg-config
1432  LINT        Path to a lint-style command
1433  LINT_FLAGS  Flags for the lint-style command
1434
1435Use these variables to override the choices made by `configure' or to help
1436it to find libraries and programs with nonstandard names/locations.
1437
1438Report bugs to <https://gitlab.freedesktop.org/xorg/app/xmodmap/issues>.
1439_ACEOF
1440ac_status=$?
1441fi
1442
1443if test "$ac_init_help" = "recursive"; then
1444  # If there are subdirs, report their specific --help.
1445  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1446    test -d "$ac_dir" ||
1447      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1448      continue
1449    ac_builddir=.
1450
1451case "$ac_dir" in
1452.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453*)
1454  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1455  # A ".." for each directory in $ac_dir_suffix.
1456  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1457  case $ac_top_builddir_sub in
1458  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1459  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1460  esac ;;
1461esac
1462ac_abs_top_builddir=$ac_pwd
1463ac_abs_builddir=$ac_pwd$ac_dir_suffix
1464# for backward compatibility:
1465ac_top_builddir=$ac_top_build_prefix
1466
1467case $srcdir in
1468  .)  # We are building in place.
1469    ac_srcdir=.
1470    ac_top_srcdir=$ac_top_builddir_sub
1471    ac_abs_top_srcdir=$ac_pwd ;;
1472  [\\/]* | ?:[\\/]* )  # Absolute name.
1473    ac_srcdir=$srcdir$ac_dir_suffix;
1474    ac_top_srcdir=$srcdir
1475    ac_abs_top_srcdir=$srcdir ;;
1476  *) # Relative name.
1477    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1478    ac_top_srcdir=$ac_top_build_prefix$srcdir
1479    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1480esac
1481ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1482
1483    cd "$ac_dir" || { ac_status=$?; continue; }
1484    # Check for guested configure.
1485    if test -f "$ac_srcdir/configure.gnu"; then
1486      echo &&
1487      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1488    elif test -f "$ac_srcdir/configure"; then
1489      echo &&
1490      $SHELL "$ac_srcdir/configure" --help=recursive
1491    else
1492      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1493    fi || ac_status=$?
1494    cd "$ac_pwd" || { ac_status=$?; break; }
1495  done
1496fi
1497
1498test -n "$ac_init_help" && exit $ac_status
1499if $ac_init_version; then
1500  cat <<\_ACEOF
1501xmodmap configure 1.0.10
1502generated by GNU Autoconf 2.69
1503
1504Copyright (C) 2012 Free Software Foundation, Inc.
1505This configure script is free software; the Free Software Foundation
1506gives unlimited permission to copy, distribute and modify it.
1507_ACEOF
1508  exit
1509fi
1510
1511## ------------------------ ##
1512## Autoconf initialization. ##
1513## ------------------------ ##
1514
1515# ac_fn_c_try_compile LINENO
1516# --------------------------
1517# Try to compile conftest.$ac_ext, and return whether this succeeded.
1518ac_fn_c_try_compile ()
1519{
1520  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521  rm -f conftest.$ac_objext
1522  if { { ac_try="$ac_compile"
1523case "(($ac_try" in
1524  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525  *) ac_try_echo=$ac_try;;
1526esac
1527eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528$as_echo "$ac_try_echo"; } >&5
1529  (eval "$ac_compile") 2>conftest.err
1530  ac_status=$?
1531  if test -s conftest.err; then
1532    grep -v '^ *+' conftest.err >conftest.er1
1533    cat conftest.er1 >&5
1534    mv -f conftest.er1 conftest.err
1535  fi
1536  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537  test $ac_status = 0; } && {
1538	 test -z "$ac_c_werror_flag" ||
1539	 test ! -s conftest.err
1540       } && test -s conftest.$ac_objext; then :
1541  ac_retval=0
1542else
1543  $as_echo "$as_me: failed program was:" >&5
1544sed 's/^/| /' conftest.$ac_ext >&5
1545
1546	ac_retval=1
1547fi
1548  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1549  as_fn_set_status $ac_retval
1550
1551} # ac_fn_c_try_compile
1552
1553# ac_fn_c_try_cpp LINENO
1554# ----------------------
1555# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1556ac_fn_c_try_cpp ()
1557{
1558  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559  if { { ac_try="$ac_cpp conftest.$ac_ext"
1560case "(($ac_try" in
1561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562  *) ac_try_echo=$ac_try;;
1563esac
1564eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565$as_echo "$ac_try_echo"; } >&5
1566  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1567  ac_status=$?
1568  if test -s conftest.err; then
1569    grep -v '^ *+' conftest.err >conftest.er1
1570    cat conftest.er1 >&5
1571    mv -f conftest.er1 conftest.err
1572  fi
1573  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574  test $ac_status = 0; } > conftest.i && {
1575	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1576	 test ! -s conftest.err
1577       }; then :
1578  ac_retval=0
1579else
1580  $as_echo "$as_me: failed program was:" >&5
1581sed 's/^/| /' conftest.$ac_ext >&5
1582
1583    ac_retval=1
1584fi
1585  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1586  as_fn_set_status $ac_retval
1587
1588} # ac_fn_c_try_cpp
1589
1590# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1591# -------------------------------------------------------
1592# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1593# the include files in INCLUDES and setting the cache variable VAR
1594# accordingly.
1595ac_fn_c_check_header_mongrel ()
1596{
1597  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598  if eval \${$3+:} false; then :
1599  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1600$as_echo_n "checking for $2... " >&6; }
1601if eval \${$3+:} false; then :
1602  $as_echo_n "(cached) " >&6
1603fi
1604eval ac_res=\$$3
1605	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1606$as_echo "$ac_res" >&6; }
1607else
1608  # Is the header compilable?
1609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1610$as_echo_n "checking $2 usability... " >&6; }
1611cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1612/* end confdefs.h.  */
1613$4
1614#include <$2>
1615_ACEOF
1616if ac_fn_c_try_compile "$LINENO"; then :
1617  ac_header_compiler=yes
1618else
1619  ac_header_compiler=no
1620fi
1621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1623$as_echo "$ac_header_compiler" >&6; }
1624
1625# Is the header present?
1626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1627$as_echo_n "checking $2 presence... " >&6; }
1628cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1629/* end confdefs.h.  */
1630#include <$2>
1631_ACEOF
1632if ac_fn_c_try_cpp "$LINENO"; then :
1633  ac_header_preproc=yes
1634else
1635  ac_header_preproc=no
1636fi
1637rm -f conftest.err conftest.i conftest.$ac_ext
1638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1639$as_echo "$ac_header_preproc" >&6; }
1640
1641# So?  What about this header?
1642case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1643  yes:no: )
1644    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1645$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1646    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1647$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1648    ;;
1649  no:yes:* )
1650    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1651$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1652    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1653$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1654    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1655$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1656    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1657$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1658    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1659$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1660( $as_echo "## --------------------------------------------------------------------- ##
1661## Report this to https://gitlab.freedesktop.org/xorg/app/xmodmap/issues ##
1662## --------------------------------------------------------------------- ##"
1663     ) | sed "s/^/$as_me: WARNING:     /" >&2
1664    ;;
1665esac
1666  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1667$as_echo_n "checking for $2... " >&6; }
1668if eval \${$3+:} false; then :
1669  $as_echo_n "(cached) " >&6
1670else
1671  eval "$3=\$ac_header_compiler"
1672fi
1673eval ac_res=\$$3
1674	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1675$as_echo "$ac_res" >&6; }
1676fi
1677  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678
1679} # ac_fn_c_check_header_mongrel
1680
1681# ac_fn_c_try_run LINENO
1682# ----------------------
1683# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1684# that executables *can* be run.
1685ac_fn_c_try_run ()
1686{
1687  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688  if { { ac_try="$ac_link"
1689case "(($ac_try" in
1690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691  *) ac_try_echo=$ac_try;;
1692esac
1693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694$as_echo "$ac_try_echo"; } >&5
1695  (eval "$ac_link") 2>&5
1696  ac_status=$?
1697  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1699  { { case "(($ac_try" in
1700  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701  *) ac_try_echo=$ac_try;;
1702esac
1703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704$as_echo "$ac_try_echo"; } >&5
1705  (eval "$ac_try") 2>&5
1706  ac_status=$?
1707  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708  test $ac_status = 0; }; }; then :
1709  ac_retval=0
1710else
1711  $as_echo "$as_me: program exited with status $ac_status" >&5
1712       $as_echo "$as_me: failed program was:" >&5
1713sed 's/^/| /' conftest.$ac_ext >&5
1714
1715       ac_retval=$ac_status
1716fi
1717  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1718  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719  as_fn_set_status $ac_retval
1720
1721} # ac_fn_c_try_run
1722
1723# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1724# -------------------------------------------------------
1725# Tests whether HEADER exists and can be compiled using the include files in
1726# INCLUDES, setting the cache variable VAR accordingly.
1727ac_fn_c_check_header_compile ()
1728{
1729  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731$as_echo_n "checking for $2... " >&6; }
1732if eval \${$3+:} false; then :
1733  $as_echo_n "(cached) " >&6
1734else
1735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1736/* end confdefs.h.  */
1737$4
1738#include <$2>
1739_ACEOF
1740if ac_fn_c_try_compile "$LINENO"; then :
1741  eval "$3=yes"
1742else
1743  eval "$3=no"
1744fi
1745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1746fi
1747eval ac_res=\$$3
1748	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1749$as_echo "$ac_res" >&6; }
1750  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751
1752} # ac_fn_c_check_header_compile
1753
1754# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1755# ---------------------------------------------
1756# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1757# accordingly.
1758ac_fn_c_check_decl ()
1759{
1760  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761  as_decl_name=`echo $2|sed 's/ *(.*//'`
1762  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1763  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1764$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1765if eval \${$3+:} false; then :
1766  $as_echo_n "(cached) " >&6
1767else
1768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769/* end confdefs.h.  */
1770$4
1771int
1772main ()
1773{
1774#ifndef $as_decl_name
1775#ifdef __cplusplus
1776  (void) $as_decl_use;
1777#else
1778  (void) $as_decl_name;
1779#endif
1780#endif
1781
1782  ;
1783  return 0;
1784}
1785_ACEOF
1786if ac_fn_c_try_compile "$LINENO"; then :
1787  eval "$3=yes"
1788else
1789  eval "$3=no"
1790fi
1791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1792fi
1793eval ac_res=\$$3
1794	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795$as_echo "$ac_res" >&6; }
1796  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797
1798} # ac_fn_c_check_decl
1799
1800# ac_fn_c_try_link LINENO
1801# -----------------------
1802# Try to link conftest.$ac_ext, and return whether this succeeded.
1803ac_fn_c_try_link ()
1804{
1805  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806  rm -f conftest.$ac_objext conftest$ac_exeext
1807  if { { ac_try="$ac_link"
1808case "(($ac_try" in
1809  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810  *) ac_try_echo=$ac_try;;
1811esac
1812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813$as_echo "$ac_try_echo"; } >&5
1814  (eval "$ac_link") 2>conftest.err
1815  ac_status=$?
1816  if test -s conftest.err; then
1817    grep -v '^ *+' conftest.err >conftest.er1
1818    cat conftest.er1 >&5
1819    mv -f conftest.er1 conftest.err
1820  fi
1821  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822  test $ac_status = 0; } && {
1823	 test -z "$ac_c_werror_flag" ||
1824	 test ! -s conftest.err
1825       } && test -s conftest$ac_exeext && {
1826	 test "$cross_compiling" = yes ||
1827	 test -x conftest$ac_exeext
1828       }; then :
1829  ac_retval=0
1830else
1831  $as_echo "$as_me: failed program was:" >&5
1832sed 's/^/| /' conftest.$ac_ext >&5
1833
1834	ac_retval=1
1835fi
1836  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1837  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1838  # interfere with the next link command; also delete a directory that is
1839  # left behind by Apple's compiler.  We do this before executing the actions.
1840  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1841  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842  as_fn_set_status $ac_retval
1843
1844} # ac_fn_c_try_link
1845
1846# ac_fn_c_check_func LINENO FUNC VAR
1847# ----------------------------------
1848# Tests whether FUNC exists, setting the cache variable VAR accordingly
1849ac_fn_c_check_func ()
1850{
1851  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1853$as_echo_n "checking for $2... " >&6; }
1854if eval \${$3+:} false; then :
1855  $as_echo_n "(cached) " >&6
1856else
1857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1858/* end confdefs.h.  */
1859/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1860   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1861#define $2 innocuous_$2
1862
1863/* System header to define __stub macros and hopefully few prototypes,
1864    which can conflict with char $2 (); below.
1865    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1866    <limits.h> exists even on freestanding compilers.  */
1867
1868#ifdef __STDC__
1869# include <limits.h>
1870#else
1871# include <assert.h>
1872#endif
1873
1874#undef $2
1875
1876/* Override any GCC internal prototype to avoid an error.
1877   Use char because int might match the return type of a GCC
1878   builtin and then its argument prototype would still apply.  */
1879#ifdef __cplusplus
1880extern "C"
1881#endif
1882char $2 ();
1883/* The GNU C library defines this for functions which it implements
1884    to always fail with ENOSYS.  Some functions are actually named
1885    something starting with __ and the normal name is an alias.  */
1886#if defined __stub_$2 || defined __stub___$2
1887choke me
1888#endif
1889
1890int
1891main ()
1892{
1893return $2 ();
1894  ;
1895  return 0;
1896}
1897_ACEOF
1898if ac_fn_c_try_link "$LINENO"; then :
1899  eval "$3=yes"
1900else
1901  eval "$3=no"
1902fi
1903rm -f core conftest.err conftest.$ac_objext \
1904    conftest$ac_exeext conftest.$ac_ext
1905fi
1906eval ac_res=\$$3
1907	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1908$as_echo "$ac_res" >&6; }
1909  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1910
1911} # ac_fn_c_check_func
1912cat >config.log <<_ACEOF
1913This file contains any messages produced by compilers while
1914running configure, to aid debugging if configure makes a mistake.
1915
1916It was created by xmodmap $as_me 1.0.10, which was
1917generated by GNU Autoconf 2.69.  Invocation command line was
1918
1919  $ $0 $@
1920
1921_ACEOF
1922exec 5>>config.log
1923{
1924cat <<_ASUNAME
1925## --------- ##
1926## Platform. ##
1927## --------- ##
1928
1929hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1930uname -m = `(uname -m) 2>/dev/null || echo unknown`
1931uname -r = `(uname -r) 2>/dev/null || echo unknown`
1932uname -s = `(uname -s) 2>/dev/null || echo unknown`
1933uname -v = `(uname -v) 2>/dev/null || echo unknown`
1934
1935/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1936/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1937
1938/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1939/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1940/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1941/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1942/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1943/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1944/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1945
1946_ASUNAME
1947
1948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1949for as_dir in $PATH
1950do
1951  IFS=$as_save_IFS
1952  test -z "$as_dir" && as_dir=.
1953    $as_echo "PATH: $as_dir"
1954  done
1955IFS=$as_save_IFS
1956
1957} >&5
1958
1959cat >&5 <<_ACEOF
1960
1961
1962## ----------- ##
1963## Core tests. ##
1964## ----------- ##
1965
1966_ACEOF
1967
1968
1969# Keep a trace of the command line.
1970# Strip out --no-create and --no-recursion so they do not pile up.
1971# Strip out --silent because we don't want to record it for future runs.
1972# Also quote any args containing shell meta-characters.
1973# Make two passes to allow for proper duplicate-argument suppression.
1974ac_configure_args=
1975ac_configure_args0=
1976ac_configure_args1=
1977ac_must_keep_next=false
1978for ac_pass in 1 2
1979do
1980  for ac_arg
1981  do
1982    case $ac_arg in
1983    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1984    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1985    | -silent | --silent | --silen | --sile | --sil)
1986      continue ;;
1987    *\'*)
1988      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1989    esac
1990    case $ac_pass in
1991    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1992    2)
1993      as_fn_append ac_configure_args1 " '$ac_arg'"
1994      if test $ac_must_keep_next = true; then
1995	ac_must_keep_next=false # Got value, back to normal.
1996      else
1997	case $ac_arg in
1998	  *=* | --config-cache | -C | -disable-* | --disable-* \
1999	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2000	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2001	  | -with-* | --with-* | -without-* | --without-* | --x)
2002	    case "$ac_configure_args0 " in
2003	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2004	    esac
2005	    ;;
2006	  -* ) ac_must_keep_next=true ;;
2007	esac
2008      fi
2009      as_fn_append ac_configure_args " '$ac_arg'"
2010      ;;
2011    esac
2012  done
2013done
2014{ ac_configure_args0=; unset ac_configure_args0;}
2015{ ac_configure_args1=; unset ac_configure_args1;}
2016
2017# When interrupted or exit'd, cleanup temporary files, and complete
2018# config.log.  We remove comments because anyway the quotes in there
2019# would cause problems or look ugly.
2020# WARNING: Use '\'' to represent an apostrophe within the trap.
2021# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2022trap 'exit_status=$?
2023  # Save into config.log some information that might help in debugging.
2024  {
2025    echo
2026
2027    $as_echo "## ---------------- ##
2028## Cache variables. ##
2029## ---------------- ##"
2030    echo
2031    # The following way of writing the cache mishandles newlines in values,
2032(
2033  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2034    eval ac_val=\$$ac_var
2035    case $ac_val in #(
2036    *${as_nl}*)
2037      case $ac_var in #(
2038      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2039$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2040      esac
2041      case $ac_var in #(
2042      _ | IFS | as_nl) ;; #(
2043      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2044      *) { eval $ac_var=; unset $ac_var;} ;;
2045      esac ;;
2046    esac
2047  done
2048  (set) 2>&1 |
2049    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2050    *${as_nl}ac_space=\ *)
2051      sed -n \
2052	"s/'\''/'\''\\\\'\'''\''/g;
2053	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2054      ;; #(
2055    *)
2056      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2057      ;;
2058    esac |
2059    sort
2060)
2061    echo
2062
2063    $as_echo "## ----------------- ##
2064## Output variables. ##
2065## ----------------- ##"
2066    echo
2067    for ac_var in $ac_subst_vars
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
2077    if test -n "$ac_subst_files"; then
2078      $as_echo "## ------------------- ##
2079## File substitutions. ##
2080## ------------------- ##"
2081      echo
2082      for ac_var in $ac_subst_files
2083      do
2084	eval ac_val=\$$ac_var
2085	case $ac_val in
2086	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2087	esac
2088	$as_echo "$ac_var='\''$ac_val'\''"
2089      done | sort
2090      echo
2091    fi
2092
2093    if test -s confdefs.h; then
2094      $as_echo "## ----------- ##
2095## confdefs.h. ##
2096## ----------- ##"
2097      echo
2098      cat confdefs.h
2099      echo
2100    fi
2101    test "$ac_signal" != 0 &&
2102      $as_echo "$as_me: caught signal $ac_signal"
2103    $as_echo "$as_me: exit $exit_status"
2104  } >&5
2105  rm -f core *.core core.conftest.* &&
2106    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2107    exit $exit_status
2108' 0
2109for ac_signal in 1 2 13 15; do
2110  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2111done
2112ac_signal=0
2113
2114# confdefs.h avoids OS command line length limits that DEFS can exceed.
2115rm -f -r conftest* confdefs.h
2116
2117$as_echo "/* confdefs.h */" > confdefs.h
2118
2119# Predefined preprocessor variables.
2120
2121cat >>confdefs.h <<_ACEOF
2122#define PACKAGE_NAME "$PACKAGE_NAME"
2123_ACEOF
2124
2125cat >>confdefs.h <<_ACEOF
2126#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2127_ACEOF
2128
2129cat >>confdefs.h <<_ACEOF
2130#define PACKAGE_VERSION "$PACKAGE_VERSION"
2131_ACEOF
2132
2133cat >>confdefs.h <<_ACEOF
2134#define PACKAGE_STRING "$PACKAGE_STRING"
2135_ACEOF
2136
2137cat >>confdefs.h <<_ACEOF
2138#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2139_ACEOF
2140
2141cat >>confdefs.h <<_ACEOF
2142#define PACKAGE_URL "$PACKAGE_URL"
2143_ACEOF
2144
2145
2146# Let the site file select an alternate cache file if it wants to.
2147# Prefer an explicitly selected file to automatically selected ones.
2148ac_site_file1=NONE
2149ac_site_file2=NONE
2150if test -n "$CONFIG_SITE"; then
2151  # We do not want a PATH search for config.site.
2152  case $CONFIG_SITE in #((
2153    -*)  ac_site_file1=./$CONFIG_SITE;;
2154    */*) ac_site_file1=$CONFIG_SITE;;
2155    *)   ac_site_file1=./$CONFIG_SITE;;
2156  esac
2157elif test "x$prefix" != xNONE; then
2158  ac_site_file1=$prefix/share/config.site
2159  ac_site_file2=$prefix/etc/config.site
2160else
2161  ac_site_file1=$ac_default_prefix/share/config.site
2162  ac_site_file2=$ac_default_prefix/etc/config.site
2163fi
2164for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2165do
2166  test "x$ac_site_file" = xNONE && continue
2167  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2168    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2169$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2170    sed 's/^/| /' "$ac_site_file" >&5
2171    . "$ac_site_file" \
2172      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2173$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2174as_fn_error $? "failed to load site script $ac_site_file
2175See \`config.log' for more details" "$LINENO" 5; }
2176  fi
2177done
2178
2179if test -r "$cache_file"; then
2180  # Some versions of bash will fail to source /dev/null (special files
2181  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2182  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2183    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2184$as_echo "$as_me: loading cache $cache_file" >&6;}
2185    case $cache_file in
2186      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2187      *)                      . "./$cache_file";;
2188    esac
2189  fi
2190else
2191  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2192$as_echo "$as_me: creating cache $cache_file" >&6;}
2193  >$cache_file
2194fi
2195
2196# Check that the precious variables saved in the cache have kept the same
2197# value.
2198ac_cache_corrupted=false
2199for ac_var in $ac_precious_vars; do
2200  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2201  eval ac_new_set=\$ac_env_${ac_var}_set
2202  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2203  eval ac_new_val=\$ac_env_${ac_var}_value
2204  case $ac_old_set,$ac_new_set in
2205    set,)
2206      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2207$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2208      ac_cache_corrupted=: ;;
2209    ,set)
2210      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2211$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2212      ac_cache_corrupted=: ;;
2213    ,);;
2214    *)
2215      if test "x$ac_old_val" != "x$ac_new_val"; then
2216	# differences in whitespace do not lead to failure.
2217	ac_old_val_w=`echo x $ac_old_val`
2218	ac_new_val_w=`echo x $ac_new_val`
2219	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2220	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2221$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2222	  ac_cache_corrupted=:
2223	else
2224	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2225$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2226	  eval $ac_var=\$ac_old_val
2227	fi
2228	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2229$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2230	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2231$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2232      fi;;
2233  esac
2234  # Pass precious variables to config.status.
2235  if test "$ac_new_set" = set; then
2236    case $ac_new_val in
2237    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2238    *) ac_arg=$ac_var=$ac_new_val ;;
2239    esac
2240    case " $ac_configure_args " in
2241      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2242      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2243    esac
2244  fi
2245done
2246if $ac_cache_corrupted; then
2247  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2248$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2249  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2250$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2251  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2252fi
2253## -------------------- ##
2254## Main body of script. ##
2255## -------------------- ##
2256
2257ac_ext=c
2258ac_cpp='$CPP $CPPFLAGS'
2259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2261ac_compiler_gnu=$ac_cv_c_compiler_gnu
2262
2263
2264
2265ac_config_headers="$ac_config_headers config.h"
2266
2267# Needed for asprintf on GNU libc
2268ac_aux_dir=
2269for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2270  if test -f "$ac_dir/install-sh"; then
2271    ac_aux_dir=$ac_dir
2272    ac_install_sh="$ac_aux_dir/install-sh -c"
2273    break
2274  elif test -f "$ac_dir/install.sh"; then
2275    ac_aux_dir=$ac_dir
2276    ac_install_sh="$ac_aux_dir/install.sh -c"
2277    break
2278  elif test -f "$ac_dir/shtool"; then
2279    ac_aux_dir=$ac_dir
2280    ac_install_sh="$ac_aux_dir/shtool install -c"
2281    break
2282  fi
2283done
2284if test -z "$ac_aux_dir"; then
2285  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2286fi
2287
2288# These three variables are undocumented and unsupported,
2289# and are intended to be withdrawn in a future Autoconf release.
2290# They can cause serious problems if a builder's source tree is in a directory
2291# whose full name contains unusual characters.
2292ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2293ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2294ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2295
2296
2297# Expand $ac_aux_dir to an absolute path.
2298am_aux_dir=`cd "$ac_aux_dir" && pwd`
2299
2300ac_ext=c
2301ac_cpp='$CPP $CPPFLAGS'
2302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2304ac_compiler_gnu=$ac_cv_c_compiler_gnu
2305if test -n "$ac_tool_prefix"; then
2306  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2307set dummy ${ac_tool_prefix}gcc; ac_word=$2
2308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2309$as_echo_n "checking for $ac_word... " >&6; }
2310if ${ac_cv_prog_CC+:} false; then :
2311  $as_echo_n "(cached) " >&6
2312else
2313  if test -n "$CC"; then
2314  ac_cv_prog_CC="$CC" # Let the user override the test.
2315else
2316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2317for as_dir in $PATH
2318do
2319  IFS=$as_save_IFS
2320  test -z "$as_dir" && as_dir=.
2321    for ac_exec_ext in '' $ac_executable_extensions; do
2322  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2323    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2324    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2325    break 2
2326  fi
2327done
2328  done
2329IFS=$as_save_IFS
2330
2331fi
2332fi
2333CC=$ac_cv_prog_CC
2334if test -n "$CC"; then
2335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2336$as_echo "$CC" >&6; }
2337else
2338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2339$as_echo "no" >&6; }
2340fi
2341
2342
2343fi
2344if test -z "$ac_cv_prog_CC"; then
2345  ac_ct_CC=$CC
2346  # Extract the first word of "gcc", so it can be a program name with args.
2347set dummy gcc; ac_word=$2
2348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2349$as_echo_n "checking for $ac_word... " >&6; }
2350if ${ac_cv_prog_ac_ct_CC+:} false; then :
2351  $as_echo_n "(cached) " >&6
2352else
2353  if test -n "$ac_ct_CC"; then
2354  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2355else
2356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2357for as_dir in $PATH
2358do
2359  IFS=$as_save_IFS
2360  test -z "$as_dir" && as_dir=.
2361    for ac_exec_ext in '' $ac_executable_extensions; do
2362  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2363    ac_cv_prog_ac_ct_CC="gcc"
2364    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2365    break 2
2366  fi
2367done
2368  done
2369IFS=$as_save_IFS
2370
2371fi
2372fi
2373ac_ct_CC=$ac_cv_prog_ac_ct_CC
2374if test -n "$ac_ct_CC"; then
2375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2376$as_echo "$ac_ct_CC" >&6; }
2377else
2378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2379$as_echo "no" >&6; }
2380fi
2381
2382  if test "x$ac_ct_CC" = x; then
2383    CC=""
2384  else
2385    case $cross_compiling:$ac_tool_warned in
2386yes:)
2387{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2388$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2389ac_tool_warned=yes ;;
2390esac
2391    CC=$ac_ct_CC
2392  fi
2393else
2394  CC="$ac_cv_prog_CC"
2395fi
2396
2397if test -z "$CC"; then
2398          if test -n "$ac_tool_prefix"; then
2399    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2400set dummy ${ac_tool_prefix}cc; ac_word=$2
2401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2402$as_echo_n "checking for $ac_word... " >&6; }
2403if ${ac_cv_prog_CC+:} false; then :
2404  $as_echo_n "(cached) " >&6
2405else
2406  if test -n "$CC"; then
2407  ac_cv_prog_CC="$CC" # Let the user override the test.
2408else
2409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410for as_dir in $PATH
2411do
2412  IFS=$as_save_IFS
2413  test -z "$as_dir" && as_dir=.
2414    for ac_exec_ext in '' $ac_executable_extensions; do
2415  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2416    ac_cv_prog_CC="${ac_tool_prefix}cc"
2417    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2418    break 2
2419  fi
2420done
2421  done
2422IFS=$as_save_IFS
2423
2424fi
2425fi
2426CC=$ac_cv_prog_CC
2427if test -n "$CC"; then
2428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2429$as_echo "$CC" >&6; }
2430else
2431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2432$as_echo "no" >&6; }
2433fi
2434
2435
2436  fi
2437fi
2438if test -z "$CC"; then
2439  # Extract the first word of "cc", so it can be a program name with args.
2440set dummy cc; ac_word=$2
2441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2442$as_echo_n "checking for $ac_word... " >&6; }
2443if ${ac_cv_prog_CC+:} false; then :
2444  $as_echo_n "(cached) " >&6
2445else
2446  if test -n "$CC"; then
2447  ac_cv_prog_CC="$CC" # Let the user override the test.
2448else
2449  ac_prog_rejected=no
2450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2451for as_dir in $PATH
2452do
2453  IFS=$as_save_IFS
2454  test -z "$as_dir" && as_dir=.
2455    for ac_exec_ext in '' $ac_executable_extensions; do
2456  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2457    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2458       ac_prog_rejected=yes
2459       continue
2460     fi
2461    ac_cv_prog_CC="cc"
2462    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2463    break 2
2464  fi
2465done
2466  done
2467IFS=$as_save_IFS
2468
2469if test $ac_prog_rejected = yes; then
2470  # We found a bogon in the path, so make sure we never use it.
2471  set dummy $ac_cv_prog_CC
2472  shift
2473  if test $# != 0; then
2474    # We chose a different compiler from the bogus one.
2475    # However, it has the same basename, so the bogon will be chosen
2476    # first if we set CC to just the basename; use the full file name.
2477    shift
2478    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2479  fi
2480fi
2481fi
2482fi
2483CC=$ac_cv_prog_CC
2484if test -n "$CC"; then
2485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2486$as_echo "$CC" >&6; }
2487else
2488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2489$as_echo "no" >&6; }
2490fi
2491
2492
2493fi
2494if test -z "$CC"; then
2495  if test -n "$ac_tool_prefix"; then
2496  for ac_prog in cl.exe
2497  do
2498    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2499set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2501$as_echo_n "checking for $ac_word... " >&6; }
2502if ${ac_cv_prog_CC+:} false; then :
2503  $as_echo_n "(cached) " >&6
2504else
2505  if test -n "$CC"; then
2506  ac_cv_prog_CC="$CC" # Let the user override the test.
2507else
2508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509for as_dir in $PATH
2510do
2511  IFS=$as_save_IFS
2512  test -z "$as_dir" && as_dir=.
2513    for ac_exec_ext in '' $ac_executable_extensions; do
2514  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2515    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2516    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2517    break 2
2518  fi
2519done
2520  done
2521IFS=$as_save_IFS
2522
2523fi
2524fi
2525CC=$ac_cv_prog_CC
2526if test -n "$CC"; then
2527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2528$as_echo "$CC" >&6; }
2529else
2530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2531$as_echo "no" >&6; }
2532fi
2533
2534
2535    test -n "$CC" && break
2536  done
2537fi
2538if test -z "$CC"; then
2539  ac_ct_CC=$CC
2540  for ac_prog in cl.exe
2541do
2542  # Extract the first word of "$ac_prog", so it can be a program name with args.
2543set dummy $ac_prog; ac_word=$2
2544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2545$as_echo_n "checking for $ac_word... " >&6; }
2546if ${ac_cv_prog_ac_ct_CC+:} false; then :
2547  $as_echo_n "(cached) " >&6
2548else
2549  if test -n "$ac_ct_CC"; then
2550  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2551else
2552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553for as_dir in $PATH
2554do
2555  IFS=$as_save_IFS
2556  test -z "$as_dir" && as_dir=.
2557    for ac_exec_ext in '' $ac_executable_extensions; do
2558  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2559    ac_cv_prog_ac_ct_CC="$ac_prog"
2560    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2561    break 2
2562  fi
2563done
2564  done
2565IFS=$as_save_IFS
2566
2567fi
2568fi
2569ac_ct_CC=$ac_cv_prog_ac_ct_CC
2570if test -n "$ac_ct_CC"; then
2571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2572$as_echo "$ac_ct_CC" >&6; }
2573else
2574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2575$as_echo "no" >&6; }
2576fi
2577
2578
2579  test -n "$ac_ct_CC" && break
2580done
2581
2582  if test "x$ac_ct_CC" = x; then
2583    CC=""
2584  else
2585    case $cross_compiling:$ac_tool_warned in
2586yes:)
2587{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2588$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2589ac_tool_warned=yes ;;
2590esac
2591    CC=$ac_ct_CC
2592  fi
2593fi
2594
2595fi
2596
2597
2598test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2599$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2600as_fn_error $? "no acceptable C compiler found in \$PATH
2601See \`config.log' for more details" "$LINENO" 5; }
2602
2603# Provide some information about the compiler.
2604$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2605set X $ac_compile
2606ac_compiler=$2
2607for ac_option in --version -v -V -qversion; do
2608  { { ac_try="$ac_compiler $ac_option >&5"
2609case "(($ac_try" in
2610  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2611  *) ac_try_echo=$ac_try;;
2612esac
2613eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2614$as_echo "$ac_try_echo"; } >&5
2615  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2616  ac_status=$?
2617  if test -s conftest.err; then
2618    sed '10a\
2619... rest of stderr output deleted ...
2620         10q' conftest.err >conftest.er1
2621    cat conftest.er1 >&5
2622  fi
2623  rm -f conftest.er1 conftest.err
2624  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2625  test $ac_status = 0; }
2626done
2627
2628cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2629/* end confdefs.h.  */
2630
2631int
2632main ()
2633{
2634
2635  ;
2636  return 0;
2637}
2638_ACEOF
2639ac_clean_files_save=$ac_clean_files
2640ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2641# Try to create an executable without -o first, disregard a.out.
2642# It will help us diagnose broken compilers, and finding out an intuition
2643# of exeext.
2644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2645$as_echo_n "checking whether the C compiler works... " >&6; }
2646ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2647
2648# The possible output files:
2649ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2650
2651ac_rmfiles=
2652for ac_file in $ac_files
2653do
2654  case $ac_file in
2655    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2656    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2657  esac
2658done
2659rm -f $ac_rmfiles
2660
2661if { { ac_try="$ac_link_default"
2662case "(($ac_try" in
2663  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2664  *) ac_try_echo=$ac_try;;
2665esac
2666eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2667$as_echo "$ac_try_echo"; } >&5
2668  (eval "$ac_link_default") 2>&5
2669  ac_status=$?
2670  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2671  test $ac_status = 0; }; then :
2672  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2673# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2674# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2675# so that the user can short-circuit this test for compilers unknown to
2676# Autoconf.
2677for ac_file in $ac_files ''
2678do
2679  test -f "$ac_file" || continue
2680  case $ac_file in
2681    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2682	;;
2683    [ab].out )
2684	# We found the default executable, but exeext='' is most
2685	# certainly right.
2686	break;;
2687    *.* )
2688	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2689	then :; else
2690	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2691	fi
2692	# We set ac_cv_exeext here because the later test for it is not
2693	# safe: cross compilers may not add the suffix if given an `-o'
2694	# argument, so we may need to know it at that point already.
2695	# Even if this section looks crufty: it has the advantage of
2696	# actually working.
2697	break;;
2698    * )
2699	break;;
2700  esac
2701done
2702test "$ac_cv_exeext" = no && ac_cv_exeext=
2703
2704else
2705  ac_file=''
2706fi
2707if test -z "$ac_file"; then :
2708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2709$as_echo "no" >&6; }
2710$as_echo "$as_me: failed program was:" >&5
2711sed 's/^/| /' conftest.$ac_ext >&5
2712
2713{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2714$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2715as_fn_error 77 "C compiler cannot create executables
2716See \`config.log' for more details" "$LINENO" 5; }
2717else
2718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2719$as_echo "yes" >&6; }
2720fi
2721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2722$as_echo_n "checking for C compiler default output file name... " >&6; }
2723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2724$as_echo "$ac_file" >&6; }
2725ac_exeext=$ac_cv_exeext
2726
2727rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2728ac_clean_files=$ac_clean_files_save
2729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2730$as_echo_n "checking for suffix of executables... " >&6; }
2731if { { ac_try="$ac_link"
2732case "(($ac_try" in
2733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734  *) ac_try_echo=$ac_try;;
2735esac
2736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2737$as_echo "$ac_try_echo"; } >&5
2738  (eval "$ac_link") 2>&5
2739  ac_status=$?
2740  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2741  test $ac_status = 0; }; then :
2742  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2743# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2744# work properly (i.e., refer to `conftest.exe'), while it won't with
2745# `rm'.
2746for ac_file in conftest.exe conftest conftest.*; do
2747  test -f "$ac_file" || continue
2748  case $ac_file in
2749    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2750    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2751	  break;;
2752    * ) break;;
2753  esac
2754done
2755else
2756  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2757$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2758as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2759See \`config.log' for more details" "$LINENO" 5; }
2760fi
2761rm -f conftest conftest$ac_cv_exeext
2762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2763$as_echo "$ac_cv_exeext" >&6; }
2764
2765rm -f conftest.$ac_ext
2766EXEEXT=$ac_cv_exeext
2767ac_exeext=$EXEEXT
2768cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2769/* end confdefs.h.  */
2770#include <stdio.h>
2771int
2772main ()
2773{
2774FILE *f = fopen ("conftest.out", "w");
2775 return ferror (f) || fclose (f) != 0;
2776
2777  ;
2778  return 0;
2779}
2780_ACEOF
2781ac_clean_files="$ac_clean_files conftest.out"
2782# Check that the compiler produces executables we can run.  If not, either
2783# the compiler is broken, or we cross compile.
2784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2785$as_echo_n "checking whether we are cross compiling... " >&6; }
2786if test "$cross_compiling" != yes; then
2787  { { ac_try="$ac_link"
2788case "(($ac_try" in
2789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2790  *) ac_try_echo=$ac_try;;
2791esac
2792eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2793$as_echo "$ac_try_echo"; } >&5
2794  (eval "$ac_link") 2>&5
2795  ac_status=$?
2796  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2797  test $ac_status = 0; }
2798  if { ac_try='./conftest$ac_cv_exeext'
2799  { { case "(($ac_try" in
2800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2801  *) ac_try_echo=$ac_try;;
2802esac
2803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2804$as_echo "$ac_try_echo"; } >&5
2805  (eval "$ac_try") 2>&5
2806  ac_status=$?
2807  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2808  test $ac_status = 0; }; }; then
2809    cross_compiling=no
2810  else
2811    if test "$cross_compiling" = maybe; then
2812	cross_compiling=yes
2813    else
2814	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2815$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2816as_fn_error $? "cannot run C compiled programs.
2817If you meant to cross compile, use \`--host'.
2818See \`config.log' for more details" "$LINENO" 5; }
2819    fi
2820  fi
2821fi
2822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2823$as_echo "$cross_compiling" >&6; }
2824
2825rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2826ac_clean_files=$ac_clean_files_save
2827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2828$as_echo_n "checking for suffix of object files... " >&6; }
2829if ${ac_cv_objext+:} false; then :
2830  $as_echo_n "(cached) " >&6
2831else
2832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2833/* end confdefs.h.  */
2834
2835int
2836main ()
2837{
2838
2839  ;
2840  return 0;
2841}
2842_ACEOF
2843rm -f conftest.o conftest.obj
2844if { { ac_try="$ac_compile"
2845case "(($ac_try" in
2846  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847  *) ac_try_echo=$ac_try;;
2848esac
2849eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2850$as_echo "$ac_try_echo"; } >&5
2851  (eval "$ac_compile") 2>&5
2852  ac_status=$?
2853  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2854  test $ac_status = 0; }; then :
2855  for ac_file in conftest.o conftest.obj conftest.*; do
2856  test -f "$ac_file" || continue;
2857  case $ac_file in
2858    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2859    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2860       break;;
2861  esac
2862done
2863else
2864  $as_echo "$as_me: failed program was:" >&5
2865sed 's/^/| /' conftest.$ac_ext >&5
2866
2867{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2868$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2869as_fn_error $? "cannot compute suffix of object files: cannot compile
2870See \`config.log' for more details" "$LINENO" 5; }
2871fi
2872rm -f conftest.$ac_cv_objext conftest.$ac_ext
2873fi
2874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2875$as_echo "$ac_cv_objext" >&6; }
2876OBJEXT=$ac_cv_objext
2877ac_objext=$OBJEXT
2878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2879$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2880if ${ac_cv_c_compiler_gnu+:} false; then :
2881  $as_echo_n "(cached) " >&6
2882else
2883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2884/* end confdefs.h.  */
2885
2886int
2887main ()
2888{
2889#ifndef __GNUC__
2890       choke me
2891#endif
2892
2893  ;
2894  return 0;
2895}
2896_ACEOF
2897if ac_fn_c_try_compile "$LINENO"; then :
2898  ac_compiler_gnu=yes
2899else
2900  ac_compiler_gnu=no
2901fi
2902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2903ac_cv_c_compiler_gnu=$ac_compiler_gnu
2904
2905fi
2906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2907$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2908if test $ac_compiler_gnu = yes; then
2909  GCC=yes
2910else
2911  GCC=
2912fi
2913ac_test_CFLAGS=${CFLAGS+set}
2914ac_save_CFLAGS=$CFLAGS
2915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2916$as_echo_n "checking whether $CC accepts -g... " >&6; }
2917if ${ac_cv_prog_cc_g+:} false; then :
2918  $as_echo_n "(cached) " >&6
2919else
2920  ac_save_c_werror_flag=$ac_c_werror_flag
2921   ac_c_werror_flag=yes
2922   ac_cv_prog_cc_g=no
2923   CFLAGS="-g"
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  ac_cv_prog_cc_g=yes
2937else
2938  CFLAGS=""
2939      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2940/* end confdefs.h.  */
2941
2942int
2943main ()
2944{
2945
2946  ;
2947  return 0;
2948}
2949_ACEOF
2950if ac_fn_c_try_compile "$LINENO"; then :
2951
2952else
2953  ac_c_werror_flag=$ac_save_c_werror_flag
2954	 CFLAGS="-g"
2955	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2956/* end confdefs.h.  */
2957
2958int
2959main ()
2960{
2961
2962  ;
2963  return 0;
2964}
2965_ACEOF
2966if ac_fn_c_try_compile "$LINENO"; then :
2967  ac_cv_prog_cc_g=yes
2968fi
2969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2970fi
2971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2972fi
2973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2974   ac_c_werror_flag=$ac_save_c_werror_flag
2975fi
2976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2977$as_echo "$ac_cv_prog_cc_g" >&6; }
2978if test "$ac_test_CFLAGS" = set; then
2979  CFLAGS=$ac_save_CFLAGS
2980elif test $ac_cv_prog_cc_g = yes; then
2981  if test "$GCC" = yes; then
2982    CFLAGS="-g -O2"
2983  else
2984    CFLAGS="-g"
2985  fi
2986else
2987  if test "$GCC" = yes; then
2988    CFLAGS="-O2"
2989  else
2990    CFLAGS=
2991  fi
2992fi
2993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2994$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2995if ${ac_cv_prog_cc_c89+:} false; then :
2996  $as_echo_n "(cached) " >&6
2997else
2998  ac_cv_prog_cc_c89=no
2999ac_save_CC=$CC
3000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3001/* end confdefs.h.  */
3002#include <stdarg.h>
3003#include <stdio.h>
3004struct stat;
3005/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3006struct buf { int x; };
3007FILE * (*rcsopen) (struct buf *, struct stat *, int);
3008static char *e (p, i)
3009     char **p;
3010     int i;
3011{
3012  return p[i];
3013}
3014static char *f (char * (*g) (char **, int), char **p, ...)
3015{
3016  char *s;
3017  va_list v;
3018  va_start (v,p);
3019  s = g (p, va_arg (v,int));
3020  va_end (v);
3021  return s;
3022}
3023
3024/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3025   function prototypes and stuff, but not '\xHH' hex character constants.
3026   These don't provoke an error unfortunately, instead are silently treated
3027   as 'x'.  The following induces an error, until -std is added to get
3028   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3029   array size at least.  It's necessary to write '\x00'==0 to get something
3030   that's true only with -std.  */
3031int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3032
3033/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3034   inside strings and character constants.  */
3035#define FOO(x) 'x'
3036int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3037
3038int test (int i, double x);
3039struct s1 {int (*f) (int a);};
3040struct s2 {int (*f) (double a);};
3041int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3042int argc;
3043char **argv;
3044int
3045main ()
3046{
3047return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3048  ;
3049  return 0;
3050}
3051_ACEOF
3052for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3053	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3054do
3055  CC="$ac_save_CC $ac_arg"
3056  if ac_fn_c_try_compile "$LINENO"; then :
3057  ac_cv_prog_cc_c89=$ac_arg
3058fi
3059rm -f core conftest.err conftest.$ac_objext
3060  test "x$ac_cv_prog_cc_c89" != "xno" && break
3061done
3062rm -f conftest.$ac_ext
3063CC=$ac_save_CC
3064
3065fi
3066# AC_CACHE_VAL
3067case "x$ac_cv_prog_cc_c89" in
3068  x)
3069    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3070$as_echo "none needed" >&6; } ;;
3071  xno)
3072    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3073$as_echo "unsupported" >&6; } ;;
3074  *)
3075    CC="$CC $ac_cv_prog_cc_c89"
3076    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3077$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3078esac
3079if test "x$ac_cv_prog_cc_c89" != xno; then :
3080
3081fi
3082
3083ac_ext=c
3084ac_cpp='$CPP $CPPFLAGS'
3085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3087ac_compiler_gnu=$ac_cv_c_compiler_gnu
3088
3089ac_ext=c
3090ac_cpp='$CPP $CPPFLAGS'
3091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3093ac_compiler_gnu=$ac_cv_c_compiler_gnu
3094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3095$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3096if ${am_cv_prog_cc_c_o+:} false; then :
3097  $as_echo_n "(cached) " >&6
3098else
3099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3100/* end confdefs.h.  */
3101
3102int
3103main ()
3104{
3105
3106  ;
3107  return 0;
3108}
3109_ACEOF
3110  # Make sure it works both with $CC and with simple cc.
3111  # Following AC_PROG_CC_C_O, we do the test twice because some
3112  # compilers refuse to overwrite an existing .o file with -o,
3113  # though they will create one.
3114  am_cv_prog_cc_c_o=yes
3115  for am_i in 1 2; do
3116    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3117   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3118   ac_status=$?
3119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120   (exit $ac_status); } \
3121         && test -f conftest2.$ac_objext; then
3122      : OK
3123    else
3124      am_cv_prog_cc_c_o=no
3125      break
3126    fi
3127  done
3128  rm -f core conftest*
3129  unset am_i
3130fi
3131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3132$as_echo "$am_cv_prog_cc_c_o" >&6; }
3133if test "$am_cv_prog_cc_c_o" != yes; then
3134   # Losing compiler, so override with the script.
3135   # FIXME: It is wrong to rewrite CC.
3136   # But if we don't then we get into trouble of one sort or another.
3137   # A longer-term fix would be to have automake use am__CC in this case,
3138   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3139   CC="$am_aux_dir/compile $CC"
3140fi
3141ac_ext=c
3142ac_cpp='$CPP $CPPFLAGS'
3143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3145ac_compiler_gnu=$ac_cv_c_compiler_gnu
3146
3147
3148
3149ac_ext=c
3150ac_cpp='$CPP $CPPFLAGS'
3151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3153ac_compiler_gnu=$ac_cv_c_compiler_gnu
3154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3155$as_echo_n "checking how to run the C preprocessor... " >&6; }
3156# On Suns, sometimes $CPP names a directory.
3157if test -n "$CPP" && test -d "$CPP"; then
3158  CPP=
3159fi
3160if test -z "$CPP"; then
3161  if ${ac_cv_prog_CPP+:} false; then :
3162  $as_echo_n "(cached) " >&6
3163else
3164      # Double quotes because CPP needs to be expanded
3165    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3166    do
3167      ac_preproc_ok=false
3168for ac_c_preproc_warn_flag in '' yes
3169do
3170  # Use a header file that comes with gcc, so configuring glibc
3171  # with a fresh cross-compiler works.
3172  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3173  # <limits.h> exists even on freestanding compilers.
3174  # On the NeXT, cc -E runs the code through the compiler's parser,
3175  # not just through cpp. "Syntax error" is here to catch this case.
3176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3177/* end confdefs.h.  */
3178#ifdef __STDC__
3179# include <limits.h>
3180#else
3181# include <assert.h>
3182#endif
3183		     Syntax error
3184_ACEOF
3185if ac_fn_c_try_cpp "$LINENO"; then :
3186
3187else
3188  # Broken: fails on valid input.
3189continue
3190fi
3191rm -f conftest.err conftest.i conftest.$ac_ext
3192
3193  # OK, works on sane cases.  Now check whether nonexistent headers
3194  # can be detected and how.
3195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3196/* end confdefs.h.  */
3197#include <ac_nonexistent.h>
3198_ACEOF
3199if ac_fn_c_try_cpp "$LINENO"; then :
3200  # Broken: success on invalid input.
3201continue
3202else
3203  # Passes both tests.
3204ac_preproc_ok=:
3205break
3206fi
3207rm -f conftest.err conftest.i conftest.$ac_ext
3208
3209done
3210# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3211rm -f conftest.i conftest.err conftest.$ac_ext
3212if $ac_preproc_ok; then :
3213  break
3214fi
3215
3216    done
3217    ac_cv_prog_CPP=$CPP
3218
3219fi
3220  CPP=$ac_cv_prog_CPP
3221else
3222  ac_cv_prog_CPP=$CPP
3223fi
3224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3225$as_echo "$CPP" >&6; }
3226ac_preproc_ok=false
3227for ac_c_preproc_warn_flag in '' yes
3228do
3229  # Use a header file that comes with gcc, so configuring glibc
3230  # with a fresh cross-compiler works.
3231  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3232  # <limits.h> exists even on freestanding compilers.
3233  # On the NeXT, cc -E runs the code through the compiler's parser,
3234  # not just through cpp. "Syntax error" is here to catch this case.
3235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3236/* end confdefs.h.  */
3237#ifdef __STDC__
3238# include <limits.h>
3239#else
3240# include <assert.h>
3241#endif
3242		     Syntax error
3243_ACEOF
3244if ac_fn_c_try_cpp "$LINENO"; then :
3245
3246else
3247  # Broken: fails on valid input.
3248continue
3249fi
3250rm -f conftest.err conftest.i conftest.$ac_ext
3251
3252  # OK, works on sane cases.  Now check whether nonexistent headers
3253  # can be detected and how.
3254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3255/* end confdefs.h.  */
3256#include <ac_nonexistent.h>
3257_ACEOF
3258if ac_fn_c_try_cpp "$LINENO"; then :
3259  # Broken: success on invalid input.
3260continue
3261else
3262  # Passes both tests.
3263ac_preproc_ok=:
3264break
3265fi
3266rm -f conftest.err conftest.i conftest.$ac_ext
3267
3268done
3269# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3270rm -f conftest.i conftest.err conftest.$ac_ext
3271if $ac_preproc_ok; then :
3272
3273else
3274  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3276as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3277See \`config.log' for more details" "$LINENO" 5; }
3278fi
3279
3280ac_ext=c
3281ac_cpp='$CPP $CPPFLAGS'
3282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3284ac_compiler_gnu=$ac_cv_c_compiler_gnu
3285
3286
3287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3288$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3289if ${ac_cv_path_GREP+:} false; then :
3290  $as_echo_n "(cached) " >&6
3291else
3292  if test -z "$GREP"; then
3293  ac_path_GREP_found=false
3294  # Loop through the user's path and test for each of PROGNAME-LIST
3295  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3297do
3298  IFS=$as_save_IFS
3299  test -z "$as_dir" && as_dir=.
3300    for ac_prog in grep ggrep; do
3301    for ac_exec_ext in '' $ac_executable_extensions; do
3302      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3303      as_fn_executable_p "$ac_path_GREP" || continue
3304# Check for GNU ac_path_GREP and select it if it is found.
3305  # Check for GNU $ac_path_GREP
3306case `"$ac_path_GREP" --version 2>&1` in
3307*GNU*)
3308  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3309*)
3310  ac_count=0
3311  $as_echo_n 0123456789 >"conftest.in"
3312  while :
3313  do
3314    cat "conftest.in" "conftest.in" >"conftest.tmp"
3315    mv "conftest.tmp" "conftest.in"
3316    cp "conftest.in" "conftest.nl"
3317    $as_echo 'GREP' >> "conftest.nl"
3318    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3319    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3320    as_fn_arith $ac_count + 1 && ac_count=$as_val
3321    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3322      # Best one so far, save it but keep looking for a better one
3323      ac_cv_path_GREP="$ac_path_GREP"
3324      ac_path_GREP_max=$ac_count
3325    fi
3326    # 10*(2^10) chars as input seems more than enough
3327    test $ac_count -gt 10 && break
3328  done
3329  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3330esac
3331
3332      $ac_path_GREP_found && break 3
3333    done
3334  done
3335  done
3336IFS=$as_save_IFS
3337  if test -z "$ac_cv_path_GREP"; then
3338    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3339  fi
3340else
3341  ac_cv_path_GREP=$GREP
3342fi
3343
3344fi
3345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3346$as_echo "$ac_cv_path_GREP" >&6; }
3347 GREP="$ac_cv_path_GREP"
3348
3349
3350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3351$as_echo_n "checking for egrep... " >&6; }
3352if ${ac_cv_path_EGREP+:} false; then :
3353  $as_echo_n "(cached) " >&6
3354else
3355  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3356   then ac_cv_path_EGREP="$GREP -E"
3357   else
3358     if test -z "$EGREP"; then
3359  ac_path_EGREP_found=false
3360  # Loop through the user's path and test for each of PROGNAME-LIST
3361  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3363do
3364  IFS=$as_save_IFS
3365  test -z "$as_dir" && as_dir=.
3366    for ac_prog in egrep; do
3367    for ac_exec_ext in '' $ac_executable_extensions; do
3368      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3369      as_fn_executable_p "$ac_path_EGREP" || continue
3370# Check for GNU ac_path_EGREP and select it if it is found.
3371  # Check for GNU $ac_path_EGREP
3372case `"$ac_path_EGREP" --version 2>&1` in
3373*GNU*)
3374  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3375*)
3376  ac_count=0
3377  $as_echo_n 0123456789 >"conftest.in"
3378  while :
3379  do
3380    cat "conftest.in" "conftest.in" >"conftest.tmp"
3381    mv "conftest.tmp" "conftest.in"
3382    cp "conftest.in" "conftest.nl"
3383    $as_echo 'EGREP' >> "conftest.nl"
3384    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3385    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3386    as_fn_arith $ac_count + 1 && ac_count=$as_val
3387    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3388      # Best one so far, save it but keep looking for a better one
3389      ac_cv_path_EGREP="$ac_path_EGREP"
3390      ac_path_EGREP_max=$ac_count
3391    fi
3392    # 10*(2^10) chars as input seems more than enough
3393    test $ac_count -gt 10 && break
3394  done
3395  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3396esac
3397
3398      $ac_path_EGREP_found && break 3
3399    done
3400  done
3401  done
3402IFS=$as_save_IFS
3403  if test -z "$ac_cv_path_EGREP"; then
3404    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3405  fi
3406else
3407  ac_cv_path_EGREP=$EGREP
3408fi
3409
3410   fi
3411fi
3412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3413$as_echo "$ac_cv_path_EGREP" >&6; }
3414 EGREP="$ac_cv_path_EGREP"
3415
3416
3417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3418$as_echo_n "checking for ANSI C header files... " >&6; }
3419if ${ac_cv_header_stdc+:} false; then :
3420  $as_echo_n "(cached) " >&6
3421else
3422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3423/* end confdefs.h.  */
3424#include <stdlib.h>
3425#include <stdarg.h>
3426#include <string.h>
3427#include <float.h>
3428
3429int
3430main ()
3431{
3432
3433  ;
3434  return 0;
3435}
3436_ACEOF
3437if ac_fn_c_try_compile "$LINENO"; then :
3438  ac_cv_header_stdc=yes
3439else
3440  ac_cv_header_stdc=no
3441fi
3442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3443
3444if test $ac_cv_header_stdc = yes; then
3445  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447/* end confdefs.h.  */
3448#include <string.h>
3449
3450_ACEOF
3451if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3452  $EGREP "memchr" >/dev/null 2>&1; then :
3453
3454else
3455  ac_cv_header_stdc=no
3456fi
3457rm -f conftest*
3458
3459fi
3460
3461if test $ac_cv_header_stdc = yes; then
3462  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464/* end confdefs.h.  */
3465#include <stdlib.h>
3466
3467_ACEOF
3468if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3469  $EGREP "free" >/dev/null 2>&1; then :
3470
3471else
3472  ac_cv_header_stdc=no
3473fi
3474rm -f conftest*
3475
3476fi
3477
3478if test $ac_cv_header_stdc = yes; then
3479  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3480  if test "$cross_compiling" = yes; then :
3481  :
3482else
3483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484/* end confdefs.h.  */
3485#include <ctype.h>
3486#include <stdlib.h>
3487#if ((' ' & 0x0FF) == 0x020)
3488# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3489# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3490#else
3491# define ISLOWER(c) \
3492		   (('a' <= (c) && (c) <= 'i') \
3493		     || ('j' <= (c) && (c) <= 'r') \
3494		     || ('s' <= (c) && (c) <= 'z'))
3495# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3496#endif
3497
3498#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3499int
3500main ()
3501{
3502  int i;
3503  for (i = 0; i < 256; i++)
3504    if (XOR (islower (i), ISLOWER (i))
3505	|| toupper (i) != TOUPPER (i))
3506      return 2;
3507  return 0;
3508}
3509_ACEOF
3510if ac_fn_c_try_run "$LINENO"; then :
3511
3512else
3513  ac_cv_header_stdc=no
3514fi
3515rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3516  conftest.$ac_objext conftest.beam conftest.$ac_ext
3517fi
3518
3519fi
3520fi
3521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3522$as_echo "$ac_cv_header_stdc" >&6; }
3523if test $ac_cv_header_stdc = yes; then
3524
3525$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3526
3527fi
3528
3529# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3530for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3531		  inttypes.h stdint.h unistd.h
3532do :
3533  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3534ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3535"
3536if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3537  cat >>confdefs.h <<_ACEOF
3538#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3539_ACEOF
3540
3541fi
3542
3543done
3544
3545
3546
3547  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3548if test "x$ac_cv_header_minix_config_h" = xyes; then :
3549  MINIX=yes
3550else
3551  MINIX=
3552fi
3553
3554
3555  if test "$MINIX" = yes; then
3556
3557$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3558
3559
3560$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3561
3562
3563$as_echo "#define _MINIX 1" >>confdefs.h
3564
3565  fi
3566
3567
3568  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3569$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3570if ${ac_cv_safe_to_define___extensions__+:} false; then :
3571  $as_echo_n "(cached) " >&6
3572else
3573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574/* end confdefs.h.  */
3575
3576#         define __EXTENSIONS__ 1
3577          $ac_includes_default
3578int
3579main ()
3580{
3581
3582  ;
3583  return 0;
3584}
3585_ACEOF
3586if ac_fn_c_try_compile "$LINENO"; then :
3587  ac_cv_safe_to_define___extensions__=yes
3588else
3589  ac_cv_safe_to_define___extensions__=no
3590fi
3591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3592fi
3593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3594$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3595  test $ac_cv_safe_to_define___extensions__ = yes &&
3596    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3597
3598  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3599
3600  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3601
3602  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3603
3604  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3605
3606
3607
3608# Initialize Automake
3609am__api_version='1.15'
3610
3611# Find a good install program.  We prefer a C program (faster),
3612# so one script is as good as another.  But avoid the broken or
3613# incompatible versions:
3614# SysV /etc/install, /usr/sbin/install
3615# SunOS /usr/etc/install
3616# IRIX /sbin/install
3617# AIX /bin/install
3618# AmigaOS /C/install, which installs bootblocks on floppy discs
3619# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3620# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3621# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3622# OS/2's system install, which has a completely different semantic
3623# ./install, which can be erroneously created by make from ./install.sh.
3624# Reject install programs that cannot install multiple files.
3625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3626$as_echo_n "checking for a BSD-compatible install... " >&6; }
3627if test -z "$INSTALL"; then
3628if ${ac_cv_path_install+:} false; then :
3629  $as_echo_n "(cached) " >&6
3630else
3631  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632for as_dir in $PATH
3633do
3634  IFS=$as_save_IFS
3635  test -z "$as_dir" && as_dir=.
3636    # Account for people who put trailing slashes in PATH elements.
3637case $as_dir/ in #((
3638  ./ | .// | /[cC]/* | \
3639  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3640  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3641  /usr/ucb/* ) ;;
3642  *)
3643    # OSF1 and SCO ODT 3.0 have their own names for install.
3644    # Don't use installbsd from OSF since it installs stuff as root
3645    # by default.
3646    for ac_prog in ginstall scoinst install; do
3647      for ac_exec_ext in '' $ac_executable_extensions; do
3648	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3649	  if test $ac_prog = install &&
3650	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3651	    # AIX install.  It has an incompatible calling convention.
3652	    :
3653	  elif test $ac_prog = install &&
3654	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3655	    # program-specific install script used by HP pwplus--don't use.
3656	    :
3657	  else
3658	    rm -rf conftest.one conftest.two conftest.dir
3659	    echo one > conftest.one
3660	    echo two > conftest.two
3661	    mkdir conftest.dir
3662	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3663	      test -s conftest.one && test -s conftest.two &&
3664	      test -s conftest.dir/conftest.one &&
3665	      test -s conftest.dir/conftest.two
3666	    then
3667	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3668	      break 3
3669	    fi
3670	  fi
3671	fi
3672      done
3673    done
3674    ;;
3675esac
3676
3677  done
3678IFS=$as_save_IFS
3679
3680rm -rf conftest.one conftest.two conftest.dir
3681
3682fi
3683  if test "${ac_cv_path_install+set}" = set; then
3684    INSTALL=$ac_cv_path_install
3685  else
3686    # As a last resort, use the slow shell script.  Don't cache a
3687    # value for INSTALL within a source directory, because that will
3688    # break other packages using the cache if that directory is
3689    # removed, or if the value is a relative name.
3690    INSTALL=$ac_install_sh
3691  fi
3692fi
3693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3694$as_echo "$INSTALL" >&6; }
3695
3696# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3697# It thinks the first close brace ends the variable substitution.
3698test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3699
3700test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3701
3702test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3703
3704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3705$as_echo_n "checking whether build environment is sane... " >&6; }
3706# Reject unsafe characters in $srcdir or the absolute working directory
3707# name.  Accept space and tab only in the latter.
3708am_lf='
3709'
3710case `pwd` in
3711  *[\\\"\#\$\&\'\`$am_lf]*)
3712    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3713esac
3714case $srcdir in
3715  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3716    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3717esac
3718
3719# Do 'set' in a subshell so we don't clobber the current shell's
3720# arguments.  Must try -L first in case configure is actually a
3721# symlink; some systems play weird games with the mod time of symlinks
3722# (eg FreeBSD returns the mod time of the symlink's containing
3723# directory).
3724if (
3725   am_has_slept=no
3726   for am_try in 1 2; do
3727     echo "timestamp, slept: $am_has_slept" > conftest.file
3728     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3729     if test "$*" = "X"; then
3730	# -L didn't work.
3731	set X `ls -t "$srcdir/configure" conftest.file`
3732     fi
3733     if test "$*" != "X $srcdir/configure conftest.file" \
3734	&& test "$*" != "X conftest.file $srcdir/configure"; then
3735
3736	# If neither matched, then we have a broken ls.  This can happen
3737	# if, for instance, CONFIG_SHELL is bash and it inherits a
3738	# broken ls alias from the environment.  This has actually
3739	# happened.  Such a system could not be considered "sane".
3740	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3741  alias in your environment" "$LINENO" 5
3742     fi
3743     if test "$2" = conftest.file || test $am_try -eq 2; then
3744       break
3745     fi
3746     # Just in case.
3747     sleep 1
3748     am_has_slept=yes
3749   done
3750   test "$2" = conftest.file
3751   )
3752then
3753   # Ok.
3754   :
3755else
3756   as_fn_error $? "newly created file is older than distributed files!
3757Check your system clock" "$LINENO" 5
3758fi
3759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3760$as_echo "yes" >&6; }
3761# If we didn't sleep, we still need to ensure time stamps of config.status and
3762# generated files are strictly newer.
3763am_sleep_pid=
3764if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3765  ( sleep 1 ) &
3766  am_sleep_pid=$!
3767fi
3768
3769rm -f conftest.file
3770
3771test "$program_prefix" != NONE &&
3772  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3773# Use a double $ so make ignores it.
3774test "$program_suffix" != NONE &&
3775  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3776# Double any \ or $.
3777# By default was `s,x,x', remove it if useless.
3778ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3779program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3780
3781if test x"${MISSING+set}" != xset; then
3782  case $am_aux_dir in
3783  *\ * | *\	*)
3784    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3785  *)
3786    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3787  esac
3788fi
3789# Use eval to expand $SHELL
3790if eval "$MISSING --is-lightweight"; then
3791  am_missing_run="$MISSING "
3792else
3793  am_missing_run=
3794  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3795$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3796fi
3797
3798if test x"${install_sh+set}" != xset; then
3799  case $am_aux_dir in
3800  *\ * | *\	*)
3801    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3802  *)
3803    install_sh="\${SHELL} $am_aux_dir/install-sh"
3804  esac
3805fi
3806
3807# Installed binaries are usually stripped using 'strip' when the user
3808# run "make install-strip".  However 'strip' might not be the right
3809# tool to use in cross-compilation environments, therefore Automake
3810# will honor the 'STRIP' environment variable to overrule this program.
3811if test "$cross_compiling" != no; then
3812  if test -n "$ac_tool_prefix"; then
3813  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3814set dummy ${ac_tool_prefix}strip; ac_word=$2
3815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3816$as_echo_n "checking for $ac_word... " >&6; }
3817if ${ac_cv_prog_STRIP+:} false; then :
3818  $as_echo_n "(cached) " >&6
3819else
3820  if test -n "$STRIP"; then
3821  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3822else
3823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824for as_dir in $PATH
3825do
3826  IFS=$as_save_IFS
3827  test -z "$as_dir" && as_dir=.
3828    for ac_exec_ext in '' $ac_executable_extensions; do
3829  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3830    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3831    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3832    break 2
3833  fi
3834done
3835  done
3836IFS=$as_save_IFS
3837
3838fi
3839fi
3840STRIP=$ac_cv_prog_STRIP
3841if test -n "$STRIP"; then
3842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3843$as_echo "$STRIP" >&6; }
3844else
3845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3846$as_echo "no" >&6; }
3847fi
3848
3849
3850fi
3851if test -z "$ac_cv_prog_STRIP"; then
3852  ac_ct_STRIP=$STRIP
3853  # Extract the first word of "strip", so it can be a program name with args.
3854set dummy strip; ac_word=$2
3855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3856$as_echo_n "checking for $ac_word... " >&6; }
3857if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3858  $as_echo_n "(cached) " >&6
3859else
3860  if test -n "$ac_ct_STRIP"; then
3861  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3862else
3863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864for as_dir in $PATH
3865do
3866  IFS=$as_save_IFS
3867  test -z "$as_dir" && as_dir=.
3868    for ac_exec_ext in '' $ac_executable_extensions; do
3869  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3870    ac_cv_prog_ac_ct_STRIP="strip"
3871    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3872    break 2
3873  fi
3874done
3875  done
3876IFS=$as_save_IFS
3877
3878fi
3879fi
3880ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3881if test -n "$ac_ct_STRIP"; then
3882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3883$as_echo "$ac_ct_STRIP" >&6; }
3884else
3885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886$as_echo "no" >&6; }
3887fi
3888
3889  if test "x$ac_ct_STRIP" = x; then
3890    STRIP=":"
3891  else
3892    case $cross_compiling:$ac_tool_warned in
3893yes:)
3894{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3895$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3896ac_tool_warned=yes ;;
3897esac
3898    STRIP=$ac_ct_STRIP
3899  fi
3900else
3901  STRIP="$ac_cv_prog_STRIP"
3902fi
3903
3904fi
3905INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3906
3907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3908$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3909if test -z "$MKDIR_P"; then
3910  if ${ac_cv_path_mkdir+:} false; then :
3911  $as_echo_n "(cached) " >&6
3912else
3913  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3915do
3916  IFS=$as_save_IFS
3917  test -z "$as_dir" && as_dir=.
3918    for ac_prog in mkdir gmkdir; do
3919	 for ac_exec_ext in '' $ac_executable_extensions; do
3920	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3921	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3922	     'mkdir (GNU coreutils) '* | \
3923	     'mkdir (coreutils) '* | \
3924	     'mkdir (fileutils) '4.1*)
3925	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3926	       break 3;;
3927	   esac
3928	 done
3929       done
3930  done
3931IFS=$as_save_IFS
3932
3933fi
3934
3935  test -d ./--version && rmdir ./--version
3936  if test "${ac_cv_path_mkdir+set}" = set; then
3937    MKDIR_P="$ac_cv_path_mkdir -p"
3938  else
3939    # As a last resort, use the slow shell script.  Don't cache a
3940    # value for MKDIR_P within a source directory, because that will
3941    # break other packages using the cache if that directory is
3942    # removed, or if the value is a relative name.
3943    MKDIR_P="$ac_install_sh -d"
3944  fi
3945fi
3946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3947$as_echo "$MKDIR_P" >&6; }
3948
3949for ac_prog in gawk mawk nawk awk
3950do
3951  # Extract the first word of "$ac_prog", so it can be a program name with args.
3952set dummy $ac_prog; ac_word=$2
3953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3954$as_echo_n "checking for $ac_word... " >&6; }
3955if ${ac_cv_prog_AWK+:} false; then :
3956  $as_echo_n "(cached) " >&6
3957else
3958  if test -n "$AWK"; then
3959  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3960else
3961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962for as_dir in $PATH
3963do
3964  IFS=$as_save_IFS
3965  test -z "$as_dir" && as_dir=.
3966    for ac_exec_ext in '' $ac_executable_extensions; do
3967  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3968    ac_cv_prog_AWK="$ac_prog"
3969    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3970    break 2
3971  fi
3972done
3973  done
3974IFS=$as_save_IFS
3975
3976fi
3977fi
3978AWK=$ac_cv_prog_AWK
3979if test -n "$AWK"; then
3980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3981$as_echo "$AWK" >&6; }
3982else
3983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3984$as_echo "no" >&6; }
3985fi
3986
3987
3988  test -n "$AWK" && break
3989done
3990
3991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3992$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3993set x ${MAKE-make}
3994ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3995if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3996  $as_echo_n "(cached) " >&6
3997else
3998  cat >conftest.make <<\_ACEOF
3999SHELL = /bin/sh
4000all:
4001	@echo '@@@%%%=$(MAKE)=@@@%%%'
4002_ACEOF
4003# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4004case `${MAKE-make} -f conftest.make 2>/dev/null` in
4005  *@@@%%%=?*=@@@%%%*)
4006    eval ac_cv_prog_make_${ac_make}_set=yes;;
4007  *)
4008    eval ac_cv_prog_make_${ac_make}_set=no;;
4009esac
4010rm -f conftest.make
4011fi
4012if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4014$as_echo "yes" >&6; }
4015  SET_MAKE=
4016else
4017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4018$as_echo "no" >&6; }
4019  SET_MAKE="MAKE=${MAKE-make}"
4020fi
4021
4022rm -rf .tst 2>/dev/null
4023mkdir .tst 2>/dev/null
4024if test -d .tst; then
4025  am__leading_dot=.
4026else
4027  am__leading_dot=_
4028fi
4029rmdir .tst 2>/dev/null
4030
4031DEPDIR="${am__leading_dot}deps"
4032
4033ac_config_commands="$ac_config_commands depfiles"
4034
4035
4036am_make=${MAKE-make}
4037cat > confinc << 'END'
4038am__doit:
4039	@echo this is the am__doit target
4040.PHONY: am__doit
4041END
4042# If we don't find an include directive, just comment out the code.
4043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4044$as_echo_n "checking for style of include used by $am_make... " >&6; }
4045am__include="#"
4046am__quote=
4047_am_result=none
4048# First try GNU make style include.
4049echo "include confinc" > confmf
4050# Ignore all kinds of additional output from 'make'.
4051case `$am_make -s -f confmf 2> /dev/null` in #(
4052*the\ am__doit\ target*)
4053  am__include=include
4054  am__quote=
4055  _am_result=GNU
4056  ;;
4057esac
4058# Now try BSD make style include.
4059if test "$am__include" = "#"; then
4060   echo '.include "confinc"' > confmf
4061   case `$am_make -s -f confmf 2> /dev/null` in #(
4062   *the\ am__doit\ target*)
4063     am__include=.include
4064     am__quote="\""
4065     _am_result=BSD
4066     ;;
4067   esac
4068fi
4069
4070
4071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4072$as_echo "$_am_result" >&6; }
4073rm -f confinc confmf
4074
4075# Check whether --enable-dependency-tracking was given.
4076if test "${enable_dependency_tracking+set}" = set; then :
4077  enableval=$enable_dependency_tracking;
4078fi
4079
4080if test "x$enable_dependency_tracking" != xno; then
4081  am_depcomp="$ac_aux_dir/depcomp"
4082  AMDEPBACKSLASH='\'
4083  am__nodep='_no'
4084fi
4085 if test "x$enable_dependency_tracking" != xno; then
4086  AMDEP_TRUE=
4087  AMDEP_FALSE='#'
4088else
4089  AMDEP_TRUE='#'
4090  AMDEP_FALSE=
4091fi
4092
4093
4094# Check whether --enable-silent-rules was given.
4095if test "${enable_silent_rules+set}" = set; then :
4096  enableval=$enable_silent_rules;
4097fi
4098
4099case $enable_silent_rules in # (((
4100  yes) AM_DEFAULT_VERBOSITY=0;;
4101   no) AM_DEFAULT_VERBOSITY=1;;
4102    *) AM_DEFAULT_VERBOSITY=1;;
4103esac
4104am_make=${MAKE-make}
4105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4106$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4107if ${am_cv_make_support_nested_variables+:} false; then :
4108  $as_echo_n "(cached) " >&6
4109else
4110  if $as_echo 'TRUE=$(BAR$(V))
4111BAR0=false
4112BAR1=true
4113V=1
4114am__doit:
4115	@$(TRUE)
4116.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4117  am_cv_make_support_nested_variables=yes
4118else
4119  am_cv_make_support_nested_variables=no
4120fi
4121fi
4122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4123$as_echo "$am_cv_make_support_nested_variables" >&6; }
4124if test $am_cv_make_support_nested_variables = yes; then
4125    AM_V='$(V)'
4126  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4127else
4128  AM_V=$AM_DEFAULT_VERBOSITY
4129  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4130fi
4131AM_BACKSLASH='\'
4132
4133if test "`cd $srcdir && pwd`" != "`pwd`"; then
4134  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4135  # is not polluted with repeated "-I."
4136  am__isrc=' -I$(srcdir)'
4137  # test to see if srcdir already configured
4138  if test -f $srcdir/config.status; then
4139    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4140  fi
4141fi
4142
4143# test whether we have cygpath
4144if test -z "$CYGPATH_W"; then
4145  if (cygpath --version) >/dev/null 2>/dev/null; then
4146    CYGPATH_W='cygpath -w'
4147  else
4148    CYGPATH_W=echo
4149  fi
4150fi
4151
4152
4153# Define the identity of the package.
4154 PACKAGE='xmodmap'
4155 VERSION='1.0.10'
4156
4157
4158cat >>confdefs.h <<_ACEOF
4159#define PACKAGE "$PACKAGE"
4160_ACEOF
4161
4162
4163cat >>confdefs.h <<_ACEOF
4164#define VERSION "$VERSION"
4165_ACEOF
4166
4167# Some tools Automake needs.
4168
4169ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4170
4171
4172AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4173
4174
4175AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4176
4177
4178AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4179
4180
4181MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4182
4183# For better backward compatibility.  To be removed once Automake 1.9.x
4184# dies out for good.  For more background, see:
4185# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4186# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4187mkdir_p='$(MKDIR_P)'
4188
4189# We need awk for the "check" target (and possibly the TAP driver).  The
4190# system "awk" is bad on some platforms.
4191# Always define AMTAR for backward compatibility.  Yes, it's still used
4192# in the wild :-(  We should find a proper way to deprecate it ...
4193AMTAR='$${TAR-tar}'
4194
4195
4196# We'll loop over all known methods to create a tar archive until one works.
4197_am_tools='gnutar  pax cpio none'
4198
4199am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4200
4201
4202
4203
4204
4205depcc="$CC"   am_compiler_list=
4206
4207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4208$as_echo_n "checking dependency style of $depcc... " >&6; }
4209if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4210  $as_echo_n "(cached) " >&6
4211else
4212  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4213  # We make a subdir and do the tests there.  Otherwise we can end up
4214  # making bogus files that we don't know about and never remove.  For
4215  # instance it was reported that on HP-UX the gcc test will end up
4216  # making a dummy file named 'D' -- because '-MD' means "put the output
4217  # in D".
4218  rm -rf conftest.dir
4219  mkdir conftest.dir
4220  # Copy depcomp to subdir because otherwise we won't find it if we're
4221  # using a relative directory.
4222  cp "$am_depcomp" conftest.dir
4223  cd conftest.dir
4224  # We will build objects and dependencies in a subdirectory because
4225  # it helps to detect inapplicable dependency modes.  For instance
4226  # both Tru64's cc and ICC support -MD to output dependencies as a
4227  # side effect of compilation, but ICC will put the dependencies in
4228  # the current directory while Tru64 will put them in the object
4229  # directory.
4230  mkdir sub
4231
4232  am_cv_CC_dependencies_compiler_type=none
4233  if test "$am_compiler_list" = ""; then
4234     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4235  fi
4236  am__universal=false
4237  case " $depcc " in #(
4238     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4239     esac
4240
4241  for depmode in $am_compiler_list; do
4242    # Setup a source with many dependencies, because some compilers
4243    # like to wrap large dependency lists on column 80 (with \), and
4244    # we should not choose a depcomp mode which is confused by this.
4245    #
4246    # We need to recreate these files for each test, as the compiler may
4247    # overwrite some of them when testing with obscure command lines.
4248    # This happens at least with the AIX C compiler.
4249    : > sub/conftest.c
4250    for i in 1 2 3 4 5 6; do
4251      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4252      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4253      # Solaris 10 /bin/sh.
4254      echo '/* dummy */' > sub/conftst$i.h
4255    done
4256    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4257
4258    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4259    # mode.  It turns out that the SunPro C++ compiler does not properly
4260    # handle '-M -o', and we need to detect this.  Also, some Intel
4261    # versions had trouble with output in subdirs.
4262    am__obj=sub/conftest.${OBJEXT-o}
4263    am__minus_obj="-o $am__obj"
4264    case $depmode in
4265    gcc)
4266      # This depmode causes a compiler race in universal mode.
4267      test "$am__universal" = false || continue
4268      ;;
4269    nosideeffect)
4270      # After this tag, mechanisms are not by side-effect, so they'll
4271      # only be used when explicitly requested.
4272      if test "x$enable_dependency_tracking" = xyes; then
4273	continue
4274      else
4275	break
4276      fi
4277      ;;
4278    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4279      # This compiler won't grok '-c -o', but also, the minuso test has
4280      # not run yet.  These depmodes are late enough in the game, and
4281      # so weak that their functioning should not be impacted.
4282      am__obj=conftest.${OBJEXT-o}
4283      am__minus_obj=
4284      ;;
4285    none) break ;;
4286    esac
4287    if depmode=$depmode \
4288       source=sub/conftest.c object=$am__obj \
4289       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4290       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4291         >/dev/null 2>conftest.err &&
4292       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4293       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4294       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4295       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4296      # icc doesn't choke on unknown options, it will just issue warnings
4297      # or remarks (even with -Werror).  So we grep stderr for any message
4298      # that says an option was ignored or not supported.
4299      # When given -MP, icc 7.0 and 7.1 complain thusly:
4300      #   icc: Command line warning: ignoring option '-M'; no argument required
4301      # The diagnosis changed in icc 8.0:
4302      #   icc: Command line remark: option '-MP' not supported
4303      if (grep 'ignoring option' conftest.err ||
4304          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4305        am_cv_CC_dependencies_compiler_type=$depmode
4306        break
4307      fi
4308    fi
4309  done
4310
4311  cd ..
4312  rm -rf conftest.dir
4313else
4314  am_cv_CC_dependencies_compiler_type=none
4315fi
4316
4317fi
4318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4319$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4320CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4321
4322 if
4323  test "x$enable_dependency_tracking" != xno \
4324  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4325  am__fastdepCC_TRUE=
4326  am__fastdepCC_FALSE='#'
4327else
4328  am__fastdepCC_TRUE='#'
4329  am__fastdepCC_FALSE=
4330fi
4331
4332
4333
4334# POSIX will say in a future version that running "rm -f" with no argument
4335# is OK; and we want to be able to make that assumption in our Makefile
4336# recipes.  So use an aggressive probe to check that the usage we want is
4337# actually supported "in the wild" to an acceptable degree.
4338# See automake bug#10828.
4339# To make any issue more visible, cause the running configure to be aborted
4340# by default if the 'rm' program in use doesn't match our expectations; the
4341# user can still override this though.
4342if rm -f && rm -fr && rm -rf; then : OK; else
4343  cat >&2 <<'END'
4344Oops!
4345
4346Your 'rm' program seems unable to run without file operands specified
4347on the command line, even when the '-f' option is present.  This is contrary
4348to the behaviour of most rm programs out there, and not conforming with
4349the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4350
4351Please tell bug-automake@gnu.org about your system, including the value
4352of your $PATH and any error possibly output before this message.  This
4353can help us improve future automake versions.
4354
4355END
4356  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4357    echo 'Configuration will proceed anyway, since you have set the' >&2
4358    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4359    echo >&2
4360  else
4361    cat >&2 <<'END'
4362Aborting the configuration process, to ensure you take notice of the issue.
4363
4364You can download and install GNU coreutils to get an 'rm' implementation
4365that behaves properly: <http://www.gnu.org/software/coreutils/>.
4366
4367If you want to complete the configuration process using your problematic
4368'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4369to "yes", and re-run configure.
4370
4371END
4372    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4373  fi
4374fi
4375
4376
4377# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4390$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4391if ${ac_cv_prog_cc_c99+:} false; then :
4392  $as_echo_n "(cached) " >&6
4393else
4394  ac_cv_prog_cc_c99=no
4395ac_save_CC=$CC
4396cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397/* end confdefs.h.  */
4398#include <stdarg.h>
4399#include <stdbool.h>
4400#include <stdlib.h>
4401#include <wchar.h>
4402#include <stdio.h>
4403
4404// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4405#define debug(...) fprintf (stderr, __VA_ARGS__)
4406#define showlist(...) puts (#__VA_ARGS__)
4407#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4408static void
4409test_varargs_macros (void)
4410{
4411  int x = 1234;
4412  int y = 5678;
4413  debug ("Flag");
4414  debug ("X = %d\n", x);
4415  showlist (The first, second, and third items.);
4416  report (x>y, "x is %d but y is %d", x, y);
4417}
4418
4419// Check long long types.
4420#define BIG64 18446744073709551615ull
4421#define BIG32 4294967295ul
4422#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4423#if !BIG_OK
4424  your preprocessor is broken;
4425#endif
4426#if BIG_OK
4427#else
4428  your preprocessor is broken;
4429#endif
4430static long long int bignum = -9223372036854775807LL;
4431static unsigned long long int ubignum = BIG64;
4432
4433struct incomplete_array
4434{
4435  int datasize;
4436  double data[];
4437};
4438
4439struct named_init {
4440  int number;
4441  const wchar_t *name;
4442  double average;
4443};
4444
4445typedef const char *ccp;
4446
4447static inline int
4448test_restrict (ccp restrict text)
4449{
4450  // See if C++-style comments work.
4451  // Iterate through items via the restricted pointer.
4452  // Also check for declarations in for loops.
4453  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4454    continue;
4455  return 0;
4456}
4457
4458// Check varargs and va_copy.
4459static void
4460test_varargs (const char *format, ...)
4461{
4462  va_list args;
4463  va_start (args, format);
4464  va_list args_copy;
4465  va_copy (args_copy, args);
4466
4467  const char *str;
4468  int number;
4469  float fnumber;
4470
4471  while (*format)
4472    {
4473      switch (*format++)
4474	{
4475	case 's': // string
4476	  str = va_arg (args_copy, const char *);
4477	  break;
4478	case 'd': // int
4479	  number = va_arg (args_copy, int);
4480	  break;
4481	case 'f': // float
4482	  fnumber = va_arg (args_copy, double);
4483	  break;
4484	default:
4485	  break;
4486	}
4487    }
4488  va_end (args_copy);
4489  va_end (args);
4490}
4491
4492int
4493main ()
4494{
4495
4496  // Check bool.
4497  _Bool success = false;
4498
4499  // Check restrict.
4500  if (test_restrict ("String literal") == 0)
4501    success = true;
4502  char *restrict newvar = "Another string";
4503
4504  // Check varargs.
4505  test_varargs ("s, d' f .", "string", 65, 34.234);
4506  test_varargs_macros ();
4507
4508  // Check flexible array members.
4509  struct incomplete_array *ia =
4510    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4511  ia->datasize = 10;
4512  for (int i = 0; i < ia->datasize; ++i)
4513    ia->data[i] = i * 1.234;
4514
4515  // Check named initializers.
4516  struct named_init ni = {
4517    .number = 34,
4518    .name = L"Test wide string",
4519    .average = 543.34343,
4520  };
4521
4522  ni.number = 58;
4523
4524  int dynamic_array[ni.number];
4525  dynamic_array[ni.number - 1] = 543;
4526
4527  // work around unused variable warnings
4528  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4529	  || dynamic_array[ni.number - 1] != 543);
4530
4531  ;
4532  return 0;
4533}
4534_ACEOF
4535for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4536do
4537  CC="$ac_save_CC $ac_arg"
4538  if ac_fn_c_try_compile "$LINENO"; then :
4539  ac_cv_prog_cc_c99=$ac_arg
4540fi
4541rm -f core conftest.err conftest.$ac_objext
4542  test "x$ac_cv_prog_cc_c99" != "xno" && break
4543done
4544rm -f conftest.$ac_ext
4545CC=$ac_save_CC
4546
4547fi
4548# AC_CACHE_VAL
4549case "x$ac_cv_prog_cc_c99" in
4550  x)
4551    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4552$as_echo "none needed" >&6; } ;;
4553  xno)
4554    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4555$as_echo "unsupported" >&6; } ;;
4556  *)
4557    CC="$CC $ac_cv_prog_cc_c99"
4558    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4559$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4560esac
4561if test "x$ac_cv_prog_cc_c99" != xno; then :
4562
4563fi
4564
4565
4566
4567
4568
4569
4570ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4571if test "x$ac_cv_have_decl___clang__" = xyes; then :
4572  CLANGCC="yes"
4573else
4574  CLANGCC="no"
4575fi
4576
4577ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4578if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4579  INTELCC="yes"
4580else
4581  INTELCC="no"
4582fi
4583
4584ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4585if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4586  SUNCC="yes"
4587else
4588  SUNCC="no"
4589fi
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4600	if test -n "$ac_tool_prefix"; then
4601  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4602set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4604$as_echo_n "checking for $ac_word... " >&6; }
4605if ${ac_cv_path_PKG_CONFIG+:} false; then :
4606  $as_echo_n "(cached) " >&6
4607else
4608  case $PKG_CONFIG in
4609  [\\/]* | ?:[\\/]*)
4610  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4611  ;;
4612  *)
4613  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614for as_dir in $PATH
4615do
4616  IFS=$as_save_IFS
4617  test -z "$as_dir" && as_dir=.
4618    for ac_exec_ext in '' $ac_executable_extensions; do
4619  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4620    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4621    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4622    break 2
4623  fi
4624done
4625  done
4626IFS=$as_save_IFS
4627
4628  ;;
4629esac
4630fi
4631PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4632if test -n "$PKG_CONFIG"; then
4633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4634$as_echo "$PKG_CONFIG" >&6; }
4635else
4636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4637$as_echo "no" >&6; }
4638fi
4639
4640
4641fi
4642if test -z "$ac_cv_path_PKG_CONFIG"; then
4643  ac_pt_PKG_CONFIG=$PKG_CONFIG
4644  # Extract the first word of "pkg-config", so it can be a program name with args.
4645set dummy pkg-config; ac_word=$2
4646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4647$as_echo_n "checking for $ac_word... " >&6; }
4648if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4649  $as_echo_n "(cached) " >&6
4650else
4651  case $ac_pt_PKG_CONFIG in
4652  [\\/]* | ?:[\\/]*)
4653  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4654  ;;
4655  *)
4656  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657for as_dir in $PATH
4658do
4659  IFS=$as_save_IFS
4660  test -z "$as_dir" && as_dir=.
4661    for ac_exec_ext in '' $ac_executable_extensions; do
4662  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4663    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4664    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4665    break 2
4666  fi
4667done
4668  done
4669IFS=$as_save_IFS
4670
4671  ;;
4672esac
4673fi
4674ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4675if test -n "$ac_pt_PKG_CONFIG"; then
4676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4677$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4678else
4679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680$as_echo "no" >&6; }
4681fi
4682
4683  if test "x$ac_pt_PKG_CONFIG" = x; then
4684    PKG_CONFIG=""
4685  else
4686    case $cross_compiling:$ac_tool_warned in
4687yes:)
4688{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4689$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4690ac_tool_warned=yes ;;
4691esac
4692    PKG_CONFIG=$ac_pt_PKG_CONFIG
4693  fi
4694else
4695  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4696fi
4697
4698fi
4699if test -n "$PKG_CONFIG"; then
4700	_pkg_min_version=0.9.0
4701	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4702$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4703	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4704		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4705$as_echo "yes" >&6; }
4706	else
4707		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4708$as_echo "no" >&6; }
4709		PKG_CONFIG=""
4710	fi
4711fi
4712# Make sure we can run config.sub.
4713$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4714  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4715
4716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4717$as_echo_n "checking build system type... " >&6; }
4718if ${ac_cv_build+:} false; then :
4719  $as_echo_n "(cached) " >&6
4720else
4721  ac_build_alias=$build_alias
4722test "x$ac_build_alias" = x &&
4723  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4724test "x$ac_build_alias" = x &&
4725  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4726ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4727  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4728
4729fi
4730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4731$as_echo "$ac_cv_build" >&6; }
4732case $ac_cv_build in
4733*-*-*) ;;
4734*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4735esac
4736build=$ac_cv_build
4737ac_save_IFS=$IFS; IFS='-'
4738set x $ac_cv_build
4739shift
4740build_cpu=$1
4741build_vendor=$2
4742shift; shift
4743# Remember, the first character of IFS is used to create $*,
4744# except with old shells:
4745build_os=$*
4746IFS=$ac_save_IFS
4747case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4748
4749
4750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4751$as_echo_n "checking host system type... " >&6; }
4752if ${ac_cv_host+:} false; then :
4753  $as_echo_n "(cached) " >&6
4754else
4755  if test "x$host_alias" = x; then
4756  ac_cv_host=$ac_cv_build
4757else
4758  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4759    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4760fi
4761
4762fi
4763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4764$as_echo "$ac_cv_host" >&6; }
4765case $ac_cv_host in
4766*-*-*) ;;
4767*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4768esac
4769host=$ac_cv_host
4770ac_save_IFS=$IFS; IFS='-'
4771set x $ac_cv_host
4772shift
4773host_cpu=$1
4774host_vendor=$2
4775shift; shift
4776# Remember, the first character of IFS is used to create $*,
4777# except with old shells:
4778host_os=$*
4779IFS=$ac_save_IFS
4780case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4781
4782
4783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4784$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4785if ${ac_cv_path_SED+:} false; then :
4786  $as_echo_n "(cached) " >&6
4787else
4788            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4789     for ac_i in 1 2 3 4 5 6 7; do
4790       ac_script="$ac_script$as_nl$ac_script"
4791     done
4792     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4793     { ac_script=; unset ac_script;}
4794     if test -z "$SED"; then
4795  ac_path_SED_found=false
4796  # Loop through the user's path and test for each of PROGNAME-LIST
4797  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798for as_dir in $PATH
4799do
4800  IFS=$as_save_IFS
4801  test -z "$as_dir" && as_dir=.
4802    for ac_prog in sed gsed; do
4803    for ac_exec_ext in '' $ac_executable_extensions; do
4804      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4805      as_fn_executable_p "$ac_path_SED" || continue
4806# Check for GNU ac_path_SED and select it if it is found.
4807  # Check for GNU $ac_path_SED
4808case `"$ac_path_SED" --version 2>&1` in
4809*GNU*)
4810  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4811*)
4812  ac_count=0
4813  $as_echo_n 0123456789 >"conftest.in"
4814  while :
4815  do
4816    cat "conftest.in" "conftest.in" >"conftest.tmp"
4817    mv "conftest.tmp" "conftest.in"
4818    cp "conftest.in" "conftest.nl"
4819    $as_echo '' >> "conftest.nl"
4820    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4821    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4822    as_fn_arith $ac_count + 1 && ac_count=$as_val
4823    if test $ac_count -gt ${ac_path_SED_max-0}; then
4824      # Best one so far, save it but keep looking for a better one
4825      ac_cv_path_SED="$ac_path_SED"
4826      ac_path_SED_max=$ac_count
4827    fi
4828    # 10*(2^10) chars as input seems more than enough
4829    test $ac_count -gt 10 && break
4830  done
4831  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4832esac
4833
4834      $ac_path_SED_found && break 3
4835    done
4836  done
4837  done
4838IFS=$as_save_IFS
4839  if test -z "$ac_cv_path_SED"; then
4840    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4841  fi
4842else
4843  ac_cv_path_SED=$SED
4844fi
4845
4846fi
4847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4848$as_echo "$ac_cv_path_SED" >&6; }
4849 SED="$ac_cv_path_SED"
4850  rm -f conftest.sed
4851
4852
4853
4854
4855
4856
4857# Check whether --enable-selective-werror was given.
4858if test "${enable_selective_werror+set}" = set; then :
4859  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4860else
4861  SELECTIVE_WERROR=yes
4862fi
4863
4864
4865
4866
4867
4868# -v is too short to test reliably with XORG_TESTSET_CFLAG
4869if test "x$SUNCC" = "xyes"; then
4870    BASE_CFLAGS="-v"
4871else
4872    BASE_CFLAGS=""
4873fi
4874
4875# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889xorg_testset_save_CFLAGS="$CFLAGS"
4890
4891if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4892	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4893	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4894$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4895if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4896  $as_echo_n "(cached) " >&6
4897else
4898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4899/* end confdefs.h.  */
4900int i;
4901_ACEOF
4902if ac_fn_c_try_compile "$LINENO"; then :
4903  xorg_cv_cc_flag_unknown_warning_option=yes
4904else
4905  xorg_cv_cc_flag_unknown_warning_option=no
4906fi
4907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4908fi
4909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4910$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4911	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4912	CFLAGS="$xorg_testset_save_CFLAGS"
4913fi
4914
4915if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4916	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4917		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4918	fi
4919	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4920	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4921$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4922if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4923  $as_echo_n "(cached) " >&6
4924else
4925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4926/* end confdefs.h.  */
4927int i;
4928_ACEOF
4929if ac_fn_c_try_compile "$LINENO"; then :
4930  xorg_cv_cc_flag_unused_command_line_argument=yes
4931else
4932  xorg_cv_cc_flag_unused_command_line_argument=no
4933fi
4934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4935fi
4936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4937$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4938	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4939	CFLAGS="$xorg_testset_save_CFLAGS"
4940fi
4941
4942found="no"
4943
4944	if test $found = "no" ; then
4945		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4946			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4947		fi
4948
4949		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4950			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4951		fi
4952
4953		CFLAGS="$CFLAGS -Wall"
4954
4955		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4956$as_echo_n "checking if $CC supports -Wall... " >&6; }
4957		cacheid=xorg_cv_cc_flag__Wall
4958		if eval \${$cacheid+:} false; then :
4959  $as_echo_n "(cached) " >&6
4960else
4961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4962/* end confdefs.h.  */
4963int i;
4964int
4965main ()
4966{
4967
4968  ;
4969  return 0;
4970}
4971_ACEOF
4972if ac_fn_c_try_link "$LINENO"; then :
4973  eval $cacheid=yes
4974else
4975  eval $cacheid=no
4976fi
4977rm -f core conftest.err conftest.$ac_objext \
4978    conftest$ac_exeext conftest.$ac_ext
4979fi
4980
4981
4982		CFLAGS="$xorg_testset_save_CFLAGS"
4983
4984		eval supported=\$$cacheid
4985		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4986$as_echo "$supported" >&6; }
4987		if test "$supported" = "yes" ; then
4988			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4989			found="yes"
4990		fi
4991	fi
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007xorg_testset_save_CFLAGS="$CFLAGS"
5008
5009if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5010	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5011	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5012$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5013if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5014  $as_echo_n "(cached) " >&6
5015else
5016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5017/* end confdefs.h.  */
5018int i;
5019_ACEOF
5020if ac_fn_c_try_compile "$LINENO"; then :
5021  xorg_cv_cc_flag_unknown_warning_option=yes
5022else
5023  xorg_cv_cc_flag_unknown_warning_option=no
5024fi
5025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5026fi
5027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5028$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5029	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5030	CFLAGS="$xorg_testset_save_CFLAGS"
5031fi
5032
5033if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5034	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5035		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5036	fi
5037	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5038	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5039$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5040if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5041  $as_echo_n "(cached) " >&6
5042else
5043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044/* end confdefs.h.  */
5045int i;
5046_ACEOF
5047if ac_fn_c_try_compile "$LINENO"; then :
5048  xorg_cv_cc_flag_unused_command_line_argument=yes
5049else
5050  xorg_cv_cc_flag_unused_command_line_argument=no
5051fi
5052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5053fi
5054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5055$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5056	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5057	CFLAGS="$xorg_testset_save_CFLAGS"
5058fi
5059
5060found="no"
5061
5062	if test $found = "no" ; then
5063		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5064			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5065		fi
5066
5067		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5068			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5069		fi
5070
5071		CFLAGS="$CFLAGS -Wpointer-arith"
5072
5073		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5074$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5075		cacheid=xorg_cv_cc_flag__Wpointer_arith
5076		if eval \${$cacheid+:} false; then :
5077  $as_echo_n "(cached) " >&6
5078else
5079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5080/* end confdefs.h.  */
5081int i;
5082int
5083main ()
5084{
5085
5086  ;
5087  return 0;
5088}
5089_ACEOF
5090if ac_fn_c_try_link "$LINENO"; then :
5091  eval $cacheid=yes
5092else
5093  eval $cacheid=no
5094fi
5095rm -f core conftest.err conftest.$ac_objext \
5096    conftest$ac_exeext conftest.$ac_ext
5097fi
5098
5099
5100		CFLAGS="$xorg_testset_save_CFLAGS"
5101
5102		eval supported=\$$cacheid
5103		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5104$as_echo "$supported" >&6; }
5105		if test "$supported" = "yes" ; then
5106			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5107			found="yes"
5108		fi
5109	fi
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125xorg_testset_save_CFLAGS="$CFLAGS"
5126
5127if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5128	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5129	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5130$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5131if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5132  $as_echo_n "(cached) " >&6
5133else
5134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5135/* end confdefs.h.  */
5136int i;
5137_ACEOF
5138if ac_fn_c_try_compile "$LINENO"; then :
5139  xorg_cv_cc_flag_unknown_warning_option=yes
5140else
5141  xorg_cv_cc_flag_unknown_warning_option=no
5142fi
5143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5144fi
5145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5146$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5147	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5148	CFLAGS="$xorg_testset_save_CFLAGS"
5149fi
5150
5151if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5152	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5153		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5154	fi
5155	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5156	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5157$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5158if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5159  $as_echo_n "(cached) " >&6
5160else
5161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162/* end confdefs.h.  */
5163int i;
5164_ACEOF
5165if ac_fn_c_try_compile "$LINENO"; then :
5166  xorg_cv_cc_flag_unused_command_line_argument=yes
5167else
5168  xorg_cv_cc_flag_unused_command_line_argument=no
5169fi
5170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5171fi
5172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5173$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5174	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5175	CFLAGS="$xorg_testset_save_CFLAGS"
5176fi
5177
5178found="no"
5179
5180	if test $found = "no" ; then
5181		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5182			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5183		fi
5184
5185		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5186			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5187		fi
5188
5189		CFLAGS="$CFLAGS -Wmissing-declarations"
5190
5191		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5192$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5193		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5194		if eval \${$cacheid+:} false; then :
5195  $as_echo_n "(cached) " >&6
5196else
5197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198/* end confdefs.h.  */
5199int i;
5200int
5201main ()
5202{
5203
5204  ;
5205  return 0;
5206}
5207_ACEOF
5208if ac_fn_c_try_link "$LINENO"; then :
5209  eval $cacheid=yes
5210else
5211  eval $cacheid=no
5212fi
5213rm -f core conftest.err conftest.$ac_objext \
5214    conftest$ac_exeext conftest.$ac_ext
5215fi
5216
5217
5218		CFLAGS="$xorg_testset_save_CFLAGS"
5219
5220		eval supported=\$$cacheid
5221		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5222$as_echo "$supported" >&6; }
5223		if test "$supported" = "yes" ; then
5224			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5225			found="yes"
5226		fi
5227	fi
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243xorg_testset_save_CFLAGS="$CFLAGS"
5244
5245if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5246	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5247	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5248$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5249if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5250  $as_echo_n "(cached) " >&6
5251else
5252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253/* end confdefs.h.  */
5254int i;
5255_ACEOF
5256if ac_fn_c_try_compile "$LINENO"; then :
5257  xorg_cv_cc_flag_unknown_warning_option=yes
5258else
5259  xorg_cv_cc_flag_unknown_warning_option=no
5260fi
5261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5262fi
5263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5264$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5265	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5266	CFLAGS="$xorg_testset_save_CFLAGS"
5267fi
5268
5269if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5270	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5271		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5272	fi
5273	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5274	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5275$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5276if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5277  $as_echo_n "(cached) " >&6
5278else
5279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5280/* end confdefs.h.  */
5281int i;
5282_ACEOF
5283if ac_fn_c_try_compile "$LINENO"; then :
5284  xorg_cv_cc_flag_unused_command_line_argument=yes
5285else
5286  xorg_cv_cc_flag_unused_command_line_argument=no
5287fi
5288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5289fi
5290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5291$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5292	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5293	CFLAGS="$xorg_testset_save_CFLAGS"
5294fi
5295
5296found="no"
5297
5298	if test $found = "no" ; then
5299		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5300			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5301		fi
5302
5303		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5304			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5305		fi
5306
5307		CFLAGS="$CFLAGS -Wformat=2"
5308
5309		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5310$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5311		cacheid=xorg_cv_cc_flag__Wformat_2
5312		if eval \${$cacheid+:} false; then :
5313  $as_echo_n "(cached) " >&6
5314else
5315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5316/* end confdefs.h.  */
5317int i;
5318int
5319main ()
5320{
5321
5322  ;
5323  return 0;
5324}
5325_ACEOF
5326if ac_fn_c_try_link "$LINENO"; then :
5327  eval $cacheid=yes
5328else
5329  eval $cacheid=no
5330fi
5331rm -f core conftest.err conftest.$ac_objext \
5332    conftest$ac_exeext conftest.$ac_ext
5333fi
5334
5335
5336		CFLAGS="$xorg_testset_save_CFLAGS"
5337
5338		eval supported=\$$cacheid
5339		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5340$as_echo "$supported" >&6; }
5341		if test "$supported" = "yes" ; then
5342			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5343			found="yes"
5344		fi
5345	fi
5346
5347	if test $found = "no" ; then
5348		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5349			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5350		fi
5351
5352		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5353			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5354		fi
5355
5356		CFLAGS="$CFLAGS -Wformat"
5357
5358		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5359$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5360		cacheid=xorg_cv_cc_flag__Wformat
5361		if eval \${$cacheid+:} false; then :
5362  $as_echo_n "(cached) " >&6
5363else
5364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5365/* end confdefs.h.  */
5366int i;
5367int
5368main ()
5369{
5370
5371  ;
5372  return 0;
5373}
5374_ACEOF
5375if ac_fn_c_try_link "$LINENO"; then :
5376  eval $cacheid=yes
5377else
5378  eval $cacheid=no
5379fi
5380rm -f core conftest.err conftest.$ac_objext \
5381    conftest$ac_exeext conftest.$ac_ext
5382fi
5383
5384
5385		CFLAGS="$xorg_testset_save_CFLAGS"
5386
5387		eval supported=\$$cacheid
5388		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5389$as_echo "$supported" >&6; }
5390		if test "$supported" = "yes" ; then
5391			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5392			found="yes"
5393		fi
5394	fi
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412xorg_testset_save_CFLAGS="$CFLAGS"
5413
5414if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5415	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5416	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5417$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5418if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5419  $as_echo_n "(cached) " >&6
5420else
5421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5422/* end confdefs.h.  */
5423int i;
5424_ACEOF
5425if ac_fn_c_try_compile "$LINENO"; then :
5426  xorg_cv_cc_flag_unknown_warning_option=yes
5427else
5428  xorg_cv_cc_flag_unknown_warning_option=no
5429fi
5430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5431fi
5432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5433$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5434	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5435	CFLAGS="$xorg_testset_save_CFLAGS"
5436fi
5437
5438if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5439	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5440		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5441	fi
5442	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5443	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5444$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5445if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5446  $as_echo_n "(cached) " >&6
5447else
5448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449/* end confdefs.h.  */
5450int i;
5451_ACEOF
5452if ac_fn_c_try_compile "$LINENO"; then :
5453  xorg_cv_cc_flag_unused_command_line_argument=yes
5454else
5455  xorg_cv_cc_flag_unused_command_line_argument=no
5456fi
5457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5458fi
5459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5460$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5461	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5462	CFLAGS="$xorg_testset_save_CFLAGS"
5463fi
5464
5465found="no"
5466
5467	if test $found = "no" ; then
5468		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5469			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5470		fi
5471
5472		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5473			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5474		fi
5475
5476		CFLAGS="$CFLAGS -Wstrict-prototypes"
5477
5478		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5479$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5480		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5481		if eval \${$cacheid+:} false; then :
5482  $as_echo_n "(cached) " >&6
5483else
5484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5485/* end confdefs.h.  */
5486int i;
5487int
5488main ()
5489{
5490
5491  ;
5492  return 0;
5493}
5494_ACEOF
5495if ac_fn_c_try_link "$LINENO"; then :
5496  eval $cacheid=yes
5497else
5498  eval $cacheid=no
5499fi
5500rm -f core conftest.err conftest.$ac_objext \
5501    conftest$ac_exeext conftest.$ac_ext
5502fi
5503
5504
5505		CFLAGS="$xorg_testset_save_CFLAGS"
5506
5507		eval supported=\$$cacheid
5508		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5509$as_echo "$supported" >&6; }
5510		if test "$supported" = "yes" ; then
5511			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5512			found="yes"
5513		fi
5514	fi
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530xorg_testset_save_CFLAGS="$CFLAGS"
5531
5532if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5533	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5534	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5535$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5536if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5537  $as_echo_n "(cached) " >&6
5538else
5539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540/* end confdefs.h.  */
5541int i;
5542_ACEOF
5543if ac_fn_c_try_compile "$LINENO"; then :
5544  xorg_cv_cc_flag_unknown_warning_option=yes
5545else
5546  xorg_cv_cc_flag_unknown_warning_option=no
5547fi
5548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5549fi
5550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5551$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5552	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5553	CFLAGS="$xorg_testset_save_CFLAGS"
5554fi
5555
5556if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5557	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5558		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5559	fi
5560	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5561	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5562$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5563if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5564  $as_echo_n "(cached) " >&6
5565else
5566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5567/* end confdefs.h.  */
5568int i;
5569_ACEOF
5570if ac_fn_c_try_compile "$LINENO"; then :
5571  xorg_cv_cc_flag_unused_command_line_argument=yes
5572else
5573  xorg_cv_cc_flag_unused_command_line_argument=no
5574fi
5575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5576fi
5577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5578$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5579	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5580	CFLAGS="$xorg_testset_save_CFLAGS"
5581fi
5582
5583found="no"
5584
5585	if test $found = "no" ; then
5586		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5587			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5588		fi
5589
5590		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5591			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5592		fi
5593
5594		CFLAGS="$CFLAGS -Wmissing-prototypes"
5595
5596		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5597$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5598		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5599		if eval \${$cacheid+:} false; then :
5600  $as_echo_n "(cached) " >&6
5601else
5602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5603/* end confdefs.h.  */
5604int i;
5605int
5606main ()
5607{
5608
5609  ;
5610  return 0;
5611}
5612_ACEOF
5613if ac_fn_c_try_link "$LINENO"; then :
5614  eval $cacheid=yes
5615else
5616  eval $cacheid=no
5617fi
5618rm -f core conftest.err conftest.$ac_objext \
5619    conftest$ac_exeext conftest.$ac_ext
5620fi
5621
5622
5623		CFLAGS="$xorg_testset_save_CFLAGS"
5624
5625		eval supported=\$$cacheid
5626		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5627$as_echo "$supported" >&6; }
5628		if test "$supported" = "yes" ; then
5629			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5630			found="yes"
5631		fi
5632	fi
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648xorg_testset_save_CFLAGS="$CFLAGS"
5649
5650if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5651	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5652	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5653$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5654if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5655  $as_echo_n "(cached) " >&6
5656else
5657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5658/* end confdefs.h.  */
5659int i;
5660_ACEOF
5661if ac_fn_c_try_compile "$LINENO"; then :
5662  xorg_cv_cc_flag_unknown_warning_option=yes
5663else
5664  xorg_cv_cc_flag_unknown_warning_option=no
5665fi
5666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5667fi
5668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5669$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5670	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5671	CFLAGS="$xorg_testset_save_CFLAGS"
5672fi
5673
5674if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5675	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5676		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5677	fi
5678	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5679	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5680$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5681if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5682  $as_echo_n "(cached) " >&6
5683else
5684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5685/* end confdefs.h.  */
5686int i;
5687_ACEOF
5688if ac_fn_c_try_compile "$LINENO"; then :
5689  xorg_cv_cc_flag_unused_command_line_argument=yes
5690else
5691  xorg_cv_cc_flag_unused_command_line_argument=no
5692fi
5693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5694fi
5695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5696$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5697	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5698	CFLAGS="$xorg_testset_save_CFLAGS"
5699fi
5700
5701found="no"
5702
5703	if test $found = "no" ; then
5704		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5705			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5706		fi
5707
5708		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5709			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5710		fi
5711
5712		CFLAGS="$CFLAGS -Wnested-externs"
5713
5714		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5715$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5716		cacheid=xorg_cv_cc_flag__Wnested_externs
5717		if eval \${$cacheid+:} false; then :
5718  $as_echo_n "(cached) " >&6
5719else
5720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721/* end confdefs.h.  */
5722int i;
5723int
5724main ()
5725{
5726
5727  ;
5728  return 0;
5729}
5730_ACEOF
5731if ac_fn_c_try_link "$LINENO"; then :
5732  eval $cacheid=yes
5733else
5734  eval $cacheid=no
5735fi
5736rm -f core conftest.err conftest.$ac_objext \
5737    conftest$ac_exeext conftest.$ac_ext
5738fi
5739
5740
5741		CFLAGS="$xorg_testset_save_CFLAGS"
5742
5743		eval supported=\$$cacheid
5744		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5745$as_echo "$supported" >&6; }
5746		if test "$supported" = "yes" ; then
5747			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5748			found="yes"
5749		fi
5750	fi
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766xorg_testset_save_CFLAGS="$CFLAGS"
5767
5768if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5769	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5770	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5771$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5772if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5773  $as_echo_n "(cached) " >&6
5774else
5775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5776/* end confdefs.h.  */
5777int i;
5778_ACEOF
5779if ac_fn_c_try_compile "$LINENO"; then :
5780  xorg_cv_cc_flag_unknown_warning_option=yes
5781else
5782  xorg_cv_cc_flag_unknown_warning_option=no
5783fi
5784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5785fi
5786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5787$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5788	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5789	CFLAGS="$xorg_testset_save_CFLAGS"
5790fi
5791
5792if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5793	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5794		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5795	fi
5796	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5797	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5798$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5799if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5800  $as_echo_n "(cached) " >&6
5801else
5802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5803/* end confdefs.h.  */
5804int i;
5805_ACEOF
5806if ac_fn_c_try_compile "$LINENO"; then :
5807  xorg_cv_cc_flag_unused_command_line_argument=yes
5808else
5809  xorg_cv_cc_flag_unused_command_line_argument=no
5810fi
5811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5812fi
5813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5814$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5815	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5816	CFLAGS="$xorg_testset_save_CFLAGS"
5817fi
5818
5819found="no"
5820
5821	if test $found = "no" ; then
5822		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5823			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5824		fi
5825
5826		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5827			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5828		fi
5829
5830		CFLAGS="$CFLAGS -Wbad-function-cast"
5831
5832		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5833$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5834		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5835		if eval \${$cacheid+:} false; then :
5836  $as_echo_n "(cached) " >&6
5837else
5838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5839/* end confdefs.h.  */
5840int i;
5841int
5842main ()
5843{
5844
5845  ;
5846  return 0;
5847}
5848_ACEOF
5849if ac_fn_c_try_link "$LINENO"; then :
5850  eval $cacheid=yes
5851else
5852  eval $cacheid=no
5853fi
5854rm -f core conftest.err conftest.$ac_objext \
5855    conftest$ac_exeext conftest.$ac_ext
5856fi
5857
5858
5859		CFLAGS="$xorg_testset_save_CFLAGS"
5860
5861		eval supported=\$$cacheid
5862		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5863$as_echo "$supported" >&6; }
5864		if test "$supported" = "yes" ; then
5865			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5866			found="yes"
5867		fi
5868	fi
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884xorg_testset_save_CFLAGS="$CFLAGS"
5885
5886if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5887	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5888	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5889$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5890if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5891  $as_echo_n "(cached) " >&6
5892else
5893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5894/* end confdefs.h.  */
5895int i;
5896_ACEOF
5897if ac_fn_c_try_compile "$LINENO"; then :
5898  xorg_cv_cc_flag_unknown_warning_option=yes
5899else
5900  xorg_cv_cc_flag_unknown_warning_option=no
5901fi
5902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5903fi
5904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5905$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5906	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5907	CFLAGS="$xorg_testset_save_CFLAGS"
5908fi
5909
5910if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5911	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5912		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5913	fi
5914	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5915	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5916$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5917if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5918  $as_echo_n "(cached) " >&6
5919else
5920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5921/* end confdefs.h.  */
5922int i;
5923_ACEOF
5924if ac_fn_c_try_compile "$LINENO"; then :
5925  xorg_cv_cc_flag_unused_command_line_argument=yes
5926else
5927  xorg_cv_cc_flag_unused_command_line_argument=no
5928fi
5929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5930fi
5931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5932$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5933	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5934	CFLAGS="$xorg_testset_save_CFLAGS"
5935fi
5936
5937found="no"
5938
5939	if test $found = "no" ; then
5940		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5941			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5942		fi
5943
5944		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5945			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5946		fi
5947
5948		CFLAGS="$CFLAGS -Wold-style-definition"
5949
5950		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5951$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5952		cacheid=xorg_cv_cc_flag__Wold_style_definition
5953		if eval \${$cacheid+:} false; then :
5954  $as_echo_n "(cached) " >&6
5955else
5956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5957/* end confdefs.h.  */
5958int i;
5959int
5960main ()
5961{
5962
5963  ;
5964  return 0;
5965}
5966_ACEOF
5967if ac_fn_c_try_link "$LINENO"; then :
5968  eval $cacheid=yes
5969else
5970  eval $cacheid=no
5971fi
5972rm -f core conftest.err conftest.$ac_objext \
5973    conftest$ac_exeext conftest.$ac_ext
5974fi
5975
5976
5977		CFLAGS="$xorg_testset_save_CFLAGS"
5978
5979		eval supported=\$$cacheid
5980		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5981$as_echo "$supported" >&6; }
5982		if test "$supported" = "yes" ; then
5983			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5984			found="yes"
5985		fi
5986	fi
5987
5988	if test $found = "no" ; then
5989		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5990			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5991		fi
5992
5993		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5994			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5995		fi
5996
5997		CFLAGS="$CFLAGS -fd"
5998
5999		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6000$as_echo_n "checking if $CC supports -fd... " >&6; }
6001		cacheid=xorg_cv_cc_flag__fd
6002		if eval \${$cacheid+:} false; then :
6003  $as_echo_n "(cached) " >&6
6004else
6005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6006/* end confdefs.h.  */
6007int i;
6008int
6009main ()
6010{
6011
6012  ;
6013  return 0;
6014}
6015_ACEOF
6016if ac_fn_c_try_link "$LINENO"; then :
6017  eval $cacheid=yes
6018else
6019  eval $cacheid=no
6020fi
6021rm -f core conftest.err conftest.$ac_objext \
6022    conftest$ac_exeext conftest.$ac_ext
6023fi
6024
6025
6026		CFLAGS="$xorg_testset_save_CFLAGS"
6027
6028		eval supported=\$$cacheid
6029		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6030$as_echo "$supported" >&6; }
6031		if test "$supported" = "yes" ; then
6032			BASE_CFLAGS="$BASE_CFLAGS -fd"
6033			found="yes"
6034		fi
6035	fi
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051xorg_testset_save_CFLAGS="$CFLAGS"
6052
6053if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6054	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6055	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6056$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6057if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6058  $as_echo_n "(cached) " >&6
6059else
6060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6061/* end confdefs.h.  */
6062int i;
6063_ACEOF
6064if ac_fn_c_try_compile "$LINENO"; then :
6065  xorg_cv_cc_flag_unknown_warning_option=yes
6066else
6067  xorg_cv_cc_flag_unknown_warning_option=no
6068fi
6069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6070fi
6071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6072$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6073	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6074	CFLAGS="$xorg_testset_save_CFLAGS"
6075fi
6076
6077if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6078	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6079		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6080	fi
6081	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6082	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6083$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6084if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6085  $as_echo_n "(cached) " >&6
6086else
6087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6088/* end confdefs.h.  */
6089int i;
6090_ACEOF
6091if ac_fn_c_try_compile "$LINENO"; then :
6092  xorg_cv_cc_flag_unused_command_line_argument=yes
6093else
6094  xorg_cv_cc_flag_unused_command_line_argument=no
6095fi
6096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6097fi
6098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6099$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6100	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6101	CFLAGS="$xorg_testset_save_CFLAGS"
6102fi
6103
6104found="no"
6105
6106	if test $found = "no" ; then
6107		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6108			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6109		fi
6110
6111		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6112			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6113		fi
6114
6115		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6116
6117		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6118$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6119		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6120		if eval \${$cacheid+:} false; then :
6121  $as_echo_n "(cached) " >&6
6122else
6123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6124/* end confdefs.h.  */
6125int i;
6126int
6127main ()
6128{
6129
6130  ;
6131  return 0;
6132}
6133_ACEOF
6134if ac_fn_c_try_link "$LINENO"; then :
6135  eval $cacheid=yes
6136else
6137  eval $cacheid=no
6138fi
6139rm -f core conftest.err conftest.$ac_objext \
6140    conftest$ac_exeext conftest.$ac_ext
6141fi
6142
6143
6144		CFLAGS="$xorg_testset_save_CFLAGS"
6145
6146		eval supported=\$$cacheid
6147		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6148$as_echo "$supported" >&6; }
6149		if test "$supported" = "yes" ; then
6150			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6151			found="yes"
6152		fi
6153	fi
6154
6155
6156
6157
6158
6159# This chunk adds additional warnings that could catch undesired effects.
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173xorg_testset_save_CFLAGS="$CFLAGS"
6174
6175if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6176	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6177	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6178$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6179if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6180  $as_echo_n "(cached) " >&6
6181else
6182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6183/* end confdefs.h.  */
6184int i;
6185_ACEOF
6186if ac_fn_c_try_compile "$LINENO"; then :
6187  xorg_cv_cc_flag_unknown_warning_option=yes
6188else
6189  xorg_cv_cc_flag_unknown_warning_option=no
6190fi
6191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6192fi
6193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6194$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6195	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6196	CFLAGS="$xorg_testset_save_CFLAGS"
6197fi
6198
6199if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6200	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6201		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6202	fi
6203	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6204	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6205$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6206if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6207  $as_echo_n "(cached) " >&6
6208else
6209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6210/* end confdefs.h.  */
6211int i;
6212_ACEOF
6213if ac_fn_c_try_compile "$LINENO"; then :
6214  xorg_cv_cc_flag_unused_command_line_argument=yes
6215else
6216  xorg_cv_cc_flag_unused_command_line_argument=no
6217fi
6218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6219fi
6220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6221$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6222	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6223	CFLAGS="$xorg_testset_save_CFLAGS"
6224fi
6225
6226found="no"
6227
6228	if test $found = "no" ; then
6229		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6230			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6231		fi
6232
6233		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6234			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6235		fi
6236
6237		CFLAGS="$CFLAGS -Wunused"
6238
6239		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6240$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6241		cacheid=xorg_cv_cc_flag__Wunused
6242		if eval \${$cacheid+:} false; then :
6243  $as_echo_n "(cached) " >&6
6244else
6245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6246/* end confdefs.h.  */
6247int i;
6248int
6249main ()
6250{
6251
6252  ;
6253  return 0;
6254}
6255_ACEOF
6256if ac_fn_c_try_link "$LINENO"; then :
6257  eval $cacheid=yes
6258else
6259  eval $cacheid=no
6260fi
6261rm -f core conftest.err conftest.$ac_objext \
6262    conftest$ac_exeext conftest.$ac_ext
6263fi
6264
6265
6266		CFLAGS="$xorg_testset_save_CFLAGS"
6267
6268		eval supported=\$$cacheid
6269		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6270$as_echo "$supported" >&6; }
6271		if test "$supported" = "yes" ; then
6272			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6273			found="yes"
6274		fi
6275	fi
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291xorg_testset_save_CFLAGS="$CFLAGS"
6292
6293if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6294	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6295	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6296$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6297if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6298  $as_echo_n "(cached) " >&6
6299else
6300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6301/* end confdefs.h.  */
6302int i;
6303_ACEOF
6304if ac_fn_c_try_compile "$LINENO"; then :
6305  xorg_cv_cc_flag_unknown_warning_option=yes
6306else
6307  xorg_cv_cc_flag_unknown_warning_option=no
6308fi
6309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6310fi
6311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6312$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6313	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6314	CFLAGS="$xorg_testset_save_CFLAGS"
6315fi
6316
6317if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6318	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6319		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6320	fi
6321	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6322	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6323$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6324if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6325  $as_echo_n "(cached) " >&6
6326else
6327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6328/* end confdefs.h.  */
6329int i;
6330_ACEOF
6331if ac_fn_c_try_compile "$LINENO"; then :
6332  xorg_cv_cc_flag_unused_command_line_argument=yes
6333else
6334  xorg_cv_cc_flag_unused_command_line_argument=no
6335fi
6336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6337fi
6338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6339$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6340	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6341	CFLAGS="$xorg_testset_save_CFLAGS"
6342fi
6343
6344found="no"
6345
6346	if test $found = "no" ; then
6347		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6348			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6349		fi
6350
6351		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6352			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6353		fi
6354
6355		CFLAGS="$CFLAGS -Wuninitialized"
6356
6357		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6358$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6359		cacheid=xorg_cv_cc_flag__Wuninitialized
6360		if eval \${$cacheid+:} false; then :
6361  $as_echo_n "(cached) " >&6
6362else
6363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6364/* end confdefs.h.  */
6365int i;
6366int
6367main ()
6368{
6369
6370  ;
6371  return 0;
6372}
6373_ACEOF
6374if ac_fn_c_try_link "$LINENO"; then :
6375  eval $cacheid=yes
6376else
6377  eval $cacheid=no
6378fi
6379rm -f core conftest.err conftest.$ac_objext \
6380    conftest$ac_exeext conftest.$ac_ext
6381fi
6382
6383
6384		CFLAGS="$xorg_testset_save_CFLAGS"
6385
6386		eval supported=\$$cacheid
6387		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6388$as_echo "$supported" >&6; }
6389		if test "$supported" = "yes" ; then
6390			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6391			found="yes"
6392		fi
6393	fi
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409xorg_testset_save_CFLAGS="$CFLAGS"
6410
6411if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6412	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6413	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6414$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6415if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6416  $as_echo_n "(cached) " >&6
6417else
6418  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6419/* end confdefs.h.  */
6420int i;
6421_ACEOF
6422if ac_fn_c_try_compile "$LINENO"; then :
6423  xorg_cv_cc_flag_unknown_warning_option=yes
6424else
6425  xorg_cv_cc_flag_unknown_warning_option=no
6426fi
6427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6428fi
6429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6430$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6431	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6432	CFLAGS="$xorg_testset_save_CFLAGS"
6433fi
6434
6435if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6436	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6437		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6438	fi
6439	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6440	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6441$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6442if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6443  $as_echo_n "(cached) " >&6
6444else
6445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6446/* end confdefs.h.  */
6447int i;
6448_ACEOF
6449if ac_fn_c_try_compile "$LINENO"; then :
6450  xorg_cv_cc_flag_unused_command_line_argument=yes
6451else
6452  xorg_cv_cc_flag_unused_command_line_argument=no
6453fi
6454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6455fi
6456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6457$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6458	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6459	CFLAGS="$xorg_testset_save_CFLAGS"
6460fi
6461
6462found="no"
6463
6464	if test $found = "no" ; then
6465		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6466			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6467		fi
6468
6469		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6470			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6471		fi
6472
6473		CFLAGS="$CFLAGS -Wshadow"
6474
6475		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6476$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6477		cacheid=xorg_cv_cc_flag__Wshadow
6478		if eval \${$cacheid+:} false; then :
6479  $as_echo_n "(cached) " >&6
6480else
6481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6482/* end confdefs.h.  */
6483int i;
6484int
6485main ()
6486{
6487
6488  ;
6489  return 0;
6490}
6491_ACEOF
6492if ac_fn_c_try_link "$LINENO"; then :
6493  eval $cacheid=yes
6494else
6495  eval $cacheid=no
6496fi
6497rm -f core conftest.err conftest.$ac_objext \
6498    conftest$ac_exeext conftest.$ac_ext
6499fi
6500
6501
6502		CFLAGS="$xorg_testset_save_CFLAGS"
6503
6504		eval supported=\$$cacheid
6505		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6506$as_echo "$supported" >&6; }
6507		if test "$supported" = "yes" ; then
6508			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6509			found="yes"
6510		fi
6511	fi
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527xorg_testset_save_CFLAGS="$CFLAGS"
6528
6529if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6530	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6531	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6532$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6533if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6534  $as_echo_n "(cached) " >&6
6535else
6536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6537/* end confdefs.h.  */
6538int i;
6539_ACEOF
6540if ac_fn_c_try_compile "$LINENO"; then :
6541  xorg_cv_cc_flag_unknown_warning_option=yes
6542else
6543  xorg_cv_cc_flag_unknown_warning_option=no
6544fi
6545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6546fi
6547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6548$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6549	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6550	CFLAGS="$xorg_testset_save_CFLAGS"
6551fi
6552
6553if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6554	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6555		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6556	fi
6557	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6558	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6559$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6560if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6561  $as_echo_n "(cached) " >&6
6562else
6563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6564/* end confdefs.h.  */
6565int i;
6566_ACEOF
6567if ac_fn_c_try_compile "$LINENO"; then :
6568  xorg_cv_cc_flag_unused_command_line_argument=yes
6569else
6570  xorg_cv_cc_flag_unused_command_line_argument=no
6571fi
6572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6573fi
6574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6575$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6576	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6577	CFLAGS="$xorg_testset_save_CFLAGS"
6578fi
6579
6580found="no"
6581
6582	if test $found = "no" ; then
6583		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6584			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6585		fi
6586
6587		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6588			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6589		fi
6590
6591		CFLAGS="$CFLAGS -Wmissing-noreturn"
6592
6593		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6594$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6595		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6596		if eval \${$cacheid+:} false; then :
6597  $as_echo_n "(cached) " >&6
6598else
6599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6600/* end confdefs.h.  */
6601int i;
6602int
6603main ()
6604{
6605
6606  ;
6607  return 0;
6608}
6609_ACEOF
6610if ac_fn_c_try_link "$LINENO"; then :
6611  eval $cacheid=yes
6612else
6613  eval $cacheid=no
6614fi
6615rm -f core conftest.err conftest.$ac_objext \
6616    conftest$ac_exeext conftest.$ac_ext
6617fi
6618
6619
6620		CFLAGS="$xorg_testset_save_CFLAGS"
6621
6622		eval supported=\$$cacheid
6623		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6624$as_echo "$supported" >&6; }
6625		if test "$supported" = "yes" ; then
6626			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6627			found="yes"
6628		fi
6629	fi
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645xorg_testset_save_CFLAGS="$CFLAGS"
6646
6647if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6648	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6649	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6650$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6651if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6652  $as_echo_n "(cached) " >&6
6653else
6654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6655/* end confdefs.h.  */
6656int i;
6657_ACEOF
6658if ac_fn_c_try_compile "$LINENO"; then :
6659  xorg_cv_cc_flag_unknown_warning_option=yes
6660else
6661  xorg_cv_cc_flag_unknown_warning_option=no
6662fi
6663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6664fi
6665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6666$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6667	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6668	CFLAGS="$xorg_testset_save_CFLAGS"
6669fi
6670
6671if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6672	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6673		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6674	fi
6675	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6676	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6677$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6678if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6679  $as_echo_n "(cached) " >&6
6680else
6681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6682/* end confdefs.h.  */
6683int i;
6684_ACEOF
6685if ac_fn_c_try_compile "$LINENO"; then :
6686  xorg_cv_cc_flag_unused_command_line_argument=yes
6687else
6688  xorg_cv_cc_flag_unused_command_line_argument=no
6689fi
6690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6691fi
6692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6693$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6694	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6695	CFLAGS="$xorg_testset_save_CFLAGS"
6696fi
6697
6698found="no"
6699
6700	if test $found = "no" ; then
6701		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6702			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6703		fi
6704
6705		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6706			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6707		fi
6708
6709		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6710
6711		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6712$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6713		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6714		if eval \${$cacheid+:} false; then :
6715  $as_echo_n "(cached) " >&6
6716else
6717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6718/* end confdefs.h.  */
6719int i;
6720int
6721main ()
6722{
6723
6724  ;
6725  return 0;
6726}
6727_ACEOF
6728if ac_fn_c_try_link "$LINENO"; then :
6729  eval $cacheid=yes
6730else
6731  eval $cacheid=no
6732fi
6733rm -f core conftest.err conftest.$ac_objext \
6734    conftest$ac_exeext conftest.$ac_ext
6735fi
6736
6737
6738		CFLAGS="$xorg_testset_save_CFLAGS"
6739
6740		eval supported=\$$cacheid
6741		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6742$as_echo "$supported" >&6; }
6743		if test "$supported" = "yes" ; then
6744			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6745			found="yes"
6746		fi
6747	fi
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763xorg_testset_save_CFLAGS="$CFLAGS"
6764
6765if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6766	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6767	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6768$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6769if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6770  $as_echo_n "(cached) " >&6
6771else
6772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6773/* end confdefs.h.  */
6774int i;
6775_ACEOF
6776if ac_fn_c_try_compile "$LINENO"; then :
6777  xorg_cv_cc_flag_unknown_warning_option=yes
6778else
6779  xorg_cv_cc_flag_unknown_warning_option=no
6780fi
6781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6782fi
6783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6784$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6785	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6786	CFLAGS="$xorg_testset_save_CFLAGS"
6787fi
6788
6789if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6790	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6791		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6792	fi
6793	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6794	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6795$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6796if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6797  $as_echo_n "(cached) " >&6
6798else
6799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6800/* end confdefs.h.  */
6801int i;
6802_ACEOF
6803if ac_fn_c_try_compile "$LINENO"; then :
6804  xorg_cv_cc_flag_unused_command_line_argument=yes
6805else
6806  xorg_cv_cc_flag_unused_command_line_argument=no
6807fi
6808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6809fi
6810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6811$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6812	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6813	CFLAGS="$xorg_testset_save_CFLAGS"
6814fi
6815
6816found="no"
6817
6818	if test $found = "no" ; then
6819		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6820			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6821		fi
6822
6823		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6824			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6825		fi
6826
6827		CFLAGS="$CFLAGS -Wredundant-decls"
6828
6829		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6830$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6831		cacheid=xorg_cv_cc_flag__Wredundant_decls
6832		if eval \${$cacheid+:} false; then :
6833  $as_echo_n "(cached) " >&6
6834else
6835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6836/* end confdefs.h.  */
6837int i;
6838int
6839main ()
6840{
6841
6842  ;
6843  return 0;
6844}
6845_ACEOF
6846if ac_fn_c_try_link "$LINENO"; then :
6847  eval $cacheid=yes
6848else
6849  eval $cacheid=no
6850fi
6851rm -f core conftest.err conftest.$ac_objext \
6852    conftest$ac_exeext conftest.$ac_ext
6853fi
6854
6855
6856		CFLAGS="$xorg_testset_save_CFLAGS"
6857
6858		eval supported=\$$cacheid
6859		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6860$as_echo "$supported" >&6; }
6861		if test "$supported" = "yes" ; then
6862			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6863			found="yes"
6864		fi
6865	fi
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881xorg_testset_save_CFLAGS="$CFLAGS"
6882
6883if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6884	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6885	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6886$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6887if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6888  $as_echo_n "(cached) " >&6
6889else
6890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6891/* end confdefs.h.  */
6892int i;
6893_ACEOF
6894if ac_fn_c_try_compile "$LINENO"; then :
6895  xorg_cv_cc_flag_unknown_warning_option=yes
6896else
6897  xorg_cv_cc_flag_unknown_warning_option=no
6898fi
6899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6900fi
6901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6902$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6903	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6904	CFLAGS="$xorg_testset_save_CFLAGS"
6905fi
6906
6907if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6908	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6909		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6910	fi
6911	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6912	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6913$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6914if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6915  $as_echo_n "(cached) " >&6
6916else
6917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6918/* end confdefs.h.  */
6919int i;
6920_ACEOF
6921if ac_fn_c_try_compile "$LINENO"; then :
6922  xorg_cv_cc_flag_unused_command_line_argument=yes
6923else
6924  xorg_cv_cc_flag_unused_command_line_argument=no
6925fi
6926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6927fi
6928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6929$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6930	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6931	CFLAGS="$xorg_testset_save_CFLAGS"
6932fi
6933
6934found="no"
6935
6936	if test $found = "no" ; then
6937		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6938			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6939		fi
6940
6941		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6942			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6943		fi
6944
6945		CFLAGS="$CFLAGS -Wlogical-op"
6946
6947		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6948$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6949		cacheid=xorg_cv_cc_flag__Wlogical_op
6950		if eval \${$cacheid+:} false; then :
6951  $as_echo_n "(cached) " >&6
6952else
6953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6954/* end confdefs.h.  */
6955int i;
6956int
6957main ()
6958{
6959
6960  ;
6961  return 0;
6962}
6963_ACEOF
6964if ac_fn_c_try_link "$LINENO"; then :
6965  eval $cacheid=yes
6966else
6967  eval $cacheid=no
6968fi
6969rm -f core conftest.err conftest.$ac_objext \
6970    conftest$ac_exeext conftest.$ac_ext
6971fi
6972
6973
6974		CFLAGS="$xorg_testset_save_CFLAGS"
6975
6976		eval supported=\$$cacheid
6977		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6978$as_echo "$supported" >&6; }
6979		if test "$supported" = "yes" ; then
6980			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6981			found="yes"
6982		fi
6983	fi
6984
6985
6986
6987# These are currently disabled because they are noisy.  They will be enabled
6988# in the future once the codebase is sufficiently modernized to silence
6989# them.  For now, I don't want them to drown out the other warnings.
6990# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6991# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6992# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6993
6994# Turn some warnings into errors, so we don't accidently get successful builds
6995# when there are problems that should be fixed.
6996
6997if test "x$SELECTIVE_WERROR" = "xyes" ; then
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011xorg_testset_save_CFLAGS="$CFLAGS"
7012
7013if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7014	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7015	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7016$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7017if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7018  $as_echo_n "(cached) " >&6
7019else
7020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7021/* end confdefs.h.  */
7022int i;
7023_ACEOF
7024if ac_fn_c_try_compile "$LINENO"; then :
7025  xorg_cv_cc_flag_unknown_warning_option=yes
7026else
7027  xorg_cv_cc_flag_unknown_warning_option=no
7028fi
7029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7030fi
7031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7032$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7033	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7034	CFLAGS="$xorg_testset_save_CFLAGS"
7035fi
7036
7037if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7038	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7039		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7040	fi
7041	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7042	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7043$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7044if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7045  $as_echo_n "(cached) " >&6
7046else
7047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7048/* end confdefs.h.  */
7049int i;
7050_ACEOF
7051if ac_fn_c_try_compile "$LINENO"; then :
7052  xorg_cv_cc_flag_unused_command_line_argument=yes
7053else
7054  xorg_cv_cc_flag_unused_command_line_argument=no
7055fi
7056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7057fi
7058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7059$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7060	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7061	CFLAGS="$xorg_testset_save_CFLAGS"
7062fi
7063
7064found="no"
7065
7066	if test $found = "no" ; then
7067		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7068			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7069		fi
7070
7071		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7072			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7073		fi
7074
7075		CFLAGS="$CFLAGS -Werror=implicit"
7076
7077		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7078$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7079		cacheid=xorg_cv_cc_flag__Werror_implicit
7080		if eval \${$cacheid+:} false; then :
7081  $as_echo_n "(cached) " >&6
7082else
7083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7084/* end confdefs.h.  */
7085int i;
7086int
7087main ()
7088{
7089
7090  ;
7091  return 0;
7092}
7093_ACEOF
7094if ac_fn_c_try_link "$LINENO"; then :
7095  eval $cacheid=yes
7096else
7097  eval $cacheid=no
7098fi
7099rm -f core conftest.err conftest.$ac_objext \
7100    conftest$ac_exeext conftest.$ac_ext
7101fi
7102
7103
7104		CFLAGS="$xorg_testset_save_CFLAGS"
7105
7106		eval supported=\$$cacheid
7107		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7108$as_echo "$supported" >&6; }
7109		if test "$supported" = "yes" ; then
7110			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7111			found="yes"
7112		fi
7113	fi
7114
7115	if test $found = "no" ; then
7116		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7117			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7118		fi
7119
7120		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7121			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7122		fi
7123
7124		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7125
7126		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7127$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7128		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7129		if eval \${$cacheid+:} false; then :
7130  $as_echo_n "(cached) " >&6
7131else
7132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7133/* end confdefs.h.  */
7134int i;
7135int
7136main ()
7137{
7138
7139  ;
7140  return 0;
7141}
7142_ACEOF
7143if ac_fn_c_try_link "$LINENO"; then :
7144  eval $cacheid=yes
7145else
7146  eval $cacheid=no
7147fi
7148rm -f core conftest.err conftest.$ac_objext \
7149    conftest$ac_exeext conftest.$ac_ext
7150fi
7151
7152
7153		CFLAGS="$xorg_testset_save_CFLAGS"
7154
7155		eval supported=\$$cacheid
7156		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7157$as_echo "$supported" >&6; }
7158		if test "$supported" = "yes" ; then
7159			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7160			found="yes"
7161		fi
7162	fi
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178xorg_testset_save_CFLAGS="$CFLAGS"
7179
7180if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7181	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7182	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7183$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7184if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7185  $as_echo_n "(cached) " >&6
7186else
7187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7188/* end confdefs.h.  */
7189int i;
7190_ACEOF
7191if ac_fn_c_try_compile "$LINENO"; then :
7192  xorg_cv_cc_flag_unknown_warning_option=yes
7193else
7194  xorg_cv_cc_flag_unknown_warning_option=no
7195fi
7196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7197fi
7198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7199$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7200	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7201	CFLAGS="$xorg_testset_save_CFLAGS"
7202fi
7203
7204if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7205	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7206		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7207	fi
7208	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7209	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7210$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7211if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7212  $as_echo_n "(cached) " >&6
7213else
7214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7215/* end confdefs.h.  */
7216int i;
7217_ACEOF
7218if ac_fn_c_try_compile "$LINENO"; then :
7219  xorg_cv_cc_flag_unused_command_line_argument=yes
7220else
7221  xorg_cv_cc_flag_unused_command_line_argument=no
7222fi
7223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7224fi
7225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7226$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7227	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7228	CFLAGS="$xorg_testset_save_CFLAGS"
7229fi
7230
7231found="no"
7232
7233	if test $found = "no" ; then
7234		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7235			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7236		fi
7237
7238		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7239			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7240		fi
7241
7242		CFLAGS="$CFLAGS -Werror=nonnull"
7243
7244		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7245$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7246		cacheid=xorg_cv_cc_flag__Werror_nonnull
7247		if eval \${$cacheid+:} false; then :
7248  $as_echo_n "(cached) " >&6
7249else
7250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7251/* end confdefs.h.  */
7252int i;
7253int
7254main ()
7255{
7256
7257  ;
7258  return 0;
7259}
7260_ACEOF
7261if ac_fn_c_try_link "$LINENO"; then :
7262  eval $cacheid=yes
7263else
7264  eval $cacheid=no
7265fi
7266rm -f core conftest.err conftest.$ac_objext \
7267    conftest$ac_exeext conftest.$ac_ext
7268fi
7269
7270
7271		CFLAGS="$xorg_testset_save_CFLAGS"
7272
7273		eval supported=\$$cacheid
7274		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7275$as_echo "$supported" >&6; }
7276		if test "$supported" = "yes" ; then
7277			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7278			found="yes"
7279		fi
7280	fi
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296xorg_testset_save_CFLAGS="$CFLAGS"
7297
7298if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7299	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7300	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7301$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7302if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7303  $as_echo_n "(cached) " >&6
7304else
7305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7306/* end confdefs.h.  */
7307int i;
7308_ACEOF
7309if ac_fn_c_try_compile "$LINENO"; then :
7310  xorg_cv_cc_flag_unknown_warning_option=yes
7311else
7312  xorg_cv_cc_flag_unknown_warning_option=no
7313fi
7314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7315fi
7316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7317$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7318	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7319	CFLAGS="$xorg_testset_save_CFLAGS"
7320fi
7321
7322if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7323	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7324		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7325	fi
7326	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7327	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7328$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7329if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7330  $as_echo_n "(cached) " >&6
7331else
7332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7333/* end confdefs.h.  */
7334int i;
7335_ACEOF
7336if ac_fn_c_try_compile "$LINENO"; then :
7337  xorg_cv_cc_flag_unused_command_line_argument=yes
7338else
7339  xorg_cv_cc_flag_unused_command_line_argument=no
7340fi
7341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7342fi
7343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7344$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7345	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7346	CFLAGS="$xorg_testset_save_CFLAGS"
7347fi
7348
7349found="no"
7350
7351	if test $found = "no" ; then
7352		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7353			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7354		fi
7355
7356		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7357			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7358		fi
7359
7360		CFLAGS="$CFLAGS -Werror=init-self"
7361
7362		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7363$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7364		cacheid=xorg_cv_cc_flag__Werror_init_self
7365		if eval \${$cacheid+:} false; then :
7366  $as_echo_n "(cached) " >&6
7367else
7368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7369/* end confdefs.h.  */
7370int i;
7371int
7372main ()
7373{
7374
7375  ;
7376  return 0;
7377}
7378_ACEOF
7379if ac_fn_c_try_link "$LINENO"; then :
7380  eval $cacheid=yes
7381else
7382  eval $cacheid=no
7383fi
7384rm -f core conftest.err conftest.$ac_objext \
7385    conftest$ac_exeext conftest.$ac_ext
7386fi
7387
7388
7389		CFLAGS="$xorg_testset_save_CFLAGS"
7390
7391		eval supported=\$$cacheid
7392		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7393$as_echo "$supported" >&6; }
7394		if test "$supported" = "yes" ; then
7395			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7396			found="yes"
7397		fi
7398	fi
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414xorg_testset_save_CFLAGS="$CFLAGS"
7415
7416if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7417	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7418	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7419$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7420if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7421  $as_echo_n "(cached) " >&6
7422else
7423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7424/* end confdefs.h.  */
7425int i;
7426_ACEOF
7427if ac_fn_c_try_compile "$LINENO"; then :
7428  xorg_cv_cc_flag_unknown_warning_option=yes
7429else
7430  xorg_cv_cc_flag_unknown_warning_option=no
7431fi
7432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7433fi
7434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7435$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7436	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7437	CFLAGS="$xorg_testset_save_CFLAGS"
7438fi
7439
7440if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7441	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7442		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7443	fi
7444	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7445	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7446$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7447if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7448  $as_echo_n "(cached) " >&6
7449else
7450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451/* end confdefs.h.  */
7452int i;
7453_ACEOF
7454if ac_fn_c_try_compile "$LINENO"; then :
7455  xorg_cv_cc_flag_unused_command_line_argument=yes
7456else
7457  xorg_cv_cc_flag_unused_command_line_argument=no
7458fi
7459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7460fi
7461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7462$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7463	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7464	CFLAGS="$xorg_testset_save_CFLAGS"
7465fi
7466
7467found="no"
7468
7469	if test $found = "no" ; then
7470		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7471			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7472		fi
7473
7474		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7475			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7476		fi
7477
7478		CFLAGS="$CFLAGS -Werror=main"
7479
7480		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7481$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7482		cacheid=xorg_cv_cc_flag__Werror_main
7483		if eval \${$cacheid+:} false; then :
7484  $as_echo_n "(cached) " >&6
7485else
7486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7487/* end confdefs.h.  */
7488int i;
7489int
7490main ()
7491{
7492
7493  ;
7494  return 0;
7495}
7496_ACEOF
7497if ac_fn_c_try_link "$LINENO"; then :
7498  eval $cacheid=yes
7499else
7500  eval $cacheid=no
7501fi
7502rm -f core conftest.err conftest.$ac_objext \
7503    conftest$ac_exeext conftest.$ac_ext
7504fi
7505
7506
7507		CFLAGS="$xorg_testset_save_CFLAGS"
7508
7509		eval supported=\$$cacheid
7510		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7511$as_echo "$supported" >&6; }
7512		if test "$supported" = "yes" ; then
7513			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7514			found="yes"
7515		fi
7516	fi
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532xorg_testset_save_CFLAGS="$CFLAGS"
7533
7534if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7535	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7536	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7537$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7538if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7539  $as_echo_n "(cached) " >&6
7540else
7541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7542/* end confdefs.h.  */
7543int i;
7544_ACEOF
7545if ac_fn_c_try_compile "$LINENO"; then :
7546  xorg_cv_cc_flag_unknown_warning_option=yes
7547else
7548  xorg_cv_cc_flag_unknown_warning_option=no
7549fi
7550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7551fi
7552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7553$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7554	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7555	CFLAGS="$xorg_testset_save_CFLAGS"
7556fi
7557
7558if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7559	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7560		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7561	fi
7562	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7563	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7564$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7565if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7566  $as_echo_n "(cached) " >&6
7567else
7568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7569/* end confdefs.h.  */
7570int i;
7571_ACEOF
7572if ac_fn_c_try_compile "$LINENO"; then :
7573  xorg_cv_cc_flag_unused_command_line_argument=yes
7574else
7575  xorg_cv_cc_flag_unused_command_line_argument=no
7576fi
7577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7578fi
7579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7580$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7581	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7582	CFLAGS="$xorg_testset_save_CFLAGS"
7583fi
7584
7585found="no"
7586
7587	if test $found = "no" ; then
7588		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7589			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7590		fi
7591
7592		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7593			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7594		fi
7595
7596		CFLAGS="$CFLAGS -Werror=missing-braces"
7597
7598		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7599$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7600		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7601		if eval \${$cacheid+:} false; then :
7602  $as_echo_n "(cached) " >&6
7603else
7604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605/* end confdefs.h.  */
7606int i;
7607int
7608main ()
7609{
7610
7611  ;
7612  return 0;
7613}
7614_ACEOF
7615if ac_fn_c_try_link "$LINENO"; then :
7616  eval $cacheid=yes
7617else
7618  eval $cacheid=no
7619fi
7620rm -f core conftest.err conftest.$ac_objext \
7621    conftest$ac_exeext conftest.$ac_ext
7622fi
7623
7624
7625		CFLAGS="$xorg_testset_save_CFLAGS"
7626
7627		eval supported=\$$cacheid
7628		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7629$as_echo "$supported" >&6; }
7630		if test "$supported" = "yes" ; then
7631			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7632			found="yes"
7633		fi
7634	fi
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650xorg_testset_save_CFLAGS="$CFLAGS"
7651
7652if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7653	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7654	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7655$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7656if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7657  $as_echo_n "(cached) " >&6
7658else
7659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7660/* end confdefs.h.  */
7661int i;
7662_ACEOF
7663if ac_fn_c_try_compile "$LINENO"; then :
7664  xorg_cv_cc_flag_unknown_warning_option=yes
7665else
7666  xorg_cv_cc_flag_unknown_warning_option=no
7667fi
7668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7669fi
7670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7671$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7672	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7673	CFLAGS="$xorg_testset_save_CFLAGS"
7674fi
7675
7676if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7677	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7678		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7679	fi
7680	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7681	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7682$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7683if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7684  $as_echo_n "(cached) " >&6
7685else
7686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7687/* end confdefs.h.  */
7688int i;
7689_ACEOF
7690if ac_fn_c_try_compile "$LINENO"; then :
7691  xorg_cv_cc_flag_unused_command_line_argument=yes
7692else
7693  xorg_cv_cc_flag_unused_command_line_argument=no
7694fi
7695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7696fi
7697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7698$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7699	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7700	CFLAGS="$xorg_testset_save_CFLAGS"
7701fi
7702
7703found="no"
7704
7705	if test $found = "no" ; then
7706		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7707			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7708		fi
7709
7710		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7711			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7712		fi
7713
7714		CFLAGS="$CFLAGS -Werror=sequence-point"
7715
7716		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7717$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7718		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7719		if eval \${$cacheid+:} false; then :
7720  $as_echo_n "(cached) " >&6
7721else
7722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723/* end confdefs.h.  */
7724int i;
7725int
7726main ()
7727{
7728
7729  ;
7730  return 0;
7731}
7732_ACEOF
7733if ac_fn_c_try_link "$LINENO"; then :
7734  eval $cacheid=yes
7735else
7736  eval $cacheid=no
7737fi
7738rm -f core conftest.err conftest.$ac_objext \
7739    conftest$ac_exeext conftest.$ac_ext
7740fi
7741
7742
7743		CFLAGS="$xorg_testset_save_CFLAGS"
7744
7745		eval supported=\$$cacheid
7746		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7747$as_echo "$supported" >&6; }
7748		if test "$supported" = "yes" ; then
7749			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7750			found="yes"
7751		fi
7752	fi
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768xorg_testset_save_CFLAGS="$CFLAGS"
7769
7770if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7771	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7772	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7773$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7774if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7775  $as_echo_n "(cached) " >&6
7776else
7777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7778/* end confdefs.h.  */
7779int i;
7780_ACEOF
7781if ac_fn_c_try_compile "$LINENO"; then :
7782  xorg_cv_cc_flag_unknown_warning_option=yes
7783else
7784  xorg_cv_cc_flag_unknown_warning_option=no
7785fi
7786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7787fi
7788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7789$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7790	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7791	CFLAGS="$xorg_testset_save_CFLAGS"
7792fi
7793
7794if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7795	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7796		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7797	fi
7798	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7799	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7800$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7801if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7802  $as_echo_n "(cached) " >&6
7803else
7804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7805/* end confdefs.h.  */
7806int i;
7807_ACEOF
7808if ac_fn_c_try_compile "$LINENO"; then :
7809  xorg_cv_cc_flag_unused_command_line_argument=yes
7810else
7811  xorg_cv_cc_flag_unused_command_line_argument=no
7812fi
7813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7814fi
7815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7816$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7817	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7818	CFLAGS="$xorg_testset_save_CFLAGS"
7819fi
7820
7821found="no"
7822
7823	if test $found = "no" ; then
7824		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7825			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7826		fi
7827
7828		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7829			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7830		fi
7831
7832		CFLAGS="$CFLAGS -Werror=return-type"
7833
7834		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7835$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7836		cacheid=xorg_cv_cc_flag__Werror_return_type
7837		if eval \${$cacheid+:} false; then :
7838  $as_echo_n "(cached) " >&6
7839else
7840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7841/* end confdefs.h.  */
7842int i;
7843int
7844main ()
7845{
7846
7847  ;
7848  return 0;
7849}
7850_ACEOF
7851if ac_fn_c_try_link "$LINENO"; then :
7852  eval $cacheid=yes
7853else
7854  eval $cacheid=no
7855fi
7856rm -f core conftest.err conftest.$ac_objext \
7857    conftest$ac_exeext conftest.$ac_ext
7858fi
7859
7860
7861		CFLAGS="$xorg_testset_save_CFLAGS"
7862
7863		eval supported=\$$cacheid
7864		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7865$as_echo "$supported" >&6; }
7866		if test "$supported" = "yes" ; then
7867			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7868			found="yes"
7869		fi
7870	fi
7871
7872	if test $found = "no" ; then
7873		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7874			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7875		fi
7876
7877		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7878			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7879		fi
7880
7881		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7882
7883		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7884$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7885		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7886		if eval \${$cacheid+:} false; then :
7887  $as_echo_n "(cached) " >&6
7888else
7889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7890/* end confdefs.h.  */
7891int i;
7892int
7893main ()
7894{
7895
7896  ;
7897  return 0;
7898}
7899_ACEOF
7900if ac_fn_c_try_link "$LINENO"; then :
7901  eval $cacheid=yes
7902else
7903  eval $cacheid=no
7904fi
7905rm -f core conftest.err conftest.$ac_objext \
7906    conftest$ac_exeext conftest.$ac_ext
7907fi
7908
7909
7910		CFLAGS="$xorg_testset_save_CFLAGS"
7911
7912		eval supported=\$$cacheid
7913		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7914$as_echo "$supported" >&6; }
7915		if test "$supported" = "yes" ; then
7916			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7917			found="yes"
7918		fi
7919	fi
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935xorg_testset_save_CFLAGS="$CFLAGS"
7936
7937if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7938	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7939	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7940$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7941if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7942  $as_echo_n "(cached) " >&6
7943else
7944  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7945/* end confdefs.h.  */
7946int i;
7947_ACEOF
7948if ac_fn_c_try_compile "$LINENO"; then :
7949  xorg_cv_cc_flag_unknown_warning_option=yes
7950else
7951  xorg_cv_cc_flag_unknown_warning_option=no
7952fi
7953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7954fi
7955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7956$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7957	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7958	CFLAGS="$xorg_testset_save_CFLAGS"
7959fi
7960
7961if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7962	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7963		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7964	fi
7965	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7966	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7967$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7968if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7969  $as_echo_n "(cached) " >&6
7970else
7971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7972/* end confdefs.h.  */
7973int i;
7974_ACEOF
7975if ac_fn_c_try_compile "$LINENO"; then :
7976  xorg_cv_cc_flag_unused_command_line_argument=yes
7977else
7978  xorg_cv_cc_flag_unused_command_line_argument=no
7979fi
7980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7981fi
7982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7983$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7984	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7985	CFLAGS="$xorg_testset_save_CFLAGS"
7986fi
7987
7988found="no"
7989
7990	if test $found = "no" ; then
7991		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7992			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7993		fi
7994
7995		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7996			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7997		fi
7998
7999		CFLAGS="$CFLAGS -Werror=trigraphs"
8000
8001		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8002$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
8003		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8004		if eval \${$cacheid+:} false; then :
8005  $as_echo_n "(cached) " >&6
8006else
8007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8008/* end confdefs.h.  */
8009int i;
8010int
8011main ()
8012{
8013
8014  ;
8015  return 0;
8016}
8017_ACEOF
8018if ac_fn_c_try_link "$LINENO"; then :
8019  eval $cacheid=yes
8020else
8021  eval $cacheid=no
8022fi
8023rm -f core conftest.err conftest.$ac_objext \
8024    conftest$ac_exeext conftest.$ac_ext
8025fi
8026
8027
8028		CFLAGS="$xorg_testset_save_CFLAGS"
8029
8030		eval supported=\$$cacheid
8031		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8032$as_echo "$supported" >&6; }
8033		if test "$supported" = "yes" ; then
8034			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8035			found="yes"
8036		fi
8037	fi
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053xorg_testset_save_CFLAGS="$CFLAGS"
8054
8055if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8056	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8057	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8058$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8059if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8060  $as_echo_n "(cached) " >&6
8061else
8062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8063/* end confdefs.h.  */
8064int i;
8065_ACEOF
8066if ac_fn_c_try_compile "$LINENO"; then :
8067  xorg_cv_cc_flag_unknown_warning_option=yes
8068else
8069  xorg_cv_cc_flag_unknown_warning_option=no
8070fi
8071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8072fi
8073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8074$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8075	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8076	CFLAGS="$xorg_testset_save_CFLAGS"
8077fi
8078
8079if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8080	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8081		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8082	fi
8083	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8084	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8085$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8086if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8087  $as_echo_n "(cached) " >&6
8088else
8089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8090/* end confdefs.h.  */
8091int i;
8092_ACEOF
8093if ac_fn_c_try_compile "$LINENO"; then :
8094  xorg_cv_cc_flag_unused_command_line_argument=yes
8095else
8096  xorg_cv_cc_flag_unused_command_line_argument=no
8097fi
8098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8099fi
8100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8101$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8102	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8103	CFLAGS="$xorg_testset_save_CFLAGS"
8104fi
8105
8106found="no"
8107
8108	if test $found = "no" ; then
8109		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8110			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8111		fi
8112
8113		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8114			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8115		fi
8116
8117		CFLAGS="$CFLAGS -Werror=array-bounds"
8118
8119		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8120$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8121		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8122		if eval \${$cacheid+:} false; then :
8123  $as_echo_n "(cached) " >&6
8124else
8125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8126/* end confdefs.h.  */
8127int i;
8128int
8129main ()
8130{
8131
8132  ;
8133  return 0;
8134}
8135_ACEOF
8136if ac_fn_c_try_link "$LINENO"; then :
8137  eval $cacheid=yes
8138else
8139  eval $cacheid=no
8140fi
8141rm -f core conftest.err conftest.$ac_objext \
8142    conftest$ac_exeext conftest.$ac_ext
8143fi
8144
8145
8146		CFLAGS="$xorg_testset_save_CFLAGS"
8147
8148		eval supported=\$$cacheid
8149		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8150$as_echo "$supported" >&6; }
8151		if test "$supported" = "yes" ; then
8152			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8153			found="yes"
8154		fi
8155	fi
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171xorg_testset_save_CFLAGS="$CFLAGS"
8172
8173if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8174	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8175	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8176$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8177if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8178  $as_echo_n "(cached) " >&6
8179else
8180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8181/* end confdefs.h.  */
8182int i;
8183_ACEOF
8184if ac_fn_c_try_compile "$LINENO"; then :
8185  xorg_cv_cc_flag_unknown_warning_option=yes
8186else
8187  xorg_cv_cc_flag_unknown_warning_option=no
8188fi
8189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8190fi
8191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8192$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8193	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8194	CFLAGS="$xorg_testset_save_CFLAGS"
8195fi
8196
8197if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8198	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8199		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8200	fi
8201	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8202	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8203$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8204if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8205  $as_echo_n "(cached) " >&6
8206else
8207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8208/* end confdefs.h.  */
8209int i;
8210_ACEOF
8211if ac_fn_c_try_compile "$LINENO"; then :
8212  xorg_cv_cc_flag_unused_command_line_argument=yes
8213else
8214  xorg_cv_cc_flag_unused_command_line_argument=no
8215fi
8216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8217fi
8218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8219$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8220	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8221	CFLAGS="$xorg_testset_save_CFLAGS"
8222fi
8223
8224found="no"
8225
8226	if test $found = "no" ; then
8227		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8228			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8229		fi
8230
8231		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8232			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8233		fi
8234
8235		CFLAGS="$CFLAGS -Werror=write-strings"
8236
8237		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8238$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8239		cacheid=xorg_cv_cc_flag__Werror_write_strings
8240		if eval \${$cacheid+:} false; then :
8241  $as_echo_n "(cached) " >&6
8242else
8243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8244/* end confdefs.h.  */
8245int i;
8246int
8247main ()
8248{
8249
8250  ;
8251  return 0;
8252}
8253_ACEOF
8254if ac_fn_c_try_link "$LINENO"; then :
8255  eval $cacheid=yes
8256else
8257  eval $cacheid=no
8258fi
8259rm -f core conftest.err conftest.$ac_objext \
8260    conftest$ac_exeext conftest.$ac_ext
8261fi
8262
8263
8264		CFLAGS="$xorg_testset_save_CFLAGS"
8265
8266		eval supported=\$$cacheid
8267		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8268$as_echo "$supported" >&6; }
8269		if test "$supported" = "yes" ; then
8270			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8271			found="yes"
8272		fi
8273	fi
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289xorg_testset_save_CFLAGS="$CFLAGS"
8290
8291if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8292	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8293	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8294$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8295if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8296  $as_echo_n "(cached) " >&6
8297else
8298  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8299/* end confdefs.h.  */
8300int i;
8301_ACEOF
8302if ac_fn_c_try_compile "$LINENO"; then :
8303  xorg_cv_cc_flag_unknown_warning_option=yes
8304else
8305  xorg_cv_cc_flag_unknown_warning_option=no
8306fi
8307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8308fi
8309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8310$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8311	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8312	CFLAGS="$xorg_testset_save_CFLAGS"
8313fi
8314
8315if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8316	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8317		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8318	fi
8319	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8320	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8321$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8322if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8323  $as_echo_n "(cached) " >&6
8324else
8325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8326/* end confdefs.h.  */
8327int i;
8328_ACEOF
8329if ac_fn_c_try_compile "$LINENO"; then :
8330  xorg_cv_cc_flag_unused_command_line_argument=yes
8331else
8332  xorg_cv_cc_flag_unused_command_line_argument=no
8333fi
8334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8335fi
8336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8337$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8338	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8339	CFLAGS="$xorg_testset_save_CFLAGS"
8340fi
8341
8342found="no"
8343
8344	if test $found = "no" ; then
8345		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8346			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8347		fi
8348
8349		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8350			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8351		fi
8352
8353		CFLAGS="$CFLAGS -Werror=address"
8354
8355		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8356$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8357		cacheid=xorg_cv_cc_flag__Werror_address
8358		if eval \${$cacheid+:} false; then :
8359  $as_echo_n "(cached) " >&6
8360else
8361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8362/* end confdefs.h.  */
8363int i;
8364int
8365main ()
8366{
8367
8368  ;
8369  return 0;
8370}
8371_ACEOF
8372if ac_fn_c_try_link "$LINENO"; then :
8373  eval $cacheid=yes
8374else
8375  eval $cacheid=no
8376fi
8377rm -f core conftest.err conftest.$ac_objext \
8378    conftest$ac_exeext conftest.$ac_ext
8379fi
8380
8381
8382		CFLAGS="$xorg_testset_save_CFLAGS"
8383
8384		eval supported=\$$cacheid
8385		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8386$as_echo "$supported" >&6; }
8387		if test "$supported" = "yes" ; then
8388			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8389			found="yes"
8390		fi
8391	fi
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407xorg_testset_save_CFLAGS="$CFLAGS"
8408
8409if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8410	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8411	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8412$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8413if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8414  $as_echo_n "(cached) " >&6
8415else
8416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8417/* end confdefs.h.  */
8418int i;
8419_ACEOF
8420if ac_fn_c_try_compile "$LINENO"; then :
8421  xorg_cv_cc_flag_unknown_warning_option=yes
8422else
8423  xorg_cv_cc_flag_unknown_warning_option=no
8424fi
8425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8426fi
8427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8428$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8429	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8430	CFLAGS="$xorg_testset_save_CFLAGS"
8431fi
8432
8433if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8434	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8435		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8436	fi
8437	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8438	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8439$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8440if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8441  $as_echo_n "(cached) " >&6
8442else
8443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8444/* end confdefs.h.  */
8445int i;
8446_ACEOF
8447if ac_fn_c_try_compile "$LINENO"; then :
8448  xorg_cv_cc_flag_unused_command_line_argument=yes
8449else
8450  xorg_cv_cc_flag_unused_command_line_argument=no
8451fi
8452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8453fi
8454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8455$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8456	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8457	CFLAGS="$xorg_testset_save_CFLAGS"
8458fi
8459
8460found="no"
8461
8462	if test $found = "no" ; then
8463		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8464			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8465		fi
8466
8467		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8468			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8469		fi
8470
8471		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8472
8473		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8474$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8475		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8476		if eval \${$cacheid+:} false; then :
8477  $as_echo_n "(cached) " >&6
8478else
8479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8480/* end confdefs.h.  */
8481int i;
8482int
8483main ()
8484{
8485
8486  ;
8487  return 0;
8488}
8489_ACEOF
8490if ac_fn_c_try_link "$LINENO"; then :
8491  eval $cacheid=yes
8492else
8493  eval $cacheid=no
8494fi
8495rm -f core conftest.err conftest.$ac_objext \
8496    conftest$ac_exeext conftest.$ac_ext
8497fi
8498
8499
8500		CFLAGS="$xorg_testset_save_CFLAGS"
8501
8502		eval supported=\$$cacheid
8503		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8504$as_echo "$supported" >&6; }
8505		if test "$supported" = "yes" ; then
8506			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8507			found="yes"
8508		fi
8509	fi
8510
8511	if test $found = "no" ; then
8512		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8513			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8514		fi
8515
8516		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8517			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8518		fi
8519
8520		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8521
8522		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8523$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8524		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8525		if eval \${$cacheid+:} false; then :
8526  $as_echo_n "(cached) " >&6
8527else
8528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8529/* end confdefs.h.  */
8530int i;
8531int
8532main ()
8533{
8534
8535  ;
8536  return 0;
8537}
8538_ACEOF
8539if ac_fn_c_try_link "$LINENO"; then :
8540  eval $cacheid=yes
8541else
8542  eval $cacheid=no
8543fi
8544rm -f core conftest.err conftest.$ac_objext \
8545    conftest$ac_exeext conftest.$ac_ext
8546fi
8547
8548
8549		CFLAGS="$xorg_testset_save_CFLAGS"
8550
8551		eval supported=\$$cacheid
8552		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8553$as_echo "$supported" >&6; }
8554		if test "$supported" = "yes" ; then
8555			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8556			found="yes"
8557		fi
8558	fi
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574xorg_testset_save_CFLAGS="$CFLAGS"
8575
8576if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8577	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8578	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8579$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8580if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8581  $as_echo_n "(cached) " >&6
8582else
8583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8584/* end confdefs.h.  */
8585int i;
8586_ACEOF
8587if ac_fn_c_try_compile "$LINENO"; then :
8588  xorg_cv_cc_flag_unknown_warning_option=yes
8589else
8590  xorg_cv_cc_flag_unknown_warning_option=no
8591fi
8592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8593fi
8594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8595$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8596	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8597	CFLAGS="$xorg_testset_save_CFLAGS"
8598fi
8599
8600if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8601	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8602		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8603	fi
8604	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8605	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8606$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8607if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8608  $as_echo_n "(cached) " >&6
8609else
8610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8611/* end confdefs.h.  */
8612int i;
8613_ACEOF
8614if ac_fn_c_try_compile "$LINENO"; then :
8615  xorg_cv_cc_flag_unused_command_line_argument=yes
8616else
8617  xorg_cv_cc_flag_unused_command_line_argument=no
8618fi
8619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8620fi
8621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8622$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8623	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8624	CFLAGS="$xorg_testset_save_CFLAGS"
8625fi
8626
8627found="no"
8628
8629	if test $found = "no" ; then
8630		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8631			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8632		fi
8633
8634		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8635			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8636		fi
8637
8638		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8639
8640		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8641$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8642		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8643		if eval \${$cacheid+:} false; then :
8644  $as_echo_n "(cached) " >&6
8645else
8646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8647/* end confdefs.h.  */
8648int i;
8649int
8650main ()
8651{
8652
8653  ;
8654  return 0;
8655}
8656_ACEOF
8657if ac_fn_c_try_link "$LINENO"; then :
8658  eval $cacheid=yes
8659else
8660  eval $cacheid=no
8661fi
8662rm -f core conftest.err conftest.$ac_objext \
8663    conftest$ac_exeext conftest.$ac_ext
8664fi
8665
8666
8667		CFLAGS="$xorg_testset_save_CFLAGS"
8668
8669		eval supported=\$$cacheid
8670		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8671$as_echo "$supported" >&6; }
8672		if test "$supported" = "yes" ; then
8673			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8674			found="yes"
8675		fi
8676	fi
8677
8678 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8679else
8680{ $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
8681$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;}
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695xorg_testset_save_CFLAGS="$CFLAGS"
8696
8697if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8698	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8699	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8700$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8701if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8702  $as_echo_n "(cached) " >&6
8703else
8704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8705/* end confdefs.h.  */
8706int i;
8707_ACEOF
8708if ac_fn_c_try_compile "$LINENO"; then :
8709  xorg_cv_cc_flag_unknown_warning_option=yes
8710else
8711  xorg_cv_cc_flag_unknown_warning_option=no
8712fi
8713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8714fi
8715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8716$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8717	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8718	CFLAGS="$xorg_testset_save_CFLAGS"
8719fi
8720
8721if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8722	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8723		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8724	fi
8725	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8726	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8727$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8728if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8729  $as_echo_n "(cached) " >&6
8730else
8731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732/* end confdefs.h.  */
8733int i;
8734_ACEOF
8735if ac_fn_c_try_compile "$LINENO"; then :
8736  xorg_cv_cc_flag_unused_command_line_argument=yes
8737else
8738  xorg_cv_cc_flag_unused_command_line_argument=no
8739fi
8740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8741fi
8742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8743$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8744	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8745	CFLAGS="$xorg_testset_save_CFLAGS"
8746fi
8747
8748found="no"
8749
8750	if test $found = "no" ; then
8751		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8752			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8753		fi
8754
8755		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8756			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8757		fi
8758
8759		CFLAGS="$CFLAGS -Wimplicit"
8760
8761		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8762$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8763		cacheid=xorg_cv_cc_flag__Wimplicit
8764		if eval \${$cacheid+:} false; then :
8765  $as_echo_n "(cached) " >&6
8766else
8767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8768/* end confdefs.h.  */
8769int i;
8770int
8771main ()
8772{
8773
8774  ;
8775  return 0;
8776}
8777_ACEOF
8778if ac_fn_c_try_link "$LINENO"; then :
8779  eval $cacheid=yes
8780else
8781  eval $cacheid=no
8782fi
8783rm -f core conftest.err conftest.$ac_objext \
8784    conftest$ac_exeext conftest.$ac_ext
8785fi
8786
8787
8788		CFLAGS="$xorg_testset_save_CFLAGS"
8789
8790		eval supported=\$$cacheid
8791		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8792$as_echo "$supported" >&6; }
8793		if test "$supported" = "yes" ; then
8794			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8795			found="yes"
8796		fi
8797	fi
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813xorg_testset_save_CFLAGS="$CFLAGS"
8814
8815if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8816	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8817	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8818$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8819if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8820  $as_echo_n "(cached) " >&6
8821else
8822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8823/* end confdefs.h.  */
8824int i;
8825_ACEOF
8826if ac_fn_c_try_compile "$LINENO"; then :
8827  xorg_cv_cc_flag_unknown_warning_option=yes
8828else
8829  xorg_cv_cc_flag_unknown_warning_option=no
8830fi
8831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8832fi
8833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8834$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8835	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8836	CFLAGS="$xorg_testset_save_CFLAGS"
8837fi
8838
8839if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8840	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8841		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8842	fi
8843	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8844	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8845$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8846if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8847  $as_echo_n "(cached) " >&6
8848else
8849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8850/* end confdefs.h.  */
8851int i;
8852_ACEOF
8853if ac_fn_c_try_compile "$LINENO"; then :
8854  xorg_cv_cc_flag_unused_command_line_argument=yes
8855else
8856  xorg_cv_cc_flag_unused_command_line_argument=no
8857fi
8858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8859fi
8860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8861$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8862	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8863	CFLAGS="$xorg_testset_save_CFLAGS"
8864fi
8865
8866found="no"
8867
8868	if test $found = "no" ; then
8869		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8870			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8871		fi
8872
8873		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8874			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8875		fi
8876
8877		CFLAGS="$CFLAGS -Wnonnull"
8878
8879		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8880$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8881		cacheid=xorg_cv_cc_flag__Wnonnull
8882		if eval \${$cacheid+:} false; then :
8883  $as_echo_n "(cached) " >&6
8884else
8885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8886/* end confdefs.h.  */
8887int i;
8888int
8889main ()
8890{
8891
8892  ;
8893  return 0;
8894}
8895_ACEOF
8896if ac_fn_c_try_link "$LINENO"; then :
8897  eval $cacheid=yes
8898else
8899  eval $cacheid=no
8900fi
8901rm -f core conftest.err conftest.$ac_objext \
8902    conftest$ac_exeext conftest.$ac_ext
8903fi
8904
8905
8906		CFLAGS="$xorg_testset_save_CFLAGS"
8907
8908		eval supported=\$$cacheid
8909		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8910$as_echo "$supported" >&6; }
8911		if test "$supported" = "yes" ; then
8912			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8913			found="yes"
8914		fi
8915	fi
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931xorg_testset_save_CFLAGS="$CFLAGS"
8932
8933if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8934	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8935	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8936$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8937if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8938  $as_echo_n "(cached) " >&6
8939else
8940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8941/* end confdefs.h.  */
8942int i;
8943_ACEOF
8944if ac_fn_c_try_compile "$LINENO"; then :
8945  xorg_cv_cc_flag_unknown_warning_option=yes
8946else
8947  xorg_cv_cc_flag_unknown_warning_option=no
8948fi
8949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8950fi
8951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8952$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8953	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8954	CFLAGS="$xorg_testset_save_CFLAGS"
8955fi
8956
8957if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8958	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8959		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8960	fi
8961	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8962	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8963$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8964if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8965  $as_echo_n "(cached) " >&6
8966else
8967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8968/* end confdefs.h.  */
8969int i;
8970_ACEOF
8971if ac_fn_c_try_compile "$LINENO"; then :
8972  xorg_cv_cc_flag_unused_command_line_argument=yes
8973else
8974  xorg_cv_cc_flag_unused_command_line_argument=no
8975fi
8976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8977fi
8978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8979$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8980	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8981	CFLAGS="$xorg_testset_save_CFLAGS"
8982fi
8983
8984found="no"
8985
8986	if test $found = "no" ; then
8987		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8988			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8989		fi
8990
8991		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8992			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8993		fi
8994
8995		CFLAGS="$CFLAGS -Winit-self"
8996
8997		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8998$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8999		cacheid=xorg_cv_cc_flag__Winit_self
9000		if eval \${$cacheid+:} false; then :
9001  $as_echo_n "(cached) " >&6
9002else
9003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9004/* end confdefs.h.  */
9005int i;
9006int
9007main ()
9008{
9009
9010  ;
9011  return 0;
9012}
9013_ACEOF
9014if ac_fn_c_try_link "$LINENO"; then :
9015  eval $cacheid=yes
9016else
9017  eval $cacheid=no
9018fi
9019rm -f core conftest.err conftest.$ac_objext \
9020    conftest$ac_exeext conftest.$ac_ext
9021fi
9022
9023
9024		CFLAGS="$xorg_testset_save_CFLAGS"
9025
9026		eval supported=\$$cacheid
9027		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9028$as_echo "$supported" >&6; }
9029		if test "$supported" = "yes" ; then
9030			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9031			found="yes"
9032		fi
9033	fi
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049xorg_testset_save_CFLAGS="$CFLAGS"
9050
9051if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9052	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9053	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9054$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9055if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9056  $as_echo_n "(cached) " >&6
9057else
9058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9059/* end confdefs.h.  */
9060int i;
9061_ACEOF
9062if ac_fn_c_try_compile "$LINENO"; then :
9063  xorg_cv_cc_flag_unknown_warning_option=yes
9064else
9065  xorg_cv_cc_flag_unknown_warning_option=no
9066fi
9067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9068fi
9069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9070$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9071	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9072	CFLAGS="$xorg_testset_save_CFLAGS"
9073fi
9074
9075if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9076	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9077		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9078	fi
9079	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9080	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9081$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9082if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9083  $as_echo_n "(cached) " >&6
9084else
9085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9086/* end confdefs.h.  */
9087int i;
9088_ACEOF
9089if ac_fn_c_try_compile "$LINENO"; then :
9090  xorg_cv_cc_flag_unused_command_line_argument=yes
9091else
9092  xorg_cv_cc_flag_unused_command_line_argument=no
9093fi
9094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9095fi
9096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9097$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9098	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9099	CFLAGS="$xorg_testset_save_CFLAGS"
9100fi
9101
9102found="no"
9103
9104	if test $found = "no" ; then
9105		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9106			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9107		fi
9108
9109		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9110			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9111		fi
9112
9113		CFLAGS="$CFLAGS -Wmain"
9114
9115		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9116$as_echo_n "checking if $CC supports -Wmain... " >&6; }
9117		cacheid=xorg_cv_cc_flag__Wmain
9118		if eval \${$cacheid+:} false; then :
9119  $as_echo_n "(cached) " >&6
9120else
9121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9122/* end confdefs.h.  */
9123int i;
9124int
9125main ()
9126{
9127
9128  ;
9129  return 0;
9130}
9131_ACEOF
9132if ac_fn_c_try_link "$LINENO"; then :
9133  eval $cacheid=yes
9134else
9135  eval $cacheid=no
9136fi
9137rm -f core conftest.err conftest.$ac_objext \
9138    conftest$ac_exeext conftest.$ac_ext
9139fi
9140
9141
9142		CFLAGS="$xorg_testset_save_CFLAGS"
9143
9144		eval supported=\$$cacheid
9145		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9146$as_echo "$supported" >&6; }
9147		if test "$supported" = "yes" ; then
9148			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9149			found="yes"
9150		fi
9151	fi
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167xorg_testset_save_CFLAGS="$CFLAGS"
9168
9169if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9170	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9171	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9172$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9173if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9174  $as_echo_n "(cached) " >&6
9175else
9176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9177/* end confdefs.h.  */
9178int i;
9179_ACEOF
9180if ac_fn_c_try_compile "$LINENO"; then :
9181  xorg_cv_cc_flag_unknown_warning_option=yes
9182else
9183  xorg_cv_cc_flag_unknown_warning_option=no
9184fi
9185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9186fi
9187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9188$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9189	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9190	CFLAGS="$xorg_testset_save_CFLAGS"
9191fi
9192
9193if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9194	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9195		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9196	fi
9197	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9198	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9199$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9200if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9201  $as_echo_n "(cached) " >&6
9202else
9203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9204/* end confdefs.h.  */
9205int i;
9206_ACEOF
9207if ac_fn_c_try_compile "$LINENO"; then :
9208  xorg_cv_cc_flag_unused_command_line_argument=yes
9209else
9210  xorg_cv_cc_flag_unused_command_line_argument=no
9211fi
9212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9213fi
9214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9215$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9216	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9217	CFLAGS="$xorg_testset_save_CFLAGS"
9218fi
9219
9220found="no"
9221
9222	if test $found = "no" ; then
9223		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9224			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9225		fi
9226
9227		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9228			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9229		fi
9230
9231		CFLAGS="$CFLAGS -Wmissing-braces"
9232
9233		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9234$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9235		cacheid=xorg_cv_cc_flag__Wmissing_braces
9236		if eval \${$cacheid+:} false; then :
9237  $as_echo_n "(cached) " >&6
9238else
9239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9240/* end confdefs.h.  */
9241int i;
9242int
9243main ()
9244{
9245
9246  ;
9247  return 0;
9248}
9249_ACEOF
9250if ac_fn_c_try_link "$LINENO"; then :
9251  eval $cacheid=yes
9252else
9253  eval $cacheid=no
9254fi
9255rm -f core conftest.err conftest.$ac_objext \
9256    conftest$ac_exeext conftest.$ac_ext
9257fi
9258
9259
9260		CFLAGS="$xorg_testset_save_CFLAGS"
9261
9262		eval supported=\$$cacheid
9263		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9264$as_echo "$supported" >&6; }
9265		if test "$supported" = "yes" ; then
9266			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9267			found="yes"
9268		fi
9269	fi
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285xorg_testset_save_CFLAGS="$CFLAGS"
9286
9287if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9288	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9289	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9290$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9291if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9292  $as_echo_n "(cached) " >&6
9293else
9294  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9295/* end confdefs.h.  */
9296int i;
9297_ACEOF
9298if ac_fn_c_try_compile "$LINENO"; then :
9299  xorg_cv_cc_flag_unknown_warning_option=yes
9300else
9301  xorg_cv_cc_flag_unknown_warning_option=no
9302fi
9303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9304fi
9305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9306$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9307	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9308	CFLAGS="$xorg_testset_save_CFLAGS"
9309fi
9310
9311if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9312	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9313		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9314	fi
9315	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9316	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9317$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9318if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9319  $as_echo_n "(cached) " >&6
9320else
9321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9322/* end confdefs.h.  */
9323int i;
9324_ACEOF
9325if ac_fn_c_try_compile "$LINENO"; then :
9326  xorg_cv_cc_flag_unused_command_line_argument=yes
9327else
9328  xorg_cv_cc_flag_unused_command_line_argument=no
9329fi
9330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9331fi
9332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9333$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9334	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9335	CFLAGS="$xorg_testset_save_CFLAGS"
9336fi
9337
9338found="no"
9339
9340	if test $found = "no" ; then
9341		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9342			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9343		fi
9344
9345		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9346			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9347		fi
9348
9349		CFLAGS="$CFLAGS -Wsequence-point"
9350
9351		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9352$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9353		cacheid=xorg_cv_cc_flag__Wsequence_point
9354		if eval \${$cacheid+:} false; then :
9355  $as_echo_n "(cached) " >&6
9356else
9357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9358/* end confdefs.h.  */
9359int i;
9360int
9361main ()
9362{
9363
9364  ;
9365  return 0;
9366}
9367_ACEOF
9368if ac_fn_c_try_link "$LINENO"; then :
9369  eval $cacheid=yes
9370else
9371  eval $cacheid=no
9372fi
9373rm -f core conftest.err conftest.$ac_objext \
9374    conftest$ac_exeext conftest.$ac_ext
9375fi
9376
9377
9378		CFLAGS="$xorg_testset_save_CFLAGS"
9379
9380		eval supported=\$$cacheid
9381		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9382$as_echo "$supported" >&6; }
9383		if test "$supported" = "yes" ; then
9384			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9385			found="yes"
9386		fi
9387	fi
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403xorg_testset_save_CFLAGS="$CFLAGS"
9404
9405if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9406	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9407	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9408$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9409if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9410  $as_echo_n "(cached) " >&6
9411else
9412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9413/* end confdefs.h.  */
9414int i;
9415_ACEOF
9416if ac_fn_c_try_compile "$LINENO"; then :
9417  xorg_cv_cc_flag_unknown_warning_option=yes
9418else
9419  xorg_cv_cc_flag_unknown_warning_option=no
9420fi
9421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9422fi
9423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9424$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9425	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9426	CFLAGS="$xorg_testset_save_CFLAGS"
9427fi
9428
9429if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9430	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9431		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9432	fi
9433	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9434	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9435$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9436if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9437  $as_echo_n "(cached) " >&6
9438else
9439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9440/* end confdefs.h.  */
9441int i;
9442_ACEOF
9443if ac_fn_c_try_compile "$LINENO"; then :
9444  xorg_cv_cc_flag_unused_command_line_argument=yes
9445else
9446  xorg_cv_cc_flag_unused_command_line_argument=no
9447fi
9448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9449fi
9450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9451$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9452	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9453	CFLAGS="$xorg_testset_save_CFLAGS"
9454fi
9455
9456found="no"
9457
9458	if test $found = "no" ; then
9459		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9460			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9461		fi
9462
9463		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9464			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9465		fi
9466
9467		CFLAGS="$CFLAGS -Wreturn-type"
9468
9469		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9470$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9471		cacheid=xorg_cv_cc_flag__Wreturn_type
9472		if eval \${$cacheid+:} false; then :
9473  $as_echo_n "(cached) " >&6
9474else
9475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9476/* end confdefs.h.  */
9477int i;
9478int
9479main ()
9480{
9481
9482  ;
9483  return 0;
9484}
9485_ACEOF
9486if ac_fn_c_try_link "$LINENO"; then :
9487  eval $cacheid=yes
9488else
9489  eval $cacheid=no
9490fi
9491rm -f core conftest.err conftest.$ac_objext \
9492    conftest$ac_exeext conftest.$ac_ext
9493fi
9494
9495
9496		CFLAGS="$xorg_testset_save_CFLAGS"
9497
9498		eval supported=\$$cacheid
9499		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9500$as_echo "$supported" >&6; }
9501		if test "$supported" = "yes" ; then
9502			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9503			found="yes"
9504		fi
9505	fi
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521xorg_testset_save_CFLAGS="$CFLAGS"
9522
9523if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9524	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9525	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9526$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9527if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9528  $as_echo_n "(cached) " >&6
9529else
9530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9531/* end confdefs.h.  */
9532int i;
9533_ACEOF
9534if ac_fn_c_try_compile "$LINENO"; then :
9535  xorg_cv_cc_flag_unknown_warning_option=yes
9536else
9537  xorg_cv_cc_flag_unknown_warning_option=no
9538fi
9539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9540fi
9541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9542$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9543	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9544	CFLAGS="$xorg_testset_save_CFLAGS"
9545fi
9546
9547if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9548	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9549		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9550	fi
9551	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9552	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9553$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9554if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9555  $as_echo_n "(cached) " >&6
9556else
9557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9558/* end confdefs.h.  */
9559int i;
9560_ACEOF
9561if ac_fn_c_try_compile "$LINENO"; then :
9562  xorg_cv_cc_flag_unused_command_line_argument=yes
9563else
9564  xorg_cv_cc_flag_unused_command_line_argument=no
9565fi
9566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9567fi
9568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9569$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9570	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9571	CFLAGS="$xorg_testset_save_CFLAGS"
9572fi
9573
9574found="no"
9575
9576	if test $found = "no" ; then
9577		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9578			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9579		fi
9580
9581		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9582			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9583		fi
9584
9585		CFLAGS="$CFLAGS -Wtrigraphs"
9586
9587		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9588$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9589		cacheid=xorg_cv_cc_flag__Wtrigraphs
9590		if eval \${$cacheid+:} false; then :
9591  $as_echo_n "(cached) " >&6
9592else
9593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9594/* end confdefs.h.  */
9595int i;
9596int
9597main ()
9598{
9599
9600  ;
9601  return 0;
9602}
9603_ACEOF
9604if ac_fn_c_try_link "$LINENO"; then :
9605  eval $cacheid=yes
9606else
9607  eval $cacheid=no
9608fi
9609rm -f core conftest.err conftest.$ac_objext \
9610    conftest$ac_exeext conftest.$ac_ext
9611fi
9612
9613
9614		CFLAGS="$xorg_testset_save_CFLAGS"
9615
9616		eval supported=\$$cacheid
9617		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9618$as_echo "$supported" >&6; }
9619		if test "$supported" = "yes" ; then
9620			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9621			found="yes"
9622		fi
9623	fi
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639xorg_testset_save_CFLAGS="$CFLAGS"
9640
9641if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9642	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9643	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9644$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9645if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9646  $as_echo_n "(cached) " >&6
9647else
9648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9649/* end confdefs.h.  */
9650int i;
9651_ACEOF
9652if ac_fn_c_try_compile "$LINENO"; then :
9653  xorg_cv_cc_flag_unknown_warning_option=yes
9654else
9655  xorg_cv_cc_flag_unknown_warning_option=no
9656fi
9657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9658fi
9659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9660$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9661	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9662	CFLAGS="$xorg_testset_save_CFLAGS"
9663fi
9664
9665if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9666	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9667		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9668	fi
9669	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9670	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9671$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9672if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9673  $as_echo_n "(cached) " >&6
9674else
9675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9676/* end confdefs.h.  */
9677int i;
9678_ACEOF
9679if ac_fn_c_try_compile "$LINENO"; then :
9680  xorg_cv_cc_flag_unused_command_line_argument=yes
9681else
9682  xorg_cv_cc_flag_unused_command_line_argument=no
9683fi
9684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9685fi
9686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9687$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9688	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9689	CFLAGS="$xorg_testset_save_CFLAGS"
9690fi
9691
9692found="no"
9693
9694	if test $found = "no" ; then
9695		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9696			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9697		fi
9698
9699		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9700			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9701		fi
9702
9703		CFLAGS="$CFLAGS -Warray-bounds"
9704
9705		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9706$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9707		cacheid=xorg_cv_cc_flag__Warray_bounds
9708		if eval \${$cacheid+:} false; then :
9709  $as_echo_n "(cached) " >&6
9710else
9711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9712/* end confdefs.h.  */
9713int i;
9714int
9715main ()
9716{
9717
9718  ;
9719  return 0;
9720}
9721_ACEOF
9722if ac_fn_c_try_link "$LINENO"; then :
9723  eval $cacheid=yes
9724else
9725  eval $cacheid=no
9726fi
9727rm -f core conftest.err conftest.$ac_objext \
9728    conftest$ac_exeext conftest.$ac_ext
9729fi
9730
9731
9732		CFLAGS="$xorg_testset_save_CFLAGS"
9733
9734		eval supported=\$$cacheid
9735		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9736$as_echo "$supported" >&6; }
9737		if test "$supported" = "yes" ; then
9738			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9739			found="yes"
9740		fi
9741	fi
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757xorg_testset_save_CFLAGS="$CFLAGS"
9758
9759if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9760	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9761	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9762$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9763if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9764  $as_echo_n "(cached) " >&6
9765else
9766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9767/* end confdefs.h.  */
9768int i;
9769_ACEOF
9770if ac_fn_c_try_compile "$LINENO"; then :
9771  xorg_cv_cc_flag_unknown_warning_option=yes
9772else
9773  xorg_cv_cc_flag_unknown_warning_option=no
9774fi
9775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9776fi
9777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9778$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9779	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9780	CFLAGS="$xorg_testset_save_CFLAGS"
9781fi
9782
9783if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9784	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9785		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9786	fi
9787	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9788	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9789$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9790if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9791  $as_echo_n "(cached) " >&6
9792else
9793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9794/* end confdefs.h.  */
9795int i;
9796_ACEOF
9797if ac_fn_c_try_compile "$LINENO"; then :
9798  xorg_cv_cc_flag_unused_command_line_argument=yes
9799else
9800  xorg_cv_cc_flag_unused_command_line_argument=no
9801fi
9802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9803fi
9804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9805$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9806	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9807	CFLAGS="$xorg_testset_save_CFLAGS"
9808fi
9809
9810found="no"
9811
9812	if test $found = "no" ; then
9813		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9814			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9815		fi
9816
9817		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9818			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9819		fi
9820
9821		CFLAGS="$CFLAGS -Wwrite-strings"
9822
9823		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9824$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9825		cacheid=xorg_cv_cc_flag__Wwrite_strings
9826		if eval \${$cacheid+:} false; then :
9827  $as_echo_n "(cached) " >&6
9828else
9829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9830/* end confdefs.h.  */
9831int i;
9832int
9833main ()
9834{
9835
9836  ;
9837  return 0;
9838}
9839_ACEOF
9840if ac_fn_c_try_link "$LINENO"; then :
9841  eval $cacheid=yes
9842else
9843  eval $cacheid=no
9844fi
9845rm -f core conftest.err conftest.$ac_objext \
9846    conftest$ac_exeext conftest.$ac_ext
9847fi
9848
9849
9850		CFLAGS="$xorg_testset_save_CFLAGS"
9851
9852		eval supported=\$$cacheid
9853		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9854$as_echo "$supported" >&6; }
9855		if test "$supported" = "yes" ; then
9856			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9857			found="yes"
9858		fi
9859	fi
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875xorg_testset_save_CFLAGS="$CFLAGS"
9876
9877if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9878	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9879	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9880$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9881if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9882  $as_echo_n "(cached) " >&6
9883else
9884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9885/* end confdefs.h.  */
9886int i;
9887_ACEOF
9888if ac_fn_c_try_compile "$LINENO"; then :
9889  xorg_cv_cc_flag_unknown_warning_option=yes
9890else
9891  xorg_cv_cc_flag_unknown_warning_option=no
9892fi
9893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9894fi
9895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9896$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9897	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9898	CFLAGS="$xorg_testset_save_CFLAGS"
9899fi
9900
9901if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9902	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9903		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9904	fi
9905	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9906	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9907$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9908if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9909  $as_echo_n "(cached) " >&6
9910else
9911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9912/* end confdefs.h.  */
9913int i;
9914_ACEOF
9915if ac_fn_c_try_compile "$LINENO"; then :
9916  xorg_cv_cc_flag_unused_command_line_argument=yes
9917else
9918  xorg_cv_cc_flag_unused_command_line_argument=no
9919fi
9920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9921fi
9922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9923$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9924	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9925	CFLAGS="$xorg_testset_save_CFLAGS"
9926fi
9927
9928found="no"
9929
9930	if test $found = "no" ; then
9931		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9932			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9933		fi
9934
9935		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9936			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9937		fi
9938
9939		CFLAGS="$CFLAGS -Waddress"
9940
9941		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9942$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9943		cacheid=xorg_cv_cc_flag__Waddress
9944		if eval \${$cacheid+:} false; then :
9945  $as_echo_n "(cached) " >&6
9946else
9947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9948/* end confdefs.h.  */
9949int i;
9950int
9951main ()
9952{
9953
9954  ;
9955  return 0;
9956}
9957_ACEOF
9958if ac_fn_c_try_link "$LINENO"; then :
9959  eval $cacheid=yes
9960else
9961  eval $cacheid=no
9962fi
9963rm -f core conftest.err conftest.$ac_objext \
9964    conftest$ac_exeext conftest.$ac_ext
9965fi
9966
9967
9968		CFLAGS="$xorg_testset_save_CFLAGS"
9969
9970		eval supported=\$$cacheid
9971		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9972$as_echo "$supported" >&6; }
9973		if test "$supported" = "yes" ; then
9974			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9975			found="yes"
9976		fi
9977	fi
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993xorg_testset_save_CFLAGS="$CFLAGS"
9994
9995if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9996	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9997	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9998$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9999if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10000  $as_echo_n "(cached) " >&6
10001else
10002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10003/* end confdefs.h.  */
10004int i;
10005_ACEOF
10006if ac_fn_c_try_compile "$LINENO"; then :
10007  xorg_cv_cc_flag_unknown_warning_option=yes
10008else
10009  xorg_cv_cc_flag_unknown_warning_option=no
10010fi
10011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10012fi
10013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10014$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10015	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10016	CFLAGS="$xorg_testset_save_CFLAGS"
10017fi
10018
10019if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10020	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10021		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10022	fi
10023	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10024	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10025$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10026if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10027  $as_echo_n "(cached) " >&6
10028else
10029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10030/* end confdefs.h.  */
10031int i;
10032_ACEOF
10033if ac_fn_c_try_compile "$LINENO"; then :
10034  xorg_cv_cc_flag_unused_command_line_argument=yes
10035else
10036  xorg_cv_cc_flag_unused_command_line_argument=no
10037fi
10038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10039fi
10040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10041$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10042	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10043	CFLAGS="$xorg_testset_save_CFLAGS"
10044fi
10045
10046found="no"
10047
10048	if test $found = "no" ; then
10049		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10050			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10051		fi
10052
10053		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10054			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10055		fi
10056
10057		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10058
10059		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10060$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10061		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10062		if eval \${$cacheid+:} false; then :
10063  $as_echo_n "(cached) " >&6
10064else
10065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10066/* end confdefs.h.  */
10067int i;
10068int
10069main ()
10070{
10071
10072  ;
10073  return 0;
10074}
10075_ACEOF
10076if ac_fn_c_try_link "$LINENO"; then :
10077  eval $cacheid=yes
10078else
10079  eval $cacheid=no
10080fi
10081rm -f core conftest.err conftest.$ac_objext \
10082    conftest$ac_exeext conftest.$ac_ext
10083fi
10084
10085
10086		CFLAGS="$xorg_testset_save_CFLAGS"
10087
10088		eval supported=\$$cacheid
10089		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10090$as_echo "$supported" >&6; }
10091		if test "$supported" = "yes" ; then
10092			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10093			found="yes"
10094		fi
10095	fi
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111xorg_testset_save_CFLAGS="$CFLAGS"
10112
10113if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10114	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10115	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10116$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10117if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10118  $as_echo_n "(cached) " >&6
10119else
10120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10121/* end confdefs.h.  */
10122int i;
10123_ACEOF
10124if ac_fn_c_try_compile "$LINENO"; then :
10125  xorg_cv_cc_flag_unknown_warning_option=yes
10126else
10127  xorg_cv_cc_flag_unknown_warning_option=no
10128fi
10129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10130fi
10131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10132$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10133	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10134	CFLAGS="$xorg_testset_save_CFLAGS"
10135fi
10136
10137if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10138	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10139		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10140	fi
10141	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10142	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10143$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10144if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10145  $as_echo_n "(cached) " >&6
10146else
10147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10148/* end confdefs.h.  */
10149int i;
10150_ACEOF
10151if ac_fn_c_try_compile "$LINENO"; then :
10152  xorg_cv_cc_flag_unused_command_line_argument=yes
10153else
10154  xorg_cv_cc_flag_unused_command_line_argument=no
10155fi
10156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10157fi
10158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10159$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10160	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10161	CFLAGS="$xorg_testset_save_CFLAGS"
10162fi
10163
10164found="no"
10165
10166	if test $found = "no" ; then
10167		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10168			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10169		fi
10170
10171		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10172			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10173		fi
10174
10175		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10176
10177		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10178$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10179		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10180		if eval \${$cacheid+:} false; then :
10181  $as_echo_n "(cached) " >&6
10182else
10183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10184/* end confdefs.h.  */
10185int i;
10186int
10187main ()
10188{
10189
10190  ;
10191  return 0;
10192}
10193_ACEOF
10194if ac_fn_c_try_link "$LINENO"; then :
10195  eval $cacheid=yes
10196else
10197  eval $cacheid=no
10198fi
10199rm -f core conftest.err conftest.$ac_objext \
10200    conftest$ac_exeext conftest.$ac_ext
10201fi
10202
10203
10204		CFLAGS="$xorg_testset_save_CFLAGS"
10205
10206		eval supported=\$$cacheid
10207		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10208$as_echo "$supported" >&6; }
10209		if test "$supported" = "yes" ; then
10210			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10211			found="yes"
10212		fi
10213	fi
10214
10215
10216fi
10217
10218
10219
10220
10221
10222
10223
10224		CWARNFLAGS="$BASE_CFLAGS"
10225		if  test "x$GCC" = xyes ; then
10226		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10227		fi
10228
10229
10230
10231
10232
10233
10234
10235
10236# Check whether --enable-strict-compilation was given.
10237if test "${enable_strict_compilation+set}" = set; then :
10238  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10239else
10240  STRICT_COMPILE=no
10241fi
10242
10243
10244
10245
10246
10247
10248STRICT_CFLAGS=""
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262xorg_testset_save_CFLAGS="$CFLAGS"
10263
10264if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10265	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10266	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10267$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10268if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10269  $as_echo_n "(cached) " >&6
10270else
10271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10272/* end confdefs.h.  */
10273int i;
10274_ACEOF
10275if ac_fn_c_try_compile "$LINENO"; then :
10276  xorg_cv_cc_flag_unknown_warning_option=yes
10277else
10278  xorg_cv_cc_flag_unknown_warning_option=no
10279fi
10280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10281fi
10282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10283$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10284	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10285	CFLAGS="$xorg_testset_save_CFLAGS"
10286fi
10287
10288if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10289	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10290		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10291	fi
10292	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10293	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10294$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10295if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10296  $as_echo_n "(cached) " >&6
10297else
10298  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10299/* end confdefs.h.  */
10300int i;
10301_ACEOF
10302if ac_fn_c_try_compile "$LINENO"; then :
10303  xorg_cv_cc_flag_unused_command_line_argument=yes
10304else
10305  xorg_cv_cc_flag_unused_command_line_argument=no
10306fi
10307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10308fi
10309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10310$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10311	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10312	CFLAGS="$xorg_testset_save_CFLAGS"
10313fi
10314
10315found="no"
10316
10317	if test $found = "no" ; then
10318		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10319			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10320		fi
10321
10322		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10323			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10324		fi
10325
10326		CFLAGS="$CFLAGS -pedantic"
10327
10328		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10329$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10330		cacheid=xorg_cv_cc_flag__pedantic
10331		if eval \${$cacheid+:} false; then :
10332  $as_echo_n "(cached) " >&6
10333else
10334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10335/* end confdefs.h.  */
10336int i;
10337int
10338main ()
10339{
10340
10341  ;
10342  return 0;
10343}
10344_ACEOF
10345if ac_fn_c_try_link "$LINENO"; then :
10346  eval $cacheid=yes
10347else
10348  eval $cacheid=no
10349fi
10350rm -f core conftest.err conftest.$ac_objext \
10351    conftest$ac_exeext conftest.$ac_ext
10352fi
10353
10354
10355		CFLAGS="$xorg_testset_save_CFLAGS"
10356
10357		eval supported=\$$cacheid
10358		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10359$as_echo "$supported" >&6; }
10360		if test "$supported" = "yes" ; then
10361			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10362			found="yes"
10363		fi
10364	fi
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380xorg_testset_save_CFLAGS="$CFLAGS"
10381
10382if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10383	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10384	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10385$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10386if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10387  $as_echo_n "(cached) " >&6
10388else
10389  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10390/* end confdefs.h.  */
10391int i;
10392_ACEOF
10393if ac_fn_c_try_compile "$LINENO"; then :
10394  xorg_cv_cc_flag_unknown_warning_option=yes
10395else
10396  xorg_cv_cc_flag_unknown_warning_option=no
10397fi
10398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10399fi
10400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10401$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10402	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10403	CFLAGS="$xorg_testset_save_CFLAGS"
10404fi
10405
10406if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10407	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10408		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10409	fi
10410	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10411	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10412$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10413if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10414  $as_echo_n "(cached) " >&6
10415else
10416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10417/* end confdefs.h.  */
10418int i;
10419_ACEOF
10420if ac_fn_c_try_compile "$LINENO"; then :
10421  xorg_cv_cc_flag_unused_command_line_argument=yes
10422else
10423  xorg_cv_cc_flag_unused_command_line_argument=no
10424fi
10425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10426fi
10427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10428$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10429	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10430	CFLAGS="$xorg_testset_save_CFLAGS"
10431fi
10432
10433found="no"
10434
10435	if test $found = "no" ; then
10436		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10437			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10438		fi
10439
10440		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10441			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10442		fi
10443
10444		CFLAGS="$CFLAGS -Werror"
10445
10446		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10447$as_echo_n "checking if $CC supports -Werror... " >&6; }
10448		cacheid=xorg_cv_cc_flag__Werror
10449		if eval \${$cacheid+:} false; then :
10450  $as_echo_n "(cached) " >&6
10451else
10452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10453/* end confdefs.h.  */
10454int i;
10455int
10456main ()
10457{
10458
10459  ;
10460  return 0;
10461}
10462_ACEOF
10463if ac_fn_c_try_link "$LINENO"; then :
10464  eval $cacheid=yes
10465else
10466  eval $cacheid=no
10467fi
10468rm -f core conftest.err conftest.$ac_objext \
10469    conftest$ac_exeext conftest.$ac_ext
10470fi
10471
10472
10473		CFLAGS="$xorg_testset_save_CFLAGS"
10474
10475		eval supported=\$$cacheid
10476		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10477$as_echo "$supported" >&6; }
10478		if test "$supported" = "yes" ; then
10479			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10480			found="yes"
10481		fi
10482	fi
10483
10484	if test $found = "no" ; then
10485		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10486			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10487		fi
10488
10489		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10490			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10491		fi
10492
10493		CFLAGS="$CFLAGS -errwarn"
10494
10495		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10496$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10497		cacheid=xorg_cv_cc_flag__errwarn
10498		if eval \${$cacheid+:} false; then :
10499  $as_echo_n "(cached) " >&6
10500else
10501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10502/* end confdefs.h.  */
10503int i;
10504int
10505main ()
10506{
10507
10508  ;
10509  return 0;
10510}
10511_ACEOF
10512if ac_fn_c_try_link "$LINENO"; then :
10513  eval $cacheid=yes
10514else
10515  eval $cacheid=no
10516fi
10517rm -f core conftest.err conftest.$ac_objext \
10518    conftest$ac_exeext conftest.$ac_ext
10519fi
10520
10521
10522		CFLAGS="$xorg_testset_save_CFLAGS"
10523
10524		eval supported=\$$cacheid
10525		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10526$as_echo "$supported" >&6; }
10527		if test "$supported" = "yes" ; then
10528			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10529			found="yes"
10530		fi
10531	fi
10532
10533
10534
10535# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10536# activate it with -Werror, so we add it here explicitly.
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550xorg_testset_save_CFLAGS="$CFLAGS"
10551
10552if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10553	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10554	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10555$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10556if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10557  $as_echo_n "(cached) " >&6
10558else
10559  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10560/* end confdefs.h.  */
10561int i;
10562_ACEOF
10563if ac_fn_c_try_compile "$LINENO"; then :
10564  xorg_cv_cc_flag_unknown_warning_option=yes
10565else
10566  xorg_cv_cc_flag_unknown_warning_option=no
10567fi
10568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10569fi
10570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10571$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10572	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10573	CFLAGS="$xorg_testset_save_CFLAGS"
10574fi
10575
10576if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10577	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10578		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10579	fi
10580	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10581	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10582$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10583if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10584  $as_echo_n "(cached) " >&6
10585else
10586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10587/* end confdefs.h.  */
10588int i;
10589_ACEOF
10590if ac_fn_c_try_compile "$LINENO"; then :
10591  xorg_cv_cc_flag_unused_command_line_argument=yes
10592else
10593  xorg_cv_cc_flag_unused_command_line_argument=no
10594fi
10595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10596fi
10597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10598$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10599	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10600	CFLAGS="$xorg_testset_save_CFLAGS"
10601fi
10602
10603found="no"
10604
10605	if test $found = "no" ; then
10606		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10607			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10608		fi
10609
10610		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10611			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10612		fi
10613
10614		CFLAGS="$CFLAGS -Werror=attributes"
10615
10616		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10617$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10618		cacheid=xorg_cv_cc_flag__Werror_attributes
10619		if eval \${$cacheid+:} false; then :
10620  $as_echo_n "(cached) " >&6
10621else
10622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10623/* end confdefs.h.  */
10624int i;
10625int
10626main ()
10627{
10628
10629  ;
10630  return 0;
10631}
10632_ACEOF
10633if ac_fn_c_try_link "$LINENO"; then :
10634  eval $cacheid=yes
10635else
10636  eval $cacheid=no
10637fi
10638rm -f core conftest.err conftest.$ac_objext \
10639    conftest$ac_exeext conftest.$ac_ext
10640fi
10641
10642
10643		CFLAGS="$xorg_testset_save_CFLAGS"
10644
10645		eval supported=\$$cacheid
10646		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10647$as_echo "$supported" >&6; }
10648		if test "$supported" = "yes" ; then
10649			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10650			found="yes"
10651		fi
10652	fi
10653
10654
10655
10656if test "x$STRICT_COMPILE" = "xyes"; then
10657    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10658    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10659fi
10660
10661
10662
10663
10664
10665
10666cat >>confdefs.h <<_ACEOF
10667#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10668_ACEOF
10669
10670	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10671	if test "x$PVM" = "x"; then
10672		PVM="0"
10673	fi
10674
10675cat >>confdefs.h <<_ACEOF
10676#define PACKAGE_VERSION_MINOR $PVM
10677_ACEOF
10678
10679	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10680	if test "x$PVP" = "x"; then
10681		PVP="0"
10682	fi
10683
10684cat >>confdefs.h <<_ACEOF
10685#define PACKAGE_VERSION_PATCHLEVEL $PVP
10686_ACEOF
10687
10688
10689
10690CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10691mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10692|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10693echo 'git directory not found: installing possibly empty changelog.' >&2)"
10694
10695
10696
10697
10698macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10699INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10700mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10701|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10702echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10703
10704
10705
10706
10707
10708
10709if test x$APP_MAN_SUFFIX = x    ; then
10710    APP_MAN_SUFFIX=1
10711fi
10712if test x$APP_MAN_DIR = x    ; then
10713    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10714fi
10715
10716if test x$LIB_MAN_SUFFIX = x    ; then
10717    LIB_MAN_SUFFIX=3
10718fi
10719if test x$LIB_MAN_DIR = x    ; then
10720    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10721fi
10722
10723if test x$FILE_MAN_SUFFIX = x    ; then
10724    case $host_os in
10725	# Solaris 2.0 - 11 use SysV man page sections
10726	solaris2.?|solaris2.1[01])	FILE_MAN_SUFFIX=4  ;;
10727	*)				FILE_MAN_SUFFIX=5  ;;
10728    esac
10729fi
10730if test x$FILE_MAN_DIR = x    ; then
10731    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10732fi
10733
10734if test x$MISC_MAN_SUFFIX = x    ; then
10735    case $host_os in
10736	# Solaris 2.0 - 11 use SysV man page sections
10737	solaris2.?|solaris2.1[01])	MISC_MAN_SUFFIX=5  ;;
10738	*)				MISC_MAN_SUFFIX=7  ;;
10739    esac
10740fi
10741if test x$MISC_MAN_DIR = x    ; then
10742    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10743fi
10744
10745if test x$DRIVER_MAN_SUFFIX = x    ; then
10746    case $host_os in
10747	# Solaris 2.0 - 11 use SysV man page sections
10748	solaris2.?|solaris2.1[01])	DRIVER_MAN_SUFFIX=7  ;;
10749	*)				DRIVER_MAN_SUFFIX=4  ;;
10750    esac
10751fi
10752if test x$DRIVER_MAN_DIR = x    ; then
10753    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10754fi
10755
10756if test x$ADMIN_MAN_SUFFIX = x    ; then
10757    case $host_os in
10758	# Solaris 2.0 - 11 use SysV man page sections
10759	solaris2.?|solaris2.1[01])	ADMIN_MAN_SUFFIX=1m ;;
10760	*)				ADMIN_MAN_SUFFIX=8  ;;
10761    esac
10762fi
10763if test x$ADMIN_MAN_DIR = x    ; then
10764    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10765fi
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781XORG_MAN_PAGE="X Version 11"
10782
10783MAN_SUBSTS="\
10784	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10785	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10786	-e 's|__xservername__|Xorg|g' \
10787	-e 's|__xconfigfile__|xorg.conf|g' \
10788	-e 's|__projectroot__|\$(prefix)|g' \
10789	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10790	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10791	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10792	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10793	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10794	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10795	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10796
10797
10798
10799# Check whether --enable-silent-rules was given.
10800if test "${enable_silent_rules+set}" = set; then :
10801  enableval=$enable_silent_rules;
10802fi
10803
10804case $enable_silent_rules in # (((
10805  yes) AM_DEFAULT_VERBOSITY=0;;
10806   no) AM_DEFAULT_VERBOSITY=1;;
10807    *) AM_DEFAULT_VERBOSITY=0;;
10808esac
10809am_make=${MAKE-make}
10810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10811$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10812if ${am_cv_make_support_nested_variables+:} false; then :
10813  $as_echo_n "(cached) " >&6
10814else
10815  if $as_echo 'TRUE=$(BAR$(V))
10816BAR0=false
10817BAR1=true
10818V=1
10819am__doit:
10820	@$(TRUE)
10821.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10822  am_cv_make_support_nested_variables=yes
10823else
10824  am_cv_make_support_nested_variables=no
10825fi
10826fi
10827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10828$as_echo "$am_cv_make_support_nested_variables" >&6; }
10829if test $am_cv_make_support_nested_variables = yes; then
10830    AM_V='$(V)'
10831  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10832else
10833  AM_V=$AM_DEFAULT_VERBOSITY
10834  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10835fi
10836AM_BACKSLASH='\'
10837
10838
10839
10840for ac_func in strncasecmp asprintf
10841do :
10842  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10843ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10844if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10845  cat >>confdefs.h <<_ACEOF
10846#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10847_ACEOF
10848
10849fi
10850done
10851
10852
10853# Checks for pkg-config packages
10854
10855pkg_failed=no
10856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMODMAP" >&5
10857$as_echo_n "checking for XMODMAP... " >&6; }
10858
10859if test -n "$XMODMAP_CFLAGS"; then
10860    pkg_cv_XMODMAP_CFLAGS="$XMODMAP_CFLAGS"
10861 elif test -n "$PKG_CONFIG"; then
10862    if test -n "$PKG_CONFIG" && \
10863    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25\""; } >&5
10864  ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25") 2>&5
10865  ac_status=$?
10866  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10867  test $ac_status = 0; }; then
10868  pkg_cv_XMODMAP_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.25" 2>/dev/null`
10869		      test "x$?" != "x0" && pkg_failed=yes
10870else
10871  pkg_failed=yes
10872fi
10873 else
10874    pkg_failed=untried
10875fi
10876if test -n "$XMODMAP_LIBS"; then
10877    pkg_cv_XMODMAP_LIBS="$XMODMAP_LIBS"
10878 elif test -n "$PKG_CONFIG"; then
10879    if test -n "$PKG_CONFIG" && \
10880    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25\""; } >&5
10881  ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25") 2>&5
10882  ac_status=$?
10883  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10884  test $ac_status = 0; }; then
10885  pkg_cv_XMODMAP_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.25" 2>/dev/null`
10886		      test "x$?" != "x0" && pkg_failed=yes
10887else
10888  pkg_failed=yes
10889fi
10890 else
10891    pkg_failed=untried
10892fi
10893
10894
10895
10896if test $pkg_failed = yes; then
10897   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10898$as_echo "no" >&6; }
10899
10900if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10901        _pkg_short_errors_supported=yes
10902else
10903        _pkg_short_errors_supported=no
10904fi
10905        if test $_pkg_short_errors_supported = yes; then
10906	        XMODMAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xproto >= 7.0.25" 2>&1`
10907        else
10908	        XMODMAP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xproto >= 7.0.25" 2>&1`
10909        fi
10910	# Put the nasty error message in config.log where it belongs
10911	echo "$XMODMAP_PKG_ERRORS" >&5
10912
10913	as_fn_error $? "Package requirements (x11 xproto >= 7.0.25) were not met:
10914
10915$XMODMAP_PKG_ERRORS
10916
10917Consider adjusting the PKG_CONFIG_PATH environment variable if you
10918installed software in a non-standard prefix.
10919
10920Alternatively, you may set the environment variables XMODMAP_CFLAGS
10921and XMODMAP_LIBS to avoid the need to call pkg-config.
10922See the pkg-config man page for more details." "$LINENO" 5
10923elif test $pkg_failed = untried; then
10924     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10925$as_echo "no" >&6; }
10926	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10927$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10928as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10929is in your PATH or set the PKG_CONFIG environment variable to the full
10930path to pkg-config.
10931
10932Alternatively, you may set the environment variables XMODMAP_CFLAGS
10933and XMODMAP_LIBS to avoid the need to call pkg-config.
10934See the pkg-config man page for more details.
10935
10936To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10937See \`config.log' for more details" "$LINENO" 5; }
10938else
10939	XMODMAP_CFLAGS=$pkg_cv_XMODMAP_CFLAGS
10940	XMODMAP_LIBS=$pkg_cv_XMODMAP_LIBS
10941        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10942$as_echo "yes" >&6; }
10943
10944fi
10945
10946
10947
10948
10949
10950
10951# Check whether --with-lint was given.
10952if test "${with_lint+set}" = set; then :
10953  withval=$with_lint; use_lint=$withval
10954else
10955  use_lint=no
10956fi
10957
10958
10959# Obtain platform specific info like program name and options
10960# The lint program on FreeBSD and NetBSD is different from the one on Solaris
10961case $host_os in
10962  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
10963	lint_name=splint
10964	lint_options="-badflag"
10965	;;
10966  *freebsd* | *netbsd*)
10967	lint_name=lint
10968	lint_options="-u -b"
10969	;;
10970  *solaris*)
10971	lint_name=lint
10972	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
10973	;;
10974esac
10975
10976# Test for the presence of the program (either guessed by the code or spelled out by the user)
10977if test "x$use_lint" = x"yes" ; then
10978   # Extract the first word of "$lint_name", so it can be a program name with args.
10979set dummy $lint_name; ac_word=$2
10980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10981$as_echo_n "checking for $ac_word... " >&6; }
10982if ${ac_cv_path_LINT+:} false; then :
10983  $as_echo_n "(cached) " >&6
10984else
10985  case $LINT in
10986  [\\/]* | ?:[\\/]*)
10987  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
10988  ;;
10989  *)
10990  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10991for as_dir in $PATH
10992do
10993  IFS=$as_save_IFS
10994  test -z "$as_dir" && as_dir=.
10995    for ac_exec_ext in '' $ac_executable_extensions; do
10996  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10997    ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
10998    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10999    break 2
11000  fi
11001done
11002  done
11003IFS=$as_save_IFS
11004
11005  ;;
11006esac
11007fi
11008LINT=$ac_cv_path_LINT
11009if test -n "$LINT"; then
11010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
11011$as_echo "$LINT" >&6; }
11012else
11013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11014$as_echo "no" >&6; }
11015fi
11016
11017
11018   if test "x$LINT" = "x"; then
11019        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
11020   fi
11021elif test "x$use_lint" = x"no" ; then
11022   if test "x$LINT" != "x"; then
11023      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
11024$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
11025   fi
11026else
11027   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
11028fi
11029
11030# User supplied flags override default flags
11031if test "x$LINT_FLAGS" != "x"; then
11032   lint_options=$LINT_FLAGS
11033fi
11034
11035LINT_FLAGS=$lint_options
11036
11037 if test "x$LINT" != x; then
11038  LINT_TRUE=
11039  LINT_FALSE='#'
11040else
11041  LINT_TRUE='#'
11042  LINT_FALSE=
11043fi
11044
11045
11046
11047
11048ac_config_files="$ac_config_files Makefile man/Makefile"
11049
11050cat >confcache <<\_ACEOF
11051# This file is a shell script that caches the results of configure
11052# tests run on this system so they can be shared between configure
11053# scripts and configure runs, see configure's option --config-cache.
11054# It is not useful on other systems.  If it contains results you don't
11055# want to keep, you may remove or edit it.
11056#
11057# config.status only pays attention to the cache file if you give it
11058# the --recheck option to rerun configure.
11059#
11060# `ac_cv_env_foo' variables (set or unset) will be overridden when
11061# loading this file, other *unset* `ac_cv_foo' will be assigned the
11062# following values.
11063
11064_ACEOF
11065
11066# The following way of writing the cache mishandles newlines in values,
11067# but we know of no workaround that is simple, portable, and efficient.
11068# So, we kill variables containing newlines.
11069# Ultrix sh set writes to stderr and can't be redirected directly,
11070# and sets the high bit in the cache file unless we assign to the vars.
11071(
11072  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11073    eval ac_val=\$$ac_var
11074    case $ac_val in #(
11075    *${as_nl}*)
11076      case $ac_var in #(
11077      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11078$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11079      esac
11080      case $ac_var in #(
11081      _ | IFS | as_nl) ;; #(
11082      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11083      *) { eval $ac_var=; unset $ac_var;} ;;
11084      esac ;;
11085    esac
11086  done
11087
11088  (set) 2>&1 |
11089    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11090    *${as_nl}ac_space=\ *)
11091      # `set' does not quote correctly, so add quotes: double-quote
11092      # substitution turns \\\\ into \\, and sed turns \\ into \.
11093      sed -n \
11094	"s/'/'\\\\''/g;
11095	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11096      ;; #(
11097    *)
11098      # `set' quotes correctly as required by POSIX, so do not add quotes.
11099      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11100      ;;
11101    esac |
11102    sort
11103) |
11104  sed '
11105     /^ac_cv_env_/b end
11106     t clear
11107     :clear
11108     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11109     t end
11110     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11111     :end' >>confcache
11112if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11113  if test -w "$cache_file"; then
11114    if test "x$cache_file" != "x/dev/null"; then
11115      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11116$as_echo "$as_me: updating cache $cache_file" >&6;}
11117      if test ! -f "$cache_file" || test -h "$cache_file"; then
11118	cat confcache >"$cache_file"
11119      else
11120        case $cache_file in #(
11121        */* | ?:*)
11122	  mv -f confcache "$cache_file"$$ &&
11123	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11124        *)
11125	  mv -f confcache "$cache_file" ;;
11126	esac
11127      fi
11128    fi
11129  else
11130    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11131$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11132  fi
11133fi
11134rm -f confcache
11135
11136test "x$prefix" = xNONE && prefix=$ac_default_prefix
11137# Let make expand exec_prefix.
11138test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11139
11140DEFS=-DHAVE_CONFIG_H
11141
11142ac_libobjs=
11143ac_ltlibobjs=
11144U=
11145for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11146  # 1. Remove the extension, and $U if already installed.
11147  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11148  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11149  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11150  #    will be set to the directory where LIBOBJS objects are built.
11151  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11152  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11153done
11154LIBOBJS=$ac_libobjs
11155
11156LTLIBOBJS=$ac_ltlibobjs
11157
11158
11159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11160$as_echo_n "checking that generated files are newer than configure... " >&6; }
11161   if test -n "$am_sleep_pid"; then
11162     # Hide warnings about reused PIDs.
11163     wait $am_sleep_pid 2>/dev/null
11164   fi
11165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11166$as_echo "done" >&6; }
11167if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11168  as_fn_error $? "conditional \"AMDEP\" was never defined.
11169Usually this means the macro was only invoked conditionally." "$LINENO" 5
11170fi
11171if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11172  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11173Usually this means the macro was only invoked conditionally." "$LINENO" 5
11174fi
11175 if test -n "$EXEEXT"; then
11176  am__EXEEXT_TRUE=
11177  am__EXEEXT_FALSE='#'
11178else
11179  am__EXEEXT_TRUE='#'
11180  am__EXEEXT_FALSE=
11181fi
11182
11183if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
11184  as_fn_error $? "conditional \"LINT\" was never defined.
11185Usually this means the macro was only invoked conditionally." "$LINENO" 5
11186fi
11187
11188: "${CONFIG_STATUS=./config.status}"
11189ac_write_fail=0
11190ac_clean_files_save=$ac_clean_files
11191ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11192{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11193$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11194as_write_fail=0
11195cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11196#! $SHELL
11197# Generated by $as_me.
11198# Run this file to recreate the current configuration.
11199# Compiler output produced by configure, useful for debugging
11200# configure, is in config.log if it exists.
11201
11202debug=false
11203ac_cs_recheck=false
11204ac_cs_silent=false
11205
11206SHELL=\${CONFIG_SHELL-$SHELL}
11207export SHELL
11208_ASEOF
11209cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11210## -------------------- ##
11211## M4sh Initialization. ##
11212## -------------------- ##
11213
11214# Be more Bourne compatible
11215DUALCASE=1; export DUALCASE # for MKS sh
11216if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11217  emulate sh
11218  NULLCMD=:
11219  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11220  # is contrary to our usage.  Disable this feature.
11221  alias -g '${1+"$@"}'='"$@"'
11222  setopt NO_GLOB_SUBST
11223else
11224  case `(set -o) 2>/dev/null` in #(
11225  *posix*) :
11226    set -o posix ;; #(
11227  *) :
11228     ;;
11229esac
11230fi
11231
11232
11233as_nl='
11234'
11235export as_nl
11236# Printing a long string crashes Solaris 7 /usr/bin/printf.
11237as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11238as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11239as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11240# Prefer a ksh shell builtin over an external printf program on Solaris,
11241# but without wasting forks for bash or zsh.
11242if test -z "$BASH_VERSION$ZSH_VERSION" \
11243    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11244  as_echo='print -r --'
11245  as_echo_n='print -rn --'
11246elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11247  as_echo='printf %s\n'
11248  as_echo_n='printf %s'
11249else
11250  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11251    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11252    as_echo_n='/usr/ucb/echo -n'
11253  else
11254    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11255    as_echo_n_body='eval
11256      arg=$1;
11257      case $arg in #(
11258      *"$as_nl"*)
11259	expr "X$arg" : "X\\(.*\\)$as_nl";
11260	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11261      esac;
11262      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11263    '
11264    export as_echo_n_body
11265    as_echo_n='sh -c $as_echo_n_body as_echo'
11266  fi
11267  export as_echo_body
11268  as_echo='sh -c $as_echo_body as_echo'
11269fi
11270
11271# The user is always right.
11272if test "${PATH_SEPARATOR+set}" != set; then
11273  PATH_SEPARATOR=:
11274  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11275    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11276      PATH_SEPARATOR=';'
11277  }
11278fi
11279
11280
11281# IFS
11282# We need space, tab and new line, in precisely that order.  Quoting is
11283# there to prevent editors from complaining about space-tab.
11284# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11285# splitting by setting IFS to empty value.)
11286IFS=" ""	$as_nl"
11287
11288# Find who we are.  Look in the path if we contain no directory separator.
11289as_myself=
11290case $0 in #((
11291  *[\\/]* ) as_myself=$0 ;;
11292  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11293for as_dir in $PATH
11294do
11295  IFS=$as_save_IFS
11296  test -z "$as_dir" && as_dir=.
11297    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11298  done
11299IFS=$as_save_IFS
11300
11301     ;;
11302esac
11303# We did not find ourselves, most probably we were run as `sh COMMAND'
11304# in which case we are not to be found in the path.
11305if test "x$as_myself" = x; then
11306  as_myself=$0
11307fi
11308if test ! -f "$as_myself"; then
11309  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11310  exit 1
11311fi
11312
11313# Unset variables that we do not need and which cause bugs (e.g. in
11314# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11315# suppresses any "Segmentation fault" message there.  '((' could
11316# trigger a bug in pdksh 5.2.14.
11317for as_var in BASH_ENV ENV MAIL MAILPATH
11318do eval test x\${$as_var+set} = xset \
11319  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11320done
11321PS1='$ '
11322PS2='> '
11323PS4='+ '
11324
11325# NLS nuisances.
11326LC_ALL=C
11327export LC_ALL
11328LANGUAGE=C
11329export LANGUAGE
11330
11331# CDPATH.
11332(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11333
11334
11335# as_fn_error STATUS ERROR [LINENO LOG_FD]
11336# ----------------------------------------
11337# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11338# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11339# script with STATUS, using 1 if that was 0.
11340as_fn_error ()
11341{
11342  as_status=$1; test $as_status -eq 0 && as_status=1
11343  if test "$4"; then
11344    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11345    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11346  fi
11347  $as_echo "$as_me: error: $2" >&2
11348  as_fn_exit $as_status
11349} # as_fn_error
11350
11351
11352# as_fn_set_status STATUS
11353# -----------------------
11354# Set $? to STATUS, without forking.
11355as_fn_set_status ()
11356{
11357  return $1
11358} # as_fn_set_status
11359
11360# as_fn_exit STATUS
11361# -----------------
11362# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11363as_fn_exit ()
11364{
11365  set +e
11366  as_fn_set_status $1
11367  exit $1
11368} # as_fn_exit
11369
11370# as_fn_unset VAR
11371# ---------------
11372# Portably unset VAR.
11373as_fn_unset ()
11374{
11375  { eval $1=; unset $1;}
11376}
11377as_unset=as_fn_unset
11378# as_fn_append VAR VALUE
11379# ----------------------
11380# Append the text in VALUE to the end of the definition contained in VAR. Take
11381# advantage of any shell optimizations that allow amortized linear growth over
11382# repeated appends, instead of the typical quadratic growth present in naive
11383# implementations.
11384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11385  eval 'as_fn_append ()
11386  {
11387    eval $1+=\$2
11388  }'
11389else
11390  as_fn_append ()
11391  {
11392    eval $1=\$$1\$2
11393  }
11394fi # as_fn_append
11395
11396# as_fn_arith ARG...
11397# ------------------
11398# Perform arithmetic evaluation on the ARGs, and store the result in the
11399# global $as_val. Take advantage of shells that can avoid forks. The arguments
11400# must be portable across $(()) and expr.
11401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11402  eval 'as_fn_arith ()
11403  {
11404    as_val=$(( $* ))
11405  }'
11406else
11407  as_fn_arith ()
11408  {
11409    as_val=`expr "$@" || test $? -eq 1`
11410  }
11411fi # as_fn_arith
11412
11413
11414if expr a : '\(a\)' >/dev/null 2>&1 &&
11415   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11416  as_expr=expr
11417else
11418  as_expr=false
11419fi
11420
11421if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11422  as_basename=basename
11423else
11424  as_basename=false
11425fi
11426
11427if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11428  as_dirname=dirname
11429else
11430  as_dirname=false
11431fi
11432
11433as_me=`$as_basename -- "$0" ||
11434$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11435	 X"$0" : 'X\(//\)$' \| \
11436	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11437$as_echo X/"$0" |
11438    sed '/^.*\/\([^/][^/]*\)\/*$/{
11439	    s//\1/
11440	    q
11441	  }
11442	  /^X\/\(\/\/\)$/{
11443	    s//\1/
11444	    q
11445	  }
11446	  /^X\/\(\/\).*/{
11447	    s//\1/
11448	    q
11449	  }
11450	  s/.*/./; q'`
11451
11452# Avoid depending upon Character Ranges.
11453as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11454as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11455as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11456as_cr_digits='0123456789'
11457as_cr_alnum=$as_cr_Letters$as_cr_digits
11458
11459ECHO_C= ECHO_N= ECHO_T=
11460case `echo -n x` in #(((((
11461-n*)
11462  case `echo 'xy\c'` in
11463  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11464  xy)  ECHO_C='\c';;
11465  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11466       ECHO_T='	';;
11467  esac;;
11468*)
11469  ECHO_N='-n';;
11470esac
11471
11472rm -f conf$$ conf$$.exe conf$$.file
11473if test -d conf$$.dir; then
11474  rm -f conf$$.dir/conf$$.file
11475else
11476  rm -f conf$$.dir
11477  mkdir conf$$.dir 2>/dev/null
11478fi
11479if (echo >conf$$.file) 2>/dev/null; then
11480  if ln -s conf$$.file conf$$ 2>/dev/null; then
11481    as_ln_s='ln -s'
11482    # ... but there are two gotchas:
11483    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11484    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11485    # In both cases, we have to default to `cp -pR'.
11486    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11487      as_ln_s='cp -pR'
11488  elif ln conf$$.file conf$$ 2>/dev/null; then
11489    as_ln_s=ln
11490  else
11491    as_ln_s='cp -pR'
11492  fi
11493else
11494  as_ln_s='cp -pR'
11495fi
11496rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11497rmdir conf$$.dir 2>/dev/null
11498
11499
11500# as_fn_mkdir_p
11501# -------------
11502# Create "$as_dir" as a directory, including parents if necessary.
11503as_fn_mkdir_p ()
11504{
11505
11506  case $as_dir in #(
11507  -*) as_dir=./$as_dir;;
11508  esac
11509  test -d "$as_dir" || eval $as_mkdir_p || {
11510    as_dirs=
11511    while :; do
11512      case $as_dir in #(
11513      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11514      *) as_qdir=$as_dir;;
11515      esac
11516      as_dirs="'$as_qdir' $as_dirs"
11517      as_dir=`$as_dirname -- "$as_dir" ||
11518$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11519	 X"$as_dir" : 'X\(//\)[^/]' \| \
11520	 X"$as_dir" : 'X\(//\)$' \| \
11521	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11522$as_echo X"$as_dir" |
11523    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11524	    s//\1/
11525	    q
11526	  }
11527	  /^X\(\/\/\)[^/].*/{
11528	    s//\1/
11529	    q
11530	  }
11531	  /^X\(\/\/\)$/{
11532	    s//\1/
11533	    q
11534	  }
11535	  /^X\(\/\).*/{
11536	    s//\1/
11537	    q
11538	  }
11539	  s/.*/./; q'`
11540      test -d "$as_dir" && break
11541    done
11542    test -z "$as_dirs" || eval "mkdir $as_dirs"
11543  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11544
11545
11546} # as_fn_mkdir_p
11547if mkdir -p . 2>/dev/null; then
11548  as_mkdir_p='mkdir -p "$as_dir"'
11549else
11550  test -d ./-p && rmdir ./-p
11551  as_mkdir_p=false
11552fi
11553
11554
11555# as_fn_executable_p FILE
11556# -----------------------
11557# Test if FILE is an executable regular file.
11558as_fn_executable_p ()
11559{
11560  test -f "$1" && test -x "$1"
11561} # as_fn_executable_p
11562as_test_x='test -x'
11563as_executable_p=as_fn_executable_p
11564
11565# Sed expression to map a string onto a valid CPP name.
11566as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11567
11568# Sed expression to map a string onto a valid variable name.
11569as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11570
11571
11572exec 6>&1
11573## ----------------------------------- ##
11574## Main body of $CONFIG_STATUS script. ##
11575## ----------------------------------- ##
11576_ASEOF
11577test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11578
11579cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11580# Save the log message, to keep $0 and so on meaningful, and to
11581# report actual input values of CONFIG_FILES etc. instead of their
11582# values after options handling.
11583ac_log="
11584This file was extended by xmodmap $as_me 1.0.10, which was
11585generated by GNU Autoconf 2.69.  Invocation command line was
11586
11587  CONFIG_FILES    = $CONFIG_FILES
11588  CONFIG_HEADERS  = $CONFIG_HEADERS
11589  CONFIG_LINKS    = $CONFIG_LINKS
11590  CONFIG_COMMANDS = $CONFIG_COMMANDS
11591  $ $0 $@
11592
11593on `(hostname || uname -n) 2>/dev/null | sed 1q`
11594"
11595
11596_ACEOF
11597
11598case $ac_config_files in *"
11599"*) set x $ac_config_files; shift; ac_config_files=$*;;
11600esac
11601
11602case $ac_config_headers in *"
11603"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11604esac
11605
11606
11607cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11608# Files that config.status was made for.
11609config_files="$ac_config_files"
11610config_headers="$ac_config_headers"
11611config_commands="$ac_config_commands"
11612
11613_ACEOF
11614
11615cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11616ac_cs_usage="\
11617\`$as_me' instantiates files and other configuration actions
11618from templates according to the current configuration.  Unless the files
11619and actions are specified as TAGs, all are instantiated by default.
11620
11621Usage: $0 [OPTION]... [TAG]...
11622
11623  -h, --help       print this help, then exit
11624  -V, --version    print version number and configuration settings, then exit
11625      --config     print configuration, then exit
11626  -q, --quiet, --silent
11627                   do not print progress messages
11628  -d, --debug      don't remove temporary files
11629      --recheck    update $as_me by reconfiguring in the same conditions
11630      --file=FILE[:TEMPLATE]
11631                   instantiate the configuration file FILE
11632      --header=FILE[:TEMPLATE]
11633                   instantiate the configuration header FILE
11634
11635Configuration files:
11636$config_files
11637
11638Configuration headers:
11639$config_headers
11640
11641Configuration commands:
11642$config_commands
11643
11644Report bugs to <https://gitlab.freedesktop.org/xorg/app/xmodmap/issues>."
11645
11646_ACEOF
11647cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11648ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11649ac_cs_version="\\
11650xmodmap config.status 1.0.10
11651configured by $0, generated by GNU Autoconf 2.69,
11652  with options \\"\$ac_cs_config\\"
11653
11654Copyright (C) 2012 Free Software Foundation, Inc.
11655This config.status script is free software; the Free Software Foundation
11656gives unlimited permission to copy, distribute and modify it."
11657
11658ac_pwd='$ac_pwd'
11659srcdir='$srcdir'
11660INSTALL='$INSTALL'
11661MKDIR_P='$MKDIR_P'
11662AWK='$AWK'
11663test -n "\$AWK" || AWK=awk
11664_ACEOF
11665
11666cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11667# The default lists apply if the user does not specify any file.
11668ac_need_defaults=:
11669while test $# != 0
11670do
11671  case $1 in
11672  --*=?*)
11673    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11674    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11675    ac_shift=:
11676    ;;
11677  --*=)
11678    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11679    ac_optarg=
11680    ac_shift=:
11681    ;;
11682  *)
11683    ac_option=$1
11684    ac_optarg=$2
11685    ac_shift=shift
11686    ;;
11687  esac
11688
11689  case $ac_option in
11690  # Handling of the options.
11691  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11692    ac_cs_recheck=: ;;
11693  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11694    $as_echo "$ac_cs_version"; exit ;;
11695  --config | --confi | --conf | --con | --co | --c )
11696    $as_echo "$ac_cs_config"; exit ;;
11697  --debug | --debu | --deb | --de | --d | -d )
11698    debug=: ;;
11699  --file | --fil | --fi | --f )
11700    $ac_shift
11701    case $ac_optarg in
11702    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11703    '') as_fn_error $? "missing file argument" ;;
11704    esac
11705    as_fn_append CONFIG_FILES " '$ac_optarg'"
11706    ac_need_defaults=false;;
11707  --header | --heade | --head | --hea )
11708    $ac_shift
11709    case $ac_optarg in
11710    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11711    esac
11712    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11713    ac_need_defaults=false;;
11714  --he | --h)
11715    # Conflict between --help and --header
11716    as_fn_error $? "ambiguous option: \`$1'
11717Try \`$0 --help' for more information.";;
11718  --help | --hel | -h )
11719    $as_echo "$ac_cs_usage"; exit ;;
11720  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11721  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11722    ac_cs_silent=: ;;
11723
11724  # This is an error.
11725  -*) as_fn_error $? "unrecognized option: \`$1'
11726Try \`$0 --help' for more information." ;;
11727
11728  *) as_fn_append ac_config_targets " $1"
11729     ac_need_defaults=false ;;
11730
11731  esac
11732  shift
11733done
11734
11735ac_configure_extra_args=
11736
11737if $ac_cs_silent; then
11738  exec 6>/dev/null
11739  ac_configure_extra_args="$ac_configure_extra_args --silent"
11740fi
11741
11742_ACEOF
11743cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11744if \$ac_cs_recheck; then
11745  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11746  shift
11747  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11748  CONFIG_SHELL='$SHELL'
11749  export CONFIG_SHELL
11750  exec "\$@"
11751fi
11752
11753_ACEOF
11754cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11755exec 5>>config.log
11756{
11757  echo
11758  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11759## Running $as_me. ##
11760_ASBOX
11761  $as_echo "$ac_log"
11762} >&5
11763
11764_ACEOF
11765cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11766#
11767# INIT-COMMANDS
11768#
11769AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11770
11771_ACEOF
11772
11773cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11774
11775# Handling of arguments.
11776for ac_config_target in $ac_config_targets
11777do
11778  case $ac_config_target in
11779    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11780    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11781    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11782    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11783
11784  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11785  esac
11786done
11787
11788
11789# If the user did not use the arguments to specify the items to instantiate,
11790# then the envvar interface is used.  Set only those that are not.
11791# We use the long form for the default assignment because of an extremely
11792# bizarre bug on SunOS 4.1.3.
11793if $ac_need_defaults; then
11794  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11795  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11796  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11797fi
11798
11799# Have a temporary directory for convenience.  Make it in the build tree
11800# simply because there is no reason against having it here, and in addition,
11801# creating and moving files from /tmp can sometimes cause problems.
11802# Hook for its removal unless debugging.
11803# Note that there is a small window in which the directory will not be cleaned:
11804# after its creation but before its name has been assigned to `$tmp'.
11805$debug ||
11806{
11807  tmp= ac_tmp=
11808  trap 'exit_status=$?
11809  : "${ac_tmp:=$tmp}"
11810  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11811' 0
11812  trap 'as_fn_exit 1' 1 2 13 15
11813}
11814# Create a (secure) tmp directory for tmp files.
11815
11816{
11817  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11818  test -d "$tmp"
11819}  ||
11820{
11821  tmp=./conf$$-$RANDOM
11822  (umask 077 && mkdir "$tmp")
11823} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11824ac_tmp=$tmp
11825
11826# Set up the scripts for CONFIG_FILES section.
11827# No need to generate them if there are no CONFIG_FILES.
11828# This happens for instance with `./config.status config.h'.
11829if test -n "$CONFIG_FILES"; then
11830
11831
11832ac_cr=`echo X | tr X '\015'`
11833# On cygwin, bash can eat \r inside `` if the user requested igncr.
11834# But we know of no other shell where ac_cr would be empty at this
11835# point, so we can use a bashism as a fallback.
11836if test "x$ac_cr" = x; then
11837  eval ac_cr=\$\'\\r\'
11838fi
11839ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11840if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11841  ac_cs_awk_cr='\\r'
11842else
11843  ac_cs_awk_cr=$ac_cr
11844fi
11845
11846echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11847_ACEOF
11848
11849
11850{
11851  echo "cat >conf$$subs.awk <<_ACEOF" &&
11852  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11853  echo "_ACEOF"
11854} >conf$$subs.sh ||
11855  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11856ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11857ac_delim='%!_!# '
11858for ac_last_try in false false false false false :; do
11859  . ./conf$$subs.sh ||
11860    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11861
11862  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11863  if test $ac_delim_n = $ac_delim_num; then
11864    break
11865  elif $ac_last_try; then
11866    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11867  else
11868    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11869  fi
11870done
11871rm -f conf$$subs.sh
11872
11873cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11874cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11875_ACEOF
11876sed -n '
11877h
11878s/^/S["/; s/!.*/"]=/
11879p
11880g
11881s/^[^!]*!//
11882:repl
11883t repl
11884s/'"$ac_delim"'$//
11885t delim
11886:nl
11887h
11888s/\(.\{148\}\)..*/\1/
11889t more1
11890s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11891p
11892n
11893b repl
11894:more1
11895s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11896p
11897g
11898s/.\{148\}//
11899t nl
11900:delim
11901h
11902s/\(.\{148\}\)..*/\1/
11903t more2
11904s/["\\]/\\&/g; s/^/"/; s/$/"/
11905p
11906b
11907:more2
11908s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11909p
11910g
11911s/.\{148\}//
11912t delim
11913' <conf$$subs.awk | sed '
11914/^[^""]/{
11915  N
11916  s/\n//
11917}
11918' >>$CONFIG_STATUS || ac_write_fail=1
11919rm -f conf$$subs.awk
11920cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11921_ACAWK
11922cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11923  for (key in S) S_is_set[key] = 1
11924  FS = ""
11925
11926}
11927{
11928  line = $ 0
11929  nfields = split(line, field, "@")
11930  substed = 0
11931  len = length(field[1])
11932  for (i = 2; i < nfields; i++) {
11933    key = field[i]
11934    keylen = length(key)
11935    if (S_is_set[key]) {
11936      value = S[key]
11937      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11938      len += length(value) + length(field[++i])
11939      substed = 1
11940    } else
11941      len += 1 + keylen
11942  }
11943
11944  print line
11945}
11946
11947_ACAWK
11948_ACEOF
11949cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11950if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11951  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11952else
11953  cat
11954fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11955  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11956_ACEOF
11957
11958# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11959# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11960# trailing colons and then remove the whole line if VPATH becomes empty
11961# (actually we leave an empty line to preserve line numbers).
11962if test "x$srcdir" = x.; then
11963  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11964h
11965s///
11966s/^/:/
11967s/[	 ]*$/:/
11968s/:\$(srcdir):/:/g
11969s/:\${srcdir}:/:/g
11970s/:@srcdir@:/:/g
11971s/^:*//
11972s/:*$//
11973x
11974s/\(=[	 ]*\).*/\1/
11975G
11976s/\n//
11977s/^[^=]*=[	 ]*$//
11978}'
11979fi
11980
11981cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11982fi # test -n "$CONFIG_FILES"
11983
11984# Set up the scripts for CONFIG_HEADERS section.
11985# No need to generate them if there are no CONFIG_HEADERS.
11986# This happens for instance with `./config.status Makefile'.
11987if test -n "$CONFIG_HEADERS"; then
11988cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11989BEGIN {
11990_ACEOF
11991
11992# Transform confdefs.h into an awk script `defines.awk', embedded as
11993# here-document in config.status, that substitutes the proper values into
11994# config.h.in to produce config.h.
11995
11996# Create a delimiter string that does not exist in confdefs.h, to ease
11997# handling of long lines.
11998ac_delim='%!_!# '
11999for ac_last_try in false false :; do
12000  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12001  if test -z "$ac_tt"; then
12002    break
12003  elif $ac_last_try; then
12004    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12005  else
12006    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12007  fi
12008done
12009
12010# For the awk script, D is an array of macro values keyed by name,
12011# likewise P contains macro parameters if any.  Preserve backslash
12012# newline sequences.
12013
12014ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12015sed -n '
12016s/.\{148\}/&'"$ac_delim"'/g
12017t rset
12018:rset
12019s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12020t def
12021d
12022:def
12023s/\\$//
12024t bsnl
12025s/["\\]/\\&/g
12026s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12027D["\1"]=" \3"/p
12028s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12029d
12030:bsnl
12031s/["\\]/\\&/g
12032s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12033D["\1"]=" \3\\\\\\n"\\/p
12034t cont
12035s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12036t cont
12037d
12038:cont
12039n
12040s/.\{148\}/&'"$ac_delim"'/g
12041t clear
12042:clear
12043s/\\$//
12044t bsnlc
12045s/["\\]/\\&/g; s/^/"/; s/$/"/p
12046d
12047:bsnlc
12048s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12049b cont
12050' <confdefs.h | sed '
12051s/'"$ac_delim"'/"\\\
12052"/g' >>$CONFIG_STATUS || ac_write_fail=1
12053
12054cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12055  for (key in D) D_is_set[key] = 1
12056  FS = ""
12057}
12058/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12059  line = \$ 0
12060  split(line, arg, " ")
12061  if (arg[1] == "#") {
12062    defundef = arg[2]
12063    mac1 = arg[3]
12064  } else {
12065    defundef = substr(arg[1], 2)
12066    mac1 = arg[2]
12067  }
12068  split(mac1, mac2, "(") #)
12069  macro = mac2[1]
12070  prefix = substr(line, 1, index(line, defundef) - 1)
12071  if (D_is_set[macro]) {
12072    # Preserve the white space surrounding the "#".
12073    print prefix "define", macro P[macro] D[macro]
12074    next
12075  } else {
12076    # Replace #undef with comments.  This is necessary, for example,
12077    # in the case of _POSIX_SOURCE, which is predefined and required
12078    # on some systems where configure will not decide to define it.
12079    if (defundef == "undef") {
12080      print "/*", prefix defundef, macro, "*/"
12081      next
12082    }
12083  }
12084}
12085{ print }
12086_ACAWK
12087_ACEOF
12088cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12089  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12090fi # test -n "$CONFIG_HEADERS"
12091
12092
12093eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12094shift
12095for ac_tag
12096do
12097  case $ac_tag in
12098  :[FHLC]) ac_mode=$ac_tag; continue;;
12099  esac
12100  case $ac_mode$ac_tag in
12101  :[FHL]*:*);;
12102  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12103  :[FH]-) ac_tag=-:-;;
12104  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12105  esac
12106  ac_save_IFS=$IFS
12107  IFS=:
12108  set x $ac_tag
12109  IFS=$ac_save_IFS
12110  shift
12111  ac_file=$1
12112  shift
12113
12114  case $ac_mode in
12115  :L) ac_source=$1;;
12116  :[FH])
12117    ac_file_inputs=
12118    for ac_f
12119    do
12120      case $ac_f in
12121      -) ac_f="$ac_tmp/stdin";;
12122      *) # Look for the file first in the build tree, then in the source tree
12123	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12124	 # because $ac_f cannot contain `:'.
12125	 test -f "$ac_f" ||
12126	   case $ac_f in
12127	   [\\/$]*) false;;
12128	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12129	   esac ||
12130	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12131      esac
12132      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12133      as_fn_append ac_file_inputs " '$ac_f'"
12134    done
12135
12136    # Let's still pretend it is `configure' which instantiates (i.e., don't
12137    # use $as_me), people would be surprised to read:
12138    #    /* config.h.  Generated by config.status.  */
12139    configure_input='Generated from '`
12140	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12141	`' by configure.'
12142    if test x"$ac_file" != x-; then
12143      configure_input="$ac_file.  $configure_input"
12144      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12145$as_echo "$as_me: creating $ac_file" >&6;}
12146    fi
12147    # Neutralize special characters interpreted by sed in replacement strings.
12148    case $configure_input in #(
12149    *\&* | *\|* | *\\* )
12150       ac_sed_conf_input=`$as_echo "$configure_input" |
12151       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12152    *) ac_sed_conf_input=$configure_input;;
12153    esac
12154
12155    case $ac_tag in
12156    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12157      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12158    esac
12159    ;;
12160  esac
12161
12162  ac_dir=`$as_dirname -- "$ac_file" ||
12163$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12164	 X"$ac_file" : 'X\(//\)[^/]' \| \
12165	 X"$ac_file" : 'X\(//\)$' \| \
12166	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12167$as_echo X"$ac_file" |
12168    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12169	    s//\1/
12170	    q
12171	  }
12172	  /^X\(\/\/\)[^/].*/{
12173	    s//\1/
12174	    q
12175	  }
12176	  /^X\(\/\/\)$/{
12177	    s//\1/
12178	    q
12179	  }
12180	  /^X\(\/\).*/{
12181	    s//\1/
12182	    q
12183	  }
12184	  s/.*/./; q'`
12185  as_dir="$ac_dir"; as_fn_mkdir_p
12186  ac_builddir=.
12187
12188case "$ac_dir" in
12189.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12190*)
12191  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12192  # A ".." for each directory in $ac_dir_suffix.
12193  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12194  case $ac_top_builddir_sub in
12195  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12196  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12197  esac ;;
12198esac
12199ac_abs_top_builddir=$ac_pwd
12200ac_abs_builddir=$ac_pwd$ac_dir_suffix
12201# for backward compatibility:
12202ac_top_builddir=$ac_top_build_prefix
12203
12204case $srcdir in
12205  .)  # We are building in place.
12206    ac_srcdir=.
12207    ac_top_srcdir=$ac_top_builddir_sub
12208    ac_abs_top_srcdir=$ac_pwd ;;
12209  [\\/]* | ?:[\\/]* )  # Absolute name.
12210    ac_srcdir=$srcdir$ac_dir_suffix;
12211    ac_top_srcdir=$srcdir
12212    ac_abs_top_srcdir=$srcdir ;;
12213  *) # Relative name.
12214    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12215    ac_top_srcdir=$ac_top_build_prefix$srcdir
12216    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12217esac
12218ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12219
12220
12221  case $ac_mode in
12222  :F)
12223  #
12224  # CONFIG_FILE
12225  #
12226
12227  case $INSTALL in
12228  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12229  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12230  esac
12231  ac_MKDIR_P=$MKDIR_P
12232  case $MKDIR_P in
12233  [\\/$]* | ?:[\\/]* ) ;;
12234  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12235  esac
12236_ACEOF
12237
12238cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12239# If the template does not know about datarootdir, expand it.
12240# FIXME: This hack should be removed a few years after 2.60.
12241ac_datarootdir_hack=; ac_datarootdir_seen=
12242ac_sed_dataroot='
12243/datarootdir/ {
12244  p
12245  q
12246}
12247/@datadir@/p
12248/@docdir@/p
12249/@infodir@/p
12250/@localedir@/p
12251/@mandir@/p'
12252case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12253*datarootdir*) ac_datarootdir_seen=yes;;
12254*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12255  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12256$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12257_ACEOF
12258cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12259  ac_datarootdir_hack='
12260  s&@datadir@&$datadir&g
12261  s&@docdir@&$docdir&g
12262  s&@infodir@&$infodir&g
12263  s&@localedir@&$localedir&g
12264  s&@mandir@&$mandir&g
12265  s&\\\${datarootdir}&$datarootdir&g' ;;
12266esac
12267_ACEOF
12268
12269# Neutralize VPATH when `$srcdir' = `.'.
12270# Shell code in configure.ac might set extrasub.
12271# FIXME: do we really want to maintain this feature?
12272cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12273ac_sed_extra="$ac_vpsub
12274$extrasub
12275_ACEOF
12276cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12277:t
12278/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12279s|@configure_input@|$ac_sed_conf_input|;t t
12280s&@top_builddir@&$ac_top_builddir_sub&;t t
12281s&@top_build_prefix@&$ac_top_build_prefix&;t t
12282s&@srcdir@&$ac_srcdir&;t t
12283s&@abs_srcdir@&$ac_abs_srcdir&;t t
12284s&@top_srcdir@&$ac_top_srcdir&;t t
12285s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12286s&@builddir@&$ac_builddir&;t t
12287s&@abs_builddir@&$ac_abs_builddir&;t t
12288s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12289s&@INSTALL@&$ac_INSTALL&;t t
12290s&@MKDIR_P@&$ac_MKDIR_P&;t t
12291$ac_datarootdir_hack
12292"
12293eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12294  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12295
12296test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12297  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12298  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12299      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12300  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12301which seems to be undefined.  Please make sure it is defined" >&5
12302$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12303which seems to be undefined.  Please make sure it is defined" >&2;}
12304
12305  rm -f "$ac_tmp/stdin"
12306  case $ac_file in
12307  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12308  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12309  esac \
12310  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12311 ;;
12312  :H)
12313  #
12314  # CONFIG_HEADER
12315  #
12316  if test x"$ac_file" != x-; then
12317    {
12318      $as_echo "/* $configure_input  */" \
12319      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12320    } >"$ac_tmp/config.h" \
12321      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12322    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12323      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12324$as_echo "$as_me: $ac_file is unchanged" >&6;}
12325    else
12326      rm -f "$ac_file"
12327      mv "$ac_tmp/config.h" "$ac_file" \
12328	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12329    fi
12330  else
12331    $as_echo "/* $configure_input  */" \
12332      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12333      || as_fn_error $? "could not create -" "$LINENO" 5
12334  fi
12335# Compute "$ac_file"'s index in $config_headers.
12336_am_arg="$ac_file"
12337_am_stamp_count=1
12338for _am_header in $config_headers :; do
12339  case $_am_header in
12340    $_am_arg | $_am_arg:* )
12341      break ;;
12342    * )
12343      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12344  esac
12345done
12346echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12347$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12348	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12349	 X"$_am_arg" : 'X\(//\)$' \| \
12350	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12351$as_echo X"$_am_arg" |
12352    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12353	    s//\1/
12354	    q
12355	  }
12356	  /^X\(\/\/\)[^/].*/{
12357	    s//\1/
12358	    q
12359	  }
12360	  /^X\(\/\/\)$/{
12361	    s//\1/
12362	    q
12363	  }
12364	  /^X\(\/\).*/{
12365	    s//\1/
12366	    q
12367	  }
12368	  s/.*/./; q'`/stamp-h$_am_stamp_count
12369 ;;
12370
12371  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12372$as_echo "$as_me: executing $ac_file commands" >&6;}
12373 ;;
12374  esac
12375
12376
12377  case $ac_file$ac_mode in
12378    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12379  # Older Autoconf quotes --file arguments for eval, but not when files
12380  # are listed without --file.  Let's play safe and only enable the eval
12381  # if we detect the quoting.
12382  case $CONFIG_FILES in
12383  *\'*) eval set x "$CONFIG_FILES" ;;
12384  *)   set x $CONFIG_FILES ;;
12385  esac
12386  shift
12387  for mf
12388  do
12389    # Strip MF so we end up with the name of the file.
12390    mf=`echo "$mf" | sed -e 's/:.*$//'`
12391    # Check whether this is an Automake generated Makefile or not.
12392    # We used to match only the files named 'Makefile.in', but
12393    # some people rename them; so instead we look at the file content.
12394    # Grep'ing the first line is not enough: some people post-process
12395    # each Makefile.in and add a new line on top of each file to say so.
12396    # Grep'ing the whole file is not good either: AIX grep has a line
12397    # limit of 2048, but all sed's we know have understand at least 4000.
12398    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12399      dirpart=`$as_dirname -- "$mf" ||
12400$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12401	 X"$mf" : 'X\(//\)[^/]' \| \
12402	 X"$mf" : 'X\(//\)$' \| \
12403	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12404$as_echo X"$mf" |
12405    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12406	    s//\1/
12407	    q
12408	  }
12409	  /^X\(\/\/\)[^/].*/{
12410	    s//\1/
12411	    q
12412	  }
12413	  /^X\(\/\/\)$/{
12414	    s//\1/
12415	    q
12416	  }
12417	  /^X\(\/\).*/{
12418	    s//\1/
12419	    q
12420	  }
12421	  s/.*/./; q'`
12422    else
12423      continue
12424    fi
12425    # Extract the definition of DEPDIR, am__include, and am__quote
12426    # from the Makefile without running 'make'.
12427    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12428    test -z "$DEPDIR" && continue
12429    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12430    test -z "$am__include" && continue
12431    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12432    # Find all dependency output files, they are included files with
12433    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12434    # simplest approach to changing $(DEPDIR) to its actual value in the
12435    # expansion.
12436    for file in `sed -n "
12437      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12438	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12439      # Make sure the directory exists.
12440      test -f "$dirpart/$file" && continue
12441      fdir=`$as_dirname -- "$file" ||
12442$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12443	 X"$file" : 'X\(//\)[^/]' \| \
12444	 X"$file" : 'X\(//\)$' \| \
12445	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12446$as_echo X"$file" |
12447    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12448	    s//\1/
12449	    q
12450	  }
12451	  /^X\(\/\/\)[^/].*/{
12452	    s//\1/
12453	    q
12454	  }
12455	  /^X\(\/\/\)$/{
12456	    s//\1/
12457	    q
12458	  }
12459	  /^X\(\/\).*/{
12460	    s//\1/
12461	    q
12462	  }
12463	  s/.*/./; q'`
12464      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12465      # echo "creating $dirpart/$file"
12466      echo '# dummy' > "$dirpart/$file"
12467    done
12468  done
12469}
12470 ;;
12471
12472  esac
12473done # for ac_tag
12474
12475
12476as_fn_exit 0
12477_ACEOF
12478ac_clean_files=$ac_clean_files_save
12479
12480test $ac_write_fail = 0 ||
12481  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12482
12483
12484# configure is writing to config.log, and then calls config.status.
12485# config.status does its own redirection, appending to config.log.
12486# Unfortunately, on DOS this fails, as config.log is still kept open
12487# by configure, so config.status won't be able to write to it; its
12488# output is simply discarded.  So we exec the FD to /dev/null,
12489# effectively closing config.log, so it can be properly (re)opened and
12490# appended to by config.status.  When coming back to configure, we
12491# need to make the FD available again.
12492if test "$no_create" != yes; then
12493  ac_cs_success=:
12494  ac_config_status_args=
12495  test "$silent" = yes &&
12496    ac_config_status_args="$ac_config_status_args --quiet"
12497  exec 5>/dev/null
12498  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12499  exec 5>>config.log
12500  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12501  # would make configure fail if this is the last instruction.
12502  $ac_cs_success || as_fn_exit 1
12503fi
12504if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12505  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12506$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12507fi
12508
12509