configure revision e4b60806
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for xrefresh 1.0.7.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xrefresh/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/xrefresh/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='xrefresh'
614PACKAGE_TARNAME='xrefresh'
615PACKAGE_VERSION='1.0.7'
616PACKAGE_STRING='xrefresh 1.0.7'
617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xrefresh/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
657XREFRESH_LIBS
658XREFRESH_CFLAGS
659MAN_SUBSTS
660XORG_MAN_PAGE
661ADMIN_MAN_DIR
662DRIVER_MAN_DIR
663MISC_MAN_DIR
664FILE_MAN_DIR
665LIB_MAN_DIR
666APP_MAN_DIR
667ADMIN_MAN_SUFFIX
668DRIVER_MAN_SUFFIX
669MISC_MAN_SUFFIX
670FILE_MAN_SUFFIX
671LIB_MAN_SUFFIX
672APP_MAN_SUFFIX
673SED
674host_os
675host_vendor
676host_cpu
677host
678build_os
679build_vendor
680build_cpu
681build
682INSTALL_CMD
683PKG_CONFIG_LIBDIR
684PKG_CONFIG_PATH
685PKG_CONFIG
686CHANGELOG_CMD
687STRICT_CFLAGS
688CWARNFLAGS
689BASE_CFLAGS
690AM_BACKSLASH
691AM_DEFAULT_VERBOSITY
692AM_DEFAULT_V
693AM_V
694CSCOPE
695ETAGS
696CTAGS
697am__fastdepCC_FALSE
698am__fastdepCC_TRUE
699CCDEPMODE
700am__nodep
701AMDEPBACKSLASH
702AMDEP_FALSE
703AMDEP_TRUE
704am__include
705DEPDIR
706am__untar
707am__tar
708AMTAR
709am__leading_dot
710SET_MAKE
711AWK
712mkdir_p
713MKDIR_P
714INSTALL_STRIP_PROGRAM
715STRIP
716install_sh
717MAKEINFO
718AUTOHEADER
719AUTOMAKE
720AUTOCONF
721ACLOCAL
722VERSION
723PACKAGE
724CYGPATH_W
725am__isrc
726INSTALL_DATA
727INSTALL_SCRIPT
728INSTALL_PROGRAM
729OBJEXT
730EXEEXT
731ac_ct_CC
732CPPFLAGS
733LDFLAGS
734CFLAGS
735CC
736target_alias
737host_alias
738build_alias
739LIBS
740ECHO_T
741ECHO_N
742ECHO_C
743DEFS
744mandir
745localedir
746libdir
747psdir
748pdfdir
749dvidir
750htmldir
751infodir
752docdir
753oldincludedir
754includedir
755runstatedir
756localstatedir
757sharedstatedir
758sysconfdir
759datadir
760datarootdir
761libexecdir
762sbindir
763bindir
764program_transform_name
765prefix
766exec_prefix
767PACKAGE_URL
768PACKAGE_BUGREPORT
769PACKAGE_STRING
770PACKAGE_VERSION
771PACKAGE_TARNAME
772PACKAGE_NAME
773PATH_SEPARATOR
774SHELL
775am__quote'
776ac_subst_files=''
777ac_user_opts='
778enable_option_checking
779enable_dependency_tracking
780enable_silent_rules
781enable_selective_werror
782enable_strict_compilation
783'
784      ac_precious_vars='build_alias
785host_alias
786target_alias
787CC
788CFLAGS
789LDFLAGS
790LIBS
791CPPFLAGS
792PKG_CONFIG
793PKG_CONFIG_PATH
794PKG_CONFIG_LIBDIR
795XREFRESH_CFLAGS
796XREFRESH_LIBS'
797
798
799# Initialize some variables set by options.
800ac_init_help=
801ac_init_version=false
802ac_unrecognized_opts=
803ac_unrecognized_sep=
804# The variables have the same names as the options, with
805# dashes changed to underlines.
806cache_file=/dev/null
807exec_prefix=NONE
808no_create=
809no_recursion=
810prefix=NONE
811program_prefix=NONE
812program_suffix=NONE
813program_transform_name=s,x,x,
814silent=
815site=
816srcdir=
817verbose=
818x_includes=NONE
819x_libraries=NONE
820
821# Installation directory options.
822# These are left unexpanded so users can "make install exec_prefix=/foo"
823# and all the variables that are supposed to be based on exec_prefix
824# by default will actually change.
825# Use braces instead of parens because sh, perl, etc. also accept them.
826# (The list follows the same order as the GNU Coding Standards.)
827bindir='${exec_prefix}/bin'
828sbindir='${exec_prefix}/sbin'
829libexecdir='${exec_prefix}/libexec'
830datarootdir='${prefix}/share'
831datadir='${datarootdir}'
832sysconfdir='${prefix}/etc'
833sharedstatedir='${prefix}/com'
834localstatedir='${prefix}/var'
835runstatedir='${localstatedir}/run'
836includedir='${prefix}/include'
837oldincludedir='/usr/include'
838docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
839infodir='${datarootdir}/info'
840htmldir='${docdir}'
841dvidir='${docdir}'
842pdfdir='${docdir}'
843psdir='${docdir}'
844libdir='${exec_prefix}/lib'
845localedir='${datarootdir}/locale'
846mandir='${datarootdir}/man'
847
848ac_prev=
849ac_dashdash=
850for ac_option
851do
852  # If the previous option needs an argument, assign it.
853  if test -n "$ac_prev"; then
854    eval $ac_prev=\$ac_option
855    ac_prev=
856    continue
857  fi
858
859  case $ac_option in
860  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
861  *=)   ac_optarg= ;;
862  *)    ac_optarg=yes ;;
863  esac
864
865  case $ac_dashdash$ac_option in
866  --)
867    ac_dashdash=yes ;;
868
869  -bindir | --bindir | --bindi | --bind | --bin | --bi)
870    ac_prev=bindir ;;
871  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
872    bindir=$ac_optarg ;;
873
874  -build | --build | --buil | --bui | --bu)
875    ac_prev=build_alias ;;
876  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
877    build_alias=$ac_optarg ;;
878
879  -cache-file | --cache-file | --cache-fil | --cache-fi \
880  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
881    ac_prev=cache_file ;;
882  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
883  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
884    cache_file=$ac_optarg ;;
885
886  --config-cache | -C)
887    cache_file=config.cache ;;
888
889  -datadir | --datadir | --datadi | --datad)
890    ac_prev=datadir ;;
891  -datadir=* | --datadir=* | --datadi=* | --datad=*)
892    datadir=$ac_optarg ;;
893
894  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
895  | --dataroo | --dataro | --datar)
896    ac_prev=datarootdir ;;
897  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
898  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
899    datarootdir=$ac_optarg ;;
900
901  -disable-* | --disable-*)
902    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
903    # Reject names that are not valid shell variable names.
904    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905      as_fn_error $? "invalid feature name: \`$ac_useropt'"
906    ac_useropt_orig=$ac_useropt
907    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
908    case $ac_user_opts in
909      *"
910"enable_$ac_useropt"
911"*) ;;
912      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
913	 ac_unrecognized_sep=', ';;
914    esac
915    eval enable_$ac_useropt=no ;;
916
917  -docdir | --docdir | --docdi | --doc | --do)
918    ac_prev=docdir ;;
919  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
920    docdir=$ac_optarg ;;
921
922  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
923    ac_prev=dvidir ;;
924  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
925    dvidir=$ac_optarg ;;
926
927  -enable-* | --enable-*)
928    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
929    # Reject names that are not valid shell variable names.
930    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931      as_fn_error $? "invalid feature name: \`$ac_useropt'"
932    ac_useropt_orig=$ac_useropt
933    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
934    case $ac_user_opts in
935      *"
936"enable_$ac_useropt"
937"*) ;;
938      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
939	 ac_unrecognized_sep=', ';;
940    esac
941    eval enable_$ac_useropt=\$ac_optarg ;;
942
943  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
944  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
945  | --exec | --exe | --ex)
946    ac_prev=exec_prefix ;;
947  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
948  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
949  | --exec=* | --exe=* | --ex=*)
950    exec_prefix=$ac_optarg ;;
951
952  -gas | --gas | --ga | --g)
953    # Obsolete; use --with-gas.
954    with_gas=yes ;;
955
956  -help | --help | --hel | --he | -h)
957    ac_init_help=long ;;
958  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
959    ac_init_help=recursive ;;
960  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
961    ac_init_help=short ;;
962
963  -host | --host | --hos | --ho)
964    ac_prev=host_alias ;;
965  -host=* | --host=* | --hos=* | --ho=*)
966    host_alias=$ac_optarg ;;
967
968  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
969    ac_prev=htmldir ;;
970  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
971  | --ht=*)
972    htmldir=$ac_optarg ;;
973
974  -includedir | --includedir | --includedi | --included | --include \
975  | --includ | --inclu | --incl | --inc)
976    ac_prev=includedir ;;
977  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
978  | --includ=* | --inclu=* | --incl=* | --inc=*)
979    includedir=$ac_optarg ;;
980
981  -infodir | --infodir | --infodi | --infod | --info | --inf)
982    ac_prev=infodir ;;
983  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
984    infodir=$ac_optarg ;;
985
986  -libdir | --libdir | --libdi | --libd)
987    ac_prev=libdir ;;
988  -libdir=* | --libdir=* | --libdi=* | --libd=*)
989    libdir=$ac_optarg ;;
990
991  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
992  | --libexe | --libex | --libe)
993    ac_prev=libexecdir ;;
994  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
995  | --libexe=* | --libex=* | --libe=*)
996    libexecdir=$ac_optarg ;;
997
998  -localedir | --localedir | --localedi | --localed | --locale)
999    ac_prev=localedir ;;
1000  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1001    localedir=$ac_optarg ;;
1002
1003  -localstatedir | --localstatedir | --localstatedi | --localstated \
1004  | --localstate | --localstat | --localsta | --localst | --locals)
1005    ac_prev=localstatedir ;;
1006  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1007  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1008    localstatedir=$ac_optarg ;;
1009
1010  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1011    ac_prev=mandir ;;
1012  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1013    mandir=$ac_optarg ;;
1014
1015  -nfp | --nfp | --nf)
1016    # Obsolete; use --without-fp.
1017    with_fp=no ;;
1018
1019  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1020  | --no-cr | --no-c | -n)
1021    no_create=yes ;;
1022
1023  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1024  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1025    no_recursion=yes ;;
1026
1027  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1028  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1029  | --oldin | --oldi | --old | --ol | --o)
1030    ac_prev=oldincludedir ;;
1031  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1032  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1033  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1034    oldincludedir=$ac_optarg ;;
1035
1036  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1037    ac_prev=prefix ;;
1038  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1039    prefix=$ac_optarg ;;
1040
1041  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1042  | --program-pre | --program-pr | --program-p)
1043    ac_prev=program_prefix ;;
1044  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1045  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1046    program_prefix=$ac_optarg ;;
1047
1048  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1049  | --program-suf | --program-su | --program-s)
1050    ac_prev=program_suffix ;;
1051  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1052  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1053    program_suffix=$ac_optarg ;;
1054
1055  -program-transform-name | --program-transform-name \
1056  | --program-transform-nam | --program-transform-na \
1057  | --program-transform-n | --program-transform- \
1058  | --program-transform | --program-transfor \
1059  | --program-transfo | --program-transf \
1060  | --program-trans | --program-tran \
1061  | --progr-tra | --program-tr | --program-t)
1062    ac_prev=program_transform_name ;;
1063  -program-transform-name=* | --program-transform-name=* \
1064  | --program-transform-nam=* | --program-transform-na=* \
1065  | --program-transform-n=* | --program-transform-=* \
1066  | --program-transform=* | --program-transfor=* \
1067  | --program-transfo=* | --program-transf=* \
1068  | --program-trans=* | --program-tran=* \
1069  | --progr-tra=* | --program-tr=* | --program-t=*)
1070    program_transform_name=$ac_optarg ;;
1071
1072  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1073    ac_prev=pdfdir ;;
1074  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1075    pdfdir=$ac_optarg ;;
1076
1077  -psdir | --psdir | --psdi | --psd | --ps)
1078    ac_prev=psdir ;;
1079  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1080    psdir=$ac_optarg ;;
1081
1082  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1083  | -silent | --silent | --silen | --sile | --sil)
1084    silent=yes ;;
1085
1086  -runstatedir | --runstatedir | --runstatedi | --runstated \
1087  | --runstate | --runstat | --runsta | --runst | --runs \
1088  | --run | --ru | --r)
1089    ac_prev=runstatedir ;;
1090  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1091  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1092  | --run=* | --ru=* | --r=*)
1093    runstatedir=$ac_optarg ;;
1094
1095  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096    ac_prev=sbindir ;;
1097  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098  | --sbi=* | --sb=*)
1099    sbindir=$ac_optarg ;;
1100
1101  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1102  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1103  | --sharedst | --shareds | --shared | --share | --shar \
1104  | --sha | --sh)
1105    ac_prev=sharedstatedir ;;
1106  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1107  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1108  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109  | --sha=* | --sh=*)
1110    sharedstatedir=$ac_optarg ;;
1111
1112  -site | --site | --sit)
1113    ac_prev=site ;;
1114  -site=* | --site=* | --sit=*)
1115    site=$ac_optarg ;;
1116
1117  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118    ac_prev=srcdir ;;
1119  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1120    srcdir=$ac_optarg ;;
1121
1122  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1123  | --syscon | --sysco | --sysc | --sys | --sy)
1124    ac_prev=sysconfdir ;;
1125  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1126  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1127    sysconfdir=$ac_optarg ;;
1128
1129  -target | --target | --targe | --targ | --tar | --ta | --t)
1130    ac_prev=target_alias ;;
1131  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1132    target_alias=$ac_optarg ;;
1133
1134  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135    verbose=yes ;;
1136
1137  -version | --version | --versio | --versi | --vers | -V)
1138    ac_init_version=: ;;
1139
1140  -with-* | --with-*)
1141    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1142    # Reject names that are not valid shell variable names.
1143    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144      as_fn_error $? "invalid package name: \`$ac_useropt'"
1145    ac_useropt_orig=$ac_useropt
1146    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1147    case $ac_user_opts in
1148      *"
1149"with_$ac_useropt"
1150"*) ;;
1151      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1152	 ac_unrecognized_sep=', ';;
1153    esac
1154    eval with_$ac_useropt=\$ac_optarg ;;
1155
1156  -without-* | --without-*)
1157    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158    # Reject names that are not valid shell variable names.
1159    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160      as_fn_error $? "invalid package name: \`$ac_useropt'"
1161    ac_useropt_orig=$ac_useropt
1162    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1163    case $ac_user_opts in
1164      *"
1165"with_$ac_useropt"
1166"*) ;;
1167      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1168	 ac_unrecognized_sep=', ';;
1169    esac
1170    eval with_$ac_useropt=no ;;
1171
1172  --x)
1173    # Obsolete; use --with-x.
1174    with_x=yes ;;
1175
1176  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1177  | --x-incl | --x-inc | --x-in | --x-i)
1178    ac_prev=x_includes ;;
1179  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1180  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1181    x_includes=$ac_optarg ;;
1182
1183  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1184  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1185    ac_prev=x_libraries ;;
1186  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1187  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1188    x_libraries=$ac_optarg ;;
1189
1190  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1191Try \`$0 --help' for more information"
1192    ;;
1193
1194  *=*)
1195    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1196    # Reject names that are not valid shell variable names.
1197    case $ac_envvar in #(
1198      '' | [0-9]* | *[!_$as_cr_alnum]* )
1199      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1200    esac
1201    eval $ac_envvar=\$ac_optarg
1202    export $ac_envvar ;;
1203
1204  *)
1205    # FIXME: should be removed in autoconf 3.0.
1206    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1207    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1208      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1209    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1210    ;;
1211
1212  esac
1213done
1214
1215if test -n "$ac_prev"; then
1216  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1217  as_fn_error $? "missing argument to $ac_option"
1218fi
1219
1220if test -n "$ac_unrecognized_opts"; then
1221  case $enable_option_checking in
1222    no) ;;
1223    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1224    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1225  esac
1226fi
1227
1228# Check all directory arguments for consistency.
1229for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1230		datadir sysconfdir sharedstatedir localstatedir includedir \
1231		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1232		libdir localedir mandir runstatedir
1233do
1234  eval ac_val=\$$ac_var
1235  # Remove trailing slashes.
1236  case $ac_val in
1237    */ )
1238      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1239      eval $ac_var=\$ac_val;;
1240  esac
1241  # Be sure to have absolute directory names.
1242  case $ac_val in
1243    [\\/$]* | ?:[\\/]* )  continue;;
1244    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1245  esac
1246  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1247done
1248
1249# There might be people who depend on the old broken behavior: `$host'
1250# used to hold the argument of --host etc.
1251# FIXME: To remove some day.
1252build=$build_alias
1253host=$host_alias
1254target=$target_alias
1255
1256# FIXME: To remove some day.
1257if test "x$host_alias" != x; then
1258  if test "x$build_alias" = x; then
1259    cross_compiling=maybe
1260  elif test "x$build_alias" != "x$host_alias"; then
1261    cross_compiling=yes
1262  fi
1263fi
1264
1265ac_tool_prefix=
1266test -n "$host_alias" && ac_tool_prefix=$host_alias-
1267
1268test "$silent" = yes && exec 6>/dev/null
1269
1270
1271ac_pwd=`pwd` && test -n "$ac_pwd" &&
1272ac_ls_di=`ls -di .` &&
1273ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1274  as_fn_error $? "working directory cannot be determined"
1275test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1276  as_fn_error $? "pwd does not report name of working directory"
1277
1278
1279# Find the source files, if location was not specified.
1280if test -z "$srcdir"; then
1281  ac_srcdir_defaulted=yes
1282  # Try the directory containing this script, then the parent directory.
1283  ac_confdir=`$as_dirname -- "$as_myself" ||
1284$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1285	 X"$as_myself" : 'X\(//\)[^/]' \| \
1286	 X"$as_myself" : 'X\(//\)$' \| \
1287	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1288printf "%s\n" X"$as_myself" |
1289    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1290	    s//\1/
1291	    q
1292	  }
1293	  /^X\(\/\/\)[^/].*/{
1294	    s//\1/
1295	    q
1296	  }
1297	  /^X\(\/\/\)$/{
1298	    s//\1/
1299	    q
1300	  }
1301	  /^X\(\/\).*/{
1302	    s//\1/
1303	    q
1304	  }
1305	  s/.*/./; q'`
1306  srcdir=$ac_confdir
1307  if test ! -r "$srcdir/$ac_unique_file"; then
1308    srcdir=..
1309  fi
1310else
1311  ac_srcdir_defaulted=no
1312fi
1313if test ! -r "$srcdir/$ac_unique_file"; then
1314  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1315  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1316fi
1317ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1318ac_abs_confdir=`(
1319	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1320	pwd)`
1321# When building in place, set srcdir=.
1322if test "$ac_abs_confdir" = "$ac_pwd"; then
1323  srcdir=.
1324fi
1325# Remove unnecessary trailing slashes from srcdir.
1326# Double slashes in file names in object file debugging info
1327# mess up M-x gdb in Emacs.
1328case $srcdir in
1329*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1330esac
1331for ac_var in $ac_precious_vars; do
1332  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1333  eval ac_env_${ac_var}_value=\$${ac_var}
1334  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1335  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1336done
1337
1338#
1339# Report the --help message.
1340#
1341if test "$ac_init_help" = "long"; then
1342  # Omit some internal or obsolete options to make the list less imposing.
1343  # This message is too long to be a string in the A/UX 3.1 sh.
1344  cat <<_ACEOF
1345\`configure' configures xrefresh 1.0.7 to adapt to many kinds of systems.
1346
1347Usage: $0 [OPTION]... [VAR=VALUE]...
1348
1349To assign environment variables (e.g., CC, CFLAGS...), specify them as
1350VAR=VALUE.  See below for descriptions of some of the useful variables.
1351
1352Defaults for the options are specified in brackets.
1353
1354Configuration:
1355  -h, --help              display this help and exit
1356      --help=short        display options specific to this package
1357      --help=recursive    display the short help of all the included packages
1358  -V, --version           display version information and exit
1359  -q, --quiet, --silent   do not print \`checking ...' messages
1360      --cache-file=FILE   cache test results in FILE [disabled]
1361  -C, --config-cache      alias for \`--cache-file=config.cache'
1362  -n, --no-create         do not create output files
1363      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1364
1365Installation directories:
1366  --prefix=PREFIX         install architecture-independent files in PREFIX
1367                          [$ac_default_prefix]
1368  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1369                          [PREFIX]
1370
1371By default, \`make install' will install all the files in
1372\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1373an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1374for instance \`--prefix=\$HOME'.
1375
1376For better control, use the options below.
1377
1378Fine tuning of the installation directories:
1379  --bindir=DIR            user executables [EPREFIX/bin]
1380  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1381  --libexecdir=DIR        program executables [EPREFIX/libexec]
1382  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1383  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1384  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1385  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1386  --libdir=DIR            object code libraries [EPREFIX/lib]
1387  --includedir=DIR        C header files [PREFIX/include]
1388  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1389  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1390  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1391  --infodir=DIR           info documentation [DATAROOTDIR/info]
1392  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1393  --mandir=DIR            man documentation [DATAROOTDIR/man]
1394  --docdir=DIR            documentation root [DATAROOTDIR/doc/xrefresh]
1395  --htmldir=DIR           html documentation [DOCDIR]
1396  --dvidir=DIR            dvi documentation [DOCDIR]
1397  --pdfdir=DIR            pdf documentation [DOCDIR]
1398  --psdir=DIR             ps documentation [DOCDIR]
1399_ACEOF
1400
1401  cat <<\_ACEOF
1402
1403Program names:
1404  --program-prefix=PREFIX            prepend PREFIX to installed program names
1405  --program-suffix=SUFFIX            append SUFFIX to installed program names
1406  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1407
1408System types:
1409  --build=BUILD     configure for building on BUILD [guessed]
1410  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1411_ACEOF
1412fi
1413
1414if test -n "$ac_init_help"; then
1415  case $ac_init_help in
1416     short | recursive ) echo "Configuration of xrefresh 1.0.7:";;
1417   esac
1418  cat <<\_ACEOF
1419
1420Optional Features:
1421  --disable-option-checking  ignore unrecognized --enable/--with options
1422  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1423  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1424  --enable-dependency-tracking
1425                          do not reject slow dependency extractors
1426  --disable-dependency-tracking
1427                          speeds up one-time build
1428  --enable-silent-rules   less verbose build output (undo: "make V=1")
1429  --disable-silent-rules  verbose build output (undo: "make V=0")
1430  --disable-selective-werror
1431                          Turn off selective compiler errors. (default:
1432                          enabled)
1433  --enable-strict-compilation
1434                          Enable all warnings from compiler and make them
1435                          errors (default: disabled)
1436
1437Some influential environment variables:
1438  CC          C compiler command
1439  CFLAGS      C compiler flags
1440  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1441              nonstandard directory <lib dir>
1442  LIBS        libraries to pass to the linker, e.g. -l<library>
1443  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1444              you have headers in a nonstandard directory <include dir>
1445  PKG_CONFIG  path to pkg-config utility
1446  PKG_CONFIG_PATH
1447              directories to add to pkg-config's search path
1448  PKG_CONFIG_LIBDIR
1449              path overriding pkg-config's built-in search path
1450  XREFRESH_CFLAGS
1451              C compiler flags for XREFRESH, overriding pkg-config
1452  XREFRESH_LIBS
1453              linker flags for XREFRESH, overriding pkg-config
1454
1455Use these variables to override the choices made by `configure' or to help
1456it to find libraries and programs with nonstandard names/locations.
1457
1458Report bugs to <https://gitlab.freedesktop.org/xorg/app/xrefresh/issues>.
1459_ACEOF
1460ac_status=$?
1461fi
1462
1463if test "$ac_init_help" = "recursive"; then
1464  # If there are subdirs, report their specific --help.
1465  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1466    test -d "$ac_dir" ||
1467      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1468      continue
1469    ac_builddir=.
1470
1471case "$ac_dir" in
1472.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473*)
1474  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1475  # A ".." for each directory in $ac_dir_suffix.
1476  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1477  case $ac_top_builddir_sub in
1478  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1480  esac ;;
1481esac
1482ac_abs_top_builddir=$ac_pwd
1483ac_abs_builddir=$ac_pwd$ac_dir_suffix
1484# for backward compatibility:
1485ac_top_builddir=$ac_top_build_prefix
1486
1487case $srcdir in
1488  .)  # We are building in place.
1489    ac_srcdir=.
1490    ac_top_srcdir=$ac_top_builddir_sub
1491    ac_abs_top_srcdir=$ac_pwd ;;
1492  [\\/]* | ?:[\\/]* )  # Absolute name.
1493    ac_srcdir=$srcdir$ac_dir_suffix;
1494    ac_top_srcdir=$srcdir
1495    ac_abs_top_srcdir=$srcdir ;;
1496  *) # Relative name.
1497    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1498    ac_top_srcdir=$ac_top_build_prefix$srcdir
1499    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1500esac
1501ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1502
1503    cd "$ac_dir" || { ac_status=$?; continue; }
1504    # Check for configure.gnu first; this name is used for a wrapper for
1505    # Metaconfig's "Configure" on case-insensitive file systems.
1506    if test -f "$ac_srcdir/configure.gnu"; then
1507      echo &&
1508      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1509    elif test -f "$ac_srcdir/configure"; then
1510      echo &&
1511      $SHELL "$ac_srcdir/configure" --help=recursive
1512    else
1513      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1514    fi || ac_status=$?
1515    cd "$ac_pwd" || { ac_status=$?; break; }
1516  done
1517fi
1518
1519test -n "$ac_init_help" && exit $ac_status
1520if $ac_init_version; then
1521  cat <<\_ACEOF
1522xrefresh configure 1.0.7
1523generated by GNU Autoconf 2.71
1524
1525Copyright (C) 2021 Free Software Foundation, Inc.
1526This configure script is free software; the Free Software Foundation
1527gives unlimited permission to copy, distribute and modify it.
1528_ACEOF
1529  exit
1530fi
1531
1532## ------------------------ ##
1533## Autoconf initialization. ##
1534## ------------------------ ##
1535
1536# ac_fn_c_try_compile LINENO
1537# --------------------------
1538# Try to compile conftest.$ac_ext, and return whether this succeeded.
1539ac_fn_c_try_compile ()
1540{
1541  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1542  rm -f conftest.$ac_objext conftest.beam
1543  if { { ac_try="$ac_compile"
1544case "(($ac_try" in
1545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1546  *) ac_try_echo=$ac_try;;
1547esac
1548eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1549printf "%s\n" "$ac_try_echo"; } >&5
1550  (eval "$ac_compile") 2>conftest.err
1551  ac_status=$?
1552  if test -s conftest.err; then
1553    grep -v '^ *+' conftest.err >conftest.er1
1554    cat conftest.er1 >&5
1555    mv -f conftest.er1 conftest.err
1556  fi
1557  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1558  test $ac_status = 0; } && {
1559	 test -z "$ac_c_werror_flag" ||
1560	 test ! -s conftest.err
1561       } && test -s conftest.$ac_objext
1562then :
1563  ac_retval=0
1564else $as_nop
1565  printf "%s\n" "$as_me: failed program was:" >&5
1566sed 's/^/| /' conftest.$ac_ext >&5
1567
1568	ac_retval=1
1569fi
1570  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1571  as_fn_set_status $ac_retval
1572
1573} # ac_fn_c_try_compile
1574
1575# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1576# -------------------------------------------------------
1577# Tests whether HEADER exists and can be compiled using the include files in
1578# INCLUDES, setting the cache variable VAR accordingly.
1579ac_fn_c_check_header_compile ()
1580{
1581  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1583printf %s "checking for $2... " >&6; }
1584if eval test \${$3+y}
1585then :
1586  printf %s "(cached) " >&6
1587else $as_nop
1588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1589/* end confdefs.h.  */
1590$4
1591#include <$2>
1592_ACEOF
1593if ac_fn_c_try_compile "$LINENO"
1594then :
1595  eval "$3=yes"
1596else $as_nop
1597  eval "$3=no"
1598fi
1599rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1600fi
1601eval ac_res=\$$3
1602	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1603printf "%s\n" "$ac_res" >&6; }
1604  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1605
1606} # ac_fn_c_check_header_compile
1607
1608# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1609# ------------------------------------------------------------------
1610# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1611# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1612ac_fn_check_decl ()
1613{
1614  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615  as_decl_name=`echo $2|sed 's/ *(.*//'`
1616  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1617printf %s "checking whether $as_decl_name is declared... " >&6; }
1618if eval test \${$3+y}
1619then :
1620  printf %s "(cached) " >&6
1621else $as_nop
1622  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1623  eval ac_save_FLAGS=\$$6
1624  as_fn_append $6 " $5"
1625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1626/* end confdefs.h.  */
1627$4
1628int
1629main (void)
1630{
1631#ifndef $as_decl_name
1632#ifdef __cplusplus
1633  (void) $as_decl_use;
1634#else
1635  (void) $as_decl_name;
1636#endif
1637#endif
1638
1639  ;
1640  return 0;
1641}
1642_ACEOF
1643if ac_fn_c_try_compile "$LINENO"
1644then :
1645  eval "$3=yes"
1646else $as_nop
1647  eval "$3=no"
1648fi
1649rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1650  eval $6=\$ac_save_FLAGS
1651
1652fi
1653eval ac_res=\$$3
1654	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1655printf "%s\n" "$ac_res" >&6; }
1656  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657
1658} # ac_fn_check_decl
1659
1660# ac_fn_c_try_link LINENO
1661# -----------------------
1662# Try to link conftest.$ac_ext, and return whether this succeeded.
1663ac_fn_c_try_link ()
1664{
1665  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1667  if { { ac_try="$ac_link"
1668case "(($ac_try" in
1669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670  *) ac_try_echo=$ac_try;;
1671esac
1672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673printf "%s\n" "$ac_try_echo"; } >&5
1674  (eval "$ac_link") 2>conftest.err
1675  ac_status=$?
1676  if test -s conftest.err; then
1677    grep -v '^ *+' conftest.err >conftest.er1
1678    cat conftest.er1 >&5
1679    mv -f conftest.er1 conftest.err
1680  fi
1681  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682  test $ac_status = 0; } && {
1683	 test -z "$ac_c_werror_flag" ||
1684	 test ! -s conftest.err
1685       } && test -s conftest$ac_exeext && {
1686	 test "$cross_compiling" = yes ||
1687	 test -x conftest$ac_exeext
1688       }
1689then :
1690  ac_retval=0
1691else $as_nop
1692  printf "%s\n" "$as_me: failed program was:" >&5
1693sed 's/^/| /' conftest.$ac_ext >&5
1694
1695	ac_retval=1
1696fi
1697  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1698  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1699  # interfere with the next link command; also delete a directory that is
1700  # left behind by Apple's compiler.  We do this before executing the actions.
1701  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1702  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703  as_fn_set_status $ac_retval
1704
1705} # ac_fn_c_try_link
1706
1707# ac_fn_c_check_func LINENO FUNC VAR
1708# ----------------------------------
1709# Tests whether FUNC exists, setting the cache variable VAR accordingly
1710ac_fn_c_check_func ()
1711{
1712  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1714printf %s "checking for $2... " >&6; }
1715if eval test \${$3+y}
1716then :
1717  printf %s "(cached) " >&6
1718else $as_nop
1719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720/* end confdefs.h.  */
1721/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1722   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1723#define $2 innocuous_$2
1724
1725/* System header to define __stub macros and hopefully few prototypes,
1726   which can conflict with char $2 (); below.  */
1727
1728#include <limits.h>
1729#undef $2
1730
1731/* Override any GCC internal prototype to avoid an error.
1732   Use char because int might match the return type of a GCC
1733   builtin and then its argument prototype would still apply.  */
1734#ifdef __cplusplus
1735extern "C"
1736#endif
1737char $2 ();
1738/* The GNU C library defines this for functions which it implements
1739    to always fail with ENOSYS.  Some functions are actually named
1740    something starting with __ and the normal name is an alias.  */
1741#if defined __stub_$2 || defined __stub___$2
1742choke me
1743#endif
1744
1745int
1746main (void)
1747{
1748return $2 ();
1749  ;
1750  return 0;
1751}
1752_ACEOF
1753if ac_fn_c_try_link "$LINENO"
1754then :
1755  eval "$3=yes"
1756else $as_nop
1757  eval "$3=no"
1758fi
1759rm -f core conftest.err conftest.$ac_objext conftest.beam \
1760    conftest$ac_exeext conftest.$ac_ext
1761fi
1762eval ac_res=\$$3
1763	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1764printf "%s\n" "$ac_res" >&6; }
1765  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766
1767} # ac_fn_c_check_func
1768ac_configure_args_raw=
1769for ac_arg
1770do
1771  case $ac_arg in
1772  *\'*)
1773    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1774  esac
1775  as_fn_append ac_configure_args_raw " '$ac_arg'"
1776done
1777
1778case $ac_configure_args_raw in
1779  *$as_nl*)
1780    ac_safe_unquote= ;;
1781  *)
1782    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1783    ac_unsafe_a="$ac_unsafe_z#~"
1784    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1785    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1786esac
1787
1788cat >config.log <<_ACEOF
1789This file contains any messages produced by compilers while
1790running configure, to aid debugging if configure makes a mistake.
1791
1792It was created by xrefresh $as_me 1.0.7, which was
1793generated by GNU Autoconf 2.71.  Invocation command line was
1794
1795  $ $0$ac_configure_args_raw
1796
1797_ACEOF
1798exec 5>>config.log
1799{
1800cat <<_ASUNAME
1801## --------- ##
1802## Platform. ##
1803## --------- ##
1804
1805hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1806uname -m = `(uname -m) 2>/dev/null || echo unknown`
1807uname -r = `(uname -r) 2>/dev/null || echo unknown`
1808uname -s = `(uname -s) 2>/dev/null || echo unknown`
1809uname -v = `(uname -v) 2>/dev/null || echo unknown`
1810
1811/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1812/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1813
1814/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1815/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1816/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1817/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1818/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1819/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1820/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1821
1822_ASUNAME
1823
1824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1825for as_dir in $PATH
1826do
1827  IFS=$as_save_IFS
1828  case $as_dir in #(((
1829    '') as_dir=./ ;;
1830    */) ;;
1831    *) as_dir=$as_dir/ ;;
1832  esac
1833    printf "%s\n" "PATH: $as_dir"
1834  done
1835IFS=$as_save_IFS
1836
1837} >&5
1838
1839cat >&5 <<_ACEOF
1840
1841
1842## ----------- ##
1843## Core tests. ##
1844## ----------- ##
1845
1846_ACEOF
1847
1848
1849# Keep a trace of the command line.
1850# Strip out --no-create and --no-recursion so they do not pile up.
1851# Strip out --silent because we don't want to record it for future runs.
1852# Also quote any args containing shell meta-characters.
1853# Make two passes to allow for proper duplicate-argument suppression.
1854ac_configure_args=
1855ac_configure_args0=
1856ac_configure_args1=
1857ac_must_keep_next=false
1858for ac_pass in 1 2
1859do
1860  for ac_arg
1861  do
1862    case $ac_arg in
1863    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1864    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1865    | -silent | --silent | --silen | --sile | --sil)
1866      continue ;;
1867    *\'*)
1868      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1869    esac
1870    case $ac_pass in
1871    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1872    2)
1873      as_fn_append ac_configure_args1 " '$ac_arg'"
1874      if test $ac_must_keep_next = true; then
1875	ac_must_keep_next=false # Got value, back to normal.
1876      else
1877	case $ac_arg in
1878	  *=* | --config-cache | -C | -disable-* | --disable-* \
1879	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1880	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1881	  | -with-* | --with-* | -without-* | --without-* | --x)
1882	    case "$ac_configure_args0 " in
1883	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1884	    esac
1885	    ;;
1886	  -* ) ac_must_keep_next=true ;;
1887	esac
1888      fi
1889      as_fn_append ac_configure_args " '$ac_arg'"
1890      ;;
1891    esac
1892  done
1893done
1894{ ac_configure_args0=; unset ac_configure_args0;}
1895{ ac_configure_args1=; unset ac_configure_args1;}
1896
1897# When interrupted or exit'd, cleanup temporary files, and complete
1898# config.log.  We remove comments because anyway the quotes in there
1899# would cause problems or look ugly.
1900# WARNING: Use '\'' to represent an apostrophe within the trap.
1901# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1902trap 'exit_status=$?
1903  # Sanitize IFS.
1904  IFS=" ""	$as_nl"
1905  # Save into config.log some information that might help in debugging.
1906  {
1907    echo
1908
1909    printf "%s\n" "## ---------------- ##
1910## Cache variables. ##
1911## ---------------- ##"
1912    echo
1913    # The following way of writing the cache mishandles newlines in values,
1914(
1915  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1916    eval ac_val=\$$ac_var
1917    case $ac_val in #(
1918    *${as_nl}*)
1919      case $ac_var in #(
1920      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1921printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1922      esac
1923      case $ac_var in #(
1924      _ | IFS | as_nl) ;; #(
1925      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1926      *) { eval $ac_var=; unset $ac_var;} ;;
1927      esac ;;
1928    esac
1929  done
1930  (set) 2>&1 |
1931    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1932    *${as_nl}ac_space=\ *)
1933      sed -n \
1934	"s/'\''/'\''\\\\'\'''\''/g;
1935	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1936      ;; #(
1937    *)
1938      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1939      ;;
1940    esac |
1941    sort
1942)
1943    echo
1944
1945    printf "%s\n" "## ----------------- ##
1946## Output variables. ##
1947## ----------------- ##"
1948    echo
1949    for ac_var in $ac_subst_vars
1950    do
1951      eval ac_val=\$$ac_var
1952      case $ac_val in
1953      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1954      esac
1955      printf "%s\n" "$ac_var='\''$ac_val'\''"
1956    done | sort
1957    echo
1958
1959    if test -n "$ac_subst_files"; then
1960      printf "%s\n" "## ------------------- ##
1961## File substitutions. ##
1962## ------------------- ##"
1963      echo
1964      for ac_var in $ac_subst_files
1965      do
1966	eval ac_val=\$$ac_var
1967	case $ac_val in
1968	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1969	esac
1970	printf "%s\n" "$ac_var='\''$ac_val'\''"
1971      done | sort
1972      echo
1973    fi
1974
1975    if test -s confdefs.h; then
1976      printf "%s\n" "## ----------- ##
1977## confdefs.h. ##
1978## ----------- ##"
1979      echo
1980      cat confdefs.h
1981      echo
1982    fi
1983    test "$ac_signal" != 0 &&
1984      printf "%s\n" "$as_me: caught signal $ac_signal"
1985    printf "%s\n" "$as_me: exit $exit_status"
1986  } >&5
1987  rm -f core *.core core.conftest.* &&
1988    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1989    exit $exit_status
1990' 0
1991for ac_signal in 1 2 13 15; do
1992  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1993done
1994ac_signal=0
1995
1996# confdefs.h avoids OS command line length limits that DEFS can exceed.
1997rm -f -r conftest* confdefs.h
1998
1999printf "%s\n" "/* confdefs.h */" > confdefs.h
2000
2001# Predefined preprocessor variables.
2002
2003printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2004
2005printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2006
2007printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2008
2009printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2010
2011printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2012
2013printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2014
2015
2016# Let the site file select an alternate cache file if it wants to.
2017# Prefer an explicitly selected file to automatically selected ones.
2018if test -n "$CONFIG_SITE"; then
2019  ac_site_files="$CONFIG_SITE"
2020elif test "x$prefix" != xNONE; then
2021  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2022else
2023  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2024fi
2025
2026for ac_site_file in $ac_site_files
2027do
2028  case $ac_site_file in #(
2029  */*) :
2030     ;; #(
2031  *) :
2032    ac_site_file=./$ac_site_file ;;
2033esac
2034  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2035    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2036printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2037    sed 's/^/| /' "$ac_site_file" >&5
2038    . "$ac_site_file" \
2039      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2040printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2041as_fn_error $? "failed to load site script $ac_site_file
2042See \`config.log' for more details" "$LINENO" 5; }
2043  fi
2044done
2045
2046if test -r "$cache_file"; then
2047  # Some versions of bash will fail to source /dev/null (special files
2048  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2049  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2050    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2051printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2052    case $cache_file in
2053      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2054      *)                      . "./$cache_file";;
2055    esac
2056  fi
2057else
2058  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2059printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2060  >$cache_file
2061fi
2062
2063as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2064# Test code for whether the C compiler supports C89 (global declarations)
2065ac_c_conftest_c89_globals='
2066/* Does the compiler advertise C89 conformance?
2067   Do not test the value of __STDC__, because some compilers set it to 0
2068   while being otherwise adequately conformant. */
2069#if !defined __STDC__
2070# error "Compiler does not advertise C89 conformance"
2071#endif
2072
2073#include <stddef.h>
2074#include <stdarg.h>
2075struct stat;
2076/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2077struct buf { int x; };
2078struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2079static char *e (p, i)
2080     char **p;
2081     int i;
2082{
2083  return p[i];
2084}
2085static char *f (char * (*g) (char **, int), char **p, ...)
2086{
2087  char *s;
2088  va_list v;
2089  va_start (v,p);
2090  s = g (p, va_arg (v,int));
2091  va_end (v);
2092  return s;
2093}
2094
2095/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2096   function prototypes and stuff, but not \xHH hex character constants.
2097   These do not provoke an error unfortunately, instead are silently treated
2098   as an "x".  The following induces an error, until -std is added to get
2099   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2100   array size at least.  It is necessary to write \x00 == 0 to get something
2101   that is true only with -std.  */
2102int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2103
2104/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2105   inside strings and character constants.  */
2106#define FOO(x) '\''x'\''
2107int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2108
2109int test (int i, double x);
2110struct s1 {int (*f) (int a);};
2111struct s2 {int (*f) (double a);};
2112int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2113               int, int);'
2114
2115# Test code for whether the C compiler supports C89 (body of main).
2116ac_c_conftest_c89_main='
2117ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2118'
2119
2120# Test code for whether the C compiler supports C99 (global declarations)
2121ac_c_conftest_c99_globals='
2122// Does the compiler advertise C99 conformance?
2123#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2124# error "Compiler does not advertise C99 conformance"
2125#endif
2126
2127#include <stdbool.h>
2128extern int puts (const char *);
2129extern int printf (const char *, ...);
2130extern int dprintf (int, const char *, ...);
2131extern void *malloc (size_t);
2132
2133// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2134// dprintf is used instead of fprintf to avoid needing to declare
2135// FILE and stderr.
2136#define debug(...) dprintf (2, __VA_ARGS__)
2137#define showlist(...) puts (#__VA_ARGS__)
2138#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2139static void
2140test_varargs_macros (void)
2141{
2142  int x = 1234;
2143  int y = 5678;
2144  debug ("Flag");
2145  debug ("X = %d\n", x);
2146  showlist (The first, second, and third items.);
2147  report (x>y, "x is %d but y is %d", x, y);
2148}
2149
2150// Check long long types.
2151#define BIG64 18446744073709551615ull
2152#define BIG32 4294967295ul
2153#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2154#if !BIG_OK
2155  #error "your preprocessor is broken"
2156#endif
2157#if BIG_OK
2158#else
2159  #error "your preprocessor is broken"
2160#endif
2161static long long int bignum = -9223372036854775807LL;
2162static unsigned long long int ubignum = BIG64;
2163
2164struct incomplete_array
2165{
2166  int datasize;
2167  double data[];
2168};
2169
2170struct named_init {
2171  int number;
2172  const wchar_t *name;
2173  double average;
2174};
2175
2176typedef const char *ccp;
2177
2178static inline int
2179test_restrict (ccp restrict text)
2180{
2181  // See if C++-style comments work.
2182  // Iterate through items via the restricted pointer.
2183  // Also check for declarations in for loops.
2184  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2185    continue;
2186  return 0;
2187}
2188
2189// Check varargs and va_copy.
2190static bool
2191test_varargs (const char *format, ...)
2192{
2193  va_list args;
2194  va_start (args, format);
2195  va_list args_copy;
2196  va_copy (args_copy, args);
2197
2198  const char *str = "";
2199  int number = 0;
2200  float fnumber = 0;
2201
2202  while (*format)
2203    {
2204      switch (*format++)
2205	{
2206	case '\''s'\'': // string
2207	  str = va_arg (args_copy, const char *);
2208	  break;
2209	case '\''d'\'': // int
2210	  number = va_arg (args_copy, int);
2211	  break;
2212	case '\''f'\'': // float
2213	  fnumber = va_arg (args_copy, double);
2214	  break;
2215	default:
2216	  break;
2217	}
2218    }
2219  va_end (args_copy);
2220  va_end (args);
2221
2222  return *str && number && fnumber;
2223}
2224'
2225
2226# Test code for whether the C compiler supports C99 (body of main).
2227ac_c_conftest_c99_main='
2228  // Check bool.
2229  _Bool success = false;
2230  success |= (argc != 0);
2231
2232  // Check restrict.
2233  if (test_restrict ("String literal") == 0)
2234    success = true;
2235  char *restrict newvar = "Another string";
2236
2237  // Check varargs.
2238  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2239  test_varargs_macros ();
2240
2241  // Check flexible array members.
2242  struct incomplete_array *ia =
2243    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2244  ia->datasize = 10;
2245  for (int i = 0; i < ia->datasize; ++i)
2246    ia->data[i] = i * 1.234;
2247
2248  // Check named initializers.
2249  struct named_init ni = {
2250    .number = 34,
2251    .name = L"Test wide string",
2252    .average = 543.34343,
2253  };
2254
2255  ni.number = 58;
2256
2257  int dynamic_array[ni.number];
2258  dynamic_array[0] = argv[0][0];
2259  dynamic_array[ni.number - 1] = 543;
2260
2261  // work around unused variable warnings
2262  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2263	 || dynamic_array[ni.number - 1] != 543);
2264'
2265
2266# Test code for whether the C compiler supports C11 (global declarations)
2267ac_c_conftest_c11_globals='
2268// Does the compiler advertise C11 conformance?
2269#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2270# error "Compiler does not advertise C11 conformance"
2271#endif
2272
2273// Check _Alignas.
2274char _Alignas (double) aligned_as_double;
2275char _Alignas (0) no_special_alignment;
2276extern char aligned_as_int;
2277char _Alignas (0) _Alignas (int) aligned_as_int;
2278
2279// Check _Alignof.
2280enum
2281{
2282  int_alignment = _Alignof (int),
2283  int_array_alignment = _Alignof (int[100]),
2284  char_alignment = _Alignof (char)
2285};
2286_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2287
2288// Check _Noreturn.
2289int _Noreturn does_not_return (void) { for (;;) continue; }
2290
2291// Check _Static_assert.
2292struct test_static_assert
2293{
2294  int x;
2295  _Static_assert (sizeof (int) <= sizeof (long int),
2296                  "_Static_assert does not work in struct");
2297  long int y;
2298};
2299
2300// Check UTF-8 literals.
2301#define u8 syntax error!
2302char const utf8_literal[] = u8"happens to be ASCII" "another string";
2303
2304// Check duplicate typedefs.
2305typedef long *long_ptr;
2306typedef long int *long_ptr;
2307typedef long_ptr long_ptr;
2308
2309// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2310struct anonymous
2311{
2312  union {
2313    struct { int i; int j; };
2314    struct { int k; long int l; } w;
2315  };
2316  int m;
2317} v1;
2318'
2319
2320# Test code for whether the C compiler supports C11 (body of main).
2321ac_c_conftest_c11_main='
2322  _Static_assert ((offsetof (struct anonymous, i)
2323		   == offsetof (struct anonymous, w.k)),
2324		  "Anonymous union alignment botch");
2325  v1.i = 2;
2326  v1.w.k = 5;
2327  ok |= v1.i != 5;
2328'
2329
2330# Test code for whether the C compiler supports C11 (complete).
2331ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2332${ac_c_conftest_c99_globals}
2333${ac_c_conftest_c11_globals}
2334
2335int
2336main (int argc, char **argv)
2337{
2338  int ok = 0;
2339  ${ac_c_conftest_c89_main}
2340  ${ac_c_conftest_c99_main}
2341  ${ac_c_conftest_c11_main}
2342  return ok;
2343}
2344"
2345
2346# Test code for whether the C compiler supports C99 (complete).
2347ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2348${ac_c_conftest_c99_globals}
2349
2350int
2351main (int argc, char **argv)
2352{
2353  int ok = 0;
2354  ${ac_c_conftest_c89_main}
2355  ${ac_c_conftest_c99_main}
2356  return ok;
2357}
2358"
2359
2360# Test code for whether the C compiler supports C89 (complete).
2361ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2362
2363int
2364main (int argc, char **argv)
2365{
2366  int ok = 0;
2367  ${ac_c_conftest_c89_main}
2368  return ok;
2369}
2370"
2371
2372as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2373as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2374as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2375as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2376as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2377as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2378as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2379as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2380as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2381as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2382
2383# Auxiliary files required by this configure script.
2384ac_aux_files="config.guess config.sub missing install-sh compile"
2385
2386# Locations in which to look for auxiliary files.
2387ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2388
2389# Search for a directory containing all of the required auxiliary files,
2390# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2391# If we don't find one directory that contains all the files we need,
2392# we report the set of missing files from the *first* directory in
2393# $ac_aux_dir_candidates and give up.
2394ac_missing_aux_files=""
2395ac_first_candidate=:
2396printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398as_found=false
2399for as_dir in $ac_aux_dir_candidates
2400do
2401  IFS=$as_save_IFS
2402  case $as_dir in #(((
2403    '') as_dir=./ ;;
2404    */) ;;
2405    *) as_dir=$as_dir/ ;;
2406  esac
2407  as_found=:
2408
2409  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2410  ac_aux_dir_found=yes
2411  ac_install_sh=
2412  for ac_aux in $ac_aux_files
2413  do
2414    # As a special case, if "install-sh" is required, that requirement
2415    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2416    # and $ac_install_sh is set appropriately for whichever one is found.
2417    if test x"$ac_aux" = x"install-sh"
2418    then
2419      if test -f "${as_dir}install-sh"; then
2420        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2421        ac_install_sh="${as_dir}install-sh -c"
2422      elif test -f "${as_dir}install.sh"; then
2423        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2424        ac_install_sh="${as_dir}install.sh -c"
2425      elif test -f "${as_dir}shtool"; then
2426        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2427        ac_install_sh="${as_dir}shtool install -c"
2428      else
2429        ac_aux_dir_found=no
2430        if $ac_first_candidate; then
2431          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2432        else
2433          break
2434        fi
2435      fi
2436    else
2437      if test -f "${as_dir}${ac_aux}"; then
2438        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2439      else
2440        ac_aux_dir_found=no
2441        if $ac_first_candidate; then
2442          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2443        else
2444          break
2445        fi
2446      fi
2447    fi
2448  done
2449  if test "$ac_aux_dir_found" = yes; then
2450    ac_aux_dir="$as_dir"
2451    break
2452  fi
2453  ac_first_candidate=false
2454
2455  as_found=false
2456done
2457IFS=$as_save_IFS
2458if $as_found
2459then :
2460
2461else $as_nop
2462  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2463fi
2464
2465
2466# These three variables are undocumented and unsupported,
2467# and are intended to be withdrawn in a future Autoconf release.
2468# They can cause serious problems if a builder's source tree is in a directory
2469# whose full name contains unusual characters.
2470if test -f "${ac_aux_dir}config.guess"; then
2471  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2472fi
2473if test -f "${ac_aux_dir}config.sub"; then
2474  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2475fi
2476if test -f "$ac_aux_dir/configure"; then
2477  ac_configure="$SHELL ${ac_aux_dir}configure"
2478fi
2479
2480# Check that the precious variables saved in the cache have kept the same
2481# value.
2482ac_cache_corrupted=false
2483for ac_var in $ac_precious_vars; do
2484  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2485  eval ac_new_set=\$ac_env_${ac_var}_set
2486  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2487  eval ac_new_val=\$ac_env_${ac_var}_value
2488  case $ac_old_set,$ac_new_set in
2489    set,)
2490      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2491printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2492      ac_cache_corrupted=: ;;
2493    ,set)
2494      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2495printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2496      ac_cache_corrupted=: ;;
2497    ,);;
2498    *)
2499      if test "x$ac_old_val" != "x$ac_new_val"; then
2500	# differences in whitespace do not lead to failure.
2501	ac_old_val_w=`echo x $ac_old_val`
2502	ac_new_val_w=`echo x $ac_new_val`
2503	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2504	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2505printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2506	  ac_cache_corrupted=:
2507	else
2508	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2509printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2510	  eval $ac_var=\$ac_old_val
2511	fi
2512	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2513printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2514	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2515printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2516      fi;;
2517  esac
2518  # Pass precious variables to config.status.
2519  if test "$ac_new_set" = set; then
2520    case $ac_new_val in
2521    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2522    *) ac_arg=$ac_var=$ac_new_val ;;
2523    esac
2524    case " $ac_configure_args " in
2525      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2526      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2527    esac
2528  fi
2529done
2530if $ac_cache_corrupted; then
2531  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2532printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2533  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2534printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2535  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2536	    and start over" "$LINENO" 5
2537fi
2538## -------------------- ##
2539## Main body of script. ##
2540## -------------------- ##
2541
2542ac_ext=c
2543ac_cpp='$CPP $CPPFLAGS'
2544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2546ac_compiler_gnu=$ac_cv_c_compiler_gnu
2547
2548
2549
2550ac_config_headers="$ac_config_headers config.h"
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563# Expand $ac_aux_dir to an absolute path.
2564am_aux_dir=`cd "$ac_aux_dir" && pwd`
2565
2566ac_ext=c
2567ac_cpp='$CPP $CPPFLAGS'
2568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2570ac_compiler_gnu=$ac_cv_c_compiler_gnu
2571if test -n "$ac_tool_prefix"; then
2572  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2573set dummy ${ac_tool_prefix}gcc; ac_word=$2
2574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2575printf %s "checking for $ac_word... " >&6; }
2576if test ${ac_cv_prog_CC+y}
2577then :
2578  printf %s "(cached) " >&6
2579else $as_nop
2580  if test -n "$CC"; then
2581  ac_cv_prog_CC="$CC" # Let the user override the test.
2582else
2583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584for as_dir in $PATH
2585do
2586  IFS=$as_save_IFS
2587  case $as_dir in #(((
2588    '') as_dir=./ ;;
2589    */) ;;
2590    *) as_dir=$as_dir/ ;;
2591  esac
2592    for ac_exec_ext in '' $ac_executable_extensions; do
2593  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2594    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2595    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2596    break 2
2597  fi
2598done
2599  done
2600IFS=$as_save_IFS
2601
2602fi
2603fi
2604CC=$ac_cv_prog_CC
2605if test -n "$CC"; then
2606  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2607printf "%s\n" "$CC" >&6; }
2608else
2609  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2610printf "%s\n" "no" >&6; }
2611fi
2612
2613
2614fi
2615if test -z "$ac_cv_prog_CC"; then
2616  ac_ct_CC=$CC
2617  # Extract the first word of "gcc", so it can be a program name with args.
2618set dummy gcc; ac_word=$2
2619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2620printf %s "checking for $ac_word... " >&6; }
2621if test ${ac_cv_prog_ac_ct_CC+y}
2622then :
2623  printf %s "(cached) " >&6
2624else $as_nop
2625  if test -n "$ac_ct_CC"; then
2626  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2627else
2628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629for as_dir in $PATH
2630do
2631  IFS=$as_save_IFS
2632  case $as_dir in #(((
2633    '') as_dir=./ ;;
2634    */) ;;
2635    *) as_dir=$as_dir/ ;;
2636  esac
2637    for ac_exec_ext in '' $ac_executable_extensions; do
2638  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2639    ac_cv_prog_ac_ct_CC="gcc"
2640    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2641    break 2
2642  fi
2643done
2644  done
2645IFS=$as_save_IFS
2646
2647fi
2648fi
2649ac_ct_CC=$ac_cv_prog_ac_ct_CC
2650if test -n "$ac_ct_CC"; then
2651  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2652printf "%s\n" "$ac_ct_CC" >&6; }
2653else
2654  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2655printf "%s\n" "no" >&6; }
2656fi
2657
2658  if test "x$ac_ct_CC" = x; then
2659    CC=""
2660  else
2661    case $cross_compiling:$ac_tool_warned in
2662yes:)
2663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2664printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2665ac_tool_warned=yes ;;
2666esac
2667    CC=$ac_ct_CC
2668  fi
2669else
2670  CC="$ac_cv_prog_CC"
2671fi
2672
2673if test -z "$CC"; then
2674          if test -n "$ac_tool_prefix"; then
2675    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2676set dummy ${ac_tool_prefix}cc; ac_word=$2
2677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2678printf %s "checking for $ac_word... " >&6; }
2679if test ${ac_cv_prog_CC+y}
2680then :
2681  printf %s "(cached) " >&6
2682else $as_nop
2683  if test -n "$CC"; then
2684  ac_cv_prog_CC="$CC" # Let the user override the test.
2685else
2686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687for as_dir in $PATH
2688do
2689  IFS=$as_save_IFS
2690  case $as_dir in #(((
2691    '') as_dir=./ ;;
2692    */) ;;
2693    *) as_dir=$as_dir/ ;;
2694  esac
2695    for ac_exec_ext in '' $ac_executable_extensions; do
2696  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2697    ac_cv_prog_CC="${ac_tool_prefix}cc"
2698    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2699    break 2
2700  fi
2701done
2702  done
2703IFS=$as_save_IFS
2704
2705fi
2706fi
2707CC=$ac_cv_prog_CC
2708if test -n "$CC"; then
2709  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2710printf "%s\n" "$CC" >&6; }
2711else
2712  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2713printf "%s\n" "no" >&6; }
2714fi
2715
2716
2717  fi
2718fi
2719if test -z "$CC"; then
2720  # Extract the first word of "cc", so it can be a program name with args.
2721set dummy cc; ac_word=$2
2722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2723printf %s "checking for $ac_word... " >&6; }
2724if test ${ac_cv_prog_CC+y}
2725then :
2726  printf %s "(cached) " >&6
2727else $as_nop
2728  if test -n "$CC"; then
2729  ac_cv_prog_CC="$CC" # Let the user override the test.
2730else
2731  ac_prog_rejected=no
2732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733for as_dir in $PATH
2734do
2735  IFS=$as_save_IFS
2736  case $as_dir in #(((
2737    '') as_dir=./ ;;
2738    */) ;;
2739    *) as_dir=$as_dir/ ;;
2740  esac
2741    for ac_exec_ext in '' $ac_executable_extensions; do
2742  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2743    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2744       ac_prog_rejected=yes
2745       continue
2746     fi
2747    ac_cv_prog_CC="cc"
2748    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2749    break 2
2750  fi
2751done
2752  done
2753IFS=$as_save_IFS
2754
2755if test $ac_prog_rejected = yes; then
2756  # We found a bogon in the path, so make sure we never use it.
2757  set dummy $ac_cv_prog_CC
2758  shift
2759  if test $# != 0; then
2760    # We chose a different compiler from the bogus one.
2761    # However, it has the same basename, so the bogon will be chosen
2762    # first if we set CC to just the basename; use the full file name.
2763    shift
2764    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2765  fi
2766fi
2767fi
2768fi
2769CC=$ac_cv_prog_CC
2770if test -n "$CC"; then
2771  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2772printf "%s\n" "$CC" >&6; }
2773else
2774  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2775printf "%s\n" "no" >&6; }
2776fi
2777
2778
2779fi
2780if test -z "$CC"; then
2781  if test -n "$ac_tool_prefix"; then
2782  for ac_prog in cl.exe
2783  do
2784    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2785set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2787printf %s "checking for $ac_word... " >&6; }
2788if test ${ac_cv_prog_CC+y}
2789then :
2790  printf %s "(cached) " >&6
2791else $as_nop
2792  if test -n "$CC"; then
2793  ac_cv_prog_CC="$CC" # Let the user override the test.
2794else
2795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796for as_dir in $PATH
2797do
2798  IFS=$as_save_IFS
2799  case $as_dir in #(((
2800    '') as_dir=./ ;;
2801    */) ;;
2802    *) as_dir=$as_dir/ ;;
2803  esac
2804    for ac_exec_ext in '' $ac_executable_extensions; do
2805  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2806    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2807    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2808    break 2
2809  fi
2810done
2811  done
2812IFS=$as_save_IFS
2813
2814fi
2815fi
2816CC=$ac_cv_prog_CC
2817if test -n "$CC"; then
2818  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2819printf "%s\n" "$CC" >&6; }
2820else
2821  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822printf "%s\n" "no" >&6; }
2823fi
2824
2825
2826    test -n "$CC" && break
2827  done
2828fi
2829if test -z "$CC"; then
2830  ac_ct_CC=$CC
2831  for ac_prog in cl.exe
2832do
2833  # Extract the first word of "$ac_prog", so it can be a program name with args.
2834set dummy $ac_prog; ac_word=$2
2835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2836printf %s "checking for $ac_word... " >&6; }
2837if test ${ac_cv_prog_ac_ct_CC+y}
2838then :
2839  printf %s "(cached) " >&6
2840else $as_nop
2841  if test -n "$ac_ct_CC"; then
2842  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2843else
2844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845for as_dir in $PATH
2846do
2847  IFS=$as_save_IFS
2848  case $as_dir in #(((
2849    '') as_dir=./ ;;
2850    */) ;;
2851    *) as_dir=$as_dir/ ;;
2852  esac
2853    for ac_exec_ext in '' $ac_executable_extensions; do
2854  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2855    ac_cv_prog_ac_ct_CC="$ac_prog"
2856    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2857    break 2
2858  fi
2859done
2860  done
2861IFS=$as_save_IFS
2862
2863fi
2864fi
2865ac_ct_CC=$ac_cv_prog_ac_ct_CC
2866if test -n "$ac_ct_CC"; then
2867  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2868printf "%s\n" "$ac_ct_CC" >&6; }
2869else
2870  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2871printf "%s\n" "no" >&6; }
2872fi
2873
2874
2875  test -n "$ac_ct_CC" && break
2876done
2877
2878  if test "x$ac_ct_CC" = x; then
2879    CC=""
2880  else
2881    case $cross_compiling:$ac_tool_warned in
2882yes:)
2883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2884printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2885ac_tool_warned=yes ;;
2886esac
2887    CC=$ac_ct_CC
2888  fi
2889fi
2890
2891fi
2892if test -z "$CC"; then
2893  if test -n "$ac_tool_prefix"; then
2894  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2895set dummy ${ac_tool_prefix}clang; 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}clang"
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
2936fi
2937if test -z "$ac_cv_prog_CC"; then
2938  ac_ct_CC=$CC
2939  # Extract the first word of "clang", so it can be a program name with args.
2940set dummy clang; ac_word=$2
2941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2942printf %s "checking for $ac_word... " >&6; }
2943if test ${ac_cv_prog_ac_ct_CC+y}
2944then :
2945  printf %s "(cached) " >&6
2946else $as_nop
2947  if test -n "$ac_ct_CC"; then
2948  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2949else
2950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951for as_dir in $PATH
2952do
2953  IFS=$as_save_IFS
2954  case $as_dir in #(((
2955    '') as_dir=./ ;;
2956    */) ;;
2957    *) as_dir=$as_dir/ ;;
2958  esac
2959    for ac_exec_ext in '' $ac_executable_extensions; do
2960  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2961    ac_cv_prog_ac_ct_CC="clang"
2962    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2963    break 2
2964  fi
2965done
2966  done
2967IFS=$as_save_IFS
2968
2969fi
2970fi
2971ac_ct_CC=$ac_cv_prog_ac_ct_CC
2972if test -n "$ac_ct_CC"; then
2973  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2974printf "%s\n" "$ac_ct_CC" >&6; }
2975else
2976  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977printf "%s\n" "no" >&6; }
2978fi
2979
2980  if test "x$ac_ct_CC" = x; then
2981    CC=""
2982  else
2983    case $cross_compiling:$ac_tool_warned in
2984yes:)
2985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2986printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2987ac_tool_warned=yes ;;
2988esac
2989    CC=$ac_ct_CC
2990  fi
2991else
2992  CC="$ac_cv_prog_CC"
2993fi
2994
2995fi
2996
2997
2998test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2999printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3000as_fn_error $? "no acceptable C compiler found in \$PATH
3001See \`config.log' for more details" "$LINENO" 5; }
3002
3003# Provide some information about the compiler.
3004printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3005set X $ac_compile
3006ac_compiler=$2
3007for ac_option in --version -v -V -qversion -version; do
3008  { { ac_try="$ac_compiler $ac_option >&5"
3009case "(($ac_try" in
3010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011  *) ac_try_echo=$ac_try;;
3012esac
3013eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3014printf "%s\n" "$ac_try_echo"; } >&5
3015  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3016  ac_status=$?
3017  if test -s conftest.err; then
3018    sed '10a\
3019... rest of stderr output deleted ...
3020         10q' conftest.err >conftest.er1
3021    cat conftest.er1 >&5
3022  fi
3023  rm -f conftest.er1 conftest.err
3024  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3025  test $ac_status = 0; }
3026done
3027
3028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3029/* end confdefs.h.  */
3030
3031int
3032main (void)
3033{
3034
3035  ;
3036  return 0;
3037}
3038_ACEOF
3039ac_clean_files_save=$ac_clean_files
3040ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3041# Try to create an executable without -o first, disregard a.out.
3042# It will help us diagnose broken compilers, and finding out an intuition
3043# of exeext.
3044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3045printf %s "checking whether the C compiler works... " >&6; }
3046ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3047
3048# The possible output files:
3049ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3050
3051ac_rmfiles=
3052for ac_file in $ac_files
3053do
3054  case $ac_file in
3055    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3056    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3057  esac
3058done
3059rm -f $ac_rmfiles
3060
3061if { { ac_try="$ac_link_default"
3062case "(($ac_try" in
3063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064  *) ac_try_echo=$ac_try;;
3065esac
3066eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3067printf "%s\n" "$ac_try_echo"; } >&5
3068  (eval "$ac_link_default") 2>&5
3069  ac_status=$?
3070  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3071  test $ac_status = 0; }
3072then :
3073  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3074# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3075# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3076# so that the user can short-circuit this test for compilers unknown to
3077# Autoconf.
3078for ac_file in $ac_files ''
3079do
3080  test -f "$ac_file" || continue
3081  case $ac_file in
3082    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3083	;;
3084    [ab].out )
3085	# We found the default executable, but exeext='' is most
3086	# certainly right.
3087	break;;
3088    *.* )
3089	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3090	then :; else
3091	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3092	fi
3093	# We set ac_cv_exeext here because the later test for it is not
3094	# safe: cross compilers may not add the suffix if given an `-o'
3095	# argument, so we may need to know it at that point already.
3096	# Even if this section looks crufty: it has the advantage of
3097	# actually working.
3098	break;;
3099    * )
3100	break;;
3101  esac
3102done
3103test "$ac_cv_exeext" = no && ac_cv_exeext=
3104
3105else $as_nop
3106  ac_file=''
3107fi
3108if test -z "$ac_file"
3109then :
3110  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111printf "%s\n" "no" >&6; }
3112printf "%s\n" "$as_me: failed program was:" >&5
3113sed 's/^/| /' conftest.$ac_ext >&5
3114
3115{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3116printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3117as_fn_error 77 "C compiler cannot create executables
3118See \`config.log' for more details" "$LINENO" 5; }
3119else $as_nop
3120  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3121printf "%s\n" "yes" >&6; }
3122fi
3123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3124printf %s "checking for C compiler default output file name... " >&6; }
3125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3126printf "%s\n" "$ac_file" >&6; }
3127ac_exeext=$ac_cv_exeext
3128
3129rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3130ac_clean_files=$ac_clean_files_save
3131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3132printf %s "checking for suffix of executables... " >&6; }
3133if { { ac_try="$ac_link"
3134case "(($ac_try" in
3135  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136  *) ac_try_echo=$ac_try;;
3137esac
3138eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3139printf "%s\n" "$ac_try_echo"; } >&5
3140  (eval "$ac_link") 2>&5
3141  ac_status=$?
3142  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3143  test $ac_status = 0; }
3144then :
3145  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3146# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3147# work properly (i.e., refer to `conftest.exe'), while it won't with
3148# `rm'.
3149for ac_file in conftest.exe conftest conftest.*; do
3150  test -f "$ac_file" || continue
3151  case $ac_file in
3152    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3153    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3154	  break;;
3155    * ) break;;
3156  esac
3157done
3158else $as_nop
3159  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3160printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3161as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3162See \`config.log' for more details" "$LINENO" 5; }
3163fi
3164rm -f conftest conftest$ac_cv_exeext
3165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3166printf "%s\n" "$ac_cv_exeext" >&6; }
3167
3168rm -f conftest.$ac_ext
3169EXEEXT=$ac_cv_exeext
3170ac_exeext=$EXEEXT
3171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3172/* end confdefs.h.  */
3173#include <stdio.h>
3174int
3175main (void)
3176{
3177FILE *f = fopen ("conftest.out", "w");
3178 return ferror (f) || fclose (f) != 0;
3179
3180  ;
3181  return 0;
3182}
3183_ACEOF
3184ac_clean_files="$ac_clean_files conftest.out"
3185# Check that the compiler produces executables we can run.  If not, either
3186# the compiler is broken, or we cross compile.
3187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3188printf %s "checking whether we are cross compiling... " >&6; }
3189if test "$cross_compiling" != yes; then
3190  { { ac_try="$ac_link"
3191case "(($ac_try" in
3192  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193  *) ac_try_echo=$ac_try;;
3194esac
3195eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3196printf "%s\n" "$ac_try_echo"; } >&5
3197  (eval "$ac_link") 2>&5
3198  ac_status=$?
3199  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3200  test $ac_status = 0; }
3201  if { ac_try='./conftest$ac_cv_exeext'
3202  { { case "(($ac_try" in
3203  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204  *) ac_try_echo=$ac_try;;
3205esac
3206eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3207printf "%s\n" "$ac_try_echo"; } >&5
3208  (eval "$ac_try") 2>&5
3209  ac_status=$?
3210  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3211  test $ac_status = 0; }; }; then
3212    cross_compiling=no
3213  else
3214    if test "$cross_compiling" = maybe; then
3215	cross_compiling=yes
3216    else
3217	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3218printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3219as_fn_error 77 "cannot run C compiled programs.
3220If you meant to cross compile, use \`--host'.
3221See \`config.log' for more details" "$LINENO" 5; }
3222    fi
3223  fi
3224fi
3225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3226printf "%s\n" "$cross_compiling" >&6; }
3227
3228rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3229ac_clean_files=$ac_clean_files_save
3230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3231printf %s "checking for suffix of object files... " >&6; }
3232if test ${ac_cv_objext+y}
3233then :
3234  printf %s "(cached) " >&6
3235else $as_nop
3236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3237/* end confdefs.h.  */
3238
3239int
3240main (void)
3241{
3242
3243  ;
3244  return 0;
3245}
3246_ACEOF
3247rm -f conftest.o conftest.obj
3248if { { ac_try="$ac_compile"
3249case "(($ac_try" in
3250  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251  *) ac_try_echo=$ac_try;;
3252esac
3253eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3254printf "%s\n" "$ac_try_echo"; } >&5
3255  (eval "$ac_compile") 2>&5
3256  ac_status=$?
3257  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3258  test $ac_status = 0; }
3259then :
3260  for ac_file in conftest.o conftest.obj conftest.*; do
3261  test -f "$ac_file" || continue;
3262  case $ac_file in
3263    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3264    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3265       break;;
3266  esac
3267done
3268else $as_nop
3269  printf "%s\n" "$as_me: failed program was:" >&5
3270sed 's/^/| /' conftest.$ac_ext >&5
3271
3272{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3273printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3274as_fn_error $? "cannot compute suffix of object files: cannot compile
3275See \`config.log' for more details" "$LINENO" 5; }
3276fi
3277rm -f conftest.$ac_cv_objext conftest.$ac_ext
3278fi
3279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3280printf "%s\n" "$ac_cv_objext" >&6; }
3281OBJEXT=$ac_cv_objext
3282ac_objext=$OBJEXT
3283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3284printf %s "checking whether the compiler supports GNU C... " >&6; }
3285if test ${ac_cv_c_compiler_gnu+y}
3286then :
3287  printf %s "(cached) " >&6
3288else $as_nop
3289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3290/* end confdefs.h.  */
3291
3292int
3293main (void)
3294{
3295#ifndef __GNUC__
3296       choke me
3297#endif
3298
3299  ;
3300  return 0;
3301}
3302_ACEOF
3303if ac_fn_c_try_compile "$LINENO"
3304then :
3305  ac_compiler_gnu=yes
3306else $as_nop
3307  ac_compiler_gnu=no
3308fi
3309rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3310ac_cv_c_compiler_gnu=$ac_compiler_gnu
3311
3312fi
3313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3314printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3315ac_compiler_gnu=$ac_cv_c_compiler_gnu
3316
3317if test $ac_compiler_gnu = yes; then
3318  GCC=yes
3319else
3320  GCC=
3321fi
3322ac_test_CFLAGS=${CFLAGS+y}
3323ac_save_CFLAGS=$CFLAGS
3324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3325printf %s "checking whether $CC accepts -g... " >&6; }
3326if test ${ac_cv_prog_cc_g+y}
3327then :
3328  printf %s "(cached) " >&6
3329else $as_nop
3330  ac_save_c_werror_flag=$ac_c_werror_flag
3331   ac_c_werror_flag=yes
3332   ac_cv_prog_cc_g=no
3333   CFLAGS="-g"
3334   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3335/* end confdefs.h.  */
3336
3337int
3338main (void)
3339{
3340
3341  ;
3342  return 0;
3343}
3344_ACEOF
3345if ac_fn_c_try_compile "$LINENO"
3346then :
3347  ac_cv_prog_cc_g=yes
3348else $as_nop
3349  CFLAGS=""
3350      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3351/* end confdefs.h.  */
3352
3353int
3354main (void)
3355{
3356
3357  ;
3358  return 0;
3359}
3360_ACEOF
3361if ac_fn_c_try_compile "$LINENO"
3362then :
3363
3364else $as_nop
3365  ac_c_werror_flag=$ac_save_c_werror_flag
3366	 CFLAGS="-g"
3367	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3368/* end confdefs.h.  */
3369
3370int
3371main (void)
3372{
3373
3374  ;
3375  return 0;
3376}
3377_ACEOF
3378if ac_fn_c_try_compile "$LINENO"
3379then :
3380  ac_cv_prog_cc_g=yes
3381fi
3382rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3383fi
3384rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3385fi
3386rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3387   ac_c_werror_flag=$ac_save_c_werror_flag
3388fi
3389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3390printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3391if test $ac_test_CFLAGS; then
3392  CFLAGS=$ac_save_CFLAGS
3393elif test $ac_cv_prog_cc_g = yes; then
3394  if test "$GCC" = yes; then
3395    CFLAGS="-g -O2"
3396  else
3397    CFLAGS="-g"
3398  fi
3399else
3400  if test "$GCC" = yes; then
3401    CFLAGS="-O2"
3402  else
3403    CFLAGS=
3404  fi
3405fi
3406ac_prog_cc_stdc=no
3407if test x$ac_prog_cc_stdc = xno
3408then :
3409  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3410printf %s "checking for $CC option to enable C11 features... " >&6; }
3411if test ${ac_cv_prog_cc_c11+y}
3412then :
3413  printf %s "(cached) " >&6
3414else $as_nop
3415  ac_cv_prog_cc_c11=no
3416ac_save_CC=$CC
3417cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418/* end confdefs.h.  */
3419$ac_c_conftest_c11_program
3420_ACEOF
3421for ac_arg in '' -std=gnu11
3422do
3423  CC="$ac_save_CC $ac_arg"
3424  if ac_fn_c_try_compile "$LINENO"
3425then :
3426  ac_cv_prog_cc_c11=$ac_arg
3427fi
3428rm -f core conftest.err conftest.$ac_objext conftest.beam
3429  test "x$ac_cv_prog_cc_c11" != "xno" && break
3430done
3431rm -f conftest.$ac_ext
3432CC=$ac_save_CC
3433fi
3434
3435if test "x$ac_cv_prog_cc_c11" = xno
3436then :
3437  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3438printf "%s\n" "unsupported" >&6; }
3439else $as_nop
3440  if test "x$ac_cv_prog_cc_c11" = x
3441then :
3442  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3443printf "%s\n" "none needed" >&6; }
3444else $as_nop
3445  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3446printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3447     CC="$CC $ac_cv_prog_cc_c11"
3448fi
3449  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3450  ac_prog_cc_stdc=c11
3451fi
3452fi
3453if test x$ac_prog_cc_stdc = xno
3454then :
3455  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3456printf %s "checking for $CC option to enable C99 features... " >&6; }
3457if test ${ac_cv_prog_cc_c99+y}
3458then :
3459  printf %s "(cached) " >&6
3460else $as_nop
3461  ac_cv_prog_cc_c99=no
3462ac_save_CC=$CC
3463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464/* end confdefs.h.  */
3465$ac_c_conftest_c99_program
3466_ACEOF
3467for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3468do
3469  CC="$ac_save_CC $ac_arg"
3470  if ac_fn_c_try_compile "$LINENO"
3471then :
3472  ac_cv_prog_cc_c99=$ac_arg
3473fi
3474rm -f core conftest.err conftest.$ac_objext conftest.beam
3475  test "x$ac_cv_prog_cc_c99" != "xno" && break
3476done
3477rm -f conftest.$ac_ext
3478CC=$ac_save_CC
3479fi
3480
3481if test "x$ac_cv_prog_cc_c99" = xno
3482then :
3483  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3484printf "%s\n" "unsupported" >&6; }
3485else $as_nop
3486  if test "x$ac_cv_prog_cc_c99" = x
3487then :
3488  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3489printf "%s\n" "none needed" >&6; }
3490else $as_nop
3491  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3492printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3493     CC="$CC $ac_cv_prog_cc_c99"
3494fi
3495  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3496  ac_prog_cc_stdc=c99
3497fi
3498fi
3499if test x$ac_prog_cc_stdc = xno
3500then :
3501  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3502printf %s "checking for $CC option to enable C89 features... " >&6; }
3503if test ${ac_cv_prog_cc_c89+y}
3504then :
3505  printf %s "(cached) " >&6
3506else $as_nop
3507  ac_cv_prog_cc_c89=no
3508ac_save_CC=$CC
3509cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510/* end confdefs.h.  */
3511$ac_c_conftest_c89_program
3512_ACEOF
3513for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3514do
3515  CC="$ac_save_CC $ac_arg"
3516  if ac_fn_c_try_compile "$LINENO"
3517then :
3518  ac_cv_prog_cc_c89=$ac_arg
3519fi
3520rm -f core conftest.err conftest.$ac_objext conftest.beam
3521  test "x$ac_cv_prog_cc_c89" != "xno" && break
3522done
3523rm -f conftest.$ac_ext
3524CC=$ac_save_CC
3525fi
3526
3527if test "x$ac_cv_prog_cc_c89" = xno
3528then :
3529  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3530printf "%s\n" "unsupported" >&6; }
3531else $as_nop
3532  if test "x$ac_cv_prog_cc_c89" = x
3533then :
3534  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3535printf "%s\n" "none needed" >&6; }
3536else $as_nop
3537  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3538printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3539     CC="$CC $ac_cv_prog_cc_c89"
3540fi
3541  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3542  ac_prog_cc_stdc=c89
3543fi
3544fi
3545
3546ac_ext=c
3547ac_cpp='$CPP $CPPFLAGS'
3548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3550ac_compiler_gnu=$ac_cv_c_compiler_gnu
3551
3552
3553  ac_ext=c
3554ac_cpp='$CPP $CPPFLAGS'
3555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3557ac_compiler_gnu=$ac_cv_c_compiler_gnu
3558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3559printf %s "checking whether $CC understands -c and -o together... " >&6; }
3560if test ${am_cv_prog_cc_c_o+y}
3561then :
3562  printf %s "(cached) " >&6
3563else $as_nop
3564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3565/* end confdefs.h.  */
3566
3567int
3568main (void)
3569{
3570
3571  ;
3572  return 0;
3573}
3574_ACEOF
3575  # Make sure it works both with $CC and with simple cc.
3576  # Following AC_PROG_CC_C_O, we do the test twice because some
3577  # compilers refuse to overwrite an existing .o file with -o,
3578  # though they will create one.
3579  am_cv_prog_cc_c_o=yes
3580  for am_i in 1 2; do
3581    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3582   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3583   ac_status=$?
3584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585   (exit $ac_status); } \
3586         && test -f conftest2.$ac_objext; then
3587      : OK
3588    else
3589      am_cv_prog_cc_c_o=no
3590      break
3591    fi
3592  done
3593  rm -f core conftest*
3594  unset am_i
3595fi
3596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3597printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3598if test "$am_cv_prog_cc_c_o" != yes; then
3599   # Losing compiler, so override with the script.
3600   # FIXME: It is wrong to rewrite CC.
3601   # But if we don't then we get into trouble of one sort or another.
3602   # A longer-term fix would be to have automake use am__CC in this case,
3603   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3604   CC="$am_aux_dir/compile $CC"
3605fi
3606ac_ext=c
3607ac_cpp='$CPP $CPPFLAGS'
3608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3610ac_compiler_gnu=$ac_cv_c_compiler_gnu
3611
3612
3613
3614ac_header= ac_cache=
3615for ac_item in $ac_header_c_list
3616do
3617  if test $ac_cache; then
3618    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3619    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3620      printf "%s\n" "#define $ac_item 1" >> confdefs.h
3621    fi
3622    ac_header= ac_cache=
3623  elif test $ac_header; then
3624    ac_cache=$ac_item
3625  else
3626    ac_header=$ac_item
3627  fi
3628done
3629
3630
3631
3632
3633
3634
3635
3636
3637if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3638then :
3639
3640printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3641
3642fi
3643
3644
3645
3646
3647
3648
3649  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3650printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3651if test ${ac_cv_safe_to_define___extensions__+y}
3652then :
3653  printf %s "(cached) " >&6
3654else $as_nop
3655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656/* end confdefs.h.  */
3657
3658#         define __EXTENSIONS__ 1
3659          $ac_includes_default
3660int
3661main (void)
3662{
3663
3664  ;
3665  return 0;
3666}
3667_ACEOF
3668if ac_fn_c_try_compile "$LINENO"
3669then :
3670  ac_cv_safe_to_define___extensions__=yes
3671else $as_nop
3672  ac_cv_safe_to_define___extensions__=no
3673fi
3674rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3675fi
3676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3677printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3678
3679  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3680printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3681if test ${ac_cv_should_define__xopen_source+y}
3682then :
3683  printf %s "(cached) " >&6
3684else $as_nop
3685  ac_cv_should_define__xopen_source=no
3686    if test $ac_cv_header_wchar_h = yes
3687then :
3688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3689/* end confdefs.h.  */
3690
3691          #include <wchar.h>
3692          mbstate_t x;
3693int
3694main (void)
3695{
3696
3697  ;
3698  return 0;
3699}
3700_ACEOF
3701if ac_fn_c_try_compile "$LINENO"
3702then :
3703
3704else $as_nop
3705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706/* end confdefs.h.  */
3707
3708            #define _XOPEN_SOURCE 500
3709            #include <wchar.h>
3710            mbstate_t x;
3711int
3712main (void)
3713{
3714
3715  ;
3716  return 0;
3717}
3718_ACEOF
3719if ac_fn_c_try_compile "$LINENO"
3720then :
3721  ac_cv_should_define__xopen_source=yes
3722fi
3723rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3724fi
3725rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3726fi
3727fi
3728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3729printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3730
3731  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3732
3733  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3734
3735  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3736
3737  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3738
3739  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3740
3741  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3742
3743  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3744
3745  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3746
3747  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3748
3749  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3750
3751  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3752
3753  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3754
3755  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3756
3757  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3758
3759  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3760
3761  if test $ac_cv_header_minix_config_h = yes
3762then :
3763  MINIX=yes
3764    printf "%s\n" "#define _MINIX 1" >>confdefs.h
3765
3766    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3767
3768    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3769
3770else $as_nop
3771  MINIX=
3772fi
3773  if test $ac_cv_safe_to_define___extensions__ = yes
3774then :
3775  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3776
3777fi
3778  if test $ac_cv_should_define__xopen_source = yes
3779then :
3780  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3781
3782fi
3783
3784
3785# Initialize Automake
3786am__api_version='1.16'
3787
3788
3789  # Find a good install program.  We prefer a C program (faster),
3790# so one script is as good as another.  But avoid the broken or
3791# incompatible versions:
3792# SysV /etc/install, /usr/sbin/install
3793# SunOS /usr/etc/install
3794# IRIX /sbin/install
3795# AIX /bin/install
3796# AmigaOS /C/install, which installs bootblocks on floppy discs
3797# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3798# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3799# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3800# OS/2's system install, which has a completely different semantic
3801# ./install, which can be erroneously created by make from ./install.sh.
3802# Reject install programs that cannot install multiple files.
3803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3804printf %s "checking for a BSD-compatible install... " >&6; }
3805if test -z "$INSTALL"; then
3806if test ${ac_cv_path_install+y}
3807then :
3808  printf %s "(cached) " >&6
3809else $as_nop
3810  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811for as_dir in $PATH
3812do
3813  IFS=$as_save_IFS
3814  case $as_dir in #(((
3815    '') as_dir=./ ;;
3816    */) ;;
3817    *) as_dir=$as_dir/ ;;
3818  esac
3819    # Account for fact that we put trailing slashes in our PATH walk.
3820case $as_dir in #((
3821  ./ | /[cC]/* | \
3822  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3823  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3824  /usr/ucb/* ) ;;
3825  *)
3826    # OSF1 and SCO ODT 3.0 have their own names for install.
3827    # Don't use installbsd from OSF since it installs stuff as root
3828    # by default.
3829    for ac_prog in ginstall scoinst install; do
3830      for ac_exec_ext in '' $ac_executable_extensions; do
3831	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3832	  if test $ac_prog = install &&
3833	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3834	    # AIX install.  It has an incompatible calling convention.
3835	    :
3836	  elif test $ac_prog = install &&
3837	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3838	    # program-specific install script used by HP pwplus--don't use.
3839	    :
3840	  else
3841	    rm -rf conftest.one conftest.two conftest.dir
3842	    echo one > conftest.one
3843	    echo two > conftest.two
3844	    mkdir conftest.dir
3845	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3846	      test -s conftest.one && test -s conftest.two &&
3847	      test -s conftest.dir/conftest.one &&
3848	      test -s conftest.dir/conftest.two
3849	    then
3850	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3851	      break 3
3852	    fi
3853	  fi
3854	fi
3855      done
3856    done
3857    ;;
3858esac
3859
3860  done
3861IFS=$as_save_IFS
3862
3863rm -rf conftest.one conftest.two conftest.dir
3864
3865fi
3866  if test ${ac_cv_path_install+y}; then
3867    INSTALL=$ac_cv_path_install
3868  else
3869    # As a last resort, use the slow shell script.  Don't cache a
3870    # value for INSTALL within a source directory, because that will
3871    # break other packages using the cache if that directory is
3872    # removed, or if the value is a relative name.
3873    INSTALL=$ac_install_sh
3874  fi
3875fi
3876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3877printf "%s\n" "$INSTALL" >&6; }
3878
3879# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3880# It thinks the first close brace ends the variable substitution.
3881test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3882
3883test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3884
3885test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3886
3887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3888printf %s "checking whether build environment is sane... " >&6; }
3889# Reject unsafe characters in $srcdir or the absolute working directory
3890# name.  Accept space and tab only in the latter.
3891am_lf='
3892'
3893case `pwd` in
3894  *[\\\"\#\$\&\'\`$am_lf]*)
3895    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3896esac
3897case $srcdir in
3898  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3899    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3900esac
3901
3902# Do 'set' in a subshell so we don't clobber the current shell's
3903# arguments.  Must try -L first in case configure is actually a
3904# symlink; some systems play weird games with the mod time of symlinks
3905# (eg FreeBSD returns the mod time of the symlink's containing
3906# directory).
3907if (
3908   am_has_slept=no
3909   for am_try in 1 2; do
3910     echo "timestamp, slept: $am_has_slept" > conftest.file
3911     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3912     if test "$*" = "X"; then
3913	# -L didn't work.
3914	set X `ls -t "$srcdir/configure" conftest.file`
3915     fi
3916     if test "$*" != "X $srcdir/configure conftest.file" \
3917	&& test "$*" != "X conftest.file $srcdir/configure"; then
3918
3919	# If neither matched, then we have a broken ls.  This can happen
3920	# if, for instance, CONFIG_SHELL is bash and it inherits a
3921	# broken ls alias from the environment.  This has actually
3922	# happened.  Such a system could not be considered "sane".
3923	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3924  alias in your environment" "$LINENO" 5
3925     fi
3926     if test "$2" = conftest.file || test $am_try -eq 2; then
3927       break
3928     fi
3929     # Just in case.
3930     sleep 1
3931     am_has_slept=yes
3932   done
3933   test "$2" = conftest.file
3934   )
3935then
3936   # Ok.
3937   :
3938else
3939   as_fn_error $? "newly created file is older than distributed files!
3940Check your system clock" "$LINENO" 5
3941fi
3942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3943printf "%s\n" "yes" >&6; }
3944# If we didn't sleep, we still need to ensure time stamps of config.status and
3945# generated files are strictly newer.
3946am_sleep_pid=
3947if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3948  ( sleep 1 ) &
3949  am_sleep_pid=$!
3950fi
3951
3952rm -f conftest.file
3953
3954test "$program_prefix" != NONE &&
3955  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3956# Use a double $ so make ignores it.
3957test "$program_suffix" != NONE &&
3958  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3959# Double any \ or $.
3960# By default was `s,x,x', remove it if useless.
3961ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3962program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3963
3964
3965  if test x"${MISSING+set}" != xset; then
3966  MISSING="\${SHELL} '$am_aux_dir/missing'"
3967fi
3968# Use eval to expand $SHELL
3969if eval "$MISSING --is-lightweight"; then
3970  am_missing_run="$MISSING "
3971else
3972  am_missing_run=
3973  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3974printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3975fi
3976
3977if test x"${install_sh+set}" != xset; then
3978  case $am_aux_dir in
3979  *\ * | *\	*)
3980    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3981  *)
3982    install_sh="\${SHELL} $am_aux_dir/install-sh"
3983  esac
3984fi
3985
3986# Installed binaries are usually stripped using 'strip' when the user
3987# run "make install-strip".  However 'strip' might not be the right
3988# tool to use in cross-compilation environments, therefore Automake
3989# will honor the 'STRIP' environment variable to overrule this program.
3990if test "$cross_compiling" != no; then
3991  if test -n "$ac_tool_prefix"; then
3992  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3993set dummy ${ac_tool_prefix}strip; ac_word=$2
3994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3995printf %s "checking for $ac_word... " >&6; }
3996if test ${ac_cv_prog_STRIP+y}
3997then :
3998  printf %s "(cached) " >&6
3999else $as_nop
4000  if test -n "$STRIP"; then
4001  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4002else
4003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004for as_dir in $PATH
4005do
4006  IFS=$as_save_IFS
4007  case $as_dir in #(((
4008    '') as_dir=./ ;;
4009    */) ;;
4010    *) as_dir=$as_dir/ ;;
4011  esac
4012    for ac_exec_ext in '' $ac_executable_extensions; do
4013  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4014    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4015    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4016    break 2
4017  fi
4018done
4019  done
4020IFS=$as_save_IFS
4021
4022fi
4023fi
4024STRIP=$ac_cv_prog_STRIP
4025if test -n "$STRIP"; then
4026  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4027printf "%s\n" "$STRIP" >&6; }
4028else
4029  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4030printf "%s\n" "no" >&6; }
4031fi
4032
4033
4034fi
4035if test -z "$ac_cv_prog_STRIP"; then
4036  ac_ct_STRIP=$STRIP
4037  # Extract the first word of "strip", so it can be a program name with args.
4038set dummy strip; ac_word=$2
4039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4040printf %s "checking for $ac_word... " >&6; }
4041if test ${ac_cv_prog_ac_ct_STRIP+y}
4042then :
4043  printf %s "(cached) " >&6
4044else $as_nop
4045  if test -n "$ac_ct_STRIP"; then
4046  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4047else
4048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049for as_dir in $PATH
4050do
4051  IFS=$as_save_IFS
4052  case $as_dir in #(((
4053    '') as_dir=./ ;;
4054    */) ;;
4055    *) as_dir=$as_dir/ ;;
4056  esac
4057    for ac_exec_ext in '' $ac_executable_extensions; do
4058  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4059    ac_cv_prog_ac_ct_STRIP="strip"
4060    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4061    break 2
4062  fi
4063done
4064  done
4065IFS=$as_save_IFS
4066
4067fi
4068fi
4069ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4070if test -n "$ac_ct_STRIP"; then
4071  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4072printf "%s\n" "$ac_ct_STRIP" >&6; }
4073else
4074  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4075printf "%s\n" "no" >&6; }
4076fi
4077
4078  if test "x$ac_ct_STRIP" = x; then
4079    STRIP=":"
4080  else
4081    case $cross_compiling:$ac_tool_warned in
4082yes:)
4083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4084printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4085ac_tool_warned=yes ;;
4086esac
4087    STRIP=$ac_ct_STRIP
4088  fi
4089else
4090  STRIP="$ac_cv_prog_STRIP"
4091fi
4092
4093fi
4094INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4095
4096
4097  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4098printf %s "checking for a race-free mkdir -p... " >&6; }
4099if test -z "$MKDIR_P"; then
4100  if test ${ac_cv_path_mkdir+y}
4101then :
4102  printf %s "(cached) " >&6
4103else $as_nop
4104  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4106do
4107  IFS=$as_save_IFS
4108  case $as_dir in #(((
4109    '') as_dir=./ ;;
4110    */) ;;
4111    *) as_dir=$as_dir/ ;;
4112  esac
4113    for ac_prog in mkdir gmkdir; do
4114	 for ac_exec_ext in '' $ac_executable_extensions; do
4115	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4116	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4117	     'mkdir ('*'coreutils) '* | \
4118	     'BusyBox '* | \
4119	     'mkdir (fileutils) '4.1*)
4120	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4121	       break 3;;
4122	   esac
4123	 done
4124       done
4125  done
4126IFS=$as_save_IFS
4127
4128fi
4129
4130  test -d ./--version && rmdir ./--version
4131  if test ${ac_cv_path_mkdir+y}; then
4132    MKDIR_P="$ac_cv_path_mkdir -p"
4133  else
4134    # As a last resort, use the slow shell script.  Don't cache a
4135    # value for MKDIR_P within a source directory, because that will
4136    # break other packages using the cache if that directory is
4137    # removed, or if the value is a relative name.
4138    MKDIR_P="$ac_install_sh -d"
4139  fi
4140fi
4141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4142printf "%s\n" "$MKDIR_P" >&6; }
4143
4144for ac_prog in gawk mawk nawk awk
4145do
4146  # Extract the first word of "$ac_prog", so it can be a program name with args.
4147set dummy $ac_prog; ac_word=$2
4148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4149printf %s "checking for $ac_word... " >&6; }
4150if test ${ac_cv_prog_AWK+y}
4151then :
4152  printf %s "(cached) " >&6
4153else $as_nop
4154  if test -n "$AWK"; then
4155  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4156else
4157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158for as_dir in $PATH
4159do
4160  IFS=$as_save_IFS
4161  case $as_dir in #(((
4162    '') as_dir=./ ;;
4163    */) ;;
4164    *) as_dir=$as_dir/ ;;
4165  esac
4166    for ac_exec_ext in '' $ac_executable_extensions; do
4167  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4168    ac_cv_prog_AWK="$ac_prog"
4169    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4170    break 2
4171  fi
4172done
4173  done
4174IFS=$as_save_IFS
4175
4176fi
4177fi
4178AWK=$ac_cv_prog_AWK
4179if test -n "$AWK"; then
4180  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4181printf "%s\n" "$AWK" >&6; }
4182else
4183  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4184printf "%s\n" "no" >&6; }
4185fi
4186
4187
4188  test -n "$AWK" && break
4189done
4190
4191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4192printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4193set x ${MAKE-make}
4194ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4195if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4196then :
4197  printf %s "(cached) " >&6
4198else $as_nop
4199  cat >conftest.make <<\_ACEOF
4200SHELL = /bin/sh
4201all:
4202	@echo '@@@%%%=$(MAKE)=@@@%%%'
4203_ACEOF
4204# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4205case `${MAKE-make} -f conftest.make 2>/dev/null` in
4206  *@@@%%%=?*=@@@%%%*)
4207    eval ac_cv_prog_make_${ac_make}_set=yes;;
4208  *)
4209    eval ac_cv_prog_make_${ac_make}_set=no;;
4210esac
4211rm -f conftest.make
4212fi
4213if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4214  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4215printf "%s\n" "yes" >&6; }
4216  SET_MAKE=
4217else
4218  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4219printf "%s\n" "no" >&6; }
4220  SET_MAKE="MAKE=${MAKE-make}"
4221fi
4222
4223rm -rf .tst 2>/dev/null
4224mkdir .tst 2>/dev/null
4225if test -d .tst; then
4226  am__leading_dot=.
4227else
4228  am__leading_dot=_
4229fi
4230rmdir .tst 2>/dev/null
4231
4232DEPDIR="${am__leading_dot}deps"
4233
4234ac_config_commands="$ac_config_commands depfiles"
4235
4236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4237printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4238cat > confinc.mk << 'END'
4239am__doit:
4240	@echo this is the am__doit target >confinc.out
4241.PHONY: am__doit
4242END
4243am__include="#"
4244am__quote=
4245# BSD make does it like this.
4246echo '.include "confinc.mk" # ignored' > confmf.BSD
4247# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4248echo 'include confinc.mk # ignored' > confmf.GNU
4249_am_result=no
4250for s in GNU BSD; do
4251  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4252   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4253   ac_status=$?
4254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255   (exit $ac_status); }
4256  case $?:`cat confinc.out 2>/dev/null` in #(
4257  '0:this is the am__doit target') :
4258    case $s in #(
4259  BSD) :
4260    am__include='.include' am__quote='"' ;; #(
4261  *) :
4262    am__include='include' am__quote='' ;;
4263esac ;; #(
4264  *) :
4265     ;;
4266esac
4267  if test "$am__include" != "#"; then
4268    _am_result="yes ($s style)"
4269    break
4270  fi
4271done
4272rm -f confinc.* confmf.*
4273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4274printf "%s\n" "${_am_result}" >&6; }
4275
4276# Check whether --enable-dependency-tracking was given.
4277if test ${enable_dependency_tracking+y}
4278then :
4279  enableval=$enable_dependency_tracking;
4280fi
4281
4282if test "x$enable_dependency_tracking" != xno; then
4283  am_depcomp="$ac_aux_dir/depcomp"
4284  AMDEPBACKSLASH='\'
4285  am__nodep='_no'
4286fi
4287 if test "x$enable_dependency_tracking" != xno; then
4288  AMDEP_TRUE=
4289  AMDEP_FALSE='#'
4290else
4291  AMDEP_TRUE='#'
4292  AMDEP_FALSE=
4293fi
4294
4295
4296# Check whether --enable-silent-rules was given.
4297if test ${enable_silent_rules+y}
4298then :
4299  enableval=$enable_silent_rules;
4300fi
4301
4302case $enable_silent_rules in # (((
4303  yes) AM_DEFAULT_VERBOSITY=0;;
4304   no) AM_DEFAULT_VERBOSITY=1;;
4305    *) AM_DEFAULT_VERBOSITY=1;;
4306esac
4307am_make=${MAKE-make}
4308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4309printf %s "checking whether $am_make supports nested variables... " >&6; }
4310if test ${am_cv_make_support_nested_variables+y}
4311then :
4312  printf %s "(cached) " >&6
4313else $as_nop
4314  if printf "%s\n" 'TRUE=$(BAR$(V))
4315BAR0=false
4316BAR1=true
4317V=1
4318am__doit:
4319	@$(TRUE)
4320.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4321  am_cv_make_support_nested_variables=yes
4322else
4323  am_cv_make_support_nested_variables=no
4324fi
4325fi
4326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4327printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4328if test $am_cv_make_support_nested_variables = yes; then
4329    AM_V='$(V)'
4330  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4331else
4332  AM_V=$AM_DEFAULT_VERBOSITY
4333  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4334fi
4335AM_BACKSLASH='\'
4336
4337if test "`cd $srcdir && pwd`" != "`pwd`"; then
4338  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4339  # is not polluted with repeated "-I."
4340  am__isrc=' -I$(srcdir)'
4341  # test to see if srcdir already configured
4342  if test -f $srcdir/config.status; then
4343    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4344  fi
4345fi
4346
4347# test whether we have cygpath
4348if test -z "$CYGPATH_W"; then
4349  if (cygpath --version) >/dev/null 2>/dev/null; then
4350    CYGPATH_W='cygpath -w'
4351  else
4352    CYGPATH_W=echo
4353  fi
4354fi
4355
4356
4357# Define the identity of the package.
4358 PACKAGE='xrefresh'
4359 VERSION='1.0.7'
4360
4361
4362printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4363
4364
4365printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4366
4367# Some tools Automake needs.
4368
4369ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4370
4371
4372AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4373
4374
4375AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4376
4377
4378AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4379
4380
4381MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4382
4383# For better backward compatibility.  To be removed once Automake 1.9.x
4384# dies out for good.  For more background, see:
4385# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4386# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4387mkdir_p='$(MKDIR_P)'
4388
4389# We need awk for the "check" target (and possibly the TAP driver).  The
4390# system "awk" is bad on some platforms.
4391# Always define AMTAR for backward compatibility.  Yes, it's still used
4392# in the wild :-(  We should find a proper way to deprecate it ...
4393AMTAR='$${TAR-tar}'
4394
4395
4396# We'll loop over all known methods to create a tar archive until one works.
4397_am_tools='gnutar  pax cpio none'
4398
4399am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4400
4401
4402
4403
4404
4405depcc="$CC"   am_compiler_list=
4406
4407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4408printf %s "checking dependency style of $depcc... " >&6; }
4409if test ${am_cv_CC_dependencies_compiler_type+y}
4410then :
4411  printf %s "(cached) " >&6
4412else $as_nop
4413  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4414  # We make a subdir and do the tests there.  Otherwise we can end up
4415  # making bogus files that we don't know about and never remove.  For
4416  # instance it was reported that on HP-UX the gcc test will end up
4417  # making a dummy file named 'D' -- because '-MD' means "put the output
4418  # in D".
4419  rm -rf conftest.dir
4420  mkdir conftest.dir
4421  # Copy depcomp to subdir because otherwise we won't find it if we're
4422  # using a relative directory.
4423  cp "$am_depcomp" conftest.dir
4424  cd conftest.dir
4425  # We will build objects and dependencies in a subdirectory because
4426  # it helps to detect inapplicable dependency modes.  For instance
4427  # both Tru64's cc and ICC support -MD to output dependencies as a
4428  # side effect of compilation, but ICC will put the dependencies in
4429  # the current directory while Tru64 will put them in the object
4430  # directory.
4431  mkdir sub
4432
4433  am_cv_CC_dependencies_compiler_type=none
4434  if test "$am_compiler_list" = ""; then
4435     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4436  fi
4437  am__universal=false
4438  case " $depcc " in #(
4439     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4440     esac
4441
4442  for depmode in $am_compiler_list; do
4443    # Setup a source with many dependencies, because some compilers
4444    # like to wrap large dependency lists on column 80 (with \), and
4445    # we should not choose a depcomp mode which is confused by this.
4446    #
4447    # We need to recreate these files for each test, as the compiler may
4448    # overwrite some of them when testing with obscure command lines.
4449    # This happens at least with the AIX C compiler.
4450    : > sub/conftest.c
4451    for i in 1 2 3 4 5 6; do
4452      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4453      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4454      # Solaris 10 /bin/sh.
4455      echo '/* dummy */' > sub/conftst$i.h
4456    done
4457    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4458
4459    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4460    # mode.  It turns out that the SunPro C++ compiler does not properly
4461    # handle '-M -o', and we need to detect this.  Also, some Intel
4462    # versions had trouble with output in subdirs.
4463    am__obj=sub/conftest.${OBJEXT-o}
4464    am__minus_obj="-o $am__obj"
4465    case $depmode in
4466    gcc)
4467      # This depmode causes a compiler race in universal mode.
4468      test "$am__universal" = false || continue
4469      ;;
4470    nosideeffect)
4471      # After this tag, mechanisms are not by side-effect, so they'll
4472      # only be used when explicitly requested.
4473      if test "x$enable_dependency_tracking" = xyes; then
4474	continue
4475      else
4476	break
4477      fi
4478      ;;
4479    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4480      # This compiler won't grok '-c -o', but also, the minuso test has
4481      # not run yet.  These depmodes are late enough in the game, and
4482      # so weak that their functioning should not be impacted.
4483      am__obj=conftest.${OBJEXT-o}
4484      am__minus_obj=
4485      ;;
4486    none) break ;;
4487    esac
4488    if depmode=$depmode \
4489       source=sub/conftest.c object=$am__obj \
4490       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4491       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4492         >/dev/null 2>conftest.err &&
4493       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4494       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4495       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4496       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4497      # icc doesn't choke on unknown options, it will just issue warnings
4498      # or remarks (even with -Werror).  So we grep stderr for any message
4499      # that says an option was ignored or not supported.
4500      # When given -MP, icc 7.0 and 7.1 complain thusly:
4501      #   icc: Command line warning: ignoring option '-M'; no argument required
4502      # The diagnosis changed in icc 8.0:
4503      #   icc: Command line remark: option '-MP' not supported
4504      if (grep 'ignoring option' conftest.err ||
4505          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4506        am_cv_CC_dependencies_compiler_type=$depmode
4507        break
4508      fi
4509    fi
4510  done
4511
4512  cd ..
4513  rm -rf conftest.dir
4514else
4515  am_cv_CC_dependencies_compiler_type=none
4516fi
4517
4518fi
4519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4520printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4521CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4522
4523 if
4524  test "x$enable_dependency_tracking" != xno \
4525  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4526  am__fastdepCC_TRUE=
4527  am__fastdepCC_FALSE='#'
4528else
4529  am__fastdepCC_TRUE='#'
4530  am__fastdepCC_FALSE=
4531fi
4532
4533
4534# Variables for tags utilities; see am/tags.am
4535if test -z "$CTAGS"; then
4536  CTAGS=ctags
4537fi
4538
4539if test -z "$ETAGS"; then
4540  ETAGS=etags
4541fi
4542
4543if test -z "$CSCOPE"; then
4544  CSCOPE=cscope
4545fi
4546
4547
4548
4549# POSIX will say in a future version that running "rm -f" with no argument
4550# is OK; and we want to be able to make that assumption in our Makefile
4551# recipes.  So use an aggressive probe to check that the usage we want is
4552# actually supported "in the wild" to an acceptable degree.
4553# See automake bug#10828.
4554# To make any issue more visible, cause the running configure to be aborted
4555# by default if the 'rm' program in use doesn't match our expectations; the
4556# user can still override this though.
4557if rm -f && rm -fr && rm -rf; then : OK; else
4558  cat >&2 <<'END'
4559Oops!
4560
4561Your 'rm' program seems unable to run without file operands specified
4562on the command line, even when the '-f' option is present.  This is contrary
4563to the behaviour of most rm programs out there, and not conforming with
4564the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4565
4566Please tell bug-automake@gnu.org about your system, including the value
4567of your $PATH and any error possibly output before this message.  This
4568can help us improve future automake versions.
4569
4570END
4571  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4572    echo 'Configuration will proceed anyway, since you have set the' >&2
4573    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4574    echo >&2
4575  else
4576    cat >&2 <<'END'
4577Aborting the configuration process, to ensure you take notice of the issue.
4578
4579You can download and install GNU coreutils to get an 'rm' implementation
4580that behaves properly: <https://www.gnu.org/software/coreutils/>.
4581
4582If you want to complete the configuration process using your problematic
4583'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4584to "yes", and re-run configure.
4585
4586END
4587    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4588  fi
4589fi
4590
4591
4592# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4606printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4607if test ${ac_cv_c_undeclared_builtin_options+y}
4608then :
4609  printf %s "(cached) " >&6
4610else $as_nop
4611  ac_save_CFLAGS=$CFLAGS
4612   ac_cv_c_undeclared_builtin_options='cannot detect'
4613   for ac_arg in '' -fno-builtin; do
4614     CFLAGS="$ac_save_CFLAGS $ac_arg"
4615     # This test program should *not* compile successfully.
4616     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4617/* end confdefs.h.  */
4618
4619int
4620main (void)
4621{
4622(void) strchr;
4623  ;
4624  return 0;
4625}
4626_ACEOF
4627if ac_fn_c_try_compile "$LINENO"
4628then :
4629
4630else $as_nop
4631  # This test program should compile successfully.
4632        # No library function is consistently available on
4633        # freestanding implementations, so test against a dummy
4634        # declaration.  Include always-available headers on the
4635        # off chance that they somehow elicit warnings.
4636        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637/* end confdefs.h.  */
4638#include <float.h>
4639#include <limits.h>
4640#include <stdarg.h>
4641#include <stddef.h>
4642extern void ac_decl (int, char *);
4643
4644int
4645main (void)
4646{
4647(void) ac_decl (0, (char *) 0);
4648  (void) ac_decl;
4649
4650  ;
4651  return 0;
4652}
4653_ACEOF
4654if ac_fn_c_try_compile "$LINENO"
4655then :
4656  if test x"$ac_arg" = x
4657then :
4658  ac_cv_c_undeclared_builtin_options='none needed'
4659else $as_nop
4660  ac_cv_c_undeclared_builtin_options=$ac_arg
4661fi
4662          break
4663fi
4664rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4665fi
4666rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4667    done
4668    CFLAGS=$ac_save_CFLAGS
4669
4670fi
4671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4672printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4673  case $ac_cv_c_undeclared_builtin_options in #(
4674  'cannot detect') :
4675    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4676printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4677as_fn_error $? "cannot make $CC report undeclared builtins
4678See \`config.log' for more details" "$LINENO" 5; } ;; #(
4679  'none needed') :
4680    ac_c_undeclared_builtin_options='' ;; #(
4681  *) :
4682    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4683esac
4684
4685
4686
4687
4688
4689ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4690if test "x$ac_cv_have_decl___clang__" = xyes
4691then :
4692  CLANGCC="yes"
4693else $as_nop
4694  CLANGCC="no"
4695fi
4696ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4697if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4698then :
4699  INTELCC="yes"
4700else $as_nop
4701  INTELCC="no"
4702fi
4703ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4704if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4705then :
4706  SUNCC="yes"
4707else $as_nop
4708  SUNCC="no"
4709fi
4710
4711
4712
4713
4714
4715
4716
4717
4718if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4719	if test -n "$ac_tool_prefix"; then
4720  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4721set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4723printf %s "checking for $ac_word... " >&6; }
4724if test ${ac_cv_path_PKG_CONFIG+y}
4725then :
4726  printf %s "(cached) " >&6
4727else $as_nop
4728  case $PKG_CONFIG in
4729  [\\/]* | ?:[\\/]*)
4730  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4731  ;;
4732  *)
4733  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734for as_dir in $PATH
4735do
4736  IFS=$as_save_IFS
4737  case $as_dir in #(((
4738    '') as_dir=./ ;;
4739    */) ;;
4740    *) as_dir=$as_dir/ ;;
4741  esac
4742    for ac_exec_ext in '' $ac_executable_extensions; do
4743  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4744    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4745    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4746    break 2
4747  fi
4748done
4749  done
4750IFS=$as_save_IFS
4751
4752  ;;
4753esac
4754fi
4755PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4756if test -n "$PKG_CONFIG"; then
4757  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4758printf "%s\n" "$PKG_CONFIG" >&6; }
4759else
4760  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4761printf "%s\n" "no" >&6; }
4762fi
4763
4764
4765fi
4766if test -z "$ac_cv_path_PKG_CONFIG"; then
4767  ac_pt_PKG_CONFIG=$PKG_CONFIG
4768  # Extract the first word of "pkg-config", so it can be a program name with args.
4769set dummy pkg-config; ac_word=$2
4770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4771printf %s "checking for $ac_word... " >&6; }
4772if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4773then :
4774  printf %s "(cached) " >&6
4775else $as_nop
4776  case $ac_pt_PKG_CONFIG in
4777  [\\/]* | ?:[\\/]*)
4778  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4779  ;;
4780  *)
4781  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782for as_dir in $PATH
4783do
4784  IFS=$as_save_IFS
4785  case $as_dir in #(((
4786    '') as_dir=./ ;;
4787    */) ;;
4788    *) as_dir=$as_dir/ ;;
4789  esac
4790    for ac_exec_ext in '' $ac_executable_extensions; do
4791  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4792    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4793    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4794    break 2
4795  fi
4796done
4797  done
4798IFS=$as_save_IFS
4799
4800  ;;
4801esac
4802fi
4803ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4804if test -n "$ac_pt_PKG_CONFIG"; then
4805  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4806printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4807else
4808  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4809printf "%s\n" "no" >&6; }
4810fi
4811
4812  if test "x$ac_pt_PKG_CONFIG" = x; then
4813    PKG_CONFIG=""
4814  else
4815    case $cross_compiling:$ac_tool_warned in
4816yes:)
4817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4818printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4819ac_tool_warned=yes ;;
4820esac
4821    PKG_CONFIG=$ac_pt_PKG_CONFIG
4822  fi
4823else
4824  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4825fi
4826
4827fi
4828if test -n "$PKG_CONFIG"; then
4829	_pkg_min_version=0.9.0
4830	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4831printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4832	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4833		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4834printf "%s\n" "yes" >&6; }
4835	else
4836		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4837printf "%s\n" "no" >&6; }
4838		PKG_CONFIG=""
4839	fi
4840fi
4841
4842
4843  # Make sure we can run config.sub.
4844$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4845  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4846
4847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4848printf %s "checking build system type... " >&6; }
4849if test ${ac_cv_build+y}
4850then :
4851  printf %s "(cached) " >&6
4852else $as_nop
4853  ac_build_alias=$build_alias
4854test "x$ac_build_alias" = x &&
4855  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4856test "x$ac_build_alias" = x &&
4857  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4858ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4859  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4860
4861fi
4862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4863printf "%s\n" "$ac_cv_build" >&6; }
4864case $ac_cv_build in
4865*-*-*) ;;
4866*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4867esac
4868build=$ac_cv_build
4869ac_save_IFS=$IFS; IFS='-'
4870set x $ac_cv_build
4871shift
4872build_cpu=$1
4873build_vendor=$2
4874shift; shift
4875# Remember, the first character of IFS is used to create $*,
4876# except with old shells:
4877build_os=$*
4878IFS=$ac_save_IFS
4879case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4880
4881
4882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4883printf %s "checking host system type... " >&6; }
4884if test ${ac_cv_host+y}
4885then :
4886  printf %s "(cached) " >&6
4887else $as_nop
4888  if test "x$host_alias" = x; then
4889  ac_cv_host=$ac_cv_build
4890else
4891  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4892    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4893fi
4894
4895fi
4896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4897printf "%s\n" "$ac_cv_host" >&6; }
4898case $ac_cv_host in
4899*-*-*) ;;
4900*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4901esac
4902host=$ac_cv_host
4903ac_save_IFS=$IFS; IFS='-'
4904set x $ac_cv_host
4905shift
4906host_cpu=$1
4907host_vendor=$2
4908shift; shift
4909# Remember, the first character of IFS is used to create $*,
4910# except with old shells:
4911host_os=$*
4912IFS=$ac_save_IFS
4913case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4914
4915
4916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4917printf %s "checking for a sed that does not truncate output... " >&6; }
4918if test ${ac_cv_path_SED+y}
4919then :
4920  printf %s "(cached) " >&6
4921else $as_nop
4922            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4923     for ac_i in 1 2 3 4 5 6 7; do
4924       ac_script="$ac_script$as_nl$ac_script"
4925     done
4926     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4927     { ac_script=; unset ac_script;}
4928     if test -z "$SED"; then
4929  ac_path_SED_found=false
4930  # Loop through the user's path and test for each of PROGNAME-LIST
4931  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4932for as_dir in $PATH
4933do
4934  IFS=$as_save_IFS
4935  case $as_dir in #(((
4936    '') as_dir=./ ;;
4937    */) ;;
4938    *) as_dir=$as_dir/ ;;
4939  esac
4940    for ac_prog in sed gsed
4941   do
4942    for ac_exec_ext in '' $ac_executable_extensions; do
4943      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4944      as_fn_executable_p "$ac_path_SED" || continue
4945# Check for GNU ac_path_SED and select it if it is found.
4946  # Check for GNU $ac_path_SED
4947case `"$ac_path_SED" --version 2>&1` in
4948*GNU*)
4949  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4950*)
4951  ac_count=0
4952  printf %s 0123456789 >"conftest.in"
4953  while :
4954  do
4955    cat "conftest.in" "conftest.in" >"conftest.tmp"
4956    mv "conftest.tmp" "conftest.in"
4957    cp "conftest.in" "conftest.nl"
4958    printf "%s\n" '' >> "conftest.nl"
4959    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4960    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4961    as_fn_arith $ac_count + 1 && ac_count=$as_val
4962    if test $ac_count -gt ${ac_path_SED_max-0}; then
4963      # Best one so far, save it but keep looking for a better one
4964      ac_cv_path_SED="$ac_path_SED"
4965      ac_path_SED_max=$ac_count
4966    fi
4967    # 10*(2^10) chars as input seems more than enough
4968    test $ac_count -gt 10 && break
4969  done
4970  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4971esac
4972
4973      $ac_path_SED_found && break 3
4974    done
4975  done
4976  done
4977IFS=$as_save_IFS
4978  if test -z "$ac_cv_path_SED"; then
4979    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4980  fi
4981else
4982  ac_cv_path_SED=$SED
4983fi
4984
4985fi
4986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4987printf "%s\n" "$ac_cv_path_SED" >&6; }
4988 SED="$ac_cv_path_SED"
4989  rm -f conftest.sed
4990
4991
4992
4993
4994
4995
4996# Check whether --enable-selective-werror was given.
4997if test ${enable_selective_werror+y}
4998then :
4999  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5000else $as_nop
5001  SELECTIVE_WERROR=yes
5002fi
5003
5004
5005
5006
5007
5008# -v is too short to test reliably with XORG_TESTSET_CFLAG
5009if test "x$SUNCC" = "xyes"; then
5010    BASE_CFLAGS="-v"
5011else
5012    BASE_CFLAGS=""
5013fi
5014
5015# This chunk of warnings were those that existed in the legacy CWARNFLAGS
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029xorg_testset_save_CFLAGS="$CFLAGS"
5030
5031if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5032	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5033	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5034printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5035if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5036then :
5037  printf %s "(cached) " >&6
5038else $as_nop
5039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040/* end confdefs.h.  */
5041int i;
5042_ACEOF
5043if ac_fn_c_try_compile "$LINENO"
5044then :
5045  xorg_cv_cc_flag_unknown_warning_option=yes
5046else $as_nop
5047  xorg_cv_cc_flag_unknown_warning_option=no
5048fi
5049rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5050fi
5051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5052printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5053	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5054	CFLAGS="$xorg_testset_save_CFLAGS"
5055fi
5056
5057if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5058	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5059		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5060	fi
5061	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5062	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5063printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5064if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5065then :
5066  printf %s "(cached) " >&6
5067else $as_nop
5068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5069/* end confdefs.h.  */
5070int i;
5071_ACEOF
5072if ac_fn_c_try_compile "$LINENO"
5073then :
5074  xorg_cv_cc_flag_unused_command_line_argument=yes
5075else $as_nop
5076  xorg_cv_cc_flag_unused_command_line_argument=no
5077fi
5078rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5079fi
5080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5081printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5082	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5083	CFLAGS="$xorg_testset_save_CFLAGS"
5084fi
5085
5086found="no"
5087
5088	if test $found = "no" ; then
5089		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5090			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5091		fi
5092
5093		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5094			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5095		fi
5096
5097		CFLAGS="$CFLAGS -Wall"
5098
5099		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5100printf %s "checking if $CC supports -Wall... " >&6; }
5101		cacheid=xorg_cv_cc_flag__Wall
5102		if eval test \${$cacheid+y}
5103then :
5104  printf %s "(cached) " >&6
5105else $as_nop
5106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5107/* end confdefs.h.  */
5108int i;
5109int
5110main (void)
5111{
5112
5113  ;
5114  return 0;
5115}
5116_ACEOF
5117if ac_fn_c_try_link "$LINENO"
5118then :
5119  eval $cacheid=yes
5120else $as_nop
5121  eval $cacheid=no
5122fi
5123rm -f core conftest.err conftest.$ac_objext conftest.beam \
5124    conftest$ac_exeext conftest.$ac_ext
5125fi
5126
5127
5128		CFLAGS="$xorg_testset_save_CFLAGS"
5129
5130		eval supported=\$$cacheid
5131		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5132printf "%s\n" "$supported" >&6; }
5133		if test "$supported" = "yes" ; then
5134			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5135			found="yes"
5136		fi
5137	fi
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153xorg_testset_save_CFLAGS="$CFLAGS"
5154
5155if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5156	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5157	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5158printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5159if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes
5170else $as_nop
5171  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
5176printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5177	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5178	CFLAGS="$xorg_testset_save_CFLAGS"
5179fi
5180
5181if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5182	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5183		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5184	fi
5185	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5186	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5187printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5188if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5189then :
5190  printf %s "(cached) " >&6
5191else $as_nop
5192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5193/* end confdefs.h.  */
5194int i;
5195_ACEOF
5196if ac_fn_c_try_compile "$LINENO"
5197then :
5198  xorg_cv_cc_flag_unused_command_line_argument=yes
5199else $as_nop
5200  xorg_cv_cc_flag_unused_command_line_argument=no
5201fi
5202rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5203fi
5204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5205printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5206	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5207	CFLAGS="$xorg_testset_save_CFLAGS"
5208fi
5209
5210found="no"
5211
5212	if test $found = "no" ; then
5213		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5214			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5215		fi
5216
5217		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5218			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5219		fi
5220
5221		CFLAGS="$CFLAGS -Wpointer-arith"
5222
5223		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5224printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5225		cacheid=xorg_cv_cc_flag__Wpointer_arith
5226		if eval test \${$cacheid+y}
5227then :
5228  printf %s "(cached) " >&6
5229else $as_nop
5230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5231/* end confdefs.h.  */
5232int i;
5233int
5234main (void)
5235{
5236
5237  ;
5238  return 0;
5239}
5240_ACEOF
5241if ac_fn_c_try_link "$LINENO"
5242then :
5243  eval $cacheid=yes
5244else $as_nop
5245  eval $cacheid=no
5246fi
5247rm -f core conftest.err conftest.$ac_objext conftest.beam \
5248    conftest$ac_exeext conftest.$ac_ext
5249fi
5250
5251
5252		CFLAGS="$xorg_testset_save_CFLAGS"
5253
5254		eval supported=\$$cacheid
5255		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5256printf "%s\n" "$supported" >&6; }
5257		if test "$supported" = "yes" ; then
5258			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5259			found="yes"
5260		fi
5261	fi
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277xorg_testset_save_CFLAGS="$CFLAGS"
5278
5279if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5280	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5281	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5282printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5283if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes
5294else $as_nop
5295  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
5300printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5301	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5302	CFLAGS="$xorg_testset_save_CFLAGS"
5303fi
5304
5305if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5306	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5307		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5308	fi
5309	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5310	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5311printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5312if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5313then :
5314  printf %s "(cached) " >&6
5315else $as_nop
5316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317/* end confdefs.h.  */
5318int i;
5319_ACEOF
5320if ac_fn_c_try_compile "$LINENO"
5321then :
5322  xorg_cv_cc_flag_unused_command_line_argument=yes
5323else $as_nop
5324  xorg_cv_cc_flag_unused_command_line_argument=no
5325fi
5326rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5327fi
5328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5329printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5330	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5331	CFLAGS="$xorg_testset_save_CFLAGS"
5332fi
5333
5334found="no"
5335
5336	if test $found = "no" ; then
5337		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5338			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5339		fi
5340
5341		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5342			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5343		fi
5344
5345		CFLAGS="$CFLAGS -Wmissing-declarations"
5346
5347		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5348printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5349		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5350		if eval test \${$cacheid+y}
5351then :
5352  printf %s "(cached) " >&6
5353else $as_nop
5354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355/* end confdefs.h.  */
5356int i;
5357int
5358main (void)
5359{
5360
5361  ;
5362  return 0;
5363}
5364_ACEOF
5365if ac_fn_c_try_link "$LINENO"
5366then :
5367  eval $cacheid=yes
5368else $as_nop
5369  eval $cacheid=no
5370fi
5371rm -f core conftest.err conftest.$ac_objext conftest.beam \
5372    conftest$ac_exeext conftest.$ac_ext
5373fi
5374
5375
5376		CFLAGS="$xorg_testset_save_CFLAGS"
5377
5378		eval supported=\$$cacheid
5379		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5380printf "%s\n" "$supported" >&6; }
5381		if test "$supported" = "yes" ; then
5382			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5383			found="yes"
5384		fi
5385	fi
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401xorg_testset_save_CFLAGS="$CFLAGS"
5402
5403if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5404	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5405	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5406printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5407if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes
5418else $as_nop
5419  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
5424printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5425	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5426	CFLAGS="$xorg_testset_save_CFLAGS"
5427fi
5428
5429if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5430	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5431		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5432	fi
5433	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5434	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5435printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5436if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5437then :
5438  printf %s "(cached) " >&6
5439else $as_nop
5440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5441/* end confdefs.h.  */
5442int i;
5443_ACEOF
5444if ac_fn_c_try_compile "$LINENO"
5445then :
5446  xorg_cv_cc_flag_unused_command_line_argument=yes
5447else $as_nop
5448  xorg_cv_cc_flag_unused_command_line_argument=no
5449fi
5450rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5451fi
5452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5453printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5454	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5455	CFLAGS="$xorg_testset_save_CFLAGS"
5456fi
5457
5458found="no"
5459
5460	if test $found = "no" ; then
5461		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5462			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5463		fi
5464
5465		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5466			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5467		fi
5468
5469		CFLAGS="$CFLAGS -Wformat=2"
5470
5471		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5472printf %s "checking if $CC supports -Wformat=2... " >&6; }
5473		cacheid=xorg_cv_cc_flag__Wformat_2
5474		if eval test \${$cacheid+y}
5475then :
5476  printf %s "(cached) " >&6
5477else $as_nop
5478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5479/* end confdefs.h.  */
5480int i;
5481int
5482main (void)
5483{
5484
5485  ;
5486  return 0;
5487}
5488_ACEOF
5489if ac_fn_c_try_link "$LINENO"
5490then :
5491  eval $cacheid=yes
5492else $as_nop
5493  eval $cacheid=no
5494fi
5495rm -f core conftest.err conftest.$ac_objext conftest.beam \
5496    conftest$ac_exeext conftest.$ac_ext
5497fi
5498
5499
5500		CFLAGS="$xorg_testset_save_CFLAGS"
5501
5502		eval supported=\$$cacheid
5503		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5504printf "%s\n" "$supported" >&6; }
5505		if test "$supported" = "yes" ; then
5506			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5507			found="yes"
5508		fi
5509	fi
5510
5511	if test $found = "no" ; then
5512		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5513			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5514		fi
5515
5516		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5517			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5518		fi
5519
5520		CFLAGS="$CFLAGS -Wformat"
5521
5522		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5523printf %s "checking if $CC supports -Wformat... " >&6; }
5524		cacheid=xorg_cv_cc_flag__Wformat
5525		if eval test \${$cacheid+y}
5526then :
5527  printf %s "(cached) " >&6
5528else $as_nop
5529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530/* end confdefs.h.  */
5531int i;
5532int
5533main (void)
5534{
5535
5536  ;
5537  return 0;
5538}
5539_ACEOF
5540if ac_fn_c_try_link "$LINENO"
5541then :
5542  eval $cacheid=yes
5543else $as_nop
5544  eval $cacheid=no
5545fi
5546rm -f core conftest.err conftest.$ac_objext conftest.beam \
5547    conftest$ac_exeext conftest.$ac_ext
5548fi
5549
5550
5551		CFLAGS="$xorg_testset_save_CFLAGS"
5552
5553		eval supported=\$$cacheid
5554		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5555printf "%s\n" "$supported" >&6; }
5556		if test "$supported" = "yes" ; then
5557			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5558			found="yes"
5559		fi
5560	fi
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578xorg_testset_save_CFLAGS="$CFLAGS"
5579
5580if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5581	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5582	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5583printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5584if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5585then :
5586  printf %s "(cached) " >&6
5587else $as_nop
5588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589/* end confdefs.h.  */
5590int i;
5591_ACEOF
5592if ac_fn_c_try_compile "$LINENO"
5593then :
5594  xorg_cv_cc_flag_unknown_warning_option=yes
5595else $as_nop
5596  xorg_cv_cc_flag_unknown_warning_option=no
5597fi
5598rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5599fi
5600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5601printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5602	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5603	CFLAGS="$xorg_testset_save_CFLAGS"
5604fi
5605
5606if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5607	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5608		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5609	fi
5610	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5611	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5612printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5613if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5614then :
5615  printf %s "(cached) " >&6
5616else $as_nop
5617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618/* end confdefs.h.  */
5619int i;
5620_ACEOF
5621if ac_fn_c_try_compile "$LINENO"
5622then :
5623  xorg_cv_cc_flag_unused_command_line_argument=yes
5624else $as_nop
5625  xorg_cv_cc_flag_unused_command_line_argument=no
5626fi
5627rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5628fi
5629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5630printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5631	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5632	CFLAGS="$xorg_testset_save_CFLAGS"
5633fi
5634
5635found="no"
5636
5637	if test $found = "no" ; then
5638		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5639			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5640		fi
5641
5642		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5643			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5644		fi
5645
5646		CFLAGS="$CFLAGS -Wstrict-prototypes"
5647
5648		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5649printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5650		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5651		if eval test \${$cacheid+y}
5652then :
5653  printf %s "(cached) " >&6
5654else $as_nop
5655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5656/* end confdefs.h.  */
5657int i;
5658int
5659main (void)
5660{
5661
5662  ;
5663  return 0;
5664}
5665_ACEOF
5666if ac_fn_c_try_link "$LINENO"
5667then :
5668  eval $cacheid=yes
5669else $as_nop
5670  eval $cacheid=no
5671fi
5672rm -f core conftest.err conftest.$ac_objext conftest.beam \
5673    conftest$ac_exeext conftest.$ac_ext
5674fi
5675
5676
5677		CFLAGS="$xorg_testset_save_CFLAGS"
5678
5679		eval supported=\$$cacheid
5680		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5681printf "%s\n" "$supported" >&6; }
5682		if test "$supported" = "yes" ; then
5683			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5684			found="yes"
5685		fi
5686	fi
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702xorg_testset_save_CFLAGS="$CFLAGS"
5703
5704if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5705	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5706	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5707printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5708if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes
5719else $as_nop
5720  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
5725printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5726	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5727	CFLAGS="$xorg_testset_save_CFLAGS"
5728fi
5729
5730if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5731	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5732		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5733	fi
5734	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5735	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5736printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5737if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5738then :
5739  printf %s "(cached) " >&6
5740else $as_nop
5741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5742/* end confdefs.h.  */
5743int i;
5744_ACEOF
5745if ac_fn_c_try_compile "$LINENO"
5746then :
5747  xorg_cv_cc_flag_unused_command_line_argument=yes
5748else $as_nop
5749  xorg_cv_cc_flag_unused_command_line_argument=no
5750fi
5751rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5752fi
5753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5754printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5755	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5756	CFLAGS="$xorg_testset_save_CFLAGS"
5757fi
5758
5759found="no"
5760
5761	if test $found = "no" ; then
5762		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5763			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5764		fi
5765
5766		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5767			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5768		fi
5769
5770		CFLAGS="$CFLAGS -Wmissing-prototypes"
5771
5772		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5773printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5774		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5775		if eval test \${$cacheid+y}
5776then :
5777  printf %s "(cached) " >&6
5778else $as_nop
5779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5780/* end confdefs.h.  */
5781int i;
5782int
5783main (void)
5784{
5785
5786  ;
5787  return 0;
5788}
5789_ACEOF
5790if ac_fn_c_try_link "$LINENO"
5791then :
5792  eval $cacheid=yes
5793else $as_nop
5794  eval $cacheid=no
5795fi
5796rm -f core conftest.err conftest.$ac_objext conftest.beam \
5797    conftest$ac_exeext conftest.$ac_ext
5798fi
5799
5800
5801		CFLAGS="$xorg_testset_save_CFLAGS"
5802
5803		eval supported=\$$cacheid
5804		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5805printf "%s\n" "$supported" >&6; }
5806		if test "$supported" = "yes" ; then
5807			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5808			found="yes"
5809		fi
5810	fi
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826xorg_testset_save_CFLAGS="$CFLAGS"
5827
5828if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5829	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5830	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5831printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5832if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes
5843else $as_nop
5844  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
5849printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5850	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5851	CFLAGS="$xorg_testset_save_CFLAGS"
5852fi
5853
5854if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5855	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5856		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5857	fi
5858	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5859	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5860printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5861if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5862then :
5863  printf %s "(cached) " >&6
5864else $as_nop
5865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5866/* end confdefs.h.  */
5867int i;
5868_ACEOF
5869if ac_fn_c_try_compile "$LINENO"
5870then :
5871  xorg_cv_cc_flag_unused_command_line_argument=yes
5872else $as_nop
5873  xorg_cv_cc_flag_unused_command_line_argument=no
5874fi
5875rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5876fi
5877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5878printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5879	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5880	CFLAGS="$xorg_testset_save_CFLAGS"
5881fi
5882
5883found="no"
5884
5885	if test $found = "no" ; then
5886		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5887			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5888		fi
5889
5890		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5891			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5892		fi
5893
5894		CFLAGS="$CFLAGS -Wnested-externs"
5895
5896		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5897printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5898		cacheid=xorg_cv_cc_flag__Wnested_externs
5899		if eval test \${$cacheid+y}
5900then :
5901  printf %s "(cached) " >&6
5902else $as_nop
5903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5904/* end confdefs.h.  */
5905int i;
5906int
5907main (void)
5908{
5909
5910  ;
5911  return 0;
5912}
5913_ACEOF
5914if ac_fn_c_try_link "$LINENO"
5915then :
5916  eval $cacheid=yes
5917else $as_nop
5918  eval $cacheid=no
5919fi
5920rm -f core conftest.err conftest.$ac_objext conftest.beam \
5921    conftest$ac_exeext conftest.$ac_ext
5922fi
5923
5924
5925		CFLAGS="$xorg_testset_save_CFLAGS"
5926
5927		eval supported=\$$cacheid
5928		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5929printf "%s\n" "$supported" >&6; }
5930		if test "$supported" = "yes" ; then
5931			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5932			found="yes"
5933		fi
5934	fi
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950xorg_testset_save_CFLAGS="$CFLAGS"
5951
5952if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5953	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5954	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5955printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5956if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes
5967else $as_nop
5968  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
5973printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5974	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5975	CFLAGS="$xorg_testset_save_CFLAGS"
5976fi
5977
5978if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5979	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5980		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5981	fi
5982	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5983	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5984printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5985if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5986then :
5987  printf %s "(cached) " >&6
5988else $as_nop
5989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5990/* end confdefs.h.  */
5991int i;
5992_ACEOF
5993if ac_fn_c_try_compile "$LINENO"
5994then :
5995  xorg_cv_cc_flag_unused_command_line_argument=yes
5996else $as_nop
5997  xorg_cv_cc_flag_unused_command_line_argument=no
5998fi
5999rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6000fi
6001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6002printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6003	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6004	CFLAGS="$xorg_testset_save_CFLAGS"
6005fi
6006
6007found="no"
6008
6009	if test $found = "no" ; then
6010		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6011			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6012		fi
6013
6014		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6015			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6016		fi
6017
6018		CFLAGS="$CFLAGS -Wbad-function-cast"
6019
6020		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6021printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6022		cacheid=xorg_cv_cc_flag__Wbad_function_cast
6023		if eval test \${$cacheid+y}
6024then :
6025  printf %s "(cached) " >&6
6026else $as_nop
6027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6028/* end confdefs.h.  */
6029int i;
6030int
6031main (void)
6032{
6033
6034  ;
6035  return 0;
6036}
6037_ACEOF
6038if ac_fn_c_try_link "$LINENO"
6039then :
6040  eval $cacheid=yes
6041else $as_nop
6042  eval $cacheid=no
6043fi
6044rm -f core conftest.err conftest.$ac_objext conftest.beam \
6045    conftest$ac_exeext conftest.$ac_ext
6046fi
6047
6048
6049		CFLAGS="$xorg_testset_save_CFLAGS"
6050
6051		eval supported=\$$cacheid
6052		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6053printf "%s\n" "$supported" >&6; }
6054		if test "$supported" = "yes" ; then
6055			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6056			found="yes"
6057		fi
6058	fi
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074xorg_testset_save_CFLAGS="$CFLAGS"
6075
6076if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6077	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6078	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6079printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6080if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes
6091else $as_nop
6092  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
6097printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6098	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6099	CFLAGS="$xorg_testset_save_CFLAGS"
6100fi
6101
6102if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6103	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6104		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6105	fi
6106	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6107	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6108printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6109if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6110then :
6111  printf %s "(cached) " >&6
6112else $as_nop
6113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6114/* end confdefs.h.  */
6115int i;
6116_ACEOF
6117if ac_fn_c_try_compile "$LINENO"
6118then :
6119  xorg_cv_cc_flag_unused_command_line_argument=yes
6120else $as_nop
6121  xorg_cv_cc_flag_unused_command_line_argument=no
6122fi
6123rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6124fi
6125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6126printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6127	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6128	CFLAGS="$xorg_testset_save_CFLAGS"
6129fi
6130
6131found="no"
6132
6133	if test $found = "no" ; then
6134		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6135			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6136		fi
6137
6138		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6139			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6140		fi
6141
6142		CFLAGS="$CFLAGS -Wold-style-definition"
6143
6144		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6145printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6146		cacheid=xorg_cv_cc_flag__Wold_style_definition
6147		if eval test \${$cacheid+y}
6148then :
6149  printf %s "(cached) " >&6
6150else $as_nop
6151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6152/* end confdefs.h.  */
6153int i;
6154int
6155main (void)
6156{
6157
6158  ;
6159  return 0;
6160}
6161_ACEOF
6162if ac_fn_c_try_link "$LINENO"
6163then :
6164  eval $cacheid=yes
6165else $as_nop
6166  eval $cacheid=no
6167fi
6168rm -f core conftest.err conftest.$ac_objext conftest.beam \
6169    conftest$ac_exeext conftest.$ac_ext
6170fi
6171
6172
6173		CFLAGS="$xorg_testset_save_CFLAGS"
6174
6175		eval supported=\$$cacheid
6176		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6177printf "%s\n" "$supported" >&6; }
6178		if test "$supported" = "yes" ; then
6179			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6180			found="yes"
6181		fi
6182	fi
6183
6184	if test $found = "no" ; then
6185		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6186			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6187		fi
6188
6189		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6190			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6191		fi
6192
6193		CFLAGS="$CFLAGS -fd"
6194
6195		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6196printf %s "checking if $CC supports -fd... " >&6; }
6197		cacheid=xorg_cv_cc_flag__fd
6198		if eval test \${$cacheid+y}
6199then :
6200  printf %s "(cached) " >&6
6201else $as_nop
6202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6203/* end confdefs.h.  */
6204int i;
6205int
6206main (void)
6207{
6208
6209  ;
6210  return 0;
6211}
6212_ACEOF
6213if ac_fn_c_try_link "$LINENO"
6214then :
6215  eval $cacheid=yes
6216else $as_nop
6217  eval $cacheid=no
6218fi
6219rm -f core conftest.err conftest.$ac_objext conftest.beam \
6220    conftest$ac_exeext conftest.$ac_ext
6221fi
6222
6223
6224		CFLAGS="$xorg_testset_save_CFLAGS"
6225
6226		eval supported=\$$cacheid
6227		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6228printf "%s\n" "$supported" >&6; }
6229		if test "$supported" = "yes" ; then
6230			BASE_CFLAGS="$BASE_CFLAGS -fd"
6231			found="yes"
6232		fi
6233	fi
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249xorg_testset_save_CFLAGS="$CFLAGS"
6250
6251if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6252	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6253	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6254printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6255if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6256then :
6257  printf %s "(cached) " >&6
6258else $as_nop
6259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260/* end confdefs.h.  */
6261int i;
6262_ACEOF
6263if ac_fn_c_try_compile "$LINENO"
6264then :
6265  xorg_cv_cc_flag_unknown_warning_option=yes
6266else $as_nop
6267  xorg_cv_cc_flag_unknown_warning_option=no
6268fi
6269rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6270fi
6271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6272printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6273	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6274	CFLAGS="$xorg_testset_save_CFLAGS"
6275fi
6276
6277if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6278	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6279		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6280	fi
6281	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6282	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6283printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6284if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6285then :
6286  printf %s "(cached) " >&6
6287else $as_nop
6288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6289/* end confdefs.h.  */
6290int i;
6291_ACEOF
6292if ac_fn_c_try_compile "$LINENO"
6293then :
6294  xorg_cv_cc_flag_unused_command_line_argument=yes
6295else $as_nop
6296  xorg_cv_cc_flag_unused_command_line_argument=no
6297fi
6298rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6299fi
6300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6301printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6302	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6303	CFLAGS="$xorg_testset_save_CFLAGS"
6304fi
6305
6306found="no"
6307
6308	if test $found = "no" ; then
6309		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6310			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6311		fi
6312
6313		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6314			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6315		fi
6316
6317		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6318
6319		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6320printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6321		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6322		if eval test \${$cacheid+y}
6323then :
6324  printf %s "(cached) " >&6
6325else $as_nop
6326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6327/* end confdefs.h.  */
6328int i;
6329int
6330main (void)
6331{
6332
6333  ;
6334  return 0;
6335}
6336_ACEOF
6337if ac_fn_c_try_link "$LINENO"
6338then :
6339  eval $cacheid=yes
6340else $as_nop
6341  eval $cacheid=no
6342fi
6343rm -f core conftest.err conftest.$ac_objext conftest.beam \
6344    conftest$ac_exeext conftest.$ac_ext
6345fi
6346
6347
6348		CFLAGS="$xorg_testset_save_CFLAGS"
6349
6350		eval supported=\$$cacheid
6351		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6352printf "%s\n" "$supported" >&6; }
6353		if test "$supported" = "yes" ; then
6354			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6355			found="yes"
6356		fi
6357	fi
6358
6359
6360
6361
6362
6363# This chunk adds additional warnings that could catch undesired effects.
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377xorg_testset_save_CFLAGS="$CFLAGS"
6378
6379if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6380	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6381	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6382printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6383if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6384then :
6385  printf %s "(cached) " >&6
6386else $as_nop
6387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6388/* end confdefs.h.  */
6389int i;
6390_ACEOF
6391if ac_fn_c_try_compile "$LINENO"
6392then :
6393  xorg_cv_cc_flag_unknown_warning_option=yes
6394else $as_nop
6395  xorg_cv_cc_flag_unknown_warning_option=no
6396fi
6397rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6398fi
6399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6400printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6401	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6402	CFLAGS="$xorg_testset_save_CFLAGS"
6403fi
6404
6405if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6406	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6407		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6408	fi
6409	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6410	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6411printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6412if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6413then :
6414  printf %s "(cached) " >&6
6415else $as_nop
6416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6417/* end confdefs.h.  */
6418int i;
6419_ACEOF
6420if ac_fn_c_try_compile "$LINENO"
6421then :
6422  xorg_cv_cc_flag_unused_command_line_argument=yes
6423else $as_nop
6424  xorg_cv_cc_flag_unused_command_line_argument=no
6425fi
6426rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6427fi
6428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6429printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6430	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6431	CFLAGS="$xorg_testset_save_CFLAGS"
6432fi
6433
6434found="no"
6435
6436	if test $found = "no" ; then
6437		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6438			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6439		fi
6440
6441		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6442			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6443		fi
6444
6445		CFLAGS="$CFLAGS -Wunused"
6446
6447		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6448printf %s "checking if $CC supports -Wunused... " >&6; }
6449		cacheid=xorg_cv_cc_flag__Wunused
6450		if eval test \${$cacheid+y}
6451then :
6452  printf %s "(cached) " >&6
6453else $as_nop
6454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6455/* end confdefs.h.  */
6456int i;
6457int
6458main (void)
6459{
6460
6461  ;
6462  return 0;
6463}
6464_ACEOF
6465if ac_fn_c_try_link "$LINENO"
6466then :
6467  eval $cacheid=yes
6468else $as_nop
6469  eval $cacheid=no
6470fi
6471rm -f core conftest.err conftest.$ac_objext conftest.beam \
6472    conftest$ac_exeext conftest.$ac_ext
6473fi
6474
6475
6476		CFLAGS="$xorg_testset_save_CFLAGS"
6477
6478		eval supported=\$$cacheid
6479		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6480printf "%s\n" "$supported" >&6; }
6481		if test "$supported" = "yes" ; then
6482			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6483			found="yes"
6484		fi
6485	fi
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501xorg_testset_save_CFLAGS="$CFLAGS"
6502
6503if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6504	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6505	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6506printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6507if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes
6518else $as_nop
6519  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
6524printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6525	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6526	CFLAGS="$xorg_testset_save_CFLAGS"
6527fi
6528
6529if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6530	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6531		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6532	fi
6533	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6534	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6535printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6536if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6537then :
6538  printf %s "(cached) " >&6
6539else $as_nop
6540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6541/* end confdefs.h.  */
6542int i;
6543_ACEOF
6544if ac_fn_c_try_compile "$LINENO"
6545then :
6546  xorg_cv_cc_flag_unused_command_line_argument=yes
6547else $as_nop
6548  xorg_cv_cc_flag_unused_command_line_argument=no
6549fi
6550rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6551fi
6552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6553printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6554	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6555	CFLAGS="$xorg_testset_save_CFLAGS"
6556fi
6557
6558found="no"
6559
6560	if test $found = "no" ; then
6561		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6562			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6563		fi
6564
6565		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6566			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6567		fi
6568
6569		CFLAGS="$CFLAGS -Wuninitialized"
6570
6571		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6572printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6573		cacheid=xorg_cv_cc_flag__Wuninitialized
6574		if eval test \${$cacheid+y}
6575then :
6576  printf %s "(cached) " >&6
6577else $as_nop
6578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6579/* end confdefs.h.  */
6580int i;
6581int
6582main (void)
6583{
6584
6585  ;
6586  return 0;
6587}
6588_ACEOF
6589if ac_fn_c_try_link "$LINENO"
6590then :
6591  eval $cacheid=yes
6592else $as_nop
6593  eval $cacheid=no
6594fi
6595rm -f core conftest.err conftest.$ac_objext conftest.beam \
6596    conftest$ac_exeext conftest.$ac_ext
6597fi
6598
6599
6600		CFLAGS="$xorg_testset_save_CFLAGS"
6601
6602		eval supported=\$$cacheid
6603		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6604printf "%s\n" "$supported" >&6; }
6605		if test "$supported" = "yes" ; then
6606			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6607			found="yes"
6608		fi
6609	fi
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625xorg_testset_save_CFLAGS="$CFLAGS"
6626
6627if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6628	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6629	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6630printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6631if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes
6642else $as_nop
6643  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
6648printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6649	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6650	CFLAGS="$xorg_testset_save_CFLAGS"
6651fi
6652
6653if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6654	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6655		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6656	fi
6657	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6658	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6659printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6660if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6661then :
6662  printf %s "(cached) " >&6
6663else $as_nop
6664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6665/* end confdefs.h.  */
6666int i;
6667_ACEOF
6668if ac_fn_c_try_compile "$LINENO"
6669then :
6670  xorg_cv_cc_flag_unused_command_line_argument=yes
6671else $as_nop
6672  xorg_cv_cc_flag_unused_command_line_argument=no
6673fi
6674rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6675fi
6676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6677printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6678	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6679	CFLAGS="$xorg_testset_save_CFLAGS"
6680fi
6681
6682found="no"
6683
6684	if test $found = "no" ; then
6685		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6686			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6687		fi
6688
6689		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6690			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6691		fi
6692
6693		CFLAGS="$CFLAGS -Wshadow"
6694
6695		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6696printf %s "checking if $CC supports -Wshadow... " >&6; }
6697		cacheid=xorg_cv_cc_flag__Wshadow
6698		if eval test \${$cacheid+y}
6699then :
6700  printf %s "(cached) " >&6
6701else $as_nop
6702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6703/* end confdefs.h.  */
6704int i;
6705int
6706main (void)
6707{
6708
6709  ;
6710  return 0;
6711}
6712_ACEOF
6713if ac_fn_c_try_link "$LINENO"
6714then :
6715  eval $cacheid=yes
6716else $as_nop
6717  eval $cacheid=no
6718fi
6719rm -f core conftest.err conftest.$ac_objext conftest.beam \
6720    conftest$ac_exeext conftest.$ac_ext
6721fi
6722
6723
6724		CFLAGS="$xorg_testset_save_CFLAGS"
6725
6726		eval supported=\$$cacheid
6727		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6728printf "%s\n" "$supported" >&6; }
6729		if test "$supported" = "yes" ; then
6730			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6731			found="yes"
6732		fi
6733	fi
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749xorg_testset_save_CFLAGS="$CFLAGS"
6750
6751if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6752	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6753	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6754printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6755if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes
6766else $as_nop
6767  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
6772printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6773	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6774	CFLAGS="$xorg_testset_save_CFLAGS"
6775fi
6776
6777if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6778	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6779		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6780	fi
6781	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6782	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6783printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6784if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6785then :
6786  printf %s "(cached) " >&6
6787else $as_nop
6788  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6789/* end confdefs.h.  */
6790int i;
6791_ACEOF
6792if ac_fn_c_try_compile "$LINENO"
6793then :
6794  xorg_cv_cc_flag_unused_command_line_argument=yes
6795else $as_nop
6796  xorg_cv_cc_flag_unused_command_line_argument=no
6797fi
6798rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6799fi
6800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6801printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6802	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6803	CFLAGS="$xorg_testset_save_CFLAGS"
6804fi
6805
6806found="no"
6807
6808	if test $found = "no" ; then
6809		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6810			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6811		fi
6812
6813		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6814			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6815		fi
6816
6817		CFLAGS="$CFLAGS -Wmissing-noreturn"
6818
6819		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6820printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6821		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6822		if eval test \${$cacheid+y}
6823then :
6824  printf %s "(cached) " >&6
6825else $as_nop
6826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6827/* end confdefs.h.  */
6828int i;
6829int
6830main (void)
6831{
6832
6833  ;
6834  return 0;
6835}
6836_ACEOF
6837if ac_fn_c_try_link "$LINENO"
6838then :
6839  eval $cacheid=yes
6840else $as_nop
6841  eval $cacheid=no
6842fi
6843rm -f core conftest.err conftest.$ac_objext conftest.beam \
6844    conftest$ac_exeext conftest.$ac_ext
6845fi
6846
6847
6848		CFLAGS="$xorg_testset_save_CFLAGS"
6849
6850		eval supported=\$$cacheid
6851		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6852printf "%s\n" "$supported" >&6; }
6853		if test "$supported" = "yes" ; then
6854			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6855			found="yes"
6856		fi
6857	fi
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873xorg_testset_save_CFLAGS="$CFLAGS"
6874
6875if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6876	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6877	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6878printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6879if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes
6890else $as_nop
6891  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
6896printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6897	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6898	CFLAGS="$xorg_testset_save_CFLAGS"
6899fi
6900
6901if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6902	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6903		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6904	fi
6905	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6906	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6907printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6908if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6909then :
6910  printf %s "(cached) " >&6
6911else $as_nop
6912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6913/* end confdefs.h.  */
6914int i;
6915_ACEOF
6916if ac_fn_c_try_compile "$LINENO"
6917then :
6918  xorg_cv_cc_flag_unused_command_line_argument=yes
6919else $as_nop
6920  xorg_cv_cc_flag_unused_command_line_argument=no
6921fi
6922rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6923fi
6924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6925printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6926	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6927	CFLAGS="$xorg_testset_save_CFLAGS"
6928fi
6929
6930found="no"
6931
6932	if test $found = "no" ; then
6933		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6934			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6935		fi
6936
6937		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6938			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6939		fi
6940
6941		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6942
6943		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6944printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6945		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6946		if eval test \${$cacheid+y}
6947then :
6948  printf %s "(cached) " >&6
6949else $as_nop
6950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6951/* end confdefs.h.  */
6952int i;
6953int
6954main (void)
6955{
6956
6957  ;
6958  return 0;
6959}
6960_ACEOF
6961if ac_fn_c_try_link "$LINENO"
6962then :
6963  eval $cacheid=yes
6964else $as_nop
6965  eval $cacheid=no
6966fi
6967rm -f core conftest.err conftest.$ac_objext conftest.beam \
6968    conftest$ac_exeext conftest.$ac_ext
6969fi
6970
6971
6972		CFLAGS="$xorg_testset_save_CFLAGS"
6973
6974		eval supported=\$$cacheid
6975		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6976printf "%s\n" "$supported" >&6; }
6977		if test "$supported" = "yes" ; then
6978			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6979			found="yes"
6980		fi
6981	fi
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997xorg_testset_save_CFLAGS="$CFLAGS"
6998
6999if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7000	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7001	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7002printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7003if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes
7014else $as_nop
7015  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
7020printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7021	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7022	CFLAGS="$xorg_testset_save_CFLAGS"
7023fi
7024
7025if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7026	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7027		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7028	fi
7029	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7030	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7031printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7032if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7033then :
7034  printf %s "(cached) " >&6
7035else $as_nop
7036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7037/* end confdefs.h.  */
7038int i;
7039_ACEOF
7040if ac_fn_c_try_compile "$LINENO"
7041then :
7042  xorg_cv_cc_flag_unused_command_line_argument=yes
7043else $as_nop
7044  xorg_cv_cc_flag_unused_command_line_argument=no
7045fi
7046rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7047fi
7048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7049printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7050	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7051	CFLAGS="$xorg_testset_save_CFLAGS"
7052fi
7053
7054found="no"
7055
7056	if test $found = "no" ; then
7057		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7058			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7059		fi
7060
7061		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7062			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7063		fi
7064
7065		CFLAGS="$CFLAGS -Wredundant-decls"
7066
7067		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7068printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7069		cacheid=xorg_cv_cc_flag__Wredundant_decls
7070		if eval test \${$cacheid+y}
7071then :
7072  printf %s "(cached) " >&6
7073else $as_nop
7074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7075/* end confdefs.h.  */
7076int i;
7077int
7078main (void)
7079{
7080
7081  ;
7082  return 0;
7083}
7084_ACEOF
7085if ac_fn_c_try_link "$LINENO"
7086then :
7087  eval $cacheid=yes
7088else $as_nop
7089  eval $cacheid=no
7090fi
7091rm -f core conftest.err conftest.$ac_objext conftest.beam \
7092    conftest$ac_exeext conftest.$ac_ext
7093fi
7094
7095
7096		CFLAGS="$xorg_testset_save_CFLAGS"
7097
7098		eval supported=\$$cacheid
7099		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7100printf "%s\n" "$supported" >&6; }
7101		if test "$supported" = "yes" ; then
7102			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7103			found="yes"
7104		fi
7105	fi
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121xorg_testset_save_CFLAGS="$CFLAGS"
7122
7123if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7124	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7125	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7126printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7127if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes
7138else $as_nop
7139  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
7144printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7145	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7146	CFLAGS="$xorg_testset_save_CFLAGS"
7147fi
7148
7149if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7150	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7151		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7152	fi
7153	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7154	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7155printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7156if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7157then :
7158  printf %s "(cached) " >&6
7159else $as_nop
7160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7161/* end confdefs.h.  */
7162int i;
7163_ACEOF
7164if ac_fn_c_try_compile "$LINENO"
7165then :
7166  xorg_cv_cc_flag_unused_command_line_argument=yes
7167else $as_nop
7168  xorg_cv_cc_flag_unused_command_line_argument=no
7169fi
7170rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7171fi
7172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7173printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7174	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7175	CFLAGS="$xorg_testset_save_CFLAGS"
7176fi
7177
7178found="no"
7179
7180	if test $found = "no" ; then
7181		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7182			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7183		fi
7184
7185		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7186			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7187		fi
7188
7189		CFLAGS="$CFLAGS -Wlogical-op"
7190
7191		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7192printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7193		cacheid=xorg_cv_cc_flag__Wlogical_op
7194		if eval test \${$cacheid+y}
7195then :
7196  printf %s "(cached) " >&6
7197else $as_nop
7198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7199/* end confdefs.h.  */
7200int i;
7201int
7202main (void)
7203{
7204
7205  ;
7206  return 0;
7207}
7208_ACEOF
7209if ac_fn_c_try_link "$LINENO"
7210then :
7211  eval $cacheid=yes
7212else $as_nop
7213  eval $cacheid=no
7214fi
7215rm -f core conftest.err conftest.$ac_objext conftest.beam \
7216    conftest$ac_exeext conftest.$ac_ext
7217fi
7218
7219
7220		CFLAGS="$xorg_testset_save_CFLAGS"
7221
7222		eval supported=\$$cacheid
7223		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7224printf "%s\n" "$supported" >&6; }
7225		if test "$supported" = "yes" ; then
7226			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7227			found="yes"
7228		fi
7229	fi
7230
7231
7232
7233# These are currently disabled because they are noisy.  They will be enabled
7234# in the future once the codebase is sufficiently modernized to silence
7235# them.  For now, I don't want them to drown out the other warnings.
7236# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7237# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7238# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7239
7240# Turn some warnings into errors, so we don't accidently get successful builds
7241# when there are problems that should be fixed.
7242
7243if test "x$SELECTIVE_WERROR" = "xyes" ; then
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257xorg_testset_save_CFLAGS="$CFLAGS"
7258
7259if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7260	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7261	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7262printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7263if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7264then :
7265  printf %s "(cached) " >&6
7266else $as_nop
7267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7268/* end confdefs.h.  */
7269int i;
7270_ACEOF
7271if ac_fn_c_try_compile "$LINENO"
7272then :
7273  xorg_cv_cc_flag_unknown_warning_option=yes
7274else $as_nop
7275  xorg_cv_cc_flag_unknown_warning_option=no
7276fi
7277rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7278fi
7279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7280printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7281	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7282	CFLAGS="$xorg_testset_save_CFLAGS"
7283fi
7284
7285if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7286	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7287		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7288	fi
7289	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7290	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7291printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7292if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7293then :
7294  printf %s "(cached) " >&6
7295else $as_nop
7296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7297/* end confdefs.h.  */
7298int i;
7299_ACEOF
7300if ac_fn_c_try_compile "$LINENO"
7301then :
7302  xorg_cv_cc_flag_unused_command_line_argument=yes
7303else $as_nop
7304  xorg_cv_cc_flag_unused_command_line_argument=no
7305fi
7306rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7307fi
7308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7309printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7310	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7311	CFLAGS="$xorg_testset_save_CFLAGS"
7312fi
7313
7314found="no"
7315
7316	if test $found = "no" ; then
7317		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7318			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7319		fi
7320
7321		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7322			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7323		fi
7324
7325		CFLAGS="$CFLAGS -Werror=implicit"
7326
7327		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7328printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7329		cacheid=xorg_cv_cc_flag__Werror_implicit
7330		if eval test \${$cacheid+y}
7331then :
7332  printf %s "(cached) " >&6
7333else $as_nop
7334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7335/* end confdefs.h.  */
7336int i;
7337int
7338main (void)
7339{
7340
7341  ;
7342  return 0;
7343}
7344_ACEOF
7345if ac_fn_c_try_link "$LINENO"
7346then :
7347  eval $cacheid=yes
7348else $as_nop
7349  eval $cacheid=no
7350fi
7351rm -f core conftest.err conftest.$ac_objext conftest.beam \
7352    conftest$ac_exeext conftest.$ac_ext
7353fi
7354
7355
7356		CFLAGS="$xorg_testset_save_CFLAGS"
7357
7358		eval supported=\$$cacheid
7359		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7360printf "%s\n" "$supported" >&6; }
7361		if test "$supported" = "yes" ; then
7362			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7363			found="yes"
7364		fi
7365	fi
7366
7367	if test $found = "no" ; then
7368		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7369			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7370		fi
7371
7372		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7373			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7374		fi
7375
7376		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7377
7378		{ 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
7379printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7380		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7381		if eval test \${$cacheid+y}
7382then :
7383  printf %s "(cached) " >&6
7384else $as_nop
7385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7386/* end confdefs.h.  */
7387int i;
7388int
7389main (void)
7390{
7391
7392  ;
7393  return 0;
7394}
7395_ACEOF
7396if ac_fn_c_try_link "$LINENO"
7397then :
7398  eval $cacheid=yes
7399else $as_nop
7400  eval $cacheid=no
7401fi
7402rm -f core conftest.err conftest.$ac_objext conftest.beam \
7403    conftest$ac_exeext conftest.$ac_ext
7404fi
7405
7406
7407		CFLAGS="$xorg_testset_save_CFLAGS"
7408
7409		eval supported=\$$cacheid
7410		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7411printf "%s\n" "$supported" >&6; }
7412		if test "$supported" = "yes" ; then
7413			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7414			found="yes"
7415		fi
7416	fi
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432xorg_testset_save_CFLAGS="$CFLAGS"
7433
7434if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7435	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7436	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7437printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7438if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7439then :
7440  printf %s "(cached) " >&6
7441else $as_nop
7442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7443/* end confdefs.h.  */
7444int i;
7445_ACEOF
7446if ac_fn_c_try_compile "$LINENO"
7447then :
7448  xorg_cv_cc_flag_unknown_warning_option=yes
7449else $as_nop
7450  xorg_cv_cc_flag_unknown_warning_option=no
7451fi
7452rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7453fi
7454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7455printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7456	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7457	CFLAGS="$xorg_testset_save_CFLAGS"
7458fi
7459
7460if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7461	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7462		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7463	fi
7464	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7465	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7466printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7467if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7468then :
7469  printf %s "(cached) " >&6
7470else $as_nop
7471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7472/* end confdefs.h.  */
7473int i;
7474_ACEOF
7475if ac_fn_c_try_compile "$LINENO"
7476then :
7477  xorg_cv_cc_flag_unused_command_line_argument=yes
7478else $as_nop
7479  xorg_cv_cc_flag_unused_command_line_argument=no
7480fi
7481rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7482fi
7483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7484printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7485	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7486	CFLAGS="$xorg_testset_save_CFLAGS"
7487fi
7488
7489found="no"
7490
7491	if test $found = "no" ; then
7492		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7493			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7494		fi
7495
7496		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7497			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7498		fi
7499
7500		CFLAGS="$CFLAGS -Werror=nonnull"
7501
7502		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7503printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7504		cacheid=xorg_cv_cc_flag__Werror_nonnull
7505		if eval test \${$cacheid+y}
7506then :
7507  printf %s "(cached) " >&6
7508else $as_nop
7509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7510/* end confdefs.h.  */
7511int i;
7512int
7513main (void)
7514{
7515
7516  ;
7517  return 0;
7518}
7519_ACEOF
7520if ac_fn_c_try_link "$LINENO"
7521then :
7522  eval $cacheid=yes
7523else $as_nop
7524  eval $cacheid=no
7525fi
7526rm -f core conftest.err conftest.$ac_objext conftest.beam \
7527    conftest$ac_exeext conftest.$ac_ext
7528fi
7529
7530
7531		CFLAGS="$xorg_testset_save_CFLAGS"
7532
7533		eval supported=\$$cacheid
7534		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7535printf "%s\n" "$supported" >&6; }
7536		if test "$supported" = "yes" ; then
7537			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7538			found="yes"
7539		fi
7540	fi
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556xorg_testset_save_CFLAGS="$CFLAGS"
7557
7558if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7559	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7560	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7561printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7562if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes
7573else $as_nop
7574  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
7579printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7580	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7581	CFLAGS="$xorg_testset_save_CFLAGS"
7582fi
7583
7584if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7585	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7586		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7587	fi
7588	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7589	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7590printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7591if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7592then :
7593  printf %s "(cached) " >&6
7594else $as_nop
7595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7596/* end confdefs.h.  */
7597int i;
7598_ACEOF
7599if ac_fn_c_try_compile "$LINENO"
7600then :
7601  xorg_cv_cc_flag_unused_command_line_argument=yes
7602else $as_nop
7603  xorg_cv_cc_flag_unused_command_line_argument=no
7604fi
7605rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7606fi
7607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7608printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7609	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7610	CFLAGS="$xorg_testset_save_CFLAGS"
7611fi
7612
7613found="no"
7614
7615	if test $found = "no" ; then
7616		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7617			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7618		fi
7619
7620		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7621			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7622		fi
7623
7624		CFLAGS="$CFLAGS -Werror=init-self"
7625
7626		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7627printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7628		cacheid=xorg_cv_cc_flag__Werror_init_self
7629		if eval test \${$cacheid+y}
7630then :
7631  printf %s "(cached) " >&6
7632else $as_nop
7633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7634/* end confdefs.h.  */
7635int i;
7636int
7637main (void)
7638{
7639
7640  ;
7641  return 0;
7642}
7643_ACEOF
7644if ac_fn_c_try_link "$LINENO"
7645then :
7646  eval $cacheid=yes
7647else $as_nop
7648  eval $cacheid=no
7649fi
7650rm -f core conftest.err conftest.$ac_objext conftest.beam \
7651    conftest$ac_exeext conftest.$ac_ext
7652fi
7653
7654
7655		CFLAGS="$xorg_testset_save_CFLAGS"
7656
7657		eval supported=\$$cacheid
7658		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7659printf "%s\n" "$supported" >&6; }
7660		if test "$supported" = "yes" ; then
7661			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7662			found="yes"
7663		fi
7664	fi
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680xorg_testset_save_CFLAGS="$CFLAGS"
7681
7682if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7683	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7684	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7685printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7686if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes
7697else $as_nop
7698  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
7703printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7704	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7705	CFLAGS="$xorg_testset_save_CFLAGS"
7706fi
7707
7708if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7709	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7710		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7711	fi
7712	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7713	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7714printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7715if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7716then :
7717  printf %s "(cached) " >&6
7718else $as_nop
7719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7720/* end confdefs.h.  */
7721int i;
7722_ACEOF
7723if ac_fn_c_try_compile "$LINENO"
7724then :
7725  xorg_cv_cc_flag_unused_command_line_argument=yes
7726else $as_nop
7727  xorg_cv_cc_flag_unused_command_line_argument=no
7728fi
7729rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7730fi
7731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7732printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7733	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7734	CFLAGS="$xorg_testset_save_CFLAGS"
7735fi
7736
7737found="no"
7738
7739	if test $found = "no" ; then
7740		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7741			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7742		fi
7743
7744		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7745			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7746		fi
7747
7748		CFLAGS="$CFLAGS -Werror=main"
7749
7750		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7751printf %s "checking if $CC supports -Werror=main... " >&6; }
7752		cacheid=xorg_cv_cc_flag__Werror_main
7753		if eval test \${$cacheid+y}
7754then :
7755  printf %s "(cached) " >&6
7756else $as_nop
7757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7758/* end confdefs.h.  */
7759int i;
7760int
7761main (void)
7762{
7763
7764  ;
7765  return 0;
7766}
7767_ACEOF
7768if ac_fn_c_try_link "$LINENO"
7769then :
7770  eval $cacheid=yes
7771else $as_nop
7772  eval $cacheid=no
7773fi
7774rm -f core conftest.err conftest.$ac_objext conftest.beam \
7775    conftest$ac_exeext conftest.$ac_ext
7776fi
7777
7778
7779		CFLAGS="$xorg_testset_save_CFLAGS"
7780
7781		eval supported=\$$cacheid
7782		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7783printf "%s\n" "$supported" >&6; }
7784		if test "$supported" = "yes" ; then
7785			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7786			found="yes"
7787		fi
7788	fi
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804xorg_testset_save_CFLAGS="$CFLAGS"
7805
7806if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7807	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7808	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7809printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7810if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes
7821else $as_nop
7822  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
7827printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7828	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7829	CFLAGS="$xorg_testset_save_CFLAGS"
7830fi
7831
7832if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7833	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7834		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7835	fi
7836	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7837	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7838printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7839if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7840then :
7841  printf %s "(cached) " >&6
7842else $as_nop
7843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7844/* end confdefs.h.  */
7845int i;
7846_ACEOF
7847if ac_fn_c_try_compile "$LINENO"
7848then :
7849  xorg_cv_cc_flag_unused_command_line_argument=yes
7850else $as_nop
7851  xorg_cv_cc_flag_unused_command_line_argument=no
7852fi
7853rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7854fi
7855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7856printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7857	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7858	CFLAGS="$xorg_testset_save_CFLAGS"
7859fi
7860
7861found="no"
7862
7863	if test $found = "no" ; then
7864		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7865			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7866		fi
7867
7868		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7869			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7870		fi
7871
7872		CFLAGS="$CFLAGS -Werror=missing-braces"
7873
7874		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7875printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7876		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7877		if eval test \${$cacheid+y}
7878then :
7879  printf %s "(cached) " >&6
7880else $as_nop
7881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7882/* end confdefs.h.  */
7883int i;
7884int
7885main (void)
7886{
7887
7888  ;
7889  return 0;
7890}
7891_ACEOF
7892if ac_fn_c_try_link "$LINENO"
7893then :
7894  eval $cacheid=yes
7895else $as_nop
7896  eval $cacheid=no
7897fi
7898rm -f core conftest.err conftest.$ac_objext conftest.beam \
7899    conftest$ac_exeext conftest.$ac_ext
7900fi
7901
7902
7903		CFLAGS="$xorg_testset_save_CFLAGS"
7904
7905		eval supported=\$$cacheid
7906		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7907printf "%s\n" "$supported" >&6; }
7908		if test "$supported" = "yes" ; then
7909			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7910			found="yes"
7911		fi
7912	fi
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928xorg_testset_save_CFLAGS="$CFLAGS"
7929
7930if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7931	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7932	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7933printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7934if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes
7945else $as_nop
7946  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
7951printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7952	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7953	CFLAGS="$xorg_testset_save_CFLAGS"
7954fi
7955
7956if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7957	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7958		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7959	fi
7960	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7961	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7962printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7963if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7964then :
7965  printf %s "(cached) " >&6
7966else $as_nop
7967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7968/* end confdefs.h.  */
7969int i;
7970_ACEOF
7971if ac_fn_c_try_compile "$LINENO"
7972then :
7973  xorg_cv_cc_flag_unused_command_line_argument=yes
7974else $as_nop
7975  xorg_cv_cc_flag_unused_command_line_argument=no
7976fi
7977rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7978fi
7979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7980printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7981	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7982	CFLAGS="$xorg_testset_save_CFLAGS"
7983fi
7984
7985found="no"
7986
7987	if test $found = "no" ; then
7988		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7989			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7990		fi
7991
7992		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7993			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7994		fi
7995
7996		CFLAGS="$CFLAGS -Werror=sequence-point"
7997
7998		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7999printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8000		cacheid=xorg_cv_cc_flag__Werror_sequence_point
8001		if eval test \${$cacheid+y}
8002then :
8003  printf %s "(cached) " >&6
8004else $as_nop
8005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8006/* end confdefs.h.  */
8007int i;
8008int
8009main (void)
8010{
8011
8012  ;
8013  return 0;
8014}
8015_ACEOF
8016if ac_fn_c_try_link "$LINENO"
8017then :
8018  eval $cacheid=yes
8019else $as_nop
8020  eval $cacheid=no
8021fi
8022rm -f core conftest.err conftest.$ac_objext conftest.beam \
8023    conftest$ac_exeext conftest.$ac_ext
8024fi
8025
8026
8027		CFLAGS="$xorg_testset_save_CFLAGS"
8028
8029		eval supported=\$$cacheid
8030		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8031printf "%s\n" "$supported" >&6; }
8032		if test "$supported" = "yes" ; then
8033			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8034			found="yes"
8035		fi
8036	fi
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052xorg_testset_save_CFLAGS="$CFLAGS"
8053
8054if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8055	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8056	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8057printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8058if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes
8069else $as_nop
8070  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
8075printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8076	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8077	CFLAGS="$xorg_testset_save_CFLAGS"
8078fi
8079
8080if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8081	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8082		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8083	fi
8084	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8085	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8086printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8087if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8088then :
8089  printf %s "(cached) " >&6
8090else $as_nop
8091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8092/* end confdefs.h.  */
8093int i;
8094_ACEOF
8095if ac_fn_c_try_compile "$LINENO"
8096then :
8097  xorg_cv_cc_flag_unused_command_line_argument=yes
8098else $as_nop
8099  xorg_cv_cc_flag_unused_command_line_argument=no
8100fi
8101rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8102fi
8103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8104printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8105	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8106	CFLAGS="$xorg_testset_save_CFLAGS"
8107fi
8108
8109found="no"
8110
8111	if test $found = "no" ; then
8112		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8113			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8114		fi
8115
8116		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8117			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8118		fi
8119
8120		CFLAGS="$CFLAGS -Werror=return-type"
8121
8122		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8123printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8124		cacheid=xorg_cv_cc_flag__Werror_return_type
8125		if eval test \${$cacheid+y}
8126then :
8127  printf %s "(cached) " >&6
8128else $as_nop
8129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8130/* end confdefs.h.  */
8131int i;
8132int
8133main (void)
8134{
8135
8136  ;
8137  return 0;
8138}
8139_ACEOF
8140if ac_fn_c_try_link "$LINENO"
8141then :
8142  eval $cacheid=yes
8143else $as_nop
8144  eval $cacheid=no
8145fi
8146rm -f core conftest.err conftest.$ac_objext conftest.beam \
8147    conftest$ac_exeext conftest.$ac_ext
8148fi
8149
8150
8151		CFLAGS="$xorg_testset_save_CFLAGS"
8152
8153		eval supported=\$$cacheid
8154		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8155printf "%s\n" "$supported" >&6; }
8156		if test "$supported" = "yes" ; then
8157			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8158			found="yes"
8159		fi
8160	fi
8161
8162	if test $found = "no" ; then
8163		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8164			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8165		fi
8166
8167		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8168			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8169		fi
8170
8171		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8172
8173		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8174printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8175		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8176		if eval test \${$cacheid+y}
8177then :
8178  printf %s "(cached) " >&6
8179else $as_nop
8180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8181/* end confdefs.h.  */
8182int i;
8183int
8184main (void)
8185{
8186
8187  ;
8188  return 0;
8189}
8190_ACEOF
8191if ac_fn_c_try_link "$LINENO"
8192then :
8193  eval $cacheid=yes
8194else $as_nop
8195  eval $cacheid=no
8196fi
8197rm -f core conftest.err conftest.$ac_objext conftest.beam \
8198    conftest$ac_exeext conftest.$ac_ext
8199fi
8200
8201
8202		CFLAGS="$xorg_testset_save_CFLAGS"
8203
8204		eval supported=\$$cacheid
8205		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8206printf "%s\n" "$supported" >&6; }
8207		if test "$supported" = "yes" ; then
8208			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8209			found="yes"
8210		fi
8211	fi
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227xorg_testset_save_CFLAGS="$CFLAGS"
8228
8229if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8230	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8231	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8232printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8233if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8234then :
8235  printf %s "(cached) " >&6
8236else $as_nop
8237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8238/* end confdefs.h.  */
8239int i;
8240_ACEOF
8241if ac_fn_c_try_compile "$LINENO"
8242then :
8243  xorg_cv_cc_flag_unknown_warning_option=yes
8244else $as_nop
8245  xorg_cv_cc_flag_unknown_warning_option=no
8246fi
8247rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8248fi
8249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8250printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8251	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8252	CFLAGS="$xorg_testset_save_CFLAGS"
8253fi
8254
8255if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8256	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8257		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8258	fi
8259	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8260	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8261printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8262if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8263then :
8264  printf %s "(cached) " >&6
8265else $as_nop
8266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8267/* end confdefs.h.  */
8268int i;
8269_ACEOF
8270if ac_fn_c_try_compile "$LINENO"
8271then :
8272  xorg_cv_cc_flag_unused_command_line_argument=yes
8273else $as_nop
8274  xorg_cv_cc_flag_unused_command_line_argument=no
8275fi
8276rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8277fi
8278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8279printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8280	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8281	CFLAGS="$xorg_testset_save_CFLAGS"
8282fi
8283
8284found="no"
8285
8286	if test $found = "no" ; then
8287		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8288			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8289		fi
8290
8291		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8292			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8293		fi
8294
8295		CFLAGS="$CFLAGS -Werror=trigraphs"
8296
8297		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8298printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8299		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8300		if eval test \${$cacheid+y}
8301then :
8302  printf %s "(cached) " >&6
8303else $as_nop
8304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8305/* end confdefs.h.  */
8306int i;
8307int
8308main (void)
8309{
8310
8311  ;
8312  return 0;
8313}
8314_ACEOF
8315if ac_fn_c_try_link "$LINENO"
8316then :
8317  eval $cacheid=yes
8318else $as_nop
8319  eval $cacheid=no
8320fi
8321rm -f core conftest.err conftest.$ac_objext conftest.beam \
8322    conftest$ac_exeext conftest.$ac_ext
8323fi
8324
8325
8326		CFLAGS="$xorg_testset_save_CFLAGS"
8327
8328		eval supported=\$$cacheid
8329		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8330printf "%s\n" "$supported" >&6; }
8331		if test "$supported" = "yes" ; then
8332			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8333			found="yes"
8334		fi
8335	fi
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351xorg_testset_save_CFLAGS="$CFLAGS"
8352
8353if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8354	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8355	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8356printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8357if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes
8368else $as_nop
8369  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
8374printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8375	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8376	CFLAGS="$xorg_testset_save_CFLAGS"
8377fi
8378
8379if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8380	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8381		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8382	fi
8383	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8384	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8385printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8386if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8387then :
8388  printf %s "(cached) " >&6
8389else $as_nop
8390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8391/* end confdefs.h.  */
8392int i;
8393_ACEOF
8394if ac_fn_c_try_compile "$LINENO"
8395then :
8396  xorg_cv_cc_flag_unused_command_line_argument=yes
8397else $as_nop
8398  xorg_cv_cc_flag_unused_command_line_argument=no
8399fi
8400rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8401fi
8402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8403printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8404	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8405	CFLAGS="$xorg_testset_save_CFLAGS"
8406fi
8407
8408found="no"
8409
8410	if test $found = "no" ; then
8411		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8412			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8413		fi
8414
8415		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8416			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8417		fi
8418
8419		CFLAGS="$CFLAGS -Werror=array-bounds"
8420
8421		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8422printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8423		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8424		if eval test \${$cacheid+y}
8425then :
8426  printf %s "(cached) " >&6
8427else $as_nop
8428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8429/* end confdefs.h.  */
8430int i;
8431int
8432main (void)
8433{
8434
8435  ;
8436  return 0;
8437}
8438_ACEOF
8439if ac_fn_c_try_link "$LINENO"
8440then :
8441  eval $cacheid=yes
8442else $as_nop
8443  eval $cacheid=no
8444fi
8445rm -f core conftest.err conftest.$ac_objext conftest.beam \
8446    conftest$ac_exeext conftest.$ac_ext
8447fi
8448
8449
8450		CFLAGS="$xorg_testset_save_CFLAGS"
8451
8452		eval supported=\$$cacheid
8453		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8454printf "%s\n" "$supported" >&6; }
8455		if test "$supported" = "yes" ; then
8456			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8457			found="yes"
8458		fi
8459	fi
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475xorg_testset_save_CFLAGS="$CFLAGS"
8476
8477if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8478	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8479	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8480printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8481if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes
8492else $as_nop
8493  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
8498printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8499	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8500	CFLAGS="$xorg_testset_save_CFLAGS"
8501fi
8502
8503if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8504	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8505		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8506	fi
8507	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8508	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8509printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8510if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8511then :
8512  printf %s "(cached) " >&6
8513else $as_nop
8514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8515/* end confdefs.h.  */
8516int i;
8517_ACEOF
8518if ac_fn_c_try_compile "$LINENO"
8519then :
8520  xorg_cv_cc_flag_unused_command_line_argument=yes
8521else $as_nop
8522  xorg_cv_cc_flag_unused_command_line_argument=no
8523fi
8524rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8525fi
8526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8527printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8528	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8529	CFLAGS="$xorg_testset_save_CFLAGS"
8530fi
8531
8532found="no"
8533
8534	if test $found = "no" ; then
8535		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8536			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8537		fi
8538
8539		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8540			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8541		fi
8542
8543		CFLAGS="$CFLAGS -Werror=write-strings"
8544
8545		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8546printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8547		cacheid=xorg_cv_cc_flag__Werror_write_strings
8548		if eval test \${$cacheid+y}
8549then :
8550  printf %s "(cached) " >&6
8551else $as_nop
8552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8553/* end confdefs.h.  */
8554int i;
8555int
8556main (void)
8557{
8558
8559  ;
8560  return 0;
8561}
8562_ACEOF
8563if ac_fn_c_try_link "$LINENO"
8564then :
8565  eval $cacheid=yes
8566else $as_nop
8567  eval $cacheid=no
8568fi
8569rm -f core conftest.err conftest.$ac_objext conftest.beam \
8570    conftest$ac_exeext conftest.$ac_ext
8571fi
8572
8573
8574		CFLAGS="$xorg_testset_save_CFLAGS"
8575
8576		eval supported=\$$cacheid
8577		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8578printf "%s\n" "$supported" >&6; }
8579		if test "$supported" = "yes" ; then
8580			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8581			found="yes"
8582		fi
8583	fi
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599xorg_testset_save_CFLAGS="$CFLAGS"
8600
8601if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8602	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8603	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8604printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8605if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes
8616else $as_nop
8617  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
8622printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8623	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8624	CFLAGS="$xorg_testset_save_CFLAGS"
8625fi
8626
8627if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8628	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8629		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8630	fi
8631	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8632	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8633printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8634if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8635then :
8636  printf %s "(cached) " >&6
8637else $as_nop
8638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8639/* end confdefs.h.  */
8640int i;
8641_ACEOF
8642if ac_fn_c_try_compile "$LINENO"
8643then :
8644  xorg_cv_cc_flag_unused_command_line_argument=yes
8645else $as_nop
8646  xorg_cv_cc_flag_unused_command_line_argument=no
8647fi
8648rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8649fi
8650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8651printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8652	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8653	CFLAGS="$xorg_testset_save_CFLAGS"
8654fi
8655
8656found="no"
8657
8658	if test $found = "no" ; then
8659		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8660			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8661		fi
8662
8663		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8664			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8665		fi
8666
8667		CFLAGS="$CFLAGS -Werror=address"
8668
8669		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8670printf %s "checking if $CC supports -Werror=address... " >&6; }
8671		cacheid=xorg_cv_cc_flag__Werror_address
8672		if eval test \${$cacheid+y}
8673then :
8674  printf %s "(cached) " >&6
8675else $as_nop
8676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8677/* end confdefs.h.  */
8678int i;
8679int
8680main (void)
8681{
8682
8683  ;
8684  return 0;
8685}
8686_ACEOF
8687if ac_fn_c_try_link "$LINENO"
8688then :
8689  eval $cacheid=yes
8690else $as_nop
8691  eval $cacheid=no
8692fi
8693rm -f core conftest.err conftest.$ac_objext conftest.beam \
8694    conftest$ac_exeext conftest.$ac_ext
8695fi
8696
8697
8698		CFLAGS="$xorg_testset_save_CFLAGS"
8699
8700		eval supported=\$$cacheid
8701		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8702printf "%s\n" "$supported" >&6; }
8703		if test "$supported" = "yes" ; then
8704			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8705			found="yes"
8706		fi
8707	fi
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723xorg_testset_save_CFLAGS="$CFLAGS"
8724
8725if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8726	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8727	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8728printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8729if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes
8740else $as_nop
8741  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
8746printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8747	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8748	CFLAGS="$xorg_testset_save_CFLAGS"
8749fi
8750
8751if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8752	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8753		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8754	fi
8755	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8756	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8757printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8758if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8759then :
8760  printf %s "(cached) " >&6
8761else $as_nop
8762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8763/* end confdefs.h.  */
8764int i;
8765_ACEOF
8766if ac_fn_c_try_compile "$LINENO"
8767then :
8768  xorg_cv_cc_flag_unused_command_line_argument=yes
8769else $as_nop
8770  xorg_cv_cc_flag_unused_command_line_argument=no
8771fi
8772rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8773fi
8774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8775printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8776	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8777	CFLAGS="$xorg_testset_save_CFLAGS"
8778fi
8779
8780found="no"
8781
8782	if test $found = "no" ; then
8783		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8784			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8785		fi
8786
8787		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8788			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8789		fi
8790
8791		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8792
8793		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8794printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8795		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8796		if eval test \${$cacheid+y}
8797then :
8798  printf %s "(cached) " >&6
8799else $as_nop
8800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8801/* end confdefs.h.  */
8802int i;
8803int
8804main (void)
8805{
8806
8807  ;
8808  return 0;
8809}
8810_ACEOF
8811if ac_fn_c_try_link "$LINENO"
8812then :
8813  eval $cacheid=yes
8814else $as_nop
8815  eval $cacheid=no
8816fi
8817rm -f core conftest.err conftest.$ac_objext conftest.beam \
8818    conftest$ac_exeext conftest.$ac_ext
8819fi
8820
8821
8822		CFLAGS="$xorg_testset_save_CFLAGS"
8823
8824		eval supported=\$$cacheid
8825		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8826printf "%s\n" "$supported" >&6; }
8827		if test "$supported" = "yes" ; then
8828			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8829			found="yes"
8830		fi
8831	fi
8832
8833	if test $found = "no" ; then
8834		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8835			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8836		fi
8837
8838		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8839			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8840		fi
8841
8842		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8843
8844		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8845printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8846		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8847		if eval test \${$cacheid+y}
8848then :
8849  printf %s "(cached) " >&6
8850else $as_nop
8851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8852/* end confdefs.h.  */
8853int i;
8854int
8855main (void)
8856{
8857
8858  ;
8859  return 0;
8860}
8861_ACEOF
8862if ac_fn_c_try_link "$LINENO"
8863then :
8864  eval $cacheid=yes
8865else $as_nop
8866  eval $cacheid=no
8867fi
8868rm -f core conftest.err conftest.$ac_objext conftest.beam \
8869    conftest$ac_exeext conftest.$ac_ext
8870fi
8871
8872
8873		CFLAGS="$xorg_testset_save_CFLAGS"
8874
8875		eval supported=\$$cacheid
8876		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8877printf "%s\n" "$supported" >&6; }
8878		if test "$supported" = "yes" ; then
8879			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8880			found="yes"
8881		fi
8882	fi
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898xorg_testset_save_CFLAGS="$CFLAGS"
8899
8900if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8901	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8902	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8903printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8904if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8905then :
8906  printf %s "(cached) " >&6
8907else $as_nop
8908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8909/* end confdefs.h.  */
8910int i;
8911_ACEOF
8912if ac_fn_c_try_compile "$LINENO"
8913then :
8914  xorg_cv_cc_flag_unknown_warning_option=yes
8915else $as_nop
8916  xorg_cv_cc_flag_unknown_warning_option=no
8917fi
8918rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8919fi
8920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8921printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8922	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8923	CFLAGS="$xorg_testset_save_CFLAGS"
8924fi
8925
8926if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8927	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8928		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8929	fi
8930	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8931	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8932printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8933if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8934then :
8935  printf %s "(cached) " >&6
8936else $as_nop
8937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8938/* end confdefs.h.  */
8939int i;
8940_ACEOF
8941if ac_fn_c_try_compile "$LINENO"
8942then :
8943  xorg_cv_cc_flag_unused_command_line_argument=yes
8944else $as_nop
8945  xorg_cv_cc_flag_unused_command_line_argument=no
8946fi
8947rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8948fi
8949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8950printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8951	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8952	CFLAGS="$xorg_testset_save_CFLAGS"
8953fi
8954
8955found="no"
8956
8957	if test $found = "no" ; then
8958		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8959			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8960		fi
8961
8962		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8963			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8964		fi
8965
8966		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8967
8968		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8969printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8970		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8971		if eval test \${$cacheid+y}
8972then :
8973  printf %s "(cached) " >&6
8974else $as_nop
8975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8976/* end confdefs.h.  */
8977int i;
8978int
8979main (void)
8980{
8981
8982  ;
8983  return 0;
8984}
8985_ACEOF
8986if ac_fn_c_try_link "$LINENO"
8987then :
8988  eval $cacheid=yes
8989else $as_nop
8990  eval $cacheid=no
8991fi
8992rm -f core conftest.err conftest.$ac_objext conftest.beam \
8993    conftest$ac_exeext conftest.$ac_ext
8994fi
8995
8996
8997		CFLAGS="$xorg_testset_save_CFLAGS"
8998
8999		eval supported=\$$cacheid
9000		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9001printf "%s\n" "$supported" >&6; }
9002		if test "$supported" = "yes" ; then
9003			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9004			found="yes"
9005		fi
9006	fi
9007
9008 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9009else
9010{ 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
9011printf "%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;}
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025xorg_testset_save_CFLAGS="$CFLAGS"
9026
9027if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9028	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9029	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9030printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9031if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9032then :
9033  printf %s "(cached) " >&6
9034else $as_nop
9035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9036/* end confdefs.h.  */
9037int i;
9038_ACEOF
9039if ac_fn_c_try_compile "$LINENO"
9040then :
9041  xorg_cv_cc_flag_unknown_warning_option=yes
9042else $as_nop
9043  xorg_cv_cc_flag_unknown_warning_option=no
9044fi
9045rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9046fi
9047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9048printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9049	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9050	CFLAGS="$xorg_testset_save_CFLAGS"
9051fi
9052
9053if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9054	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9055		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9056	fi
9057	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9058	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9059printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9060if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9061then :
9062  printf %s "(cached) " >&6
9063else $as_nop
9064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9065/* end confdefs.h.  */
9066int i;
9067_ACEOF
9068if ac_fn_c_try_compile "$LINENO"
9069then :
9070  xorg_cv_cc_flag_unused_command_line_argument=yes
9071else $as_nop
9072  xorg_cv_cc_flag_unused_command_line_argument=no
9073fi
9074rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9075fi
9076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9077printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9078	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9079	CFLAGS="$xorg_testset_save_CFLAGS"
9080fi
9081
9082found="no"
9083
9084	if test $found = "no" ; then
9085		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9086			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9087		fi
9088
9089		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9090			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9091		fi
9092
9093		CFLAGS="$CFLAGS -Wimplicit"
9094
9095		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9096printf %s "checking if $CC supports -Wimplicit... " >&6; }
9097		cacheid=xorg_cv_cc_flag__Wimplicit
9098		if eval test \${$cacheid+y}
9099then :
9100  printf %s "(cached) " >&6
9101else $as_nop
9102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9103/* end confdefs.h.  */
9104int i;
9105int
9106main (void)
9107{
9108
9109  ;
9110  return 0;
9111}
9112_ACEOF
9113if ac_fn_c_try_link "$LINENO"
9114then :
9115  eval $cacheid=yes
9116else $as_nop
9117  eval $cacheid=no
9118fi
9119rm -f core conftest.err conftest.$ac_objext conftest.beam \
9120    conftest$ac_exeext conftest.$ac_ext
9121fi
9122
9123
9124		CFLAGS="$xorg_testset_save_CFLAGS"
9125
9126		eval supported=\$$cacheid
9127		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9128printf "%s\n" "$supported" >&6; }
9129		if test "$supported" = "yes" ; then
9130			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9131			found="yes"
9132		fi
9133	fi
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149xorg_testset_save_CFLAGS="$CFLAGS"
9150
9151if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9152	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9153	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9154printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9155if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes
9166else $as_nop
9167  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
9172printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9173	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9174	CFLAGS="$xorg_testset_save_CFLAGS"
9175fi
9176
9177if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9178	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9179		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9180	fi
9181	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9182	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9183printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9184if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9185then :
9186  printf %s "(cached) " >&6
9187else $as_nop
9188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9189/* end confdefs.h.  */
9190int i;
9191_ACEOF
9192if ac_fn_c_try_compile "$LINENO"
9193then :
9194  xorg_cv_cc_flag_unused_command_line_argument=yes
9195else $as_nop
9196  xorg_cv_cc_flag_unused_command_line_argument=no
9197fi
9198rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9199fi
9200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9201printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9202	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9203	CFLAGS="$xorg_testset_save_CFLAGS"
9204fi
9205
9206found="no"
9207
9208	if test $found = "no" ; then
9209		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9210			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9211		fi
9212
9213		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9214			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9215		fi
9216
9217		CFLAGS="$CFLAGS -Wnonnull"
9218
9219		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9220printf %s "checking if $CC supports -Wnonnull... " >&6; }
9221		cacheid=xorg_cv_cc_flag__Wnonnull
9222		if eval test \${$cacheid+y}
9223then :
9224  printf %s "(cached) " >&6
9225else $as_nop
9226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9227/* end confdefs.h.  */
9228int i;
9229int
9230main (void)
9231{
9232
9233  ;
9234  return 0;
9235}
9236_ACEOF
9237if ac_fn_c_try_link "$LINENO"
9238then :
9239  eval $cacheid=yes
9240else $as_nop
9241  eval $cacheid=no
9242fi
9243rm -f core conftest.err conftest.$ac_objext conftest.beam \
9244    conftest$ac_exeext conftest.$ac_ext
9245fi
9246
9247
9248		CFLAGS="$xorg_testset_save_CFLAGS"
9249
9250		eval supported=\$$cacheid
9251		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9252printf "%s\n" "$supported" >&6; }
9253		if test "$supported" = "yes" ; then
9254			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9255			found="yes"
9256		fi
9257	fi
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273xorg_testset_save_CFLAGS="$CFLAGS"
9274
9275if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9276	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9277	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9278printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9279if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes
9290else $as_nop
9291  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
9296printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9297	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9298	CFLAGS="$xorg_testset_save_CFLAGS"
9299fi
9300
9301if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9302	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9303		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9304	fi
9305	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9306	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9307printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9308if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9309then :
9310  printf %s "(cached) " >&6
9311else $as_nop
9312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9313/* end confdefs.h.  */
9314int i;
9315_ACEOF
9316if ac_fn_c_try_compile "$LINENO"
9317then :
9318  xorg_cv_cc_flag_unused_command_line_argument=yes
9319else $as_nop
9320  xorg_cv_cc_flag_unused_command_line_argument=no
9321fi
9322rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9323fi
9324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9325printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9326	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9327	CFLAGS="$xorg_testset_save_CFLAGS"
9328fi
9329
9330found="no"
9331
9332	if test $found = "no" ; then
9333		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9334			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9335		fi
9336
9337		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9338			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9339		fi
9340
9341		CFLAGS="$CFLAGS -Winit-self"
9342
9343		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9344printf %s "checking if $CC supports -Winit-self... " >&6; }
9345		cacheid=xorg_cv_cc_flag__Winit_self
9346		if eval test \${$cacheid+y}
9347then :
9348  printf %s "(cached) " >&6
9349else $as_nop
9350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9351/* end confdefs.h.  */
9352int i;
9353int
9354main (void)
9355{
9356
9357  ;
9358  return 0;
9359}
9360_ACEOF
9361if ac_fn_c_try_link "$LINENO"
9362then :
9363  eval $cacheid=yes
9364else $as_nop
9365  eval $cacheid=no
9366fi
9367rm -f core conftest.err conftest.$ac_objext conftest.beam \
9368    conftest$ac_exeext conftest.$ac_ext
9369fi
9370
9371
9372		CFLAGS="$xorg_testset_save_CFLAGS"
9373
9374		eval supported=\$$cacheid
9375		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9376printf "%s\n" "$supported" >&6; }
9377		if test "$supported" = "yes" ; then
9378			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9379			found="yes"
9380		fi
9381	fi
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397xorg_testset_save_CFLAGS="$CFLAGS"
9398
9399if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9400	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9401	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9402printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9403if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes
9414else $as_nop
9415  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
9420printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9421	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9422	CFLAGS="$xorg_testset_save_CFLAGS"
9423fi
9424
9425if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9426	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9427		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9428	fi
9429	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9430	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9431printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9432if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9433then :
9434  printf %s "(cached) " >&6
9435else $as_nop
9436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9437/* end confdefs.h.  */
9438int i;
9439_ACEOF
9440if ac_fn_c_try_compile "$LINENO"
9441then :
9442  xorg_cv_cc_flag_unused_command_line_argument=yes
9443else $as_nop
9444  xorg_cv_cc_flag_unused_command_line_argument=no
9445fi
9446rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9447fi
9448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9449printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9450	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9451	CFLAGS="$xorg_testset_save_CFLAGS"
9452fi
9453
9454found="no"
9455
9456	if test $found = "no" ; then
9457		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9458			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9459		fi
9460
9461		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9462			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9463		fi
9464
9465		CFLAGS="$CFLAGS -Wmain"
9466
9467		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9468printf %s "checking if $CC supports -Wmain... " >&6; }
9469		cacheid=xorg_cv_cc_flag__Wmain
9470		if eval test \${$cacheid+y}
9471then :
9472  printf %s "(cached) " >&6
9473else $as_nop
9474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9475/* end confdefs.h.  */
9476int i;
9477int
9478main (void)
9479{
9480
9481  ;
9482  return 0;
9483}
9484_ACEOF
9485if ac_fn_c_try_link "$LINENO"
9486then :
9487  eval $cacheid=yes
9488else $as_nop
9489  eval $cacheid=no
9490fi
9491rm -f core conftest.err conftest.$ac_objext conftest.beam \
9492    conftest$ac_exeext conftest.$ac_ext
9493fi
9494
9495
9496		CFLAGS="$xorg_testset_save_CFLAGS"
9497
9498		eval supported=\$$cacheid
9499		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9500printf "%s\n" "$supported" >&6; }
9501		if test "$supported" = "yes" ; then
9502			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9503			found="yes"
9504		fi
9505	fi
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521xorg_testset_save_CFLAGS="$CFLAGS"
9522
9523if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9524	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9525	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9526printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9527if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes
9538else $as_nop
9539  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
9544printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9545	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9546	CFLAGS="$xorg_testset_save_CFLAGS"
9547fi
9548
9549if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9550	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9551		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9552	fi
9553	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9554	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9555printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9556if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9557then :
9558  printf %s "(cached) " >&6
9559else $as_nop
9560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9561/* end confdefs.h.  */
9562int i;
9563_ACEOF
9564if ac_fn_c_try_compile "$LINENO"
9565then :
9566  xorg_cv_cc_flag_unused_command_line_argument=yes
9567else $as_nop
9568  xorg_cv_cc_flag_unused_command_line_argument=no
9569fi
9570rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9571fi
9572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9573printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9574	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9575	CFLAGS="$xorg_testset_save_CFLAGS"
9576fi
9577
9578found="no"
9579
9580	if test $found = "no" ; then
9581		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9582			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9583		fi
9584
9585		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9586			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9587		fi
9588
9589		CFLAGS="$CFLAGS -Wmissing-braces"
9590
9591		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9592printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9593		cacheid=xorg_cv_cc_flag__Wmissing_braces
9594		if eval test \${$cacheid+y}
9595then :
9596  printf %s "(cached) " >&6
9597else $as_nop
9598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9599/* end confdefs.h.  */
9600int i;
9601int
9602main (void)
9603{
9604
9605  ;
9606  return 0;
9607}
9608_ACEOF
9609if ac_fn_c_try_link "$LINENO"
9610then :
9611  eval $cacheid=yes
9612else $as_nop
9613  eval $cacheid=no
9614fi
9615rm -f core conftest.err conftest.$ac_objext conftest.beam \
9616    conftest$ac_exeext conftest.$ac_ext
9617fi
9618
9619
9620		CFLAGS="$xorg_testset_save_CFLAGS"
9621
9622		eval supported=\$$cacheid
9623		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9624printf "%s\n" "$supported" >&6; }
9625		if test "$supported" = "yes" ; then
9626			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9627			found="yes"
9628		fi
9629	fi
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645xorg_testset_save_CFLAGS="$CFLAGS"
9646
9647if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9648	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9649	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9650printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9651if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes
9662else $as_nop
9663  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
9668printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9669	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9670	CFLAGS="$xorg_testset_save_CFLAGS"
9671fi
9672
9673if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9674	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9675		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9676	fi
9677	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9678	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9679printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9680if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9681then :
9682  printf %s "(cached) " >&6
9683else $as_nop
9684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9685/* end confdefs.h.  */
9686int i;
9687_ACEOF
9688if ac_fn_c_try_compile "$LINENO"
9689then :
9690  xorg_cv_cc_flag_unused_command_line_argument=yes
9691else $as_nop
9692  xorg_cv_cc_flag_unused_command_line_argument=no
9693fi
9694rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9695fi
9696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9697printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9698	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9699	CFLAGS="$xorg_testset_save_CFLAGS"
9700fi
9701
9702found="no"
9703
9704	if test $found = "no" ; then
9705		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9706			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9707		fi
9708
9709		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9710			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9711		fi
9712
9713		CFLAGS="$CFLAGS -Wsequence-point"
9714
9715		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9716printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9717		cacheid=xorg_cv_cc_flag__Wsequence_point
9718		if eval test \${$cacheid+y}
9719then :
9720  printf %s "(cached) " >&6
9721else $as_nop
9722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9723/* end confdefs.h.  */
9724int i;
9725int
9726main (void)
9727{
9728
9729  ;
9730  return 0;
9731}
9732_ACEOF
9733if ac_fn_c_try_link "$LINENO"
9734then :
9735  eval $cacheid=yes
9736else $as_nop
9737  eval $cacheid=no
9738fi
9739rm -f core conftest.err conftest.$ac_objext conftest.beam \
9740    conftest$ac_exeext conftest.$ac_ext
9741fi
9742
9743
9744		CFLAGS="$xorg_testset_save_CFLAGS"
9745
9746		eval supported=\$$cacheid
9747		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9748printf "%s\n" "$supported" >&6; }
9749		if test "$supported" = "yes" ; then
9750			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9751			found="yes"
9752		fi
9753	fi
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769xorg_testset_save_CFLAGS="$CFLAGS"
9770
9771if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9772	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9773	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9774printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9775if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes
9786else $as_nop
9787  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
9792printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9793	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9794	CFLAGS="$xorg_testset_save_CFLAGS"
9795fi
9796
9797if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9798	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9799		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9800	fi
9801	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9802	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9803printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9804if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9805then :
9806  printf %s "(cached) " >&6
9807else $as_nop
9808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9809/* end confdefs.h.  */
9810int i;
9811_ACEOF
9812if ac_fn_c_try_compile "$LINENO"
9813then :
9814  xorg_cv_cc_flag_unused_command_line_argument=yes
9815else $as_nop
9816  xorg_cv_cc_flag_unused_command_line_argument=no
9817fi
9818rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9819fi
9820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9821printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9822	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9823	CFLAGS="$xorg_testset_save_CFLAGS"
9824fi
9825
9826found="no"
9827
9828	if test $found = "no" ; then
9829		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9830			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9831		fi
9832
9833		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9834			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9835		fi
9836
9837		CFLAGS="$CFLAGS -Wreturn-type"
9838
9839		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9840printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9841		cacheid=xorg_cv_cc_flag__Wreturn_type
9842		if eval test \${$cacheid+y}
9843then :
9844  printf %s "(cached) " >&6
9845else $as_nop
9846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9847/* end confdefs.h.  */
9848int i;
9849int
9850main (void)
9851{
9852
9853  ;
9854  return 0;
9855}
9856_ACEOF
9857if ac_fn_c_try_link "$LINENO"
9858then :
9859  eval $cacheid=yes
9860else $as_nop
9861  eval $cacheid=no
9862fi
9863rm -f core conftest.err conftest.$ac_objext conftest.beam \
9864    conftest$ac_exeext conftest.$ac_ext
9865fi
9866
9867
9868		CFLAGS="$xorg_testset_save_CFLAGS"
9869
9870		eval supported=\$$cacheid
9871		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9872printf "%s\n" "$supported" >&6; }
9873		if test "$supported" = "yes" ; then
9874			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9875			found="yes"
9876		fi
9877	fi
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893xorg_testset_save_CFLAGS="$CFLAGS"
9894
9895if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9896	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9897	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9898printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9899if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes
9910else $as_nop
9911  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
9916printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9917	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9918	CFLAGS="$xorg_testset_save_CFLAGS"
9919fi
9920
9921if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9922	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9923		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9924	fi
9925	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9926	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9927printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9928if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9929then :
9930  printf %s "(cached) " >&6
9931else $as_nop
9932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9933/* end confdefs.h.  */
9934int i;
9935_ACEOF
9936if ac_fn_c_try_compile "$LINENO"
9937then :
9938  xorg_cv_cc_flag_unused_command_line_argument=yes
9939else $as_nop
9940  xorg_cv_cc_flag_unused_command_line_argument=no
9941fi
9942rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9943fi
9944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9945printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9946	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9947	CFLAGS="$xorg_testset_save_CFLAGS"
9948fi
9949
9950found="no"
9951
9952	if test $found = "no" ; then
9953		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9954			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9955		fi
9956
9957		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9958			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9959		fi
9960
9961		CFLAGS="$CFLAGS -Wtrigraphs"
9962
9963		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9964printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9965		cacheid=xorg_cv_cc_flag__Wtrigraphs
9966		if eval test \${$cacheid+y}
9967then :
9968  printf %s "(cached) " >&6
9969else $as_nop
9970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9971/* end confdefs.h.  */
9972int i;
9973int
9974main (void)
9975{
9976
9977  ;
9978  return 0;
9979}
9980_ACEOF
9981if ac_fn_c_try_link "$LINENO"
9982then :
9983  eval $cacheid=yes
9984else $as_nop
9985  eval $cacheid=no
9986fi
9987rm -f core conftest.err conftest.$ac_objext conftest.beam \
9988    conftest$ac_exeext conftest.$ac_ext
9989fi
9990
9991
9992		CFLAGS="$xorg_testset_save_CFLAGS"
9993
9994		eval supported=\$$cacheid
9995		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9996printf "%s\n" "$supported" >&6; }
9997		if test "$supported" = "yes" ; then
9998			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9999			found="yes"
10000		fi
10001	fi
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017xorg_testset_save_CFLAGS="$CFLAGS"
10018
10019if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10020	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10021	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10022printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10023if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes
10034else $as_nop
10035  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
10040printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10041	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10042	CFLAGS="$xorg_testset_save_CFLAGS"
10043fi
10044
10045if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10046	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10047		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10048	fi
10049	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10050	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10051printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10052if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10053then :
10054  printf %s "(cached) " >&6
10055else $as_nop
10056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10057/* end confdefs.h.  */
10058int i;
10059_ACEOF
10060if ac_fn_c_try_compile "$LINENO"
10061then :
10062  xorg_cv_cc_flag_unused_command_line_argument=yes
10063else $as_nop
10064  xorg_cv_cc_flag_unused_command_line_argument=no
10065fi
10066rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10067fi
10068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10069printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10070	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10071	CFLAGS="$xorg_testset_save_CFLAGS"
10072fi
10073
10074found="no"
10075
10076	if test $found = "no" ; then
10077		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10078			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10079		fi
10080
10081		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10082			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10083		fi
10084
10085		CFLAGS="$CFLAGS -Warray-bounds"
10086
10087		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10088printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10089		cacheid=xorg_cv_cc_flag__Warray_bounds
10090		if eval test \${$cacheid+y}
10091then :
10092  printf %s "(cached) " >&6
10093else $as_nop
10094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10095/* end confdefs.h.  */
10096int i;
10097int
10098main (void)
10099{
10100
10101  ;
10102  return 0;
10103}
10104_ACEOF
10105if ac_fn_c_try_link "$LINENO"
10106then :
10107  eval $cacheid=yes
10108else $as_nop
10109  eval $cacheid=no
10110fi
10111rm -f core conftest.err conftest.$ac_objext conftest.beam \
10112    conftest$ac_exeext conftest.$ac_ext
10113fi
10114
10115
10116		CFLAGS="$xorg_testset_save_CFLAGS"
10117
10118		eval supported=\$$cacheid
10119		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10120printf "%s\n" "$supported" >&6; }
10121		if test "$supported" = "yes" ; then
10122			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10123			found="yes"
10124		fi
10125	fi
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141xorg_testset_save_CFLAGS="$CFLAGS"
10142
10143if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10144	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10145	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10146printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10147if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes
10158else $as_nop
10159  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
10164printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10165	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10166	CFLAGS="$xorg_testset_save_CFLAGS"
10167fi
10168
10169if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10170	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10171		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10172	fi
10173	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10174	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10175printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10176if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10177then :
10178  printf %s "(cached) " >&6
10179else $as_nop
10180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10181/* end confdefs.h.  */
10182int i;
10183_ACEOF
10184if ac_fn_c_try_compile "$LINENO"
10185then :
10186  xorg_cv_cc_flag_unused_command_line_argument=yes
10187else $as_nop
10188  xorg_cv_cc_flag_unused_command_line_argument=no
10189fi
10190rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10191fi
10192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10193printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10194	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10195	CFLAGS="$xorg_testset_save_CFLAGS"
10196fi
10197
10198found="no"
10199
10200	if test $found = "no" ; then
10201		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10202			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10203		fi
10204
10205		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10206			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10207		fi
10208
10209		CFLAGS="$CFLAGS -Wwrite-strings"
10210
10211		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10212printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10213		cacheid=xorg_cv_cc_flag__Wwrite_strings
10214		if eval test \${$cacheid+y}
10215then :
10216  printf %s "(cached) " >&6
10217else $as_nop
10218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10219/* end confdefs.h.  */
10220int i;
10221int
10222main (void)
10223{
10224
10225  ;
10226  return 0;
10227}
10228_ACEOF
10229if ac_fn_c_try_link "$LINENO"
10230then :
10231  eval $cacheid=yes
10232else $as_nop
10233  eval $cacheid=no
10234fi
10235rm -f core conftest.err conftest.$ac_objext conftest.beam \
10236    conftest$ac_exeext conftest.$ac_ext
10237fi
10238
10239
10240		CFLAGS="$xorg_testset_save_CFLAGS"
10241
10242		eval supported=\$$cacheid
10243		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10244printf "%s\n" "$supported" >&6; }
10245		if test "$supported" = "yes" ; then
10246			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10247			found="yes"
10248		fi
10249	fi
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265xorg_testset_save_CFLAGS="$CFLAGS"
10266
10267if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10268	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10269	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10270printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10271if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes
10282else $as_nop
10283  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
10288printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10289	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10290	CFLAGS="$xorg_testset_save_CFLAGS"
10291fi
10292
10293if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10294	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10295		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10296	fi
10297	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10298	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10299printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10300if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10301then :
10302  printf %s "(cached) " >&6
10303else $as_nop
10304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10305/* end confdefs.h.  */
10306int i;
10307_ACEOF
10308if ac_fn_c_try_compile "$LINENO"
10309then :
10310  xorg_cv_cc_flag_unused_command_line_argument=yes
10311else $as_nop
10312  xorg_cv_cc_flag_unused_command_line_argument=no
10313fi
10314rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10315fi
10316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10317printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10318	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10319	CFLAGS="$xorg_testset_save_CFLAGS"
10320fi
10321
10322found="no"
10323
10324	if test $found = "no" ; then
10325		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10326			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10327		fi
10328
10329		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10330			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10331		fi
10332
10333		CFLAGS="$CFLAGS -Waddress"
10334
10335		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10336printf %s "checking if $CC supports -Waddress... " >&6; }
10337		cacheid=xorg_cv_cc_flag__Waddress
10338		if eval test \${$cacheid+y}
10339then :
10340  printf %s "(cached) " >&6
10341else $as_nop
10342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10343/* end confdefs.h.  */
10344int i;
10345int
10346main (void)
10347{
10348
10349  ;
10350  return 0;
10351}
10352_ACEOF
10353if ac_fn_c_try_link "$LINENO"
10354then :
10355  eval $cacheid=yes
10356else $as_nop
10357  eval $cacheid=no
10358fi
10359rm -f core conftest.err conftest.$ac_objext conftest.beam \
10360    conftest$ac_exeext conftest.$ac_ext
10361fi
10362
10363
10364		CFLAGS="$xorg_testset_save_CFLAGS"
10365
10366		eval supported=\$$cacheid
10367		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10368printf "%s\n" "$supported" >&6; }
10369		if test "$supported" = "yes" ; then
10370			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10371			found="yes"
10372		fi
10373	fi
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389xorg_testset_save_CFLAGS="$CFLAGS"
10390
10391if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10392	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10393	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10394printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10395if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes
10406else $as_nop
10407  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
10412printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10413	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10414	CFLAGS="$xorg_testset_save_CFLAGS"
10415fi
10416
10417if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10418	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10419		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10420	fi
10421	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10422	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10423printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10424if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10425then :
10426  printf %s "(cached) " >&6
10427else $as_nop
10428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10429/* end confdefs.h.  */
10430int i;
10431_ACEOF
10432if ac_fn_c_try_compile "$LINENO"
10433then :
10434  xorg_cv_cc_flag_unused_command_line_argument=yes
10435else $as_nop
10436  xorg_cv_cc_flag_unused_command_line_argument=no
10437fi
10438rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10439fi
10440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10441printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10442	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10443	CFLAGS="$xorg_testset_save_CFLAGS"
10444fi
10445
10446found="no"
10447
10448	if test $found = "no" ; then
10449		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10450			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10451		fi
10452
10453		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10454			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10455		fi
10456
10457		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10458
10459		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10460printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10461		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10462		if eval test \${$cacheid+y}
10463then :
10464  printf %s "(cached) " >&6
10465else $as_nop
10466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10467/* end confdefs.h.  */
10468int i;
10469int
10470main (void)
10471{
10472
10473  ;
10474  return 0;
10475}
10476_ACEOF
10477if ac_fn_c_try_link "$LINENO"
10478then :
10479  eval $cacheid=yes
10480else $as_nop
10481  eval $cacheid=no
10482fi
10483rm -f core conftest.err conftest.$ac_objext conftest.beam \
10484    conftest$ac_exeext conftest.$ac_ext
10485fi
10486
10487
10488		CFLAGS="$xorg_testset_save_CFLAGS"
10489
10490		eval supported=\$$cacheid
10491		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10492printf "%s\n" "$supported" >&6; }
10493		if test "$supported" = "yes" ; then
10494			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10495			found="yes"
10496		fi
10497	fi
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513xorg_testset_save_CFLAGS="$CFLAGS"
10514
10515if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10516	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10517	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10518printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10519if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes
10530else $as_nop
10531  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
10536printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10537	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10538	CFLAGS="$xorg_testset_save_CFLAGS"
10539fi
10540
10541if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10542	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10543		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10544	fi
10545	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10546	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10547printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10548if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10549then :
10550  printf %s "(cached) " >&6
10551else $as_nop
10552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10553/* end confdefs.h.  */
10554int i;
10555_ACEOF
10556if ac_fn_c_try_compile "$LINENO"
10557then :
10558  xorg_cv_cc_flag_unused_command_line_argument=yes
10559else $as_nop
10560  xorg_cv_cc_flag_unused_command_line_argument=no
10561fi
10562rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10563fi
10564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10565printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10566	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10567	CFLAGS="$xorg_testset_save_CFLAGS"
10568fi
10569
10570found="no"
10571
10572	if test $found = "no" ; then
10573		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10574			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10575		fi
10576
10577		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10578			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10579		fi
10580
10581		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10582
10583		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10584printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10585		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10586		if eval test \${$cacheid+y}
10587then :
10588  printf %s "(cached) " >&6
10589else $as_nop
10590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10591/* end confdefs.h.  */
10592int i;
10593int
10594main (void)
10595{
10596
10597  ;
10598  return 0;
10599}
10600_ACEOF
10601if ac_fn_c_try_link "$LINENO"
10602then :
10603  eval $cacheid=yes
10604else $as_nop
10605  eval $cacheid=no
10606fi
10607rm -f core conftest.err conftest.$ac_objext conftest.beam \
10608    conftest$ac_exeext conftest.$ac_ext
10609fi
10610
10611
10612		CFLAGS="$xorg_testset_save_CFLAGS"
10613
10614		eval supported=\$$cacheid
10615		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10616printf "%s\n" "$supported" >&6; }
10617		if test "$supported" = "yes" ; then
10618			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10619			found="yes"
10620		fi
10621	fi
10622
10623
10624fi
10625
10626
10627
10628
10629
10630
10631
10632		CWARNFLAGS="$BASE_CFLAGS"
10633		if  test "x$GCC" = xyes ; then
10634		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10635		fi
10636
10637
10638
10639
10640
10641
10642
10643
10644# Check whether --enable-strict-compilation was given.
10645if test ${enable_strict_compilation+y}
10646then :
10647  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10648else $as_nop
10649  STRICT_COMPILE=no
10650fi
10651
10652
10653
10654
10655
10656
10657STRICT_CFLAGS=""
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671xorg_testset_save_CFLAGS="$CFLAGS"
10672
10673if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10674	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10675	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10676printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10677if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10678then :
10679  printf %s "(cached) " >&6
10680else $as_nop
10681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10682/* end confdefs.h.  */
10683int i;
10684_ACEOF
10685if ac_fn_c_try_compile "$LINENO"
10686then :
10687  xorg_cv_cc_flag_unknown_warning_option=yes
10688else $as_nop
10689  xorg_cv_cc_flag_unknown_warning_option=no
10690fi
10691rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10692fi
10693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10694printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10695	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10696	CFLAGS="$xorg_testset_save_CFLAGS"
10697fi
10698
10699if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10700	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10701		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10702	fi
10703	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10704	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10705printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10706if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10707then :
10708  printf %s "(cached) " >&6
10709else $as_nop
10710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10711/* end confdefs.h.  */
10712int i;
10713_ACEOF
10714if ac_fn_c_try_compile "$LINENO"
10715then :
10716  xorg_cv_cc_flag_unused_command_line_argument=yes
10717else $as_nop
10718  xorg_cv_cc_flag_unused_command_line_argument=no
10719fi
10720rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10721fi
10722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10723printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10724	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10725	CFLAGS="$xorg_testset_save_CFLAGS"
10726fi
10727
10728found="no"
10729
10730	if test $found = "no" ; then
10731		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10732			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10733		fi
10734
10735		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10736			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10737		fi
10738
10739		CFLAGS="$CFLAGS -pedantic"
10740
10741		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10742printf %s "checking if $CC supports -pedantic... " >&6; }
10743		cacheid=xorg_cv_cc_flag__pedantic
10744		if eval test \${$cacheid+y}
10745then :
10746  printf %s "(cached) " >&6
10747else $as_nop
10748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10749/* end confdefs.h.  */
10750int i;
10751int
10752main (void)
10753{
10754
10755  ;
10756  return 0;
10757}
10758_ACEOF
10759if ac_fn_c_try_link "$LINENO"
10760then :
10761  eval $cacheid=yes
10762else $as_nop
10763  eval $cacheid=no
10764fi
10765rm -f core conftest.err conftest.$ac_objext conftest.beam \
10766    conftest$ac_exeext conftest.$ac_ext
10767fi
10768
10769
10770		CFLAGS="$xorg_testset_save_CFLAGS"
10771
10772		eval supported=\$$cacheid
10773		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10774printf "%s\n" "$supported" >&6; }
10775		if test "$supported" = "yes" ; then
10776			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10777			found="yes"
10778		fi
10779	fi
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795xorg_testset_save_CFLAGS="$CFLAGS"
10796
10797if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10798	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10799	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10800printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10801if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes
10812else $as_nop
10813  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
10818printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10819	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10820	CFLAGS="$xorg_testset_save_CFLAGS"
10821fi
10822
10823if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10824	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10825		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10826	fi
10827	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10828	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10829printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10830if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10831then :
10832  printf %s "(cached) " >&6
10833else $as_nop
10834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10835/* end confdefs.h.  */
10836int i;
10837_ACEOF
10838if ac_fn_c_try_compile "$LINENO"
10839then :
10840  xorg_cv_cc_flag_unused_command_line_argument=yes
10841else $as_nop
10842  xorg_cv_cc_flag_unused_command_line_argument=no
10843fi
10844rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10845fi
10846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10847printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10848	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10849	CFLAGS="$xorg_testset_save_CFLAGS"
10850fi
10851
10852found="no"
10853
10854	if test $found = "no" ; then
10855		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10856			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10857		fi
10858
10859		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10860			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10861		fi
10862
10863		CFLAGS="$CFLAGS -Werror"
10864
10865		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10866printf %s "checking if $CC supports -Werror... " >&6; }
10867		cacheid=xorg_cv_cc_flag__Werror
10868		if eval test \${$cacheid+y}
10869then :
10870  printf %s "(cached) " >&6
10871else $as_nop
10872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10873/* end confdefs.h.  */
10874int i;
10875int
10876main (void)
10877{
10878
10879  ;
10880  return 0;
10881}
10882_ACEOF
10883if ac_fn_c_try_link "$LINENO"
10884then :
10885  eval $cacheid=yes
10886else $as_nop
10887  eval $cacheid=no
10888fi
10889rm -f core conftest.err conftest.$ac_objext conftest.beam \
10890    conftest$ac_exeext conftest.$ac_ext
10891fi
10892
10893
10894		CFLAGS="$xorg_testset_save_CFLAGS"
10895
10896		eval supported=\$$cacheid
10897		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10898printf "%s\n" "$supported" >&6; }
10899		if test "$supported" = "yes" ; then
10900			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10901			found="yes"
10902		fi
10903	fi
10904
10905	if test $found = "no" ; then
10906		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10907			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10908		fi
10909
10910		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10911			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10912		fi
10913
10914		CFLAGS="$CFLAGS -errwarn"
10915
10916		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10917printf %s "checking if $CC supports -errwarn... " >&6; }
10918		cacheid=xorg_cv_cc_flag__errwarn
10919		if eval test \${$cacheid+y}
10920then :
10921  printf %s "(cached) " >&6
10922else $as_nop
10923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10924/* end confdefs.h.  */
10925int i;
10926int
10927main (void)
10928{
10929
10930  ;
10931  return 0;
10932}
10933_ACEOF
10934if ac_fn_c_try_link "$LINENO"
10935then :
10936  eval $cacheid=yes
10937else $as_nop
10938  eval $cacheid=no
10939fi
10940rm -f core conftest.err conftest.$ac_objext conftest.beam \
10941    conftest$ac_exeext conftest.$ac_ext
10942fi
10943
10944
10945		CFLAGS="$xorg_testset_save_CFLAGS"
10946
10947		eval supported=\$$cacheid
10948		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10949printf "%s\n" "$supported" >&6; }
10950		if test "$supported" = "yes" ; then
10951			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10952			found="yes"
10953		fi
10954	fi
10955
10956
10957
10958# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10959# activate it with -Werror, so we add it here explicitly.
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973xorg_testset_save_CFLAGS="$CFLAGS"
10974
10975if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10976	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10977	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10978printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10979if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10980then :
10981  printf %s "(cached) " >&6
10982else $as_nop
10983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10984/* end confdefs.h.  */
10985int i;
10986_ACEOF
10987if ac_fn_c_try_compile "$LINENO"
10988then :
10989  xorg_cv_cc_flag_unknown_warning_option=yes
10990else $as_nop
10991  xorg_cv_cc_flag_unknown_warning_option=no
10992fi
10993rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10994fi
10995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10996printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10997	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10998	CFLAGS="$xorg_testset_save_CFLAGS"
10999fi
11000
11001if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11002	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11003		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11004	fi
11005	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11006	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11007printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11008if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11009then :
11010  printf %s "(cached) " >&6
11011else $as_nop
11012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11013/* end confdefs.h.  */
11014int i;
11015_ACEOF
11016if ac_fn_c_try_compile "$LINENO"
11017then :
11018  xorg_cv_cc_flag_unused_command_line_argument=yes
11019else $as_nop
11020  xorg_cv_cc_flag_unused_command_line_argument=no
11021fi
11022rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11023fi
11024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11025printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11026	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11027	CFLAGS="$xorg_testset_save_CFLAGS"
11028fi
11029
11030found="no"
11031
11032	if test $found = "no" ; then
11033		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11034			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11035		fi
11036
11037		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11038			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11039		fi
11040
11041		CFLAGS="$CFLAGS -Werror=attributes"
11042
11043		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11044printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11045		cacheid=xorg_cv_cc_flag__Werror_attributes
11046		if eval test \${$cacheid+y}
11047then :
11048  printf %s "(cached) " >&6
11049else $as_nop
11050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11051/* end confdefs.h.  */
11052int i;
11053int
11054main (void)
11055{
11056
11057  ;
11058  return 0;
11059}
11060_ACEOF
11061if ac_fn_c_try_link "$LINENO"
11062then :
11063  eval $cacheid=yes
11064else $as_nop
11065  eval $cacheid=no
11066fi
11067rm -f core conftest.err conftest.$ac_objext conftest.beam \
11068    conftest$ac_exeext conftest.$ac_ext
11069fi
11070
11071
11072		CFLAGS="$xorg_testset_save_CFLAGS"
11073
11074		eval supported=\$$cacheid
11075		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11076printf "%s\n" "$supported" >&6; }
11077		if test "$supported" = "yes" ; then
11078			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11079			found="yes"
11080		fi
11081	fi
11082
11083
11084
11085if test "x$STRICT_COMPILE" = "xyes"; then
11086    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11087    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11088fi
11089
11090
11091
11092
11093
11094
11095cat >>confdefs.h <<_ACEOF
11096#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11097_ACEOF
11098
11099	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11100	if test "x$PVM" = "x"; then
11101		PVM="0"
11102	fi
11103
11104printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11105
11106	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11107	if test "x$PVP" = "x"; then
11108		PVP="0"
11109	fi
11110
11111printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11112
11113
11114
11115CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11116mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11117|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11118touch \$(top_srcdir)/ChangeLog; \
11119echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11120
11121
11122
11123
11124macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11125INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11126mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11127|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11128touch \$(top_srcdir)/INSTALL; \
11129echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11130
11131
11132
11133
11134
11135
11136case $host_os in
11137    solaris*)
11138        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11139        # check for a man page file found in later versions that use
11140        # traditional section numbers instead
11141        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11142printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11143if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11144then :
11145  printf %s "(cached) " >&6
11146else $as_nop
11147  test "$cross_compiling" = yes &&
11148  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11149if test -r "/usr/share/man/man7/attributes.7"; then
11150  ac_cv_file__usr_share_man_man7_attributes_7=yes
11151else
11152  ac_cv_file__usr_share_man_man7_attributes_7=no
11153fi
11154fi
11155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11156printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11157if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11158then :
11159  SYSV_MAN_SECTIONS=false
11160else $as_nop
11161  SYSV_MAN_SECTIONS=true
11162fi
11163
11164        ;;
11165    *) SYSV_MAN_SECTIONS=false ;;
11166esac
11167
11168if test x$APP_MAN_SUFFIX = x    ; then
11169    APP_MAN_SUFFIX=1
11170fi
11171if test x$APP_MAN_DIR = x    ; then
11172    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11173fi
11174
11175if test x$LIB_MAN_SUFFIX = x    ; then
11176    LIB_MAN_SUFFIX=3
11177fi
11178if test x$LIB_MAN_DIR = x    ; then
11179    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11180fi
11181
11182if test x$FILE_MAN_SUFFIX = x    ; then
11183    case $SYSV_MAN_SECTIONS in
11184	true)				FILE_MAN_SUFFIX=4  ;;
11185	*)				FILE_MAN_SUFFIX=5  ;;
11186    esac
11187fi
11188if test x$FILE_MAN_DIR = x    ; then
11189    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11190fi
11191
11192if test x$MISC_MAN_SUFFIX = x    ; then
11193    case $SYSV_MAN_SECTIONS in
11194	true)				MISC_MAN_SUFFIX=5  ;;
11195	*)				MISC_MAN_SUFFIX=7  ;;
11196    esac
11197fi
11198if test x$MISC_MAN_DIR = x    ; then
11199    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11200fi
11201
11202if test x$DRIVER_MAN_SUFFIX = x    ; then
11203    case $SYSV_MAN_SECTIONS in
11204	true)				DRIVER_MAN_SUFFIX=7  ;;
11205	*)				DRIVER_MAN_SUFFIX=4  ;;
11206    esac
11207fi
11208if test x$DRIVER_MAN_DIR = x    ; then
11209    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11210fi
11211
11212if test x$ADMIN_MAN_SUFFIX = x    ; then
11213    case $SYSV_MAN_SECTIONS in
11214	true)				ADMIN_MAN_SUFFIX=1m ;;
11215	*)				ADMIN_MAN_SUFFIX=8  ;;
11216    esac
11217fi
11218if test x$ADMIN_MAN_DIR = x    ; then
11219    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11220fi
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236XORG_MAN_PAGE="X Version 11"
11237
11238MAN_SUBSTS="\
11239	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11240	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11241	-e 's|__xservername__|Xorg|g' \
11242	-e 's|__xconfigfile__|xorg.conf|g' \
11243	-e 's|__projectroot__|\$(prefix)|g' \
11244	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11245	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11246	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11247	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11248	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11249	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11250	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11251
11252
11253
11254# Check whether --enable-silent-rules was given.
11255if test ${enable_silent_rules+y}
11256then :
11257  enableval=$enable_silent_rules;
11258fi
11259
11260case $enable_silent_rules in # (((
11261  yes) AM_DEFAULT_VERBOSITY=0;;
11262   no) AM_DEFAULT_VERBOSITY=1;;
11263    *) AM_DEFAULT_VERBOSITY=0;;
11264esac
11265am_make=${MAKE-make}
11266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11267printf %s "checking whether $am_make supports nested variables... " >&6; }
11268if test ${am_cv_make_support_nested_variables+y}
11269then :
11270  printf %s "(cached) " >&6
11271else $as_nop
11272  if printf "%s\n" 'TRUE=$(BAR$(V))
11273BAR0=false
11274BAR1=true
11275V=1
11276am__doit:
11277	@$(TRUE)
11278.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11279  am_cv_make_support_nested_variables=yes
11280else
11281  am_cv_make_support_nested_variables=no
11282fi
11283fi
11284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11285printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11286if test $am_cv_make_support_nested_variables = yes; then
11287    AM_V='$(V)'
11288  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11289else
11290  AM_V=$AM_DEFAULT_VERBOSITY
11291  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11292fi
11293AM_BACKSLASH='\'
11294
11295
11296
11297ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
11298if test "x$ac_cv_func_strcasecmp" = xyes
11299then :
11300  printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
11301
11302fi
11303
11304
11305# Checks for pkg-config packages
11306
11307pkg_failed=no
11308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XREFRESH" >&5
11309printf %s "checking for XREFRESH... " >&6; }
11310
11311if test -n "$XREFRESH_CFLAGS"; then
11312    pkg_cv_XREFRESH_CFLAGS="$XREFRESH_CFLAGS"
11313 elif test -n "$PKG_CONFIG"; then
11314    if test -n "$PKG_CONFIG" && \
11315    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25\""; } >&5
11316  ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25") 2>&5
11317  ac_status=$?
11318  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11319  test $ac_status = 0; }; then
11320  pkg_cv_XREFRESH_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.25" 2>/dev/null`
11321		      test "x$?" != "x0" && pkg_failed=yes
11322else
11323  pkg_failed=yes
11324fi
11325 else
11326    pkg_failed=untried
11327fi
11328if test -n "$XREFRESH_LIBS"; then
11329    pkg_cv_XREFRESH_LIBS="$XREFRESH_LIBS"
11330 elif test -n "$PKG_CONFIG"; then
11331    if test -n "$PKG_CONFIG" && \
11332    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25\""; } >&5
11333  ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25") 2>&5
11334  ac_status=$?
11335  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11336  test $ac_status = 0; }; then
11337  pkg_cv_XREFRESH_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.25" 2>/dev/null`
11338		      test "x$?" != "x0" && pkg_failed=yes
11339else
11340  pkg_failed=yes
11341fi
11342 else
11343    pkg_failed=untried
11344fi
11345
11346
11347
11348if test $pkg_failed = yes; then
11349   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11350printf "%s\n" "no" >&6; }
11351
11352if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11353        _pkg_short_errors_supported=yes
11354else
11355        _pkg_short_errors_supported=no
11356fi
11357        if test $_pkg_short_errors_supported = yes; then
11358	        XREFRESH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xproto >= 7.0.25" 2>&1`
11359        else
11360	        XREFRESH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xproto >= 7.0.25" 2>&1`
11361        fi
11362	# Put the nasty error message in config.log where it belongs
11363	echo "$XREFRESH_PKG_ERRORS" >&5
11364
11365	as_fn_error $? "Package requirements (x11 xproto >= 7.0.25) were not met:
11366
11367$XREFRESH_PKG_ERRORS
11368
11369Consider adjusting the PKG_CONFIG_PATH environment variable if you
11370installed software in a non-standard prefix.
11371
11372Alternatively, you may set the environment variables XREFRESH_CFLAGS
11373and XREFRESH_LIBS to avoid the need to call pkg-config.
11374See the pkg-config man page for more details." "$LINENO" 5
11375elif test $pkg_failed = untried; then
11376     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11377printf "%s\n" "no" >&6; }
11378	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11379printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11380as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11381is in your PATH or set the PKG_CONFIG environment variable to the full
11382path to pkg-config.
11383
11384Alternatively, you may set the environment variables XREFRESH_CFLAGS
11385and XREFRESH_LIBS to avoid the need to call pkg-config.
11386See the pkg-config man page for more details.
11387
11388To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11389See \`config.log' for more details" "$LINENO" 5; }
11390else
11391	XREFRESH_CFLAGS=$pkg_cv_XREFRESH_CFLAGS
11392	XREFRESH_LIBS=$pkg_cv_XREFRESH_LIBS
11393        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11394printf "%s\n" "yes" >&6; }
11395
11396fi
11397
11398ac_config_files="$ac_config_files Makefile man/Makefile"
11399
11400cat >confcache <<\_ACEOF
11401# This file is a shell script that caches the results of configure
11402# tests run on this system so they can be shared between configure
11403# scripts and configure runs, see configure's option --config-cache.
11404# It is not useful on other systems.  If it contains results you don't
11405# want to keep, you may remove or edit it.
11406#
11407# config.status only pays attention to the cache file if you give it
11408# the --recheck option to rerun configure.
11409#
11410# `ac_cv_env_foo' variables (set or unset) will be overridden when
11411# loading this file, other *unset* `ac_cv_foo' will be assigned the
11412# following values.
11413
11414_ACEOF
11415
11416# The following way of writing the cache mishandles newlines in values,
11417# but we know of no workaround that is simple, portable, and efficient.
11418# So, we kill variables containing newlines.
11419# Ultrix sh set writes to stderr and can't be redirected directly,
11420# and sets the high bit in the cache file unless we assign to the vars.
11421(
11422  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11423    eval ac_val=\$$ac_var
11424    case $ac_val in #(
11425    *${as_nl}*)
11426      case $ac_var in #(
11427      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11428printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11429      esac
11430      case $ac_var in #(
11431      _ | IFS | as_nl) ;; #(
11432      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11433      *) { eval $ac_var=; unset $ac_var;} ;;
11434      esac ;;
11435    esac
11436  done
11437
11438  (set) 2>&1 |
11439    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11440    *${as_nl}ac_space=\ *)
11441      # `set' does not quote correctly, so add quotes: double-quote
11442      # substitution turns \\\\ into \\, and sed turns \\ into \.
11443      sed -n \
11444	"s/'/'\\\\''/g;
11445	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11446      ;; #(
11447    *)
11448      # `set' quotes correctly as required by POSIX, so do not add quotes.
11449      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11450      ;;
11451    esac |
11452    sort
11453) |
11454  sed '
11455     /^ac_cv_env_/b end
11456     t clear
11457     :clear
11458     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11459     t end
11460     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11461     :end' >>confcache
11462if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11463  if test -w "$cache_file"; then
11464    if test "x$cache_file" != "x/dev/null"; then
11465      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11466printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11467      if test ! -f "$cache_file" || test -h "$cache_file"; then
11468	cat confcache >"$cache_file"
11469      else
11470        case $cache_file in #(
11471        */* | ?:*)
11472	  mv -f confcache "$cache_file"$$ &&
11473	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11474        *)
11475	  mv -f confcache "$cache_file" ;;
11476	esac
11477      fi
11478    fi
11479  else
11480    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11481printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11482  fi
11483fi
11484rm -f confcache
11485
11486test "x$prefix" = xNONE && prefix=$ac_default_prefix
11487# Let make expand exec_prefix.
11488test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11489
11490DEFS=-DHAVE_CONFIG_H
11491
11492ac_libobjs=
11493ac_ltlibobjs=
11494U=
11495for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11496  # 1. Remove the extension, and $U if already installed.
11497  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11498  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11499  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11500  #    will be set to the directory where LIBOBJS objects are built.
11501  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11502  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11503done
11504LIBOBJS=$ac_libobjs
11505
11506LTLIBOBJS=$ac_ltlibobjs
11507
11508
11509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11510printf %s "checking that generated files are newer than configure... " >&6; }
11511   if test -n "$am_sleep_pid"; then
11512     # Hide warnings about reused PIDs.
11513     wait $am_sleep_pid 2>/dev/null
11514   fi
11515   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11516printf "%s\n" "done" >&6; }
11517if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11518  as_fn_error $? "conditional \"AMDEP\" was never defined.
11519Usually this means the macro was only invoked conditionally." "$LINENO" 5
11520fi
11521if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11522  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11523Usually this means the macro was only invoked conditionally." "$LINENO" 5
11524fi
11525 if test -n "$EXEEXT"; then
11526  am__EXEEXT_TRUE=
11527  am__EXEEXT_FALSE='#'
11528else
11529  am__EXEEXT_TRUE='#'
11530  am__EXEEXT_FALSE=
11531fi
11532
11533
11534: "${CONFIG_STATUS=./config.status}"
11535ac_write_fail=0
11536ac_clean_files_save=$ac_clean_files
11537ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11539printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11540as_write_fail=0
11541cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11542#! $SHELL
11543# Generated by $as_me.
11544# Run this file to recreate the current configuration.
11545# Compiler output produced by configure, useful for debugging
11546# configure, is in config.log if it exists.
11547
11548debug=false
11549ac_cs_recheck=false
11550ac_cs_silent=false
11551
11552SHELL=\${CONFIG_SHELL-$SHELL}
11553export SHELL
11554_ASEOF
11555cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11556## -------------------- ##
11557## M4sh Initialization. ##
11558## -------------------- ##
11559
11560# Be more Bourne compatible
11561DUALCASE=1; export DUALCASE # for MKS sh
11562as_nop=:
11563if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11564then :
11565  emulate sh
11566  NULLCMD=:
11567  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11568  # is contrary to our usage.  Disable this feature.
11569  alias -g '${1+"$@"}'='"$@"'
11570  setopt NO_GLOB_SUBST
11571else $as_nop
11572  case `(set -o) 2>/dev/null` in #(
11573  *posix*) :
11574    set -o posix ;; #(
11575  *) :
11576     ;;
11577esac
11578fi
11579
11580
11581
11582# Reset variables that may have inherited troublesome values from
11583# the environment.
11584
11585# IFS needs to be set, to space, tab, and newline, in precisely that order.
11586# (If _AS_PATH_WALK were called with IFS unset, it would have the
11587# side effect of setting IFS to empty, thus disabling word splitting.)
11588# Quoting is to prevent editors from complaining about space-tab.
11589as_nl='
11590'
11591export as_nl
11592IFS=" ""	$as_nl"
11593
11594PS1='$ '
11595PS2='> '
11596PS4='+ '
11597
11598# Ensure predictable behavior from utilities with locale-dependent output.
11599LC_ALL=C
11600export LC_ALL
11601LANGUAGE=C
11602export LANGUAGE
11603
11604# We cannot yet rely on "unset" to work, but we need these variables
11605# to be unset--not just set to an empty or harmless value--now, to
11606# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
11607# also avoids known problems related to "unset" and subshell syntax
11608# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11609for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11610do eval test \${$as_var+y} \
11611  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11612done
11613
11614# Ensure that fds 0, 1, and 2 are open.
11615if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11616if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11617if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
11618
11619# The user is always right.
11620if ${PATH_SEPARATOR+false} :; then
11621  PATH_SEPARATOR=:
11622  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11623    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11624      PATH_SEPARATOR=';'
11625  }
11626fi
11627
11628
11629# Find who we are.  Look in the path if we contain no directory separator.
11630as_myself=
11631case $0 in #((
11632  *[\\/]* ) as_myself=$0 ;;
11633  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11634for as_dir in $PATH
11635do
11636  IFS=$as_save_IFS
11637  case $as_dir in #(((
11638    '') as_dir=./ ;;
11639    */) ;;
11640    *) as_dir=$as_dir/ ;;
11641  esac
11642    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11643  done
11644IFS=$as_save_IFS
11645
11646     ;;
11647esac
11648# We did not find ourselves, most probably we were run as `sh COMMAND'
11649# in which case we are not to be found in the path.
11650if test "x$as_myself" = x; then
11651  as_myself=$0
11652fi
11653if test ! -f "$as_myself"; then
11654  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11655  exit 1
11656fi
11657
11658
11659
11660# as_fn_error STATUS ERROR [LINENO LOG_FD]
11661# ----------------------------------------
11662# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11663# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11664# script with STATUS, using 1 if that was 0.
11665as_fn_error ()
11666{
11667  as_status=$1; test $as_status -eq 0 && as_status=1
11668  if test "$4"; then
11669    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11670    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11671  fi
11672  printf "%s\n" "$as_me: error: $2" >&2
11673  as_fn_exit $as_status
11674} # as_fn_error
11675
11676
11677
11678# as_fn_set_status STATUS
11679# -----------------------
11680# Set $? to STATUS, without forking.
11681as_fn_set_status ()
11682{
11683  return $1
11684} # as_fn_set_status
11685
11686# as_fn_exit STATUS
11687# -----------------
11688# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11689as_fn_exit ()
11690{
11691  set +e
11692  as_fn_set_status $1
11693  exit $1
11694} # as_fn_exit
11695
11696# as_fn_unset VAR
11697# ---------------
11698# Portably unset VAR.
11699as_fn_unset ()
11700{
11701  { eval $1=; unset $1;}
11702}
11703as_unset=as_fn_unset
11704
11705# as_fn_append VAR VALUE
11706# ----------------------
11707# Append the text in VALUE to the end of the definition contained in VAR. Take
11708# advantage of any shell optimizations that allow amortized linear growth over
11709# repeated appends, instead of the typical quadratic growth present in naive
11710# implementations.
11711if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11712then :
11713  eval 'as_fn_append ()
11714  {
11715    eval $1+=\$2
11716  }'
11717else $as_nop
11718  as_fn_append ()
11719  {
11720    eval $1=\$$1\$2
11721  }
11722fi # as_fn_append
11723
11724# as_fn_arith ARG...
11725# ------------------
11726# Perform arithmetic evaluation on the ARGs, and store the result in the
11727# global $as_val. Take advantage of shells that can avoid forks. The arguments
11728# must be portable across $(()) and expr.
11729if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11730then :
11731  eval 'as_fn_arith ()
11732  {
11733    as_val=$(( $* ))
11734  }'
11735else $as_nop
11736  as_fn_arith ()
11737  {
11738    as_val=`expr "$@" || test $? -eq 1`
11739  }
11740fi # as_fn_arith
11741
11742
11743if expr a : '\(a\)' >/dev/null 2>&1 &&
11744   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11745  as_expr=expr
11746else
11747  as_expr=false
11748fi
11749
11750if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11751  as_basename=basename
11752else
11753  as_basename=false
11754fi
11755
11756if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11757  as_dirname=dirname
11758else
11759  as_dirname=false
11760fi
11761
11762as_me=`$as_basename -- "$0" ||
11763$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11764	 X"$0" : 'X\(//\)$' \| \
11765	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11766printf "%s\n" X/"$0" |
11767    sed '/^.*\/\([^/][^/]*\)\/*$/{
11768	    s//\1/
11769	    q
11770	  }
11771	  /^X\/\(\/\/\)$/{
11772	    s//\1/
11773	    q
11774	  }
11775	  /^X\/\(\/\).*/{
11776	    s//\1/
11777	    q
11778	  }
11779	  s/.*/./; q'`
11780
11781# Avoid depending upon Character Ranges.
11782as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11783as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11784as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11785as_cr_digits='0123456789'
11786as_cr_alnum=$as_cr_Letters$as_cr_digits
11787
11788
11789# Determine whether it's possible to make 'echo' print without a newline.
11790# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11791# for compatibility with existing Makefiles.
11792ECHO_C= ECHO_N= ECHO_T=
11793case `echo -n x` in #(((((
11794-n*)
11795  case `echo 'xy\c'` in
11796  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11797  xy)  ECHO_C='\c';;
11798  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11799       ECHO_T='	';;
11800  esac;;
11801*)
11802  ECHO_N='-n';;
11803esac
11804
11805# For backward compatibility with old third-party macros, we provide
11806# the shell variables $as_echo and $as_echo_n.  New code should use
11807# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11808as_echo='printf %s\n'
11809as_echo_n='printf %s'
11810
11811rm -f conf$$ conf$$.exe conf$$.file
11812if test -d conf$$.dir; then
11813  rm -f conf$$.dir/conf$$.file
11814else
11815  rm -f conf$$.dir
11816  mkdir conf$$.dir 2>/dev/null
11817fi
11818if (echo >conf$$.file) 2>/dev/null; then
11819  if ln -s conf$$.file conf$$ 2>/dev/null; then
11820    as_ln_s='ln -s'
11821    # ... but there are two gotchas:
11822    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11823    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11824    # In both cases, we have to default to `cp -pR'.
11825    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11826      as_ln_s='cp -pR'
11827  elif ln conf$$.file conf$$ 2>/dev/null; then
11828    as_ln_s=ln
11829  else
11830    as_ln_s='cp -pR'
11831  fi
11832else
11833  as_ln_s='cp -pR'
11834fi
11835rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11836rmdir conf$$.dir 2>/dev/null
11837
11838
11839# as_fn_mkdir_p
11840# -------------
11841# Create "$as_dir" as a directory, including parents if necessary.
11842as_fn_mkdir_p ()
11843{
11844
11845  case $as_dir in #(
11846  -*) as_dir=./$as_dir;;
11847  esac
11848  test -d "$as_dir" || eval $as_mkdir_p || {
11849    as_dirs=
11850    while :; do
11851      case $as_dir in #(
11852      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11853      *) as_qdir=$as_dir;;
11854      esac
11855      as_dirs="'$as_qdir' $as_dirs"
11856      as_dir=`$as_dirname -- "$as_dir" ||
11857$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11858	 X"$as_dir" : 'X\(//\)[^/]' \| \
11859	 X"$as_dir" : 'X\(//\)$' \| \
11860	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11861printf "%s\n" X"$as_dir" |
11862    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11863	    s//\1/
11864	    q
11865	  }
11866	  /^X\(\/\/\)[^/].*/{
11867	    s//\1/
11868	    q
11869	  }
11870	  /^X\(\/\/\)$/{
11871	    s//\1/
11872	    q
11873	  }
11874	  /^X\(\/\).*/{
11875	    s//\1/
11876	    q
11877	  }
11878	  s/.*/./; q'`
11879      test -d "$as_dir" && break
11880    done
11881    test -z "$as_dirs" || eval "mkdir $as_dirs"
11882  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11883
11884
11885} # as_fn_mkdir_p
11886if mkdir -p . 2>/dev/null; then
11887  as_mkdir_p='mkdir -p "$as_dir"'
11888else
11889  test -d ./-p && rmdir ./-p
11890  as_mkdir_p=false
11891fi
11892
11893
11894# as_fn_executable_p FILE
11895# -----------------------
11896# Test if FILE is an executable regular file.
11897as_fn_executable_p ()
11898{
11899  test -f "$1" && test -x "$1"
11900} # as_fn_executable_p
11901as_test_x='test -x'
11902as_executable_p=as_fn_executable_p
11903
11904# Sed expression to map a string onto a valid CPP name.
11905as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11906
11907# Sed expression to map a string onto a valid variable name.
11908as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11909
11910
11911exec 6>&1
11912## ----------------------------------- ##
11913## Main body of $CONFIG_STATUS script. ##
11914## ----------------------------------- ##
11915_ASEOF
11916test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11917
11918cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11919# Save the log message, to keep $0 and so on meaningful, and to
11920# report actual input values of CONFIG_FILES etc. instead of their
11921# values after options handling.
11922ac_log="
11923This file was extended by xrefresh $as_me 1.0.7, which was
11924generated by GNU Autoconf 2.71.  Invocation command line was
11925
11926  CONFIG_FILES    = $CONFIG_FILES
11927  CONFIG_HEADERS  = $CONFIG_HEADERS
11928  CONFIG_LINKS    = $CONFIG_LINKS
11929  CONFIG_COMMANDS = $CONFIG_COMMANDS
11930  $ $0 $@
11931
11932on `(hostname || uname -n) 2>/dev/null | sed 1q`
11933"
11934
11935_ACEOF
11936
11937case $ac_config_files in *"
11938"*) set x $ac_config_files; shift; ac_config_files=$*;;
11939esac
11940
11941case $ac_config_headers in *"
11942"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11943esac
11944
11945
11946cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11947# Files that config.status was made for.
11948config_files="$ac_config_files"
11949config_headers="$ac_config_headers"
11950config_commands="$ac_config_commands"
11951
11952_ACEOF
11953
11954cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11955ac_cs_usage="\
11956\`$as_me' instantiates files and other configuration actions
11957from templates according to the current configuration.  Unless the files
11958and actions are specified as TAGs, all are instantiated by default.
11959
11960Usage: $0 [OPTION]... [TAG]...
11961
11962  -h, --help       print this help, then exit
11963  -V, --version    print version number and configuration settings, then exit
11964      --config     print configuration, then exit
11965  -q, --quiet, --silent
11966                   do not print progress messages
11967  -d, --debug      don't remove temporary files
11968      --recheck    update $as_me by reconfiguring in the same conditions
11969      --file=FILE[:TEMPLATE]
11970                   instantiate the configuration file FILE
11971      --header=FILE[:TEMPLATE]
11972                   instantiate the configuration header FILE
11973
11974Configuration files:
11975$config_files
11976
11977Configuration headers:
11978$config_headers
11979
11980Configuration commands:
11981$config_commands
11982
11983Report bugs to <https://gitlab.freedesktop.org/xorg/app/xrefresh/issues>."
11984
11985_ACEOF
11986ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
11987ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
11988cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11989ac_cs_config='$ac_cs_config_escaped'
11990ac_cs_version="\\
11991xrefresh config.status 1.0.7
11992configured by $0, generated by GNU Autoconf 2.71,
11993  with options \\"\$ac_cs_config\\"
11994
11995Copyright (C) 2021 Free Software Foundation, Inc.
11996This config.status script is free software; the Free Software Foundation
11997gives unlimited permission to copy, distribute and modify it."
11998
11999ac_pwd='$ac_pwd'
12000srcdir='$srcdir'
12001INSTALL='$INSTALL'
12002MKDIR_P='$MKDIR_P'
12003AWK='$AWK'
12004test -n "\$AWK" || AWK=awk
12005_ACEOF
12006
12007cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12008# The default lists apply if the user does not specify any file.
12009ac_need_defaults=:
12010while test $# != 0
12011do
12012  case $1 in
12013  --*=?*)
12014    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12015    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12016    ac_shift=:
12017    ;;
12018  --*=)
12019    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12020    ac_optarg=
12021    ac_shift=:
12022    ;;
12023  *)
12024    ac_option=$1
12025    ac_optarg=$2
12026    ac_shift=shift
12027    ;;
12028  esac
12029
12030  case $ac_option in
12031  # Handling of the options.
12032  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12033    ac_cs_recheck=: ;;
12034  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12035    printf "%s\n" "$ac_cs_version"; exit ;;
12036  --config | --confi | --conf | --con | --co | --c )
12037    printf "%s\n" "$ac_cs_config"; exit ;;
12038  --debug | --debu | --deb | --de | --d | -d )
12039    debug=: ;;
12040  --file | --fil | --fi | --f )
12041    $ac_shift
12042    case $ac_optarg in
12043    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12044    '') as_fn_error $? "missing file argument" ;;
12045    esac
12046    as_fn_append CONFIG_FILES " '$ac_optarg'"
12047    ac_need_defaults=false;;
12048  --header | --heade | --head | --hea )
12049    $ac_shift
12050    case $ac_optarg in
12051    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12052    esac
12053    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12054    ac_need_defaults=false;;
12055  --he | --h)
12056    # Conflict between --help and --header
12057    as_fn_error $? "ambiguous option: \`$1'
12058Try \`$0 --help' for more information.";;
12059  --help | --hel | -h )
12060    printf "%s\n" "$ac_cs_usage"; exit ;;
12061  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12062  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12063    ac_cs_silent=: ;;
12064
12065  # This is an error.
12066  -*) as_fn_error $? "unrecognized option: \`$1'
12067Try \`$0 --help' for more information." ;;
12068
12069  *) as_fn_append ac_config_targets " $1"
12070     ac_need_defaults=false ;;
12071
12072  esac
12073  shift
12074done
12075
12076ac_configure_extra_args=
12077
12078if $ac_cs_silent; then
12079  exec 6>/dev/null
12080  ac_configure_extra_args="$ac_configure_extra_args --silent"
12081fi
12082
12083_ACEOF
12084cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12085if \$ac_cs_recheck; then
12086  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12087  shift
12088  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12089  CONFIG_SHELL='$SHELL'
12090  export CONFIG_SHELL
12091  exec "\$@"
12092fi
12093
12094_ACEOF
12095cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12096exec 5>>config.log
12097{
12098  echo
12099  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12100## Running $as_me. ##
12101_ASBOX
12102  printf "%s\n" "$ac_log"
12103} >&5
12104
12105_ACEOF
12106cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12107#
12108# INIT-COMMANDS
12109#
12110AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12111
12112_ACEOF
12113
12114cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12115
12116# Handling of arguments.
12117for ac_config_target in $ac_config_targets
12118do
12119  case $ac_config_target in
12120    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12121    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12122    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12123    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12124
12125  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12126  esac
12127done
12128
12129
12130# If the user did not use the arguments to specify the items to instantiate,
12131# then the envvar interface is used.  Set only those that are not.
12132# We use the long form for the default assignment because of an extremely
12133# bizarre bug on SunOS 4.1.3.
12134if $ac_need_defaults; then
12135  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12136  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12137  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12138fi
12139
12140# Have a temporary directory for convenience.  Make it in the build tree
12141# simply because there is no reason against having it here, and in addition,
12142# creating and moving files from /tmp can sometimes cause problems.
12143# Hook for its removal unless debugging.
12144# Note that there is a small window in which the directory will not be cleaned:
12145# after its creation but before its name has been assigned to `$tmp'.
12146$debug ||
12147{
12148  tmp= ac_tmp=
12149  trap 'exit_status=$?
12150  : "${ac_tmp:=$tmp}"
12151  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12152' 0
12153  trap 'as_fn_exit 1' 1 2 13 15
12154}
12155# Create a (secure) tmp directory for tmp files.
12156
12157{
12158  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12159  test -d "$tmp"
12160}  ||
12161{
12162  tmp=./conf$$-$RANDOM
12163  (umask 077 && mkdir "$tmp")
12164} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12165ac_tmp=$tmp
12166
12167# Set up the scripts for CONFIG_FILES section.
12168# No need to generate them if there are no CONFIG_FILES.
12169# This happens for instance with `./config.status config.h'.
12170if test -n "$CONFIG_FILES"; then
12171
12172
12173ac_cr=`echo X | tr X '\015'`
12174# On cygwin, bash can eat \r inside `` if the user requested igncr.
12175# But we know of no other shell where ac_cr would be empty at this
12176# point, so we can use a bashism as a fallback.
12177if test "x$ac_cr" = x; then
12178  eval ac_cr=\$\'\\r\'
12179fi
12180ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12181if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12182  ac_cs_awk_cr='\\r'
12183else
12184  ac_cs_awk_cr=$ac_cr
12185fi
12186
12187echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12188_ACEOF
12189
12190
12191{
12192  echo "cat >conf$$subs.awk <<_ACEOF" &&
12193  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12194  echo "_ACEOF"
12195} >conf$$subs.sh ||
12196  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12197ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12198ac_delim='%!_!# '
12199for ac_last_try in false false false false false :; do
12200  . ./conf$$subs.sh ||
12201    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12202
12203  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12204  if test $ac_delim_n = $ac_delim_num; then
12205    break
12206  elif $ac_last_try; then
12207    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12208  else
12209    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12210  fi
12211done
12212rm -f conf$$subs.sh
12213
12214cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12215cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12216_ACEOF
12217sed -n '
12218h
12219s/^/S["/; s/!.*/"]=/
12220p
12221g
12222s/^[^!]*!//
12223:repl
12224t repl
12225s/'"$ac_delim"'$//
12226t delim
12227:nl
12228h
12229s/\(.\{148\}\)..*/\1/
12230t more1
12231s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12232p
12233n
12234b repl
12235:more1
12236s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12237p
12238g
12239s/.\{148\}//
12240t nl
12241:delim
12242h
12243s/\(.\{148\}\)..*/\1/
12244t more2
12245s/["\\]/\\&/g; s/^/"/; s/$/"/
12246p
12247b
12248:more2
12249s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12250p
12251g
12252s/.\{148\}//
12253t delim
12254' <conf$$subs.awk | sed '
12255/^[^""]/{
12256  N
12257  s/\n//
12258}
12259' >>$CONFIG_STATUS || ac_write_fail=1
12260rm -f conf$$subs.awk
12261cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12262_ACAWK
12263cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12264  for (key in S) S_is_set[key] = 1
12265  FS = ""
12266
12267}
12268{
12269  line = $ 0
12270  nfields = split(line, field, "@")
12271  substed = 0
12272  len = length(field[1])
12273  for (i = 2; i < nfields; i++) {
12274    key = field[i]
12275    keylen = length(key)
12276    if (S_is_set[key]) {
12277      value = S[key]
12278      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12279      len += length(value) + length(field[++i])
12280      substed = 1
12281    } else
12282      len += 1 + keylen
12283  }
12284
12285  print line
12286}
12287
12288_ACAWK
12289_ACEOF
12290cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12291if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12292  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12293else
12294  cat
12295fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12296  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12297_ACEOF
12298
12299# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12300# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12301# trailing colons and then remove the whole line if VPATH becomes empty
12302# (actually we leave an empty line to preserve line numbers).
12303if test "x$srcdir" = x.; then
12304  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12305h
12306s///
12307s/^/:/
12308s/[	 ]*$/:/
12309s/:\$(srcdir):/:/g
12310s/:\${srcdir}:/:/g
12311s/:@srcdir@:/:/g
12312s/^:*//
12313s/:*$//
12314x
12315s/\(=[	 ]*\).*/\1/
12316G
12317s/\n//
12318s/^[^=]*=[	 ]*$//
12319}'
12320fi
12321
12322cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12323fi # test -n "$CONFIG_FILES"
12324
12325# Set up the scripts for CONFIG_HEADERS section.
12326# No need to generate them if there are no CONFIG_HEADERS.
12327# This happens for instance with `./config.status Makefile'.
12328if test -n "$CONFIG_HEADERS"; then
12329cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12330BEGIN {
12331_ACEOF
12332
12333# Transform confdefs.h into an awk script `defines.awk', embedded as
12334# here-document in config.status, that substitutes the proper values into
12335# config.h.in to produce config.h.
12336
12337# Create a delimiter string that does not exist in confdefs.h, to ease
12338# handling of long lines.
12339ac_delim='%!_!# '
12340for ac_last_try in false false :; do
12341  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12342  if test -z "$ac_tt"; then
12343    break
12344  elif $ac_last_try; then
12345    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12346  else
12347    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12348  fi
12349done
12350
12351# For the awk script, D is an array of macro values keyed by name,
12352# likewise P contains macro parameters if any.  Preserve backslash
12353# newline sequences.
12354
12355ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12356sed -n '
12357s/.\{148\}/&'"$ac_delim"'/g
12358t rset
12359:rset
12360s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12361t def
12362d
12363:def
12364s/\\$//
12365t bsnl
12366s/["\\]/\\&/g
12367s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12368D["\1"]=" \3"/p
12369s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12370d
12371:bsnl
12372s/["\\]/\\&/g
12373s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12374D["\1"]=" \3\\\\\\n"\\/p
12375t cont
12376s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12377t cont
12378d
12379:cont
12380n
12381s/.\{148\}/&'"$ac_delim"'/g
12382t clear
12383:clear
12384s/\\$//
12385t bsnlc
12386s/["\\]/\\&/g; s/^/"/; s/$/"/p
12387d
12388:bsnlc
12389s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12390b cont
12391' <confdefs.h | sed '
12392s/'"$ac_delim"'/"\\\
12393"/g' >>$CONFIG_STATUS || ac_write_fail=1
12394
12395cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12396  for (key in D) D_is_set[key] = 1
12397  FS = ""
12398}
12399/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12400  line = \$ 0
12401  split(line, arg, " ")
12402  if (arg[1] == "#") {
12403    defundef = arg[2]
12404    mac1 = arg[3]
12405  } else {
12406    defundef = substr(arg[1], 2)
12407    mac1 = arg[2]
12408  }
12409  split(mac1, mac2, "(") #)
12410  macro = mac2[1]
12411  prefix = substr(line, 1, index(line, defundef) - 1)
12412  if (D_is_set[macro]) {
12413    # Preserve the white space surrounding the "#".
12414    print prefix "define", macro P[macro] D[macro]
12415    next
12416  } else {
12417    # Replace #undef with comments.  This is necessary, for example,
12418    # in the case of _POSIX_SOURCE, which is predefined and required
12419    # on some systems where configure will not decide to define it.
12420    if (defundef == "undef") {
12421      print "/*", prefix defundef, macro, "*/"
12422      next
12423    }
12424  }
12425}
12426{ print }
12427_ACAWK
12428_ACEOF
12429cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12430  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12431fi # test -n "$CONFIG_HEADERS"
12432
12433
12434eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12435shift
12436for ac_tag
12437do
12438  case $ac_tag in
12439  :[FHLC]) ac_mode=$ac_tag; continue;;
12440  esac
12441  case $ac_mode$ac_tag in
12442  :[FHL]*:*);;
12443  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12444  :[FH]-) ac_tag=-:-;;
12445  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12446  esac
12447  ac_save_IFS=$IFS
12448  IFS=:
12449  set x $ac_tag
12450  IFS=$ac_save_IFS
12451  shift
12452  ac_file=$1
12453  shift
12454
12455  case $ac_mode in
12456  :L) ac_source=$1;;
12457  :[FH])
12458    ac_file_inputs=
12459    for ac_f
12460    do
12461      case $ac_f in
12462      -) ac_f="$ac_tmp/stdin";;
12463      *) # Look for the file first in the build tree, then in the source tree
12464	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12465	 # because $ac_f cannot contain `:'.
12466	 test -f "$ac_f" ||
12467	   case $ac_f in
12468	   [\\/$]*) false;;
12469	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12470	   esac ||
12471	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12472      esac
12473      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12474      as_fn_append ac_file_inputs " '$ac_f'"
12475    done
12476
12477    # Let's still pretend it is `configure' which instantiates (i.e., don't
12478    # use $as_me), people would be surprised to read:
12479    #    /* config.h.  Generated by config.status.  */
12480    configure_input='Generated from '`
12481	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12482	`' by configure.'
12483    if test x"$ac_file" != x-; then
12484      configure_input="$ac_file.  $configure_input"
12485      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12486printf "%s\n" "$as_me: creating $ac_file" >&6;}
12487    fi
12488    # Neutralize special characters interpreted by sed in replacement strings.
12489    case $configure_input in #(
12490    *\&* | *\|* | *\\* )
12491       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12492       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12493    *) ac_sed_conf_input=$configure_input;;
12494    esac
12495
12496    case $ac_tag in
12497    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12498      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12499    esac
12500    ;;
12501  esac
12502
12503  ac_dir=`$as_dirname -- "$ac_file" ||
12504$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12505	 X"$ac_file" : 'X\(//\)[^/]' \| \
12506	 X"$ac_file" : 'X\(//\)$' \| \
12507	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12508printf "%s\n" X"$ac_file" |
12509    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12510	    s//\1/
12511	    q
12512	  }
12513	  /^X\(\/\/\)[^/].*/{
12514	    s//\1/
12515	    q
12516	  }
12517	  /^X\(\/\/\)$/{
12518	    s//\1/
12519	    q
12520	  }
12521	  /^X\(\/\).*/{
12522	    s//\1/
12523	    q
12524	  }
12525	  s/.*/./; q'`
12526  as_dir="$ac_dir"; as_fn_mkdir_p
12527  ac_builddir=.
12528
12529case "$ac_dir" in
12530.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12531*)
12532  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12533  # A ".." for each directory in $ac_dir_suffix.
12534  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12535  case $ac_top_builddir_sub in
12536  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12537  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12538  esac ;;
12539esac
12540ac_abs_top_builddir=$ac_pwd
12541ac_abs_builddir=$ac_pwd$ac_dir_suffix
12542# for backward compatibility:
12543ac_top_builddir=$ac_top_build_prefix
12544
12545case $srcdir in
12546  .)  # We are building in place.
12547    ac_srcdir=.
12548    ac_top_srcdir=$ac_top_builddir_sub
12549    ac_abs_top_srcdir=$ac_pwd ;;
12550  [\\/]* | ?:[\\/]* )  # Absolute name.
12551    ac_srcdir=$srcdir$ac_dir_suffix;
12552    ac_top_srcdir=$srcdir
12553    ac_abs_top_srcdir=$srcdir ;;
12554  *) # Relative name.
12555    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12556    ac_top_srcdir=$ac_top_build_prefix$srcdir
12557    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12558esac
12559ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12560
12561
12562  case $ac_mode in
12563  :F)
12564  #
12565  # CONFIG_FILE
12566  #
12567
12568  case $INSTALL in
12569  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12570  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12571  esac
12572  ac_MKDIR_P=$MKDIR_P
12573  case $MKDIR_P in
12574  [\\/$]* | ?:[\\/]* ) ;;
12575  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12576  esac
12577_ACEOF
12578
12579cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12580# If the template does not know about datarootdir, expand it.
12581# FIXME: This hack should be removed a few years after 2.60.
12582ac_datarootdir_hack=; ac_datarootdir_seen=
12583ac_sed_dataroot='
12584/datarootdir/ {
12585  p
12586  q
12587}
12588/@datadir@/p
12589/@docdir@/p
12590/@infodir@/p
12591/@localedir@/p
12592/@mandir@/p'
12593case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12594*datarootdir*) ac_datarootdir_seen=yes;;
12595*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12596  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12597printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12598_ACEOF
12599cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12600  ac_datarootdir_hack='
12601  s&@datadir@&$datadir&g
12602  s&@docdir@&$docdir&g
12603  s&@infodir@&$infodir&g
12604  s&@localedir@&$localedir&g
12605  s&@mandir@&$mandir&g
12606  s&\\\${datarootdir}&$datarootdir&g' ;;
12607esac
12608_ACEOF
12609
12610# Neutralize VPATH when `$srcdir' = `.'.
12611# Shell code in configure.ac might set extrasub.
12612# FIXME: do we really want to maintain this feature?
12613cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12614ac_sed_extra="$ac_vpsub
12615$extrasub
12616_ACEOF
12617cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12618:t
12619/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12620s|@configure_input@|$ac_sed_conf_input|;t t
12621s&@top_builddir@&$ac_top_builddir_sub&;t t
12622s&@top_build_prefix@&$ac_top_build_prefix&;t t
12623s&@srcdir@&$ac_srcdir&;t t
12624s&@abs_srcdir@&$ac_abs_srcdir&;t t
12625s&@top_srcdir@&$ac_top_srcdir&;t t
12626s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12627s&@builddir@&$ac_builddir&;t t
12628s&@abs_builddir@&$ac_abs_builddir&;t t
12629s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12630s&@INSTALL@&$ac_INSTALL&;t t
12631s&@MKDIR_P@&$ac_MKDIR_P&;t t
12632$ac_datarootdir_hack
12633"
12634eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12635  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12636
12637test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12638  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12639  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12640      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12641  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12642which seems to be undefined.  Please make sure it is defined" >&5
12643printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12644which seems to be undefined.  Please make sure it is defined" >&2;}
12645
12646  rm -f "$ac_tmp/stdin"
12647  case $ac_file in
12648  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12649  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12650  esac \
12651  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12652 ;;
12653  :H)
12654  #
12655  # CONFIG_HEADER
12656  #
12657  if test x"$ac_file" != x-; then
12658    {
12659      printf "%s\n" "/* $configure_input  */" >&1 \
12660      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12661    } >"$ac_tmp/config.h" \
12662      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12663    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12664      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12665printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12666    else
12667      rm -f "$ac_file"
12668      mv "$ac_tmp/config.h" "$ac_file" \
12669	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12670    fi
12671  else
12672    printf "%s\n" "/* $configure_input  */" >&1 \
12673      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12674      || as_fn_error $? "could not create -" "$LINENO" 5
12675  fi
12676# Compute "$ac_file"'s index in $config_headers.
12677_am_arg="$ac_file"
12678_am_stamp_count=1
12679for _am_header in $config_headers :; do
12680  case $_am_header in
12681    $_am_arg | $_am_arg:* )
12682      break ;;
12683    * )
12684      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12685  esac
12686done
12687echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12688$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12689	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12690	 X"$_am_arg" : 'X\(//\)$' \| \
12691	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12692printf "%s\n" X"$_am_arg" |
12693    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12694	    s//\1/
12695	    q
12696	  }
12697	  /^X\(\/\/\)[^/].*/{
12698	    s//\1/
12699	    q
12700	  }
12701	  /^X\(\/\/\)$/{
12702	    s//\1/
12703	    q
12704	  }
12705	  /^X\(\/\).*/{
12706	    s//\1/
12707	    q
12708	  }
12709	  s/.*/./; q'`/stamp-h$_am_stamp_count
12710 ;;
12711
12712  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12713printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12714 ;;
12715  esac
12716
12717
12718  case $ac_file$ac_mode in
12719    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12720  # Older Autoconf quotes --file arguments for eval, but not when files
12721  # are listed without --file.  Let's play safe and only enable the eval
12722  # if we detect the quoting.
12723  # TODO: see whether this extra hack can be removed once we start
12724  # requiring Autoconf 2.70 or later.
12725  case $CONFIG_FILES in #(
12726  *\'*) :
12727    eval set x "$CONFIG_FILES" ;; #(
12728  *) :
12729    set x $CONFIG_FILES ;; #(
12730  *) :
12731     ;;
12732esac
12733  shift
12734  # Used to flag and report bootstrapping failures.
12735  am_rc=0
12736  for am_mf
12737  do
12738    # Strip MF so we end up with the name of the file.
12739    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12740    # Check whether this is an Automake generated Makefile which includes
12741    # dependency-tracking related rules and includes.
12742    # Grep'ing the whole file directly is not great: AIX grep has a line
12743    # limit of 2048, but all sed's we know have understand at least 4000.
12744    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12745      || continue
12746    am_dirpart=`$as_dirname -- "$am_mf" ||
12747$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12748	 X"$am_mf" : 'X\(//\)[^/]' \| \
12749	 X"$am_mf" : 'X\(//\)$' \| \
12750	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12751printf "%s\n" X"$am_mf" |
12752    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12753	    s//\1/
12754	    q
12755	  }
12756	  /^X\(\/\/\)[^/].*/{
12757	    s//\1/
12758	    q
12759	  }
12760	  /^X\(\/\/\)$/{
12761	    s//\1/
12762	    q
12763	  }
12764	  /^X\(\/\).*/{
12765	    s//\1/
12766	    q
12767	  }
12768	  s/.*/./; q'`
12769    am_filepart=`$as_basename -- "$am_mf" ||
12770$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12771	 X"$am_mf" : 'X\(//\)$' \| \
12772	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12773printf "%s\n" X/"$am_mf" |
12774    sed '/^.*\/\([^/][^/]*\)\/*$/{
12775	    s//\1/
12776	    q
12777	  }
12778	  /^X\/\(\/\/\)$/{
12779	    s//\1/
12780	    q
12781	  }
12782	  /^X\/\(\/\).*/{
12783	    s//\1/
12784	    q
12785	  }
12786	  s/.*/./; q'`
12787    { echo "$as_me:$LINENO: cd "$am_dirpart" \
12788      && sed -e '/# am--include-marker/d' "$am_filepart" \
12789        | $MAKE -f - am--depfiles" >&5
12790   (cd "$am_dirpart" \
12791      && sed -e '/# am--include-marker/d' "$am_filepart" \
12792        | $MAKE -f - am--depfiles) >&5 2>&5
12793   ac_status=$?
12794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795   (exit $ac_status); } || am_rc=$?
12796  done
12797  if test $am_rc -ne 0; then
12798    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12799printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12800as_fn_error $? "Something went wrong bootstrapping makefile fragments
12801    for automatic dependency tracking.  If GNU make was not used, consider
12802    re-running the configure script with MAKE=\"gmake\" (or whatever is
12803    necessary).  You can also try re-running configure with the
12804    '--disable-dependency-tracking' option to at least be able to build
12805    the package (albeit without support for automatic dependency tracking).
12806See \`config.log' for more details" "$LINENO" 5; }
12807  fi
12808  { am_dirpart=; unset am_dirpart;}
12809  { am_filepart=; unset am_filepart;}
12810  { am_mf=; unset am_mf;}
12811  { am_rc=; unset am_rc;}
12812  rm -f conftest-deps.mk
12813}
12814 ;;
12815
12816  esac
12817done # for ac_tag
12818
12819
12820as_fn_exit 0
12821_ACEOF
12822ac_clean_files=$ac_clean_files_save
12823
12824test $ac_write_fail = 0 ||
12825  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12826
12827
12828# configure is writing to config.log, and then calls config.status.
12829# config.status does its own redirection, appending to config.log.
12830# Unfortunately, on DOS this fails, as config.log is still kept open
12831# by configure, so config.status won't be able to write to it; its
12832# output is simply discarded.  So we exec the FD to /dev/null,
12833# effectively closing config.log, so it can be properly (re)opened and
12834# appended to by config.status.  When coming back to configure, we
12835# need to make the FD available again.
12836if test "$no_create" != yes; then
12837  ac_cs_success=:
12838  ac_config_status_args=
12839  test "$silent" = yes &&
12840    ac_config_status_args="$ac_config_status_args --quiet"
12841  exec 5>/dev/null
12842  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12843  exec 5>>config.log
12844  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12845  # would make configure fail if this is the last instruction.
12846  $ac_cs_success || as_fn_exit 1
12847fi
12848if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12849  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12850printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12851fi
12852
12853
12854