1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for xinit 1.4.3.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xinit/-/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else $as_nop
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
100    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed `exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146  emulate sh
147  NULLCMD=:
148  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149  # is contrary to our usage.  Disable this feature.
150  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151  setopt NO_GLOB_SUBST
152else \$as_nop
153  case \`(set -o) 2>/dev/null\` in #(
154  *posix*) :
155    set -o posix ;; #(
156  *) :
157     ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else \$as_nop
176  exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186test \$(( 1 + 1 )) = 2 || exit 1"
187  if (eval "$as_required") 2>/dev/null
188then :
189  as_have_required=yes
190else $as_nop
191  as_have_required=no
192fi
193  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194then :
195
196else $as_nop
197  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198as_found=false
199for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200do
201  IFS=$as_save_IFS
202  case $as_dir in #(((
203    '') as_dir=./ ;;
204    */) ;;
205    *) as_dir=$as_dir/ ;;
206  esac
207  as_found=:
208  case $as_dir in #(
209	 /*)
210	   for as_base in sh bash ksh sh5; do
211	     # Try only shells that exist, to save several forks.
212	     as_shell=$as_dir$as_base
213	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215then :
216  CONFIG_SHELL=$as_shell as_have_required=yes
217		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218then :
219  break 2
220fi
221fi
222	   done;;
223       esac
224  as_found=false
225done
226IFS=$as_save_IFS
227if $as_found
228then :
229
230else $as_nop
231  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233then :
234  CONFIG_SHELL=$SHELL as_have_required=yes
235fi
236fi
237
238
239      if test "x$CONFIG_SHELL" != x
240then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno
263then :
264  printf "%s\n" "$0: This script requires a shell more modern than all"
265  printf "%s\n" "$0: the shells that I found on your system."
266  if test ${ZSH_VERSION+y} ; then
267    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269  else
270    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
271$0: https://gitlab.freedesktop.org/xorg/app/xinit/-/issues
272$0: about your system, including any error possibly output
273$0: before this message. Then install a modern shell, or
274$0: manually run the script under such a shell if you do
275$0: have one."
276  fi
277  exit 1
278fi
279fi
280fi
281SHELL=${CONFIG_SHELL-/bin/sh}
282export SHELL
283# Unset more variables known to interfere with behavior of common tools.
284CLICOLOR_FORCE= GREP_OPTIONS=
285unset CLICOLOR_FORCE GREP_OPTIONS
286
287## --------------------- ##
288## M4sh Shell Functions. ##
289## --------------------- ##
290# as_fn_unset VAR
291# ---------------
292# Portably unset VAR.
293as_fn_unset ()
294{
295  { eval $1=; unset $1;}
296}
297as_unset=as_fn_unset
298
299
300# as_fn_set_status STATUS
301# -----------------------
302# Set $? to STATUS, without forking.
303as_fn_set_status ()
304{
305  return $1
306} # as_fn_set_status
307
308# as_fn_exit STATUS
309# -----------------
310# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
311as_fn_exit ()
312{
313  set +e
314  as_fn_set_status $1
315  exit $1
316} # as_fn_exit
317# as_fn_nop
318# ---------
319# Do nothing but, unlike ":", preserve the value of $?.
320as_fn_nop ()
321{
322  return $?
323}
324as_nop=as_fn_nop
325
326# as_fn_mkdir_p
327# -------------
328# Create "$as_dir" as a directory, including parents if necessary.
329as_fn_mkdir_p ()
330{
331
332  case $as_dir in #(
333  -*) as_dir=./$as_dir;;
334  esac
335  test -d "$as_dir" || eval $as_mkdir_p || {
336    as_dirs=
337    while :; do
338      case $as_dir in #(
339      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340      *) as_qdir=$as_dir;;
341      esac
342      as_dirs="'$as_qdir' $as_dirs"
343      as_dir=`$as_dirname -- "$as_dir" ||
344$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345	 X"$as_dir" : 'X\(//\)[^/]' \| \
346	 X"$as_dir" : 'X\(//\)$' \| \
347	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348printf "%s\n" X"$as_dir" |
349    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350	    s//\1/
351	    q
352	  }
353	  /^X\(\/\/\)[^/].*/{
354	    s//\1/
355	    q
356	  }
357	  /^X\(\/\/\)$/{
358	    s//\1/
359	    q
360	  }
361	  /^X\(\/\).*/{
362	    s//\1/
363	    q
364	  }
365	  s/.*/./; q'`
366      test -d "$as_dir" && break
367    done
368    test -z "$as_dirs" || eval "mkdir $as_dirs"
369  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372} # as_fn_mkdir_p
373
374# as_fn_executable_p FILE
375# -----------------------
376# Test if FILE is an executable regular file.
377as_fn_executable_p ()
378{
379  test -f "$1" && test -x "$1"
380} # as_fn_executable_p
381# as_fn_append VAR VALUE
382# ----------------------
383# Append the text in VALUE to the end of the definition contained in VAR. Take
384# advantage of any shell optimizations that allow amortized linear growth over
385# repeated appends, instead of the typical quadratic growth present in naive
386# implementations.
387if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388then :
389  eval 'as_fn_append ()
390  {
391    eval $1+=\$2
392  }'
393else $as_nop
394  as_fn_append ()
395  {
396    eval $1=\$$1\$2
397  }
398fi # as_fn_append
399
400# as_fn_arith ARG...
401# ------------------
402# Perform arithmetic evaluation on the ARGs, and store the result in the
403# global $as_val. Take advantage of shells that can avoid forks. The arguments
404# must be portable across $(()) and expr.
405if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
406then :
407  eval 'as_fn_arith ()
408  {
409    as_val=$(( $* ))
410  }'
411else $as_nop
412  as_fn_arith ()
413  {
414    as_val=`expr "$@" || test $? -eq 1`
415  }
416fi # as_fn_arith
417
418# as_fn_nop
419# ---------
420# Do nothing but, unlike ":", preserve the value of $?.
421as_fn_nop ()
422{
423  return $?
424}
425as_nop=as_fn_nop
426
427# as_fn_error STATUS ERROR [LINENO LOG_FD]
428# ----------------------------------------
429# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
430# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
431# script with STATUS, using 1 if that was 0.
432as_fn_error ()
433{
434  as_status=$1; test $as_status -eq 0 && as_status=1
435  if test "$4"; then
436    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
437    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
438  fi
439  printf "%s\n" "$as_me: error: $2" >&2
440  as_fn_exit $as_status
441} # as_fn_error
442
443if expr a : '\(a\)' >/dev/null 2>&1 &&
444   test "X`expr 00001 : '.*\(...\)'`" = X001; then
445  as_expr=expr
446else
447  as_expr=false
448fi
449
450if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
451  as_basename=basename
452else
453  as_basename=false
454fi
455
456if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
457  as_dirname=dirname
458else
459  as_dirname=false
460fi
461
462as_me=`$as_basename -- "$0" ||
463$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
464	 X"$0" : 'X\(//\)$' \| \
465	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
466printf "%s\n" X/"$0" |
467    sed '/^.*\/\([^/][^/]*\)\/*$/{
468	    s//\1/
469	    q
470	  }
471	  /^X\/\(\/\/\)$/{
472	    s//\1/
473	    q
474	  }
475	  /^X\/\(\/\).*/{
476	    s//\1/
477	    q
478	  }
479	  s/.*/./; q'`
480
481# Avoid depending upon Character Ranges.
482as_cr_letters='abcdefghijklmnopqrstuvwxyz'
483as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
484as_cr_Letters=$as_cr_letters$as_cr_LETTERS
485as_cr_digits='0123456789'
486as_cr_alnum=$as_cr_Letters$as_cr_digits
487
488
489  as_lineno_1=$LINENO as_lineno_1a=$LINENO
490  as_lineno_2=$LINENO as_lineno_2a=$LINENO
491  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
492  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
493  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
494  sed -n '
495    p
496    /[$]LINENO/=
497  ' <$as_myself |
498    sed '
499      s/[$]LINENO.*/&-/
500      t lineno
501      b
502      :lineno
503      N
504      :loop
505      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506      t loop
507      s/-\n.*//
508    ' >$as_me.lineno &&
509  chmod +x "$as_me.lineno" ||
510    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511
512  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513  # already done that, so ensure we don't try to do so again and fall
514  # in an infinite loop.  This has already happened in practice.
515  _as_can_reexec=no; export _as_can_reexec
516  # Don't try to exec as it changes $[0], causing all sort of problems
517  # (the dirname of $[0] is not the place where we might find the
518  # original and so on.  Autoconf is especially sensitive to this).
519  . "./$as_me.lineno"
520  # Exit status is that of the last command.
521  exit
522}
523
524
525# Determine whether it's possible to make 'echo' print without a newline.
526# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527# for compatibility with existing Makefiles.
528ECHO_C= ECHO_N= ECHO_T=
529case `echo -n x` in #(((((
530-n*)
531  case `echo 'xy\c'` in
532  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
533  xy)  ECHO_C='\c';;
534  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
535       ECHO_T='	';;
536  esac;;
537*)
538  ECHO_N='-n';;
539esac
540
541# For backward compatibility with old third-party macros, we provide
542# the shell variables $as_echo and $as_echo_n.  New code should use
543# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544as_echo='printf %s\n'
545as_echo_n='printf %s'
546
547
548rm -f conf$$ conf$$.exe conf$$.file
549if test -d conf$$.dir; then
550  rm -f conf$$.dir/conf$$.file
551else
552  rm -f conf$$.dir
553  mkdir conf$$.dir 2>/dev/null
554fi
555if (echo >conf$$.file) 2>/dev/null; then
556  if ln -s conf$$.file conf$$ 2>/dev/null; then
557    as_ln_s='ln -s'
558    # ... but there are two gotchas:
559    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
560    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
561    # In both cases, we have to default to `cp -pR'.
562    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
563      as_ln_s='cp -pR'
564  elif ln conf$$.file conf$$ 2>/dev/null; then
565    as_ln_s=ln
566  else
567    as_ln_s='cp -pR'
568  fi
569else
570  as_ln_s='cp -pR'
571fi
572rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
573rmdir conf$$.dir 2>/dev/null
574
575if mkdir -p . 2>/dev/null; then
576  as_mkdir_p='mkdir -p "$as_dir"'
577else
578  test -d ./-p && rmdir ./-p
579  as_mkdir_p=false
580fi
581
582as_test_x='test -x'
583as_executable_p=as_fn_executable_p
584
585# Sed expression to map a string onto a valid CPP name.
586as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
587
588# Sed expression to map a string onto a valid variable name.
589as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
590
591
592test -n "$DJDIR" || exec 7<&0 </dev/null
593exec 6>&1
594
595# Name of the host.
596# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
597# so uname gets run too.
598ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
599
600#
601# Initializations.
602#
603ac_default_prefix=/usr/local
604ac_clean_files=
605ac_config_libobj_dir=.
606LIBOBJS=
607cross_compiling=no
608subdirs=
609MFLAGS=
610MAKEFLAGS=
611
612# Identity of this package.
613PACKAGE_NAME='xinit'
614PACKAGE_TARNAME='xinit'
615PACKAGE_VERSION='1.4.3'
616PACKAGE_STRING='xinit 1.4.3'
617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xinit/-/issues'
618PACKAGE_URL=''
619
620ac_unique_file="Makefile.am"
621# Factoring default headers for most tests.
622ac_includes_default="\
623#include <stddef.h>
624#ifdef HAVE_STDIO_H
625# include <stdio.h>
626#endif
627#ifdef HAVE_STDLIB_H
628# include <stdlib.h>
629#endif
630#ifdef HAVE_STRING_H
631# include <string.h>
632#endif
633#ifdef HAVE_INTTYPES_H
634# include <inttypes.h>
635#endif
636#ifdef HAVE_STDINT_H
637# include <stdint.h>
638#endif
639#ifdef HAVE_STRINGS_H
640# include <strings.h>
641#endif
642#ifdef HAVE_SYS_TYPES_H
643# include <sys/types.h>
644#endif
645#ifdef HAVE_SYS_STAT_H
646# include <sys/stat.h>
647#endif
648#ifdef HAVE_UNISTD_H
649# include <unistd.h>
650#endif"
651
652ac_header_c_list=
653ac_subst_vars='am__EXEEXT_FALSE
654am__EXEEXT_TRUE
655LTLIBOBJS
656LIBOBJS
657XINITDIR
658XINIT
659XAUTH
660XSERVER
661XTERM
662XCLOCK
663TWM
664XMODMAP
665XRDB
666XCONFIGFILEMAN
667XCONFIGFILE
668XSERVERNAME
669SHELL_CMD
670STARTX_COOKIE_FLAGS
671OPENSSL
672MCOOKIE
673XINIT_LIBS
674XINIT_CFLAGS
675LAUNCHAGENT_XSERVER_FALSE
676LAUNCHAGENT_XSERVER_TRUE
677LAUNCHD_FALSE
678LAUNCHD_TRUE
679launchagentxserver
680bundleidprefix
681launchdaemonsdir
682launchagentsdir
683LAUNCHD
684TRADITIONALCPPFLAGS
685RAWCPPFLAGS
686RAWCPP
687CPP
688MAN_SUBSTS
689XORG_MAN_PAGE
690ADMIN_MAN_DIR
691DRIVER_MAN_DIR
692MISC_MAN_DIR
693FILE_MAN_DIR
694LIB_MAN_DIR
695APP_MAN_DIR
696ADMIN_MAN_SUFFIX
697DRIVER_MAN_SUFFIX
698MISC_MAN_SUFFIX
699FILE_MAN_SUFFIX
700LIB_MAN_SUFFIX
701APP_MAN_SUFFIX
702SED
703host_os
704host_vendor
705host_cpu
706host
707build_os
708build_vendor
709build_cpu
710build
711INSTALL_CMD
712PKG_CONFIG_LIBDIR
713PKG_CONFIG_PATH
714PKG_CONFIG
715CHANGELOG_CMD
716STRICT_CFLAGS
717CWARNFLAGS
718BASE_CFLAGS
719AM_BACKSLASH
720AM_DEFAULT_VERBOSITY
721AM_DEFAULT_V
722AM_V
723am__fastdepCC_FALSE
724am__fastdepCC_TRUE
725CCDEPMODE
726am__nodep
727AMDEPBACKSLASH
728AMDEP_FALSE
729AMDEP_TRUE
730am__include
731DEPDIR
732am__untar
733am__tar
734AMTAR
735am__leading_dot
736SET_MAKE
737AWK
738mkdir_p
739MKDIR_P
740INSTALL_STRIP_PROGRAM
741STRIP
742install_sh
743MAKEINFO
744AUTOHEADER
745AUTOMAKE
746AUTOCONF
747ACLOCAL
748VERSION
749PACKAGE
750CYGPATH_W
751am__isrc
752INSTALL_DATA
753INSTALL_SCRIPT
754INSTALL_PROGRAM
755OBJEXT
756EXEEXT
757ac_ct_CC
758CPPFLAGS
759LDFLAGS
760CFLAGS
761CC
762target_alias
763host_alias
764build_alias
765LIBS
766ECHO_T
767ECHO_N
768ECHO_C
769DEFS
770mandir
771localedir
772libdir
773psdir
774pdfdir
775dvidir
776htmldir
777infodir
778docdir
779oldincludedir
780includedir
781runstatedir
782localstatedir
783sharedstatedir
784sysconfdir
785datadir
786datarootdir
787libexecdir
788sbindir
789bindir
790program_transform_name
791prefix
792exec_prefix
793PACKAGE_URL
794PACKAGE_BUGREPORT
795PACKAGE_STRING
796PACKAGE_VERSION
797PACKAGE_TARNAME
798PACKAGE_NAME
799PATH_SEPARATOR
800SHELL
801am__quote'
802ac_subst_files=''
803ac_user_opts='
804enable_option_checking
805enable_dependency_tracking
806enable_silent_rules
807enable_selective_werror
808enable_strict_compilation
809with_xrdb
810with_xmodmap
811with_twm
812with_xclock
813with_xterm
814with_xserver
815with_xauth
816with_xinit
817with_xinitdir
818with_launchd
819with_launchagents_dir
820with_launchagent_xserver
821with_launchdaemons_dir
822with_launchd_id_prefix
823with_bundle_id_prefix
824'
825      ac_precious_vars='build_alias
826host_alias
827target_alias
828CC
829CFLAGS
830LDFLAGS
831LIBS
832CPPFLAGS
833PKG_CONFIG
834PKG_CONFIG_PATH
835PKG_CONFIG_LIBDIR
836CPP
837XINIT_CFLAGS
838XINIT_LIBS'
839
840
841# Initialize some variables set by options.
842ac_init_help=
843ac_init_version=false
844ac_unrecognized_opts=
845ac_unrecognized_sep=
846# The variables have the same names as the options, with
847# dashes changed to underlines.
848cache_file=/dev/null
849exec_prefix=NONE
850no_create=
851no_recursion=
852prefix=NONE
853program_prefix=NONE
854program_suffix=NONE
855program_transform_name=s,x,x,
856silent=
857site=
858srcdir=
859verbose=
860x_includes=NONE
861x_libraries=NONE
862
863# Installation directory options.
864# These are left unexpanded so users can "make install exec_prefix=/foo"
865# and all the variables that are supposed to be based on exec_prefix
866# by default will actually change.
867# Use braces instead of parens because sh, perl, etc. also accept them.
868# (The list follows the same order as the GNU Coding Standards.)
869bindir='${exec_prefix}/bin'
870sbindir='${exec_prefix}/sbin'
871libexecdir='${exec_prefix}/libexec'
872datarootdir='${prefix}/share'
873datadir='${datarootdir}'
874sysconfdir='${prefix}/etc'
875sharedstatedir='${prefix}/com'
876localstatedir='${prefix}/var'
877runstatedir='${localstatedir}/run'
878includedir='${prefix}/include'
879oldincludedir='/usr/include'
880docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
881infodir='${datarootdir}/info'
882htmldir='${docdir}'
883dvidir='${docdir}'
884pdfdir='${docdir}'
885psdir='${docdir}'
886libdir='${exec_prefix}/lib'
887localedir='${datarootdir}/locale'
888mandir='${datarootdir}/man'
889
890ac_prev=
891ac_dashdash=
892for ac_option
893do
894  # If the previous option needs an argument, assign it.
895  if test -n "$ac_prev"; then
896    eval $ac_prev=\$ac_option
897    ac_prev=
898    continue
899  fi
900
901  case $ac_option in
902  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
903  *=)   ac_optarg= ;;
904  *)    ac_optarg=yes ;;
905  esac
906
907  case $ac_dashdash$ac_option in
908  --)
909    ac_dashdash=yes ;;
910
911  -bindir | --bindir | --bindi | --bind | --bin | --bi)
912    ac_prev=bindir ;;
913  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
914    bindir=$ac_optarg ;;
915
916  -build | --build | --buil | --bui | --bu)
917    ac_prev=build_alias ;;
918  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
919    build_alias=$ac_optarg ;;
920
921  -cache-file | --cache-file | --cache-fil | --cache-fi \
922  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
923    ac_prev=cache_file ;;
924  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
925  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
926    cache_file=$ac_optarg ;;
927
928  --config-cache | -C)
929    cache_file=config.cache ;;
930
931  -datadir | --datadir | --datadi | --datad)
932    ac_prev=datadir ;;
933  -datadir=* | --datadir=* | --datadi=* | --datad=*)
934    datadir=$ac_optarg ;;
935
936  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
937  | --dataroo | --dataro | --datar)
938    ac_prev=datarootdir ;;
939  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
940  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
941    datarootdir=$ac_optarg ;;
942
943  -disable-* | --disable-*)
944    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
945    # Reject names that are not valid shell variable names.
946    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947      as_fn_error $? "invalid feature name: \`$ac_useropt'"
948    ac_useropt_orig=$ac_useropt
949    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
950    case $ac_user_opts in
951      *"
952"enable_$ac_useropt"
953"*) ;;
954      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
955	 ac_unrecognized_sep=', ';;
956    esac
957    eval enable_$ac_useropt=no ;;
958
959  -docdir | --docdir | --docdi | --doc | --do)
960    ac_prev=docdir ;;
961  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
962    docdir=$ac_optarg ;;
963
964  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
965    ac_prev=dvidir ;;
966  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
967    dvidir=$ac_optarg ;;
968
969  -enable-* | --enable-*)
970    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
971    # Reject names that are not valid shell variable names.
972    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973      as_fn_error $? "invalid feature name: \`$ac_useropt'"
974    ac_useropt_orig=$ac_useropt
975    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
976    case $ac_user_opts in
977      *"
978"enable_$ac_useropt"
979"*) ;;
980      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
981	 ac_unrecognized_sep=', ';;
982    esac
983    eval enable_$ac_useropt=\$ac_optarg ;;
984
985  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987  | --exec | --exe | --ex)
988    ac_prev=exec_prefix ;;
989  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991  | --exec=* | --exe=* | --ex=*)
992    exec_prefix=$ac_optarg ;;
993
994  -gas | --gas | --ga | --g)
995    # Obsolete; use --with-gas.
996    with_gas=yes ;;
997
998  -help | --help | --hel | --he | -h)
999    ac_init_help=long ;;
1000  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001    ac_init_help=recursive ;;
1002  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003    ac_init_help=short ;;
1004
1005  -host | --host | --hos | --ho)
1006    ac_prev=host_alias ;;
1007  -host=* | --host=* | --hos=* | --ho=*)
1008    host_alias=$ac_optarg ;;
1009
1010  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1011    ac_prev=htmldir ;;
1012  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1013  | --ht=*)
1014    htmldir=$ac_optarg ;;
1015
1016  -includedir | --includedir | --includedi | --included | --include \
1017  | --includ | --inclu | --incl | --inc)
1018    ac_prev=includedir ;;
1019  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020  | --includ=* | --inclu=* | --incl=* | --inc=*)
1021    includedir=$ac_optarg ;;
1022
1023  -infodir | --infodir | --infodi | --infod | --info | --inf)
1024    ac_prev=infodir ;;
1025  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1026    infodir=$ac_optarg ;;
1027
1028  -libdir | --libdir | --libdi | --libd)
1029    ac_prev=libdir ;;
1030  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1031    libdir=$ac_optarg ;;
1032
1033  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034  | --libexe | --libex | --libe)
1035    ac_prev=libexecdir ;;
1036  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037  | --libexe=* | --libex=* | --libe=*)
1038    libexecdir=$ac_optarg ;;
1039
1040  -localedir | --localedir | --localedi | --localed | --locale)
1041    ac_prev=localedir ;;
1042  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043    localedir=$ac_optarg ;;
1044
1045  -localstatedir | --localstatedir | --localstatedi | --localstated \
1046  | --localstate | --localstat | --localsta | --localst | --locals)
1047    ac_prev=localstatedir ;;
1048  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1049  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1050    localstatedir=$ac_optarg ;;
1051
1052  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1053    ac_prev=mandir ;;
1054  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1055    mandir=$ac_optarg ;;
1056
1057  -nfp | --nfp | --nf)
1058    # Obsolete; use --without-fp.
1059    with_fp=no ;;
1060
1061  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1062  | --no-cr | --no-c | -n)
1063    no_create=yes ;;
1064
1065  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1067    no_recursion=yes ;;
1068
1069  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071  | --oldin | --oldi | --old | --ol | --o)
1072    ac_prev=oldincludedir ;;
1073  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1076    oldincludedir=$ac_optarg ;;
1077
1078  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1079    ac_prev=prefix ;;
1080  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1081    prefix=$ac_optarg ;;
1082
1083  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084  | --program-pre | --program-pr | --program-p)
1085    ac_prev=program_prefix ;;
1086  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1088    program_prefix=$ac_optarg ;;
1089
1090  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091  | --program-suf | --program-su | --program-s)
1092    ac_prev=program_suffix ;;
1093  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1095    program_suffix=$ac_optarg ;;
1096
1097  -program-transform-name | --program-transform-name \
1098  | --program-transform-nam | --program-transform-na \
1099  | --program-transform-n | --program-transform- \
1100  | --program-transform | --program-transfor \
1101  | --program-transfo | --program-transf \
1102  | --program-trans | --program-tran \
1103  | --progr-tra | --program-tr | --program-t)
1104    ac_prev=program_transform_name ;;
1105  -program-transform-name=* | --program-transform-name=* \
1106  | --program-transform-nam=* | --program-transform-na=* \
1107  | --program-transform-n=* | --program-transform-=* \
1108  | --program-transform=* | --program-transfor=* \
1109  | --program-transfo=* | --program-transf=* \
1110  | --program-trans=* | --program-tran=* \
1111  | --progr-tra=* | --program-tr=* | --program-t=*)
1112    program_transform_name=$ac_optarg ;;
1113
1114  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1115    ac_prev=pdfdir ;;
1116  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117    pdfdir=$ac_optarg ;;
1118
1119  -psdir | --psdir | --psdi | --psd | --ps)
1120    ac_prev=psdir ;;
1121  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1122    psdir=$ac_optarg ;;
1123
1124  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125  | -silent | --silent | --silen | --sile | --sil)
1126    silent=yes ;;
1127
1128  -runstatedir | --runstatedir | --runstatedi | --runstated \
1129  | --runstate | --runstat | --runsta | --runst | --runs \
1130  | --run | --ru | --r)
1131    ac_prev=runstatedir ;;
1132  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1133  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1134  | --run=* | --ru=* | --r=*)
1135    runstatedir=$ac_optarg ;;
1136
1137  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1138    ac_prev=sbindir ;;
1139  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1140  | --sbi=* | --sb=*)
1141    sbindir=$ac_optarg ;;
1142
1143  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1144  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1145  | --sharedst | --shareds | --shared | --share | --shar \
1146  | --sha | --sh)
1147    ac_prev=sharedstatedir ;;
1148  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1149  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1150  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1151  | --sha=* | --sh=*)
1152    sharedstatedir=$ac_optarg ;;
1153
1154  -site | --site | --sit)
1155    ac_prev=site ;;
1156  -site=* | --site=* | --sit=*)
1157    site=$ac_optarg ;;
1158
1159  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1160    ac_prev=srcdir ;;
1161  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1162    srcdir=$ac_optarg ;;
1163
1164  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1165  | --syscon | --sysco | --sysc | --sys | --sy)
1166    ac_prev=sysconfdir ;;
1167  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1168  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1169    sysconfdir=$ac_optarg ;;
1170
1171  -target | --target | --targe | --targ | --tar | --ta | --t)
1172    ac_prev=target_alias ;;
1173  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1174    target_alias=$ac_optarg ;;
1175
1176  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1177    verbose=yes ;;
1178
1179  -version | --version | --versio | --versi | --vers | -V)
1180    ac_init_version=: ;;
1181
1182  -with-* | --with-*)
1183    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1184    # Reject names that are not valid shell variable names.
1185    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186      as_fn_error $? "invalid package name: \`$ac_useropt'"
1187    ac_useropt_orig=$ac_useropt
1188    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1189    case $ac_user_opts in
1190      *"
1191"with_$ac_useropt"
1192"*) ;;
1193      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1194	 ac_unrecognized_sep=', ';;
1195    esac
1196    eval with_$ac_useropt=\$ac_optarg ;;
1197
1198  -without-* | --without-*)
1199    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1200    # Reject names that are not valid shell variable names.
1201    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202      as_fn_error $? "invalid package name: \`$ac_useropt'"
1203    ac_useropt_orig=$ac_useropt
1204    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1205    case $ac_user_opts in
1206      *"
1207"with_$ac_useropt"
1208"*) ;;
1209      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1210	 ac_unrecognized_sep=', ';;
1211    esac
1212    eval with_$ac_useropt=no ;;
1213
1214  --x)
1215    # Obsolete; use --with-x.
1216    with_x=yes ;;
1217
1218  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1219  | --x-incl | --x-inc | --x-in | --x-i)
1220    ac_prev=x_includes ;;
1221  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1222  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1223    x_includes=$ac_optarg ;;
1224
1225  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1226  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1227    ac_prev=x_libraries ;;
1228  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1229  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1230    x_libraries=$ac_optarg ;;
1231
1232  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1233Try \`$0 --help' for more information"
1234    ;;
1235
1236  *=*)
1237    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1238    # Reject names that are not valid shell variable names.
1239    case $ac_envvar in #(
1240      '' | [0-9]* | *[!_$as_cr_alnum]* )
1241      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1242    esac
1243    eval $ac_envvar=\$ac_optarg
1244    export $ac_envvar ;;
1245
1246  *)
1247    # FIXME: should be removed in autoconf 3.0.
1248    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1249    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1251    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1252    ;;
1253
1254  esac
1255done
1256
1257if test -n "$ac_prev"; then
1258  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1259  as_fn_error $? "missing argument to $ac_option"
1260fi
1261
1262if test -n "$ac_unrecognized_opts"; then
1263  case $enable_option_checking in
1264    no) ;;
1265    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1266    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1267  esac
1268fi
1269
1270# Check all directory arguments for consistency.
1271for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1272		datadir sysconfdir sharedstatedir localstatedir includedir \
1273		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1274		libdir localedir mandir runstatedir
1275do
1276  eval ac_val=\$$ac_var
1277  # Remove trailing slashes.
1278  case $ac_val in
1279    */ )
1280      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1281      eval $ac_var=\$ac_val;;
1282  esac
1283  # Be sure to have absolute directory names.
1284  case $ac_val in
1285    [\\/$]* | ?:[\\/]* )  continue;;
1286    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1287  esac
1288  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1289done
1290
1291# There might be people who depend on the old broken behavior: `$host'
1292# used to hold the argument of --host etc.
1293# FIXME: To remove some day.
1294build=$build_alias
1295host=$host_alias
1296target=$target_alias
1297
1298# FIXME: To remove some day.
1299if test "x$host_alias" != x; then
1300  if test "x$build_alias" = x; then
1301    cross_compiling=maybe
1302  elif test "x$build_alias" != "x$host_alias"; then
1303    cross_compiling=yes
1304  fi
1305fi
1306
1307ac_tool_prefix=
1308test -n "$host_alias" && ac_tool_prefix=$host_alias-
1309
1310test "$silent" = yes && exec 6>/dev/null
1311
1312
1313ac_pwd=`pwd` && test -n "$ac_pwd" &&
1314ac_ls_di=`ls -di .` &&
1315ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1316  as_fn_error $? "working directory cannot be determined"
1317test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1318  as_fn_error $? "pwd does not report name of working directory"
1319
1320
1321# Find the source files, if location was not specified.
1322if test -z "$srcdir"; then
1323  ac_srcdir_defaulted=yes
1324  # Try the directory containing this script, then the parent directory.
1325  ac_confdir=`$as_dirname -- "$as_myself" ||
1326$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1327	 X"$as_myself" : 'X\(//\)[^/]' \| \
1328	 X"$as_myself" : 'X\(//\)$' \| \
1329	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1330printf "%s\n" X"$as_myself" |
1331    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1332	    s//\1/
1333	    q
1334	  }
1335	  /^X\(\/\/\)[^/].*/{
1336	    s//\1/
1337	    q
1338	  }
1339	  /^X\(\/\/\)$/{
1340	    s//\1/
1341	    q
1342	  }
1343	  /^X\(\/\).*/{
1344	    s//\1/
1345	    q
1346	  }
1347	  s/.*/./; q'`
1348  srcdir=$ac_confdir
1349  if test ! -r "$srcdir/$ac_unique_file"; then
1350    srcdir=..
1351  fi
1352else
1353  ac_srcdir_defaulted=no
1354fi
1355if test ! -r "$srcdir/$ac_unique_file"; then
1356  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1357  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1358fi
1359ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1360ac_abs_confdir=`(
1361	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1362	pwd)`
1363# When building in place, set srcdir=.
1364if test "$ac_abs_confdir" = "$ac_pwd"; then
1365  srcdir=.
1366fi
1367# Remove unnecessary trailing slashes from srcdir.
1368# Double slashes in file names in object file debugging info
1369# mess up M-x gdb in Emacs.
1370case $srcdir in
1371*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1372esac
1373for ac_var in $ac_precious_vars; do
1374  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1375  eval ac_env_${ac_var}_value=\$${ac_var}
1376  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1377  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1378done
1379
1380#
1381# Report the --help message.
1382#
1383if test "$ac_init_help" = "long"; then
1384  # Omit some internal or obsolete options to make the list less imposing.
1385  # This message is too long to be a string in the A/UX 3.1 sh.
1386  cat <<_ACEOF
1387\`configure' configures xinit 1.4.3 to adapt to many kinds of systems.
1388
1389Usage: $0 [OPTION]... [VAR=VALUE]...
1390
1391To assign environment variables (e.g., CC, CFLAGS...), specify them as
1392VAR=VALUE.  See below for descriptions of some of the useful variables.
1393
1394Defaults for the options are specified in brackets.
1395
1396Configuration:
1397  -h, --help              display this help and exit
1398      --help=short        display options specific to this package
1399      --help=recursive    display the short help of all the included packages
1400  -V, --version           display version information and exit
1401  -q, --quiet, --silent   do not print \`checking ...' messages
1402      --cache-file=FILE   cache test results in FILE [disabled]
1403  -C, --config-cache      alias for \`--cache-file=config.cache'
1404  -n, --no-create         do not create output files
1405      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1406
1407Installation directories:
1408  --prefix=PREFIX         install architecture-independent files in PREFIX
1409                          [$ac_default_prefix]
1410  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1411                          [PREFIX]
1412
1413By default, \`make install' will install all the files in
1414\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1415an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1416for instance \`--prefix=\$HOME'.
1417
1418For better control, use the options below.
1419
1420Fine tuning of the installation directories:
1421  --bindir=DIR            user executables [EPREFIX/bin]
1422  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1423  --libexecdir=DIR        program executables [EPREFIX/libexec]
1424  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1425  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1426  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1427  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1428  --libdir=DIR            object code libraries [EPREFIX/lib]
1429  --includedir=DIR        C header files [PREFIX/include]
1430  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1431  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1432  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1433  --infodir=DIR           info documentation [DATAROOTDIR/info]
1434  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1435  --mandir=DIR            man documentation [DATAROOTDIR/man]
1436  --docdir=DIR            documentation root [DATAROOTDIR/doc/xinit]
1437  --htmldir=DIR           html documentation [DOCDIR]
1438  --dvidir=DIR            dvi documentation [DOCDIR]
1439  --pdfdir=DIR            pdf documentation [DOCDIR]
1440  --psdir=DIR             ps documentation [DOCDIR]
1441_ACEOF
1442
1443  cat <<\_ACEOF
1444
1445Program names:
1446  --program-prefix=PREFIX            prepend PREFIX to installed program names
1447  --program-suffix=SUFFIX            append SUFFIX to installed program names
1448  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1449
1450System types:
1451  --build=BUILD     configure for building on BUILD [guessed]
1452  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1453_ACEOF
1454fi
1455
1456if test -n "$ac_init_help"; then
1457  case $ac_init_help in
1458     short | recursive ) echo "Configuration of xinit 1.4.3:";;
1459   esac
1460  cat <<\_ACEOF
1461
1462Optional Features:
1463  --disable-option-checking  ignore unrecognized --enable/--with options
1464  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1465  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1466  --enable-dependency-tracking
1467                          do not reject slow dependency extractors
1468  --disable-dependency-tracking
1469                          speeds up one-time build
1470  --enable-silent-rules   less verbose build output (undo: "make V=1")
1471  --disable-silent-rules  verbose build output (undo: "make V=0")
1472  --disable-selective-werror
1473                          Turn off selective compiler errors. (default:
1474                          enabled)
1475  --enable-strict-compilation
1476                          Enable all warnings from compiler and make them
1477                          errors (default: disabled)
1478
1479Optional Packages:
1480  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1481  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1482  --with-xrdb=XRDB        Path to xrdb
1483  --with-xmodmap=XMODMAP  Path to xmodmap
1484  --with-twm=TWM          Path to twm
1485  --with-xclock=XCLOCK    Path to xclock
1486  --with-xterm=XTERM      Path to xterm
1487  --with-xserver=XSERVER  Path to default X server
1488  --with-xauth=XAUTH      Path to xauth
1489  --with-xinit=XINIT      Path to xinit
1490  --with-xinitdir=XINITDIR
1491                          Path to xinitdir
1492  --with-launchd          Build with support for Apple's launchd (default:
1493                          auto)
1494  --with-launchagents-dir=PATH
1495                          Path to launchd's LaunchAgents directory (default:
1496                          /Library/LaunchAgents)
1497  --with-launchagent-xserver=PATH
1498                          Path to the X server which the LaunchAgent should
1499                          start (if not provided, let startx decide)"
1500  --with-launchdaemons-dir=PATH
1501                          Path to launchd's LaunchDaemonss directory (default:
1502                          /Library/LaunchDaemons)
1503  --with-launchd-id-prefix=PATH
1504                          Deprecated: Use --with-bundle-id-prefix.
1505  --with-bundle-id-prefix=PATH
1506                          Prefix to use for bundle identifiers (default:
1507                          org.x)
1508
1509Some influential environment variables:
1510  CC          C compiler command
1511  CFLAGS      C compiler flags
1512  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1513              nonstandard directory <lib dir>
1514  LIBS        libraries to pass to the linker, e.g. -l<library>
1515  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1516              you have headers in a nonstandard directory <include dir>
1517  PKG_CONFIG  path to pkg-config utility
1518  PKG_CONFIG_PATH
1519              directories to add to pkg-config's search path
1520  PKG_CONFIG_LIBDIR
1521              path overriding pkg-config's built-in search path
1522  CPP         C preprocessor
1523  XINIT_CFLAGS
1524              C compiler flags for XINIT, overriding pkg-config
1525  XINIT_LIBS  linker flags for XINIT, overriding pkg-config
1526
1527Use these variables to override the choices made by `configure' or to help
1528it to find libraries and programs with nonstandard names/locations.
1529
1530Report bugs to <https://gitlab.freedesktop.org/xorg/app/xinit/-/issues>.
1531_ACEOF
1532ac_status=$?
1533fi
1534
1535if test "$ac_init_help" = "recursive"; then
1536  # If there are subdirs, report their specific --help.
1537  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1538    test -d "$ac_dir" ||
1539      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1540      continue
1541    ac_builddir=.
1542
1543case "$ac_dir" in
1544.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545*)
1546  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1547  # A ".." for each directory in $ac_dir_suffix.
1548  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1549  case $ac_top_builddir_sub in
1550  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1552  esac ;;
1553esac
1554ac_abs_top_builddir=$ac_pwd
1555ac_abs_builddir=$ac_pwd$ac_dir_suffix
1556# for backward compatibility:
1557ac_top_builddir=$ac_top_build_prefix
1558
1559case $srcdir in
1560  .)  # We are building in place.
1561    ac_srcdir=.
1562    ac_top_srcdir=$ac_top_builddir_sub
1563    ac_abs_top_srcdir=$ac_pwd ;;
1564  [\\/]* | ?:[\\/]* )  # Absolute name.
1565    ac_srcdir=$srcdir$ac_dir_suffix;
1566    ac_top_srcdir=$srcdir
1567    ac_abs_top_srcdir=$srcdir ;;
1568  *) # Relative name.
1569    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1570    ac_top_srcdir=$ac_top_build_prefix$srcdir
1571    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1572esac
1573ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1574
1575    cd "$ac_dir" || { ac_status=$?; continue; }
1576    # Check for configure.gnu first; this name is used for a wrapper for
1577    # Metaconfig's "Configure" on case-insensitive file systems.
1578    if test -f "$ac_srcdir/configure.gnu"; then
1579      echo &&
1580      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1581    elif test -f "$ac_srcdir/configure"; then
1582      echo &&
1583      $SHELL "$ac_srcdir/configure" --help=recursive
1584    else
1585      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1586    fi || ac_status=$?
1587    cd "$ac_pwd" || { ac_status=$?; break; }
1588  done
1589fi
1590
1591test -n "$ac_init_help" && exit $ac_status
1592if $ac_init_version; then
1593  cat <<\_ACEOF
1594xinit configure 1.4.3
1595generated by GNU Autoconf 2.71
1596
1597Copyright (C) 2021 Free Software Foundation, Inc.
1598This configure script is free software; the Free Software Foundation
1599gives unlimited permission to copy, distribute and modify it.
1600_ACEOF
1601  exit
1602fi
1603
1604## ------------------------ ##
1605## Autoconf initialization. ##
1606## ------------------------ ##
1607
1608# ac_fn_c_try_compile LINENO
1609# --------------------------
1610# Try to compile conftest.$ac_ext, and return whether this succeeded.
1611ac_fn_c_try_compile ()
1612{
1613  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614  rm -f conftest.$ac_objext conftest.beam
1615  if { { ac_try="$ac_compile"
1616case "(($ac_try" in
1617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618  *) ac_try_echo=$ac_try;;
1619esac
1620eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621printf "%s\n" "$ac_try_echo"; } >&5
1622  (eval "$ac_compile") 2>conftest.err
1623  ac_status=$?
1624  if test -s conftest.err; then
1625    grep -v '^ *+' conftest.err >conftest.er1
1626    cat conftest.er1 >&5
1627    mv -f conftest.er1 conftest.err
1628  fi
1629  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630  test $ac_status = 0; } && {
1631	 test -z "$ac_c_werror_flag" ||
1632	 test ! -s conftest.err
1633       } && test -s conftest.$ac_objext
1634then :
1635  ac_retval=0
1636else $as_nop
1637  printf "%s\n" "$as_me: failed program was:" >&5
1638sed 's/^/| /' conftest.$ac_ext >&5
1639
1640	ac_retval=1
1641fi
1642  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643  as_fn_set_status $ac_retval
1644
1645} # ac_fn_c_try_compile
1646
1647# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1648# -------------------------------------------------------
1649# Tests whether HEADER exists and can be compiled using the include files in
1650# INCLUDES, setting the cache variable VAR accordingly.
1651ac_fn_c_check_header_compile ()
1652{
1653  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1655printf %s "checking for $2... " >&6; }
1656if eval test \${$3+y}
1657then :
1658  printf %s "(cached) " >&6
1659else $as_nop
1660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661/* end confdefs.h.  */
1662$4
1663#include <$2>
1664_ACEOF
1665if ac_fn_c_try_compile "$LINENO"
1666then :
1667  eval "$3=yes"
1668else $as_nop
1669  eval "$3=no"
1670fi
1671rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1672fi
1673eval ac_res=\$$3
1674	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1675printf "%s\n" "$ac_res" >&6; }
1676  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1677
1678} # ac_fn_c_check_header_compile
1679
1680# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1681# ------------------------------------------------------------------
1682# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1683# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1684ac_fn_check_decl ()
1685{
1686  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687  as_decl_name=`echo $2|sed 's/ *(.*//'`
1688  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1689printf %s "checking whether $as_decl_name is declared... " >&6; }
1690if eval test \${$3+y}
1691then :
1692  printf %s "(cached) " >&6
1693else $as_nop
1694  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1695  eval ac_save_FLAGS=\$$6
1696  as_fn_append $6 " $5"
1697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1698/* end confdefs.h.  */
1699$4
1700int
1701main (void)
1702{
1703#ifndef $as_decl_name
1704#ifdef __cplusplus
1705  (void) $as_decl_use;
1706#else
1707  (void) $as_decl_name;
1708#endif
1709#endif
1710
1711  ;
1712  return 0;
1713}
1714_ACEOF
1715if ac_fn_c_try_compile "$LINENO"
1716then :
1717  eval "$3=yes"
1718else $as_nop
1719  eval "$3=no"
1720fi
1721rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1722  eval $6=\$ac_save_FLAGS
1723
1724fi
1725eval ac_res=\$$3
1726	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727printf "%s\n" "$ac_res" >&6; }
1728  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729
1730} # ac_fn_check_decl
1731
1732# ac_fn_c_try_link LINENO
1733# -----------------------
1734# Try to link conftest.$ac_ext, and return whether this succeeded.
1735ac_fn_c_try_link ()
1736{
1737  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1739  if { { ac_try="$ac_link"
1740case "(($ac_try" in
1741  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742  *) ac_try_echo=$ac_try;;
1743esac
1744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745printf "%s\n" "$ac_try_echo"; } >&5
1746  (eval "$ac_link") 2>conftest.err
1747  ac_status=$?
1748  if test -s conftest.err; then
1749    grep -v '^ *+' conftest.err >conftest.er1
1750    cat conftest.er1 >&5
1751    mv -f conftest.er1 conftest.err
1752  fi
1753  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754  test $ac_status = 0; } && {
1755	 test -z "$ac_c_werror_flag" ||
1756	 test ! -s conftest.err
1757       } && test -s conftest$ac_exeext && {
1758	 test "$cross_compiling" = yes ||
1759	 test -x conftest$ac_exeext
1760       }
1761then :
1762  ac_retval=0
1763else $as_nop
1764  printf "%s\n" "$as_me: failed program was:" >&5
1765sed 's/^/| /' conftest.$ac_ext >&5
1766
1767	ac_retval=1
1768fi
1769  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1770  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1771  # interfere with the next link command; also delete a directory that is
1772  # left behind by Apple's compiler.  We do this before executing the actions.
1773  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1774  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775  as_fn_set_status $ac_retval
1776
1777} # ac_fn_c_try_link
1778
1779# ac_fn_c_try_cpp LINENO
1780# ----------------------
1781# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1782ac_fn_c_try_cpp ()
1783{
1784  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785  if { { ac_try="$ac_cpp conftest.$ac_ext"
1786case "(($ac_try" in
1787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788  *) ac_try_echo=$ac_try;;
1789esac
1790eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791printf "%s\n" "$ac_try_echo"; } >&5
1792  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1793  ac_status=$?
1794  if test -s conftest.err; then
1795    grep -v '^ *+' conftest.err >conftest.er1
1796    cat conftest.er1 >&5
1797    mv -f conftest.er1 conftest.err
1798  fi
1799  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800  test $ac_status = 0; } > conftest.i && {
1801	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1802	 test ! -s conftest.err
1803       }
1804then :
1805  ac_retval=0
1806else $as_nop
1807  printf "%s\n" "$as_me: failed program was:" >&5
1808sed 's/^/| /' conftest.$ac_ext >&5
1809
1810    ac_retval=1
1811fi
1812  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813  as_fn_set_status $ac_retval
1814
1815} # ac_fn_c_try_cpp
1816
1817# ac_fn_c_check_func LINENO FUNC VAR
1818# ----------------------------------
1819# Tests whether FUNC exists, setting the cache variable VAR accordingly
1820ac_fn_c_check_func ()
1821{
1822  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824printf %s "checking for $2... " >&6; }
1825if eval test \${$3+y}
1826then :
1827  printf %s "(cached) " >&6
1828else $as_nop
1829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830/* end confdefs.h.  */
1831/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1832   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1833#define $2 innocuous_$2
1834
1835/* System header to define __stub macros and hopefully few prototypes,
1836   which can conflict with char $2 (); below.  */
1837
1838#include <limits.h>
1839#undef $2
1840
1841/* Override any GCC internal prototype to avoid an error.
1842   Use char because int might match the return type of a GCC
1843   builtin and then its argument prototype would still apply.  */
1844#ifdef __cplusplus
1845extern "C"
1846#endif
1847char $2 ();
1848/* The GNU C library defines this for functions which it implements
1849    to always fail with ENOSYS.  Some functions are actually named
1850    something starting with __ and the normal name is an alias.  */
1851#if defined __stub_$2 || defined __stub___$2
1852choke me
1853#endif
1854
1855int
1856main (void)
1857{
1858return $2 ();
1859  ;
1860  return 0;
1861}
1862_ACEOF
1863if ac_fn_c_try_link "$LINENO"
1864then :
1865  eval "$3=yes"
1866else $as_nop
1867  eval "$3=no"
1868fi
1869rm -f core conftest.err conftest.$ac_objext conftest.beam \
1870    conftest$ac_exeext conftest.$ac_ext
1871fi
1872eval ac_res=\$$3
1873	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1874printf "%s\n" "$ac_res" >&6; }
1875  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876
1877} # ac_fn_c_check_func
1878ac_configure_args_raw=
1879for ac_arg
1880do
1881  case $ac_arg in
1882  *\'*)
1883    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1884  esac
1885  as_fn_append ac_configure_args_raw " '$ac_arg'"
1886done
1887
1888case $ac_configure_args_raw in
1889  *$as_nl*)
1890    ac_safe_unquote= ;;
1891  *)
1892    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1893    ac_unsafe_a="$ac_unsafe_z#~"
1894    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1895    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1896esac
1897
1898cat >config.log <<_ACEOF
1899This file contains any messages produced by compilers while
1900running configure, to aid debugging if configure makes a mistake.
1901
1902It was created by xinit $as_me 1.4.3, which was
1903generated by GNU Autoconf 2.71.  Invocation command line was
1904
1905  $ $0$ac_configure_args_raw
1906
1907_ACEOF
1908exec 5>>config.log
1909{
1910cat <<_ASUNAME
1911## --------- ##
1912## Platform. ##
1913## --------- ##
1914
1915hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1916uname -m = `(uname -m) 2>/dev/null || echo unknown`
1917uname -r = `(uname -r) 2>/dev/null || echo unknown`
1918uname -s = `(uname -s) 2>/dev/null || echo unknown`
1919uname -v = `(uname -v) 2>/dev/null || echo unknown`
1920
1921/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1922/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1923
1924/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1925/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1926/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1927/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1928/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1929/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1930/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1931
1932_ASUNAME
1933
1934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1935for as_dir in $PATH
1936do
1937  IFS=$as_save_IFS
1938  case $as_dir in #(((
1939    '') as_dir=./ ;;
1940    */) ;;
1941    *) as_dir=$as_dir/ ;;
1942  esac
1943    printf "%s\n" "PATH: $as_dir"
1944  done
1945IFS=$as_save_IFS
1946
1947} >&5
1948
1949cat >&5 <<_ACEOF
1950
1951
1952## ----------- ##
1953## Core tests. ##
1954## ----------- ##
1955
1956_ACEOF
1957
1958
1959# Keep a trace of the command line.
1960# Strip out --no-create and --no-recursion so they do not pile up.
1961# Strip out --silent because we don't want to record it for future runs.
1962# Also quote any args containing shell meta-characters.
1963# Make two passes to allow for proper duplicate-argument suppression.
1964ac_configure_args=
1965ac_configure_args0=
1966ac_configure_args1=
1967ac_must_keep_next=false
1968for ac_pass in 1 2
1969do
1970  for ac_arg
1971  do
1972    case $ac_arg in
1973    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1974    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1975    | -silent | --silent | --silen | --sile | --sil)
1976      continue ;;
1977    *\'*)
1978      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1979    esac
1980    case $ac_pass in
1981    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1982    2)
1983      as_fn_append ac_configure_args1 " '$ac_arg'"
1984      if test $ac_must_keep_next = true; then
1985	ac_must_keep_next=false # Got value, back to normal.
1986      else
1987	case $ac_arg in
1988	  *=* | --config-cache | -C | -disable-* | --disable-* \
1989	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1990	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1991	  | -with-* | --with-* | -without-* | --without-* | --x)
1992	    case "$ac_configure_args0 " in
1993	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1994	    esac
1995	    ;;
1996	  -* ) ac_must_keep_next=true ;;
1997	esac
1998      fi
1999      as_fn_append ac_configure_args " '$ac_arg'"
2000      ;;
2001    esac
2002  done
2003done
2004{ ac_configure_args0=; unset ac_configure_args0;}
2005{ ac_configure_args1=; unset ac_configure_args1;}
2006
2007# When interrupted or exit'd, cleanup temporary files, and complete
2008# config.log.  We remove comments because anyway the quotes in there
2009# would cause problems or look ugly.
2010# WARNING: Use '\'' to represent an apostrophe within the trap.
2011# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2012trap 'exit_status=$?
2013  # Sanitize IFS.
2014  IFS=" ""	$as_nl"
2015  # Save into config.log some information that might help in debugging.
2016  {
2017    echo
2018
2019    printf "%s\n" "## ---------------- ##
2020## Cache variables. ##
2021## ---------------- ##"
2022    echo
2023    # The following way of writing the cache mishandles newlines in values,
2024(
2025  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2026    eval ac_val=\$$ac_var
2027    case $ac_val in #(
2028    *${as_nl}*)
2029      case $ac_var in #(
2030      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2031printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2032      esac
2033      case $ac_var in #(
2034      _ | IFS | as_nl) ;; #(
2035      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2036      *) { eval $ac_var=; unset $ac_var;} ;;
2037      esac ;;
2038    esac
2039  done
2040  (set) 2>&1 |
2041    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2042    *${as_nl}ac_space=\ *)
2043      sed -n \
2044	"s/'\''/'\''\\\\'\'''\''/g;
2045	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2046      ;; #(
2047    *)
2048      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2049      ;;
2050    esac |
2051    sort
2052)
2053    echo
2054
2055    printf "%s\n" "## ----------------- ##
2056## Output variables. ##
2057## ----------------- ##"
2058    echo
2059    for ac_var in $ac_subst_vars
2060    do
2061      eval ac_val=\$$ac_var
2062      case $ac_val in
2063      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2064      esac
2065      printf "%s\n" "$ac_var='\''$ac_val'\''"
2066    done | sort
2067    echo
2068
2069    if test -n "$ac_subst_files"; then
2070      printf "%s\n" "## ------------------- ##
2071## File substitutions. ##
2072## ------------------- ##"
2073      echo
2074      for ac_var in $ac_subst_files
2075      do
2076	eval ac_val=\$$ac_var
2077	case $ac_val in
2078	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2079	esac
2080	printf "%s\n" "$ac_var='\''$ac_val'\''"
2081      done | sort
2082      echo
2083    fi
2084
2085    if test -s confdefs.h; then
2086      printf "%s\n" "## ----------- ##
2087## confdefs.h. ##
2088## ----------- ##"
2089      echo
2090      cat confdefs.h
2091      echo
2092    fi
2093    test "$ac_signal" != 0 &&
2094      printf "%s\n" "$as_me: caught signal $ac_signal"
2095    printf "%s\n" "$as_me: exit $exit_status"
2096  } >&5
2097  rm -f core *.core core.conftest.* &&
2098    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2099    exit $exit_status
2100' 0
2101for ac_signal in 1 2 13 15; do
2102  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2103done
2104ac_signal=0
2105
2106# confdefs.h avoids OS command line length limits that DEFS can exceed.
2107rm -f -r conftest* confdefs.h
2108
2109printf "%s\n" "/* confdefs.h */" > confdefs.h
2110
2111# Predefined preprocessor variables.
2112
2113printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2114
2115printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2116
2117printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2118
2119printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2120
2121printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2122
2123printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2124
2125
2126# Let the site file select an alternate cache file if it wants to.
2127# Prefer an explicitly selected file to automatically selected ones.
2128if test -n "$CONFIG_SITE"; then
2129  ac_site_files="$CONFIG_SITE"
2130elif test "x$prefix" != xNONE; then
2131  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2132else
2133  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2134fi
2135
2136for ac_site_file in $ac_site_files
2137do
2138  case $ac_site_file in #(
2139  */*) :
2140     ;; #(
2141  *) :
2142    ac_site_file=./$ac_site_file ;;
2143esac
2144  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2145    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2146printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2147    sed 's/^/| /' "$ac_site_file" >&5
2148    . "$ac_site_file" \
2149      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2150printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2151as_fn_error $? "failed to load site script $ac_site_file
2152See \`config.log' for more details" "$LINENO" 5; }
2153  fi
2154done
2155
2156if test -r "$cache_file"; then
2157  # Some versions of bash will fail to source /dev/null (special files
2158  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2159  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2160    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2161printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2162    case $cache_file in
2163      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2164      *)                      . "./$cache_file";;
2165    esac
2166  fi
2167else
2168  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2169printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2170  >$cache_file
2171fi
2172
2173as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2174# Test code for whether the C compiler supports C89 (global declarations)
2175ac_c_conftest_c89_globals='
2176/* Does the compiler advertise C89 conformance?
2177   Do not test the value of __STDC__, because some compilers set it to 0
2178   while being otherwise adequately conformant. */
2179#if !defined __STDC__
2180# error "Compiler does not advertise C89 conformance"
2181#endif
2182
2183#include <stddef.h>
2184#include <stdarg.h>
2185struct stat;
2186/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2187struct buf { int x; };
2188struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2189static char *e (p, i)
2190     char **p;
2191     int i;
2192{
2193  return p[i];
2194}
2195static char *f (char * (*g) (char **, int), char **p, ...)
2196{
2197  char *s;
2198  va_list v;
2199  va_start (v,p);
2200  s = g (p, va_arg (v,int));
2201  va_end (v);
2202  return s;
2203}
2204
2205/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2206   function prototypes and stuff, but not \xHH hex character constants.
2207   These do not provoke an error unfortunately, instead are silently treated
2208   as an "x".  The following induces an error, until -std is added to get
2209   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2210   array size at least.  It is necessary to write \x00 == 0 to get something
2211   that is true only with -std.  */
2212int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2213
2214/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2215   inside strings and character constants.  */
2216#define FOO(x) '\''x'\''
2217int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2218
2219int test (int i, double x);
2220struct s1 {int (*f) (int a);};
2221struct s2 {int (*f) (double a);};
2222int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2223               int, int);'
2224
2225# Test code for whether the C compiler supports C89 (body of main).
2226ac_c_conftest_c89_main='
2227ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2228'
2229
2230# Test code for whether the C compiler supports C99 (global declarations)
2231ac_c_conftest_c99_globals='
2232// Does the compiler advertise C99 conformance?
2233#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2234# error "Compiler does not advertise C99 conformance"
2235#endif
2236
2237#include <stdbool.h>
2238extern int puts (const char *);
2239extern int printf (const char *, ...);
2240extern int dprintf (int, const char *, ...);
2241extern void *malloc (size_t);
2242
2243// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2244// dprintf is used instead of fprintf to avoid needing to declare
2245// FILE and stderr.
2246#define debug(...) dprintf (2, __VA_ARGS__)
2247#define showlist(...) puts (#__VA_ARGS__)
2248#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2249static void
2250test_varargs_macros (void)
2251{
2252  int x = 1234;
2253  int y = 5678;
2254  debug ("Flag");
2255  debug ("X = %d\n", x);
2256  showlist (The first, second, and third items.);
2257  report (x>y, "x is %d but y is %d", x, y);
2258}
2259
2260// Check long long types.
2261#define BIG64 18446744073709551615ull
2262#define BIG32 4294967295ul
2263#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2264#if !BIG_OK
2265  #error "your preprocessor is broken"
2266#endif
2267#if BIG_OK
2268#else
2269  #error "your preprocessor is broken"
2270#endif
2271static long long int bignum = -9223372036854775807LL;
2272static unsigned long long int ubignum = BIG64;
2273
2274struct incomplete_array
2275{
2276  int datasize;
2277  double data[];
2278};
2279
2280struct named_init {
2281  int number;
2282  const wchar_t *name;
2283  double average;
2284};
2285
2286typedef const char *ccp;
2287
2288static inline int
2289test_restrict (ccp restrict text)
2290{
2291  // See if C++-style comments work.
2292  // Iterate through items via the restricted pointer.
2293  // Also check for declarations in for loops.
2294  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2295    continue;
2296  return 0;
2297}
2298
2299// Check varargs and va_copy.
2300static bool
2301test_varargs (const char *format, ...)
2302{
2303  va_list args;
2304  va_start (args, format);
2305  va_list args_copy;
2306  va_copy (args_copy, args);
2307
2308  const char *str = "";
2309  int number = 0;
2310  float fnumber = 0;
2311
2312  while (*format)
2313    {
2314      switch (*format++)
2315	{
2316	case '\''s'\'': // string
2317	  str = va_arg (args_copy, const char *);
2318	  break;
2319	case '\''d'\'': // int
2320	  number = va_arg (args_copy, int);
2321	  break;
2322	case '\''f'\'': // float
2323	  fnumber = va_arg (args_copy, double);
2324	  break;
2325	default:
2326	  break;
2327	}
2328    }
2329  va_end (args_copy);
2330  va_end (args);
2331
2332  return *str && number && fnumber;
2333}
2334'
2335
2336# Test code for whether the C compiler supports C99 (body of main).
2337ac_c_conftest_c99_main='
2338  // Check bool.
2339  _Bool success = false;
2340  success |= (argc != 0);
2341
2342  // Check restrict.
2343  if (test_restrict ("String literal") == 0)
2344    success = true;
2345  char *restrict newvar = "Another string";
2346
2347  // Check varargs.
2348  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2349  test_varargs_macros ();
2350
2351  // Check flexible array members.
2352  struct incomplete_array *ia =
2353    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2354  ia->datasize = 10;
2355  for (int i = 0; i < ia->datasize; ++i)
2356    ia->data[i] = i * 1.234;
2357
2358  // Check named initializers.
2359  struct named_init ni = {
2360    .number = 34,
2361    .name = L"Test wide string",
2362    .average = 543.34343,
2363  };
2364
2365  ni.number = 58;
2366
2367  int dynamic_array[ni.number];
2368  dynamic_array[0] = argv[0][0];
2369  dynamic_array[ni.number - 1] = 543;
2370
2371  // work around unused variable warnings
2372  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2373	 || dynamic_array[ni.number - 1] != 543);
2374'
2375
2376# Test code for whether the C compiler supports C11 (global declarations)
2377ac_c_conftest_c11_globals='
2378// Does the compiler advertise C11 conformance?
2379#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2380# error "Compiler does not advertise C11 conformance"
2381#endif
2382
2383// Check _Alignas.
2384char _Alignas (double) aligned_as_double;
2385char _Alignas (0) no_special_alignment;
2386extern char aligned_as_int;
2387char _Alignas (0) _Alignas (int) aligned_as_int;
2388
2389// Check _Alignof.
2390enum
2391{
2392  int_alignment = _Alignof (int),
2393  int_array_alignment = _Alignof (int[100]),
2394  char_alignment = _Alignof (char)
2395};
2396_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2397
2398// Check _Noreturn.
2399int _Noreturn does_not_return (void) { for (;;) continue; }
2400
2401// Check _Static_assert.
2402struct test_static_assert
2403{
2404  int x;
2405  _Static_assert (sizeof (int) <= sizeof (long int),
2406                  "_Static_assert does not work in struct");
2407  long int y;
2408};
2409
2410// Check UTF-8 literals.
2411#define u8 syntax error!
2412char const utf8_literal[] = u8"happens to be ASCII" "another string";
2413
2414// Check duplicate typedefs.
2415typedef long *long_ptr;
2416typedef long int *long_ptr;
2417typedef long_ptr long_ptr;
2418
2419// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2420struct anonymous
2421{
2422  union {
2423    struct { int i; int j; };
2424    struct { int k; long int l; } w;
2425  };
2426  int m;
2427} v1;
2428'
2429
2430# Test code for whether the C compiler supports C11 (body of main).
2431ac_c_conftest_c11_main='
2432  _Static_assert ((offsetof (struct anonymous, i)
2433		   == offsetof (struct anonymous, w.k)),
2434		  "Anonymous union alignment botch");
2435  v1.i = 2;
2436  v1.w.k = 5;
2437  ok |= v1.i != 5;
2438'
2439
2440# Test code for whether the C compiler supports C11 (complete).
2441ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2442${ac_c_conftest_c99_globals}
2443${ac_c_conftest_c11_globals}
2444
2445int
2446main (int argc, char **argv)
2447{
2448  int ok = 0;
2449  ${ac_c_conftest_c89_main}
2450  ${ac_c_conftest_c99_main}
2451  ${ac_c_conftest_c11_main}
2452  return ok;
2453}
2454"
2455
2456# Test code for whether the C compiler supports C99 (complete).
2457ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2458${ac_c_conftest_c99_globals}
2459
2460int
2461main (int argc, char **argv)
2462{
2463  int ok = 0;
2464  ${ac_c_conftest_c89_main}
2465  ${ac_c_conftest_c99_main}
2466  return ok;
2467}
2468"
2469
2470# Test code for whether the C compiler supports C89 (complete).
2471ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2472
2473int
2474main (int argc, char **argv)
2475{
2476  int ok = 0;
2477  ${ac_c_conftest_c89_main}
2478  return ok;
2479}
2480"
2481
2482as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2483as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2484as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2485as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2486as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2487as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2488as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2489as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2490as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2491as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2492
2493# Auxiliary files required by this configure script.
2494ac_aux_files="config.guess config.sub missing install-sh compile"
2495
2496# Locations in which to look for auxiliary files.
2497ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2498
2499# Search for a directory containing all of the required auxiliary files,
2500# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2501# If we don't find one directory that contains all the files we need,
2502# we report the set of missing files from the *first* directory in
2503# $ac_aux_dir_candidates and give up.
2504ac_missing_aux_files=""
2505ac_first_candidate=:
2506printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508as_found=false
2509for as_dir in $ac_aux_dir_candidates
2510do
2511  IFS=$as_save_IFS
2512  case $as_dir in #(((
2513    '') as_dir=./ ;;
2514    */) ;;
2515    *) as_dir=$as_dir/ ;;
2516  esac
2517  as_found=:
2518
2519  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2520  ac_aux_dir_found=yes
2521  ac_install_sh=
2522  for ac_aux in $ac_aux_files
2523  do
2524    # As a special case, if "install-sh" is required, that requirement
2525    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2526    # and $ac_install_sh is set appropriately for whichever one is found.
2527    if test x"$ac_aux" = x"install-sh"
2528    then
2529      if test -f "${as_dir}install-sh"; then
2530        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2531        ac_install_sh="${as_dir}install-sh -c"
2532      elif test -f "${as_dir}install.sh"; then
2533        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2534        ac_install_sh="${as_dir}install.sh -c"
2535      elif test -f "${as_dir}shtool"; then
2536        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2537        ac_install_sh="${as_dir}shtool install -c"
2538      else
2539        ac_aux_dir_found=no
2540        if $ac_first_candidate; then
2541          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2542        else
2543          break
2544        fi
2545      fi
2546    else
2547      if test -f "${as_dir}${ac_aux}"; then
2548        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2549      else
2550        ac_aux_dir_found=no
2551        if $ac_first_candidate; then
2552          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2553        else
2554          break
2555        fi
2556      fi
2557    fi
2558  done
2559  if test "$ac_aux_dir_found" = yes; then
2560    ac_aux_dir="$as_dir"
2561    break
2562  fi
2563  ac_first_candidate=false
2564
2565  as_found=false
2566done
2567IFS=$as_save_IFS
2568if $as_found
2569then :
2570
2571else $as_nop
2572  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2573fi
2574
2575
2576# These three variables are undocumented and unsupported,
2577# and are intended to be withdrawn in a future Autoconf release.
2578# They can cause serious problems if a builder's source tree is in a directory
2579# whose full name contains unusual characters.
2580if test -f "${ac_aux_dir}config.guess"; then
2581  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2582fi
2583if test -f "${ac_aux_dir}config.sub"; then
2584  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2585fi
2586if test -f "$ac_aux_dir/configure"; then
2587  ac_configure="$SHELL ${ac_aux_dir}configure"
2588fi
2589
2590# Check that the precious variables saved in the cache have kept the same
2591# value.
2592ac_cache_corrupted=false
2593for ac_var in $ac_precious_vars; do
2594  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2595  eval ac_new_set=\$ac_env_${ac_var}_set
2596  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2597  eval ac_new_val=\$ac_env_${ac_var}_value
2598  case $ac_old_set,$ac_new_set in
2599    set,)
2600      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2601printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2602      ac_cache_corrupted=: ;;
2603    ,set)
2604      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2605printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2606      ac_cache_corrupted=: ;;
2607    ,);;
2608    *)
2609      if test "x$ac_old_val" != "x$ac_new_val"; then
2610	# differences in whitespace do not lead to failure.
2611	ac_old_val_w=`echo x $ac_old_val`
2612	ac_new_val_w=`echo x $ac_new_val`
2613	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2614	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2615printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2616	  ac_cache_corrupted=:
2617	else
2618	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2619printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2620	  eval $ac_var=\$ac_old_val
2621	fi
2622	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2623printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2624	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2625printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2626      fi;;
2627  esac
2628  # Pass precious variables to config.status.
2629  if test "$ac_new_set" = set; then
2630    case $ac_new_val in
2631    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2632    *) ac_arg=$ac_var=$ac_new_val ;;
2633    esac
2634    case " $ac_configure_args " in
2635      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2636      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2637    esac
2638  fi
2639done
2640if $ac_cache_corrupted; then
2641  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2642printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2643  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2644printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2645  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2646	    and start over" "$LINENO" 5
2647fi
2648## -------------------- ##
2649## Main body of script. ##
2650## -------------------- ##
2651
2652ac_ext=c
2653ac_cpp='$CPP $CPPFLAGS'
2654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2656ac_compiler_gnu=$ac_cv_c_compiler_gnu
2657
2658
2659
2660ac_config_headers="$ac_config_headers config.h"
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673# Expand $ac_aux_dir to an absolute path.
2674am_aux_dir=`cd "$ac_aux_dir" && pwd`
2675
2676ac_ext=c
2677ac_cpp='$CPP $CPPFLAGS'
2678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2680ac_compiler_gnu=$ac_cv_c_compiler_gnu
2681if test -n "$ac_tool_prefix"; then
2682  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2683set dummy ${ac_tool_prefix}gcc; ac_word=$2
2684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2685printf %s "checking for $ac_word... " >&6; }
2686if test ${ac_cv_prog_CC+y}
2687then :
2688  printf %s "(cached) " >&6
2689else $as_nop
2690  if test -n "$CC"; then
2691  ac_cv_prog_CC="$CC" # Let the user override the test.
2692else
2693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694for as_dir in $PATH
2695do
2696  IFS=$as_save_IFS
2697  case $as_dir in #(((
2698    '') as_dir=./ ;;
2699    */) ;;
2700    *) as_dir=$as_dir/ ;;
2701  esac
2702    for ac_exec_ext in '' $ac_executable_extensions; do
2703  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2704    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2705    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2706    break 2
2707  fi
2708done
2709  done
2710IFS=$as_save_IFS
2711
2712fi
2713fi
2714CC=$ac_cv_prog_CC
2715if test -n "$CC"; then
2716  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2717printf "%s\n" "$CC" >&6; }
2718else
2719  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2720printf "%s\n" "no" >&6; }
2721fi
2722
2723
2724fi
2725if test -z "$ac_cv_prog_CC"; then
2726  ac_ct_CC=$CC
2727  # Extract the first word of "gcc", so it can be a program name with args.
2728set dummy gcc; ac_word=$2
2729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2730printf %s "checking for $ac_word... " >&6; }
2731if test ${ac_cv_prog_ac_ct_CC+y}
2732then :
2733  printf %s "(cached) " >&6
2734else $as_nop
2735  if test -n "$ac_ct_CC"; then
2736  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2737else
2738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739for as_dir in $PATH
2740do
2741  IFS=$as_save_IFS
2742  case $as_dir in #(((
2743    '') as_dir=./ ;;
2744    */) ;;
2745    *) as_dir=$as_dir/ ;;
2746  esac
2747    for ac_exec_ext in '' $ac_executable_extensions; do
2748  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2749    ac_cv_prog_ac_ct_CC="gcc"
2750    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2751    break 2
2752  fi
2753done
2754  done
2755IFS=$as_save_IFS
2756
2757fi
2758fi
2759ac_ct_CC=$ac_cv_prog_ac_ct_CC
2760if test -n "$ac_ct_CC"; then
2761  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2762printf "%s\n" "$ac_ct_CC" >&6; }
2763else
2764  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765printf "%s\n" "no" >&6; }
2766fi
2767
2768  if test "x$ac_ct_CC" = x; then
2769    CC=""
2770  else
2771    case $cross_compiling:$ac_tool_warned in
2772yes:)
2773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2774printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2775ac_tool_warned=yes ;;
2776esac
2777    CC=$ac_ct_CC
2778  fi
2779else
2780  CC="$ac_cv_prog_CC"
2781fi
2782
2783if test -z "$CC"; then
2784          if test -n "$ac_tool_prefix"; then
2785    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2786set dummy ${ac_tool_prefix}cc; ac_word=$2
2787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2788printf %s "checking for $ac_word... " >&6; }
2789if test ${ac_cv_prog_CC+y}
2790then :
2791  printf %s "(cached) " >&6
2792else $as_nop
2793  if test -n "$CC"; then
2794  ac_cv_prog_CC="$CC" # Let the user override the test.
2795else
2796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797for as_dir in $PATH
2798do
2799  IFS=$as_save_IFS
2800  case $as_dir in #(((
2801    '') as_dir=./ ;;
2802    */) ;;
2803    *) as_dir=$as_dir/ ;;
2804  esac
2805    for ac_exec_ext in '' $ac_executable_extensions; do
2806  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2807    ac_cv_prog_CC="${ac_tool_prefix}cc"
2808    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2809    break 2
2810  fi
2811done
2812  done
2813IFS=$as_save_IFS
2814
2815fi
2816fi
2817CC=$ac_cv_prog_CC
2818if test -n "$CC"; then
2819  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2820printf "%s\n" "$CC" >&6; }
2821else
2822  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823printf "%s\n" "no" >&6; }
2824fi
2825
2826
2827  fi
2828fi
2829if test -z "$CC"; then
2830  # Extract the first word of "cc", so it can be a program name with args.
2831set dummy cc; ac_word=$2
2832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833printf %s "checking for $ac_word... " >&6; }
2834if test ${ac_cv_prog_CC+y}
2835then :
2836  printf %s "(cached) " >&6
2837else $as_nop
2838  if test -n "$CC"; then
2839  ac_cv_prog_CC="$CC" # Let the user override the test.
2840else
2841  ac_prog_rejected=no
2842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843for as_dir in $PATH
2844do
2845  IFS=$as_save_IFS
2846  case $as_dir in #(((
2847    '') as_dir=./ ;;
2848    */) ;;
2849    *) as_dir=$as_dir/ ;;
2850  esac
2851    for ac_exec_ext in '' $ac_executable_extensions; do
2852  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2853    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2854       ac_prog_rejected=yes
2855       continue
2856     fi
2857    ac_cv_prog_CC="cc"
2858    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2859    break 2
2860  fi
2861done
2862  done
2863IFS=$as_save_IFS
2864
2865if test $ac_prog_rejected = yes; then
2866  # We found a bogon in the path, so make sure we never use it.
2867  set dummy $ac_cv_prog_CC
2868  shift
2869  if test $# != 0; then
2870    # We chose a different compiler from the bogus one.
2871    # However, it has the same basename, so the bogon will be chosen
2872    # first if we set CC to just the basename; use the full file name.
2873    shift
2874    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2875  fi
2876fi
2877fi
2878fi
2879CC=$ac_cv_prog_CC
2880if test -n "$CC"; then
2881  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2882printf "%s\n" "$CC" >&6; }
2883else
2884  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2885printf "%s\n" "no" >&6; }
2886fi
2887
2888
2889fi
2890if test -z "$CC"; then
2891  if test -n "$ac_tool_prefix"; then
2892  for ac_prog in cl.exe
2893  do
2894    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2895set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2897printf %s "checking for $ac_word... " >&6; }
2898if test ${ac_cv_prog_CC+y}
2899then :
2900  printf %s "(cached) " >&6
2901else $as_nop
2902  if test -n "$CC"; then
2903  ac_cv_prog_CC="$CC" # Let the user override the test.
2904else
2905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906for as_dir in $PATH
2907do
2908  IFS=$as_save_IFS
2909  case $as_dir in #(((
2910    '') as_dir=./ ;;
2911    */) ;;
2912    *) as_dir=$as_dir/ ;;
2913  esac
2914    for ac_exec_ext in '' $ac_executable_extensions; do
2915  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2916    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2917    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2918    break 2
2919  fi
2920done
2921  done
2922IFS=$as_save_IFS
2923
2924fi
2925fi
2926CC=$ac_cv_prog_CC
2927if test -n "$CC"; then
2928  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2929printf "%s\n" "$CC" >&6; }
2930else
2931  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2932printf "%s\n" "no" >&6; }
2933fi
2934
2935
2936    test -n "$CC" && break
2937  done
2938fi
2939if test -z "$CC"; then
2940  ac_ct_CC=$CC
2941  for ac_prog in cl.exe
2942do
2943  # Extract the first word of "$ac_prog", so it can be a program name with args.
2944set dummy $ac_prog; ac_word=$2
2945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2946printf %s "checking for $ac_word... " >&6; }
2947if test ${ac_cv_prog_ac_ct_CC+y}
2948then :
2949  printf %s "(cached) " >&6
2950else $as_nop
2951  if test -n "$ac_ct_CC"; then
2952  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2953else
2954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955for as_dir in $PATH
2956do
2957  IFS=$as_save_IFS
2958  case $as_dir in #(((
2959    '') as_dir=./ ;;
2960    */) ;;
2961    *) as_dir=$as_dir/ ;;
2962  esac
2963    for ac_exec_ext in '' $ac_executable_extensions; do
2964  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2965    ac_cv_prog_ac_ct_CC="$ac_prog"
2966    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2967    break 2
2968  fi
2969done
2970  done
2971IFS=$as_save_IFS
2972
2973fi
2974fi
2975ac_ct_CC=$ac_cv_prog_ac_ct_CC
2976if test -n "$ac_ct_CC"; then
2977  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2978printf "%s\n" "$ac_ct_CC" >&6; }
2979else
2980  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981printf "%s\n" "no" >&6; }
2982fi
2983
2984
2985  test -n "$ac_ct_CC" && break
2986done
2987
2988  if test "x$ac_ct_CC" = x; then
2989    CC=""
2990  else
2991    case $cross_compiling:$ac_tool_warned in
2992yes:)
2993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2994printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2995ac_tool_warned=yes ;;
2996esac
2997    CC=$ac_ct_CC
2998  fi
2999fi
3000
3001fi
3002if test -z "$CC"; then
3003  if test -n "$ac_tool_prefix"; then
3004  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3005set dummy ${ac_tool_prefix}clang; ac_word=$2
3006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3007printf %s "checking for $ac_word... " >&6; }
3008if test ${ac_cv_prog_CC+y}
3009then :
3010  printf %s "(cached) " >&6
3011else $as_nop
3012  if test -n "$CC"; then
3013  ac_cv_prog_CC="$CC" # Let the user override the test.
3014else
3015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016for as_dir in $PATH
3017do
3018  IFS=$as_save_IFS
3019  case $as_dir in #(((
3020    '') as_dir=./ ;;
3021    */) ;;
3022    *) as_dir=$as_dir/ ;;
3023  esac
3024    for ac_exec_ext in '' $ac_executable_extensions; do
3025  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3026    ac_cv_prog_CC="${ac_tool_prefix}clang"
3027    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3028    break 2
3029  fi
3030done
3031  done
3032IFS=$as_save_IFS
3033
3034fi
3035fi
3036CC=$ac_cv_prog_CC
3037if test -n "$CC"; then
3038  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3039printf "%s\n" "$CC" >&6; }
3040else
3041  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042printf "%s\n" "no" >&6; }
3043fi
3044
3045
3046fi
3047if test -z "$ac_cv_prog_CC"; then
3048  ac_ct_CC=$CC
3049  # Extract the first word of "clang", so it can be a program name with args.
3050set dummy clang; ac_word=$2
3051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052printf %s "checking for $ac_word... " >&6; }
3053if test ${ac_cv_prog_ac_ct_CC+y}
3054then :
3055  printf %s "(cached) " >&6
3056else $as_nop
3057  if test -n "$ac_ct_CC"; then
3058  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3059else
3060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061for as_dir in $PATH
3062do
3063  IFS=$as_save_IFS
3064  case $as_dir in #(((
3065    '') as_dir=./ ;;
3066    */) ;;
3067    *) as_dir=$as_dir/ ;;
3068  esac
3069    for ac_exec_ext in '' $ac_executable_extensions; do
3070  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3071    ac_cv_prog_ac_ct_CC="clang"
3072    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3073    break 2
3074  fi
3075done
3076  done
3077IFS=$as_save_IFS
3078
3079fi
3080fi
3081ac_ct_CC=$ac_cv_prog_ac_ct_CC
3082if test -n "$ac_ct_CC"; then
3083  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3084printf "%s\n" "$ac_ct_CC" >&6; }
3085else
3086  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3087printf "%s\n" "no" >&6; }
3088fi
3089
3090  if test "x$ac_ct_CC" = x; then
3091    CC=""
3092  else
3093    case $cross_compiling:$ac_tool_warned in
3094yes:)
3095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3096printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3097ac_tool_warned=yes ;;
3098esac
3099    CC=$ac_ct_CC
3100  fi
3101else
3102  CC="$ac_cv_prog_CC"
3103fi
3104
3105fi
3106
3107
3108test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3109printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3110as_fn_error $? "no acceptable C compiler found in \$PATH
3111See \`config.log' for more details" "$LINENO" 5; }
3112
3113# Provide some information about the compiler.
3114printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3115set X $ac_compile
3116ac_compiler=$2
3117for ac_option in --version -v -V -qversion -version; do
3118  { { ac_try="$ac_compiler $ac_option >&5"
3119case "(($ac_try" in
3120  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121  *) ac_try_echo=$ac_try;;
3122esac
3123eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3124printf "%s\n" "$ac_try_echo"; } >&5
3125  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3126  ac_status=$?
3127  if test -s conftest.err; then
3128    sed '10a\
3129... rest of stderr output deleted ...
3130         10q' conftest.err >conftest.er1
3131    cat conftest.er1 >&5
3132  fi
3133  rm -f conftest.er1 conftest.err
3134  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3135  test $ac_status = 0; }
3136done
3137
3138cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3139/* end confdefs.h.  */
3140
3141int
3142main (void)
3143{
3144
3145  ;
3146  return 0;
3147}
3148_ACEOF
3149ac_clean_files_save=$ac_clean_files
3150ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3151# Try to create an executable without -o first, disregard a.out.
3152# It will help us diagnose broken compilers, and finding out an intuition
3153# of exeext.
3154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3155printf %s "checking whether the C compiler works... " >&6; }
3156ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3157
3158# The possible output files:
3159ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3160
3161ac_rmfiles=
3162for ac_file in $ac_files
3163do
3164  case $ac_file in
3165    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3166    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3167  esac
3168done
3169rm -f $ac_rmfiles
3170
3171if { { ac_try="$ac_link_default"
3172case "(($ac_try" in
3173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174  *) ac_try_echo=$ac_try;;
3175esac
3176eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3177printf "%s\n" "$ac_try_echo"; } >&5
3178  (eval "$ac_link_default") 2>&5
3179  ac_status=$?
3180  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3181  test $ac_status = 0; }
3182then :
3183  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3184# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3185# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3186# so that the user can short-circuit this test for compilers unknown to
3187# Autoconf.
3188for ac_file in $ac_files ''
3189do
3190  test -f "$ac_file" || continue
3191  case $ac_file in
3192    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3193	;;
3194    [ab].out )
3195	# We found the default executable, but exeext='' is most
3196	# certainly right.
3197	break;;
3198    *.* )
3199	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3200	then :; else
3201	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3202	fi
3203	# We set ac_cv_exeext here because the later test for it is not
3204	# safe: cross compilers may not add the suffix if given an `-o'
3205	# argument, so we may need to know it at that point already.
3206	# Even if this section looks crufty: it has the advantage of
3207	# actually working.
3208	break;;
3209    * )
3210	break;;
3211  esac
3212done
3213test "$ac_cv_exeext" = no && ac_cv_exeext=
3214
3215else $as_nop
3216  ac_file=''
3217fi
3218if test -z "$ac_file"
3219then :
3220  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3221printf "%s\n" "no" >&6; }
3222printf "%s\n" "$as_me: failed program was:" >&5
3223sed 's/^/| /' conftest.$ac_ext >&5
3224
3225{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3226printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3227as_fn_error 77 "C compiler cannot create executables
3228See \`config.log' for more details" "$LINENO" 5; }
3229else $as_nop
3230  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3231printf "%s\n" "yes" >&6; }
3232fi
3233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3234printf %s "checking for C compiler default output file name... " >&6; }
3235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3236printf "%s\n" "$ac_file" >&6; }
3237ac_exeext=$ac_cv_exeext
3238
3239rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3240ac_clean_files=$ac_clean_files_save
3241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3242printf %s "checking for suffix of executables... " >&6; }
3243if { { ac_try="$ac_link"
3244case "(($ac_try" in
3245  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246  *) ac_try_echo=$ac_try;;
3247esac
3248eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3249printf "%s\n" "$ac_try_echo"; } >&5
3250  (eval "$ac_link") 2>&5
3251  ac_status=$?
3252  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3253  test $ac_status = 0; }
3254then :
3255  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3256# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3257# work properly (i.e., refer to `conftest.exe'), while it won't with
3258# `rm'.
3259for ac_file in conftest.exe conftest conftest.*; do
3260  test -f "$ac_file" || continue
3261  case $ac_file in
3262    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3263    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3264	  break;;
3265    * ) break;;
3266  esac
3267done
3268else $as_nop
3269  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3270printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3271as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3272See \`config.log' for more details" "$LINENO" 5; }
3273fi
3274rm -f conftest conftest$ac_cv_exeext
3275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3276printf "%s\n" "$ac_cv_exeext" >&6; }
3277
3278rm -f conftest.$ac_ext
3279EXEEXT=$ac_cv_exeext
3280ac_exeext=$EXEEXT
3281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3282/* end confdefs.h.  */
3283#include <stdio.h>
3284int
3285main (void)
3286{
3287FILE *f = fopen ("conftest.out", "w");
3288 return ferror (f) || fclose (f) != 0;
3289
3290  ;
3291  return 0;
3292}
3293_ACEOF
3294ac_clean_files="$ac_clean_files conftest.out"
3295# Check that the compiler produces executables we can run.  If not, either
3296# the compiler is broken, or we cross compile.
3297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3298printf %s "checking whether we are cross compiling... " >&6; }
3299if test "$cross_compiling" != yes; then
3300  { { ac_try="$ac_link"
3301case "(($ac_try" in
3302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303  *) ac_try_echo=$ac_try;;
3304esac
3305eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3306printf "%s\n" "$ac_try_echo"; } >&5
3307  (eval "$ac_link") 2>&5
3308  ac_status=$?
3309  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3310  test $ac_status = 0; }
3311  if { ac_try='./conftest$ac_cv_exeext'
3312  { { case "(($ac_try" in
3313  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314  *) ac_try_echo=$ac_try;;
3315esac
3316eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3317printf "%s\n" "$ac_try_echo"; } >&5
3318  (eval "$ac_try") 2>&5
3319  ac_status=$?
3320  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3321  test $ac_status = 0; }; }; then
3322    cross_compiling=no
3323  else
3324    if test "$cross_compiling" = maybe; then
3325	cross_compiling=yes
3326    else
3327	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3328printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3329as_fn_error 77 "cannot run C compiled programs.
3330If you meant to cross compile, use \`--host'.
3331See \`config.log' for more details" "$LINENO" 5; }
3332    fi
3333  fi
3334fi
3335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3336printf "%s\n" "$cross_compiling" >&6; }
3337
3338rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3339ac_clean_files=$ac_clean_files_save
3340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3341printf %s "checking for suffix of object files... " >&6; }
3342if test ${ac_cv_objext+y}
3343then :
3344  printf %s "(cached) " >&6
3345else $as_nop
3346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3347/* end confdefs.h.  */
3348
3349int
3350main (void)
3351{
3352
3353  ;
3354  return 0;
3355}
3356_ACEOF
3357rm -f conftest.o conftest.obj
3358if { { ac_try="$ac_compile"
3359case "(($ac_try" in
3360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361  *) ac_try_echo=$ac_try;;
3362esac
3363eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3364printf "%s\n" "$ac_try_echo"; } >&5
3365  (eval "$ac_compile") 2>&5
3366  ac_status=$?
3367  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3368  test $ac_status = 0; }
3369then :
3370  for ac_file in conftest.o conftest.obj conftest.*; do
3371  test -f "$ac_file" || continue;
3372  case $ac_file in
3373    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3374    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3375       break;;
3376  esac
3377done
3378else $as_nop
3379  printf "%s\n" "$as_me: failed program was:" >&5
3380sed 's/^/| /' conftest.$ac_ext >&5
3381
3382{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3383printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3384as_fn_error $? "cannot compute suffix of object files: cannot compile
3385See \`config.log' for more details" "$LINENO" 5; }
3386fi
3387rm -f conftest.$ac_cv_objext conftest.$ac_ext
3388fi
3389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3390printf "%s\n" "$ac_cv_objext" >&6; }
3391OBJEXT=$ac_cv_objext
3392ac_objext=$OBJEXT
3393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3394printf %s "checking whether the compiler supports GNU C... " >&6; }
3395if test ${ac_cv_c_compiler_gnu+y}
3396then :
3397  printf %s "(cached) " >&6
3398else $as_nop
3399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400/* end confdefs.h.  */
3401
3402int
3403main (void)
3404{
3405#ifndef __GNUC__
3406       choke me
3407#endif
3408
3409  ;
3410  return 0;
3411}
3412_ACEOF
3413if ac_fn_c_try_compile "$LINENO"
3414then :
3415  ac_compiler_gnu=yes
3416else $as_nop
3417  ac_compiler_gnu=no
3418fi
3419rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3420ac_cv_c_compiler_gnu=$ac_compiler_gnu
3421
3422fi
3423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3424printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3425ac_compiler_gnu=$ac_cv_c_compiler_gnu
3426
3427if test $ac_compiler_gnu = yes; then
3428  GCC=yes
3429else
3430  GCC=
3431fi
3432ac_test_CFLAGS=${CFLAGS+y}
3433ac_save_CFLAGS=$CFLAGS
3434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3435printf %s "checking whether $CC accepts -g... " >&6; }
3436if test ${ac_cv_prog_cc_g+y}
3437then :
3438  printf %s "(cached) " >&6
3439else $as_nop
3440  ac_save_c_werror_flag=$ac_c_werror_flag
3441   ac_c_werror_flag=yes
3442   ac_cv_prog_cc_g=no
3443   CFLAGS="-g"
3444   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445/* end confdefs.h.  */
3446
3447int
3448main (void)
3449{
3450
3451  ;
3452  return 0;
3453}
3454_ACEOF
3455if ac_fn_c_try_compile "$LINENO"
3456then :
3457  ac_cv_prog_cc_g=yes
3458else $as_nop
3459  CFLAGS=""
3460      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461/* end confdefs.h.  */
3462
3463int
3464main (void)
3465{
3466
3467  ;
3468  return 0;
3469}
3470_ACEOF
3471if ac_fn_c_try_compile "$LINENO"
3472then :
3473
3474else $as_nop
3475  ac_c_werror_flag=$ac_save_c_werror_flag
3476	 CFLAGS="-g"
3477	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478/* end confdefs.h.  */
3479
3480int
3481main (void)
3482{
3483
3484  ;
3485  return 0;
3486}
3487_ACEOF
3488if ac_fn_c_try_compile "$LINENO"
3489then :
3490  ac_cv_prog_cc_g=yes
3491fi
3492rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3493fi
3494rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3495fi
3496rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3497   ac_c_werror_flag=$ac_save_c_werror_flag
3498fi
3499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3500printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3501if test $ac_test_CFLAGS; then
3502  CFLAGS=$ac_save_CFLAGS
3503elif test $ac_cv_prog_cc_g = yes; then
3504  if test "$GCC" = yes; then
3505    CFLAGS="-g -O2"
3506  else
3507    CFLAGS="-g"
3508  fi
3509else
3510  if test "$GCC" = yes; then
3511    CFLAGS="-O2"
3512  else
3513    CFLAGS=
3514  fi
3515fi
3516ac_prog_cc_stdc=no
3517if test x$ac_prog_cc_stdc = xno
3518then :
3519  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3520printf %s "checking for $CC option to enable C11 features... " >&6; }
3521if test ${ac_cv_prog_cc_c11+y}
3522then :
3523  printf %s "(cached) " >&6
3524else $as_nop
3525  ac_cv_prog_cc_c11=no
3526ac_save_CC=$CC
3527cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528/* end confdefs.h.  */
3529$ac_c_conftest_c11_program
3530_ACEOF
3531for ac_arg in '' -std=gnu11
3532do
3533  CC="$ac_save_CC $ac_arg"
3534  if ac_fn_c_try_compile "$LINENO"
3535then :
3536  ac_cv_prog_cc_c11=$ac_arg
3537fi
3538rm -f core conftest.err conftest.$ac_objext conftest.beam
3539  test "x$ac_cv_prog_cc_c11" != "xno" && break
3540done
3541rm -f conftest.$ac_ext
3542CC=$ac_save_CC
3543fi
3544
3545if test "x$ac_cv_prog_cc_c11" = xno
3546then :
3547  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3548printf "%s\n" "unsupported" >&6; }
3549else $as_nop
3550  if test "x$ac_cv_prog_cc_c11" = x
3551then :
3552  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3553printf "%s\n" "none needed" >&6; }
3554else $as_nop
3555  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3556printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3557     CC="$CC $ac_cv_prog_cc_c11"
3558fi
3559  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3560  ac_prog_cc_stdc=c11
3561fi
3562fi
3563if test x$ac_prog_cc_stdc = xno
3564then :
3565  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3566printf %s "checking for $CC option to enable C99 features... " >&6; }
3567if test ${ac_cv_prog_cc_c99+y}
3568then :
3569  printf %s "(cached) " >&6
3570else $as_nop
3571  ac_cv_prog_cc_c99=no
3572ac_save_CC=$CC
3573cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574/* end confdefs.h.  */
3575$ac_c_conftest_c99_program
3576_ACEOF
3577for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3578do
3579  CC="$ac_save_CC $ac_arg"
3580  if ac_fn_c_try_compile "$LINENO"
3581then :
3582  ac_cv_prog_cc_c99=$ac_arg
3583fi
3584rm -f core conftest.err conftest.$ac_objext conftest.beam
3585  test "x$ac_cv_prog_cc_c99" != "xno" && break
3586done
3587rm -f conftest.$ac_ext
3588CC=$ac_save_CC
3589fi
3590
3591if test "x$ac_cv_prog_cc_c99" = xno
3592then :
3593  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3594printf "%s\n" "unsupported" >&6; }
3595else $as_nop
3596  if test "x$ac_cv_prog_cc_c99" = x
3597then :
3598  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3599printf "%s\n" "none needed" >&6; }
3600else $as_nop
3601  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3602printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3603     CC="$CC $ac_cv_prog_cc_c99"
3604fi
3605  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3606  ac_prog_cc_stdc=c99
3607fi
3608fi
3609if test x$ac_prog_cc_stdc = xno
3610then :
3611  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3612printf %s "checking for $CC option to enable C89 features... " >&6; }
3613if test ${ac_cv_prog_cc_c89+y}
3614then :
3615  printf %s "(cached) " >&6
3616else $as_nop
3617  ac_cv_prog_cc_c89=no
3618ac_save_CC=$CC
3619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620/* end confdefs.h.  */
3621$ac_c_conftest_c89_program
3622_ACEOF
3623for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3624do
3625  CC="$ac_save_CC $ac_arg"
3626  if ac_fn_c_try_compile "$LINENO"
3627then :
3628  ac_cv_prog_cc_c89=$ac_arg
3629fi
3630rm -f core conftest.err conftest.$ac_objext conftest.beam
3631  test "x$ac_cv_prog_cc_c89" != "xno" && break
3632done
3633rm -f conftest.$ac_ext
3634CC=$ac_save_CC
3635fi
3636
3637if test "x$ac_cv_prog_cc_c89" = xno
3638then :
3639  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3640printf "%s\n" "unsupported" >&6; }
3641else $as_nop
3642  if test "x$ac_cv_prog_cc_c89" = x
3643then :
3644  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3645printf "%s\n" "none needed" >&6; }
3646else $as_nop
3647  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3648printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3649     CC="$CC $ac_cv_prog_cc_c89"
3650fi
3651  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3652  ac_prog_cc_stdc=c89
3653fi
3654fi
3655
3656ac_ext=c
3657ac_cpp='$CPP $CPPFLAGS'
3658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3660ac_compiler_gnu=$ac_cv_c_compiler_gnu
3661
3662
3663  ac_ext=c
3664ac_cpp='$CPP $CPPFLAGS'
3665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3667ac_compiler_gnu=$ac_cv_c_compiler_gnu
3668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3669printf %s "checking whether $CC understands -c and -o together... " >&6; }
3670if test ${am_cv_prog_cc_c_o+y}
3671then :
3672  printf %s "(cached) " >&6
3673else $as_nop
3674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675/* end confdefs.h.  */
3676
3677int
3678main (void)
3679{
3680
3681  ;
3682  return 0;
3683}
3684_ACEOF
3685  # Make sure it works both with $CC and with simple cc.
3686  # Following AC_PROG_CC_C_O, we do the test twice because some
3687  # compilers refuse to overwrite an existing .o file with -o,
3688  # though they will create one.
3689  am_cv_prog_cc_c_o=yes
3690  for am_i in 1 2; do
3691    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3692   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3693   ac_status=$?
3694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695   (exit $ac_status); } \
3696         && test -f conftest2.$ac_objext; then
3697      : OK
3698    else
3699      am_cv_prog_cc_c_o=no
3700      break
3701    fi
3702  done
3703  rm -f core conftest*
3704  unset am_i
3705fi
3706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3707printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3708if test "$am_cv_prog_cc_c_o" != yes; then
3709   # Losing compiler, so override with the script.
3710   # FIXME: It is wrong to rewrite CC.
3711   # But if we don't then we get into trouble of one sort or another.
3712   # A longer-term fix would be to have automake use am__CC in this case,
3713   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3714   CC="$am_aux_dir/compile $CC"
3715fi
3716ac_ext=c
3717ac_cpp='$CPP $CPPFLAGS'
3718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3720ac_compiler_gnu=$ac_cv_c_compiler_gnu
3721
3722
3723
3724ac_header= ac_cache=
3725for ac_item in $ac_header_c_list
3726do
3727  if test $ac_cache; then
3728    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3729    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3730      printf "%s\n" "#define $ac_item 1" >> confdefs.h
3731    fi
3732    ac_header= ac_cache=
3733  elif test $ac_header; then
3734    ac_cache=$ac_item
3735  else
3736    ac_header=$ac_item
3737  fi
3738done
3739
3740
3741
3742
3743
3744
3745
3746
3747if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3748then :
3749
3750printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3751
3752fi
3753
3754
3755
3756
3757
3758
3759  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3760printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3761if test ${ac_cv_safe_to_define___extensions__+y}
3762then :
3763  printf %s "(cached) " >&6
3764else $as_nop
3765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766/* end confdefs.h.  */
3767
3768#         define __EXTENSIONS__ 1
3769          $ac_includes_default
3770int
3771main (void)
3772{
3773
3774  ;
3775  return 0;
3776}
3777_ACEOF
3778if ac_fn_c_try_compile "$LINENO"
3779then :
3780  ac_cv_safe_to_define___extensions__=yes
3781else $as_nop
3782  ac_cv_safe_to_define___extensions__=no
3783fi
3784rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3785fi
3786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3787printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3788
3789  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3790printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3791if test ${ac_cv_should_define__xopen_source+y}
3792then :
3793  printf %s "(cached) " >&6
3794else $as_nop
3795  ac_cv_should_define__xopen_source=no
3796    if test $ac_cv_header_wchar_h = yes
3797then :
3798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799/* end confdefs.h.  */
3800
3801          #include <wchar.h>
3802          mbstate_t x;
3803int
3804main (void)
3805{
3806
3807  ;
3808  return 0;
3809}
3810_ACEOF
3811if ac_fn_c_try_compile "$LINENO"
3812then :
3813
3814else $as_nop
3815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816/* end confdefs.h.  */
3817
3818            #define _XOPEN_SOURCE 500
3819            #include <wchar.h>
3820            mbstate_t x;
3821int
3822main (void)
3823{
3824
3825  ;
3826  return 0;
3827}
3828_ACEOF
3829if ac_fn_c_try_compile "$LINENO"
3830then :
3831  ac_cv_should_define__xopen_source=yes
3832fi
3833rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3834fi
3835rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3836fi
3837fi
3838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3839printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3840
3841  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3842
3843  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3844
3845  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3846
3847  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3848
3849  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3850
3851  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3852
3853  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3854
3855  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3856
3857  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3858
3859  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3860
3861  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3862
3863  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3864
3865  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3866
3867  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3868
3869  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3870
3871  if test $ac_cv_header_minix_config_h = yes
3872then :
3873  MINIX=yes
3874    printf "%s\n" "#define _MINIX 1" >>confdefs.h
3875
3876    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3877
3878    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3879
3880else $as_nop
3881  MINIX=
3882fi
3883  if test $ac_cv_safe_to_define___extensions__ = yes
3884then :
3885  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3886
3887fi
3888  if test $ac_cv_should_define__xopen_source = yes
3889then :
3890  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3891
3892fi
3893
3894
3895# Initialize Automake
3896am__api_version='1.16'
3897
3898
3899  # Find a good install program.  We prefer a C program (faster),
3900# so one script is as good as another.  But avoid the broken or
3901# incompatible versions:
3902# SysV /etc/install, /usr/sbin/install
3903# SunOS /usr/etc/install
3904# IRIX /sbin/install
3905# AIX /bin/install
3906# AmigaOS /C/install, which installs bootblocks on floppy discs
3907# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3908# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3909# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3910# OS/2's system install, which has a completely different semantic
3911# ./install, which can be erroneously created by make from ./install.sh.
3912# Reject install programs that cannot install multiple files.
3913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3914printf %s "checking for a BSD-compatible install... " >&6; }
3915if test -z "$INSTALL"; then
3916if test ${ac_cv_path_install+y}
3917then :
3918  printf %s "(cached) " >&6
3919else $as_nop
3920  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921for as_dir in $PATH
3922do
3923  IFS=$as_save_IFS
3924  case $as_dir in #(((
3925    '') as_dir=./ ;;
3926    */) ;;
3927    *) as_dir=$as_dir/ ;;
3928  esac
3929    # Account for fact that we put trailing slashes in our PATH walk.
3930case $as_dir in #((
3931  ./ | /[cC]/* | \
3932  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3933  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3934  /usr/ucb/* ) ;;
3935  *)
3936    # OSF1 and SCO ODT 3.0 have their own names for install.
3937    # Don't use installbsd from OSF since it installs stuff as root
3938    # by default.
3939    for ac_prog in ginstall scoinst install; do
3940      for ac_exec_ext in '' $ac_executable_extensions; do
3941	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3942	  if test $ac_prog = install &&
3943	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3944	    # AIX install.  It has an incompatible calling convention.
3945	    :
3946	  elif test $ac_prog = install &&
3947	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3948	    # program-specific install script used by HP pwplus--don't use.
3949	    :
3950	  else
3951	    rm -rf conftest.one conftest.two conftest.dir
3952	    echo one > conftest.one
3953	    echo two > conftest.two
3954	    mkdir conftest.dir
3955	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3956	      test -s conftest.one && test -s conftest.two &&
3957	      test -s conftest.dir/conftest.one &&
3958	      test -s conftest.dir/conftest.two
3959	    then
3960	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3961	      break 3
3962	    fi
3963	  fi
3964	fi
3965      done
3966    done
3967    ;;
3968esac
3969
3970  done
3971IFS=$as_save_IFS
3972
3973rm -rf conftest.one conftest.two conftest.dir
3974
3975fi
3976  if test ${ac_cv_path_install+y}; then
3977    INSTALL=$ac_cv_path_install
3978  else
3979    # As a last resort, use the slow shell script.  Don't cache a
3980    # value for INSTALL within a source directory, because that will
3981    # break other packages using the cache if that directory is
3982    # removed, or if the value is a relative name.
3983    INSTALL=$ac_install_sh
3984  fi
3985fi
3986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3987printf "%s\n" "$INSTALL" >&6; }
3988
3989# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3990# It thinks the first close brace ends the variable substitution.
3991test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3992
3993test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3994
3995test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3996
3997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3998printf %s "checking whether build environment is sane... " >&6; }
3999# Reject unsafe characters in $srcdir or the absolute working directory
4000# name.  Accept space and tab only in the latter.
4001am_lf='
4002'
4003case `pwd` in
4004  *[\\\"\#\$\&\'\`$am_lf]*)
4005    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4006esac
4007case $srcdir in
4008  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4009    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4010esac
4011
4012# Do 'set' in a subshell so we don't clobber the current shell's
4013# arguments.  Must try -L first in case configure is actually a
4014# symlink; some systems play weird games with the mod time of symlinks
4015# (eg FreeBSD returns the mod time of the symlink's containing
4016# directory).
4017if (
4018   am_has_slept=no
4019   for am_try in 1 2; do
4020     echo "timestamp, slept: $am_has_slept" > conftest.file
4021     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4022     if test "$*" = "X"; then
4023	# -L didn't work.
4024	set X `ls -t "$srcdir/configure" conftest.file`
4025     fi
4026     if test "$*" != "X $srcdir/configure conftest.file" \
4027	&& test "$*" != "X conftest.file $srcdir/configure"; then
4028
4029	# If neither matched, then we have a broken ls.  This can happen
4030	# if, for instance, CONFIG_SHELL is bash and it inherits a
4031	# broken ls alias from the environment.  This has actually
4032	# happened.  Such a system could not be considered "sane".
4033	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4034  alias in your environment" "$LINENO" 5
4035     fi
4036     if test "$2" = conftest.file || test $am_try -eq 2; then
4037       break
4038     fi
4039     # Just in case.
4040     sleep 1
4041     am_has_slept=yes
4042   done
4043   test "$2" = conftest.file
4044   )
4045then
4046   # Ok.
4047   :
4048else
4049   as_fn_error $? "newly created file is older than distributed files!
4050Check your system clock" "$LINENO" 5
4051fi
4052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4053printf "%s\n" "yes" >&6; }
4054# If we didn't sleep, we still need to ensure time stamps of config.status and
4055# generated files are strictly newer.
4056am_sleep_pid=
4057if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4058  ( sleep 1 ) &
4059  am_sleep_pid=$!
4060fi
4061
4062rm -f conftest.file
4063
4064test "$program_prefix" != NONE &&
4065  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4066# Use a double $ so make ignores it.
4067test "$program_suffix" != NONE &&
4068  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4069# Double any \ or $.
4070# By default was `s,x,x', remove it if useless.
4071ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4072program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4073
4074
4075  if test x"${MISSING+set}" != xset; then
4076  MISSING="\${SHELL} '$am_aux_dir/missing'"
4077fi
4078# Use eval to expand $SHELL
4079if eval "$MISSING --is-lightweight"; then
4080  am_missing_run="$MISSING "
4081else
4082  am_missing_run=
4083  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4084printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4085fi
4086
4087if test x"${install_sh+set}" != xset; then
4088  case $am_aux_dir in
4089  *\ * | *\	*)
4090    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4091  *)
4092    install_sh="\${SHELL} $am_aux_dir/install-sh"
4093  esac
4094fi
4095
4096# Installed binaries are usually stripped using 'strip' when the user
4097# run "make install-strip".  However 'strip' might not be the right
4098# tool to use in cross-compilation environments, therefore Automake
4099# will honor the 'STRIP' environment variable to overrule this program.
4100if test "$cross_compiling" != no; then
4101  if test -n "$ac_tool_prefix"; then
4102  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4103set dummy ${ac_tool_prefix}strip; ac_word=$2
4104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4105printf %s "checking for $ac_word... " >&6; }
4106if test ${ac_cv_prog_STRIP+y}
4107then :
4108  printf %s "(cached) " >&6
4109else $as_nop
4110  if test -n "$STRIP"; then
4111  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4112else
4113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114for as_dir in $PATH
4115do
4116  IFS=$as_save_IFS
4117  case $as_dir in #(((
4118    '') as_dir=./ ;;
4119    */) ;;
4120    *) as_dir=$as_dir/ ;;
4121  esac
4122    for ac_exec_ext in '' $ac_executable_extensions; do
4123  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4124    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4125    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4126    break 2
4127  fi
4128done
4129  done
4130IFS=$as_save_IFS
4131
4132fi
4133fi
4134STRIP=$ac_cv_prog_STRIP
4135if test -n "$STRIP"; then
4136  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4137printf "%s\n" "$STRIP" >&6; }
4138else
4139  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4140printf "%s\n" "no" >&6; }
4141fi
4142
4143
4144fi
4145if test -z "$ac_cv_prog_STRIP"; then
4146  ac_ct_STRIP=$STRIP
4147  # Extract the first word of "strip", so it can be a program name with args.
4148set dummy strip; ac_word=$2
4149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4150printf %s "checking for $ac_word... " >&6; }
4151if test ${ac_cv_prog_ac_ct_STRIP+y}
4152then :
4153  printf %s "(cached) " >&6
4154else $as_nop
4155  if test -n "$ac_ct_STRIP"; then
4156  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4157else
4158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159for as_dir in $PATH
4160do
4161  IFS=$as_save_IFS
4162  case $as_dir in #(((
4163    '') as_dir=./ ;;
4164    */) ;;
4165    *) as_dir=$as_dir/ ;;
4166  esac
4167    for ac_exec_ext in '' $ac_executable_extensions; do
4168  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4169    ac_cv_prog_ac_ct_STRIP="strip"
4170    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4171    break 2
4172  fi
4173done
4174  done
4175IFS=$as_save_IFS
4176
4177fi
4178fi
4179ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4180if test -n "$ac_ct_STRIP"; then
4181  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4182printf "%s\n" "$ac_ct_STRIP" >&6; }
4183else
4184  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4185printf "%s\n" "no" >&6; }
4186fi
4187
4188  if test "x$ac_ct_STRIP" = x; then
4189    STRIP=":"
4190  else
4191    case $cross_compiling:$ac_tool_warned in
4192yes:)
4193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4194printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4195ac_tool_warned=yes ;;
4196esac
4197    STRIP=$ac_ct_STRIP
4198  fi
4199else
4200  STRIP="$ac_cv_prog_STRIP"
4201fi
4202
4203fi
4204INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4205
4206
4207  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4208printf %s "checking for a race-free mkdir -p... " >&6; }
4209if test -z "$MKDIR_P"; then
4210  if test ${ac_cv_path_mkdir+y}
4211then :
4212  printf %s "(cached) " >&6
4213else $as_nop
4214  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4216do
4217  IFS=$as_save_IFS
4218  case $as_dir in #(((
4219    '') as_dir=./ ;;
4220    */) ;;
4221    *) as_dir=$as_dir/ ;;
4222  esac
4223    for ac_prog in mkdir gmkdir; do
4224	 for ac_exec_ext in '' $ac_executable_extensions; do
4225	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4226	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4227	     'mkdir ('*'coreutils) '* | \
4228	     'BusyBox '* | \
4229	     'mkdir (fileutils) '4.1*)
4230	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4231	       break 3;;
4232	   esac
4233	 done
4234       done
4235  done
4236IFS=$as_save_IFS
4237
4238fi
4239
4240  test -d ./--version && rmdir ./--version
4241  if test ${ac_cv_path_mkdir+y}; then
4242    MKDIR_P="$ac_cv_path_mkdir -p"
4243  else
4244    # As a last resort, use the slow shell script.  Don't cache a
4245    # value for MKDIR_P within a source directory, because that will
4246    # break other packages using the cache if that directory is
4247    # removed, or if the value is a relative name.
4248    MKDIR_P="$ac_install_sh -d"
4249  fi
4250fi
4251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4252printf "%s\n" "$MKDIR_P" >&6; }
4253
4254for ac_prog in gawk mawk nawk awk
4255do
4256  # Extract the first word of "$ac_prog", so it can be a program name with args.
4257set dummy $ac_prog; ac_word=$2
4258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4259printf %s "checking for $ac_word... " >&6; }
4260if test ${ac_cv_prog_AWK+y}
4261then :
4262  printf %s "(cached) " >&6
4263else $as_nop
4264  if test -n "$AWK"; then
4265  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4266else
4267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268for as_dir in $PATH
4269do
4270  IFS=$as_save_IFS
4271  case $as_dir in #(((
4272    '') as_dir=./ ;;
4273    */) ;;
4274    *) as_dir=$as_dir/ ;;
4275  esac
4276    for ac_exec_ext in '' $ac_executable_extensions; do
4277  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4278    ac_cv_prog_AWK="$ac_prog"
4279    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4280    break 2
4281  fi
4282done
4283  done
4284IFS=$as_save_IFS
4285
4286fi
4287fi
4288AWK=$ac_cv_prog_AWK
4289if test -n "$AWK"; then
4290  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4291printf "%s\n" "$AWK" >&6; }
4292else
4293  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4294printf "%s\n" "no" >&6; }
4295fi
4296
4297
4298  test -n "$AWK" && break
4299done
4300
4301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4302printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4303set x ${MAKE-make}
4304ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4305if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4306then :
4307  printf %s "(cached) " >&6
4308else $as_nop
4309  cat >conftest.make <<\_ACEOF
4310SHELL = /bin/sh
4311all:
4312	@echo '@@@%%%=$(MAKE)=@@@%%%'
4313_ACEOF
4314# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4315case `${MAKE-make} -f conftest.make 2>/dev/null` in
4316  *@@@%%%=?*=@@@%%%*)
4317    eval ac_cv_prog_make_${ac_make}_set=yes;;
4318  *)
4319    eval ac_cv_prog_make_${ac_make}_set=no;;
4320esac
4321rm -f conftest.make
4322fi
4323if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4324  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4325printf "%s\n" "yes" >&6; }
4326  SET_MAKE=
4327else
4328  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4329printf "%s\n" "no" >&6; }
4330  SET_MAKE="MAKE=${MAKE-make}"
4331fi
4332
4333rm -rf .tst 2>/dev/null
4334mkdir .tst 2>/dev/null
4335if test -d .tst; then
4336  am__leading_dot=.
4337else
4338  am__leading_dot=_
4339fi
4340rmdir .tst 2>/dev/null
4341
4342DEPDIR="${am__leading_dot}deps"
4343
4344ac_config_commands="$ac_config_commands depfiles"
4345
4346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4347printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4348cat > confinc.mk << 'END'
4349am__doit:
4350	@echo this is the am__doit target >confinc.out
4351.PHONY: am__doit
4352END
4353am__include="#"
4354am__quote=
4355# BSD make does it like this.
4356echo '.include "confinc.mk" # ignored' > confmf.BSD
4357# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4358echo 'include confinc.mk # ignored' > confmf.GNU
4359_am_result=no
4360for s in GNU BSD; do
4361  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4362   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4363   ac_status=$?
4364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365   (exit $ac_status); }
4366  case $?:`cat confinc.out 2>/dev/null` in #(
4367  '0:this is the am__doit target') :
4368    case $s in #(
4369  BSD) :
4370    am__include='.include' am__quote='"' ;; #(
4371  *) :
4372    am__include='include' am__quote='' ;;
4373esac ;; #(
4374  *) :
4375     ;;
4376esac
4377  if test "$am__include" != "#"; then
4378    _am_result="yes ($s style)"
4379    break
4380  fi
4381done
4382rm -f confinc.* confmf.*
4383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4384printf "%s\n" "${_am_result}" >&6; }
4385
4386# Check whether --enable-dependency-tracking was given.
4387if test ${enable_dependency_tracking+y}
4388then :
4389  enableval=$enable_dependency_tracking;
4390fi
4391
4392if test "x$enable_dependency_tracking" != xno; then
4393  am_depcomp="$ac_aux_dir/depcomp"
4394  AMDEPBACKSLASH='\'
4395  am__nodep='_no'
4396fi
4397 if test "x$enable_dependency_tracking" != xno; then
4398  AMDEP_TRUE=
4399  AMDEP_FALSE='#'
4400else
4401  AMDEP_TRUE='#'
4402  AMDEP_FALSE=
4403fi
4404
4405
4406# Check whether --enable-silent-rules was given.
4407if test ${enable_silent_rules+y}
4408then :
4409  enableval=$enable_silent_rules;
4410fi
4411
4412case $enable_silent_rules in # (((
4413  yes) AM_DEFAULT_VERBOSITY=0;;
4414   no) AM_DEFAULT_VERBOSITY=1;;
4415    *) AM_DEFAULT_VERBOSITY=1;;
4416esac
4417am_make=${MAKE-make}
4418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4419printf %s "checking whether $am_make supports nested variables... " >&6; }
4420if test ${am_cv_make_support_nested_variables+y}
4421then :
4422  printf %s "(cached) " >&6
4423else $as_nop
4424  if printf "%s\n" 'TRUE=$(BAR$(V))
4425BAR0=false
4426BAR1=true
4427V=1
4428am__doit:
4429	@$(TRUE)
4430.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4431  am_cv_make_support_nested_variables=yes
4432else
4433  am_cv_make_support_nested_variables=no
4434fi
4435fi
4436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4437printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4438if test $am_cv_make_support_nested_variables = yes; then
4439    AM_V='$(V)'
4440  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4441else
4442  AM_V=$AM_DEFAULT_VERBOSITY
4443  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4444fi
4445AM_BACKSLASH='\'
4446
4447if test "`cd $srcdir && pwd`" != "`pwd`"; then
4448  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4449  # is not polluted with repeated "-I."
4450  am__isrc=' -I$(srcdir)'
4451  # test to see if srcdir already configured
4452  if test -f $srcdir/config.status; then
4453    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4454  fi
4455fi
4456
4457# test whether we have cygpath
4458if test -z "$CYGPATH_W"; then
4459  if (cygpath --version) >/dev/null 2>/dev/null; then
4460    CYGPATH_W='cygpath -w'
4461  else
4462    CYGPATH_W=echo
4463  fi
4464fi
4465
4466
4467# Define the identity of the package.
4468 PACKAGE='xinit'
4469 VERSION='1.4.3'
4470
4471
4472printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4473
4474
4475printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4476
4477# Some tools Automake needs.
4478
4479ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4480
4481
4482AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4483
4484
4485AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4486
4487
4488AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4489
4490
4491MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4492
4493# For better backward compatibility.  To be removed once Automake 1.9.x
4494# dies out for good.  For more background, see:
4495# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4496# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4497mkdir_p='$(MKDIR_P)'
4498
4499# We need awk for the "check" target (and possibly the TAP driver).  The
4500# system "awk" is bad on some platforms.
4501# Always define AMTAR for backward compatibility.  Yes, it's still used
4502# in the wild :-(  We should find a proper way to deprecate it ...
4503AMTAR='$${TAR-tar}'
4504
4505
4506# We'll loop over all known methods to create a tar archive until one works.
4507_am_tools='gnutar  pax cpio none'
4508
4509am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4510
4511
4512
4513
4514
4515depcc="$CC"   am_compiler_list=
4516
4517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4518printf %s "checking dependency style of $depcc... " >&6; }
4519if test ${am_cv_CC_dependencies_compiler_type+y}
4520then :
4521  printf %s "(cached) " >&6
4522else $as_nop
4523  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4524  # We make a subdir and do the tests there.  Otherwise we can end up
4525  # making bogus files that we don't know about and never remove.  For
4526  # instance it was reported that on HP-UX the gcc test will end up
4527  # making a dummy file named 'D' -- because '-MD' means "put the output
4528  # in D".
4529  rm -rf conftest.dir
4530  mkdir conftest.dir
4531  # Copy depcomp to subdir because otherwise we won't find it if we're
4532  # using a relative directory.
4533  cp "$am_depcomp" conftest.dir
4534  cd conftest.dir
4535  # We will build objects and dependencies in a subdirectory because
4536  # it helps to detect inapplicable dependency modes.  For instance
4537  # both Tru64's cc and ICC support -MD to output dependencies as a
4538  # side effect of compilation, but ICC will put the dependencies in
4539  # the current directory while Tru64 will put them in the object
4540  # directory.
4541  mkdir sub
4542
4543  am_cv_CC_dependencies_compiler_type=none
4544  if test "$am_compiler_list" = ""; then
4545     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4546  fi
4547  am__universal=false
4548  case " $depcc " in #(
4549     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4550     esac
4551
4552  for depmode in $am_compiler_list; do
4553    # Setup a source with many dependencies, because some compilers
4554    # like to wrap large dependency lists on column 80 (with \), and
4555    # we should not choose a depcomp mode which is confused by this.
4556    #
4557    # We need to recreate these files for each test, as the compiler may
4558    # overwrite some of them when testing with obscure command lines.
4559    # This happens at least with the AIX C compiler.
4560    : > sub/conftest.c
4561    for i in 1 2 3 4 5 6; do
4562      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4563      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4564      # Solaris 10 /bin/sh.
4565      echo '/* dummy */' > sub/conftst$i.h
4566    done
4567    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4568
4569    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4570    # mode.  It turns out that the SunPro C++ compiler does not properly
4571    # handle '-M -o', and we need to detect this.  Also, some Intel
4572    # versions had trouble with output in subdirs.
4573    am__obj=sub/conftest.${OBJEXT-o}
4574    am__minus_obj="-o $am__obj"
4575    case $depmode in
4576    gcc)
4577      # This depmode causes a compiler race in universal mode.
4578      test "$am__universal" = false || continue
4579      ;;
4580    nosideeffect)
4581      # After this tag, mechanisms are not by side-effect, so they'll
4582      # only be used when explicitly requested.
4583      if test "x$enable_dependency_tracking" = xyes; then
4584	continue
4585      else
4586	break
4587      fi
4588      ;;
4589    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4590      # This compiler won't grok '-c -o', but also, the minuso test has
4591      # not run yet.  These depmodes are late enough in the game, and
4592      # so weak that their functioning should not be impacted.
4593      am__obj=conftest.${OBJEXT-o}
4594      am__minus_obj=
4595      ;;
4596    none) break ;;
4597    esac
4598    if depmode=$depmode \
4599       source=sub/conftest.c object=$am__obj \
4600       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4601       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4602         >/dev/null 2>conftest.err &&
4603       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4604       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4605       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4606       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4607      # icc doesn't choke on unknown options, it will just issue warnings
4608      # or remarks (even with -Werror).  So we grep stderr for any message
4609      # that says an option was ignored or not supported.
4610      # When given -MP, icc 7.0 and 7.1 complain thusly:
4611      #   icc: Command line warning: ignoring option '-M'; no argument required
4612      # The diagnosis changed in icc 8.0:
4613      #   icc: Command line remark: option '-MP' not supported
4614      if (grep 'ignoring option' conftest.err ||
4615          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4616        am_cv_CC_dependencies_compiler_type=$depmode
4617        break
4618      fi
4619    fi
4620  done
4621
4622  cd ..
4623  rm -rf conftest.dir
4624else
4625  am_cv_CC_dependencies_compiler_type=none
4626fi
4627
4628fi
4629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4630printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4631CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4632
4633 if
4634  test "x$enable_dependency_tracking" != xno \
4635  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4636  am__fastdepCC_TRUE=
4637  am__fastdepCC_FALSE='#'
4638else
4639  am__fastdepCC_TRUE='#'
4640  am__fastdepCC_FALSE=
4641fi
4642
4643
4644
4645# POSIX will say in a future version that running "rm -f" with no argument
4646# is OK; and we want to be able to make that assumption in our Makefile
4647# recipes.  So use an aggressive probe to check that the usage we want is
4648# actually supported "in the wild" to an acceptable degree.
4649# See automake bug#10828.
4650# To make any issue more visible, cause the running configure to be aborted
4651# by default if the 'rm' program in use doesn't match our expectations; the
4652# user can still override this though.
4653if rm -f && rm -fr && rm -rf; then : OK; else
4654  cat >&2 <<'END'
4655Oops!
4656
4657Your 'rm' program seems unable to run without file operands specified
4658on the command line, even when the '-f' option is present.  This is contrary
4659to the behaviour of most rm programs out there, and not conforming with
4660the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4661
4662Please tell bug-automake@gnu.org about your system, including the value
4663of your $PATH and any error possibly output before this message.  This
4664can help us improve future automake versions.
4665
4666END
4667  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4668    echo 'Configuration will proceed anyway, since you have set the' >&2
4669    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4670    echo >&2
4671  else
4672    cat >&2 <<'END'
4673Aborting the configuration process, to ensure you take notice of the issue.
4674
4675You can download and install GNU coreutils to get an 'rm' implementation
4676that behaves properly: <https://www.gnu.org/software/coreutils/>.
4677
4678If you want to complete the configuration process using your problematic
4679'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4680to "yes", and re-run configure.
4681
4682END
4683    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4684  fi
4685fi
4686
4687
4688# Require X.Org macros 1.19 or later for TRADITIONALCPPFLAGS
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4701printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4702if test ${ac_cv_c_undeclared_builtin_options+y}
4703then :
4704  printf %s "(cached) " >&6
4705else $as_nop
4706  ac_save_CFLAGS=$CFLAGS
4707   ac_cv_c_undeclared_builtin_options='cannot detect'
4708   for ac_arg in '' -fno-builtin; do
4709     CFLAGS="$ac_save_CFLAGS $ac_arg"
4710     # This test program should *not* compile successfully.
4711     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712/* end confdefs.h.  */
4713
4714int
4715main (void)
4716{
4717(void) strchr;
4718  ;
4719  return 0;
4720}
4721_ACEOF
4722if ac_fn_c_try_compile "$LINENO"
4723then :
4724
4725else $as_nop
4726  # This test program should compile successfully.
4727        # No library function is consistently available on
4728        # freestanding implementations, so test against a dummy
4729        # declaration.  Include always-available headers on the
4730        # off chance that they somehow elicit warnings.
4731        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4732/* end confdefs.h.  */
4733#include <float.h>
4734#include <limits.h>
4735#include <stdarg.h>
4736#include <stddef.h>
4737extern void ac_decl (int, char *);
4738
4739int
4740main (void)
4741{
4742(void) ac_decl (0, (char *) 0);
4743  (void) ac_decl;
4744
4745  ;
4746  return 0;
4747}
4748_ACEOF
4749if ac_fn_c_try_compile "$LINENO"
4750then :
4751  if test x"$ac_arg" = x
4752then :
4753  ac_cv_c_undeclared_builtin_options='none needed'
4754else $as_nop
4755  ac_cv_c_undeclared_builtin_options=$ac_arg
4756fi
4757          break
4758fi
4759rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4760fi
4761rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4762    done
4763    CFLAGS=$ac_save_CFLAGS
4764
4765fi
4766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4767printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4768  case $ac_cv_c_undeclared_builtin_options in #(
4769  'cannot detect') :
4770    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4771printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4772as_fn_error $? "cannot make $CC report undeclared builtins
4773See \`config.log' for more details" "$LINENO" 5; } ;; #(
4774  'none needed') :
4775    ac_c_undeclared_builtin_options='' ;; #(
4776  *) :
4777    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4778esac
4779
4780
4781
4782
4783
4784ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4785if test "x$ac_cv_have_decl___clang__" = xyes
4786then :
4787  CLANGCC="yes"
4788else $as_nop
4789  CLANGCC="no"
4790fi
4791ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4792if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4793then :
4794  INTELCC="yes"
4795else $as_nop
4796  INTELCC="no"
4797fi
4798ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4799if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4800then :
4801  SUNCC="yes"
4802else $as_nop
4803  SUNCC="no"
4804fi
4805
4806
4807
4808
4809
4810
4811
4812
4813if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4814	if test -n "$ac_tool_prefix"; then
4815  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4816set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818printf %s "checking for $ac_word... " >&6; }
4819if test ${ac_cv_path_PKG_CONFIG+y}
4820then :
4821  printf %s "(cached) " >&6
4822else $as_nop
4823  case $PKG_CONFIG in
4824  [\\/]* | ?:[\\/]*)
4825  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4826  ;;
4827  *)
4828  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829for as_dir in $PATH
4830do
4831  IFS=$as_save_IFS
4832  case $as_dir in #(((
4833    '') as_dir=./ ;;
4834    */) ;;
4835    *) as_dir=$as_dir/ ;;
4836  esac
4837    for ac_exec_ext in '' $ac_executable_extensions; do
4838  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4839    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4840    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4841    break 2
4842  fi
4843done
4844  done
4845IFS=$as_save_IFS
4846
4847  ;;
4848esac
4849fi
4850PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4851if test -n "$PKG_CONFIG"; then
4852  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4853printf "%s\n" "$PKG_CONFIG" >&6; }
4854else
4855  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4856printf "%s\n" "no" >&6; }
4857fi
4858
4859
4860fi
4861if test -z "$ac_cv_path_PKG_CONFIG"; then
4862  ac_pt_PKG_CONFIG=$PKG_CONFIG
4863  # Extract the first word of "pkg-config", so it can be a program name with args.
4864set dummy pkg-config; ac_word=$2
4865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4866printf %s "checking for $ac_word... " >&6; }
4867if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4868then :
4869  printf %s "(cached) " >&6
4870else $as_nop
4871  case $ac_pt_PKG_CONFIG in
4872  [\\/]* | ?:[\\/]*)
4873  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4874  ;;
4875  *)
4876  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877for as_dir in $PATH
4878do
4879  IFS=$as_save_IFS
4880  case $as_dir in #(((
4881    '') as_dir=./ ;;
4882    */) ;;
4883    *) as_dir=$as_dir/ ;;
4884  esac
4885    for ac_exec_ext in '' $ac_executable_extensions; do
4886  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4887    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4888    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4889    break 2
4890  fi
4891done
4892  done
4893IFS=$as_save_IFS
4894
4895  ;;
4896esac
4897fi
4898ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4899if test -n "$ac_pt_PKG_CONFIG"; then
4900  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4901printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4902else
4903  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4904printf "%s\n" "no" >&6; }
4905fi
4906
4907  if test "x$ac_pt_PKG_CONFIG" = x; then
4908    PKG_CONFIG=""
4909  else
4910    case $cross_compiling:$ac_tool_warned in
4911yes:)
4912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4913printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4914ac_tool_warned=yes ;;
4915esac
4916    PKG_CONFIG=$ac_pt_PKG_CONFIG
4917  fi
4918else
4919  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4920fi
4921
4922fi
4923if test -n "$PKG_CONFIG"; then
4924	_pkg_min_version=0.9.0
4925	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4926printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4927	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4928		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4929printf "%s\n" "yes" >&6; }
4930	else
4931		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4932printf "%s\n" "no" >&6; }
4933		PKG_CONFIG=""
4934	fi
4935fi
4936
4937
4938  # Make sure we can run config.sub.
4939$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4940  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4941
4942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4943printf %s "checking build system type... " >&6; }
4944if test ${ac_cv_build+y}
4945then :
4946  printf %s "(cached) " >&6
4947else $as_nop
4948  ac_build_alias=$build_alias
4949test "x$ac_build_alias" = x &&
4950  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4951test "x$ac_build_alias" = x &&
4952  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4953ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4954  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4955
4956fi
4957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4958printf "%s\n" "$ac_cv_build" >&6; }
4959case $ac_cv_build in
4960*-*-*) ;;
4961*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4962esac
4963build=$ac_cv_build
4964ac_save_IFS=$IFS; IFS='-'
4965set x $ac_cv_build
4966shift
4967build_cpu=$1
4968build_vendor=$2
4969shift; shift
4970# Remember, the first character of IFS is used to create $*,
4971# except with old shells:
4972build_os=$*
4973IFS=$ac_save_IFS
4974case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4975
4976
4977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4978printf %s "checking host system type... " >&6; }
4979if test ${ac_cv_host+y}
4980then :
4981  printf %s "(cached) " >&6
4982else $as_nop
4983  if test "x$host_alias" = x; then
4984  ac_cv_host=$ac_cv_build
4985else
4986  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4987    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4988fi
4989
4990fi
4991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4992printf "%s\n" "$ac_cv_host" >&6; }
4993case $ac_cv_host in
4994*-*-*) ;;
4995*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4996esac
4997host=$ac_cv_host
4998ac_save_IFS=$IFS; IFS='-'
4999set x $ac_cv_host
5000shift
5001host_cpu=$1
5002host_vendor=$2
5003shift; shift
5004# Remember, the first character of IFS is used to create $*,
5005# except with old shells:
5006host_os=$*
5007IFS=$ac_save_IFS
5008case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5009
5010
5011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5012printf %s "checking for a sed that does not truncate output... " >&6; }
5013if test ${ac_cv_path_SED+y}
5014then :
5015  printf %s "(cached) " >&6
5016else $as_nop
5017            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5018     for ac_i in 1 2 3 4 5 6 7; do
5019       ac_script="$ac_script$as_nl$ac_script"
5020     done
5021     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5022     { ac_script=; unset ac_script;}
5023     if test -z "$SED"; then
5024  ac_path_SED_found=false
5025  # Loop through the user's path and test for each of PROGNAME-LIST
5026  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027for as_dir in $PATH
5028do
5029  IFS=$as_save_IFS
5030  case $as_dir in #(((
5031    '') as_dir=./ ;;
5032    */) ;;
5033    *) as_dir=$as_dir/ ;;
5034  esac
5035    for ac_prog in sed gsed
5036   do
5037    for ac_exec_ext in '' $ac_executable_extensions; do
5038      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5039      as_fn_executable_p "$ac_path_SED" || continue
5040# Check for GNU ac_path_SED and select it if it is found.
5041  # Check for GNU $ac_path_SED
5042case `"$ac_path_SED" --version 2>&1` in
5043*GNU*)
5044  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5045*)
5046  ac_count=0
5047  printf %s 0123456789 >"conftest.in"
5048  while :
5049  do
5050    cat "conftest.in" "conftest.in" >"conftest.tmp"
5051    mv "conftest.tmp" "conftest.in"
5052    cp "conftest.in" "conftest.nl"
5053    printf "%s\n" '' >> "conftest.nl"
5054    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5055    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5056    as_fn_arith $ac_count + 1 && ac_count=$as_val
5057    if test $ac_count -gt ${ac_path_SED_max-0}; then
5058      # Best one so far, save it but keep looking for a better one
5059      ac_cv_path_SED="$ac_path_SED"
5060      ac_path_SED_max=$ac_count
5061    fi
5062    # 10*(2^10) chars as input seems more than enough
5063    test $ac_count -gt 10 && break
5064  done
5065  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5066esac
5067
5068      $ac_path_SED_found && break 3
5069    done
5070  done
5071  done
5072IFS=$as_save_IFS
5073  if test -z "$ac_cv_path_SED"; then
5074    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5075  fi
5076else
5077  ac_cv_path_SED=$SED
5078fi
5079
5080fi
5081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5082printf "%s\n" "$ac_cv_path_SED" >&6; }
5083 SED="$ac_cv_path_SED"
5084  rm -f conftest.sed
5085
5086
5087
5088
5089
5090
5091# Check whether --enable-selective-werror was given.
5092if test ${enable_selective_werror+y}
5093then :
5094  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5095else $as_nop
5096  SELECTIVE_WERROR=yes
5097fi
5098
5099
5100
5101
5102
5103# -v is too short to test reliably with XORG_TESTSET_CFLAG
5104if test "x$SUNCC" = "xyes"; then
5105    BASE_CFLAGS="-v"
5106else
5107    BASE_CFLAGS=""
5108fi
5109
5110# This chunk of warnings were those that existed in the legacy CWARNFLAGS
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124xorg_testset_save_CFLAGS="$CFLAGS"
5125
5126if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5127	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5128	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5129printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5130if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5131then :
5132  printf %s "(cached) " >&6
5133else $as_nop
5134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5135/* end confdefs.h.  */
5136int i;
5137_ACEOF
5138if ac_fn_c_try_compile "$LINENO"
5139then :
5140  xorg_cv_cc_flag_unknown_warning_option=yes
5141else $as_nop
5142  xorg_cv_cc_flag_unknown_warning_option=no
5143fi
5144rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5145fi
5146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5147printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5148	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5149	CFLAGS="$xorg_testset_save_CFLAGS"
5150fi
5151
5152if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5153	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5154		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5155	fi
5156	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5157	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5158printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5159if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5160then :
5161  printf %s "(cached) " >&6
5162else $as_nop
5163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5164/* end confdefs.h.  */
5165int i;
5166_ACEOF
5167if ac_fn_c_try_compile "$LINENO"
5168then :
5169  xorg_cv_cc_flag_unused_command_line_argument=yes
5170else $as_nop
5171  xorg_cv_cc_flag_unused_command_line_argument=no
5172fi
5173rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5174fi
5175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5176printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5177	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5178	CFLAGS="$xorg_testset_save_CFLAGS"
5179fi
5180
5181found="no"
5182
5183	if test $found = "no" ; then
5184		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5185			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5186		fi
5187
5188		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5189			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5190		fi
5191
5192		CFLAGS="$CFLAGS -Wall"
5193
5194		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5195printf %s "checking if $CC supports -Wall... " >&6; }
5196		cacheid=xorg_cv_cc_flag__Wall
5197		if eval test \${$cacheid+y}
5198then :
5199  printf %s "(cached) " >&6
5200else $as_nop
5201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5202/* end confdefs.h.  */
5203int i;
5204int
5205main (void)
5206{
5207
5208  ;
5209  return 0;
5210}
5211_ACEOF
5212if ac_fn_c_try_link "$LINENO"
5213then :
5214  eval $cacheid=yes
5215else $as_nop
5216  eval $cacheid=no
5217fi
5218rm -f core conftest.err conftest.$ac_objext conftest.beam \
5219    conftest$ac_exeext conftest.$ac_ext
5220fi
5221
5222
5223		CFLAGS="$xorg_testset_save_CFLAGS"
5224
5225		eval supported=\$$cacheid
5226		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5227printf "%s\n" "$supported" >&6; }
5228		if test "$supported" = "yes" ; then
5229			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5230			found="yes"
5231		fi
5232	fi
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248xorg_testset_save_CFLAGS="$CFLAGS"
5249
5250if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5251	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5252	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5253printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5254if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5255then :
5256  printf %s "(cached) " >&6
5257else $as_nop
5258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5259/* end confdefs.h.  */
5260int i;
5261_ACEOF
5262if ac_fn_c_try_compile "$LINENO"
5263then :
5264  xorg_cv_cc_flag_unknown_warning_option=yes
5265else $as_nop
5266  xorg_cv_cc_flag_unknown_warning_option=no
5267fi
5268rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5269fi
5270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5271printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5272	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5273	CFLAGS="$xorg_testset_save_CFLAGS"
5274fi
5275
5276if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5277	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5278		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5279	fi
5280	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5281	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5282printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5283if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5284then :
5285  printf %s "(cached) " >&6
5286else $as_nop
5287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5288/* end confdefs.h.  */
5289int i;
5290_ACEOF
5291if ac_fn_c_try_compile "$LINENO"
5292then :
5293  xorg_cv_cc_flag_unused_command_line_argument=yes
5294else $as_nop
5295  xorg_cv_cc_flag_unused_command_line_argument=no
5296fi
5297rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5298fi
5299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5300printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5301	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5302	CFLAGS="$xorg_testset_save_CFLAGS"
5303fi
5304
5305found="no"
5306
5307	if test $found = "no" ; then
5308		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5309			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5310		fi
5311
5312		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5313			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5314		fi
5315
5316		CFLAGS="$CFLAGS -Wpointer-arith"
5317
5318		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5319printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5320		cacheid=xorg_cv_cc_flag__Wpointer_arith
5321		if eval test \${$cacheid+y}
5322then :
5323  printf %s "(cached) " >&6
5324else $as_nop
5325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326/* end confdefs.h.  */
5327int i;
5328int
5329main (void)
5330{
5331
5332  ;
5333  return 0;
5334}
5335_ACEOF
5336if ac_fn_c_try_link "$LINENO"
5337then :
5338  eval $cacheid=yes
5339else $as_nop
5340  eval $cacheid=no
5341fi
5342rm -f core conftest.err conftest.$ac_objext conftest.beam \
5343    conftest$ac_exeext conftest.$ac_ext
5344fi
5345
5346
5347		CFLAGS="$xorg_testset_save_CFLAGS"
5348
5349		eval supported=\$$cacheid
5350		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5351printf "%s\n" "$supported" >&6; }
5352		if test "$supported" = "yes" ; then
5353			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5354			found="yes"
5355		fi
5356	fi
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372xorg_testset_save_CFLAGS="$CFLAGS"
5373
5374if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5375	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5376	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5377printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5378if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5379then :
5380  printf %s "(cached) " >&6
5381else $as_nop
5382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383/* end confdefs.h.  */
5384int i;
5385_ACEOF
5386if ac_fn_c_try_compile "$LINENO"
5387then :
5388  xorg_cv_cc_flag_unknown_warning_option=yes
5389else $as_nop
5390  xorg_cv_cc_flag_unknown_warning_option=no
5391fi
5392rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5393fi
5394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5395printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5396	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5397	CFLAGS="$xorg_testset_save_CFLAGS"
5398fi
5399
5400if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5401	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5402		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5403	fi
5404	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5405	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5406printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5407if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5408then :
5409  printf %s "(cached) " >&6
5410else $as_nop
5411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5412/* end confdefs.h.  */
5413int i;
5414_ACEOF
5415if ac_fn_c_try_compile "$LINENO"
5416then :
5417  xorg_cv_cc_flag_unused_command_line_argument=yes
5418else $as_nop
5419  xorg_cv_cc_flag_unused_command_line_argument=no
5420fi
5421rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5422fi
5423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5424printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5425	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5426	CFLAGS="$xorg_testset_save_CFLAGS"
5427fi
5428
5429found="no"
5430
5431	if test $found = "no" ; then
5432		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5433			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5434		fi
5435
5436		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5437			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5438		fi
5439
5440		CFLAGS="$CFLAGS -Wmissing-declarations"
5441
5442		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5443printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5444		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5445		if eval test \${$cacheid+y}
5446then :
5447  printf %s "(cached) " >&6
5448else $as_nop
5449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5450/* end confdefs.h.  */
5451int i;
5452int
5453main (void)
5454{
5455
5456  ;
5457  return 0;
5458}
5459_ACEOF
5460if ac_fn_c_try_link "$LINENO"
5461then :
5462  eval $cacheid=yes
5463else $as_nop
5464  eval $cacheid=no
5465fi
5466rm -f core conftest.err conftest.$ac_objext conftest.beam \
5467    conftest$ac_exeext conftest.$ac_ext
5468fi
5469
5470
5471		CFLAGS="$xorg_testset_save_CFLAGS"
5472
5473		eval supported=\$$cacheid
5474		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5475printf "%s\n" "$supported" >&6; }
5476		if test "$supported" = "yes" ; then
5477			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5478			found="yes"
5479		fi
5480	fi
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496xorg_testset_save_CFLAGS="$CFLAGS"
5497
5498if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5499	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5500	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5501printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5502if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5503then :
5504  printf %s "(cached) " >&6
5505else $as_nop
5506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507/* end confdefs.h.  */
5508int i;
5509_ACEOF
5510if ac_fn_c_try_compile "$LINENO"
5511then :
5512  xorg_cv_cc_flag_unknown_warning_option=yes
5513else $as_nop
5514  xorg_cv_cc_flag_unknown_warning_option=no
5515fi
5516rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5517fi
5518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5519printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5520	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5521	CFLAGS="$xorg_testset_save_CFLAGS"
5522fi
5523
5524if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5525	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5526		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5527	fi
5528	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5529	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5530printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5531if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5532then :
5533  printf %s "(cached) " >&6
5534else $as_nop
5535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5536/* end confdefs.h.  */
5537int i;
5538_ACEOF
5539if ac_fn_c_try_compile "$LINENO"
5540then :
5541  xorg_cv_cc_flag_unused_command_line_argument=yes
5542else $as_nop
5543  xorg_cv_cc_flag_unused_command_line_argument=no
5544fi
5545rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5546fi
5547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5548printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5549	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5550	CFLAGS="$xorg_testset_save_CFLAGS"
5551fi
5552
5553found="no"
5554
5555	if test $found = "no" ; then
5556		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5557			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5558		fi
5559
5560		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5561			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5562		fi
5563
5564		CFLAGS="$CFLAGS -Wformat=2"
5565
5566		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5567printf %s "checking if $CC supports -Wformat=2... " >&6; }
5568		cacheid=xorg_cv_cc_flag__Wformat_2
5569		if eval test \${$cacheid+y}
5570then :
5571  printf %s "(cached) " >&6
5572else $as_nop
5573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574/* end confdefs.h.  */
5575int i;
5576int
5577main (void)
5578{
5579
5580  ;
5581  return 0;
5582}
5583_ACEOF
5584if ac_fn_c_try_link "$LINENO"
5585then :
5586  eval $cacheid=yes
5587else $as_nop
5588  eval $cacheid=no
5589fi
5590rm -f core conftest.err conftest.$ac_objext conftest.beam \
5591    conftest$ac_exeext conftest.$ac_ext
5592fi
5593
5594
5595		CFLAGS="$xorg_testset_save_CFLAGS"
5596
5597		eval supported=\$$cacheid
5598		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5599printf "%s\n" "$supported" >&6; }
5600		if test "$supported" = "yes" ; then
5601			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5602			found="yes"
5603		fi
5604	fi
5605
5606	if test $found = "no" ; then
5607		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5608			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5609		fi
5610
5611		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5612			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5613		fi
5614
5615		CFLAGS="$CFLAGS -Wformat"
5616
5617		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5618printf %s "checking if $CC supports -Wformat... " >&6; }
5619		cacheid=xorg_cv_cc_flag__Wformat
5620		if eval test \${$cacheid+y}
5621then :
5622  printf %s "(cached) " >&6
5623else $as_nop
5624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625/* end confdefs.h.  */
5626int i;
5627int
5628main (void)
5629{
5630
5631  ;
5632  return 0;
5633}
5634_ACEOF
5635if ac_fn_c_try_link "$LINENO"
5636then :
5637  eval $cacheid=yes
5638else $as_nop
5639  eval $cacheid=no
5640fi
5641rm -f core conftest.err conftest.$ac_objext conftest.beam \
5642    conftest$ac_exeext conftest.$ac_ext
5643fi
5644
5645
5646		CFLAGS="$xorg_testset_save_CFLAGS"
5647
5648		eval supported=\$$cacheid
5649		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5650printf "%s\n" "$supported" >&6; }
5651		if test "$supported" = "yes" ; then
5652			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5653			found="yes"
5654		fi
5655	fi
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673xorg_testset_save_CFLAGS="$CFLAGS"
5674
5675if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5676	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5677	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5678printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5679if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5680then :
5681  printf %s "(cached) " >&6
5682else $as_nop
5683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5684/* end confdefs.h.  */
5685int i;
5686_ACEOF
5687if ac_fn_c_try_compile "$LINENO"
5688then :
5689  xorg_cv_cc_flag_unknown_warning_option=yes
5690else $as_nop
5691  xorg_cv_cc_flag_unknown_warning_option=no
5692fi
5693rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5694fi
5695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5696printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5697	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5698	CFLAGS="$xorg_testset_save_CFLAGS"
5699fi
5700
5701if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5702	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5703		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5704	fi
5705	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5706	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5707printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5708if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5709then :
5710  printf %s "(cached) " >&6
5711else $as_nop
5712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5713/* end confdefs.h.  */
5714int i;
5715_ACEOF
5716if ac_fn_c_try_compile "$LINENO"
5717then :
5718  xorg_cv_cc_flag_unused_command_line_argument=yes
5719else $as_nop
5720  xorg_cv_cc_flag_unused_command_line_argument=no
5721fi
5722rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5723fi
5724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5725printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5726	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5727	CFLAGS="$xorg_testset_save_CFLAGS"
5728fi
5729
5730found="no"
5731
5732	if test $found = "no" ; then
5733		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5734			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5735		fi
5736
5737		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5738			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5739		fi
5740
5741		CFLAGS="$CFLAGS -Wstrict-prototypes"
5742
5743		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5744printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5745		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5746		if eval test \${$cacheid+y}
5747then :
5748  printf %s "(cached) " >&6
5749else $as_nop
5750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5751/* end confdefs.h.  */
5752int i;
5753int
5754main (void)
5755{
5756
5757  ;
5758  return 0;
5759}
5760_ACEOF
5761if ac_fn_c_try_link "$LINENO"
5762then :
5763  eval $cacheid=yes
5764else $as_nop
5765  eval $cacheid=no
5766fi
5767rm -f core conftest.err conftest.$ac_objext conftest.beam \
5768    conftest$ac_exeext conftest.$ac_ext
5769fi
5770
5771
5772		CFLAGS="$xorg_testset_save_CFLAGS"
5773
5774		eval supported=\$$cacheid
5775		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5776printf "%s\n" "$supported" >&6; }
5777		if test "$supported" = "yes" ; then
5778			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5779			found="yes"
5780		fi
5781	fi
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797xorg_testset_save_CFLAGS="$CFLAGS"
5798
5799if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5800	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5801	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5802printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5803if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5804then :
5805  printf %s "(cached) " >&6
5806else $as_nop
5807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5808/* end confdefs.h.  */
5809int i;
5810_ACEOF
5811if ac_fn_c_try_compile "$LINENO"
5812then :
5813  xorg_cv_cc_flag_unknown_warning_option=yes
5814else $as_nop
5815  xorg_cv_cc_flag_unknown_warning_option=no
5816fi
5817rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5818fi
5819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5820printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5821	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5822	CFLAGS="$xorg_testset_save_CFLAGS"
5823fi
5824
5825if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5826	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5827		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5828	fi
5829	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5830	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5831printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5832if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5833then :
5834  printf %s "(cached) " >&6
5835else $as_nop
5836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5837/* end confdefs.h.  */
5838int i;
5839_ACEOF
5840if ac_fn_c_try_compile "$LINENO"
5841then :
5842  xorg_cv_cc_flag_unused_command_line_argument=yes
5843else $as_nop
5844  xorg_cv_cc_flag_unused_command_line_argument=no
5845fi
5846rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5847fi
5848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5849printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5850	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5851	CFLAGS="$xorg_testset_save_CFLAGS"
5852fi
5853
5854found="no"
5855
5856	if test $found = "no" ; then
5857		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5858			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5859		fi
5860
5861		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5862			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5863		fi
5864
5865		CFLAGS="$CFLAGS -Wmissing-prototypes"
5866
5867		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5868printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5869		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5870		if eval test \${$cacheid+y}
5871then :
5872  printf %s "(cached) " >&6
5873else $as_nop
5874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875/* end confdefs.h.  */
5876int i;
5877int
5878main (void)
5879{
5880
5881  ;
5882  return 0;
5883}
5884_ACEOF
5885if ac_fn_c_try_link "$LINENO"
5886then :
5887  eval $cacheid=yes
5888else $as_nop
5889  eval $cacheid=no
5890fi
5891rm -f core conftest.err conftest.$ac_objext conftest.beam \
5892    conftest$ac_exeext conftest.$ac_ext
5893fi
5894
5895
5896		CFLAGS="$xorg_testset_save_CFLAGS"
5897
5898		eval supported=\$$cacheid
5899		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5900printf "%s\n" "$supported" >&6; }
5901		if test "$supported" = "yes" ; then
5902			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5903			found="yes"
5904		fi
5905	fi
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921xorg_testset_save_CFLAGS="$CFLAGS"
5922
5923if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5924	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5925	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5926printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5927if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5928then :
5929  printf %s "(cached) " >&6
5930else $as_nop
5931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5932/* end confdefs.h.  */
5933int i;
5934_ACEOF
5935if ac_fn_c_try_compile "$LINENO"
5936then :
5937  xorg_cv_cc_flag_unknown_warning_option=yes
5938else $as_nop
5939  xorg_cv_cc_flag_unknown_warning_option=no
5940fi
5941rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5942fi
5943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5944printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5945	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5946	CFLAGS="$xorg_testset_save_CFLAGS"
5947fi
5948
5949if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5950	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5951		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5952	fi
5953	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5954	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5955printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5956if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5957then :
5958  printf %s "(cached) " >&6
5959else $as_nop
5960  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5961/* end confdefs.h.  */
5962int i;
5963_ACEOF
5964if ac_fn_c_try_compile "$LINENO"
5965then :
5966  xorg_cv_cc_flag_unused_command_line_argument=yes
5967else $as_nop
5968  xorg_cv_cc_flag_unused_command_line_argument=no
5969fi
5970rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5971fi
5972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5973printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5974	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5975	CFLAGS="$xorg_testset_save_CFLAGS"
5976fi
5977
5978found="no"
5979
5980	if test $found = "no" ; then
5981		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5982			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5983		fi
5984
5985		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5986			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5987		fi
5988
5989		CFLAGS="$CFLAGS -Wnested-externs"
5990
5991		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5992printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5993		cacheid=xorg_cv_cc_flag__Wnested_externs
5994		if eval test \${$cacheid+y}
5995then :
5996  printf %s "(cached) " >&6
5997else $as_nop
5998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5999/* end confdefs.h.  */
6000int i;
6001int
6002main (void)
6003{
6004
6005  ;
6006  return 0;
6007}
6008_ACEOF
6009if ac_fn_c_try_link "$LINENO"
6010then :
6011  eval $cacheid=yes
6012else $as_nop
6013  eval $cacheid=no
6014fi
6015rm -f core conftest.err conftest.$ac_objext conftest.beam \
6016    conftest$ac_exeext conftest.$ac_ext
6017fi
6018
6019
6020		CFLAGS="$xorg_testset_save_CFLAGS"
6021
6022		eval supported=\$$cacheid
6023		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6024printf "%s\n" "$supported" >&6; }
6025		if test "$supported" = "yes" ; then
6026			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
6027			found="yes"
6028		fi
6029	fi
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045xorg_testset_save_CFLAGS="$CFLAGS"
6046
6047if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6048	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6049	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6050printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6051if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6052then :
6053  printf %s "(cached) " >&6
6054else $as_nop
6055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6056/* end confdefs.h.  */
6057int i;
6058_ACEOF
6059if ac_fn_c_try_compile "$LINENO"
6060then :
6061  xorg_cv_cc_flag_unknown_warning_option=yes
6062else $as_nop
6063  xorg_cv_cc_flag_unknown_warning_option=no
6064fi
6065rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6066fi
6067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6068printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6069	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6070	CFLAGS="$xorg_testset_save_CFLAGS"
6071fi
6072
6073if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6074	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6075		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6076	fi
6077	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6078	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6079printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6080if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6081then :
6082  printf %s "(cached) " >&6
6083else $as_nop
6084  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6085/* end confdefs.h.  */
6086int i;
6087_ACEOF
6088if ac_fn_c_try_compile "$LINENO"
6089then :
6090  xorg_cv_cc_flag_unused_command_line_argument=yes
6091else $as_nop
6092  xorg_cv_cc_flag_unused_command_line_argument=no
6093fi
6094rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6095fi
6096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6097printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6098	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6099	CFLAGS="$xorg_testset_save_CFLAGS"
6100fi
6101
6102found="no"
6103
6104	if test $found = "no" ; then
6105		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6106			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6107		fi
6108
6109		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6110			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6111		fi
6112
6113		CFLAGS="$CFLAGS -Wbad-function-cast"
6114
6115		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6116printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6117		cacheid=xorg_cv_cc_flag__Wbad_function_cast
6118		if eval test \${$cacheid+y}
6119then :
6120  printf %s "(cached) " >&6
6121else $as_nop
6122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6123/* end confdefs.h.  */
6124int i;
6125int
6126main (void)
6127{
6128
6129  ;
6130  return 0;
6131}
6132_ACEOF
6133if ac_fn_c_try_link "$LINENO"
6134then :
6135  eval $cacheid=yes
6136else $as_nop
6137  eval $cacheid=no
6138fi
6139rm -f core conftest.err conftest.$ac_objext conftest.beam \
6140    conftest$ac_exeext conftest.$ac_ext
6141fi
6142
6143
6144		CFLAGS="$xorg_testset_save_CFLAGS"
6145
6146		eval supported=\$$cacheid
6147		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6148printf "%s\n" "$supported" >&6; }
6149		if test "$supported" = "yes" ; then
6150			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6151			found="yes"
6152		fi
6153	fi
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169xorg_testset_save_CFLAGS="$CFLAGS"
6170
6171if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6172	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6173	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6174printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6175if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6176then :
6177  printf %s "(cached) " >&6
6178else $as_nop
6179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6180/* end confdefs.h.  */
6181int i;
6182_ACEOF
6183if ac_fn_c_try_compile "$LINENO"
6184then :
6185  xorg_cv_cc_flag_unknown_warning_option=yes
6186else $as_nop
6187  xorg_cv_cc_flag_unknown_warning_option=no
6188fi
6189rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6190fi
6191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6192printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6193	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6194	CFLAGS="$xorg_testset_save_CFLAGS"
6195fi
6196
6197if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6198	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6199		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6200	fi
6201	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6202	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6203printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6204if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6205then :
6206  printf %s "(cached) " >&6
6207else $as_nop
6208  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6209/* end confdefs.h.  */
6210int i;
6211_ACEOF
6212if ac_fn_c_try_compile "$LINENO"
6213then :
6214  xorg_cv_cc_flag_unused_command_line_argument=yes
6215else $as_nop
6216  xorg_cv_cc_flag_unused_command_line_argument=no
6217fi
6218rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6219fi
6220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6221printf "%s\n" "$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 -Wold-style-definition"
6238
6239		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6240printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6241		cacheid=xorg_cv_cc_flag__Wold_style_definition
6242		if eval test \${$cacheid+y}
6243then :
6244  printf %s "(cached) " >&6
6245else $as_nop
6246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6247/* end confdefs.h.  */
6248int i;
6249int
6250main (void)
6251{
6252
6253  ;
6254  return 0;
6255}
6256_ACEOF
6257if ac_fn_c_try_link "$LINENO"
6258then :
6259  eval $cacheid=yes
6260else $as_nop
6261  eval $cacheid=no
6262fi
6263rm -f core conftest.err conftest.$ac_objext conftest.beam \
6264    conftest$ac_exeext conftest.$ac_ext
6265fi
6266
6267
6268		CFLAGS="$xorg_testset_save_CFLAGS"
6269
6270		eval supported=\$$cacheid
6271		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6272printf "%s\n" "$supported" >&6; }
6273		if test "$supported" = "yes" ; then
6274			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6275			found="yes"
6276		fi
6277	fi
6278
6279	if test $found = "no" ; then
6280		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6281			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6282		fi
6283
6284		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6285			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6286		fi
6287
6288		CFLAGS="$CFLAGS -fd"
6289
6290		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6291printf %s "checking if $CC supports -fd... " >&6; }
6292		cacheid=xorg_cv_cc_flag__fd
6293		if eval test \${$cacheid+y}
6294then :
6295  printf %s "(cached) " >&6
6296else $as_nop
6297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6298/* end confdefs.h.  */
6299int i;
6300int
6301main (void)
6302{
6303
6304  ;
6305  return 0;
6306}
6307_ACEOF
6308if ac_fn_c_try_link "$LINENO"
6309then :
6310  eval $cacheid=yes
6311else $as_nop
6312  eval $cacheid=no
6313fi
6314rm -f core conftest.err conftest.$ac_objext conftest.beam \
6315    conftest$ac_exeext conftest.$ac_ext
6316fi
6317
6318
6319		CFLAGS="$xorg_testset_save_CFLAGS"
6320
6321		eval supported=\$$cacheid
6322		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6323printf "%s\n" "$supported" >&6; }
6324		if test "$supported" = "yes" ; then
6325			BASE_CFLAGS="$BASE_CFLAGS -fd"
6326			found="yes"
6327		fi
6328	fi
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344xorg_testset_save_CFLAGS="$CFLAGS"
6345
6346if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6347	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6348	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6349printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6350if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6351then :
6352  printf %s "(cached) " >&6
6353else $as_nop
6354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6355/* end confdefs.h.  */
6356int i;
6357_ACEOF
6358if ac_fn_c_try_compile "$LINENO"
6359then :
6360  xorg_cv_cc_flag_unknown_warning_option=yes
6361else $as_nop
6362  xorg_cv_cc_flag_unknown_warning_option=no
6363fi
6364rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6365fi
6366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6367printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6368	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6369	CFLAGS="$xorg_testset_save_CFLAGS"
6370fi
6371
6372if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6373	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6374		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6375	fi
6376	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6377	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6378printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6379if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6380then :
6381  printf %s "(cached) " >&6
6382else $as_nop
6383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6384/* end confdefs.h.  */
6385int i;
6386_ACEOF
6387if ac_fn_c_try_compile "$LINENO"
6388then :
6389  xorg_cv_cc_flag_unused_command_line_argument=yes
6390else $as_nop
6391  xorg_cv_cc_flag_unused_command_line_argument=no
6392fi
6393rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6394fi
6395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6396printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6397	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6398	CFLAGS="$xorg_testset_save_CFLAGS"
6399fi
6400
6401found="no"
6402
6403	if test $found = "no" ; then
6404		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6405			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6406		fi
6407
6408		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6409			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6410		fi
6411
6412		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6413
6414		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6415printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6416		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6417		if eval test \${$cacheid+y}
6418then :
6419  printf %s "(cached) " >&6
6420else $as_nop
6421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422/* end confdefs.h.  */
6423int i;
6424int
6425main (void)
6426{
6427
6428  ;
6429  return 0;
6430}
6431_ACEOF
6432if ac_fn_c_try_link "$LINENO"
6433then :
6434  eval $cacheid=yes
6435else $as_nop
6436  eval $cacheid=no
6437fi
6438rm -f core conftest.err conftest.$ac_objext conftest.beam \
6439    conftest$ac_exeext conftest.$ac_ext
6440fi
6441
6442
6443		CFLAGS="$xorg_testset_save_CFLAGS"
6444
6445		eval supported=\$$cacheid
6446		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6447printf "%s\n" "$supported" >&6; }
6448		if test "$supported" = "yes" ; then
6449			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6450			found="yes"
6451		fi
6452	fi
6453
6454
6455
6456
6457
6458# This chunk adds additional warnings that could catch undesired effects.
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472xorg_testset_save_CFLAGS="$CFLAGS"
6473
6474if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6475	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6476	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6477printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6478if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6479then :
6480  printf %s "(cached) " >&6
6481else $as_nop
6482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6483/* end confdefs.h.  */
6484int i;
6485_ACEOF
6486if ac_fn_c_try_compile "$LINENO"
6487then :
6488  xorg_cv_cc_flag_unknown_warning_option=yes
6489else $as_nop
6490  xorg_cv_cc_flag_unknown_warning_option=no
6491fi
6492rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6493fi
6494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6495printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6496	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6497	CFLAGS="$xorg_testset_save_CFLAGS"
6498fi
6499
6500if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6501	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6502		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6503	fi
6504	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6505	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6506printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6507if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6508then :
6509  printf %s "(cached) " >&6
6510else $as_nop
6511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6512/* end confdefs.h.  */
6513int i;
6514_ACEOF
6515if ac_fn_c_try_compile "$LINENO"
6516then :
6517  xorg_cv_cc_flag_unused_command_line_argument=yes
6518else $as_nop
6519  xorg_cv_cc_flag_unused_command_line_argument=no
6520fi
6521rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6522fi
6523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6524printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6525	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6526	CFLAGS="$xorg_testset_save_CFLAGS"
6527fi
6528
6529found="no"
6530
6531	if test $found = "no" ; then
6532		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6533			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6534		fi
6535
6536		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6537			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6538		fi
6539
6540		CFLAGS="$CFLAGS -Wunused"
6541
6542		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6543printf %s "checking if $CC supports -Wunused... " >&6; }
6544		cacheid=xorg_cv_cc_flag__Wunused
6545		if eval test \${$cacheid+y}
6546then :
6547  printf %s "(cached) " >&6
6548else $as_nop
6549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6550/* end confdefs.h.  */
6551int i;
6552int
6553main (void)
6554{
6555
6556  ;
6557  return 0;
6558}
6559_ACEOF
6560if ac_fn_c_try_link "$LINENO"
6561then :
6562  eval $cacheid=yes
6563else $as_nop
6564  eval $cacheid=no
6565fi
6566rm -f core conftest.err conftest.$ac_objext conftest.beam \
6567    conftest$ac_exeext conftest.$ac_ext
6568fi
6569
6570
6571		CFLAGS="$xorg_testset_save_CFLAGS"
6572
6573		eval supported=\$$cacheid
6574		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6575printf "%s\n" "$supported" >&6; }
6576		if test "$supported" = "yes" ; then
6577			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6578			found="yes"
6579		fi
6580	fi
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596xorg_testset_save_CFLAGS="$CFLAGS"
6597
6598if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6599	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6600	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6601printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6602if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6603then :
6604  printf %s "(cached) " >&6
6605else $as_nop
6606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6607/* end confdefs.h.  */
6608int i;
6609_ACEOF
6610if ac_fn_c_try_compile "$LINENO"
6611then :
6612  xorg_cv_cc_flag_unknown_warning_option=yes
6613else $as_nop
6614  xorg_cv_cc_flag_unknown_warning_option=no
6615fi
6616rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6617fi
6618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6619printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6620	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6621	CFLAGS="$xorg_testset_save_CFLAGS"
6622fi
6623
6624if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6625	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6626		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6627	fi
6628	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6629	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6630printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6631if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6632then :
6633  printf %s "(cached) " >&6
6634else $as_nop
6635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6636/* end confdefs.h.  */
6637int i;
6638_ACEOF
6639if ac_fn_c_try_compile "$LINENO"
6640then :
6641  xorg_cv_cc_flag_unused_command_line_argument=yes
6642else $as_nop
6643  xorg_cv_cc_flag_unused_command_line_argument=no
6644fi
6645rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6646fi
6647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6648printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6649	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6650	CFLAGS="$xorg_testset_save_CFLAGS"
6651fi
6652
6653found="no"
6654
6655	if test $found = "no" ; then
6656		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6657			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6658		fi
6659
6660		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6661			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6662		fi
6663
6664		CFLAGS="$CFLAGS -Wuninitialized"
6665
6666		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6667printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6668		cacheid=xorg_cv_cc_flag__Wuninitialized
6669		if eval test \${$cacheid+y}
6670then :
6671  printf %s "(cached) " >&6
6672else $as_nop
6673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6674/* end confdefs.h.  */
6675int i;
6676int
6677main (void)
6678{
6679
6680  ;
6681  return 0;
6682}
6683_ACEOF
6684if ac_fn_c_try_link "$LINENO"
6685then :
6686  eval $cacheid=yes
6687else $as_nop
6688  eval $cacheid=no
6689fi
6690rm -f core conftest.err conftest.$ac_objext conftest.beam \
6691    conftest$ac_exeext conftest.$ac_ext
6692fi
6693
6694
6695		CFLAGS="$xorg_testset_save_CFLAGS"
6696
6697		eval supported=\$$cacheid
6698		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6699printf "%s\n" "$supported" >&6; }
6700		if test "$supported" = "yes" ; then
6701			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6702			found="yes"
6703		fi
6704	fi
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720xorg_testset_save_CFLAGS="$CFLAGS"
6721
6722if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6723	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6724	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6725printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6726if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6727then :
6728  printf %s "(cached) " >&6
6729else $as_nop
6730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6731/* end confdefs.h.  */
6732int i;
6733_ACEOF
6734if ac_fn_c_try_compile "$LINENO"
6735then :
6736  xorg_cv_cc_flag_unknown_warning_option=yes
6737else $as_nop
6738  xorg_cv_cc_flag_unknown_warning_option=no
6739fi
6740rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6741fi
6742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6743printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6744	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6745	CFLAGS="$xorg_testset_save_CFLAGS"
6746fi
6747
6748if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6749	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6750		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6751	fi
6752	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6753	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6754printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6755if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6756then :
6757  printf %s "(cached) " >&6
6758else $as_nop
6759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6760/* end confdefs.h.  */
6761int i;
6762_ACEOF
6763if ac_fn_c_try_compile "$LINENO"
6764then :
6765  xorg_cv_cc_flag_unused_command_line_argument=yes
6766else $as_nop
6767  xorg_cv_cc_flag_unused_command_line_argument=no
6768fi
6769rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6770fi
6771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6772printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6773	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6774	CFLAGS="$xorg_testset_save_CFLAGS"
6775fi
6776
6777found="no"
6778
6779	if test $found = "no" ; then
6780		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6781			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6782		fi
6783
6784		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6785			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6786		fi
6787
6788		CFLAGS="$CFLAGS -Wshadow"
6789
6790		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6791printf %s "checking if $CC supports -Wshadow... " >&6; }
6792		cacheid=xorg_cv_cc_flag__Wshadow
6793		if eval test \${$cacheid+y}
6794then :
6795  printf %s "(cached) " >&6
6796else $as_nop
6797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6798/* end confdefs.h.  */
6799int i;
6800int
6801main (void)
6802{
6803
6804  ;
6805  return 0;
6806}
6807_ACEOF
6808if ac_fn_c_try_link "$LINENO"
6809then :
6810  eval $cacheid=yes
6811else $as_nop
6812  eval $cacheid=no
6813fi
6814rm -f core conftest.err conftest.$ac_objext conftest.beam \
6815    conftest$ac_exeext conftest.$ac_ext
6816fi
6817
6818
6819		CFLAGS="$xorg_testset_save_CFLAGS"
6820
6821		eval supported=\$$cacheid
6822		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6823printf "%s\n" "$supported" >&6; }
6824		if test "$supported" = "yes" ; then
6825			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6826			found="yes"
6827		fi
6828	fi
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844xorg_testset_save_CFLAGS="$CFLAGS"
6845
6846if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6847	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6848	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6849printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6850if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6851then :
6852  printf %s "(cached) " >&6
6853else $as_nop
6854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6855/* end confdefs.h.  */
6856int i;
6857_ACEOF
6858if ac_fn_c_try_compile "$LINENO"
6859then :
6860  xorg_cv_cc_flag_unknown_warning_option=yes
6861else $as_nop
6862  xorg_cv_cc_flag_unknown_warning_option=no
6863fi
6864rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6865fi
6866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6867printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6868	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6869	CFLAGS="$xorg_testset_save_CFLAGS"
6870fi
6871
6872if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6873	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6874		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6875	fi
6876	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6877	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6878printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6879if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6880then :
6881  printf %s "(cached) " >&6
6882else $as_nop
6883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884/* end confdefs.h.  */
6885int i;
6886_ACEOF
6887if ac_fn_c_try_compile "$LINENO"
6888then :
6889  xorg_cv_cc_flag_unused_command_line_argument=yes
6890else $as_nop
6891  xorg_cv_cc_flag_unused_command_line_argument=no
6892fi
6893rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6894fi
6895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6896printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6897	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6898	CFLAGS="$xorg_testset_save_CFLAGS"
6899fi
6900
6901found="no"
6902
6903	if test $found = "no" ; then
6904		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6905			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6906		fi
6907
6908		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6909			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6910		fi
6911
6912		CFLAGS="$CFLAGS -Wmissing-noreturn"
6913
6914		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6915printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6916		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6917		if eval test \${$cacheid+y}
6918then :
6919  printf %s "(cached) " >&6
6920else $as_nop
6921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6922/* end confdefs.h.  */
6923int i;
6924int
6925main (void)
6926{
6927
6928  ;
6929  return 0;
6930}
6931_ACEOF
6932if ac_fn_c_try_link "$LINENO"
6933then :
6934  eval $cacheid=yes
6935else $as_nop
6936  eval $cacheid=no
6937fi
6938rm -f core conftest.err conftest.$ac_objext conftest.beam \
6939    conftest$ac_exeext conftest.$ac_ext
6940fi
6941
6942
6943		CFLAGS="$xorg_testset_save_CFLAGS"
6944
6945		eval supported=\$$cacheid
6946		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6947printf "%s\n" "$supported" >&6; }
6948		if test "$supported" = "yes" ; then
6949			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6950			found="yes"
6951		fi
6952	fi
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968xorg_testset_save_CFLAGS="$CFLAGS"
6969
6970if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6971	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6972	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6973printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6974if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6975then :
6976  printf %s "(cached) " >&6
6977else $as_nop
6978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6979/* end confdefs.h.  */
6980int i;
6981_ACEOF
6982if ac_fn_c_try_compile "$LINENO"
6983then :
6984  xorg_cv_cc_flag_unknown_warning_option=yes
6985else $as_nop
6986  xorg_cv_cc_flag_unknown_warning_option=no
6987fi
6988rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6989fi
6990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6991printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6992	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6993	CFLAGS="$xorg_testset_save_CFLAGS"
6994fi
6995
6996if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6997	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6998		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6999	fi
7000	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7001	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7002printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7003if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7004then :
7005  printf %s "(cached) " >&6
7006else $as_nop
7007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7008/* end confdefs.h.  */
7009int i;
7010_ACEOF
7011if ac_fn_c_try_compile "$LINENO"
7012then :
7013  xorg_cv_cc_flag_unused_command_line_argument=yes
7014else $as_nop
7015  xorg_cv_cc_flag_unused_command_line_argument=no
7016fi
7017rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7018fi
7019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7020printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7021	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7022	CFLAGS="$xorg_testset_save_CFLAGS"
7023fi
7024
7025found="no"
7026
7027	if test $found = "no" ; then
7028		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7029			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7030		fi
7031
7032		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7033			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7034		fi
7035
7036		CFLAGS="$CFLAGS -Wmissing-format-attribute"
7037
7038		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
7039printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
7040		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
7041		if eval test \${$cacheid+y}
7042then :
7043  printf %s "(cached) " >&6
7044else $as_nop
7045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7046/* end confdefs.h.  */
7047int i;
7048int
7049main (void)
7050{
7051
7052  ;
7053  return 0;
7054}
7055_ACEOF
7056if ac_fn_c_try_link "$LINENO"
7057then :
7058  eval $cacheid=yes
7059else $as_nop
7060  eval $cacheid=no
7061fi
7062rm -f core conftest.err conftest.$ac_objext conftest.beam \
7063    conftest$ac_exeext conftest.$ac_ext
7064fi
7065
7066
7067		CFLAGS="$xorg_testset_save_CFLAGS"
7068
7069		eval supported=\$$cacheid
7070		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7071printf "%s\n" "$supported" >&6; }
7072		if test "$supported" = "yes" ; then
7073			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7074			found="yes"
7075		fi
7076	fi
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092xorg_testset_save_CFLAGS="$CFLAGS"
7093
7094if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7095	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7096	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7097printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7098if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7099then :
7100  printf %s "(cached) " >&6
7101else $as_nop
7102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7103/* end confdefs.h.  */
7104int i;
7105_ACEOF
7106if ac_fn_c_try_compile "$LINENO"
7107then :
7108  xorg_cv_cc_flag_unknown_warning_option=yes
7109else $as_nop
7110  xorg_cv_cc_flag_unknown_warning_option=no
7111fi
7112rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7113fi
7114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7115printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7116	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7117	CFLAGS="$xorg_testset_save_CFLAGS"
7118fi
7119
7120if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7121	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7122		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7123	fi
7124	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7125	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7126printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7127if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7128then :
7129  printf %s "(cached) " >&6
7130else $as_nop
7131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7132/* end confdefs.h.  */
7133int i;
7134_ACEOF
7135if ac_fn_c_try_compile "$LINENO"
7136then :
7137  xorg_cv_cc_flag_unused_command_line_argument=yes
7138else $as_nop
7139  xorg_cv_cc_flag_unused_command_line_argument=no
7140fi
7141rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7142fi
7143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7144printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7145	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7146	CFLAGS="$xorg_testset_save_CFLAGS"
7147fi
7148
7149found="no"
7150
7151	if test $found = "no" ; then
7152		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7153			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7154		fi
7155
7156		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7157			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7158		fi
7159
7160		CFLAGS="$CFLAGS -Wredundant-decls"
7161
7162		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7163printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7164		cacheid=xorg_cv_cc_flag__Wredundant_decls
7165		if eval test \${$cacheid+y}
7166then :
7167  printf %s "(cached) " >&6
7168else $as_nop
7169  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7170/* end confdefs.h.  */
7171int i;
7172int
7173main (void)
7174{
7175
7176  ;
7177  return 0;
7178}
7179_ACEOF
7180if ac_fn_c_try_link "$LINENO"
7181then :
7182  eval $cacheid=yes
7183else $as_nop
7184  eval $cacheid=no
7185fi
7186rm -f core conftest.err conftest.$ac_objext conftest.beam \
7187    conftest$ac_exeext conftest.$ac_ext
7188fi
7189
7190
7191		CFLAGS="$xorg_testset_save_CFLAGS"
7192
7193		eval supported=\$$cacheid
7194		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7195printf "%s\n" "$supported" >&6; }
7196		if test "$supported" = "yes" ; then
7197			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7198			found="yes"
7199		fi
7200	fi
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216xorg_testset_save_CFLAGS="$CFLAGS"
7217
7218if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7219	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7220	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7221printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7222if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7223then :
7224  printf %s "(cached) " >&6
7225else $as_nop
7226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7227/* end confdefs.h.  */
7228int i;
7229_ACEOF
7230if ac_fn_c_try_compile "$LINENO"
7231then :
7232  xorg_cv_cc_flag_unknown_warning_option=yes
7233else $as_nop
7234  xorg_cv_cc_flag_unknown_warning_option=no
7235fi
7236rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7237fi
7238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7239printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7240	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7241	CFLAGS="$xorg_testset_save_CFLAGS"
7242fi
7243
7244if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7245	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7246		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7247	fi
7248	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7249	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7250printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7251if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7252then :
7253  printf %s "(cached) " >&6
7254else $as_nop
7255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7256/* end confdefs.h.  */
7257int i;
7258_ACEOF
7259if ac_fn_c_try_compile "$LINENO"
7260then :
7261  xorg_cv_cc_flag_unused_command_line_argument=yes
7262else $as_nop
7263  xorg_cv_cc_flag_unused_command_line_argument=no
7264fi
7265rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7266fi
7267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7268printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7269	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7270	CFLAGS="$xorg_testset_save_CFLAGS"
7271fi
7272
7273found="no"
7274
7275	if test $found = "no" ; then
7276		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7277			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7278		fi
7279
7280		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7281			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7282		fi
7283
7284		CFLAGS="$CFLAGS -Wlogical-op"
7285
7286		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7287printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7288		cacheid=xorg_cv_cc_flag__Wlogical_op
7289		if eval test \${$cacheid+y}
7290then :
7291  printf %s "(cached) " >&6
7292else $as_nop
7293  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7294/* end confdefs.h.  */
7295int i;
7296int
7297main (void)
7298{
7299
7300  ;
7301  return 0;
7302}
7303_ACEOF
7304if ac_fn_c_try_link "$LINENO"
7305then :
7306  eval $cacheid=yes
7307else $as_nop
7308  eval $cacheid=no
7309fi
7310rm -f core conftest.err conftest.$ac_objext conftest.beam \
7311    conftest$ac_exeext conftest.$ac_ext
7312fi
7313
7314
7315		CFLAGS="$xorg_testset_save_CFLAGS"
7316
7317		eval supported=\$$cacheid
7318		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7319printf "%s\n" "$supported" >&6; }
7320		if test "$supported" = "yes" ; then
7321			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7322			found="yes"
7323		fi
7324	fi
7325
7326
7327
7328# These are currently disabled because they are noisy.  They will be enabled
7329# in the future once the codebase is sufficiently modernized to silence
7330# them.  For now, I don't want them to drown out the other warnings.
7331# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7332# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7333# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7334
7335# Turn some warnings into errors, so we don't accidentally get successful builds
7336# when there are problems that should be fixed.
7337
7338if test "x$SELECTIVE_WERROR" = "xyes" ; then
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352xorg_testset_save_CFLAGS="$CFLAGS"
7353
7354if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7355	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7356	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7357printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7358if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7359then :
7360  printf %s "(cached) " >&6
7361else $as_nop
7362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7363/* end confdefs.h.  */
7364int i;
7365_ACEOF
7366if ac_fn_c_try_compile "$LINENO"
7367then :
7368  xorg_cv_cc_flag_unknown_warning_option=yes
7369else $as_nop
7370  xorg_cv_cc_flag_unknown_warning_option=no
7371fi
7372rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7373fi
7374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7375printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7376	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7377	CFLAGS="$xorg_testset_save_CFLAGS"
7378fi
7379
7380if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7381	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7382		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7383	fi
7384	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7385	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7386printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7387if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7388then :
7389  printf %s "(cached) " >&6
7390else $as_nop
7391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7392/* end confdefs.h.  */
7393int i;
7394_ACEOF
7395if ac_fn_c_try_compile "$LINENO"
7396then :
7397  xorg_cv_cc_flag_unused_command_line_argument=yes
7398else $as_nop
7399  xorg_cv_cc_flag_unused_command_line_argument=no
7400fi
7401rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7402fi
7403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7404printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7405	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7406	CFLAGS="$xorg_testset_save_CFLAGS"
7407fi
7408
7409found="no"
7410
7411	if test $found = "no" ; then
7412		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7413			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7414		fi
7415
7416		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7417			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7418		fi
7419
7420		CFLAGS="$CFLAGS -Werror=implicit"
7421
7422		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7423printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7424		cacheid=xorg_cv_cc_flag__Werror_implicit
7425		if eval test \${$cacheid+y}
7426then :
7427  printf %s "(cached) " >&6
7428else $as_nop
7429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7430/* end confdefs.h.  */
7431int i;
7432int
7433main (void)
7434{
7435
7436  ;
7437  return 0;
7438}
7439_ACEOF
7440if ac_fn_c_try_link "$LINENO"
7441then :
7442  eval $cacheid=yes
7443else $as_nop
7444  eval $cacheid=no
7445fi
7446rm -f core conftest.err conftest.$ac_objext conftest.beam \
7447    conftest$ac_exeext conftest.$ac_ext
7448fi
7449
7450
7451		CFLAGS="$xorg_testset_save_CFLAGS"
7452
7453		eval supported=\$$cacheid
7454		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7455printf "%s\n" "$supported" >&6; }
7456		if test "$supported" = "yes" ; then
7457			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7458			found="yes"
7459		fi
7460	fi
7461
7462	if test $found = "no" ; then
7463		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7464			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7465		fi
7466
7467		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7468			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7469		fi
7470
7471		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7472
7473		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7474printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7475		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7476		if eval test \${$cacheid+y}
7477then :
7478  printf %s "(cached) " >&6
7479else $as_nop
7480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481/* end confdefs.h.  */
7482int i;
7483int
7484main (void)
7485{
7486
7487  ;
7488  return 0;
7489}
7490_ACEOF
7491if ac_fn_c_try_link "$LINENO"
7492then :
7493  eval $cacheid=yes
7494else $as_nop
7495  eval $cacheid=no
7496fi
7497rm -f core conftest.err conftest.$ac_objext conftest.beam \
7498    conftest$ac_exeext conftest.$ac_ext
7499fi
7500
7501
7502		CFLAGS="$xorg_testset_save_CFLAGS"
7503
7504		eval supported=\$$cacheid
7505		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7506printf "%s\n" "$supported" >&6; }
7507		if test "$supported" = "yes" ; then
7508			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7509			found="yes"
7510		fi
7511	fi
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527xorg_testset_save_CFLAGS="$CFLAGS"
7528
7529if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7530	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7531	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7532printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7533if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7534then :
7535  printf %s "(cached) " >&6
7536else $as_nop
7537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7538/* end confdefs.h.  */
7539int i;
7540_ACEOF
7541if ac_fn_c_try_compile "$LINENO"
7542then :
7543  xorg_cv_cc_flag_unknown_warning_option=yes
7544else $as_nop
7545  xorg_cv_cc_flag_unknown_warning_option=no
7546fi
7547rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7548fi
7549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7550printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7551	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7552	CFLAGS="$xorg_testset_save_CFLAGS"
7553fi
7554
7555if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7556	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7557		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7558	fi
7559	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7560	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7561printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7562if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7563then :
7564  printf %s "(cached) " >&6
7565else $as_nop
7566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7567/* end confdefs.h.  */
7568int i;
7569_ACEOF
7570if ac_fn_c_try_compile "$LINENO"
7571then :
7572  xorg_cv_cc_flag_unused_command_line_argument=yes
7573else $as_nop
7574  xorg_cv_cc_flag_unused_command_line_argument=no
7575fi
7576rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7577fi
7578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7579printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7580	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7581	CFLAGS="$xorg_testset_save_CFLAGS"
7582fi
7583
7584found="no"
7585
7586	if test $found = "no" ; then
7587		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7588			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7589		fi
7590
7591		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7592			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7593		fi
7594
7595		CFLAGS="$CFLAGS -Werror=nonnull"
7596
7597		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7598printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7599		cacheid=xorg_cv_cc_flag__Werror_nonnull
7600		if eval test \${$cacheid+y}
7601then :
7602  printf %s "(cached) " >&6
7603else $as_nop
7604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605/* end confdefs.h.  */
7606int i;
7607int
7608main (void)
7609{
7610
7611  ;
7612  return 0;
7613}
7614_ACEOF
7615if ac_fn_c_try_link "$LINENO"
7616then :
7617  eval $cacheid=yes
7618else $as_nop
7619  eval $cacheid=no
7620fi
7621rm -f core conftest.err conftest.$ac_objext conftest.beam \
7622    conftest$ac_exeext conftest.$ac_ext
7623fi
7624
7625
7626		CFLAGS="$xorg_testset_save_CFLAGS"
7627
7628		eval supported=\$$cacheid
7629		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7630printf "%s\n" "$supported" >&6; }
7631		if test "$supported" = "yes" ; then
7632			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7633			found="yes"
7634		fi
7635	fi
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651xorg_testset_save_CFLAGS="$CFLAGS"
7652
7653if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7654	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7655	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7656printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7657if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7658then :
7659  printf %s "(cached) " >&6
7660else $as_nop
7661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7662/* end confdefs.h.  */
7663int i;
7664_ACEOF
7665if ac_fn_c_try_compile "$LINENO"
7666then :
7667  xorg_cv_cc_flag_unknown_warning_option=yes
7668else $as_nop
7669  xorg_cv_cc_flag_unknown_warning_option=no
7670fi
7671rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7672fi
7673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7674printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7675	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7676	CFLAGS="$xorg_testset_save_CFLAGS"
7677fi
7678
7679if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7680	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7681		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7682	fi
7683	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7684	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7685printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7686if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7687then :
7688  printf %s "(cached) " >&6
7689else $as_nop
7690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7691/* end confdefs.h.  */
7692int i;
7693_ACEOF
7694if ac_fn_c_try_compile "$LINENO"
7695then :
7696  xorg_cv_cc_flag_unused_command_line_argument=yes
7697else $as_nop
7698  xorg_cv_cc_flag_unused_command_line_argument=no
7699fi
7700rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7701fi
7702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7703printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7704	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7705	CFLAGS="$xorg_testset_save_CFLAGS"
7706fi
7707
7708found="no"
7709
7710	if test $found = "no" ; then
7711		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7712			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7713		fi
7714
7715		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7716			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7717		fi
7718
7719		CFLAGS="$CFLAGS -Werror=init-self"
7720
7721		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7722printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7723		cacheid=xorg_cv_cc_flag__Werror_init_self
7724		if eval test \${$cacheid+y}
7725then :
7726  printf %s "(cached) " >&6
7727else $as_nop
7728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7729/* end confdefs.h.  */
7730int i;
7731int
7732main (void)
7733{
7734
7735  ;
7736  return 0;
7737}
7738_ACEOF
7739if ac_fn_c_try_link "$LINENO"
7740then :
7741  eval $cacheid=yes
7742else $as_nop
7743  eval $cacheid=no
7744fi
7745rm -f core conftest.err conftest.$ac_objext conftest.beam \
7746    conftest$ac_exeext conftest.$ac_ext
7747fi
7748
7749
7750		CFLAGS="$xorg_testset_save_CFLAGS"
7751
7752		eval supported=\$$cacheid
7753		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7754printf "%s\n" "$supported" >&6; }
7755		if test "$supported" = "yes" ; then
7756			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7757			found="yes"
7758		fi
7759	fi
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775xorg_testset_save_CFLAGS="$CFLAGS"
7776
7777if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7778	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7779	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7780printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7781if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7782then :
7783  printf %s "(cached) " >&6
7784else $as_nop
7785  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786/* end confdefs.h.  */
7787int i;
7788_ACEOF
7789if ac_fn_c_try_compile "$LINENO"
7790then :
7791  xorg_cv_cc_flag_unknown_warning_option=yes
7792else $as_nop
7793  xorg_cv_cc_flag_unknown_warning_option=no
7794fi
7795rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7796fi
7797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7798printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7799	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7800	CFLAGS="$xorg_testset_save_CFLAGS"
7801fi
7802
7803if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7804	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7805		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7806	fi
7807	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7808	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7809printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7810if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7811then :
7812  printf %s "(cached) " >&6
7813else $as_nop
7814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7815/* end confdefs.h.  */
7816int i;
7817_ACEOF
7818if ac_fn_c_try_compile "$LINENO"
7819then :
7820  xorg_cv_cc_flag_unused_command_line_argument=yes
7821else $as_nop
7822  xorg_cv_cc_flag_unused_command_line_argument=no
7823fi
7824rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7825fi
7826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7827printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7828	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7829	CFLAGS="$xorg_testset_save_CFLAGS"
7830fi
7831
7832found="no"
7833
7834	if test $found = "no" ; then
7835		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7836			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7837		fi
7838
7839		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7840			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7841		fi
7842
7843		CFLAGS="$CFLAGS -Werror=main"
7844
7845		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7846printf %s "checking if $CC supports -Werror=main... " >&6; }
7847		cacheid=xorg_cv_cc_flag__Werror_main
7848		if eval test \${$cacheid+y}
7849then :
7850  printf %s "(cached) " >&6
7851else $as_nop
7852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7853/* end confdefs.h.  */
7854int i;
7855int
7856main (void)
7857{
7858
7859  ;
7860  return 0;
7861}
7862_ACEOF
7863if ac_fn_c_try_link "$LINENO"
7864then :
7865  eval $cacheid=yes
7866else $as_nop
7867  eval $cacheid=no
7868fi
7869rm -f core conftest.err conftest.$ac_objext conftest.beam \
7870    conftest$ac_exeext conftest.$ac_ext
7871fi
7872
7873
7874		CFLAGS="$xorg_testset_save_CFLAGS"
7875
7876		eval supported=\$$cacheid
7877		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7878printf "%s\n" "$supported" >&6; }
7879		if test "$supported" = "yes" ; then
7880			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7881			found="yes"
7882		fi
7883	fi
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899xorg_testset_save_CFLAGS="$CFLAGS"
7900
7901if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7902	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7903	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7904printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7905if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7906then :
7907  printf %s "(cached) " >&6
7908else $as_nop
7909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7910/* end confdefs.h.  */
7911int i;
7912_ACEOF
7913if ac_fn_c_try_compile "$LINENO"
7914then :
7915  xorg_cv_cc_flag_unknown_warning_option=yes
7916else $as_nop
7917  xorg_cv_cc_flag_unknown_warning_option=no
7918fi
7919rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7920fi
7921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7922printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7923	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7924	CFLAGS="$xorg_testset_save_CFLAGS"
7925fi
7926
7927if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7928	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7929		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7930	fi
7931	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7932	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7933printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7934if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7935then :
7936  printf %s "(cached) " >&6
7937else $as_nop
7938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7939/* end confdefs.h.  */
7940int i;
7941_ACEOF
7942if ac_fn_c_try_compile "$LINENO"
7943then :
7944  xorg_cv_cc_flag_unused_command_line_argument=yes
7945else $as_nop
7946  xorg_cv_cc_flag_unused_command_line_argument=no
7947fi
7948rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7949fi
7950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7951printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7952	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7953	CFLAGS="$xorg_testset_save_CFLAGS"
7954fi
7955
7956found="no"
7957
7958	if test $found = "no" ; then
7959		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7960			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7961		fi
7962
7963		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7964			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7965		fi
7966
7967		CFLAGS="$CFLAGS -Werror=missing-braces"
7968
7969		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7970printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7971		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7972		if eval test \${$cacheid+y}
7973then :
7974  printf %s "(cached) " >&6
7975else $as_nop
7976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7977/* end confdefs.h.  */
7978int i;
7979int
7980main (void)
7981{
7982
7983  ;
7984  return 0;
7985}
7986_ACEOF
7987if ac_fn_c_try_link "$LINENO"
7988then :
7989  eval $cacheid=yes
7990else $as_nop
7991  eval $cacheid=no
7992fi
7993rm -f core conftest.err conftest.$ac_objext conftest.beam \
7994    conftest$ac_exeext conftest.$ac_ext
7995fi
7996
7997
7998		CFLAGS="$xorg_testset_save_CFLAGS"
7999
8000		eval supported=\$$cacheid
8001		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8002printf "%s\n" "$supported" >&6; }
8003		if test "$supported" = "yes" ; then
8004			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8005			found="yes"
8006		fi
8007	fi
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023xorg_testset_save_CFLAGS="$CFLAGS"
8024
8025if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8026	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8027	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8028printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8029if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8030then :
8031  printf %s "(cached) " >&6
8032else $as_nop
8033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8034/* end confdefs.h.  */
8035int i;
8036_ACEOF
8037if ac_fn_c_try_compile "$LINENO"
8038then :
8039  xorg_cv_cc_flag_unknown_warning_option=yes
8040else $as_nop
8041  xorg_cv_cc_flag_unknown_warning_option=no
8042fi
8043rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8044fi
8045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8046printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8047	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8048	CFLAGS="$xorg_testset_save_CFLAGS"
8049fi
8050
8051if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8052	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8053		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8054	fi
8055	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8056	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8057printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8058if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8059then :
8060  printf %s "(cached) " >&6
8061else $as_nop
8062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8063/* end confdefs.h.  */
8064int i;
8065_ACEOF
8066if ac_fn_c_try_compile "$LINENO"
8067then :
8068  xorg_cv_cc_flag_unused_command_line_argument=yes
8069else $as_nop
8070  xorg_cv_cc_flag_unused_command_line_argument=no
8071fi
8072rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8073fi
8074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8075printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8076	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8077	CFLAGS="$xorg_testset_save_CFLAGS"
8078fi
8079
8080found="no"
8081
8082	if test $found = "no" ; then
8083		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8084			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8085		fi
8086
8087		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8088			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8089		fi
8090
8091		CFLAGS="$CFLAGS -Werror=sequence-point"
8092
8093		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8094printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8095		cacheid=xorg_cv_cc_flag__Werror_sequence_point
8096		if eval test \${$cacheid+y}
8097then :
8098  printf %s "(cached) " >&6
8099else $as_nop
8100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8101/* end confdefs.h.  */
8102int i;
8103int
8104main (void)
8105{
8106
8107  ;
8108  return 0;
8109}
8110_ACEOF
8111if ac_fn_c_try_link "$LINENO"
8112then :
8113  eval $cacheid=yes
8114else $as_nop
8115  eval $cacheid=no
8116fi
8117rm -f core conftest.err conftest.$ac_objext conftest.beam \
8118    conftest$ac_exeext conftest.$ac_ext
8119fi
8120
8121
8122		CFLAGS="$xorg_testset_save_CFLAGS"
8123
8124		eval supported=\$$cacheid
8125		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8126printf "%s\n" "$supported" >&6; }
8127		if test "$supported" = "yes" ; then
8128			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8129			found="yes"
8130		fi
8131	fi
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147xorg_testset_save_CFLAGS="$CFLAGS"
8148
8149if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8150	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8151	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8152printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8153if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8154then :
8155  printf %s "(cached) " >&6
8156else $as_nop
8157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8158/* end confdefs.h.  */
8159int i;
8160_ACEOF
8161if ac_fn_c_try_compile "$LINENO"
8162then :
8163  xorg_cv_cc_flag_unknown_warning_option=yes
8164else $as_nop
8165  xorg_cv_cc_flag_unknown_warning_option=no
8166fi
8167rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8168fi
8169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8170printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8171	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8172	CFLAGS="$xorg_testset_save_CFLAGS"
8173fi
8174
8175if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8176	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8177		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8178	fi
8179	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8180	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8181printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8182if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8183then :
8184  printf %s "(cached) " >&6
8185else $as_nop
8186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8187/* end confdefs.h.  */
8188int i;
8189_ACEOF
8190if ac_fn_c_try_compile "$LINENO"
8191then :
8192  xorg_cv_cc_flag_unused_command_line_argument=yes
8193else $as_nop
8194  xorg_cv_cc_flag_unused_command_line_argument=no
8195fi
8196rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8197fi
8198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8199printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8200	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8201	CFLAGS="$xorg_testset_save_CFLAGS"
8202fi
8203
8204found="no"
8205
8206	if test $found = "no" ; then
8207		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8208			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8209		fi
8210
8211		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8212			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8213		fi
8214
8215		CFLAGS="$CFLAGS -Werror=return-type"
8216
8217		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8218printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8219		cacheid=xorg_cv_cc_flag__Werror_return_type
8220		if eval test \${$cacheid+y}
8221then :
8222  printf %s "(cached) " >&6
8223else $as_nop
8224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8225/* end confdefs.h.  */
8226int i;
8227int
8228main (void)
8229{
8230
8231  ;
8232  return 0;
8233}
8234_ACEOF
8235if ac_fn_c_try_link "$LINENO"
8236then :
8237  eval $cacheid=yes
8238else $as_nop
8239  eval $cacheid=no
8240fi
8241rm -f core conftest.err conftest.$ac_objext conftest.beam \
8242    conftest$ac_exeext conftest.$ac_ext
8243fi
8244
8245
8246		CFLAGS="$xorg_testset_save_CFLAGS"
8247
8248		eval supported=\$$cacheid
8249		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8250printf "%s\n" "$supported" >&6; }
8251		if test "$supported" = "yes" ; then
8252			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8253			found="yes"
8254		fi
8255	fi
8256
8257	if test $found = "no" ; then
8258		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8259			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8260		fi
8261
8262		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8263			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8264		fi
8265
8266		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8267
8268		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8269printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8270		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8271		if eval test \${$cacheid+y}
8272then :
8273  printf %s "(cached) " >&6
8274else $as_nop
8275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8276/* end confdefs.h.  */
8277int i;
8278int
8279main (void)
8280{
8281
8282  ;
8283  return 0;
8284}
8285_ACEOF
8286if ac_fn_c_try_link "$LINENO"
8287then :
8288  eval $cacheid=yes
8289else $as_nop
8290  eval $cacheid=no
8291fi
8292rm -f core conftest.err conftest.$ac_objext conftest.beam \
8293    conftest$ac_exeext conftest.$ac_ext
8294fi
8295
8296
8297		CFLAGS="$xorg_testset_save_CFLAGS"
8298
8299		eval supported=\$$cacheid
8300		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8301printf "%s\n" "$supported" >&6; }
8302		if test "$supported" = "yes" ; then
8303			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8304			found="yes"
8305		fi
8306	fi
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322xorg_testset_save_CFLAGS="$CFLAGS"
8323
8324if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8325	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8326	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8327printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8328if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8329then :
8330  printf %s "(cached) " >&6
8331else $as_nop
8332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8333/* end confdefs.h.  */
8334int i;
8335_ACEOF
8336if ac_fn_c_try_compile "$LINENO"
8337then :
8338  xorg_cv_cc_flag_unknown_warning_option=yes
8339else $as_nop
8340  xorg_cv_cc_flag_unknown_warning_option=no
8341fi
8342rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8343fi
8344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8345printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8346	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8347	CFLAGS="$xorg_testset_save_CFLAGS"
8348fi
8349
8350if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8351	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8352		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8353	fi
8354	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8355	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8356printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8357if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8358then :
8359  printf %s "(cached) " >&6
8360else $as_nop
8361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8362/* end confdefs.h.  */
8363int i;
8364_ACEOF
8365if ac_fn_c_try_compile "$LINENO"
8366then :
8367  xorg_cv_cc_flag_unused_command_line_argument=yes
8368else $as_nop
8369  xorg_cv_cc_flag_unused_command_line_argument=no
8370fi
8371rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8372fi
8373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8374printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8375	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8376	CFLAGS="$xorg_testset_save_CFLAGS"
8377fi
8378
8379found="no"
8380
8381	if test $found = "no" ; then
8382		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8383			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8384		fi
8385
8386		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8387			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8388		fi
8389
8390		CFLAGS="$CFLAGS -Werror=trigraphs"
8391
8392		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8393printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8394		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8395		if eval test \${$cacheid+y}
8396then :
8397  printf %s "(cached) " >&6
8398else $as_nop
8399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8400/* end confdefs.h.  */
8401int i;
8402int
8403main (void)
8404{
8405
8406  ;
8407  return 0;
8408}
8409_ACEOF
8410if ac_fn_c_try_link "$LINENO"
8411then :
8412  eval $cacheid=yes
8413else $as_nop
8414  eval $cacheid=no
8415fi
8416rm -f core conftest.err conftest.$ac_objext conftest.beam \
8417    conftest$ac_exeext conftest.$ac_ext
8418fi
8419
8420
8421		CFLAGS="$xorg_testset_save_CFLAGS"
8422
8423		eval supported=\$$cacheid
8424		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8425printf "%s\n" "$supported" >&6; }
8426		if test "$supported" = "yes" ; then
8427			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8428			found="yes"
8429		fi
8430	fi
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446xorg_testset_save_CFLAGS="$CFLAGS"
8447
8448if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8449	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8450	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8451printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8452if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8453then :
8454  printf %s "(cached) " >&6
8455else $as_nop
8456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8457/* end confdefs.h.  */
8458int i;
8459_ACEOF
8460if ac_fn_c_try_compile "$LINENO"
8461then :
8462  xorg_cv_cc_flag_unknown_warning_option=yes
8463else $as_nop
8464  xorg_cv_cc_flag_unknown_warning_option=no
8465fi
8466rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8467fi
8468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8469printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8470	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8471	CFLAGS="$xorg_testset_save_CFLAGS"
8472fi
8473
8474if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8475	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8476		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8477	fi
8478	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8479	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8480printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8481if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8482then :
8483  printf %s "(cached) " >&6
8484else $as_nop
8485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8486/* end confdefs.h.  */
8487int i;
8488_ACEOF
8489if ac_fn_c_try_compile "$LINENO"
8490then :
8491  xorg_cv_cc_flag_unused_command_line_argument=yes
8492else $as_nop
8493  xorg_cv_cc_flag_unused_command_line_argument=no
8494fi
8495rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8496fi
8497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8498printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8499	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8500	CFLAGS="$xorg_testset_save_CFLAGS"
8501fi
8502
8503found="no"
8504
8505	if test $found = "no" ; then
8506		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8507			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8508		fi
8509
8510		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8511			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8512		fi
8513
8514		CFLAGS="$CFLAGS -Werror=array-bounds"
8515
8516		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8517printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8518		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8519		if eval test \${$cacheid+y}
8520then :
8521  printf %s "(cached) " >&6
8522else $as_nop
8523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8524/* end confdefs.h.  */
8525int i;
8526int
8527main (void)
8528{
8529
8530  ;
8531  return 0;
8532}
8533_ACEOF
8534if ac_fn_c_try_link "$LINENO"
8535then :
8536  eval $cacheid=yes
8537else $as_nop
8538  eval $cacheid=no
8539fi
8540rm -f core conftest.err conftest.$ac_objext conftest.beam \
8541    conftest$ac_exeext conftest.$ac_ext
8542fi
8543
8544
8545		CFLAGS="$xorg_testset_save_CFLAGS"
8546
8547		eval supported=\$$cacheid
8548		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8549printf "%s\n" "$supported" >&6; }
8550		if test "$supported" = "yes" ; then
8551			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8552			found="yes"
8553		fi
8554	fi
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570xorg_testset_save_CFLAGS="$CFLAGS"
8571
8572if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8573	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8574	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8575printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8576if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8577then :
8578  printf %s "(cached) " >&6
8579else $as_nop
8580  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8581/* end confdefs.h.  */
8582int i;
8583_ACEOF
8584if ac_fn_c_try_compile "$LINENO"
8585then :
8586  xorg_cv_cc_flag_unknown_warning_option=yes
8587else $as_nop
8588  xorg_cv_cc_flag_unknown_warning_option=no
8589fi
8590rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8591fi
8592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8593printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8594	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8595	CFLAGS="$xorg_testset_save_CFLAGS"
8596fi
8597
8598if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8599	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8600		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8601	fi
8602	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8603	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8604printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8605if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8606then :
8607  printf %s "(cached) " >&6
8608else $as_nop
8609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8610/* end confdefs.h.  */
8611int i;
8612_ACEOF
8613if ac_fn_c_try_compile "$LINENO"
8614then :
8615  xorg_cv_cc_flag_unused_command_line_argument=yes
8616else $as_nop
8617  xorg_cv_cc_flag_unused_command_line_argument=no
8618fi
8619rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8620fi
8621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8622printf "%s\n" "$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=write-strings"
8639
8640		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8641printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8642		cacheid=xorg_cv_cc_flag__Werror_write_strings
8643		if eval test \${$cacheid+y}
8644then :
8645  printf %s "(cached) " >&6
8646else $as_nop
8647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8648/* end confdefs.h.  */
8649int i;
8650int
8651main (void)
8652{
8653
8654  ;
8655  return 0;
8656}
8657_ACEOF
8658if ac_fn_c_try_link "$LINENO"
8659then :
8660  eval $cacheid=yes
8661else $as_nop
8662  eval $cacheid=no
8663fi
8664rm -f core conftest.err conftest.$ac_objext conftest.beam \
8665    conftest$ac_exeext conftest.$ac_ext
8666fi
8667
8668
8669		CFLAGS="$xorg_testset_save_CFLAGS"
8670
8671		eval supported=\$$cacheid
8672		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8673printf "%s\n" "$supported" >&6; }
8674		if test "$supported" = "yes" ; then
8675			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8676			found="yes"
8677		fi
8678	fi
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694xorg_testset_save_CFLAGS="$CFLAGS"
8695
8696if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8697	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8698	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8699printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8700if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8701then :
8702  printf %s "(cached) " >&6
8703else $as_nop
8704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8705/* end confdefs.h.  */
8706int i;
8707_ACEOF
8708if ac_fn_c_try_compile "$LINENO"
8709then :
8710  xorg_cv_cc_flag_unknown_warning_option=yes
8711else $as_nop
8712  xorg_cv_cc_flag_unknown_warning_option=no
8713fi
8714rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8715fi
8716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8717printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8718	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8719	CFLAGS="$xorg_testset_save_CFLAGS"
8720fi
8721
8722if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8723	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8724		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8725	fi
8726	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8727	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8728printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8729if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8730then :
8731  printf %s "(cached) " >&6
8732else $as_nop
8733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8734/* end confdefs.h.  */
8735int i;
8736_ACEOF
8737if ac_fn_c_try_compile "$LINENO"
8738then :
8739  xorg_cv_cc_flag_unused_command_line_argument=yes
8740else $as_nop
8741  xorg_cv_cc_flag_unused_command_line_argument=no
8742fi
8743rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8744fi
8745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8746printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8747	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8748	CFLAGS="$xorg_testset_save_CFLAGS"
8749fi
8750
8751found="no"
8752
8753	if test $found = "no" ; then
8754		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8755			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8756		fi
8757
8758		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8759			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8760		fi
8761
8762		CFLAGS="$CFLAGS -Werror=address"
8763
8764		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8765printf %s "checking if $CC supports -Werror=address... " >&6; }
8766		cacheid=xorg_cv_cc_flag__Werror_address
8767		if eval test \${$cacheid+y}
8768then :
8769  printf %s "(cached) " >&6
8770else $as_nop
8771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8772/* end confdefs.h.  */
8773int i;
8774int
8775main (void)
8776{
8777
8778  ;
8779  return 0;
8780}
8781_ACEOF
8782if ac_fn_c_try_link "$LINENO"
8783then :
8784  eval $cacheid=yes
8785else $as_nop
8786  eval $cacheid=no
8787fi
8788rm -f core conftest.err conftest.$ac_objext conftest.beam \
8789    conftest$ac_exeext conftest.$ac_ext
8790fi
8791
8792
8793		CFLAGS="$xorg_testset_save_CFLAGS"
8794
8795		eval supported=\$$cacheid
8796		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8797printf "%s\n" "$supported" >&6; }
8798		if test "$supported" = "yes" ; then
8799			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8800			found="yes"
8801		fi
8802	fi
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818xorg_testset_save_CFLAGS="$CFLAGS"
8819
8820if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8821	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8822	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8823printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8824if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8825then :
8826  printf %s "(cached) " >&6
8827else $as_nop
8828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8829/* end confdefs.h.  */
8830int i;
8831_ACEOF
8832if ac_fn_c_try_compile "$LINENO"
8833then :
8834  xorg_cv_cc_flag_unknown_warning_option=yes
8835else $as_nop
8836  xorg_cv_cc_flag_unknown_warning_option=no
8837fi
8838rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8839fi
8840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8841printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8842	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8843	CFLAGS="$xorg_testset_save_CFLAGS"
8844fi
8845
8846if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8847	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8848		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8849	fi
8850	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8851	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8852printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8853if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8854then :
8855  printf %s "(cached) " >&6
8856else $as_nop
8857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8858/* end confdefs.h.  */
8859int i;
8860_ACEOF
8861if ac_fn_c_try_compile "$LINENO"
8862then :
8863  xorg_cv_cc_flag_unused_command_line_argument=yes
8864else $as_nop
8865  xorg_cv_cc_flag_unused_command_line_argument=no
8866fi
8867rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8868fi
8869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8870printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8871	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8872	CFLAGS="$xorg_testset_save_CFLAGS"
8873fi
8874
8875found="no"
8876
8877	if test $found = "no" ; then
8878		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8879			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8880		fi
8881
8882		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8883			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8884		fi
8885
8886		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8887
8888		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8889printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8890		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8891		if eval test \${$cacheid+y}
8892then :
8893  printf %s "(cached) " >&6
8894else $as_nop
8895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8896/* end confdefs.h.  */
8897int i;
8898int
8899main (void)
8900{
8901
8902  ;
8903  return 0;
8904}
8905_ACEOF
8906if ac_fn_c_try_link "$LINENO"
8907then :
8908  eval $cacheid=yes
8909else $as_nop
8910  eval $cacheid=no
8911fi
8912rm -f core conftest.err conftest.$ac_objext conftest.beam \
8913    conftest$ac_exeext conftest.$ac_ext
8914fi
8915
8916
8917		CFLAGS="$xorg_testset_save_CFLAGS"
8918
8919		eval supported=\$$cacheid
8920		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8921printf "%s\n" "$supported" >&6; }
8922		if test "$supported" = "yes" ; then
8923			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8924			found="yes"
8925		fi
8926	fi
8927
8928	if test $found = "no" ; then
8929		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8930			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8931		fi
8932
8933		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8934			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8935		fi
8936
8937		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8938
8939		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8940printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8941		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8942		if eval test \${$cacheid+y}
8943then :
8944  printf %s "(cached) " >&6
8945else $as_nop
8946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8947/* end confdefs.h.  */
8948int i;
8949int
8950main (void)
8951{
8952
8953  ;
8954  return 0;
8955}
8956_ACEOF
8957if ac_fn_c_try_link "$LINENO"
8958then :
8959  eval $cacheid=yes
8960else $as_nop
8961  eval $cacheid=no
8962fi
8963rm -f core conftest.err conftest.$ac_objext conftest.beam \
8964    conftest$ac_exeext conftest.$ac_ext
8965fi
8966
8967
8968		CFLAGS="$xorg_testset_save_CFLAGS"
8969
8970		eval supported=\$$cacheid
8971		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8972printf "%s\n" "$supported" >&6; }
8973		if test "$supported" = "yes" ; then
8974			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8975			found="yes"
8976		fi
8977	fi
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993xorg_testset_save_CFLAGS="$CFLAGS"
8994
8995if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8996	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8997	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8998printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8999if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9000then :
9001  printf %s "(cached) " >&6
9002else $as_nop
9003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9004/* end confdefs.h.  */
9005int i;
9006_ACEOF
9007if ac_fn_c_try_compile "$LINENO"
9008then :
9009  xorg_cv_cc_flag_unknown_warning_option=yes
9010else $as_nop
9011  xorg_cv_cc_flag_unknown_warning_option=no
9012fi
9013rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9014fi
9015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9016printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9017	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9018	CFLAGS="$xorg_testset_save_CFLAGS"
9019fi
9020
9021if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9022	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9023		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9024	fi
9025	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9026	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9027printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9028if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9029then :
9030  printf %s "(cached) " >&6
9031else $as_nop
9032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9033/* end confdefs.h.  */
9034int i;
9035_ACEOF
9036if ac_fn_c_try_compile "$LINENO"
9037then :
9038  xorg_cv_cc_flag_unused_command_line_argument=yes
9039else $as_nop
9040  xorg_cv_cc_flag_unused_command_line_argument=no
9041fi
9042rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9043fi
9044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9045printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9046	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9047	CFLAGS="$xorg_testset_save_CFLAGS"
9048fi
9049
9050found="no"
9051
9052	if test $found = "no" ; then
9053		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9054			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9055		fi
9056
9057		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9058			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9059		fi
9060
9061		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9062
9063		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9064printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9065		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9066		if eval test \${$cacheid+y}
9067then :
9068  printf %s "(cached) " >&6
9069else $as_nop
9070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9071/* end confdefs.h.  */
9072int i;
9073int
9074main (void)
9075{
9076
9077  ;
9078  return 0;
9079}
9080_ACEOF
9081if ac_fn_c_try_link "$LINENO"
9082then :
9083  eval $cacheid=yes
9084else $as_nop
9085  eval $cacheid=no
9086fi
9087rm -f core conftest.err conftest.$ac_objext conftest.beam \
9088    conftest$ac_exeext conftest.$ac_ext
9089fi
9090
9091
9092		CFLAGS="$xorg_testset_save_CFLAGS"
9093
9094		eval supported=\$$cacheid
9095		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9096printf "%s\n" "$supported" >&6; }
9097		if test "$supported" = "yes" ; then
9098			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9099			found="yes"
9100		fi
9101	fi
9102
9103 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9104else
9105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
9106printf "%s\n" "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120xorg_testset_save_CFLAGS="$CFLAGS"
9121
9122if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9123	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9124	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9125printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9126if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9127then :
9128  printf %s "(cached) " >&6
9129else $as_nop
9130  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9131/* end confdefs.h.  */
9132int i;
9133_ACEOF
9134if ac_fn_c_try_compile "$LINENO"
9135then :
9136  xorg_cv_cc_flag_unknown_warning_option=yes
9137else $as_nop
9138  xorg_cv_cc_flag_unknown_warning_option=no
9139fi
9140rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9141fi
9142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9143printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9144	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9145	CFLAGS="$xorg_testset_save_CFLAGS"
9146fi
9147
9148if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9149	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9150		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9151	fi
9152	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9153	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9154printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9155if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9156then :
9157  printf %s "(cached) " >&6
9158else $as_nop
9159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9160/* end confdefs.h.  */
9161int i;
9162_ACEOF
9163if ac_fn_c_try_compile "$LINENO"
9164then :
9165  xorg_cv_cc_flag_unused_command_line_argument=yes
9166else $as_nop
9167  xorg_cv_cc_flag_unused_command_line_argument=no
9168fi
9169rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9170fi
9171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9172printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9173	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9174	CFLAGS="$xorg_testset_save_CFLAGS"
9175fi
9176
9177found="no"
9178
9179	if test $found = "no" ; then
9180		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9181			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9182		fi
9183
9184		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9185			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9186		fi
9187
9188		CFLAGS="$CFLAGS -Wimplicit"
9189
9190		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9191printf %s "checking if $CC supports -Wimplicit... " >&6; }
9192		cacheid=xorg_cv_cc_flag__Wimplicit
9193		if eval test \${$cacheid+y}
9194then :
9195  printf %s "(cached) " >&6
9196else $as_nop
9197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9198/* end confdefs.h.  */
9199int i;
9200int
9201main (void)
9202{
9203
9204  ;
9205  return 0;
9206}
9207_ACEOF
9208if ac_fn_c_try_link "$LINENO"
9209then :
9210  eval $cacheid=yes
9211else $as_nop
9212  eval $cacheid=no
9213fi
9214rm -f core conftest.err conftest.$ac_objext conftest.beam \
9215    conftest$ac_exeext conftest.$ac_ext
9216fi
9217
9218
9219		CFLAGS="$xorg_testset_save_CFLAGS"
9220
9221		eval supported=\$$cacheid
9222		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9223printf "%s\n" "$supported" >&6; }
9224		if test "$supported" = "yes" ; then
9225			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9226			found="yes"
9227		fi
9228	fi
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244xorg_testset_save_CFLAGS="$CFLAGS"
9245
9246if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9247	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9248	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9249printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9250if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9251then :
9252  printf %s "(cached) " >&6
9253else $as_nop
9254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9255/* end confdefs.h.  */
9256int i;
9257_ACEOF
9258if ac_fn_c_try_compile "$LINENO"
9259then :
9260  xorg_cv_cc_flag_unknown_warning_option=yes
9261else $as_nop
9262  xorg_cv_cc_flag_unknown_warning_option=no
9263fi
9264rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9265fi
9266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9267printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9268	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9269	CFLAGS="$xorg_testset_save_CFLAGS"
9270fi
9271
9272if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9273	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9274		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9275	fi
9276	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9277	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9278printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9279if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9280then :
9281  printf %s "(cached) " >&6
9282else $as_nop
9283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9284/* end confdefs.h.  */
9285int i;
9286_ACEOF
9287if ac_fn_c_try_compile "$LINENO"
9288then :
9289  xorg_cv_cc_flag_unused_command_line_argument=yes
9290else $as_nop
9291  xorg_cv_cc_flag_unused_command_line_argument=no
9292fi
9293rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9294fi
9295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9296printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9297	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9298	CFLAGS="$xorg_testset_save_CFLAGS"
9299fi
9300
9301found="no"
9302
9303	if test $found = "no" ; then
9304		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9305			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9306		fi
9307
9308		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9309			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9310		fi
9311
9312		CFLAGS="$CFLAGS -Wnonnull"
9313
9314		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9315printf %s "checking if $CC supports -Wnonnull... " >&6; }
9316		cacheid=xorg_cv_cc_flag__Wnonnull
9317		if eval test \${$cacheid+y}
9318then :
9319  printf %s "(cached) " >&6
9320else $as_nop
9321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9322/* end confdefs.h.  */
9323int i;
9324int
9325main (void)
9326{
9327
9328  ;
9329  return 0;
9330}
9331_ACEOF
9332if ac_fn_c_try_link "$LINENO"
9333then :
9334  eval $cacheid=yes
9335else $as_nop
9336  eval $cacheid=no
9337fi
9338rm -f core conftest.err conftest.$ac_objext conftest.beam \
9339    conftest$ac_exeext conftest.$ac_ext
9340fi
9341
9342
9343		CFLAGS="$xorg_testset_save_CFLAGS"
9344
9345		eval supported=\$$cacheid
9346		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9347printf "%s\n" "$supported" >&6; }
9348		if test "$supported" = "yes" ; then
9349			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9350			found="yes"
9351		fi
9352	fi
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368xorg_testset_save_CFLAGS="$CFLAGS"
9369
9370if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9371	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9372	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9373printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9374if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9375then :
9376  printf %s "(cached) " >&6
9377else $as_nop
9378  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9379/* end confdefs.h.  */
9380int i;
9381_ACEOF
9382if ac_fn_c_try_compile "$LINENO"
9383then :
9384  xorg_cv_cc_flag_unknown_warning_option=yes
9385else $as_nop
9386  xorg_cv_cc_flag_unknown_warning_option=no
9387fi
9388rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9389fi
9390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9391printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9392	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9393	CFLAGS="$xorg_testset_save_CFLAGS"
9394fi
9395
9396if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9397	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9398		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9399	fi
9400	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9401	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9402printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9403if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9404then :
9405  printf %s "(cached) " >&6
9406else $as_nop
9407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9408/* end confdefs.h.  */
9409int i;
9410_ACEOF
9411if ac_fn_c_try_compile "$LINENO"
9412then :
9413  xorg_cv_cc_flag_unused_command_line_argument=yes
9414else $as_nop
9415  xorg_cv_cc_flag_unused_command_line_argument=no
9416fi
9417rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9418fi
9419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9420printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9421	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9422	CFLAGS="$xorg_testset_save_CFLAGS"
9423fi
9424
9425found="no"
9426
9427	if test $found = "no" ; then
9428		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9429			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9430		fi
9431
9432		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9433			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9434		fi
9435
9436		CFLAGS="$CFLAGS -Winit-self"
9437
9438		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9439printf %s "checking if $CC supports -Winit-self... " >&6; }
9440		cacheid=xorg_cv_cc_flag__Winit_self
9441		if eval test \${$cacheid+y}
9442then :
9443  printf %s "(cached) " >&6
9444else $as_nop
9445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9446/* end confdefs.h.  */
9447int i;
9448int
9449main (void)
9450{
9451
9452  ;
9453  return 0;
9454}
9455_ACEOF
9456if ac_fn_c_try_link "$LINENO"
9457then :
9458  eval $cacheid=yes
9459else $as_nop
9460  eval $cacheid=no
9461fi
9462rm -f core conftest.err conftest.$ac_objext conftest.beam \
9463    conftest$ac_exeext conftest.$ac_ext
9464fi
9465
9466
9467		CFLAGS="$xorg_testset_save_CFLAGS"
9468
9469		eval supported=\$$cacheid
9470		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9471printf "%s\n" "$supported" >&6; }
9472		if test "$supported" = "yes" ; then
9473			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9474			found="yes"
9475		fi
9476	fi
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492xorg_testset_save_CFLAGS="$CFLAGS"
9493
9494if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9495	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9496	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9497printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9498if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9499then :
9500  printf %s "(cached) " >&6
9501else $as_nop
9502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9503/* end confdefs.h.  */
9504int i;
9505_ACEOF
9506if ac_fn_c_try_compile "$LINENO"
9507then :
9508  xorg_cv_cc_flag_unknown_warning_option=yes
9509else $as_nop
9510  xorg_cv_cc_flag_unknown_warning_option=no
9511fi
9512rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9513fi
9514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9515printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9516	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9517	CFLAGS="$xorg_testset_save_CFLAGS"
9518fi
9519
9520if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9521	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9522		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9523	fi
9524	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9525	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9526printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9527if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9528then :
9529  printf %s "(cached) " >&6
9530else $as_nop
9531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9532/* end confdefs.h.  */
9533int i;
9534_ACEOF
9535if ac_fn_c_try_compile "$LINENO"
9536then :
9537  xorg_cv_cc_flag_unused_command_line_argument=yes
9538else $as_nop
9539  xorg_cv_cc_flag_unused_command_line_argument=no
9540fi
9541rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9542fi
9543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9544printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9545	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9546	CFLAGS="$xorg_testset_save_CFLAGS"
9547fi
9548
9549found="no"
9550
9551	if test $found = "no" ; then
9552		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9553			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9554		fi
9555
9556		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9557			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9558		fi
9559
9560		CFLAGS="$CFLAGS -Wmain"
9561
9562		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9563printf %s "checking if $CC supports -Wmain... " >&6; }
9564		cacheid=xorg_cv_cc_flag__Wmain
9565		if eval test \${$cacheid+y}
9566then :
9567  printf %s "(cached) " >&6
9568else $as_nop
9569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9570/* end confdefs.h.  */
9571int i;
9572int
9573main (void)
9574{
9575
9576  ;
9577  return 0;
9578}
9579_ACEOF
9580if ac_fn_c_try_link "$LINENO"
9581then :
9582  eval $cacheid=yes
9583else $as_nop
9584  eval $cacheid=no
9585fi
9586rm -f core conftest.err conftest.$ac_objext conftest.beam \
9587    conftest$ac_exeext conftest.$ac_ext
9588fi
9589
9590
9591		CFLAGS="$xorg_testset_save_CFLAGS"
9592
9593		eval supported=\$$cacheid
9594		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9595printf "%s\n" "$supported" >&6; }
9596		if test "$supported" = "yes" ; then
9597			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9598			found="yes"
9599		fi
9600	fi
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616xorg_testset_save_CFLAGS="$CFLAGS"
9617
9618if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9619	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9620	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9621printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9622if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9623then :
9624  printf %s "(cached) " >&6
9625else $as_nop
9626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9627/* end confdefs.h.  */
9628int i;
9629_ACEOF
9630if ac_fn_c_try_compile "$LINENO"
9631then :
9632  xorg_cv_cc_flag_unknown_warning_option=yes
9633else $as_nop
9634  xorg_cv_cc_flag_unknown_warning_option=no
9635fi
9636rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9637fi
9638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9639printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9640	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9641	CFLAGS="$xorg_testset_save_CFLAGS"
9642fi
9643
9644if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9645	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9646		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9647	fi
9648	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9649	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9650printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9651if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9652then :
9653  printf %s "(cached) " >&6
9654else $as_nop
9655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9656/* end confdefs.h.  */
9657int i;
9658_ACEOF
9659if ac_fn_c_try_compile "$LINENO"
9660then :
9661  xorg_cv_cc_flag_unused_command_line_argument=yes
9662else $as_nop
9663  xorg_cv_cc_flag_unused_command_line_argument=no
9664fi
9665rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9666fi
9667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9668printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9669	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9670	CFLAGS="$xorg_testset_save_CFLAGS"
9671fi
9672
9673found="no"
9674
9675	if test $found = "no" ; then
9676		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9677			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9678		fi
9679
9680		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9681			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9682		fi
9683
9684		CFLAGS="$CFLAGS -Wmissing-braces"
9685
9686		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9687printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9688		cacheid=xorg_cv_cc_flag__Wmissing_braces
9689		if eval test \${$cacheid+y}
9690then :
9691  printf %s "(cached) " >&6
9692else $as_nop
9693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9694/* end confdefs.h.  */
9695int i;
9696int
9697main (void)
9698{
9699
9700  ;
9701  return 0;
9702}
9703_ACEOF
9704if ac_fn_c_try_link "$LINENO"
9705then :
9706  eval $cacheid=yes
9707else $as_nop
9708  eval $cacheid=no
9709fi
9710rm -f core conftest.err conftest.$ac_objext conftest.beam \
9711    conftest$ac_exeext conftest.$ac_ext
9712fi
9713
9714
9715		CFLAGS="$xorg_testset_save_CFLAGS"
9716
9717		eval supported=\$$cacheid
9718		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9719printf "%s\n" "$supported" >&6; }
9720		if test "$supported" = "yes" ; then
9721			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9722			found="yes"
9723		fi
9724	fi
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740xorg_testset_save_CFLAGS="$CFLAGS"
9741
9742if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9743	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9744	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9745printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9746if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9747then :
9748  printf %s "(cached) " >&6
9749else $as_nop
9750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9751/* end confdefs.h.  */
9752int i;
9753_ACEOF
9754if ac_fn_c_try_compile "$LINENO"
9755then :
9756  xorg_cv_cc_flag_unknown_warning_option=yes
9757else $as_nop
9758  xorg_cv_cc_flag_unknown_warning_option=no
9759fi
9760rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9761fi
9762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9763printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9764	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9765	CFLAGS="$xorg_testset_save_CFLAGS"
9766fi
9767
9768if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9769	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9770		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9771	fi
9772	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9773	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9774printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9775if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9776then :
9777  printf %s "(cached) " >&6
9778else $as_nop
9779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9780/* end confdefs.h.  */
9781int i;
9782_ACEOF
9783if ac_fn_c_try_compile "$LINENO"
9784then :
9785  xorg_cv_cc_flag_unused_command_line_argument=yes
9786else $as_nop
9787  xorg_cv_cc_flag_unused_command_line_argument=no
9788fi
9789rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9790fi
9791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9792printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9793	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9794	CFLAGS="$xorg_testset_save_CFLAGS"
9795fi
9796
9797found="no"
9798
9799	if test $found = "no" ; then
9800		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9801			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9802		fi
9803
9804		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9805			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9806		fi
9807
9808		CFLAGS="$CFLAGS -Wsequence-point"
9809
9810		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9811printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9812		cacheid=xorg_cv_cc_flag__Wsequence_point
9813		if eval test \${$cacheid+y}
9814then :
9815  printf %s "(cached) " >&6
9816else $as_nop
9817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9818/* end confdefs.h.  */
9819int i;
9820int
9821main (void)
9822{
9823
9824  ;
9825  return 0;
9826}
9827_ACEOF
9828if ac_fn_c_try_link "$LINENO"
9829then :
9830  eval $cacheid=yes
9831else $as_nop
9832  eval $cacheid=no
9833fi
9834rm -f core conftest.err conftest.$ac_objext conftest.beam \
9835    conftest$ac_exeext conftest.$ac_ext
9836fi
9837
9838
9839		CFLAGS="$xorg_testset_save_CFLAGS"
9840
9841		eval supported=\$$cacheid
9842		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9843printf "%s\n" "$supported" >&6; }
9844		if test "$supported" = "yes" ; then
9845			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9846			found="yes"
9847		fi
9848	fi
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864xorg_testset_save_CFLAGS="$CFLAGS"
9865
9866if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9867	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9868	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9869printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9870if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9871then :
9872  printf %s "(cached) " >&6
9873else $as_nop
9874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9875/* end confdefs.h.  */
9876int i;
9877_ACEOF
9878if ac_fn_c_try_compile "$LINENO"
9879then :
9880  xorg_cv_cc_flag_unknown_warning_option=yes
9881else $as_nop
9882  xorg_cv_cc_flag_unknown_warning_option=no
9883fi
9884rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9885fi
9886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9887printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9888	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9889	CFLAGS="$xorg_testset_save_CFLAGS"
9890fi
9891
9892if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9893	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9894		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9895	fi
9896	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9897	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9898printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9899if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9900then :
9901  printf %s "(cached) " >&6
9902else $as_nop
9903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9904/* end confdefs.h.  */
9905int i;
9906_ACEOF
9907if ac_fn_c_try_compile "$LINENO"
9908then :
9909  xorg_cv_cc_flag_unused_command_line_argument=yes
9910else $as_nop
9911  xorg_cv_cc_flag_unused_command_line_argument=no
9912fi
9913rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9914fi
9915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9916printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9917	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9918	CFLAGS="$xorg_testset_save_CFLAGS"
9919fi
9920
9921found="no"
9922
9923	if test $found = "no" ; then
9924		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9925			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9926		fi
9927
9928		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9929			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9930		fi
9931
9932		CFLAGS="$CFLAGS -Wreturn-type"
9933
9934		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9935printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9936		cacheid=xorg_cv_cc_flag__Wreturn_type
9937		if eval test \${$cacheid+y}
9938then :
9939  printf %s "(cached) " >&6
9940else $as_nop
9941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9942/* end confdefs.h.  */
9943int i;
9944int
9945main (void)
9946{
9947
9948  ;
9949  return 0;
9950}
9951_ACEOF
9952if ac_fn_c_try_link "$LINENO"
9953then :
9954  eval $cacheid=yes
9955else $as_nop
9956  eval $cacheid=no
9957fi
9958rm -f core conftest.err conftest.$ac_objext conftest.beam \
9959    conftest$ac_exeext conftest.$ac_ext
9960fi
9961
9962
9963		CFLAGS="$xorg_testset_save_CFLAGS"
9964
9965		eval supported=\$$cacheid
9966		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9967printf "%s\n" "$supported" >&6; }
9968		if test "$supported" = "yes" ; then
9969			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9970			found="yes"
9971		fi
9972	fi
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988xorg_testset_save_CFLAGS="$CFLAGS"
9989
9990if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9991	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9992	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9993printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9994if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9995then :
9996  printf %s "(cached) " >&6
9997else $as_nop
9998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9999/* end confdefs.h.  */
10000int i;
10001_ACEOF
10002if ac_fn_c_try_compile "$LINENO"
10003then :
10004  xorg_cv_cc_flag_unknown_warning_option=yes
10005else $as_nop
10006  xorg_cv_cc_flag_unknown_warning_option=no
10007fi
10008rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10009fi
10010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10011printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10012	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10013	CFLAGS="$xorg_testset_save_CFLAGS"
10014fi
10015
10016if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10017	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10018		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10019	fi
10020	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10021	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10022printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10023if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10024then :
10025  printf %s "(cached) " >&6
10026else $as_nop
10027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10028/* end confdefs.h.  */
10029int i;
10030_ACEOF
10031if ac_fn_c_try_compile "$LINENO"
10032then :
10033  xorg_cv_cc_flag_unused_command_line_argument=yes
10034else $as_nop
10035  xorg_cv_cc_flag_unused_command_line_argument=no
10036fi
10037rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10038fi
10039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10040printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10041	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10042	CFLAGS="$xorg_testset_save_CFLAGS"
10043fi
10044
10045found="no"
10046
10047	if test $found = "no" ; then
10048		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10049			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10050		fi
10051
10052		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10053			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10054		fi
10055
10056		CFLAGS="$CFLAGS -Wtrigraphs"
10057
10058		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10059printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10060		cacheid=xorg_cv_cc_flag__Wtrigraphs
10061		if eval test \${$cacheid+y}
10062then :
10063  printf %s "(cached) " >&6
10064else $as_nop
10065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10066/* end confdefs.h.  */
10067int i;
10068int
10069main (void)
10070{
10071
10072  ;
10073  return 0;
10074}
10075_ACEOF
10076if ac_fn_c_try_link "$LINENO"
10077then :
10078  eval $cacheid=yes
10079else $as_nop
10080  eval $cacheid=no
10081fi
10082rm -f core conftest.err conftest.$ac_objext conftest.beam \
10083    conftest$ac_exeext conftest.$ac_ext
10084fi
10085
10086
10087		CFLAGS="$xorg_testset_save_CFLAGS"
10088
10089		eval supported=\$$cacheid
10090		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10091printf "%s\n" "$supported" >&6; }
10092		if test "$supported" = "yes" ; then
10093			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10094			found="yes"
10095		fi
10096	fi
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112xorg_testset_save_CFLAGS="$CFLAGS"
10113
10114if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10115	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10116	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10117printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10118if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10119then :
10120  printf %s "(cached) " >&6
10121else $as_nop
10122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10123/* end confdefs.h.  */
10124int i;
10125_ACEOF
10126if ac_fn_c_try_compile "$LINENO"
10127then :
10128  xorg_cv_cc_flag_unknown_warning_option=yes
10129else $as_nop
10130  xorg_cv_cc_flag_unknown_warning_option=no
10131fi
10132rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10133fi
10134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10135printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10136	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10137	CFLAGS="$xorg_testset_save_CFLAGS"
10138fi
10139
10140if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10141	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10142		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10143	fi
10144	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10145	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10146printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10147if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10148then :
10149  printf %s "(cached) " >&6
10150else $as_nop
10151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10152/* end confdefs.h.  */
10153int i;
10154_ACEOF
10155if ac_fn_c_try_compile "$LINENO"
10156then :
10157  xorg_cv_cc_flag_unused_command_line_argument=yes
10158else $as_nop
10159  xorg_cv_cc_flag_unused_command_line_argument=no
10160fi
10161rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10162fi
10163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10164printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10165	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10166	CFLAGS="$xorg_testset_save_CFLAGS"
10167fi
10168
10169found="no"
10170
10171	if test $found = "no" ; then
10172		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10173			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10174		fi
10175
10176		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10177			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10178		fi
10179
10180		CFLAGS="$CFLAGS -Warray-bounds"
10181
10182		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10183printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10184		cacheid=xorg_cv_cc_flag__Warray_bounds
10185		if eval test \${$cacheid+y}
10186then :
10187  printf %s "(cached) " >&6
10188else $as_nop
10189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10190/* end confdefs.h.  */
10191int i;
10192int
10193main (void)
10194{
10195
10196  ;
10197  return 0;
10198}
10199_ACEOF
10200if ac_fn_c_try_link "$LINENO"
10201then :
10202  eval $cacheid=yes
10203else $as_nop
10204  eval $cacheid=no
10205fi
10206rm -f core conftest.err conftest.$ac_objext conftest.beam \
10207    conftest$ac_exeext conftest.$ac_ext
10208fi
10209
10210
10211		CFLAGS="$xorg_testset_save_CFLAGS"
10212
10213		eval supported=\$$cacheid
10214		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10215printf "%s\n" "$supported" >&6; }
10216		if test "$supported" = "yes" ; then
10217			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10218			found="yes"
10219		fi
10220	fi
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236xorg_testset_save_CFLAGS="$CFLAGS"
10237
10238if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10239	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10240	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10241printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10242if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10243then :
10244  printf %s "(cached) " >&6
10245else $as_nop
10246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10247/* end confdefs.h.  */
10248int i;
10249_ACEOF
10250if ac_fn_c_try_compile "$LINENO"
10251then :
10252  xorg_cv_cc_flag_unknown_warning_option=yes
10253else $as_nop
10254  xorg_cv_cc_flag_unknown_warning_option=no
10255fi
10256rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10257fi
10258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10259printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10260	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10261	CFLAGS="$xorg_testset_save_CFLAGS"
10262fi
10263
10264if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10265	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10266		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10267	fi
10268	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10269	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10270printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10271if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10272then :
10273  printf %s "(cached) " >&6
10274else $as_nop
10275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10276/* end confdefs.h.  */
10277int i;
10278_ACEOF
10279if ac_fn_c_try_compile "$LINENO"
10280then :
10281  xorg_cv_cc_flag_unused_command_line_argument=yes
10282else $as_nop
10283  xorg_cv_cc_flag_unused_command_line_argument=no
10284fi
10285rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10286fi
10287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10288printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10289	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10290	CFLAGS="$xorg_testset_save_CFLAGS"
10291fi
10292
10293found="no"
10294
10295	if test $found = "no" ; then
10296		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10297			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10298		fi
10299
10300		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10301			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10302		fi
10303
10304		CFLAGS="$CFLAGS -Wwrite-strings"
10305
10306		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10307printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10308		cacheid=xorg_cv_cc_flag__Wwrite_strings
10309		if eval test \${$cacheid+y}
10310then :
10311  printf %s "(cached) " >&6
10312else $as_nop
10313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10314/* end confdefs.h.  */
10315int i;
10316int
10317main (void)
10318{
10319
10320  ;
10321  return 0;
10322}
10323_ACEOF
10324if ac_fn_c_try_link "$LINENO"
10325then :
10326  eval $cacheid=yes
10327else $as_nop
10328  eval $cacheid=no
10329fi
10330rm -f core conftest.err conftest.$ac_objext conftest.beam \
10331    conftest$ac_exeext conftest.$ac_ext
10332fi
10333
10334
10335		CFLAGS="$xorg_testset_save_CFLAGS"
10336
10337		eval supported=\$$cacheid
10338		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10339printf "%s\n" "$supported" >&6; }
10340		if test "$supported" = "yes" ; then
10341			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10342			found="yes"
10343		fi
10344	fi
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360xorg_testset_save_CFLAGS="$CFLAGS"
10361
10362if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10363	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10364	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10365printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10366if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10367then :
10368  printf %s "(cached) " >&6
10369else $as_nop
10370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10371/* end confdefs.h.  */
10372int i;
10373_ACEOF
10374if ac_fn_c_try_compile "$LINENO"
10375then :
10376  xorg_cv_cc_flag_unknown_warning_option=yes
10377else $as_nop
10378  xorg_cv_cc_flag_unknown_warning_option=no
10379fi
10380rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10381fi
10382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10383printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10384	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10385	CFLAGS="$xorg_testset_save_CFLAGS"
10386fi
10387
10388if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10389	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10390		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10391	fi
10392	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10393	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10394printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10395if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10396then :
10397  printf %s "(cached) " >&6
10398else $as_nop
10399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10400/* end confdefs.h.  */
10401int i;
10402_ACEOF
10403if ac_fn_c_try_compile "$LINENO"
10404then :
10405  xorg_cv_cc_flag_unused_command_line_argument=yes
10406else $as_nop
10407  xorg_cv_cc_flag_unused_command_line_argument=no
10408fi
10409rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10410fi
10411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10412printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10413	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10414	CFLAGS="$xorg_testset_save_CFLAGS"
10415fi
10416
10417found="no"
10418
10419	if test $found = "no" ; then
10420		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10421			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10422		fi
10423
10424		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10425			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10426		fi
10427
10428		CFLAGS="$CFLAGS -Waddress"
10429
10430		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10431printf %s "checking if $CC supports -Waddress... " >&6; }
10432		cacheid=xorg_cv_cc_flag__Waddress
10433		if eval test \${$cacheid+y}
10434then :
10435  printf %s "(cached) " >&6
10436else $as_nop
10437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10438/* end confdefs.h.  */
10439int i;
10440int
10441main (void)
10442{
10443
10444  ;
10445  return 0;
10446}
10447_ACEOF
10448if ac_fn_c_try_link "$LINENO"
10449then :
10450  eval $cacheid=yes
10451else $as_nop
10452  eval $cacheid=no
10453fi
10454rm -f core conftest.err conftest.$ac_objext conftest.beam \
10455    conftest$ac_exeext conftest.$ac_ext
10456fi
10457
10458
10459		CFLAGS="$xorg_testset_save_CFLAGS"
10460
10461		eval supported=\$$cacheid
10462		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10463printf "%s\n" "$supported" >&6; }
10464		if test "$supported" = "yes" ; then
10465			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10466			found="yes"
10467		fi
10468	fi
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484xorg_testset_save_CFLAGS="$CFLAGS"
10485
10486if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10487	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10488	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10489printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10490if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10491then :
10492  printf %s "(cached) " >&6
10493else $as_nop
10494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10495/* end confdefs.h.  */
10496int i;
10497_ACEOF
10498if ac_fn_c_try_compile "$LINENO"
10499then :
10500  xorg_cv_cc_flag_unknown_warning_option=yes
10501else $as_nop
10502  xorg_cv_cc_flag_unknown_warning_option=no
10503fi
10504rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10505fi
10506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10507printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10508	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10509	CFLAGS="$xorg_testset_save_CFLAGS"
10510fi
10511
10512if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10513	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10514		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10515	fi
10516	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10517	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10518printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10519if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10520then :
10521  printf %s "(cached) " >&6
10522else $as_nop
10523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10524/* end confdefs.h.  */
10525int i;
10526_ACEOF
10527if ac_fn_c_try_compile "$LINENO"
10528then :
10529  xorg_cv_cc_flag_unused_command_line_argument=yes
10530else $as_nop
10531  xorg_cv_cc_flag_unused_command_line_argument=no
10532fi
10533rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10534fi
10535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10536printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10537	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10538	CFLAGS="$xorg_testset_save_CFLAGS"
10539fi
10540
10541found="no"
10542
10543	if test $found = "no" ; then
10544		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10545			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10546		fi
10547
10548		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10549			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10550		fi
10551
10552		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10553
10554		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10555printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10556		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10557		if eval test \${$cacheid+y}
10558then :
10559  printf %s "(cached) " >&6
10560else $as_nop
10561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10562/* end confdefs.h.  */
10563int i;
10564int
10565main (void)
10566{
10567
10568  ;
10569  return 0;
10570}
10571_ACEOF
10572if ac_fn_c_try_link "$LINENO"
10573then :
10574  eval $cacheid=yes
10575else $as_nop
10576  eval $cacheid=no
10577fi
10578rm -f core conftest.err conftest.$ac_objext conftest.beam \
10579    conftest$ac_exeext conftest.$ac_ext
10580fi
10581
10582
10583		CFLAGS="$xorg_testset_save_CFLAGS"
10584
10585		eval supported=\$$cacheid
10586		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10587printf "%s\n" "$supported" >&6; }
10588		if test "$supported" = "yes" ; then
10589			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10590			found="yes"
10591		fi
10592	fi
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608xorg_testset_save_CFLAGS="$CFLAGS"
10609
10610if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10611	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10612	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10613printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10614if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10615then :
10616  printf %s "(cached) " >&6
10617else $as_nop
10618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10619/* end confdefs.h.  */
10620int i;
10621_ACEOF
10622if ac_fn_c_try_compile "$LINENO"
10623then :
10624  xorg_cv_cc_flag_unknown_warning_option=yes
10625else $as_nop
10626  xorg_cv_cc_flag_unknown_warning_option=no
10627fi
10628rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10629fi
10630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10631printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10632	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10633	CFLAGS="$xorg_testset_save_CFLAGS"
10634fi
10635
10636if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10637	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10638		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10639	fi
10640	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10641	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10642printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10643if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10644then :
10645  printf %s "(cached) " >&6
10646else $as_nop
10647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10648/* end confdefs.h.  */
10649int i;
10650_ACEOF
10651if ac_fn_c_try_compile "$LINENO"
10652then :
10653  xorg_cv_cc_flag_unused_command_line_argument=yes
10654else $as_nop
10655  xorg_cv_cc_flag_unused_command_line_argument=no
10656fi
10657rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10658fi
10659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10660printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10661	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10662	CFLAGS="$xorg_testset_save_CFLAGS"
10663fi
10664
10665found="no"
10666
10667	if test $found = "no" ; then
10668		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10669			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10670		fi
10671
10672		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10673			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10674		fi
10675
10676		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10677
10678		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10679printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10680		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10681		if eval test \${$cacheid+y}
10682then :
10683  printf %s "(cached) " >&6
10684else $as_nop
10685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10686/* end confdefs.h.  */
10687int i;
10688int
10689main (void)
10690{
10691
10692  ;
10693  return 0;
10694}
10695_ACEOF
10696if ac_fn_c_try_link "$LINENO"
10697then :
10698  eval $cacheid=yes
10699else $as_nop
10700  eval $cacheid=no
10701fi
10702rm -f core conftest.err conftest.$ac_objext conftest.beam \
10703    conftest$ac_exeext conftest.$ac_ext
10704fi
10705
10706
10707		CFLAGS="$xorg_testset_save_CFLAGS"
10708
10709		eval supported=\$$cacheid
10710		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10711printf "%s\n" "$supported" >&6; }
10712		if test "$supported" = "yes" ; then
10713			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10714			found="yes"
10715		fi
10716	fi
10717
10718
10719fi
10720
10721
10722
10723
10724
10725
10726
10727		CWARNFLAGS="$BASE_CFLAGS"
10728		if  test "x$GCC" = xyes ; then
10729		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10730		fi
10731
10732
10733
10734
10735
10736
10737
10738
10739# Check whether --enable-strict-compilation was given.
10740if test ${enable_strict_compilation+y}
10741then :
10742  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10743else $as_nop
10744  STRICT_COMPILE=no
10745fi
10746
10747
10748
10749
10750
10751
10752STRICT_CFLAGS=""
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766xorg_testset_save_CFLAGS="$CFLAGS"
10767
10768if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10769	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10770	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10771printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10772if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10773then :
10774  printf %s "(cached) " >&6
10775else $as_nop
10776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10777/* end confdefs.h.  */
10778int i;
10779_ACEOF
10780if ac_fn_c_try_compile "$LINENO"
10781then :
10782  xorg_cv_cc_flag_unknown_warning_option=yes
10783else $as_nop
10784  xorg_cv_cc_flag_unknown_warning_option=no
10785fi
10786rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10787fi
10788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10789printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10790	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10791	CFLAGS="$xorg_testset_save_CFLAGS"
10792fi
10793
10794if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10795	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10796		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10797	fi
10798	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10799	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10800printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10801if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10802then :
10803  printf %s "(cached) " >&6
10804else $as_nop
10805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10806/* end confdefs.h.  */
10807int i;
10808_ACEOF
10809if ac_fn_c_try_compile "$LINENO"
10810then :
10811  xorg_cv_cc_flag_unused_command_line_argument=yes
10812else $as_nop
10813  xorg_cv_cc_flag_unused_command_line_argument=no
10814fi
10815rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10816fi
10817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10818printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10819	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10820	CFLAGS="$xorg_testset_save_CFLAGS"
10821fi
10822
10823found="no"
10824
10825	if test $found = "no" ; then
10826		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10827			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10828		fi
10829
10830		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10831			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10832		fi
10833
10834		CFLAGS="$CFLAGS -pedantic"
10835
10836		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10837printf %s "checking if $CC supports -pedantic... " >&6; }
10838		cacheid=xorg_cv_cc_flag__pedantic
10839		if eval test \${$cacheid+y}
10840then :
10841  printf %s "(cached) " >&6
10842else $as_nop
10843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10844/* end confdefs.h.  */
10845int i;
10846int
10847main (void)
10848{
10849
10850  ;
10851  return 0;
10852}
10853_ACEOF
10854if ac_fn_c_try_link "$LINENO"
10855then :
10856  eval $cacheid=yes
10857else $as_nop
10858  eval $cacheid=no
10859fi
10860rm -f core conftest.err conftest.$ac_objext conftest.beam \
10861    conftest$ac_exeext conftest.$ac_ext
10862fi
10863
10864
10865		CFLAGS="$xorg_testset_save_CFLAGS"
10866
10867		eval supported=\$$cacheid
10868		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10869printf "%s\n" "$supported" >&6; }
10870		if test "$supported" = "yes" ; then
10871			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10872			found="yes"
10873		fi
10874	fi
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890xorg_testset_save_CFLAGS="$CFLAGS"
10891
10892if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10893	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10894	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10895printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10896if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10897then :
10898  printf %s "(cached) " >&6
10899else $as_nop
10900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10901/* end confdefs.h.  */
10902int i;
10903_ACEOF
10904if ac_fn_c_try_compile "$LINENO"
10905then :
10906  xorg_cv_cc_flag_unknown_warning_option=yes
10907else $as_nop
10908  xorg_cv_cc_flag_unknown_warning_option=no
10909fi
10910rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10911fi
10912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10913printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10914	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10915	CFLAGS="$xorg_testset_save_CFLAGS"
10916fi
10917
10918if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10919	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10920		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10921	fi
10922	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10923	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10924printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10925if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10926then :
10927  printf %s "(cached) " >&6
10928else $as_nop
10929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10930/* end confdefs.h.  */
10931int i;
10932_ACEOF
10933if ac_fn_c_try_compile "$LINENO"
10934then :
10935  xorg_cv_cc_flag_unused_command_line_argument=yes
10936else $as_nop
10937  xorg_cv_cc_flag_unused_command_line_argument=no
10938fi
10939rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10940fi
10941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10942printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10943	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10944	CFLAGS="$xorg_testset_save_CFLAGS"
10945fi
10946
10947found="no"
10948
10949	if test $found = "no" ; then
10950		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10951			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10952		fi
10953
10954		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10955			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10956		fi
10957
10958		CFLAGS="$CFLAGS -Werror"
10959
10960		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10961printf %s "checking if $CC supports -Werror... " >&6; }
10962		cacheid=xorg_cv_cc_flag__Werror
10963		if eval test \${$cacheid+y}
10964then :
10965  printf %s "(cached) " >&6
10966else $as_nop
10967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10968/* end confdefs.h.  */
10969int i;
10970int
10971main (void)
10972{
10973
10974  ;
10975  return 0;
10976}
10977_ACEOF
10978if ac_fn_c_try_link "$LINENO"
10979then :
10980  eval $cacheid=yes
10981else $as_nop
10982  eval $cacheid=no
10983fi
10984rm -f core conftest.err conftest.$ac_objext conftest.beam \
10985    conftest$ac_exeext conftest.$ac_ext
10986fi
10987
10988
10989		CFLAGS="$xorg_testset_save_CFLAGS"
10990
10991		eval supported=\$$cacheid
10992		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10993printf "%s\n" "$supported" >&6; }
10994		if test "$supported" = "yes" ; then
10995			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10996			found="yes"
10997		fi
10998	fi
10999
11000	if test $found = "no" ; then
11001		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11002			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11003		fi
11004
11005		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11006			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11007		fi
11008
11009		CFLAGS="$CFLAGS -errwarn"
11010
11011		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11012printf %s "checking if $CC supports -errwarn... " >&6; }
11013		cacheid=xorg_cv_cc_flag__errwarn
11014		if eval test \${$cacheid+y}
11015then :
11016  printf %s "(cached) " >&6
11017else $as_nop
11018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11019/* end confdefs.h.  */
11020int i;
11021int
11022main (void)
11023{
11024
11025  ;
11026  return 0;
11027}
11028_ACEOF
11029if ac_fn_c_try_link "$LINENO"
11030then :
11031  eval $cacheid=yes
11032else $as_nop
11033  eval $cacheid=no
11034fi
11035rm -f core conftest.err conftest.$ac_objext conftest.beam \
11036    conftest$ac_exeext conftest.$ac_ext
11037fi
11038
11039
11040		CFLAGS="$xorg_testset_save_CFLAGS"
11041
11042		eval supported=\$$cacheid
11043		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11044printf "%s\n" "$supported" >&6; }
11045		if test "$supported" = "yes" ; then
11046			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11047			found="yes"
11048		fi
11049	fi
11050
11051
11052
11053# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11054# activate it with -Werror, so we add it here explicitly.
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068xorg_testset_save_CFLAGS="$CFLAGS"
11069
11070if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11071	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11072	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11073printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11074if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11075then :
11076  printf %s "(cached) " >&6
11077else $as_nop
11078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11079/* end confdefs.h.  */
11080int i;
11081_ACEOF
11082if ac_fn_c_try_compile "$LINENO"
11083then :
11084  xorg_cv_cc_flag_unknown_warning_option=yes
11085else $as_nop
11086  xorg_cv_cc_flag_unknown_warning_option=no
11087fi
11088rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11089fi
11090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11091printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11092	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11093	CFLAGS="$xorg_testset_save_CFLAGS"
11094fi
11095
11096if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11097	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11098		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11099	fi
11100	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11101	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11102printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11103if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11104then :
11105  printf %s "(cached) " >&6
11106else $as_nop
11107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11108/* end confdefs.h.  */
11109int i;
11110_ACEOF
11111if ac_fn_c_try_compile "$LINENO"
11112then :
11113  xorg_cv_cc_flag_unused_command_line_argument=yes
11114else $as_nop
11115  xorg_cv_cc_flag_unused_command_line_argument=no
11116fi
11117rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11118fi
11119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11120printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11121	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11122	CFLAGS="$xorg_testset_save_CFLAGS"
11123fi
11124
11125found="no"
11126
11127	if test $found = "no" ; then
11128		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11129			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11130		fi
11131
11132		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11133			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11134		fi
11135
11136		CFLAGS="$CFLAGS -Werror=attributes"
11137
11138		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11139printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11140		cacheid=xorg_cv_cc_flag__Werror_attributes
11141		if eval test \${$cacheid+y}
11142then :
11143  printf %s "(cached) " >&6
11144else $as_nop
11145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11146/* end confdefs.h.  */
11147int i;
11148int
11149main (void)
11150{
11151
11152  ;
11153  return 0;
11154}
11155_ACEOF
11156if ac_fn_c_try_link "$LINENO"
11157then :
11158  eval $cacheid=yes
11159else $as_nop
11160  eval $cacheid=no
11161fi
11162rm -f core conftest.err conftest.$ac_objext conftest.beam \
11163    conftest$ac_exeext conftest.$ac_ext
11164fi
11165
11166
11167		CFLAGS="$xorg_testset_save_CFLAGS"
11168
11169		eval supported=\$$cacheid
11170		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11171printf "%s\n" "$supported" >&6; }
11172		if test "$supported" = "yes" ; then
11173			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11174			found="yes"
11175		fi
11176	fi
11177
11178
11179
11180if test "x$STRICT_COMPILE" = "xyes"; then
11181    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11182    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11183fi
11184
11185
11186
11187
11188
11189
11190
11191
11192cat >>confdefs.h <<_ACEOF
11193#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11194_ACEOF
11195
11196	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11197	if test "x$PVM" = "x"; then
11198		PVM="0"
11199	fi
11200
11201printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11202
11203	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11204	if test "x$PVP" = "x"; then
11205		PVP="0"
11206	fi
11207
11208printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11209
11210
11211
11212CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11213mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11214|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11215touch \$(top_srcdir)/ChangeLog; \
11216echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11217
11218
11219
11220
11221macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11222INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11223mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11224|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11225touch \$(top_srcdir)/INSTALL; \
11226echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11227
11228
11229
11230
11231
11232
11233case $host_os in
11234    solaris*)
11235        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11236        # check for a man page file found in later versions that use
11237        # traditional section numbers instead
11238        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11239printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11240if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11241then :
11242  printf %s "(cached) " >&6
11243else $as_nop
11244  test "$cross_compiling" = yes &&
11245  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11246if test -r "/usr/share/man/man7/attributes.7"; then
11247  ac_cv_file__usr_share_man_man7_attributes_7=yes
11248else
11249  ac_cv_file__usr_share_man_man7_attributes_7=no
11250fi
11251fi
11252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11253printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11254if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11255then :
11256  SYSV_MAN_SECTIONS=false
11257else $as_nop
11258  SYSV_MAN_SECTIONS=true
11259fi
11260
11261        ;;
11262    *) SYSV_MAN_SECTIONS=false ;;
11263esac
11264
11265if test x$APP_MAN_SUFFIX = x    ; then
11266    APP_MAN_SUFFIX=1
11267fi
11268if test x$APP_MAN_DIR = x    ; then
11269    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11270fi
11271
11272if test x$LIB_MAN_SUFFIX = x    ; then
11273    LIB_MAN_SUFFIX=3
11274fi
11275if test x$LIB_MAN_DIR = x    ; then
11276    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11277fi
11278
11279if test x$FILE_MAN_SUFFIX = x    ; then
11280    case $SYSV_MAN_SECTIONS in
11281	true)				FILE_MAN_SUFFIX=4  ;;
11282	*)				FILE_MAN_SUFFIX=5  ;;
11283    esac
11284fi
11285if test x$FILE_MAN_DIR = x    ; then
11286    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11287fi
11288
11289if test x$MISC_MAN_SUFFIX = x    ; then
11290    case $SYSV_MAN_SECTIONS in
11291	true)				MISC_MAN_SUFFIX=5  ;;
11292	*)				MISC_MAN_SUFFIX=7  ;;
11293    esac
11294fi
11295if test x$MISC_MAN_DIR = x    ; then
11296    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11297fi
11298
11299if test x$DRIVER_MAN_SUFFIX = x    ; then
11300    case $SYSV_MAN_SECTIONS in
11301	true)				DRIVER_MAN_SUFFIX=7  ;;
11302	*)				DRIVER_MAN_SUFFIX=4  ;;
11303    esac
11304fi
11305if test x$DRIVER_MAN_DIR = x    ; then
11306    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11307fi
11308
11309if test x$ADMIN_MAN_SUFFIX = x    ; then
11310    case $SYSV_MAN_SECTIONS in
11311	true)				ADMIN_MAN_SUFFIX=1m ;;
11312	*)				ADMIN_MAN_SUFFIX=8  ;;
11313    esac
11314fi
11315if test x$ADMIN_MAN_DIR = x    ; then
11316    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11317fi
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333XORG_MAN_PAGE="X Version 11"
11334
11335MAN_SUBSTS="\
11336	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11337	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11338	-e 's|__xservername__|Xorg|g' \
11339	-e 's|__xconfigfile__|xorg.conf|g' \
11340	-e 's|__projectroot__|\$(prefix)|g' \
11341	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11342	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11343	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11344	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11345	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11346	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11347	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11348
11349
11350
11351# Check whether --enable-silent-rules was given.
11352if test ${enable_silent_rules+y}
11353then :
11354  enableval=$enable_silent_rules;
11355fi
11356
11357case $enable_silent_rules in # (((
11358  yes) AM_DEFAULT_VERBOSITY=0;;
11359   no) AM_DEFAULT_VERBOSITY=1;;
11360    *) AM_DEFAULT_VERBOSITY=0;;
11361esac
11362am_make=${MAKE-make}
11363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11364printf %s "checking whether $am_make supports nested variables... " >&6; }
11365if test ${am_cv_make_support_nested_variables+y}
11366then :
11367  printf %s "(cached) " >&6
11368else $as_nop
11369  if printf "%s\n" 'TRUE=$(BAR$(V))
11370BAR0=false
11371BAR1=true
11372V=1
11373am__doit:
11374	@$(TRUE)
11375.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11376  am_cv_make_support_nested_variables=yes
11377else
11378  am_cv_make_support_nested_variables=no
11379fi
11380fi
11381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11382printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11383if test $am_cv_make_support_nested_variables = yes; then
11384    AM_V='$(V)'
11385  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11386else
11387  AM_V=$AM_DEFAULT_VERBOSITY
11388  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11389fi
11390AM_BACKSLASH='\'
11391
11392
11393
11394
11395ac_ext=c
11396ac_cpp='$CPP $CPPFLAGS'
11397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11399ac_compiler_gnu=$ac_cv_c_compiler_gnu
11400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
11401printf %s "checking how to run the C preprocessor... " >&6; }
11402# On Suns, sometimes $CPP names a directory.
11403if test -n "$CPP" && test -d "$CPP"; then
11404  CPP=
11405fi
11406if test -z "$CPP"; then
11407  if test ${ac_cv_prog_CPP+y}
11408then :
11409  printf %s "(cached) " >&6
11410else $as_nop
11411      # Double quotes because $CC needs to be expanded
11412    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
11413    do
11414      ac_preproc_ok=false
11415for ac_c_preproc_warn_flag in '' yes
11416do
11417  # Use a header file that comes with gcc, so configuring glibc
11418  # with a fresh cross-compiler works.
11419  # On the NeXT, cc -E runs the code through the compiler's parser,
11420  # not just through cpp. "Syntax error" is here to catch this case.
11421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11422/* end confdefs.h.  */
11423#include <limits.h>
11424		     Syntax error
11425_ACEOF
11426if ac_fn_c_try_cpp "$LINENO"
11427then :
11428
11429else $as_nop
11430  # Broken: fails on valid input.
11431continue
11432fi
11433rm -f conftest.err conftest.i conftest.$ac_ext
11434
11435  # OK, works on sane cases.  Now check whether nonexistent headers
11436  # can be detected and how.
11437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11438/* end confdefs.h.  */
11439#include <ac_nonexistent.h>
11440_ACEOF
11441if ac_fn_c_try_cpp "$LINENO"
11442then :
11443  # Broken: success on invalid input.
11444continue
11445else $as_nop
11446  # Passes both tests.
11447ac_preproc_ok=:
11448break
11449fi
11450rm -f conftest.err conftest.i conftest.$ac_ext
11451
11452done
11453# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11454rm -f conftest.i conftest.err conftest.$ac_ext
11455if $ac_preproc_ok
11456then :
11457  break
11458fi
11459
11460    done
11461    ac_cv_prog_CPP=$CPP
11462
11463fi
11464  CPP=$ac_cv_prog_CPP
11465else
11466  ac_cv_prog_CPP=$CPP
11467fi
11468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
11469printf "%s\n" "$CPP" >&6; }
11470ac_preproc_ok=false
11471for ac_c_preproc_warn_flag in '' yes
11472do
11473  # Use a header file that comes with gcc, so configuring glibc
11474  # with a fresh cross-compiler works.
11475  # On the NeXT, cc -E runs the code through the compiler's parser,
11476  # not just through cpp. "Syntax error" is here to catch this case.
11477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11478/* end confdefs.h.  */
11479#include <limits.h>
11480		     Syntax error
11481_ACEOF
11482if ac_fn_c_try_cpp "$LINENO"
11483then :
11484
11485else $as_nop
11486  # Broken: fails on valid input.
11487continue
11488fi
11489rm -f conftest.err conftest.i conftest.$ac_ext
11490
11491  # OK, works on sane cases.  Now check whether nonexistent headers
11492  # can be detected and how.
11493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11494/* end confdefs.h.  */
11495#include <ac_nonexistent.h>
11496_ACEOF
11497if ac_fn_c_try_cpp "$LINENO"
11498then :
11499  # Broken: success on invalid input.
11500continue
11501else $as_nop
11502  # Passes both tests.
11503ac_preproc_ok=:
11504break
11505fi
11506rm -f conftest.err conftest.i conftest.$ac_ext
11507
11508done
11509# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11510rm -f conftest.i conftest.err conftest.$ac_ext
11511if $ac_preproc_ok
11512then :
11513
11514else $as_nop
11515  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11516printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11517as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
11518See \`config.log' for more details" "$LINENO" 5; }
11519fi
11520
11521ac_ext=c
11522ac_cpp='$CPP $CPPFLAGS'
11523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11525ac_compiler_gnu=$ac_cv_c_compiler_gnu
11526
11527
11528
11529if test -n "$ac_tool_prefix"; then
11530  # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
11531set dummy ${ac_tool_prefix}cpp; ac_word=$2
11532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11533printf %s "checking for $ac_word... " >&6; }
11534if test ${ac_cv_path_RAWCPP+y}
11535then :
11536  printf %s "(cached) " >&6
11537else $as_nop
11538  case $RAWCPP in
11539  [\\/]* | ?:[\\/]*)
11540  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
11541  ;;
11542  *)
11543  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11544as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
11545for as_dir in $as_dummy
11546do
11547  IFS=$as_save_IFS
11548  case $as_dir in #(((
11549    '') as_dir=./ ;;
11550    */) ;;
11551    *) as_dir=$as_dir/ ;;
11552  esac
11553    for ac_exec_ext in '' $ac_executable_extensions; do
11554  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11555    ac_cv_path_RAWCPP="$as_dir$ac_word$ac_exec_ext"
11556    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11557    break 2
11558  fi
11559done
11560  done
11561IFS=$as_save_IFS
11562
11563  ;;
11564esac
11565fi
11566RAWCPP=$ac_cv_path_RAWCPP
11567if test -n "$RAWCPP"; then
11568  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
11569printf "%s\n" "$RAWCPP" >&6; }
11570else
11571  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11572printf "%s\n" "no" >&6; }
11573fi
11574
11575
11576fi
11577if test -z "$ac_cv_path_RAWCPP"; then
11578  ac_pt_RAWCPP=$RAWCPP
11579  # Extract the first word of "cpp", so it can be a program name with args.
11580set dummy cpp; ac_word=$2
11581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11582printf %s "checking for $ac_word... " >&6; }
11583if test ${ac_cv_path_ac_pt_RAWCPP+y}
11584then :
11585  printf %s "(cached) " >&6
11586else $as_nop
11587  case $ac_pt_RAWCPP in
11588  [\\/]* | ?:[\\/]*)
11589  ac_cv_path_ac_pt_RAWCPP="$ac_pt_RAWCPP" # Let the user override the test with a path.
11590  ;;
11591  *)
11592  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11593as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
11594for as_dir in $as_dummy
11595do
11596  IFS=$as_save_IFS
11597  case $as_dir in #(((
11598    '') as_dir=./ ;;
11599    */) ;;
11600    *) as_dir=$as_dir/ ;;
11601  esac
11602    for ac_exec_ext in '' $ac_executable_extensions; do
11603  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11604    ac_cv_path_ac_pt_RAWCPP="$as_dir$ac_word$ac_exec_ext"
11605    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11606    break 2
11607  fi
11608done
11609  done
11610IFS=$as_save_IFS
11611
11612  ;;
11613esac
11614fi
11615ac_pt_RAWCPP=$ac_cv_path_ac_pt_RAWCPP
11616if test -n "$ac_pt_RAWCPP"; then
11617  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_RAWCPP" >&5
11618printf "%s\n" "$ac_pt_RAWCPP" >&6; }
11619else
11620  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11621printf "%s\n" "no" >&6; }
11622fi
11623
11624  if test "x$ac_pt_RAWCPP" = x; then
11625    RAWCPP="${CPP}"
11626  else
11627    case $cross_compiling:$ac_tool_warned in
11628yes:)
11629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11630printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11631ac_tool_warned=yes ;;
11632esac
11633    RAWCPP=$ac_pt_RAWCPP
11634  fi
11635else
11636  RAWCPP="$ac_cv_path_RAWCPP"
11637fi
11638
11639
11640# Check for flag to avoid builtin definitions - assumes unix is predefined,
11641# which is not the best choice for supporting other OS'es, but covers most
11642# of the ones we need for now.
11643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
11644printf %s "checking if $RAWCPP requires -undef... " >&6; }
11645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11646/* end confdefs.h.  */
11647Does cpp redefine unix ?
11648_ACEOF
11649if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
11650	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11651printf "%s\n" "no" >&6; }
11652else
11653	if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
11654		RAWCPPFLAGS=-undef
11655		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11656printf "%s\n" "yes" >&6; }
11657	# under Cygwin unix is still defined even with -undef
11658	elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
11659		RAWCPPFLAGS="-undef -ansi"
11660		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
11661printf "%s\n" "yes, with -ansi" >&6; }
11662	else
11663		as_fn_error $? "${RAWCPP} defines unix with or without -undef.  I don't know what to do." "$LINENO" 5
11664	fi
11665fi
11666rm -f conftest.$ac_ext
11667
11668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
11669printf %s "checking if $RAWCPP requires -traditional... " >&6; }
11670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11671/* end confdefs.h.  */
11672Does cpp preserve   "whitespace"?
11673_ACEOF
11674if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   "'` -eq 1 ; then
11675	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11676printf "%s\n" "no" >&6; }
11677else
11678	if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   "'` -eq 1 ; then
11679		TRADITIONALCPPFLAGS="-traditional"
11680		RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
11681		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11682printf "%s\n" "yes" >&6; }
11683	else
11684		as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." "$LINENO" 5
11685	fi
11686fi
11687rm -f conftest.$ac_ext
11688
11689
11690
11691
11692
11693# Build options
11694DEFAULT_XRDB=xrdb
11695DEFAULT_XMODMAP=xmodmap
11696DEFAULT_TWM=twm
11697DEFAULT_XCLOCK=xclock
11698DEFAULT_XTERM=xterm
11699# You always want to specify the full path to the X server
11700DEFAULT_XSERVER=${bindir}/X
11701DEFAULT_XAUTH=xauth
11702DEFAULT_XINIT=xinit
11703DEFAULT_XINITDIR=${sysconfdir}/X11/xinit
11704
11705
11706# Check whether --with-xrdb was given.
11707if test ${with_xrdb+y}
11708then :
11709  withval=$with_xrdb; XRDB="$withval"
11710else $as_nop
11711  XRDB="$DEFAULT_XRDB"
11712fi
11713
11714
11715
11716# Check whether --with-xmodmap was given.
11717if test ${with_xmodmap+y}
11718then :
11719  withval=$with_xmodmap; XMODMAP="$withval"
11720else $as_nop
11721  XMODMAP="$DEFAULT_XMODMAP"
11722fi
11723
11724
11725
11726# Check whether --with-twm was given.
11727if test ${with_twm+y}
11728then :
11729  withval=$with_twm; TWM="$withval"
11730else $as_nop
11731  TWM="$DEFAULT_TWM"
11732fi
11733
11734
11735
11736# Check whether --with-xclock was given.
11737if test ${with_xclock+y}
11738then :
11739  withval=$with_xclock; XCLOCK="$withval"
11740else $as_nop
11741  XCLOCK="$DEFAULT_XCLOCK"
11742fi
11743
11744
11745
11746# Check whether --with-xterm was given.
11747if test ${with_xterm+y}
11748then :
11749  withval=$with_xterm; XTERM="$withval"
11750else $as_nop
11751  XTERM="$DEFAULT_XTERM"
11752fi
11753
11754
11755
11756# Check whether --with-xserver was given.
11757if test ${with_xserver+y}
11758then :
11759  withval=$with_xserver; XSERVER="$withval"
11760else $as_nop
11761  XSERVER="$DEFAULT_XSERVER"
11762fi
11763
11764
11765
11766# Check whether --with-xauth was given.
11767if test ${with_xauth+y}
11768then :
11769  withval=$with_xauth; XAUTH="$withval"
11770else $as_nop
11771  XAUTH="$DEFAULT_XAUTH"
11772fi
11773
11774
11775
11776# Check whether --with-xinit was given.
11777if test ${with_xinit+y}
11778then :
11779  withval=$with_xinit; XINIT="$withval"
11780else $as_nop
11781  XINIT="$DEFAULT_XINIT"
11782fi
11783
11784
11785
11786# Check whether --with-xinitdir was given.
11787if test ${with_xinitdir+y}
11788then :
11789  withval=$with_xinitdir; XINITDIR="$withval"
11790else $as_nop
11791  XINITDIR="$DEFAULT_XINITDIR"
11792fi
11793
11794
11795
11796# Check whether --with-launchd was given.
11797if test ${with_launchd+y}
11798then :
11799  withval=$with_launchd; LAUNCHD=$withval
11800else $as_nop
11801  LAUNCHD=auto
11802fi
11803
11804
11805# Check whether --with-launchagents-dir was given.
11806if test ${with_launchagents_dir+y}
11807then :
11808  withval=$with_launchagents_dir;  launchagentsdir="${withval}"
11809else $as_nop
11810   launchagentsdir="/Library/LaunchAgents"
11811fi
11812
11813
11814# Check whether --with-launchagent-xserver was given.
11815if test ${with_launchagent_xserver+y}
11816then :
11817  withval=$with_launchagent_xserver;  launchagentxserver="${withval}"
11818else $as_nop
11819   launchagentxserver="no"
11820fi
11821
11822
11823# Check whether --with-launchdaemons-dir was given.
11824if test ${with_launchdaemons_dir+y}
11825then :
11826  withval=$with_launchdaemons_dir;  launchdaemonsdir="${withval}"
11827else $as_nop
11828   launchdaemonsdir="/Library/LaunchDaemons"
11829fi
11830
11831
11832# Check whether --with-launchd-id-prefix was given.
11833if test ${with_launchd_id_prefix+y}
11834then :
11835  withval=$with_launchd_id_prefix;  bundleidprefix="${withval}"
11836else $as_nop
11837   bundleidprefix="org.x"
11838fi
11839
11840
11841# Check whether --with-bundle-id-prefix was given.
11842if test ${with_bundle_id_prefix+y}
11843then :
11844  withval=$with_bundle_id_prefix;  bundleidprefix="${withval}"
11845fi
11846
11847
11848if test "x$LAUNCHD" = "xauto"; then
11849	unset LAUNCHD
11850	# Extract the first word of "launchd", so it can be a program name with args.
11851set dummy launchd; ac_word=$2
11852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11853printf %s "checking for $ac_word... " >&6; }
11854if test ${ac_cv_prog_LAUNCHD+y}
11855then :
11856  printf %s "(cached) " >&6
11857else $as_nop
11858  if test -n "$LAUNCHD"; then
11859  ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test.
11860else
11861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11862for as_dir in $PATH$PATH_SEPARATOR/sbin
11863do
11864  IFS=$as_save_IFS
11865  case $as_dir in #(((
11866    '') as_dir=./ ;;
11867    */) ;;
11868    *) as_dir=$as_dir/ ;;
11869  esac
11870    for ac_exec_ext in '' $ac_executable_extensions; do
11871  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11872    ac_cv_prog_LAUNCHD="yes"
11873    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11874    break 2
11875  fi
11876done
11877  done
11878IFS=$as_save_IFS
11879
11880  test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no"
11881fi
11882fi
11883LAUNCHD=$ac_cv_prog_LAUNCHD
11884if test -n "$LAUNCHD"; then
11885  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5
11886printf "%s\n" "$LAUNCHD" >&6; }
11887else
11888  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11889printf "%s\n" "no" >&6; }
11890fi
11891
11892
11893fi
11894
11895
11896printf "%s\n" "#define BUNDLE_ID_PREFIX \"$bundleidprefix\"" >>confdefs.h
11897
11898
11899
11900
11901
11902 if test "x$LAUNCHD" = "xyes"; then
11903  LAUNCHD_TRUE=
11904  LAUNCHD_FALSE='#'
11905else
11906  LAUNCHD_TRUE='#'
11907  LAUNCHD_FALSE=
11908fi
11909
11910 if test "x$launchagentxserver" != "xno"; then
11911  LAUNCHAGENT_XSERVER_TRUE=
11912  LAUNCHAGENT_XSERVER_FALSE='#'
11913else
11914  LAUNCHAGENT_XSERVER_TRUE='#'
11915  LAUNCHAGENT_XSERVER_FALSE=
11916fi
11917
11918
11919# Checks for library functions.
11920ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
11921if test "x$ac_cv_func_asprintf" = xyes
11922then :
11923  printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h
11924
11925fi
11926
11927
11928# Checks for pkg-config packages
11929
11930pkg_failed=no
11931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XINIT" >&5
11932printf %s "checking for XINIT... " >&6; }
11933
11934if test -n "$XINIT_CFLAGS"; then
11935    pkg_cv_XINIT_CFLAGS="$XINIT_CFLAGS"
11936 elif test -n "$PKG_CONFIG"; then
11937    if test -n "$PKG_CONFIG" && \
11938    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.22\""; } >&5
11939  ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.22") 2>&5
11940  ac_status=$?
11941  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11942  test $ac_status = 0; }; then
11943  pkg_cv_XINIT_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.22" 2>/dev/null`
11944		      test "x$?" != "x0" && pkg_failed=yes
11945else
11946  pkg_failed=yes
11947fi
11948 else
11949    pkg_failed=untried
11950fi
11951if test -n "$XINIT_LIBS"; then
11952    pkg_cv_XINIT_LIBS="$XINIT_LIBS"
11953 elif test -n "$PKG_CONFIG"; then
11954    if test -n "$PKG_CONFIG" && \
11955    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.22\""; } >&5
11956  ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.22") 2>&5
11957  ac_status=$?
11958  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11959  test $ac_status = 0; }; then
11960  pkg_cv_XINIT_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.22" 2>/dev/null`
11961		      test "x$?" != "x0" && pkg_failed=yes
11962else
11963  pkg_failed=yes
11964fi
11965 else
11966    pkg_failed=untried
11967fi
11968
11969
11970
11971if test $pkg_failed = yes; then
11972   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11973printf "%s\n" "no" >&6; }
11974
11975if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11976        _pkg_short_errors_supported=yes
11977else
11978        _pkg_short_errors_supported=no
11979fi
11980        if test $_pkg_short_errors_supported = yes; then
11981	        XINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xproto >= 7.0.22" 2>&1`
11982        else
11983	        XINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xproto >= 7.0.22" 2>&1`
11984        fi
11985	# Put the nasty error message in config.log where it belongs
11986	echo "$XINIT_PKG_ERRORS" >&5
11987
11988	as_fn_error $? "Package requirements (x11 xproto >= 7.0.22) were not met:
11989
11990$XINIT_PKG_ERRORS
11991
11992Consider adjusting the PKG_CONFIG_PATH environment variable if you
11993installed software in a non-standard prefix.
11994
11995Alternatively, you may set the environment variables XINIT_CFLAGS
11996and XINIT_LIBS to avoid the need to call pkg-config.
11997See the pkg-config man page for more details." "$LINENO" 5
11998elif test $pkg_failed = untried; then
11999     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12000printf "%s\n" "no" >&6; }
12001	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12002printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12003as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12004is in your PATH or set the PKG_CONFIG environment variable to the full
12005path to pkg-config.
12006
12007Alternatively, you may set the environment variables XINIT_CFLAGS
12008and XINIT_LIBS to avoid the need to call pkg-config.
12009See the pkg-config man page for more details.
12010
12011To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12012See \`config.log' for more details" "$LINENO" 5; }
12013else
12014	XINIT_CFLAGS=$pkg_cv_XINIT_CFLAGS
12015	XINIT_LIBS=$pkg_cv_XINIT_LIBS
12016        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12017printf "%s\n" "yes" >&6; }
12018
12019fi
12020
12021case $host_os in
12022    *bsd*)
12023        XINIT_CFLAGS="$XINIT_CFLAGS -DCSRG_BASED"
12024        ;;
12025esac
12026
12027
12028for ac_prog in mcookie
12029do
12030  # Extract the first word of "$ac_prog", so it can be a program name with args.
12031set dummy $ac_prog; ac_word=$2
12032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12033printf %s "checking for $ac_word... " >&6; }
12034if test ${ac_cv_path_MCOOKIE+y}
12035then :
12036  printf %s "(cached) " >&6
12037else $as_nop
12038  case $MCOOKIE in
12039  [\\/]* | ?:[\\/]*)
12040  ac_cv_path_MCOOKIE="$MCOOKIE" # Let the user override the test with a path.
12041  ;;
12042  *)
12043  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12044as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/local/bin"
12045for as_dir in $as_dummy
12046do
12047  IFS=$as_save_IFS
12048  case $as_dir in #(((
12049    '') as_dir=./ ;;
12050    */) ;;
12051    *) as_dir=$as_dir/ ;;
12052  esac
12053    for ac_exec_ext in '' $ac_executable_extensions; do
12054  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12055    ac_cv_path_MCOOKIE="$as_dir$ac_word$ac_exec_ext"
12056    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12057    break 2
12058  fi
12059done
12060  done
12061IFS=$as_save_IFS
12062
12063  ;;
12064esac
12065fi
12066MCOOKIE=$ac_cv_path_MCOOKIE
12067if test -n "$MCOOKIE"; then
12068  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MCOOKIE" >&5
12069printf "%s\n" "$MCOOKIE" >&6; }
12070else
12071  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12072printf "%s\n" "no" >&6; }
12073fi
12074
12075
12076  test -n "$MCOOKIE" && break
12077done
12078test -n "$MCOOKIE" || MCOOKIE="$MCOOKIE"
12079
12080
12081# If mcookie not found, try openssl, else per-system fallbacks
12082if test "x$MCOOKIE" = x ; then
12083    for ac_prog in openssl
12084do
12085  # Extract the first word of "$ac_prog", so it can be a program name with args.
12086set dummy $ac_prog; ac_word=$2
12087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12088printf %s "checking for $ac_word... " >&6; }
12089if test ${ac_cv_path_OPENSSL+y}
12090then :
12091  printf %s "(cached) " >&6
12092else $as_nop
12093  case $OPENSSL in
12094  [\\/]* | ?:[\\/]*)
12095  ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
12096  ;;
12097  *)
12098  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12099as_dummy="$PATH:/bin:/usr/bin:/usr/sbin:/usr/lib:/usr/libexec:/usr/local/bin"
12100for as_dir in $as_dummy
12101do
12102  IFS=$as_save_IFS
12103  case $as_dir in #(((
12104    '') as_dir=./ ;;
12105    */) ;;
12106    *) as_dir=$as_dir/ ;;
12107  esac
12108    for ac_exec_ext in '' $ac_executable_extensions; do
12109  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12110    ac_cv_path_OPENSSL="$as_dir$ac_word$ac_exec_ext"
12111    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12112    break 2
12113  fi
12114done
12115  done
12116IFS=$as_save_IFS
12117
12118  ;;
12119esac
12120fi
12121OPENSSL=$ac_cv_path_OPENSSL
12122if test -n "$OPENSSL"; then
12123  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
12124printf "%s\n" "$OPENSSL" >&6; }
12125else
12126  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12127printf "%s\n" "no" >&6; }
12128fi
12129
12130
12131  test -n "$OPENSSL" && break
12132done
12133test -n "$OPENSSL" || OPENSSL="$OPENSSL"
12134
12135    if test "x$OPENSSL" != x ; then
12136        MCOOKIE="$OPENSSL rand -hex 16"
12137    else
12138        case $host_os in
12139            *solaris*)
12140                MCOOKIE="/usr/bin/od -X -A n -N 16 /dev/urandom | /usr/bin/tr -d ' '"
12141                ;;
12142        esac
12143    fi
12144fi
12145if test "x$MCOOKIE" != x ; then
12146	STARTX_COOKIE_FLAGS='-DHAS_COOKIE_MAKER -DMK_COOKIE="$(MCOOKIE)"'
12147	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: startx will depend on \"$MCOOKIE\" to generate xauth cookies" >&5
12148printf "%s\n" "$as_me: startx will depend on \"$MCOOKIE\" to generate xauth cookies" >&6;}
12149fi
12150
12151
12152# Additional substitutions in startx, xinitrc & man pages
12153SHELL_CMD="/bin/sh"
12154XSERVERNAME="Xorg"
12155XCONFIGFILE="xorg.conf"
12156XCONFIGFILEMAN='${XCONFIGFILE} (${FILE_MAN_SUFFIX})'
12157case $host_os in
12158    cygwin*)
12159	XSERVERNAME="XWin"
12160	XCONFIGFILE="XWinrc"
12161	;;
12162    darwin*)
12163	XSERVERNAME="Xquartz"
12164	XCONFIGFILE="defaults"
12165	XCONFIGFILEMAN='defaults (1)'
12166	;;
12167    *solaris*)
12168	SHELL_CMD="/bin/ksh"
12169	;;
12170esac
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186ac_config_files="$ac_config_files Makefile man/Makefile launchd/Makefile launchd/privileged_startx/Makefile launchd/user_startx/Makefile"
12187
12188cat >confcache <<\_ACEOF
12189# This file is a shell script that caches the results of configure
12190# tests run on this system so they can be shared between configure
12191# scripts and configure runs, see configure's option --config-cache.
12192# It is not useful on other systems.  If it contains results you don't
12193# want to keep, you may remove or edit it.
12194#
12195# config.status only pays attention to the cache file if you give it
12196# the --recheck option to rerun configure.
12197#
12198# `ac_cv_env_foo' variables (set or unset) will be overridden when
12199# loading this file, other *unset* `ac_cv_foo' will be assigned the
12200# following values.
12201
12202_ACEOF
12203
12204# The following way of writing the cache mishandles newlines in values,
12205# but we know of no workaround that is simple, portable, and efficient.
12206# So, we kill variables containing newlines.
12207# Ultrix sh set writes to stderr and can't be redirected directly,
12208# and sets the high bit in the cache file unless we assign to the vars.
12209(
12210  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12211    eval ac_val=\$$ac_var
12212    case $ac_val in #(
12213    *${as_nl}*)
12214      case $ac_var in #(
12215      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12216printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12217      esac
12218      case $ac_var in #(
12219      _ | IFS | as_nl) ;; #(
12220      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12221      *) { eval $ac_var=; unset $ac_var;} ;;
12222      esac ;;
12223    esac
12224  done
12225
12226  (set) 2>&1 |
12227    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12228    *${as_nl}ac_space=\ *)
12229      # `set' does not quote correctly, so add quotes: double-quote
12230      # substitution turns \\\\ into \\, and sed turns \\ into \.
12231      sed -n \
12232	"s/'/'\\\\''/g;
12233	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12234      ;; #(
12235    *)
12236      # `set' quotes correctly as required by POSIX, so do not add quotes.
12237      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12238      ;;
12239    esac |
12240    sort
12241) |
12242  sed '
12243     /^ac_cv_env_/b end
12244     t clear
12245     :clear
12246     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
12247     t end
12248     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12249     :end' >>confcache
12250if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12251  if test -w "$cache_file"; then
12252    if test "x$cache_file" != "x/dev/null"; then
12253      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12254printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
12255      if test ! -f "$cache_file" || test -h "$cache_file"; then
12256	cat confcache >"$cache_file"
12257      else
12258        case $cache_file in #(
12259        */* | ?:*)
12260	  mv -f confcache "$cache_file"$$ &&
12261	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12262        *)
12263	  mv -f confcache "$cache_file" ;;
12264	esac
12265      fi
12266    fi
12267  else
12268    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12269printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
12270  fi
12271fi
12272rm -f confcache
12273
12274test "x$prefix" = xNONE && prefix=$ac_default_prefix
12275# Let make expand exec_prefix.
12276test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12277
12278DEFS=-DHAVE_CONFIG_H
12279
12280ac_libobjs=
12281ac_ltlibobjs=
12282U=
12283for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12284  # 1. Remove the extension, and $U if already installed.
12285  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12286  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
12287  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12288  #    will be set to the directory where LIBOBJS objects are built.
12289  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12290  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12291done
12292LIBOBJS=$ac_libobjs
12293
12294LTLIBOBJS=$ac_ltlibobjs
12295
12296
12297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12298printf %s "checking that generated files are newer than configure... " >&6; }
12299   if test -n "$am_sleep_pid"; then
12300     # Hide warnings about reused PIDs.
12301     wait $am_sleep_pid 2>/dev/null
12302   fi
12303   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
12304printf "%s\n" "done" >&6; }
12305if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12306  as_fn_error $? "conditional \"AMDEP\" was never defined.
12307Usually this means the macro was only invoked conditionally." "$LINENO" 5
12308fi
12309if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12310  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12311Usually this means the macro was only invoked conditionally." "$LINENO" 5
12312fi
12313 if test -n "$EXEEXT"; then
12314  am__EXEEXT_TRUE=
12315  am__EXEEXT_FALSE='#'
12316else
12317  am__EXEEXT_TRUE='#'
12318  am__EXEEXT_FALSE=
12319fi
12320
12321if test -z "${LAUNCHD_TRUE}" && test -z "${LAUNCHD_FALSE}"; then
12322  as_fn_error $? "conditional \"LAUNCHD\" was never defined.
12323Usually this means the macro was only invoked conditionally." "$LINENO" 5
12324fi
12325if test -z "${LAUNCHAGENT_XSERVER_TRUE}" && test -z "${LAUNCHAGENT_XSERVER_FALSE}"; then
12326  as_fn_error $? "conditional \"LAUNCHAGENT_XSERVER\" was never defined.
12327Usually this means the macro was only invoked conditionally." "$LINENO" 5
12328fi
12329
12330: "${CONFIG_STATUS=./config.status}"
12331ac_write_fail=0
12332ac_clean_files_save=$ac_clean_files
12333ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12335printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
12336as_write_fail=0
12337cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12338#! $SHELL
12339# Generated by $as_me.
12340# Run this file to recreate the current configuration.
12341# Compiler output produced by configure, useful for debugging
12342# configure, is in config.log if it exists.
12343
12344debug=false
12345ac_cs_recheck=false
12346ac_cs_silent=false
12347
12348SHELL=\${CONFIG_SHELL-$SHELL}
12349export SHELL
12350_ASEOF
12351cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12352## -------------------- ##
12353## M4sh Initialization. ##
12354## -------------------- ##
12355
12356# Be more Bourne compatible
12357DUALCASE=1; export DUALCASE # for MKS sh
12358as_nop=:
12359if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12360then :
12361  emulate sh
12362  NULLCMD=:
12363  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12364  # is contrary to our usage.  Disable this feature.
12365  alias -g '${1+"$@"}'='"$@"'
12366  setopt NO_GLOB_SUBST
12367else $as_nop
12368  case `(set -o) 2>/dev/null` in #(
12369  *posix*) :
12370    set -o posix ;; #(
12371  *) :
12372     ;;
12373esac
12374fi
12375
12376
12377
12378# Reset variables that may have inherited troublesome values from
12379# the environment.
12380
12381# IFS needs to be set, to space, tab, and newline, in precisely that order.
12382# (If _AS_PATH_WALK were called with IFS unset, it would have the
12383# side effect of setting IFS to empty, thus disabling word splitting.)
12384# Quoting is to prevent editors from complaining about space-tab.
12385as_nl='
12386'
12387export as_nl
12388IFS=" ""	$as_nl"
12389
12390PS1='$ '
12391PS2='> '
12392PS4='+ '
12393
12394# Ensure predictable behavior from utilities with locale-dependent output.
12395LC_ALL=C
12396export LC_ALL
12397LANGUAGE=C
12398export LANGUAGE
12399
12400# We cannot yet rely on "unset" to work, but we need these variables
12401# to be unset--not just set to an empty or harmless value--now, to
12402# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
12403# also avoids known problems related to "unset" and subshell syntax
12404# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12405for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12406do eval test \${$as_var+y} \
12407  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12408done
12409
12410# Ensure that fds 0, 1, and 2 are open.
12411if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12412if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12413if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
12414
12415# The user is always right.
12416if ${PATH_SEPARATOR+false} :; then
12417  PATH_SEPARATOR=:
12418  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12419    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12420      PATH_SEPARATOR=';'
12421  }
12422fi
12423
12424
12425# Find who we are.  Look in the path if we contain no directory separator.
12426as_myself=
12427case $0 in #((
12428  *[\\/]* ) as_myself=$0 ;;
12429  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12430for as_dir in $PATH
12431do
12432  IFS=$as_save_IFS
12433  case $as_dir in #(((
12434    '') as_dir=./ ;;
12435    */) ;;
12436    *) as_dir=$as_dir/ ;;
12437  esac
12438    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12439  done
12440IFS=$as_save_IFS
12441
12442     ;;
12443esac
12444# We did not find ourselves, most probably we were run as `sh COMMAND'
12445# in which case we are not to be found in the path.
12446if test "x$as_myself" = x; then
12447  as_myself=$0
12448fi
12449if test ! -f "$as_myself"; then
12450  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12451  exit 1
12452fi
12453
12454
12455
12456# as_fn_error STATUS ERROR [LINENO LOG_FD]
12457# ----------------------------------------
12458# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12459# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12460# script with STATUS, using 1 if that was 0.
12461as_fn_error ()
12462{
12463  as_status=$1; test $as_status -eq 0 && as_status=1
12464  if test "$4"; then
12465    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12466    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12467  fi
12468  printf "%s\n" "$as_me: error: $2" >&2
12469  as_fn_exit $as_status
12470} # as_fn_error
12471
12472
12473
12474# as_fn_set_status STATUS
12475# -----------------------
12476# Set $? to STATUS, without forking.
12477as_fn_set_status ()
12478{
12479  return $1
12480} # as_fn_set_status
12481
12482# as_fn_exit STATUS
12483# -----------------
12484# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12485as_fn_exit ()
12486{
12487  set +e
12488  as_fn_set_status $1
12489  exit $1
12490} # as_fn_exit
12491
12492# as_fn_unset VAR
12493# ---------------
12494# Portably unset VAR.
12495as_fn_unset ()
12496{
12497  { eval $1=; unset $1;}
12498}
12499as_unset=as_fn_unset
12500
12501# as_fn_append VAR VALUE
12502# ----------------------
12503# Append the text in VALUE to the end of the definition contained in VAR. Take
12504# advantage of any shell optimizations that allow amortized linear growth over
12505# repeated appends, instead of the typical quadratic growth present in naive
12506# implementations.
12507if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12508then :
12509  eval 'as_fn_append ()
12510  {
12511    eval $1+=\$2
12512  }'
12513else $as_nop
12514  as_fn_append ()
12515  {
12516    eval $1=\$$1\$2
12517  }
12518fi # as_fn_append
12519
12520# as_fn_arith ARG...
12521# ------------------
12522# Perform arithmetic evaluation on the ARGs, and store the result in the
12523# global $as_val. Take advantage of shells that can avoid forks. The arguments
12524# must be portable across $(()) and expr.
12525if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12526then :
12527  eval 'as_fn_arith ()
12528  {
12529    as_val=$(( $* ))
12530  }'
12531else $as_nop
12532  as_fn_arith ()
12533  {
12534    as_val=`expr "$@" || test $? -eq 1`
12535  }
12536fi # as_fn_arith
12537
12538
12539if expr a : '\(a\)' >/dev/null 2>&1 &&
12540   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12541  as_expr=expr
12542else
12543  as_expr=false
12544fi
12545
12546if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12547  as_basename=basename
12548else
12549  as_basename=false
12550fi
12551
12552if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12553  as_dirname=dirname
12554else
12555  as_dirname=false
12556fi
12557
12558as_me=`$as_basename -- "$0" ||
12559$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12560	 X"$0" : 'X\(//\)$' \| \
12561	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12562printf "%s\n" X/"$0" |
12563    sed '/^.*\/\([^/][^/]*\)\/*$/{
12564	    s//\1/
12565	    q
12566	  }
12567	  /^X\/\(\/\/\)$/{
12568	    s//\1/
12569	    q
12570	  }
12571	  /^X\/\(\/\).*/{
12572	    s//\1/
12573	    q
12574	  }
12575	  s/.*/./; q'`
12576
12577# Avoid depending upon Character Ranges.
12578as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12579as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12580as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12581as_cr_digits='0123456789'
12582as_cr_alnum=$as_cr_Letters$as_cr_digits
12583
12584
12585# Determine whether it's possible to make 'echo' print without a newline.
12586# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12587# for compatibility with existing Makefiles.
12588ECHO_C= ECHO_N= ECHO_T=
12589case `echo -n x` in #(((((
12590-n*)
12591  case `echo 'xy\c'` in
12592  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12593  xy)  ECHO_C='\c';;
12594  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12595       ECHO_T='	';;
12596  esac;;
12597*)
12598  ECHO_N='-n';;
12599esac
12600
12601# For backward compatibility with old third-party macros, we provide
12602# the shell variables $as_echo and $as_echo_n.  New code should use
12603# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12604as_echo='printf %s\n'
12605as_echo_n='printf %s'
12606
12607rm -f conf$$ conf$$.exe conf$$.file
12608if test -d conf$$.dir; then
12609  rm -f conf$$.dir/conf$$.file
12610else
12611  rm -f conf$$.dir
12612  mkdir conf$$.dir 2>/dev/null
12613fi
12614if (echo >conf$$.file) 2>/dev/null; then
12615  if ln -s conf$$.file conf$$ 2>/dev/null; then
12616    as_ln_s='ln -s'
12617    # ... but there are two gotchas:
12618    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12619    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12620    # In both cases, we have to default to `cp -pR'.
12621    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12622      as_ln_s='cp -pR'
12623  elif ln conf$$.file conf$$ 2>/dev/null; then
12624    as_ln_s=ln
12625  else
12626    as_ln_s='cp -pR'
12627  fi
12628else
12629  as_ln_s='cp -pR'
12630fi
12631rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12632rmdir conf$$.dir 2>/dev/null
12633
12634
12635# as_fn_mkdir_p
12636# -------------
12637# Create "$as_dir" as a directory, including parents if necessary.
12638as_fn_mkdir_p ()
12639{
12640
12641  case $as_dir in #(
12642  -*) as_dir=./$as_dir;;
12643  esac
12644  test -d "$as_dir" || eval $as_mkdir_p || {
12645    as_dirs=
12646    while :; do
12647      case $as_dir in #(
12648      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12649      *) as_qdir=$as_dir;;
12650      esac
12651      as_dirs="'$as_qdir' $as_dirs"
12652      as_dir=`$as_dirname -- "$as_dir" ||
12653$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12654	 X"$as_dir" : 'X\(//\)[^/]' \| \
12655	 X"$as_dir" : 'X\(//\)$' \| \
12656	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12657printf "%s\n" X"$as_dir" |
12658    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12659	    s//\1/
12660	    q
12661	  }
12662	  /^X\(\/\/\)[^/].*/{
12663	    s//\1/
12664	    q
12665	  }
12666	  /^X\(\/\/\)$/{
12667	    s//\1/
12668	    q
12669	  }
12670	  /^X\(\/\).*/{
12671	    s//\1/
12672	    q
12673	  }
12674	  s/.*/./; q'`
12675      test -d "$as_dir" && break
12676    done
12677    test -z "$as_dirs" || eval "mkdir $as_dirs"
12678  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12679
12680
12681} # as_fn_mkdir_p
12682if mkdir -p . 2>/dev/null; then
12683  as_mkdir_p='mkdir -p "$as_dir"'
12684else
12685  test -d ./-p && rmdir ./-p
12686  as_mkdir_p=false
12687fi
12688
12689
12690# as_fn_executable_p FILE
12691# -----------------------
12692# Test if FILE is an executable regular file.
12693as_fn_executable_p ()
12694{
12695  test -f "$1" && test -x "$1"
12696} # as_fn_executable_p
12697as_test_x='test -x'
12698as_executable_p=as_fn_executable_p
12699
12700# Sed expression to map a string onto a valid CPP name.
12701as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12702
12703# Sed expression to map a string onto a valid variable name.
12704as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12705
12706
12707exec 6>&1
12708## ----------------------------------- ##
12709## Main body of $CONFIG_STATUS script. ##
12710## ----------------------------------- ##
12711_ASEOF
12712test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12713
12714cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12715# Save the log message, to keep $0 and so on meaningful, and to
12716# report actual input values of CONFIG_FILES etc. instead of their
12717# values after options handling.
12718ac_log="
12719This file was extended by xinit $as_me 1.4.3, which was
12720generated by GNU Autoconf 2.71.  Invocation command line was
12721
12722  CONFIG_FILES    = $CONFIG_FILES
12723  CONFIG_HEADERS  = $CONFIG_HEADERS
12724  CONFIG_LINKS    = $CONFIG_LINKS
12725  CONFIG_COMMANDS = $CONFIG_COMMANDS
12726  $ $0 $@
12727
12728on `(hostname || uname -n) 2>/dev/null | sed 1q`
12729"
12730
12731_ACEOF
12732
12733case $ac_config_files in *"
12734"*) set x $ac_config_files; shift; ac_config_files=$*;;
12735esac
12736
12737case $ac_config_headers in *"
12738"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12739esac
12740
12741
12742cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12743# Files that config.status was made for.
12744config_files="$ac_config_files"
12745config_headers="$ac_config_headers"
12746config_commands="$ac_config_commands"
12747
12748_ACEOF
12749
12750cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12751ac_cs_usage="\
12752\`$as_me' instantiates files and other configuration actions
12753from templates according to the current configuration.  Unless the files
12754and actions are specified as TAGs, all are instantiated by default.
12755
12756Usage: $0 [OPTION]... [TAG]...
12757
12758  -h, --help       print this help, then exit
12759  -V, --version    print version number and configuration settings, then exit
12760      --config     print configuration, then exit
12761  -q, --quiet, --silent
12762                   do not print progress messages
12763  -d, --debug      don't remove temporary files
12764      --recheck    update $as_me by reconfiguring in the same conditions
12765      --file=FILE[:TEMPLATE]
12766                   instantiate the configuration file FILE
12767      --header=FILE[:TEMPLATE]
12768                   instantiate the configuration header FILE
12769
12770Configuration files:
12771$config_files
12772
12773Configuration headers:
12774$config_headers
12775
12776Configuration commands:
12777$config_commands
12778
12779Report bugs to <https://gitlab.freedesktop.org/xorg/app/xinit/-/issues>."
12780
12781_ACEOF
12782ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12783ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12784cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12785ac_cs_config='$ac_cs_config_escaped'
12786ac_cs_version="\\
12787xinit config.status 1.4.3
12788configured by $0, generated by GNU Autoconf 2.71,
12789  with options \\"\$ac_cs_config\\"
12790
12791Copyright (C) 2021 Free Software Foundation, Inc.
12792This config.status script is free software; the Free Software Foundation
12793gives unlimited permission to copy, distribute and modify it."
12794
12795ac_pwd='$ac_pwd'
12796srcdir='$srcdir'
12797INSTALL='$INSTALL'
12798MKDIR_P='$MKDIR_P'
12799AWK='$AWK'
12800test -n "\$AWK" || AWK=awk
12801_ACEOF
12802
12803cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12804# The default lists apply if the user does not specify any file.
12805ac_need_defaults=:
12806while test $# != 0
12807do
12808  case $1 in
12809  --*=?*)
12810    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12811    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12812    ac_shift=:
12813    ;;
12814  --*=)
12815    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12816    ac_optarg=
12817    ac_shift=:
12818    ;;
12819  *)
12820    ac_option=$1
12821    ac_optarg=$2
12822    ac_shift=shift
12823    ;;
12824  esac
12825
12826  case $ac_option in
12827  # Handling of the options.
12828  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12829    ac_cs_recheck=: ;;
12830  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12831    printf "%s\n" "$ac_cs_version"; exit ;;
12832  --config | --confi | --conf | --con | --co | --c )
12833    printf "%s\n" "$ac_cs_config"; exit ;;
12834  --debug | --debu | --deb | --de | --d | -d )
12835    debug=: ;;
12836  --file | --fil | --fi | --f )
12837    $ac_shift
12838    case $ac_optarg in
12839    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12840    '') as_fn_error $? "missing file argument" ;;
12841    esac
12842    as_fn_append CONFIG_FILES " '$ac_optarg'"
12843    ac_need_defaults=false;;
12844  --header | --heade | --head | --hea )
12845    $ac_shift
12846    case $ac_optarg in
12847    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12848    esac
12849    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12850    ac_need_defaults=false;;
12851  --he | --h)
12852    # Conflict between --help and --header
12853    as_fn_error $? "ambiguous option: \`$1'
12854Try \`$0 --help' for more information.";;
12855  --help | --hel | -h )
12856    printf "%s\n" "$ac_cs_usage"; exit ;;
12857  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12858  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12859    ac_cs_silent=: ;;
12860
12861  # This is an error.
12862  -*) as_fn_error $? "unrecognized option: \`$1'
12863Try \`$0 --help' for more information." ;;
12864
12865  *) as_fn_append ac_config_targets " $1"
12866     ac_need_defaults=false ;;
12867
12868  esac
12869  shift
12870done
12871
12872ac_configure_extra_args=
12873
12874if $ac_cs_silent; then
12875  exec 6>/dev/null
12876  ac_configure_extra_args="$ac_configure_extra_args --silent"
12877fi
12878
12879_ACEOF
12880cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12881if \$ac_cs_recheck; then
12882  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12883  shift
12884  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12885  CONFIG_SHELL='$SHELL'
12886  export CONFIG_SHELL
12887  exec "\$@"
12888fi
12889
12890_ACEOF
12891cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12892exec 5>>config.log
12893{
12894  echo
12895  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12896## Running $as_me. ##
12897_ASBOX
12898  printf "%s\n" "$ac_log"
12899} >&5
12900
12901_ACEOF
12902cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12903#
12904# INIT-COMMANDS
12905#
12906AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12907
12908_ACEOF
12909
12910cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12911
12912# Handling of arguments.
12913for ac_config_target in $ac_config_targets
12914do
12915  case $ac_config_target in
12916    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12917    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12918    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12919    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12920    "launchd/Makefile") CONFIG_FILES="$CONFIG_FILES launchd/Makefile" ;;
12921    "launchd/privileged_startx/Makefile") CONFIG_FILES="$CONFIG_FILES launchd/privileged_startx/Makefile" ;;
12922    "launchd/user_startx/Makefile") CONFIG_FILES="$CONFIG_FILES launchd/user_startx/Makefile" ;;
12923
12924  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12925  esac
12926done
12927
12928
12929# If the user did not use the arguments to specify the items to instantiate,
12930# then the envvar interface is used.  Set only those that are not.
12931# We use the long form for the default assignment because of an extremely
12932# bizarre bug on SunOS 4.1.3.
12933if $ac_need_defaults; then
12934  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12935  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12936  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12937fi
12938
12939# Have a temporary directory for convenience.  Make it in the build tree
12940# simply because there is no reason against having it here, and in addition,
12941# creating and moving files from /tmp can sometimes cause problems.
12942# Hook for its removal unless debugging.
12943# Note that there is a small window in which the directory will not be cleaned:
12944# after its creation but before its name has been assigned to `$tmp'.
12945$debug ||
12946{
12947  tmp= ac_tmp=
12948  trap 'exit_status=$?
12949  : "${ac_tmp:=$tmp}"
12950  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12951' 0
12952  trap 'as_fn_exit 1' 1 2 13 15
12953}
12954# Create a (secure) tmp directory for tmp files.
12955
12956{
12957  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12958  test -d "$tmp"
12959}  ||
12960{
12961  tmp=./conf$$-$RANDOM
12962  (umask 077 && mkdir "$tmp")
12963} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12964ac_tmp=$tmp
12965
12966# Set up the scripts for CONFIG_FILES section.
12967# No need to generate them if there are no CONFIG_FILES.
12968# This happens for instance with `./config.status config.h'.
12969if test -n "$CONFIG_FILES"; then
12970
12971
12972ac_cr=`echo X | tr X '\015'`
12973# On cygwin, bash can eat \r inside `` if the user requested igncr.
12974# But we know of no other shell where ac_cr would be empty at this
12975# point, so we can use a bashism as a fallback.
12976if test "x$ac_cr" = x; then
12977  eval ac_cr=\$\'\\r\'
12978fi
12979ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12980if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12981  ac_cs_awk_cr='\\r'
12982else
12983  ac_cs_awk_cr=$ac_cr
12984fi
12985
12986echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12987_ACEOF
12988
12989
12990{
12991  echo "cat >conf$$subs.awk <<_ACEOF" &&
12992  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12993  echo "_ACEOF"
12994} >conf$$subs.sh ||
12995  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12996ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12997ac_delim='%!_!# '
12998for ac_last_try in false false false false false :; do
12999  . ./conf$$subs.sh ||
13000    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13001
13002  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13003  if test $ac_delim_n = $ac_delim_num; then
13004    break
13005  elif $ac_last_try; then
13006    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13007  else
13008    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13009  fi
13010done
13011rm -f conf$$subs.sh
13012
13013cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13014cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13015_ACEOF
13016sed -n '
13017h
13018s/^/S["/; s/!.*/"]=/
13019p
13020g
13021s/^[^!]*!//
13022:repl
13023t repl
13024s/'"$ac_delim"'$//
13025t delim
13026:nl
13027h
13028s/\(.\{148\}\)..*/\1/
13029t more1
13030s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13031p
13032n
13033b repl
13034:more1
13035s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13036p
13037g
13038s/.\{148\}//
13039t nl
13040:delim
13041h
13042s/\(.\{148\}\)..*/\1/
13043t more2
13044s/["\\]/\\&/g; s/^/"/; s/$/"/
13045p
13046b
13047:more2
13048s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13049p
13050g
13051s/.\{148\}//
13052t delim
13053' <conf$$subs.awk | sed '
13054/^[^""]/{
13055  N
13056  s/\n//
13057}
13058' >>$CONFIG_STATUS || ac_write_fail=1
13059rm -f conf$$subs.awk
13060cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13061_ACAWK
13062cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13063  for (key in S) S_is_set[key] = 1
13064  FS = ""
13065
13066}
13067{
13068  line = $ 0
13069  nfields = split(line, field, "@")
13070  substed = 0
13071  len = length(field[1])
13072  for (i = 2; i < nfields; i++) {
13073    key = field[i]
13074    keylen = length(key)
13075    if (S_is_set[key]) {
13076      value = S[key]
13077      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13078      len += length(value) + length(field[++i])
13079      substed = 1
13080    } else
13081      len += 1 + keylen
13082  }
13083
13084  print line
13085}
13086
13087_ACAWK
13088_ACEOF
13089cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13090if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13091  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13092else
13093  cat
13094fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13095  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13096_ACEOF
13097
13098# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13099# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13100# trailing colons and then remove the whole line if VPATH becomes empty
13101# (actually we leave an empty line to preserve line numbers).
13102if test "x$srcdir" = x.; then
13103  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13104h
13105s///
13106s/^/:/
13107s/[	 ]*$/:/
13108s/:\$(srcdir):/:/g
13109s/:\${srcdir}:/:/g
13110s/:@srcdir@:/:/g
13111s/^:*//
13112s/:*$//
13113x
13114s/\(=[	 ]*\).*/\1/
13115G
13116s/\n//
13117s/^[^=]*=[	 ]*$//
13118}'
13119fi
13120
13121cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13122fi # test -n "$CONFIG_FILES"
13123
13124# Set up the scripts for CONFIG_HEADERS section.
13125# No need to generate them if there are no CONFIG_HEADERS.
13126# This happens for instance with `./config.status Makefile'.
13127if test -n "$CONFIG_HEADERS"; then
13128cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13129BEGIN {
13130_ACEOF
13131
13132# Transform confdefs.h into an awk script `defines.awk', embedded as
13133# here-document in config.status, that substitutes the proper values into
13134# config.h.in to produce config.h.
13135
13136# Create a delimiter string that does not exist in confdefs.h, to ease
13137# handling of long lines.
13138ac_delim='%!_!# '
13139for ac_last_try in false false :; do
13140  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13141  if test -z "$ac_tt"; then
13142    break
13143  elif $ac_last_try; then
13144    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13145  else
13146    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13147  fi
13148done
13149
13150# For the awk script, D is an array of macro values keyed by name,
13151# likewise P contains macro parameters if any.  Preserve backslash
13152# newline sequences.
13153
13154ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13155sed -n '
13156s/.\{148\}/&'"$ac_delim"'/g
13157t rset
13158:rset
13159s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13160t def
13161d
13162:def
13163s/\\$//
13164t bsnl
13165s/["\\]/\\&/g
13166s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13167D["\1"]=" \3"/p
13168s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13169d
13170:bsnl
13171s/["\\]/\\&/g
13172s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13173D["\1"]=" \3\\\\\\n"\\/p
13174t cont
13175s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13176t cont
13177d
13178:cont
13179n
13180s/.\{148\}/&'"$ac_delim"'/g
13181t clear
13182:clear
13183s/\\$//
13184t bsnlc
13185s/["\\]/\\&/g; s/^/"/; s/$/"/p
13186d
13187:bsnlc
13188s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13189b cont
13190' <confdefs.h | sed '
13191s/'"$ac_delim"'/"\\\
13192"/g' >>$CONFIG_STATUS || ac_write_fail=1
13193
13194cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13195  for (key in D) D_is_set[key] = 1
13196  FS = ""
13197}
13198/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13199  line = \$ 0
13200  split(line, arg, " ")
13201  if (arg[1] == "#") {
13202    defundef = arg[2]
13203    mac1 = arg[3]
13204  } else {
13205    defundef = substr(arg[1], 2)
13206    mac1 = arg[2]
13207  }
13208  split(mac1, mac2, "(") #)
13209  macro = mac2[1]
13210  prefix = substr(line, 1, index(line, defundef) - 1)
13211  if (D_is_set[macro]) {
13212    # Preserve the white space surrounding the "#".
13213    print prefix "define", macro P[macro] D[macro]
13214    next
13215  } else {
13216    # Replace #undef with comments.  This is necessary, for example,
13217    # in the case of _POSIX_SOURCE, which is predefined and required
13218    # on some systems where configure will not decide to define it.
13219    if (defundef == "undef") {
13220      print "/*", prefix defundef, macro, "*/"
13221      next
13222    }
13223  }
13224}
13225{ print }
13226_ACAWK
13227_ACEOF
13228cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13229  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13230fi # test -n "$CONFIG_HEADERS"
13231
13232
13233eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13234shift
13235for ac_tag
13236do
13237  case $ac_tag in
13238  :[FHLC]) ac_mode=$ac_tag; continue;;
13239  esac
13240  case $ac_mode$ac_tag in
13241  :[FHL]*:*);;
13242  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13243  :[FH]-) ac_tag=-:-;;
13244  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13245  esac
13246  ac_save_IFS=$IFS
13247  IFS=:
13248  set x $ac_tag
13249  IFS=$ac_save_IFS
13250  shift
13251  ac_file=$1
13252  shift
13253
13254  case $ac_mode in
13255  :L) ac_source=$1;;
13256  :[FH])
13257    ac_file_inputs=
13258    for ac_f
13259    do
13260      case $ac_f in
13261      -) ac_f="$ac_tmp/stdin";;
13262      *) # Look for the file first in the build tree, then in the source tree
13263	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13264	 # because $ac_f cannot contain `:'.
13265	 test -f "$ac_f" ||
13266	   case $ac_f in
13267	   [\\/$]*) false;;
13268	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13269	   esac ||
13270	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13271      esac
13272      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13273      as_fn_append ac_file_inputs " '$ac_f'"
13274    done
13275
13276    # Let's still pretend it is `configure' which instantiates (i.e., don't
13277    # use $as_me), people would be surprised to read:
13278    #    /* config.h.  Generated by config.status.  */
13279    configure_input='Generated from '`
13280	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13281	`' by configure.'
13282    if test x"$ac_file" != x-; then
13283      configure_input="$ac_file.  $configure_input"
13284      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13285printf "%s\n" "$as_me: creating $ac_file" >&6;}
13286    fi
13287    # Neutralize special characters interpreted by sed in replacement strings.
13288    case $configure_input in #(
13289    *\&* | *\|* | *\\* )
13290       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
13291       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13292    *) ac_sed_conf_input=$configure_input;;
13293    esac
13294
13295    case $ac_tag in
13296    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13297      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13298    esac
13299    ;;
13300  esac
13301
13302  ac_dir=`$as_dirname -- "$ac_file" ||
13303$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13304	 X"$ac_file" : 'X\(//\)[^/]' \| \
13305	 X"$ac_file" : 'X\(//\)$' \| \
13306	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13307printf "%s\n" X"$ac_file" |
13308    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13309	    s//\1/
13310	    q
13311	  }
13312	  /^X\(\/\/\)[^/].*/{
13313	    s//\1/
13314	    q
13315	  }
13316	  /^X\(\/\/\)$/{
13317	    s//\1/
13318	    q
13319	  }
13320	  /^X\(\/\).*/{
13321	    s//\1/
13322	    q
13323	  }
13324	  s/.*/./; q'`
13325  as_dir="$ac_dir"; as_fn_mkdir_p
13326  ac_builddir=.
13327
13328case "$ac_dir" in
13329.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13330*)
13331  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
13332  # A ".." for each directory in $ac_dir_suffix.
13333  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13334  case $ac_top_builddir_sub in
13335  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13336  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13337  esac ;;
13338esac
13339ac_abs_top_builddir=$ac_pwd
13340ac_abs_builddir=$ac_pwd$ac_dir_suffix
13341# for backward compatibility:
13342ac_top_builddir=$ac_top_build_prefix
13343
13344case $srcdir in
13345  .)  # We are building in place.
13346    ac_srcdir=.
13347    ac_top_srcdir=$ac_top_builddir_sub
13348    ac_abs_top_srcdir=$ac_pwd ;;
13349  [\\/]* | ?:[\\/]* )  # Absolute name.
13350    ac_srcdir=$srcdir$ac_dir_suffix;
13351    ac_top_srcdir=$srcdir
13352    ac_abs_top_srcdir=$srcdir ;;
13353  *) # Relative name.
13354    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13355    ac_top_srcdir=$ac_top_build_prefix$srcdir
13356    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13357esac
13358ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13359
13360
13361  case $ac_mode in
13362  :F)
13363  #
13364  # CONFIG_FILE
13365  #
13366
13367  case $INSTALL in
13368  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13369  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13370  esac
13371  ac_MKDIR_P=$MKDIR_P
13372  case $MKDIR_P in
13373  [\\/$]* | ?:[\\/]* ) ;;
13374  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13375  esac
13376_ACEOF
13377
13378cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13379# If the template does not know about datarootdir, expand it.
13380# FIXME: This hack should be removed a few years after 2.60.
13381ac_datarootdir_hack=; ac_datarootdir_seen=
13382ac_sed_dataroot='
13383/datarootdir/ {
13384  p
13385  q
13386}
13387/@datadir@/p
13388/@docdir@/p
13389/@infodir@/p
13390/@localedir@/p
13391/@mandir@/p'
13392case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13393*datarootdir*) ac_datarootdir_seen=yes;;
13394*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13395  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13396printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13397_ACEOF
13398cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13399  ac_datarootdir_hack='
13400  s&@datadir@&$datadir&g
13401  s&@docdir@&$docdir&g
13402  s&@infodir@&$infodir&g
13403  s&@localedir@&$localedir&g
13404  s&@mandir@&$mandir&g
13405  s&\\\${datarootdir}&$datarootdir&g' ;;
13406esac
13407_ACEOF
13408
13409# Neutralize VPATH when `$srcdir' = `.'.
13410# Shell code in configure.ac might set extrasub.
13411# FIXME: do we really want to maintain this feature?
13412cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13413ac_sed_extra="$ac_vpsub
13414$extrasub
13415_ACEOF
13416cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13417:t
13418/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13419s|@configure_input@|$ac_sed_conf_input|;t t
13420s&@top_builddir@&$ac_top_builddir_sub&;t t
13421s&@top_build_prefix@&$ac_top_build_prefix&;t t
13422s&@srcdir@&$ac_srcdir&;t t
13423s&@abs_srcdir@&$ac_abs_srcdir&;t t
13424s&@top_srcdir@&$ac_top_srcdir&;t t
13425s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13426s&@builddir@&$ac_builddir&;t t
13427s&@abs_builddir@&$ac_abs_builddir&;t t
13428s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13429s&@INSTALL@&$ac_INSTALL&;t t
13430s&@MKDIR_P@&$ac_MKDIR_P&;t t
13431$ac_datarootdir_hack
13432"
13433eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13434  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13435
13436test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13437  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13438  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13439      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13440  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13441which seems to be undefined.  Please make sure it is defined" >&5
13442printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13443which seems to be undefined.  Please make sure it is defined" >&2;}
13444
13445  rm -f "$ac_tmp/stdin"
13446  case $ac_file in
13447  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13448  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13449  esac \
13450  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13451 ;;
13452  :H)
13453  #
13454  # CONFIG_HEADER
13455  #
13456  if test x"$ac_file" != x-; then
13457    {
13458      printf "%s\n" "/* $configure_input  */" >&1 \
13459      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13460    } >"$ac_tmp/config.h" \
13461      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13462    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13463      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13464printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13465    else
13466      rm -f "$ac_file"
13467      mv "$ac_tmp/config.h" "$ac_file" \
13468	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13469    fi
13470  else
13471    printf "%s\n" "/* $configure_input  */" >&1 \
13472      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13473      || as_fn_error $? "could not create -" "$LINENO" 5
13474  fi
13475# Compute "$ac_file"'s index in $config_headers.
13476_am_arg="$ac_file"
13477_am_stamp_count=1
13478for _am_header in $config_headers :; do
13479  case $_am_header in
13480    $_am_arg | $_am_arg:* )
13481      break ;;
13482    * )
13483      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13484  esac
13485done
13486echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13487$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13488	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13489	 X"$_am_arg" : 'X\(//\)$' \| \
13490	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13491printf "%s\n" X"$_am_arg" |
13492    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13493	    s//\1/
13494	    q
13495	  }
13496	  /^X\(\/\/\)[^/].*/{
13497	    s//\1/
13498	    q
13499	  }
13500	  /^X\(\/\/\)$/{
13501	    s//\1/
13502	    q
13503	  }
13504	  /^X\(\/\).*/{
13505	    s//\1/
13506	    q
13507	  }
13508	  s/.*/./; q'`/stamp-h$_am_stamp_count
13509 ;;
13510
13511  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13512printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13513 ;;
13514  esac
13515
13516
13517  case $ac_file$ac_mode in
13518    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13519  # Older Autoconf quotes --file arguments for eval, but not when files
13520  # are listed without --file.  Let's play safe and only enable the eval
13521  # if we detect the quoting.
13522  # TODO: see whether this extra hack can be removed once we start
13523  # requiring Autoconf 2.70 or later.
13524  case $CONFIG_FILES in #(
13525  *\'*) :
13526    eval set x "$CONFIG_FILES" ;; #(
13527  *) :
13528    set x $CONFIG_FILES ;; #(
13529  *) :
13530     ;;
13531esac
13532  shift
13533  # Used to flag and report bootstrapping failures.
13534  am_rc=0
13535  for am_mf
13536  do
13537    # Strip MF so we end up with the name of the file.
13538    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13539    # Check whether this is an Automake generated Makefile which includes
13540    # dependency-tracking related rules and includes.
13541    # Grep'ing the whole file directly is not great: AIX grep has a line
13542    # limit of 2048, but all sed's we know have understand at least 4000.
13543    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13544      || continue
13545    am_dirpart=`$as_dirname -- "$am_mf" ||
13546$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13547	 X"$am_mf" : 'X\(//\)[^/]' \| \
13548	 X"$am_mf" : 'X\(//\)$' \| \
13549	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13550printf "%s\n" X"$am_mf" |
13551    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13552	    s//\1/
13553	    q
13554	  }
13555	  /^X\(\/\/\)[^/].*/{
13556	    s//\1/
13557	    q
13558	  }
13559	  /^X\(\/\/\)$/{
13560	    s//\1/
13561	    q
13562	  }
13563	  /^X\(\/\).*/{
13564	    s//\1/
13565	    q
13566	  }
13567	  s/.*/./; q'`
13568    am_filepart=`$as_basename -- "$am_mf" ||
13569$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13570	 X"$am_mf" : 'X\(//\)$' \| \
13571	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13572printf "%s\n" X/"$am_mf" |
13573    sed '/^.*\/\([^/][^/]*\)\/*$/{
13574	    s//\1/
13575	    q
13576	  }
13577	  /^X\/\(\/\/\)$/{
13578	    s//\1/
13579	    q
13580	  }
13581	  /^X\/\(\/\).*/{
13582	    s//\1/
13583	    q
13584	  }
13585	  s/.*/./; q'`
13586    { echo "$as_me:$LINENO: cd "$am_dirpart" \
13587      && sed -e '/# am--include-marker/d' "$am_filepart" \
13588        | $MAKE -f - am--depfiles" >&5
13589   (cd "$am_dirpart" \
13590      && sed -e '/# am--include-marker/d' "$am_filepart" \
13591        | $MAKE -f - am--depfiles) >&5 2>&5
13592   ac_status=$?
13593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594   (exit $ac_status); } || am_rc=$?
13595  done
13596  if test $am_rc -ne 0; then
13597    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13598printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13599as_fn_error $? "Something went wrong bootstrapping makefile fragments
13600    for automatic dependency tracking.  If GNU make was not used, consider
13601    re-running the configure script with MAKE=\"gmake\" (or whatever is
13602    necessary).  You can also try re-running configure with the
13603    '--disable-dependency-tracking' option to at least be able to build
13604    the package (albeit without support for automatic dependency tracking).
13605See \`config.log' for more details" "$LINENO" 5; }
13606  fi
13607  { am_dirpart=; unset am_dirpart;}
13608  { am_filepart=; unset am_filepart;}
13609  { am_mf=; unset am_mf;}
13610  { am_rc=; unset am_rc;}
13611  rm -f conftest-deps.mk
13612}
13613 ;;
13614
13615  esac
13616done # for ac_tag
13617
13618
13619as_fn_exit 0
13620_ACEOF
13621ac_clean_files=$ac_clean_files_save
13622
13623test $ac_write_fail = 0 ||
13624  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13625
13626
13627# configure is writing to config.log, and then calls config.status.
13628# config.status does its own redirection, appending to config.log.
13629# Unfortunately, on DOS this fails, as config.log is still kept open
13630# by configure, so config.status won't be able to write to it; its
13631# output is simply discarded.  So we exec the FD to /dev/null,
13632# effectively closing config.log, so it can be properly (re)opened and
13633# appended to by config.status.  When coming back to configure, we
13634# need to make the FD available again.
13635if test "$no_create" != yes; then
13636  ac_cs_success=:
13637  ac_config_status_args=
13638  test "$silent" = yes &&
13639    ac_config_status_args="$ac_config_status_args --quiet"
13640  exec 5>/dev/null
13641  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13642  exec 5>>config.log
13643  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13644  # would make configure fail if this is the last instruction.
13645  $ac_cs_success || as_fn_exit 1
13646fi
13647if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13648  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13649printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13650fi
13651
13652
13653