configure revision f3e6ffc5
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for oclock 1.0.5.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/oclock/-/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/oclock/-/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='oclock'
614PACKAGE_TARNAME='oclock'
615PACKAGE_VERSION='1.0.5'
616PACKAGE_STRING='oclock 1.0.5'
617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/oclock/-/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
657appdefaultdir
658OCLOCK_LIBS
659OCLOCK_CFLAGS
660MAN_SUBSTS
661XORG_MAN_PAGE
662ADMIN_MAN_DIR
663DRIVER_MAN_DIR
664MISC_MAN_DIR
665FILE_MAN_DIR
666LIB_MAN_DIR
667APP_MAN_DIR
668ADMIN_MAN_SUFFIX
669DRIVER_MAN_SUFFIX
670MISC_MAN_SUFFIX
671FILE_MAN_SUFFIX
672LIB_MAN_SUFFIX
673APP_MAN_SUFFIX
674SED
675host_os
676host_vendor
677host_cpu
678host
679build_os
680build_vendor
681build_cpu
682build
683INSTALL_CMD
684PKG_CONFIG_LIBDIR
685PKG_CONFIG_PATH
686PKG_CONFIG
687CHANGELOG_CMD
688STRICT_CFLAGS
689CWARNFLAGS
690BASE_CFLAGS
691am__fastdepCC_FALSE
692am__fastdepCC_TRUE
693CCDEPMODE
694am__nodep
695AMDEPBACKSLASH
696AMDEP_FALSE
697AMDEP_TRUE
698am__include
699DEPDIR
700OBJEXT
701EXEEXT
702ac_ct_CC
703CPPFLAGS
704LDFLAGS
705CFLAGS
706CC
707AM_BACKSLASH
708AM_DEFAULT_VERBOSITY
709AM_DEFAULT_V
710AM_V
711CSCOPE
712ETAGS
713CTAGS
714am__untar
715am__tar
716AMTAR
717am__leading_dot
718SET_MAKE
719AWK
720mkdir_p
721MKDIR_P
722INSTALL_STRIP_PROGRAM
723STRIP
724install_sh
725MAKEINFO
726AUTOHEADER
727AUTOMAKE
728AUTOCONF
729ACLOCAL
730VERSION
731PACKAGE
732CYGPATH_W
733am__isrc
734INSTALL_DATA
735INSTALL_SCRIPT
736INSTALL_PROGRAM
737target_alias
738host_alias
739build_alias
740LIBS
741ECHO_T
742ECHO_N
743ECHO_C
744DEFS
745mandir
746localedir
747libdir
748psdir
749pdfdir
750dvidir
751htmldir
752infodir
753docdir
754oldincludedir
755includedir
756runstatedir
757localstatedir
758sharedstatedir
759sysconfdir
760datadir
761datarootdir
762libexecdir
763sbindir
764bindir
765program_transform_name
766prefix
767exec_prefix
768PACKAGE_URL
769PACKAGE_BUGREPORT
770PACKAGE_STRING
771PACKAGE_VERSION
772PACKAGE_TARNAME
773PACKAGE_NAME
774PATH_SEPARATOR
775SHELL
776am__quote'
777ac_subst_files=''
778ac_user_opts='
779enable_option_checking
780enable_silent_rules
781enable_dependency_tracking
782enable_selective_werror
783enable_strict_compilation
784with_xkb
785with_appdefaultdir
786'
787      ac_precious_vars='build_alias
788host_alias
789target_alias
790CC
791CFLAGS
792LDFLAGS
793LIBS
794CPPFLAGS
795PKG_CONFIG
796PKG_CONFIG_PATH
797PKG_CONFIG_LIBDIR
798OCLOCK_CFLAGS
799OCLOCK_LIBS'
800
801
802# Initialize some variables set by options.
803ac_init_help=
804ac_init_version=false
805ac_unrecognized_opts=
806ac_unrecognized_sep=
807# The variables have the same names as the options, with
808# dashes changed to underlines.
809cache_file=/dev/null
810exec_prefix=NONE
811no_create=
812no_recursion=
813prefix=NONE
814program_prefix=NONE
815program_suffix=NONE
816program_transform_name=s,x,x,
817silent=
818site=
819srcdir=
820verbose=
821x_includes=NONE
822x_libraries=NONE
823
824# Installation directory options.
825# These are left unexpanded so users can "make install exec_prefix=/foo"
826# and all the variables that are supposed to be based on exec_prefix
827# by default will actually change.
828# Use braces instead of parens because sh, perl, etc. also accept them.
829# (The list follows the same order as the GNU Coding Standards.)
830bindir='${exec_prefix}/bin'
831sbindir='${exec_prefix}/sbin'
832libexecdir='${exec_prefix}/libexec'
833datarootdir='${prefix}/share'
834datadir='${datarootdir}'
835sysconfdir='${prefix}/etc'
836sharedstatedir='${prefix}/com'
837localstatedir='${prefix}/var'
838runstatedir='${localstatedir}/run'
839includedir='${prefix}/include'
840oldincludedir='/usr/include'
841docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
842infodir='${datarootdir}/info'
843htmldir='${docdir}'
844dvidir='${docdir}'
845pdfdir='${docdir}'
846psdir='${docdir}'
847libdir='${exec_prefix}/lib'
848localedir='${datarootdir}/locale'
849mandir='${datarootdir}/man'
850
851ac_prev=
852ac_dashdash=
853for ac_option
854do
855  # If the previous option needs an argument, assign it.
856  if test -n "$ac_prev"; then
857    eval $ac_prev=\$ac_option
858    ac_prev=
859    continue
860  fi
861
862  case $ac_option in
863  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
864  *=)   ac_optarg= ;;
865  *)    ac_optarg=yes ;;
866  esac
867
868  case $ac_dashdash$ac_option in
869  --)
870    ac_dashdash=yes ;;
871
872  -bindir | --bindir | --bindi | --bind | --bin | --bi)
873    ac_prev=bindir ;;
874  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
875    bindir=$ac_optarg ;;
876
877  -build | --build | --buil | --bui | --bu)
878    ac_prev=build_alias ;;
879  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
880    build_alias=$ac_optarg ;;
881
882  -cache-file | --cache-file | --cache-fil | --cache-fi \
883  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
884    ac_prev=cache_file ;;
885  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
886  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
887    cache_file=$ac_optarg ;;
888
889  --config-cache | -C)
890    cache_file=config.cache ;;
891
892  -datadir | --datadir | --datadi | --datad)
893    ac_prev=datadir ;;
894  -datadir=* | --datadir=* | --datadi=* | --datad=*)
895    datadir=$ac_optarg ;;
896
897  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
898  | --dataroo | --dataro | --datar)
899    ac_prev=datarootdir ;;
900  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
901  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
902    datarootdir=$ac_optarg ;;
903
904  -disable-* | --disable-*)
905    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
906    # Reject names that are not valid shell variable names.
907    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
908      as_fn_error $? "invalid feature name: \`$ac_useropt'"
909    ac_useropt_orig=$ac_useropt
910    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
911    case $ac_user_opts in
912      *"
913"enable_$ac_useropt"
914"*) ;;
915      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
916	 ac_unrecognized_sep=', ';;
917    esac
918    eval enable_$ac_useropt=no ;;
919
920  -docdir | --docdir | --docdi | --doc | --do)
921    ac_prev=docdir ;;
922  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
923    docdir=$ac_optarg ;;
924
925  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
926    ac_prev=dvidir ;;
927  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
928    dvidir=$ac_optarg ;;
929
930  -enable-* | --enable-*)
931    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
932    # Reject names that are not valid shell variable names.
933    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
934      as_fn_error $? "invalid feature name: \`$ac_useropt'"
935    ac_useropt_orig=$ac_useropt
936    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
937    case $ac_user_opts in
938      *"
939"enable_$ac_useropt"
940"*) ;;
941      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
942	 ac_unrecognized_sep=', ';;
943    esac
944    eval enable_$ac_useropt=\$ac_optarg ;;
945
946  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948  | --exec | --exe | --ex)
949    ac_prev=exec_prefix ;;
950  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952  | --exec=* | --exe=* | --ex=*)
953    exec_prefix=$ac_optarg ;;
954
955  -gas | --gas | --ga | --g)
956    # Obsolete; use --with-gas.
957    with_gas=yes ;;
958
959  -help | --help | --hel | --he | -h)
960    ac_init_help=long ;;
961  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962    ac_init_help=recursive ;;
963  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964    ac_init_help=short ;;
965
966  -host | --host | --hos | --ho)
967    ac_prev=host_alias ;;
968  -host=* | --host=* | --hos=* | --ho=*)
969    host_alias=$ac_optarg ;;
970
971  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972    ac_prev=htmldir ;;
973  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974  | --ht=*)
975    htmldir=$ac_optarg ;;
976
977  -includedir | --includedir | --includedi | --included | --include \
978  | --includ | --inclu | --incl | --inc)
979    ac_prev=includedir ;;
980  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981  | --includ=* | --inclu=* | --incl=* | --inc=*)
982    includedir=$ac_optarg ;;
983
984  -infodir | --infodir | --infodi | --infod | --info | --inf)
985    ac_prev=infodir ;;
986  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987    infodir=$ac_optarg ;;
988
989  -libdir | --libdir | --libdi | --libd)
990    ac_prev=libdir ;;
991  -libdir=* | --libdir=* | --libdi=* | --libd=*)
992    libdir=$ac_optarg ;;
993
994  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995  | --libexe | --libex | --libe)
996    ac_prev=libexecdir ;;
997  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998  | --libexe=* | --libex=* | --libe=*)
999    libexecdir=$ac_optarg ;;
1000
1001  -localedir | --localedir | --localedi | --localed | --locale)
1002    ac_prev=localedir ;;
1003  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004    localedir=$ac_optarg ;;
1005
1006  -localstatedir | --localstatedir | --localstatedi | --localstated \
1007  | --localstate | --localstat | --localsta | --localst | --locals)
1008    ac_prev=localstatedir ;;
1009  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1010  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1011    localstatedir=$ac_optarg ;;
1012
1013  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014    ac_prev=mandir ;;
1015  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016    mandir=$ac_optarg ;;
1017
1018  -nfp | --nfp | --nf)
1019    # Obsolete; use --without-fp.
1020    with_fp=no ;;
1021
1022  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023  | --no-cr | --no-c | -n)
1024    no_create=yes ;;
1025
1026  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028    no_recursion=yes ;;
1029
1030  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032  | --oldin | --oldi | --old | --ol | --o)
1033    ac_prev=oldincludedir ;;
1034  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037    oldincludedir=$ac_optarg ;;
1038
1039  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040    ac_prev=prefix ;;
1041  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042    prefix=$ac_optarg ;;
1043
1044  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045  | --program-pre | --program-pr | --program-p)
1046    ac_prev=program_prefix ;;
1047  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049    program_prefix=$ac_optarg ;;
1050
1051  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052  | --program-suf | --program-su | --program-s)
1053    ac_prev=program_suffix ;;
1054  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056    program_suffix=$ac_optarg ;;
1057
1058  -program-transform-name | --program-transform-name \
1059  | --program-transform-nam | --program-transform-na \
1060  | --program-transform-n | --program-transform- \
1061  | --program-transform | --program-transfor \
1062  | --program-transfo | --program-transf \
1063  | --program-trans | --program-tran \
1064  | --progr-tra | --program-tr | --program-t)
1065    ac_prev=program_transform_name ;;
1066  -program-transform-name=* | --program-transform-name=* \
1067  | --program-transform-nam=* | --program-transform-na=* \
1068  | --program-transform-n=* | --program-transform-=* \
1069  | --program-transform=* | --program-transfor=* \
1070  | --program-transfo=* | --program-transf=* \
1071  | --program-trans=* | --program-tran=* \
1072  | --progr-tra=* | --program-tr=* | --program-t=*)
1073    program_transform_name=$ac_optarg ;;
1074
1075  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076    ac_prev=pdfdir ;;
1077  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078    pdfdir=$ac_optarg ;;
1079
1080  -psdir | --psdir | --psdi | --psd | --ps)
1081    ac_prev=psdir ;;
1082  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083    psdir=$ac_optarg ;;
1084
1085  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086  | -silent | --silent | --silen | --sile | --sil)
1087    silent=yes ;;
1088
1089  -runstatedir | --runstatedir | --runstatedi | --runstated \
1090  | --runstate | --runstat | --runsta | --runst | --runs \
1091  | --run | --ru | --r)
1092    ac_prev=runstatedir ;;
1093  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1094  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1095  | --run=* | --ru=* | --r=*)
1096    runstatedir=$ac_optarg ;;
1097
1098  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1099    ac_prev=sbindir ;;
1100  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1101  | --sbi=* | --sb=*)
1102    sbindir=$ac_optarg ;;
1103
1104  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1105  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1106  | --sharedst | --shareds | --shared | --share | --shar \
1107  | --sha | --sh)
1108    ac_prev=sharedstatedir ;;
1109  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1110  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1111  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1112  | --sha=* | --sh=*)
1113    sharedstatedir=$ac_optarg ;;
1114
1115  -site | --site | --sit)
1116    ac_prev=site ;;
1117  -site=* | --site=* | --sit=*)
1118    site=$ac_optarg ;;
1119
1120  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1121    ac_prev=srcdir ;;
1122  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1123    srcdir=$ac_optarg ;;
1124
1125  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1126  | --syscon | --sysco | --sysc | --sys | --sy)
1127    ac_prev=sysconfdir ;;
1128  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1129  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1130    sysconfdir=$ac_optarg ;;
1131
1132  -target | --target | --targe | --targ | --tar | --ta | --t)
1133    ac_prev=target_alias ;;
1134  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1135    target_alias=$ac_optarg ;;
1136
1137  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1138    verbose=yes ;;
1139
1140  -version | --version | --versio | --versi | --vers | -V)
1141    ac_init_version=: ;;
1142
1143  -with-* | --with-*)
1144    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1145    # Reject names that are not valid shell variable names.
1146    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147      as_fn_error $? "invalid package name: \`$ac_useropt'"
1148    ac_useropt_orig=$ac_useropt
1149    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1150    case $ac_user_opts in
1151      *"
1152"with_$ac_useropt"
1153"*) ;;
1154      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1155	 ac_unrecognized_sep=', ';;
1156    esac
1157    eval with_$ac_useropt=\$ac_optarg ;;
1158
1159  -without-* | --without-*)
1160    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1161    # Reject names that are not valid shell variable names.
1162    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1163      as_fn_error $? "invalid package name: \`$ac_useropt'"
1164    ac_useropt_orig=$ac_useropt
1165    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1166    case $ac_user_opts in
1167      *"
1168"with_$ac_useropt"
1169"*) ;;
1170      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1171	 ac_unrecognized_sep=', ';;
1172    esac
1173    eval with_$ac_useropt=no ;;
1174
1175  --x)
1176    # Obsolete; use --with-x.
1177    with_x=yes ;;
1178
1179  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1180  | --x-incl | --x-inc | --x-in | --x-i)
1181    ac_prev=x_includes ;;
1182  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1183  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1184    x_includes=$ac_optarg ;;
1185
1186  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1187  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1188    ac_prev=x_libraries ;;
1189  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1190  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1191    x_libraries=$ac_optarg ;;
1192
1193  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1194Try \`$0 --help' for more information"
1195    ;;
1196
1197  *=*)
1198    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1199    # Reject names that are not valid shell variable names.
1200    case $ac_envvar in #(
1201      '' | [0-9]* | *[!_$as_cr_alnum]* )
1202      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1203    esac
1204    eval $ac_envvar=\$ac_optarg
1205    export $ac_envvar ;;
1206
1207  *)
1208    # FIXME: should be removed in autoconf 3.0.
1209    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1210    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1211      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1212    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1213    ;;
1214
1215  esac
1216done
1217
1218if test -n "$ac_prev"; then
1219  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1220  as_fn_error $? "missing argument to $ac_option"
1221fi
1222
1223if test -n "$ac_unrecognized_opts"; then
1224  case $enable_option_checking in
1225    no) ;;
1226    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1227    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1228  esac
1229fi
1230
1231# Check all directory arguments for consistency.
1232for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1233		datadir sysconfdir sharedstatedir localstatedir includedir \
1234		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1235		libdir localedir mandir runstatedir
1236do
1237  eval ac_val=\$$ac_var
1238  # Remove trailing slashes.
1239  case $ac_val in
1240    */ )
1241      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1242      eval $ac_var=\$ac_val;;
1243  esac
1244  # Be sure to have absolute directory names.
1245  case $ac_val in
1246    [\\/$]* | ?:[\\/]* )  continue;;
1247    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1248  esac
1249  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1250done
1251
1252# There might be people who depend on the old broken behavior: `$host'
1253# used to hold the argument of --host etc.
1254# FIXME: To remove some day.
1255build=$build_alias
1256host=$host_alias
1257target=$target_alias
1258
1259# FIXME: To remove some day.
1260if test "x$host_alias" != x; then
1261  if test "x$build_alias" = x; then
1262    cross_compiling=maybe
1263  elif test "x$build_alias" != "x$host_alias"; then
1264    cross_compiling=yes
1265  fi
1266fi
1267
1268ac_tool_prefix=
1269test -n "$host_alias" && ac_tool_prefix=$host_alias-
1270
1271test "$silent" = yes && exec 6>/dev/null
1272
1273
1274ac_pwd=`pwd` && test -n "$ac_pwd" &&
1275ac_ls_di=`ls -di .` &&
1276ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1277  as_fn_error $? "working directory cannot be determined"
1278test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1279  as_fn_error $? "pwd does not report name of working directory"
1280
1281
1282# Find the source files, if location was not specified.
1283if test -z "$srcdir"; then
1284  ac_srcdir_defaulted=yes
1285  # Try the directory containing this script, then the parent directory.
1286  ac_confdir=`$as_dirname -- "$as_myself" ||
1287$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1288	 X"$as_myself" : 'X\(//\)[^/]' \| \
1289	 X"$as_myself" : 'X\(//\)$' \| \
1290	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1291printf "%s\n" X"$as_myself" |
1292    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1293	    s//\1/
1294	    q
1295	  }
1296	  /^X\(\/\/\)[^/].*/{
1297	    s//\1/
1298	    q
1299	  }
1300	  /^X\(\/\/\)$/{
1301	    s//\1/
1302	    q
1303	  }
1304	  /^X\(\/\).*/{
1305	    s//\1/
1306	    q
1307	  }
1308	  s/.*/./; q'`
1309  srcdir=$ac_confdir
1310  if test ! -r "$srcdir/$ac_unique_file"; then
1311    srcdir=..
1312  fi
1313else
1314  ac_srcdir_defaulted=no
1315fi
1316if test ! -r "$srcdir/$ac_unique_file"; then
1317  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1318  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1319fi
1320ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1321ac_abs_confdir=`(
1322	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1323	pwd)`
1324# When building in place, set srcdir=.
1325if test "$ac_abs_confdir" = "$ac_pwd"; then
1326  srcdir=.
1327fi
1328# Remove unnecessary trailing slashes from srcdir.
1329# Double slashes in file names in object file debugging info
1330# mess up M-x gdb in Emacs.
1331case $srcdir in
1332*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1333esac
1334for ac_var in $ac_precious_vars; do
1335  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1336  eval ac_env_${ac_var}_value=\$${ac_var}
1337  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1338  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1339done
1340
1341#
1342# Report the --help message.
1343#
1344if test "$ac_init_help" = "long"; then
1345  # Omit some internal or obsolete options to make the list less imposing.
1346  # This message is too long to be a string in the A/UX 3.1 sh.
1347  cat <<_ACEOF
1348\`configure' configures oclock 1.0.5 to adapt to many kinds of systems.
1349
1350Usage: $0 [OPTION]... [VAR=VALUE]...
1351
1352To assign environment variables (e.g., CC, CFLAGS...), specify them as
1353VAR=VALUE.  See below for descriptions of some of the useful variables.
1354
1355Defaults for the options are specified in brackets.
1356
1357Configuration:
1358  -h, --help              display this help and exit
1359      --help=short        display options specific to this package
1360      --help=recursive    display the short help of all the included packages
1361  -V, --version           display version information and exit
1362  -q, --quiet, --silent   do not print \`checking ...' messages
1363      --cache-file=FILE   cache test results in FILE [disabled]
1364  -C, --config-cache      alias for \`--cache-file=config.cache'
1365  -n, --no-create         do not create output files
1366      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1367
1368Installation directories:
1369  --prefix=PREFIX         install architecture-independent files in PREFIX
1370                          [$ac_default_prefix]
1371  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1372                          [PREFIX]
1373
1374By default, \`make install' will install all the files in
1375\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1376an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1377for instance \`--prefix=\$HOME'.
1378
1379For better control, use the options below.
1380
1381Fine tuning of the installation directories:
1382  --bindir=DIR            user executables [EPREFIX/bin]
1383  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1384  --libexecdir=DIR        program executables [EPREFIX/libexec]
1385  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1386  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1387  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1388  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1389  --libdir=DIR            object code libraries [EPREFIX/lib]
1390  --includedir=DIR        C header files [PREFIX/include]
1391  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1392  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1393  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1394  --infodir=DIR           info documentation [DATAROOTDIR/info]
1395  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1396  --mandir=DIR            man documentation [DATAROOTDIR/man]
1397  --docdir=DIR            documentation root [DATAROOTDIR/doc/oclock]
1398  --htmldir=DIR           html documentation [DOCDIR]
1399  --dvidir=DIR            dvi documentation [DOCDIR]
1400  --pdfdir=DIR            pdf documentation [DOCDIR]
1401  --psdir=DIR             ps documentation [DOCDIR]
1402_ACEOF
1403
1404  cat <<\_ACEOF
1405
1406Program names:
1407  --program-prefix=PREFIX            prepend PREFIX to installed program names
1408  --program-suffix=SUFFIX            append SUFFIX to installed program names
1409  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1410
1411System types:
1412  --build=BUILD     configure for building on BUILD [guessed]
1413  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1414_ACEOF
1415fi
1416
1417if test -n "$ac_init_help"; then
1418  case $ac_init_help in
1419     short | recursive ) echo "Configuration of oclock 1.0.5:";;
1420   esac
1421  cat <<\_ACEOF
1422
1423Optional Features:
1424  --disable-option-checking  ignore unrecognized --enable/--with options
1425  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1426  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1427  --enable-silent-rules   less verbose build output (undo: "make V=1")
1428  --disable-silent-rules  verbose build output (undo: "make V=0")
1429  --enable-dependency-tracking
1430                          do not reject slow dependency extractors
1431  --disable-dependency-tracking
1432                          speeds up one-time build
1433  --disable-selective-werror
1434                          Turn off selective compiler errors. (default:
1435                          enabled)
1436  --enable-strict-compilation
1437                          Enable all warnings from compiler and make them
1438                          errors (default: disabled)
1439
1440Optional Packages:
1441  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1442  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1443  --without-xkb           Disable use of XKB to sound bells (Default is
1444                          with-xkb)
1445  --with-appdefaultdir=<pathname>
1446                          specify directory for app-defaults files (default is
1447                          autodetected)
1448
1449Some influential environment variables:
1450  CC          C compiler command
1451  CFLAGS      C compiler flags
1452  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1453              nonstandard directory <lib dir>
1454  LIBS        libraries to pass to the linker, e.g. -l<library>
1455  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1456              you have headers in a nonstandard directory <include dir>
1457  PKG_CONFIG  path to pkg-config utility
1458  PKG_CONFIG_PATH
1459              directories to add to pkg-config's search path
1460  PKG_CONFIG_LIBDIR
1461              path overriding pkg-config's built-in search path
1462  OCLOCK_CFLAGS
1463              C compiler flags for OCLOCK, overriding pkg-config
1464  OCLOCK_LIBS linker flags for OCLOCK, overriding pkg-config
1465
1466Use these variables to override the choices made by `configure' or to help
1467it to find libraries and programs with nonstandard names/locations.
1468
1469Report bugs to <https://gitlab.freedesktop.org/xorg/app/oclock/-/issues>.
1470_ACEOF
1471ac_status=$?
1472fi
1473
1474if test "$ac_init_help" = "recursive"; then
1475  # If there are subdirs, report their specific --help.
1476  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1477    test -d "$ac_dir" ||
1478      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1479      continue
1480    ac_builddir=.
1481
1482case "$ac_dir" in
1483.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484*)
1485  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1486  # A ".." for each directory in $ac_dir_suffix.
1487  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1488  case $ac_top_builddir_sub in
1489  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1491  esac ;;
1492esac
1493ac_abs_top_builddir=$ac_pwd
1494ac_abs_builddir=$ac_pwd$ac_dir_suffix
1495# for backward compatibility:
1496ac_top_builddir=$ac_top_build_prefix
1497
1498case $srcdir in
1499  .)  # We are building in place.
1500    ac_srcdir=.
1501    ac_top_srcdir=$ac_top_builddir_sub
1502    ac_abs_top_srcdir=$ac_pwd ;;
1503  [\\/]* | ?:[\\/]* )  # Absolute name.
1504    ac_srcdir=$srcdir$ac_dir_suffix;
1505    ac_top_srcdir=$srcdir
1506    ac_abs_top_srcdir=$srcdir ;;
1507  *) # Relative name.
1508    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1509    ac_top_srcdir=$ac_top_build_prefix$srcdir
1510    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1511esac
1512ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1513
1514    cd "$ac_dir" || { ac_status=$?; continue; }
1515    # Check for configure.gnu first; this name is used for a wrapper for
1516    # Metaconfig's "Configure" on case-insensitive file systems.
1517    if test -f "$ac_srcdir/configure.gnu"; then
1518      echo &&
1519      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1520    elif test -f "$ac_srcdir/configure"; then
1521      echo &&
1522      $SHELL "$ac_srcdir/configure" --help=recursive
1523    else
1524      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1525    fi || ac_status=$?
1526    cd "$ac_pwd" || { ac_status=$?; break; }
1527  done
1528fi
1529
1530test -n "$ac_init_help" && exit $ac_status
1531if $ac_init_version; then
1532  cat <<\_ACEOF
1533oclock configure 1.0.5
1534generated by GNU Autoconf 2.71
1535
1536Copyright (C) 2021 Free Software Foundation, Inc.
1537This configure script is free software; the Free Software Foundation
1538gives unlimited permission to copy, distribute and modify it.
1539_ACEOF
1540  exit
1541fi
1542
1543## ------------------------ ##
1544## Autoconf initialization. ##
1545## ------------------------ ##
1546
1547# ac_fn_c_try_compile LINENO
1548# --------------------------
1549# Try to compile conftest.$ac_ext, and return whether this succeeded.
1550ac_fn_c_try_compile ()
1551{
1552  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1553  rm -f conftest.$ac_objext conftest.beam
1554  if { { ac_try="$ac_compile"
1555case "(($ac_try" in
1556  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1557  *) ac_try_echo=$ac_try;;
1558esac
1559eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1560printf "%s\n" "$ac_try_echo"; } >&5
1561  (eval "$ac_compile") 2>conftest.err
1562  ac_status=$?
1563  if test -s conftest.err; then
1564    grep -v '^ *+' conftest.err >conftest.er1
1565    cat conftest.er1 >&5
1566    mv -f conftest.er1 conftest.err
1567  fi
1568  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1569  test $ac_status = 0; } && {
1570	 test -z "$ac_c_werror_flag" ||
1571	 test ! -s conftest.err
1572       } && test -s conftest.$ac_objext
1573then :
1574  ac_retval=0
1575else $as_nop
1576  printf "%s\n" "$as_me: failed program was:" >&5
1577sed 's/^/| /' conftest.$ac_ext >&5
1578
1579	ac_retval=1
1580fi
1581  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1582  as_fn_set_status $ac_retval
1583
1584} # ac_fn_c_try_compile
1585
1586# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1587# ------------------------------------------------------------------
1588# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1589# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1590ac_fn_check_decl ()
1591{
1592  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593  as_decl_name=`echo $2|sed 's/ *(.*//'`
1594  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1595printf %s "checking whether $as_decl_name is declared... " >&6; }
1596if eval test \${$3+y}
1597then :
1598  printf %s "(cached) " >&6
1599else $as_nop
1600  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1601  eval ac_save_FLAGS=\$$6
1602  as_fn_append $6 " $5"
1603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1604/* end confdefs.h.  */
1605$4
1606int
1607main (void)
1608{
1609#ifndef $as_decl_name
1610#ifdef __cplusplus
1611  (void) $as_decl_use;
1612#else
1613  (void) $as_decl_name;
1614#endif
1615#endif
1616
1617  ;
1618  return 0;
1619}
1620_ACEOF
1621if ac_fn_c_try_compile "$LINENO"
1622then :
1623  eval "$3=yes"
1624else $as_nop
1625  eval "$3=no"
1626fi
1627rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1628  eval $6=\$ac_save_FLAGS
1629
1630fi
1631eval ac_res=\$$3
1632	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1633printf "%s\n" "$ac_res" >&6; }
1634  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635
1636} # ac_fn_check_decl
1637
1638# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1639# -------------------------------------------------------
1640# Tests whether HEADER exists and can be compiled using the include files in
1641# INCLUDES, setting the cache variable VAR accordingly.
1642ac_fn_c_check_header_compile ()
1643{
1644  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1646printf %s "checking for $2... " >&6; }
1647if eval test \${$3+y}
1648then :
1649  printf %s "(cached) " >&6
1650else $as_nop
1651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1652/* end confdefs.h.  */
1653$4
1654#include <$2>
1655_ACEOF
1656if ac_fn_c_try_compile "$LINENO"
1657then :
1658  eval "$3=yes"
1659else $as_nop
1660  eval "$3=no"
1661fi
1662rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1663fi
1664eval ac_res=\$$3
1665	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1666printf "%s\n" "$ac_res" >&6; }
1667  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668
1669} # ac_fn_c_check_header_compile
1670
1671# ac_fn_c_try_link LINENO
1672# -----------------------
1673# Try to link conftest.$ac_ext, and return whether this succeeded.
1674ac_fn_c_try_link ()
1675{
1676  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1678  if { { ac_try="$ac_link"
1679case "(($ac_try" in
1680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681  *) ac_try_echo=$ac_try;;
1682esac
1683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684printf "%s\n" "$ac_try_echo"; } >&5
1685  (eval "$ac_link") 2>conftest.err
1686  ac_status=$?
1687  if test -s conftest.err; then
1688    grep -v '^ *+' conftest.err >conftest.er1
1689    cat conftest.er1 >&5
1690    mv -f conftest.er1 conftest.err
1691  fi
1692  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693  test $ac_status = 0; } && {
1694	 test -z "$ac_c_werror_flag" ||
1695	 test ! -s conftest.err
1696       } && test -s conftest$ac_exeext && {
1697	 test "$cross_compiling" = yes ||
1698	 test -x conftest$ac_exeext
1699       }
1700then :
1701  ac_retval=0
1702else $as_nop
1703  printf "%s\n" "$as_me: failed program was:" >&5
1704sed 's/^/| /' conftest.$ac_ext >&5
1705
1706	ac_retval=1
1707fi
1708  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1709  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1710  # interfere with the next link command; also delete a directory that is
1711  # left behind by Apple's compiler.  We do this before executing the actions.
1712  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1713  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714  as_fn_set_status $ac_retval
1715
1716} # ac_fn_c_try_link
1717ac_configure_args_raw=
1718for ac_arg
1719do
1720  case $ac_arg in
1721  *\'*)
1722    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1723  esac
1724  as_fn_append ac_configure_args_raw " '$ac_arg'"
1725done
1726
1727case $ac_configure_args_raw in
1728  *$as_nl*)
1729    ac_safe_unquote= ;;
1730  *)
1731    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1732    ac_unsafe_a="$ac_unsafe_z#~"
1733    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1734    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1735esac
1736
1737cat >config.log <<_ACEOF
1738This file contains any messages produced by compilers while
1739running configure, to aid debugging if configure makes a mistake.
1740
1741It was created by oclock $as_me 1.0.5, which was
1742generated by GNU Autoconf 2.71.  Invocation command line was
1743
1744  $ $0$ac_configure_args_raw
1745
1746_ACEOF
1747exec 5>>config.log
1748{
1749cat <<_ASUNAME
1750## --------- ##
1751## Platform. ##
1752## --------- ##
1753
1754hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1755uname -m = `(uname -m) 2>/dev/null || echo unknown`
1756uname -r = `(uname -r) 2>/dev/null || echo unknown`
1757uname -s = `(uname -s) 2>/dev/null || echo unknown`
1758uname -v = `(uname -v) 2>/dev/null || echo unknown`
1759
1760/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1761/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1762
1763/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1764/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1765/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1766/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1767/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1768/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1769/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1770
1771_ASUNAME
1772
1773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1774for as_dir in $PATH
1775do
1776  IFS=$as_save_IFS
1777  case $as_dir in #(((
1778    '') as_dir=./ ;;
1779    */) ;;
1780    *) as_dir=$as_dir/ ;;
1781  esac
1782    printf "%s\n" "PATH: $as_dir"
1783  done
1784IFS=$as_save_IFS
1785
1786} >&5
1787
1788cat >&5 <<_ACEOF
1789
1790
1791## ----------- ##
1792## Core tests. ##
1793## ----------- ##
1794
1795_ACEOF
1796
1797
1798# Keep a trace of the command line.
1799# Strip out --no-create and --no-recursion so they do not pile up.
1800# Strip out --silent because we don't want to record it for future runs.
1801# Also quote any args containing shell meta-characters.
1802# Make two passes to allow for proper duplicate-argument suppression.
1803ac_configure_args=
1804ac_configure_args0=
1805ac_configure_args1=
1806ac_must_keep_next=false
1807for ac_pass in 1 2
1808do
1809  for ac_arg
1810  do
1811    case $ac_arg in
1812    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1813    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1814    | -silent | --silent | --silen | --sile | --sil)
1815      continue ;;
1816    *\'*)
1817      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1818    esac
1819    case $ac_pass in
1820    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1821    2)
1822      as_fn_append ac_configure_args1 " '$ac_arg'"
1823      if test $ac_must_keep_next = true; then
1824	ac_must_keep_next=false # Got value, back to normal.
1825      else
1826	case $ac_arg in
1827	  *=* | --config-cache | -C | -disable-* | --disable-* \
1828	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1829	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1830	  | -with-* | --with-* | -without-* | --without-* | --x)
1831	    case "$ac_configure_args0 " in
1832	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1833	    esac
1834	    ;;
1835	  -* ) ac_must_keep_next=true ;;
1836	esac
1837      fi
1838      as_fn_append ac_configure_args " '$ac_arg'"
1839      ;;
1840    esac
1841  done
1842done
1843{ ac_configure_args0=; unset ac_configure_args0;}
1844{ ac_configure_args1=; unset ac_configure_args1;}
1845
1846# When interrupted or exit'd, cleanup temporary files, and complete
1847# config.log.  We remove comments because anyway the quotes in there
1848# would cause problems or look ugly.
1849# WARNING: Use '\'' to represent an apostrophe within the trap.
1850# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1851trap 'exit_status=$?
1852  # Sanitize IFS.
1853  IFS=" ""	$as_nl"
1854  # Save into config.log some information that might help in debugging.
1855  {
1856    echo
1857
1858    printf "%s\n" "## ---------------- ##
1859## Cache variables. ##
1860## ---------------- ##"
1861    echo
1862    # The following way of writing the cache mishandles newlines in values,
1863(
1864  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1865    eval ac_val=\$$ac_var
1866    case $ac_val in #(
1867    *${as_nl}*)
1868      case $ac_var in #(
1869      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1870printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1871      esac
1872      case $ac_var in #(
1873      _ | IFS | as_nl) ;; #(
1874      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1875      *) { eval $ac_var=; unset $ac_var;} ;;
1876      esac ;;
1877    esac
1878  done
1879  (set) 2>&1 |
1880    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1881    *${as_nl}ac_space=\ *)
1882      sed -n \
1883	"s/'\''/'\''\\\\'\'''\''/g;
1884	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1885      ;; #(
1886    *)
1887      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1888      ;;
1889    esac |
1890    sort
1891)
1892    echo
1893
1894    printf "%s\n" "## ----------------- ##
1895## Output variables. ##
1896## ----------------- ##"
1897    echo
1898    for ac_var in $ac_subst_vars
1899    do
1900      eval ac_val=\$$ac_var
1901      case $ac_val in
1902      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1903      esac
1904      printf "%s\n" "$ac_var='\''$ac_val'\''"
1905    done | sort
1906    echo
1907
1908    if test -n "$ac_subst_files"; then
1909      printf "%s\n" "## ------------------- ##
1910## File substitutions. ##
1911## ------------------- ##"
1912      echo
1913      for ac_var in $ac_subst_files
1914      do
1915	eval ac_val=\$$ac_var
1916	case $ac_val in
1917	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1918	esac
1919	printf "%s\n" "$ac_var='\''$ac_val'\''"
1920      done | sort
1921      echo
1922    fi
1923
1924    if test -s confdefs.h; then
1925      printf "%s\n" "## ----------- ##
1926## confdefs.h. ##
1927## ----------- ##"
1928      echo
1929      cat confdefs.h
1930      echo
1931    fi
1932    test "$ac_signal" != 0 &&
1933      printf "%s\n" "$as_me: caught signal $ac_signal"
1934    printf "%s\n" "$as_me: exit $exit_status"
1935  } >&5
1936  rm -f core *.core core.conftest.* &&
1937    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1938    exit $exit_status
1939' 0
1940for ac_signal in 1 2 13 15; do
1941  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1942done
1943ac_signal=0
1944
1945# confdefs.h avoids OS command line length limits that DEFS can exceed.
1946rm -f -r conftest* confdefs.h
1947
1948printf "%s\n" "/* confdefs.h */" > confdefs.h
1949
1950# Predefined preprocessor variables.
1951
1952printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1953
1954printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1955
1956printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1957
1958printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1959
1960printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1961
1962printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1963
1964
1965# Let the site file select an alternate cache file if it wants to.
1966# Prefer an explicitly selected file to automatically selected ones.
1967if test -n "$CONFIG_SITE"; then
1968  ac_site_files="$CONFIG_SITE"
1969elif test "x$prefix" != xNONE; then
1970  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1971else
1972  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1973fi
1974
1975for ac_site_file in $ac_site_files
1976do
1977  case $ac_site_file in #(
1978  */*) :
1979     ;; #(
1980  *) :
1981    ac_site_file=./$ac_site_file ;;
1982esac
1983  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1984    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1985printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1986    sed 's/^/| /' "$ac_site_file" >&5
1987    . "$ac_site_file" \
1988      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1989printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1990as_fn_error $? "failed to load site script $ac_site_file
1991See \`config.log' for more details" "$LINENO" 5; }
1992  fi
1993done
1994
1995if test -r "$cache_file"; then
1996  # Some versions of bash will fail to source /dev/null (special files
1997  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1998  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1999    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2000printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2001    case $cache_file in
2002      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2003      *)                      . "./$cache_file";;
2004    esac
2005  fi
2006else
2007  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2008printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2009  >$cache_file
2010fi
2011
2012# Test code for whether the C compiler supports C89 (global declarations)
2013ac_c_conftest_c89_globals='
2014/* Does the compiler advertise C89 conformance?
2015   Do not test the value of __STDC__, because some compilers set it to 0
2016   while being otherwise adequately conformant. */
2017#if !defined __STDC__
2018# error "Compiler does not advertise C89 conformance"
2019#endif
2020
2021#include <stddef.h>
2022#include <stdarg.h>
2023struct stat;
2024/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2025struct buf { int x; };
2026struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2027static char *e (p, i)
2028     char **p;
2029     int i;
2030{
2031  return p[i];
2032}
2033static char *f (char * (*g) (char **, int), char **p, ...)
2034{
2035  char *s;
2036  va_list v;
2037  va_start (v,p);
2038  s = g (p, va_arg (v,int));
2039  va_end (v);
2040  return s;
2041}
2042
2043/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2044   function prototypes and stuff, but not \xHH hex character constants.
2045   These do not provoke an error unfortunately, instead are silently treated
2046   as an "x".  The following induces an error, until -std is added to get
2047   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2048   array size at least.  It is necessary to write \x00 == 0 to get something
2049   that is true only with -std.  */
2050int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2051
2052/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2053   inside strings and character constants.  */
2054#define FOO(x) '\''x'\''
2055int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2056
2057int test (int i, double x);
2058struct s1 {int (*f) (int a);};
2059struct s2 {int (*f) (double a);};
2060int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2061               int, int);'
2062
2063# Test code for whether the C compiler supports C89 (body of main).
2064ac_c_conftest_c89_main='
2065ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2066'
2067
2068# Test code for whether the C compiler supports C99 (global declarations)
2069ac_c_conftest_c99_globals='
2070// Does the compiler advertise C99 conformance?
2071#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2072# error "Compiler does not advertise C99 conformance"
2073#endif
2074
2075#include <stdbool.h>
2076extern int puts (const char *);
2077extern int printf (const char *, ...);
2078extern int dprintf (int, const char *, ...);
2079extern void *malloc (size_t);
2080
2081// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2082// dprintf is used instead of fprintf to avoid needing to declare
2083// FILE and stderr.
2084#define debug(...) dprintf (2, __VA_ARGS__)
2085#define showlist(...) puts (#__VA_ARGS__)
2086#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2087static void
2088test_varargs_macros (void)
2089{
2090  int x = 1234;
2091  int y = 5678;
2092  debug ("Flag");
2093  debug ("X = %d\n", x);
2094  showlist (The first, second, and third items.);
2095  report (x>y, "x is %d but y is %d", x, y);
2096}
2097
2098// Check long long types.
2099#define BIG64 18446744073709551615ull
2100#define BIG32 4294967295ul
2101#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2102#if !BIG_OK
2103  #error "your preprocessor is broken"
2104#endif
2105#if BIG_OK
2106#else
2107  #error "your preprocessor is broken"
2108#endif
2109static long long int bignum = -9223372036854775807LL;
2110static unsigned long long int ubignum = BIG64;
2111
2112struct incomplete_array
2113{
2114  int datasize;
2115  double data[];
2116};
2117
2118struct named_init {
2119  int number;
2120  const wchar_t *name;
2121  double average;
2122};
2123
2124typedef const char *ccp;
2125
2126static inline int
2127test_restrict (ccp restrict text)
2128{
2129  // See if C++-style comments work.
2130  // Iterate through items via the restricted pointer.
2131  // Also check for declarations in for loops.
2132  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2133    continue;
2134  return 0;
2135}
2136
2137// Check varargs and va_copy.
2138static bool
2139test_varargs (const char *format, ...)
2140{
2141  va_list args;
2142  va_start (args, format);
2143  va_list args_copy;
2144  va_copy (args_copy, args);
2145
2146  const char *str = "";
2147  int number = 0;
2148  float fnumber = 0;
2149
2150  while (*format)
2151    {
2152      switch (*format++)
2153	{
2154	case '\''s'\'': // string
2155	  str = va_arg (args_copy, const char *);
2156	  break;
2157	case '\''d'\'': // int
2158	  number = va_arg (args_copy, int);
2159	  break;
2160	case '\''f'\'': // float
2161	  fnumber = va_arg (args_copy, double);
2162	  break;
2163	default:
2164	  break;
2165	}
2166    }
2167  va_end (args_copy);
2168  va_end (args);
2169
2170  return *str && number && fnumber;
2171}
2172'
2173
2174# Test code for whether the C compiler supports C99 (body of main).
2175ac_c_conftest_c99_main='
2176  // Check bool.
2177  _Bool success = false;
2178  success |= (argc != 0);
2179
2180  // Check restrict.
2181  if (test_restrict ("String literal") == 0)
2182    success = true;
2183  char *restrict newvar = "Another string";
2184
2185  // Check varargs.
2186  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2187  test_varargs_macros ();
2188
2189  // Check flexible array members.
2190  struct incomplete_array *ia =
2191    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2192  ia->datasize = 10;
2193  for (int i = 0; i < ia->datasize; ++i)
2194    ia->data[i] = i * 1.234;
2195
2196  // Check named initializers.
2197  struct named_init ni = {
2198    .number = 34,
2199    .name = L"Test wide string",
2200    .average = 543.34343,
2201  };
2202
2203  ni.number = 58;
2204
2205  int dynamic_array[ni.number];
2206  dynamic_array[0] = argv[0][0];
2207  dynamic_array[ni.number - 1] = 543;
2208
2209  // work around unused variable warnings
2210  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2211	 || dynamic_array[ni.number - 1] != 543);
2212'
2213
2214# Test code for whether the C compiler supports C11 (global declarations)
2215ac_c_conftest_c11_globals='
2216// Does the compiler advertise C11 conformance?
2217#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2218# error "Compiler does not advertise C11 conformance"
2219#endif
2220
2221// Check _Alignas.
2222char _Alignas (double) aligned_as_double;
2223char _Alignas (0) no_special_alignment;
2224extern char aligned_as_int;
2225char _Alignas (0) _Alignas (int) aligned_as_int;
2226
2227// Check _Alignof.
2228enum
2229{
2230  int_alignment = _Alignof (int),
2231  int_array_alignment = _Alignof (int[100]),
2232  char_alignment = _Alignof (char)
2233};
2234_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2235
2236// Check _Noreturn.
2237int _Noreturn does_not_return (void) { for (;;) continue; }
2238
2239// Check _Static_assert.
2240struct test_static_assert
2241{
2242  int x;
2243  _Static_assert (sizeof (int) <= sizeof (long int),
2244                  "_Static_assert does not work in struct");
2245  long int y;
2246};
2247
2248// Check UTF-8 literals.
2249#define u8 syntax error!
2250char const utf8_literal[] = u8"happens to be ASCII" "another string";
2251
2252// Check duplicate typedefs.
2253typedef long *long_ptr;
2254typedef long int *long_ptr;
2255typedef long_ptr long_ptr;
2256
2257// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2258struct anonymous
2259{
2260  union {
2261    struct { int i; int j; };
2262    struct { int k; long int l; } w;
2263  };
2264  int m;
2265} v1;
2266'
2267
2268# Test code for whether the C compiler supports C11 (body of main).
2269ac_c_conftest_c11_main='
2270  _Static_assert ((offsetof (struct anonymous, i)
2271		   == offsetof (struct anonymous, w.k)),
2272		  "Anonymous union alignment botch");
2273  v1.i = 2;
2274  v1.w.k = 5;
2275  ok |= v1.i != 5;
2276'
2277
2278# Test code for whether the C compiler supports C11 (complete).
2279ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2280${ac_c_conftest_c99_globals}
2281${ac_c_conftest_c11_globals}
2282
2283int
2284main (int argc, char **argv)
2285{
2286  int ok = 0;
2287  ${ac_c_conftest_c89_main}
2288  ${ac_c_conftest_c99_main}
2289  ${ac_c_conftest_c11_main}
2290  return ok;
2291}
2292"
2293
2294# Test code for whether the C compiler supports C99 (complete).
2295ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2296${ac_c_conftest_c99_globals}
2297
2298int
2299main (int argc, char **argv)
2300{
2301  int ok = 0;
2302  ${ac_c_conftest_c89_main}
2303  ${ac_c_conftest_c99_main}
2304  return ok;
2305}
2306"
2307
2308# Test code for whether the C compiler supports C89 (complete).
2309ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2310
2311int
2312main (int argc, char **argv)
2313{
2314  int ok = 0;
2315  ${ac_c_conftest_c89_main}
2316  return ok;
2317}
2318"
2319
2320as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2321as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2322as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2323as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2324as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2325as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2326as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2327as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2328as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2329
2330# Auxiliary files required by this configure script.
2331ac_aux_files="config.guess config.sub compile missing install-sh"
2332
2333# Locations in which to look for auxiliary files.
2334ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2335
2336# Search for a directory containing all of the required auxiliary files,
2337# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2338# If we don't find one directory that contains all the files we need,
2339# we report the set of missing files from the *first* directory in
2340# $ac_aux_dir_candidates and give up.
2341ac_missing_aux_files=""
2342ac_first_candidate=:
2343printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345as_found=false
2346for as_dir in $ac_aux_dir_candidates
2347do
2348  IFS=$as_save_IFS
2349  case $as_dir in #(((
2350    '') as_dir=./ ;;
2351    */) ;;
2352    *) as_dir=$as_dir/ ;;
2353  esac
2354  as_found=:
2355
2356  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2357  ac_aux_dir_found=yes
2358  ac_install_sh=
2359  for ac_aux in $ac_aux_files
2360  do
2361    # As a special case, if "install-sh" is required, that requirement
2362    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2363    # and $ac_install_sh is set appropriately for whichever one is found.
2364    if test x"$ac_aux" = x"install-sh"
2365    then
2366      if test -f "${as_dir}install-sh"; then
2367        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2368        ac_install_sh="${as_dir}install-sh -c"
2369      elif test -f "${as_dir}install.sh"; then
2370        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2371        ac_install_sh="${as_dir}install.sh -c"
2372      elif test -f "${as_dir}shtool"; then
2373        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2374        ac_install_sh="${as_dir}shtool install -c"
2375      else
2376        ac_aux_dir_found=no
2377        if $ac_first_candidate; then
2378          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2379        else
2380          break
2381        fi
2382      fi
2383    else
2384      if test -f "${as_dir}${ac_aux}"; then
2385        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2386      else
2387        ac_aux_dir_found=no
2388        if $ac_first_candidate; then
2389          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2390        else
2391          break
2392        fi
2393      fi
2394    fi
2395  done
2396  if test "$ac_aux_dir_found" = yes; then
2397    ac_aux_dir="$as_dir"
2398    break
2399  fi
2400  ac_first_candidate=false
2401
2402  as_found=false
2403done
2404IFS=$as_save_IFS
2405if $as_found
2406then :
2407
2408else $as_nop
2409  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2410fi
2411
2412
2413# These three variables are undocumented and unsupported,
2414# and are intended to be withdrawn in a future Autoconf release.
2415# They can cause serious problems if a builder's source tree is in a directory
2416# whose full name contains unusual characters.
2417if test -f "${ac_aux_dir}config.guess"; then
2418  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2419fi
2420if test -f "${ac_aux_dir}config.sub"; then
2421  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2422fi
2423if test -f "$ac_aux_dir/configure"; then
2424  ac_configure="$SHELL ${ac_aux_dir}configure"
2425fi
2426
2427# Check that the precious variables saved in the cache have kept the same
2428# value.
2429ac_cache_corrupted=false
2430for ac_var in $ac_precious_vars; do
2431  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2432  eval ac_new_set=\$ac_env_${ac_var}_set
2433  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2434  eval ac_new_val=\$ac_env_${ac_var}_value
2435  case $ac_old_set,$ac_new_set in
2436    set,)
2437      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2438printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2439      ac_cache_corrupted=: ;;
2440    ,set)
2441      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2442printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2443      ac_cache_corrupted=: ;;
2444    ,);;
2445    *)
2446      if test "x$ac_old_val" != "x$ac_new_val"; then
2447	# differences in whitespace do not lead to failure.
2448	ac_old_val_w=`echo x $ac_old_val`
2449	ac_new_val_w=`echo x $ac_new_val`
2450	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2451	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2452printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2453	  ac_cache_corrupted=:
2454	else
2455	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2456printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2457	  eval $ac_var=\$ac_old_val
2458	fi
2459	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2460printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2461	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2462printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2463      fi;;
2464  esac
2465  # Pass precious variables to config.status.
2466  if test "$ac_new_set" = set; then
2467    case $ac_new_val in
2468    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2469    *) ac_arg=$ac_var=$ac_new_val ;;
2470    esac
2471    case " $ac_configure_args " in
2472      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2473      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2474    esac
2475  fi
2476done
2477if $ac_cache_corrupted; then
2478  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2479printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2480  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2481printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2482  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2483	    and start over" "$LINENO" 5
2484fi
2485## -------------------- ##
2486## Main body of script. ##
2487## -------------------- ##
2488
2489ac_ext=c
2490ac_cpp='$CPP $CPPFLAGS'
2491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2493ac_compiler_gnu=$ac_cv_c_compiler_gnu
2494
2495
2496
2497ac_config_headers="$ac_config_headers config.h"
2498
2499
2500# Initialize Automake
2501am__api_version='1.16'
2502
2503
2504
2505  # Find a good install program.  We prefer a C program (faster),
2506# so one script is as good as another.  But avoid the broken or
2507# incompatible versions:
2508# SysV /etc/install, /usr/sbin/install
2509# SunOS /usr/etc/install
2510# IRIX /sbin/install
2511# AIX /bin/install
2512# AmigaOS /C/install, which installs bootblocks on floppy discs
2513# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2514# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2515# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2516# OS/2's system install, which has a completely different semantic
2517# ./install, which can be erroneously created by make from ./install.sh.
2518# Reject install programs that cannot install multiple files.
2519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2520printf %s "checking for a BSD-compatible install... " >&6; }
2521if test -z "$INSTALL"; then
2522if test ${ac_cv_path_install+y}
2523then :
2524  printf %s "(cached) " >&6
2525else $as_nop
2526  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527for as_dir in $PATH
2528do
2529  IFS=$as_save_IFS
2530  case $as_dir in #(((
2531    '') as_dir=./ ;;
2532    */) ;;
2533    *) as_dir=$as_dir/ ;;
2534  esac
2535    # Account for fact that we put trailing slashes in our PATH walk.
2536case $as_dir in #((
2537  ./ | /[cC]/* | \
2538  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2539  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2540  /usr/ucb/* ) ;;
2541  *)
2542    # OSF1 and SCO ODT 3.0 have their own names for install.
2543    # Don't use installbsd from OSF since it installs stuff as root
2544    # by default.
2545    for ac_prog in ginstall scoinst install; do
2546      for ac_exec_ext in '' $ac_executable_extensions; do
2547	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2548	  if test $ac_prog = install &&
2549	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2550	    # AIX install.  It has an incompatible calling convention.
2551	    :
2552	  elif test $ac_prog = install &&
2553	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2554	    # program-specific install script used by HP pwplus--don't use.
2555	    :
2556	  else
2557	    rm -rf conftest.one conftest.two conftest.dir
2558	    echo one > conftest.one
2559	    echo two > conftest.two
2560	    mkdir conftest.dir
2561	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2562	      test -s conftest.one && test -s conftest.two &&
2563	      test -s conftest.dir/conftest.one &&
2564	      test -s conftest.dir/conftest.two
2565	    then
2566	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2567	      break 3
2568	    fi
2569	  fi
2570	fi
2571      done
2572    done
2573    ;;
2574esac
2575
2576  done
2577IFS=$as_save_IFS
2578
2579rm -rf conftest.one conftest.two conftest.dir
2580
2581fi
2582  if test ${ac_cv_path_install+y}; then
2583    INSTALL=$ac_cv_path_install
2584  else
2585    # As a last resort, use the slow shell script.  Don't cache a
2586    # value for INSTALL within a source directory, because that will
2587    # break other packages using the cache if that directory is
2588    # removed, or if the value is a relative name.
2589    INSTALL=$ac_install_sh
2590  fi
2591fi
2592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2593printf "%s\n" "$INSTALL" >&6; }
2594
2595# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2596# It thinks the first close brace ends the variable substitution.
2597test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2598
2599test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2600
2601test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2602
2603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2604printf %s "checking whether build environment is sane... " >&6; }
2605# Reject unsafe characters in $srcdir or the absolute working directory
2606# name.  Accept space and tab only in the latter.
2607am_lf='
2608'
2609case `pwd` in
2610  *[\\\"\#\$\&\'\`$am_lf]*)
2611    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2612esac
2613case $srcdir in
2614  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2615    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2616esac
2617
2618# Do 'set' in a subshell so we don't clobber the current shell's
2619# arguments.  Must try -L first in case configure is actually a
2620# symlink; some systems play weird games with the mod time of symlinks
2621# (eg FreeBSD returns the mod time of the symlink's containing
2622# directory).
2623if (
2624   am_has_slept=no
2625   for am_try in 1 2; do
2626     echo "timestamp, slept: $am_has_slept" > conftest.file
2627     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2628     if test "$*" = "X"; then
2629	# -L didn't work.
2630	set X `ls -t "$srcdir/configure" conftest.file`
2631     fi
2632     if test "$*" != "X $srcdir/configure conftest.file" \
2633	&& test "$*" != "X conftest.file $srcdir/configure"; then
2634
2635	# If neither matched, then we have a broken ls.  This can happen
2636	# if, for instance, CONFIG_SHELL is bash and it inherits a
2637	# broken ls alias from the environment.  This has actually
2638	# happened.  Such a system could not be considered "sane".
2639	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2640  alias in your environment" "$LINENO" 5
2641     fi
2642     if test "$2" = conftest.file || test $am_try -eq 2; then
2643       break
2644     fi
2645     # Just in case.
2646     sleep 1
2647     am_has_slept=yes
2648   done
2649   test "$2" = conftest.file
2650   )
2651then
2652   # Ok.
2653   :
2654else
2655   as_fn_error $? "newly created file is older than distributed files!
2656Check your system clock" "$LINENO" 5
2657fi
2658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2659printf "%s\n" "yes" >&6; }
2660# If we didn't sleep, we still need to ensure time stamps of config.status and
2661# generated files are strictly newer.
2662am_sleep_pid=
2663if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2664  ( sleep 1 ) &
2665  am_sleep_pid=$!
2666fi
2667
2668rm -f conftest.file
2669
2670test "$program_prefix" != NONE &&
2671  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2672# Use a double $ so make ignores it.
2673test "$program_suffix" != NONE &&
2674  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2675# Double any \ or $.
2676# By default was `s,x,x', remove it if useless.
2677ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2678program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2679
2680
2681# Expand $ac_aux_dir to an absolute path.
2682am_aux_dir=`cd "$ac_aux_dir" && pwd`
2683
2684
2685  if test x"${MISSING+set}" != xset; then
2686  MISSING="\${SHELL} '$am_aux_dir/missing'"
2687fi
2688# Use eval to expand $SHELL
2689if eval "$MISSING --is-lightweight"; then
2690  am_missing_run="$MISSING "
2691else
2692  am_missing_run=
2693  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2694printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2695fi
2696
2697if test x"${install_sh+set}" != xset; then
2698  case $am_aux_dir in
2699  *\ * | *\	*)
2700    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2701  *)
2702    install_sh="\${SHELL} $am_aux_dir/install-sh"
2703  esac
2704fi
2705
2706# Installed binaries are usually stripped using 'strip' when the user
2707# run "make install-strip".  However 'strip' might not be the right
2708# tool to use in cross-compilation environments, therefore Automake
2709# will honor the 'STRIP' environment variable to overrule this program.
2710if test "$cross_compiling" != no; then
2711  if test -n "$ac_tool_prefix"; then
2712  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2713set dummy ${ac_tool_prefix}strip; ac_word=$2
2714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715printf %s "checking for $ac_word... " >&6; }
2716if test ${ac_cv_prog_STRIP+y}
2717then :
2718  printf %s "(cached) " >&6
2719else $as_nop
2720  if test -n "$STRIP"; then
2721  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2722else
2723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724for as_dir in $PATH
2725do
2726  IFS=$as_save_IFS
2727  case $as_dir in #(((
2728    '') as_dir=./ ;;
2729    */) ;;
2730    *) as_dir=$as_dir/ ;;
2731  esac
2732    for ac_exec_ext in '' $ac_executable_extensions; do
2733  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2734    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2735    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2736    break 2
2737  fi
2738done
2739  done
2740IFS=$as_save_IFS
2741
2742fi
2743fi
2744STRIP=$ac_cv_prog_STRIP
2745if test -n "$STRIP"; then
2746  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2747printf "%s\n" "$STRIP" >&6; }
2748else
2749  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2750printf "%s\n" "no" >&6; }
2751fi
2752
2753
2754fi
2755if test -z "$ac_cv_prog_STRIP"; then
2756  ac_ct_STRIP=$STRIP
2757  # Extract the first word of "strip", so it can be a program name with args.
2758set dummy strip; ac_word=$2
2759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2760printf %s "checking for $ac_word... " >&6; }
2761if test ${ac_cv_prog_ac_ct_STRIP+y}
2762then :
2763  printf %s "(cached) " >&6
2764else $as_nop
2765  if test -n "$ac_ct_STRIP"; then
2766  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2767else
2768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769for as_dir in $PATH
2770do
2771  IFS=$as_save_IFS
2772  case $as_dir in #(((
2773    '') as_dir=./ ;;
2774    */) ;;
2775    *) as_dir=$as_dir/ ;;
2776  esac
2777    for ac_exec_ext in '' $ac_executable_extensions; do
2778  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2779    ac_cv_prog_ac_ct_STRIP="strip"
2780    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2781    break 2
2782  fi
2783done
2784  done
2785IFS=$as_save_IFS
2786
2787fi
2788fi
2789ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2790if test -n "$ac_ct_STRIP"; then
2791  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2792printf "%s\n" "$ac_ct_STRIP" >&6; }
2793else
2794  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2795printf "%s\n" "no" >&6; }
2796fi
2797
2798  if test "x$ac_ct_STRIP" = x; then
2799    STRIP=":"
2800  else
2801    case $cross_compiling:$ac_tool_warned in
2802yes:)
2803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2804printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2805ac_tool_warned=yes ;;
2806esac
2807    STRIP=$ac_ct_STRIP
2808  fi
2809else
2810  STRIP="$ac_cv_prog_STRIP"
2811fi
2812
2813fi
2814INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2815
2816
2817  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2818printf %s "checking for a race-free mkdir -p... " >&6; }
2819if test -z "$MKDIR_P"; then
2820  if test ${ac_cv_path_mkdir+y}
2821then :
2822  printf %s "(cached) " >&6
2823else $as_nop
2824  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2826do
2827  IFS=$as_save_IFS
2828  case $as_dir in #(((
2829    '') as_dir=./ ;;
2830    */) ;;
2831    *) as_dir=$as_dir/ ;;
2832  esac
2833    for ac_prog in mkdir gmkdir; do
2834	 for ac_exec_ext in '' $ac_executable_extensions; do
2835	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2836	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2837	     'mkdir ('*'coreutils) '* | \
2838	     'BusyBox '* | \
2839	     'mkdir (fileutils) '4.1*)
2840	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2841	       break 3;;
2842	   esac
2843	 done
2844       done
2845  done
2846IFS=$as_save_IFS
2847
2848fi
2849
2850  test -d ./--version && rmdir ./--version
2851  if test ${ac_cv_path_mkdir+y}; then
2852    MKDIR_P="$ac_cv_path_mkdir -p"
2853  else
2854    # As a last resort, use the slow shell script.  Don't cache a
2855    # value for MKDIR_P within a source directory, because that will
2856    # break other packages using the cache if that directory is
2857    # removed, or if the value is a relative name.
2858    MKDIR_P="$ac_install_sh -d"
2859  fi
2860fi
2861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2862printf "%s\n" "$MKDIR_P" >&6; }
2863
2864for ac_prog in gawk mawk nawk awk
2865do
2866  # Extract the first word of "$ac_prog", so it can be a program name with args.
2867set dummy $ac_prog; ac_word=$2
2868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2869printf %s "checking for $ac_word... " >&6; }
2870if test ${ac_cv_prog_AWK+y}
2871then :
2872  printf %s "(cached) " >&6
2873else $as_nop
2874  if test -n "$AWK"; then
2875  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2876else
2877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878for as_dir in $PATH
2879do
2880  IFS=$as_save_IFS
2881  case $as_dir in #(((
2882    '') as_dir=./ ;;
2883    */) ;;
2884    *) as_dir=$as_dir/ ;;
2885  esac
2886    for ac_exec_ext in '' $ac_executable_extensions; do
2887  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2888    ac_cv_prog_AWK="$ac_prog"
2889    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2890    break 2
2891  fi
2892done
2893  done
2894IFS=$as_save_IFS
2895
2896fi
2897fi
2898AWK=$ac_cv_prog_AWK
2899if test -n "$AWK"; then
2900  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2901printf "%s\n" "$AWK" >&6; }
2902else
2903  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2904printf "%s\n" "no" >&6; }
2905fi
2906
2907
2908  test -n "$AWK" && break
2909done
2910
2911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2912printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2913set x ${MAKE-make}
2914ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2915if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2916then :
2917  printf %s "(cached) " >&6
2918else $as_nop
2919  cat >conftest.make <<\_ACEOF
2920SHELL = /bin/sh
2921all:
2922	@echo '@@@%%%=$(MAKE)=@@@%%%'
2923_ACEOF
2924# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2925case `${MAKE-make} -f conftest.make 2>/dev/null` in
2926  *@@@%%%=?*=@@@%%%*)
2927    eval ac_cv_prog_make_${ac_make}_set=yes;;
2928  *)
2929    eval ac_cv_prog_make_${ac_make}_set=no;;
2930esac
2931rm -f conftest.make
2932fi
2933if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2934  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2935printf "%s\n" "yes" >&6; }
2936  SET_MAKE=
2937else
2938  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2939printf "%s\n" "no" >&6; }
2940  SET_MAKE="MAKE=${MAKE-make}"
2941fi
2942
2943rm -rf .tst 2>/dev/null
2944mkdir .tst 2>/dev/null
2945if test -d .tst; then
2946  am__leading_dot=.
2947else
2948  am__leading_dot=_
2949fi
2950rmdir .tst 2>/dev/null
2951
2952# Check whether --enable-silent-rules was given.
2953if test ${enable_silent_rules+y}
2954then :
2955  enableval=$enable_silent_rules;
2956fi
2957
2958case $enable_silent_rules in # (((
2959  yes) AM_DEFAULT_VERBOSITY=0;;
2960   no) AM_DEFAULT_VERBOSITY=1;;
2961    *) AM_DEFAULT_VERBOSITY=1;;
2962esac
2963am_make=${MAKE-make}
2964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2965printf %s "checking whether $am_make supports nested variables... " >&6; }
2966if test ${am_cv_make_support_nested_variables+y}
2967then :
2968  printf %s "(cached) " >&6
2969else $as_nop
2970  if printf "%s\n" 'TRUE=$(BAR$(V))
2971BAR0=false
2972BAR1=true
2973V=1
2974am__doit:
2975	@$(TRUE)
2976.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2977  am_cv_make_support_nested_variables=yes
2978else
2979  am_cv_make_support_nested_variables=no
2980fi
2981fi
2982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2983printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
2984if test $am_cv_make_support_nested_variables = yes; then
2985    AM_V='$(V)'
2986  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2987else
2988  AM_V=$AM_DEFAULT_VERBOSITY
2989  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2990fi
2991AM_BACKSLASH='\'
2992
2993if test "`cd $srcdir && pwd`" != "`pwd`"; then
2994  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2995  # is not polluted with repeated "-I."
2996  am__isrc=' -I$(srcdir)'
2997  # test to see if srcdir already configured
2998  if test -f $srcdir/config.status; then
2999    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3000  fi
3001fi
3002
3003# test whether we have cygpath
3004if test -z "$CYGPATH_W"; then
3005  if (cygpath --version) >/dev/null 2>/dev/null; then
3006    CYGPATH_W='cygpath -w'
3007  else
3008    CYGPATH_W=echo
3009  fi
3010fi
3011
3012
3013# Define the identity of the package.
3014 PACKAGE='oclock'
3015 VERSION='1.0.5'
3016
3017
3018printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3019
3020
3021printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3022
3023# Some tools Automake needs.
3024
3025ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3026
3027
3028AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3029
3030
3031AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3032
3033
3034AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3035
3036
3037MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3038
3039# For better backward compatibility.  To be removed once Automake 1.9.x
3040# dies out for good.  For more background, see:
3041# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3042# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3043mkdir_p='$(MKDIR_P)'
3044
3045# We need awk for the "check" target (and possibly the TAP driver).  The
3046# system "awk" is bad on some platforms.
3047# Always define AMTAR for backward compatibility.  Yes, it's still used
3048# in the wild :-(  We should find a proper way to deprecate it ...
3049AMTAR='$${TAR-tar}'
3050
3051
3052# We'll loop over all known methods to create a tar archive until one works.
3053_am_tools='gnutar  pax cpio none'
3054
3055am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3056
3057
3058
3059
3060
3061# Variables for tags utilities; see am/tags.am
3062if test -z "$CTAGS"; then
3063  CTAGS=ctags
3064fi
3065
3066if test -z "$ETAGS"; then
3067  ETAGS=etags
3068fi
3069
3070if test -z "$CSCOPE"; then
3071  CSCOPE=cscope
3072fi
3073
3074
3075
3076# POSIX will say in a future version that running "rm -f" with no argument
3077# is OK; and we want to be able to make that assumption in our Makefile
3078# recipes.  So use an aggressive probe to check that the usage we want is
3079# actually supported "in the wild" to an acceptable degree.
3080# See automake bug#10828.
3081# To make any issue more visible, cause the running configure to be aborted
3082# by default if the 'rm' program in use doesn't match our expectations; the
3083# user can still override this though.
3084if rm -f && rm -fr && rm -rf; then : OK; else
3085  cat >&2 <<'END'
3086Oops!
3087
3088Your 'rm' program seems unable to run without file operands specified
3089on the command line, even when the '-f' option is present.  This is contrary
3090to the behaviour of most rm programs out there, and not conforming with
3091the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3092
3093Please tell bug-automake@gnu.org about your system, including the value
3094of your $PATH and any error possibly output before this message.  This
3095can help us improve future automake versions.
3096
3097END
3098  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3099    echo 'Configuration will proceed anyway, since you have set the' >&2
3100    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3101    echo >&2
3102  else
3103    cat >&2 <<'END'
3104Aborting the configuration process, to ensure you take notice of the issue.
3105
3106You can download and install GNU coreutils to get an 'rm' implementation
3107that behaves properly: <https://www.gnu.org/software/coreutils/>.
3108
3109If you want to complete the configuration process using your problematic
3110'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3111to "yes", and re-run configure.
3112
3113END
3114    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3115  fi
3116fi
3117
3118
3119# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140DEPDIR="${am__leading_dot}deps"
3141
3142ac_config_commands="$ac_config_commands depfiles"
3143
3144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3145printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3146cat > confinc.mk << 'END'
3147am__doit:
3148	@echo this is the am__doit target >confinc.out
3149.PHONY: am__doit
3150END
3151am__include="#"
3152am__quote=
3153# BSD make does it like this.
3154echo '.include "confinc.mk" # ignored' > confmf.BSD
3155# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3156echo 'include confinc.mk # ignored' > confmf.GNU
3157_am_result=no
3158for s in GNU BSD; do
3159  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3160   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3161   ac_status=$?
3162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163   (exit $ac_status); }
3164  case $?:`cat confinc.out 2>/dev/null` in #(
3165  '0:this is the am__doit target') :
3166    case $s in #(
3167  BSD) :
3168    am__include='.include' am__quote='"' ;; #(
3169  *) :
3170    am__include='include' am__quote='' ;;
3171esac ;; #(
3172  *) :
3173     ;;
3174esac
3175  if test "$am__include" != "#"; then
3176    _am_result="yes ($s style)"
3177    break
3178  fi
3179done
3180rm -f confinc.* confmf.*
3181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3182printf "%s\n" "${_am_result}" >&6; }
3183
3184# Check whether --enable-dependency-tracking was given.
3185if test ${enable_dependency_tracking+y}
3186then :
3187  enableval=$enable_dependency_tracking;
3188fi
3189
3190if test "x$enable_dependency_tracking" != xno; then
3191  am_depcomp="$ac_aux_dir/depcomp"
3192  AMDEPBACKSLASH='\'
3193  am__nodep='_no'
3194fi
3195 if test "x$enable_dependency_tracking" != xno; then
3196  AMDEP_TRUE=
3197  AMDEP_FALSE='#'
3198else
3199  AMDEP_TRUE='#'
3200  AMDEP_FALSE=
3201fi
3202
3203
3204ac_ext=c
3205ac_cpp='$CPP $CPPFLAGS'
3206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3208ac_compiler_gnu=$ac_cv_c_compiler_gnu
3209if test -n "$ac_tool_prefix"; then
3210  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3211set dummy ${ac_tool_prefix}gcc; ac_word=$2
3212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3213printf %s "checking for $ac_word... " >&6; }
3214if test ${ac_cv_prog_CC+y}
3215then :
3216  printf %s "(cached) " >&6
3217else $as_nop
3218  if test -n "$CC"; then
3219  ac_cv_prog_CC="$CC" # Let the user override the test.
3220else
3221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222for as_dir in $PATH
3223do
3224  IFS=$as_save_IFS
3225  case $as_dir in #(((
3226    '') as_dir=./ ;;
3227    */) ;;
3228    *) as_dir=$as_dir/ ;;
3229  esac
3230    for ac_exec_ext in '' $ac_executable_extensions; do
3231  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3232    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3233    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3234    break 2
3235  fi
3236done
3237  done
3238IFS=$as_save_IFS
3239
3240fi
3241fi
3242CC=$ac_cv_prog_CC
3243if test -n "$CC"; then
3244  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3245printf "%s\n" "$CC" >&6; }
3246else
3247  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248printf "%s\n" "no" >&6; }
3249fi
3250
3251
3252fi
3253if test -z "$ac_cv_prog_CC"; then
3254  ac_ct_CC=$CC
3255  # Extract the first word of "gcc", so it can be a program name with args.
3256set dummy gcc; ac_word=$2
3257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3258printf %s "checking for $ac_word... " >&6; }
3259if test ${ac_cv_prog_ac_ct_CC+y}
3260then :
3261  printf %s "(cached) " >&6
3262else $as_nop
3263  if test -n "$ac_ct_CC"; then
3264  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3265else
3266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267for as_dir in $PATH
3268do
3269  IFS=$as_save_IFS
3270  case $as_dir in #(((
3271    '') as_dir=./ ;;
3272    */) ;;
3273    *) as_dir=$as_dir/ ;;
3274  esac
3275    for ac_exec_ext in '' $ac_executable_extensions; do
3276  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3277    ac_cv_prog_ac_ct_CC="gcc"
3278    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3279    break 2
3280  fi
3281done
3282  done
3283IFS=$as_save_IFS
3284
3285fi
3286fi
3287ac_ct_CC=$ac_cv_prog_ac_ct_CC
3288if test -n "$ac_ct_CC"; then
3289  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3290printf "%s\n" "$ac_ct_CC" >&6; }
3291else
3292  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293printf "%s\n" "no" >&6; }
3294fi
3295
3296  if test "x$ac_ct_CC" = x; then
3297    CC=""
3298  else
3299    case $cross_compiling:$ac_tool_warned in
3300yes:)
3301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3302printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3303ac_tool_warned=yes ;;
3304esac
3305    CC=$ac_ct_CC
3306  fi
3307else
3308  CC="$ac_cv_prog_CC"
3309fi
3310
3311if test -z "$CC"; then
3312          if test -n "$ac_tool_prefix"; then
3313    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3314set dummy ${ac_tool_prefix}cc; ac_word=$2
3315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3316printf %s "checking for $ac_word... " >&6; }
3317if test ${ac_cv_prog_CC+y}
3318then :
3319  printf %s "(cached) " >&6
3320else $as_nop
3321  if test -n "$CC"; then
3322  ac_cv_prog_CC="$CC" # Let the user override the test.
3323else
3324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325for as_dir in $PATH
3326do
3327  IFS=$as_save_IFS
3328  case $as_dir in #(((
3329    '') as_dir=./ ;;
3330    */) ;;
3331    *) as_dir=$as_dir/ ;;
3332  esac
3333    for ac_exec_ext in '' $ac_executable_extensions; do
3334  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3335    ac_cv_prog_CC="${ac_tool_prefix}cc"
3336    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3337    break 2
3338  fi
3339done
3340  done
3341IFS=$as_save_IFS
3342
3343fi
3344fi
3345CC=$ac_cv_prog_CC
3346if test -n "$CC"; then
3347  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3348printf "%s\n" "$CC" >&6; }
3349else
3350  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351printf "%s\n" "no" >&6; }
3352fi
3353
3354
3355  fi
3356fi
3357if test -z "$CC"; then
3358  # Extract the first word of "cc", so it can be a program name with args.
3359set dummy cc; ac_word=$2
3360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3361printf %s "checking for $ac_word... " >&6; }
3362if test ${ac_cv_prog_CC+y}
3363then :
3364  printf %s "(cached) " >&6
3365else $as_nop
3366  if test -n "$CC"; then
3367  ac_cv_prog_CC="$CC" # Let the user override the test.
3368else
3369  ac_prog_rejected=no
3370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371for as_dir in $PATH
3372do
3373  IFS=$as_save_IFS
3374  case $as_dir in #(((
3375    '') as_dir=./ ;;
3376    */) ;;
3377    *) as_dir=$as_dir/ ;;
3378  esac
3379    for ac_exec_ext in '' $ac_executable_extensions; do
3380  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3381    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3382       ac_prog_rejected=yes
3383       continue
3384     fi
3385    ac_cv_prog_CC="cc"
3386    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3387    break 2
3388  fi
3389done
3390  done
3391IFS=$as_save_IFS
3392
3393if test $ac_prog_rejected = yes; then
3394  # We found a bogon in the path, so make sure we never use it.
3395  set dummy $ac_cv_prog_CC
3396  shift
3397  if test $# != 0; then
3398    # We chose a different compiler from the bogus one.
3399    # However, it has the same basename, so the bogon will be chosen
3400    # first if we set CC to just the basename; use the full file name.
3401    shift
3402    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3403  fi
3404fi
3405fi
3406fi
3407CC=$ac_cv_prog_CC
3408if test -n "$CC"; then
3409  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3410printf "%s\n" "$CC" >&6; }
3411else
3412  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3413printf "%s\n" "no" >&6; }
3414fi
3415
3416
3417fi
3418if test -z "$CC"; then
3419  if test -n "$ac_tool_prefix"; then
3420  for ac_prog in cl.exe
3421  do
3422    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3423set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3425printf %s "checking for $ac_word... " >&6; }
3426if test ${ac_cv_prog_CC+y}
3427then :
3428  printf %s "(cached) " >&6
3429else $as_nop
3430  if test -n "$CC"; then
3431  ac_cv_prog_CC="$CC" # Let the user override the test.
3432else
3433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434for as_dir in $PATH
3435do
3436  IFS=$as_save_IFS
3437  case $as_dir in #(((
3438    '') as_dir=./ ;;
3439    */) ;;
3440    *) as_dir=$as_dir/ ;;
3441  esac
3442    for ac_exec_ext in '' $ac_executable_extensions; do
3443  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3444    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3445    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3446    break 2
3447  fi
3448done
3449  done
3450IFS=$as_save_IFS
3451
3452fi
3453fi
3454CC=$ac_cv_prog_CC
3455if test -n "$CC"; then
3456  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3457printf "%s\n" "$CC" >&6; }
3458else
3459  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3460printf "%s\n" "no" >&6; }
3461fi
3462
3463
3464    test -n "$CC" && break
3465  done
3466fi
3467if test -z "$CC"; then
3468  ac_ct_CC=$CC
3469  for ac_prog in cl.exe
3470do
3471  # Extract the first word of "$ac_prog", so it can be a program name with args.
3472set dummy $ac_prog; ac_word=$2
3473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3474printf %s "checking for $ac_word... " >&6; }
3475if test ${ac_cv_prog_ac_ct_CC+y}
3476then :
3477  printf %s "(cached) " >&6
3478else $as_nop
3479  if test -n "$ac_ct_CC"; then
3480  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3481else
3482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483for as_dir in $PATH
3484do
3485  IFS=$as_save_IFS
3486  case $as_dir in #(((
3487    '') as_dir=./ ;;
3488    */) ;;
3489    *) as_dir=$as_dir/ ;;
3490  esac
3491    for ac_exec_ext in '' $ac_executable_extensions; do
3492  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3493    ac_cv_prog_ac_ct_CC="$ac_prog"
3494    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3495    break 2
3496  fi
3497done
3498  done
3499IFS=$as_save_IFS
3500
3501fi
3502fi
3503ac_ct_CC=$ac_cv_prog_ac_ct_CC
3504if test -n "$ac_ct_CC"; then
3505  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3506printf "%s\n" "$ac_ct_CC" >&6; }
3507else
3508  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3509printf "%s\n" "no" >&6; }
3510fi
3511
3512
3513  test -n "$ac_ct_CC" && break
3514done
3515
3516  if test "x$ac_ct_CC" = x; then
3517    CC=""
3518  else
3519    case $cross_compiling:$ac_tool_warned in
3520yes:)
3521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3522printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3523ac_tool_warned=yes ;;
3524esac
3525    CC=$ac_ct_CC
3526  fi
3527fi
3528
3529fi
3530if test -z "$CC"; then
3531  if test -n "$ac_tool_prefix"; then
3532  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3533set dummy ${ac_tool_prefix}clang; ac_word=$2
3534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3535printf %s "checking for $ac_word... " >&6; }
3536if test ${ac_cv_prog_CC+y}
3537then :
3538  printf %s "(cached) " >&6
3539else $as_nop
3540  if test -n "$CC"; then
3541  ac_cv_prog_CC="$CC" # Let the user override the test.
3542else
3543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544for as_dir in $PATH
3545do
3546  IFS=$as_save_IFS
3547  case $as_dir in #(((
3548    '') as_dir=./ ;;
3549    */) ;;
3550    *) as_dir=$as_dir/ ;;
3551  esac
3552    for ac_exec_ext in '' $ac_executable_extensions; do
3553  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3554    ac_cv_prog_CC="${ac_tool_prefix}clang"
3555    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3556    break 2
3557  fi
3558done
3559  done
3560IFS=$as_save_IFS
3561
3562fi
3563fi
3564CC=$ac_cv_prog_CC
3565if test -n "$CC"; then
3566  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3567printf "%s\n" "$CC" >&6; }
3568else
3569  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3570printf "%s\n" "no" >&6; }
3571fi
3572
3573
3574fi
3575if test -z "$ac_cv_prog_CC"; then
3576  ac_ct_CC=$CC
3577  # Extract the first word of "clang", so it can be a program name with args.
3578set dummy clang; ac_word=$2
3579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3580printf %s "checking for $ac_word... " >&6; }
3581if test ${ac_cv_prog_ac_ct_CC+y}
3582then :
3583  printf %s "(cached) " >&6
3584else $as_nop
3585  if test -n "$ac_ct_CC"; then
3586  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3587else
3588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3589for as_dir in $PATH
3590do
3591  IFS=$as_save_IFS
3592  case $as_dir in #(((
3593    '') as_dir=./ ;;
3594    */) ;;
3595    *) as_dir=$as_dir/ ;;
3596  esac
3597    for ac_exec_ext in '' $ac_executable_extensions; do
3598  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3599    ac_cv_prog_ac_ct_CC="clang"
3600    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3601    break 2
3602  fi
3603done
3604  done
3605IFS=$as_save_IFS
3606
3607fi
3608fi
3609ac_ct_CC=$ac_cv_prog_ac_ct_CC
3610if test -n "$ac_ct_CC"; then
3611  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3612printf "%s\n" "$ac_ct_CC" >&6; }
3613else
3614  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3615printf "%s\n" "no" >&6; }
3616fi
3617
3618  if test "x$ac_ct_CC" = x; then
3619    CC=""
3620  else
3621    case $cross_compiling:$ac_tool_warned in
3622yes:)
3623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3624printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3625ac_tool_warned=yes ;;
3626esac
3627    CC=$ac_ct_CC
3628  fi
3629else
3630  CC="$ac_cv_prog_CC"
3631fi
3632
3633fi
3634
3635
3636test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3637printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3638as_fn_error $? "no acceptable C compiler found in \$PATH
3639See \`config.log' for more details" "$LINENO" 5; }
3640
3641# Provide some information about the compiler.
3642printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3643set X $ac_compile
3644ac_compiler=$2
3645for ac_option in --version -v -V -qversion -version; do
3646  { { ac_try="$ac_compiler $ac_option >&5"
3647case "(($ac_try" in
3648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649  *) ac_try_echo=$ac_try;;
3650esac
3651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3652printf "%s\n" "$ac_try_echo"; } >&5
3653  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3654  ac_status=$?
3655  if test -s conftest.err; then
3656    sed '10a\
3657... rest of stderr output deleted ...
3658         10q' conftest.err >conftest.er1
3659    cat conftest.er1 >&5
3660  fi
3661  rm -f conftest.er1 conftest.err
3662  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3663  test $ac_status = 0; }
3664done
3665
3666cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667/* end confdefs.h.  */
3668
3669int
3670main (void)
3671{
3672
3673  ;
3674  return 0;
3675}
3676_ACEOF
3677ac_clean_files_save=$ac_clean_files
3678ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3679# Try to create an executable without -o first, disregard a.out.
3680# It will help us diagnose broken compilers, and finding out an intuition
3681# of exeext.
3682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3683printf %s "checking whether the C compiler works... " >&6; }
3684ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3685
3686# The possible output files:
3687ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3688
3689ac_rmfiles=
3690for ac_file in $ac_files
3691do
3692  case $ac_file in
3693    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3694    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3695  esac
3696done
3697rm -f $ac_rmfiles
3698
3699if { { ac_try="$ac_link_default"
3700case "(($ac_try" in
3701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3702  *) ac_try_echo=$ac_try;;
3703esac
3704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3705printf "%s\n" "$ac_try_echo"; } >&5
3706  (eval "$ac_link_default") 2>&5
3707  ac_status=$?
3708  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3709  test $ac_status = 0; }
3710then :
3711  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3712# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3713# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3714# so that the user can short-circuit this test for compilers unknown to
3715# Autoconf.
3716for ac_file in $ac_files ''
3717do
3718  test -f "$ac_file" || continue
3719  case $ac_file in
3720    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3721	;;
3722    [ab].out )
3723	# We found the default executable, but exeext='' is most
3724	# certainly right.
3725	break;;
3726    *.* )
3727	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3728	then :; else
3729	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3730	fi
3731	# We set ac_cv_exeext here because the later test for it is not
3732	# safe: cross compilers may not add the suffix if given an `-o'
3733	# argument, so we may need to know it at that point already.
3734	# Even if this section looks crufty: it has the advantage of
3735	# actually working.
3736	break;;
3737    * )
3738	break;;
3739  esac
3740done
3741test "$ac_cv_exeext" = no && ac_cv_exeext=
3742
3743else $as_nop
3744  ac_file=''
3745fi
3746if test -z "$ac_file"
3747then :
3748  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3749printf "%s\n" "no" >&6; }
3750printf "%s\n" "$as_me: failed program was:" >&5
3751sed 's/^/| /' conftest.$ac_ext >&5
3752
3753{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3754printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3755as_fn_error 77 "C compiler cannot create executables
3756See \`config.log' for more details" "$LINENO" 5; }
3757else $as_nop
3758  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3759printf "%s\n" "yes" >&6; }
3760fi
3761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3762printf %s "checking for C compiler default output file name... " >&6; }
3763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3764printf "%s\n" "$ac_file" >&6; }
3765ac_exeext=$ac_cv_exeext
3766
3767rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3768ac_clean_files=$ac_clean_files_save
3769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3770printf %s "checking for suffix of executables... " >&6; }
3771if { { ac_try="$ac_link"
3772case "(($ac_try" in
3773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774  *) ac_try_echo=$ac_try;;
3775esac
3776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3777printf "%s\n" "$ac_try_echo"; } >&5
3778  (eval "$ac_link") 2>&5
3779  ac_status=$?
3780  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3781  test $ac_status = 0; }
3782then :
3783  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3784# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3785# work properly (i.e., refer to `conftest.exe'), while it won't with
3786# `rm'.
3787for ac_file in conftest.exe conftest conftest.*; do
3788  test -f "$ac_file" || continue
3789  case $ac_file in
3790    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3791    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3792	  break;;
3793    * ) break;;
3794  esac
3795done
3796else $as_nop
3797  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3798printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3799as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3800See \`config.log' for more details" "$LINENO" 5; }
3801fi
3802rm -f conftest conftest$ac_cv_exeext
3803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3804printf "%s\n" "$ac_cv_exeext" >&6; }
3805
3806rm -f conftest.$ac_ext
3807EXEEXT=$ac_cv_exeext
3808ac_exeext=$EXEEXT
3809cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3810/* end confdefs.h.  */
3811#include <stdio.h>
3812int
3813main (void)
3814{
3815FILE *f = fopen ("conftest.out", "w");
3816 return ferror (f) || fclose (f) != 0;
3817
3818  ;
3819  return 0;
3820}
3821_ACEOF
3822ac_clean_files="$ac_clean_files conftest.out"
3823# Check that the compiler produces executables we can run.  If not, either
3824# the compiler is broken, or we cross compile.
3825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3826printf %s "checking whether we are cross compiling... " >&6; }
3827if test "$cross_compiling" != yes; then
3828  { { ac_try="$ac_link"
3829case "(($ac_try" in
3830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831  *) ac_try_echo=$ac_try;;
3832esac
3833eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3834printf "%s\n" "$ac_try_echo"; } >&5
3835  (eval "$ac_link") 2>&5
3836  ac_status=$?
3837  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3838  test $ac_status = 0; }
3839  if { ac_try='./conftest$ac_cv_exeext'
3840  { { case "(($ac_try" in
3841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842  *) ac_try_echo=$ac_try;;
3843esac
3844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3845printf "%s\n" "$ac_try_echo"; } >&5
3846  (eval "$ac_try") 2>&5
3847  ac_status=$?
3848  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3849  test $ac_status = 0; }; }; then
3850    cross_compiling=no
3851  else
3852    if test "$cross_compiling" = maybe; then
3853	cross_compiling=yes
3854    else
3855	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3856printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3857as_fn_error 77 "cannot run C compiled programs.
3858If you meant to cross compile, use \`--host'.
3859See \`config.log' for more details" "$LINENO" 5; }
3860    fi
3861  fi
3862fi
3863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3864printf "%s\n" "$cross_compiling" >&6; }
3865
3866rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3867ac_clean_files=$ac_clean_files_save
3868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3869printf %s "checking for suffix of object files... " >&6; }
3870if test ${ac_cv_objext+y}
3871then :
3872  printf %s "(cached) " >&6
3873else $as_nop
3874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875/* end confdefs.h.  */
3876
3877int
3878main (void)
3879{
3880
3881  ;
3882  return 0;
3883}
3884_ACEOF
3885rm -f conftest.o conftest.obj
3886if { { ac_try="$ac_compile"
3887case "(($ac_try" in
3888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889  *) ac_try_echo=$ac_try;;
3890esac
3891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3892printf "%s\n" "$ac_try_echo"; } >&5
3893  (eval "$ac_compile") 2>&5
3894  ac_status=$?
3895  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3896  test $ac_status = 0; }
3897then :
3898  for ac_file in conftest.o conftest.obj conftest.*; do
3899  test -f "$ac_file" || continue;
3900  case $ac_file in
3901    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3902    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3903       break;;
3904  esac
3905done
3906else $as_nop
3907  printf "%s\n" "$as_me: failed program was:" >&5
3908sed 's/^/| /' conftest.$ac_ext >&5
3909
3910{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3911printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3912as_fn_error $? "cannot compute suffix of object files: cannot compile
3913See \`config.log' for more details" "$LINENO" 5; }
3914fi
3915rm -f conftest.$ac_cv_objext conftest.$ac_ext
3916fi
3917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3918printf "%s\n" "$ac_cv_objext" >&6; }
3919OBJEXT=$ac_cv_objext
3920ac_objext=$OBJEXT
3921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3922printf %s "checking whether the compiler supports GNU C... " >&6; }
3923if test ${ac_cv_c_compiler_gnu+y}
3924then :
3925  printf %s "(cached) " >&6
3926else $as_nop
3927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928/* end confdefs.h.  */
3929
3930int
3931main (void)
3932{
3933#ifndef __GNUC__
3934       choke me
3935#endif
3936
3937  ;
3938  return 0;
3939}
3940_ACEOF
3941if ac_fn_c_try_compile "$LINENO"
3942then :
3943  ac_compiler_gnu=yes
3944else $as_nop
3945  ac_compiler_gnu=no
3946fi
3947rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3948ac_cv_c_compiler_gnu=$ac_compiler_gnu
3949
3950fi
3951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3952printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3953ac_compiler_gnu=$ac_cv_c_compiler_gnu
3954
3955if test $ac_compiler_gnu = yes; then
3956  GCC=yes
3957else
3958  GCC=
3959fi
3960ac_test_CFLAGS=${CFLAGS+y}
3961ac_save_CFLAGS=$CFLAGS
3962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3963printf %s "checking whether $CC accepts -g... " >&6; }
3964if test ${ac_cv_prog_cc_g+y}
3965then :
3966  printf %s "(cached) " >&6
3967else $as_nop
3968  ac_save_c_werror_flag=$ac_c_werror_flag
3969   ac_c_werror_flag=yes
3970   ac_cv_prog_cc_g=no
3971   CFLAGS="-g"
3972   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973/* end confdefs.h.  */
3974
3975int
3976main (void)
3977{
3978
3979  ;
3980  return 0;
3981}
3982_ACEOF
3983if ac_fn_c_try_compile "$LINENO"
3984then :
3985  ac_cv_prog_cc_g=yes
3986else $as_nop
3987  CFLAGS=""
3988      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3989/* end confdefs.h.  */
3990
3991int
3992main (void)
3993{
3994
3995  ;
3996  return 0;
3997}
3998_ACEOF
3999if ac_fn_c_try_compile "$LINENO"
4000then :
4001
4002else $as_nop
4003  ac_c_werror_flag=$ac_save_c_werror_flag
4004	 CFLAGS="-g"
4005	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006/* end confdefs.h.  */
4007
4008int
4009main (void)
4010{
4011
4012  ;
4013  return 0;
4014}
4015_ACEOF
4016if ac_fn_c_try_compile "$LINENO"
4017then :
4018  ac_cv_prog_cc_g=yes
4019fi
4020rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4021fi
4022rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4023fi
4024rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4025   ac_c_werror_flag=$ac_save_c_werror_flag
4026fi
4027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4028printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4029if test $ac_test_CFLAGS; then
4030  CFLAGS=$ac_save_CFLAGS
4031elif test $ac_cv_prog_cc_g = yes; then
4032  if test "$GCC" = yes; then
4033    CFLAGS="-g -O2"
4034  else
4035    CFLAGS="-g"
4036  fi
4037else
4038  if test "$GCC" = yes; then
4039    CFLAGS="-O2"
4040  else
4041    CFLAGS=
4042  fi
4043fi
4044ac_prog_cc_stdc=no
4045if test x$ac_prog_cc_stdc = xno
4046then :
4047  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4048printf %s "checking for $CC option to enable C11 features... " >&6; }
4049if test ${ac_cv_prog_cc_c11+y}
4050then :
4051  printf %s "(cached) " >&6
4052else $as_nop
4053  ac_cv_prog_cc_c11=no
4054ac_save_CC=$CC
4055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056/* end confdefs.h.  */
4057$ac_c_conftest_c11_program
4058_ACEOF
4059for ac_arg in '' -std=gnu11
4060do
4061  CC="$ac_save_CC $ac_arg"
4062  if ac_fn_c_try_compile "$LINENO"
4063then :
4064  ac_cv_prog_cc_c11=$ac_arg
4065fi
4066rm -f core conftest.err conftest.$ac_objext conftest.beam
4067  test "x$ac_cv_prog_cc_c11" != "xno" && break
4068done
4069rm -f conftest.$ac_ext
4070CC=$ac_save_CC
4071fi
4072
4073if test "x$ac_cv_prog_cc_c11" = xno
4074then :
4075  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4076printf "%s\n" "unsupported" >&6; }
4077else $as_nop
4078  if test "x$ac_cv_prog_cc_c11" = x
4079then :
4080  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4081printf "%s\n" "none needed" >&6; }
4082else $as_nop
4083  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4084printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4085     CC="$CC $ac_cv_prog_cc_c11"
4086fi
4087  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4088  ac_prog_cc_stdc=c11
4089fi
4090fi
4091if test x$ac_prog_cc_stdc = xno
4092then :
4093  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4094printf %s "checking for $CC option to enable C99 features... " >&6; }
4095if test ${ac_cv_prog_cc_c99+y}
4096then :
4097  printf %s "(cached) " >&6
4098else $as_nop
4099  ac_cv_prog_cc_c99=no
4100ac_save_CC=$CC
4101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102/* end confdefs.h.  */
4103$ac_c_conftest_c99_program
4104_ACEOF
4105for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4106do
4107  CC="$ac_save_CC $ac_arg"
4108  if ac_fn_c_try_compile "$LINENO"
4109then :
4110  ac_cv_prog_cc_c99=$ac_arg
4111fi
4112rm -f core conftest.err conftest.$ac_objext conftest.beam
4113  test "x$ac_cv_prog_cc_c99" != "xno" && break
4114done
4115rm -f conftest.$ac_ext
4116CC=$ac_save_CC
4117fi
4118
4119if test "x$ac_cv_prog_cc_c99" = xno
4120then :
4121  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4122printf "%s\n" "unsupported" >&6; }
4123else $as_nop
4124  if test "x$ac_cv_prog_cc_c99" = x
4125then :
4126  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4127printf "%s\n" "none needed" >&6; }
4128else $as_nop
4129  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4130printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4131     CC="$CC $ac_cv_prog_cc_c99"
4132fi
4133  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4134  ac_prog_cc_stdc=c99
4135fi
4136fi
4137if test x$ac_prog_cc_stdc = xno
4138then :
4139  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4140printf %s "checking for $CC option to enable C89 features... " >&6; }
4141if test ${ac_cv_prog_cc_c89+y}
4142then :
4143  printf %s "(cached) " >&6
4144else $as_nop
4145  ac_cv_prog_cc_c89=no
4146ac_save_CC=$CC
4147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148/* end confdefs.h.  */
4149$ac_c_conftest_c89_program
4150_ACEOF
4151for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4152do
4153  CC="$ac_save_CC $ac_arg"
4154  if ac_fn_c_try_compile "$LINENO"
4155then :
4156  ac_cv_prog_cc_c89=$ac_arg
4157fi
4158rm -f core conftest.err conftest.$ac_objext conftest.beam
4159  test "x$ac_cv_prog_cc_c89" != "xno" && break
4160done
4161rm -f conftest.$ac_ext
4162CC=$ac_save_CC
4163fi
4164
4165if test "x$ac_cv_prog_cc_c89" = xno
4166then :
4167  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4168printf "%s\n" "unsupported" >&6; }
4169else $as_nop
4170  if test "x$ac_cv_prog_cc_c89" = x
4171then :
4172  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4173printf "%s\n" "none needed" >&6; }
4174else $as_nop
4175  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4176printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4177     CC="$CC $ac_cv_prog_cc_c89"
4178fi
4179  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4180  ac_prog_cc_stdc=c89
4181fi
4182fi
4183
4184ac_ext=c
4185ac_cpp='$CPP $CPPFLAGS'
4186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4188ac_compiler_gnu=$ac_cv_c_compiler_gnu
4189
4190
4191  ac_ext=c
4192ac_cpp='$CPP $CPPFLAGS'
4193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4195ac_compiler_gnu=$ac_cv_c_compiler_gnu
4196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4197printf %s "checking whether $CC understands -c and -o together... " >&6; }
4198if test ${am_cv_prog_cc_c_o+y}
4199then :
4200  printf %s "(cached) " >&6
4201else $as_nop
4202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203/* end confdefs.h.  */
4204
4205int
4206main (void)
4207{
4208
4209  ;
4210  return 0;
4211}
4212_ACEOF
4213  # Make sure it works both with $CC and with simple cc.
4214  # Following AC_PROG_CC_C_O, we do the test twice because some
4215  # compilers refuse to overwrite an existing .o file with -o,
4216  # though they will create one.
4217  am_cv_prog_cc_c_o=yes
4218  for am_i in 1 2; do
4219    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4220   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4221   ac_status=$?
4222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223   (exit $ac_status); } \
4224         && test -f conftest2.$ac_objext; then
4225      : OK
4226    else
4227      am_cv_prog_cc_c_o=no
4228      break
4229    fi
4230  done
4231  rm -f core conftest*
4232  unset am_i
4233fi
4234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4235printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4236if test "$am_cv_prog_cc_c_o" != yes; then
4237   # Losing compiler, so override with the script.
4238   # FIXME: It is wrong to rewrite CC.
4239   # But if we don't then we get into trouble of one sort or another.
4240   # A longer-term fix would be to have automake use am__CC in this case,
4241   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4242   CC="$am_aux_dir/compile $CC"
4243fi
4244ac_ext=c
4245ac_cpp='$CPP $CPPFLAGS'
4246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4248ac_compiler_gnu=$ac_cv_c_compiler_gnu
4249
4250
4251depcc="$CC"   am_compiler_list=
4252
4253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4254printf %s "checking dependency style of $depcc... " >&6; }
4255if test ${am_cv_CC_dependencies_compiler_type+y}
4256then :
4257  printf %s "(cached) " >&6
4258else $as_nop
4259  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4260  # We make a subdir and do the tests there.  Otherwise we can end up
4261  # making bogus files that we don't know about and never remove.  For
4262  # instance it was reported that on HP-UX the gcc test will end up
4263  # making a dummy file named 'D' -- because '-MD' means "put the output
4264  # in D".
4265  rm -rf conftest.dir
4266  mkdir conftest.dir
4267  # Copy depcomp to subdir because otherwise we won't find it if we're
4268  # using a relative directory.
4269  cp "$am_depcomp" conftest.dir
4270  cd conftest.dir
4271  # We will build objects and dependencies in a subdirectory because
4272  # it helps to detect inapplicable dependency modes.  For instance
4273  # both Tru64's cc and ICC support -MD to output dependencies as a
4274  # side effect of compilation, but ICC will put the dependencies in
4275  # the current directory while Tru64 will put them in the object
4276  # directory.
4277  mkdir sub
4278
4279  am_cv_CC_dependencies_compiler_type=none
4280  if test "$am_compiler_list" = ""; then
4281     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4282  fi
4283  am__universal=false
4284  case " $depcc " in #(
4285     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4286     esac
4287
4288  for depmode in $am_compiler_list; do
4289    # Setup a source with many dependencies, because some compilers
4290    # like to wrap large dependency lists on column 80 (with \), and
4291    # we should not choose a depcomp mode which is confused by this.
4292    #
4293    # We need to recreate these files for each test, as the compiler may
4294    # overwrite some of them when testing with obscure command lines.
4295    # This happens at least with the AIX C compiler.
4296    : > sub/conftest.c
4297    for i in 1 2 3 4 5 6; do
4298      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4299      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4300      # Solaris 10 /bin/sh.
4301      echo '/* dummy */' > sub/conftst$i.h
4302    done
4303    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4304
4305    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4306    # mode.  It turns out that the SunPro C++ compiler does not properly
4307    # handle '-M -o', and we need to detect this.  Also, some Intel
4308    # versions had trouble with output in subdirs.
4309    am__obj=sub/conftest.${OBJEXT-o}
4310    am__minus_obj="-o $am__obj"
4311    case $depmode in
4312    gcc)
4313      # This depmode causes a compiler race in universal mode.
4314      test "$am__universal" = false || continue
4315      ;;
4316    nosideeffect)
4317      # After this tag, mechanisms are not by side-effect, so they'll
4318      # only be used when explicitly requested.
4319      if test "x$enable_dependency_tracking" = xyes; then
4320	continue
4321      else
4322	break
4323      fi
4324      ;;
4325    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4326      # This compiler won't grok '-c -o', but also, the minuso test has
4327      # not run yet.  These depmodes are late enough in the game, and
4328      # so weak that their functioning should not be impacted.
4329      am__obj=conftest.${OBJEXT-o}
4330      am__minus_obj=
4331      ;;
4332    none) break ;;
4333    esac
4334    if depmode=$depmode \
4335       source=sub/conftest.c object=$am__obj \
4336       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4337       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4338         >/dev/null 2>conftest.err &&
4339       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4340       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4341       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4342       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4343      # icc doesn't choke on unknown options, it will just issue warnings
4344      # or remarks (even with -Werror).  So we grep stderr for any message
4345      # that says an option was ignored or not supported.
4346      # When given -MP, icc 7.0 and 7.1 complain thusly:
4347      #   icc: Command line warning: ignoring option '-M'; no argument required
4348      # The diagnosis changed in icc 8.0:
4349      #   icc: Command line remark: option '-MP' not supported
4350      if (grep 'ignoring option' conftest.err ||
4351          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4352        am_cv_CC_dependencies_compiler_type=$depmode
4353        break
4354      fi
4355    fi
4356  done
4357
4358  cd ..
4359  rm -rf conftest.dir
4360else
4361  am_cv_CC_dependencies_compiler_type=none
4362fi
4363
4364fi
4365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4366printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4367CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4368
4369 if
4370  test "x$enable_dependency_tracking" != xno \
4371  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4372  am__fastdepCC_TRUE=
4373  am__fastdepCC_FALSE='#'
4374else
4375  am__fastdepCC_TRUE='#'
4376  am__fastdepCC_FALSE=
4377fi
4378
4379
4380
4381
4382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4383printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4384if test ${ac_cv_c_undeclared_builtin_options+y}
4385then :
4386  printf %s "(cached) " >&6
4387else $as_nop
4388  ac_save_CFLAGS=$CFLAGS
4389   ac_cv_c_undeclared_builtin_options='cannot detect'
4390   for ac_arg in '' -fno-builtin; do
4391     CFLAGS="$ac_save_CFLAGS $ac_arg"
4392     # This test program should *not* compile successfully.
4393     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4394/* end confdefs.h.  */
4395
4396int
4397main (void)
4398{
4399(void) strchr;
4400  ;
4401  return 0;
4402}
4403_ACEOF
4404if ac_fn_c_try_compile "$LINENO"
4405then :
4406
4407else $as_nop
4408  # This test program should compile successfully.
4409        # No library function is consistently available on
4410        # freestanding implementations, so test against a dummy
4411        # declaration.  Include always-available headers on the
4412        # off chance that they somehow elicit warnings.
4413        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414/* end confdefs.h.  */
4415#include <float.h>
4416#include <limits.h>
4417#include <stdarg.h>
4418#include <stddef.h>
4419extern void ac_decl (int, char *);
4420
4421int
4422main (void)
4423{
4424(void) ac_decl (0, (char *) 0);
4425  (void) ac_decl;
4426
4427  ;
4428  return 0;
4429}
4430_ACEOF
4431if ac_fn_c_try_compile "$LINENO"
4432then :
4433  if test x"$ac_arg" = x
4434then :
4435  ac_cv_c_undeclared_builtin_options='none needed'
4436else $as_nop
4437  ac_cv_c_undeclared_builtin_options=$ac_arg
4438fi
4439          break
4440fi
4441rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4442fi
4443rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4444    done
4445    CFLAGS=$ac_save_CFLAGS
4446
4447fi
4448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4449printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4450  case $ac_cv_c_undeclared_builtin_options in #(
4451  'cannot detect') :
4452    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4453printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4454as_fn_error $? "cannot make $CC report undeclared builtins
4455See \`config.log' for more details" "$LINENO" 5; } ;; #(
4456  'none needed') :
4457    ac_c_undeclared_builtin_options='' ;; #(
4458  *) :
4459    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4460esac
4461
4462ac_header= ac_cache=
4463for ac_item in $ac_header_c_list
4464do
4465  if test $ac_cache; then
4466    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4467    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4468      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4469    fi
4470    ac_header= ac_cache=
4471  elif test $ac_header; then
4472    ac_cache=$ac_item
4473  else
4474    ac_header=$ac_item
4475  fi
4476done
4477
4478
4479
4480
4481
4482
4483
4484
4485if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4486then :
4487
4488printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4489
4490fi
4491
4492
4493
4494
4495ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4496if test "x$ac_cv_have_decl___clang__" = xyes
4497then :
4498  CLANGCC="yes"
4499else $as_nop
4500  CLANGCC="no"
4501fi
4502ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4503if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4504then :
4505  INTELCC="yes"
4506else $as_nop
4507  INTELCC="no"
4508fi
4509ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4510if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4511then :
4512  SUNCC="yes"
4513else $as_nop
4514  SUNCC="no"
4515fi
4516
4517
4518
4519
4520
4521
4522
4523
4524if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4525	if test -n "$ac_tool_prefix"; then
4526  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4527set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4529printf %s "checking for $ac_word... " >&6; }
4530if test ${ac_cv_path_PKG_CONFIG+y}
4531then :
4532  printf %s "(cached) " >&6
4533else $as_nop
4534  case $PKG_CONFIG in
4535  [\\/]* | ?:[\\/]*)
4536  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4537  ;;
4538  *)
4539  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540for as_dir in $PATH
4541do
4542  IFS=$as_save_IFS
4543  case $as_dir in #(((
4544    '') as_dir=./ ;;
4545    */) ;;
4546    *) as_dir=$as_dir/ ;;
4547  esac
4548    for ac_exec_ext in '' $ac_executable_extensions; do
4549  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4550    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4551    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4552    break 2
4553  fi
4554done
4555  done
4556IFS=$as_save_IFS
4557
4558  ;;
4559esac
4560fi
4561PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4562if test -n "$PKG_CONFIG"; then
4563  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4564printf "%s\n" "$PKG_CONFIG" >&6; }
4565else
4566  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4567printf "%s\n" "no" >&6; }
4568fi
4569
4570
4571fi
4572if test -z "$ac_cv_path_PKG_CONFIG"; then
4573  ac_pt_PKG_CONFIG=$PKG_CONFIG
4574  # Extract the first word of "pkg-config", so it can be a program name with args.
4575set dummy pkg-config; ac_word=$2
4576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4577printf %s "checking for $ac_word... " >&6; }
4578if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4579then :
4580  printf %s "(cached) " >&6
4581else $as_nop
4582  case $ac_pt_PKG_CONFIG in
4583  [\\/]* | ?:[\\/]*)
4584  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4585  ;;
4586  *)
4587  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588for as_dir in $PATH
4589do
4590  IFS=$as_save_IFS
4591  case $as_dir in #(((
4592    '') as_dir=./ ;;
4593    */) ;;
4594    *) as_dir=$as_dir/ ;;
4595  esac
4596    for ac_exec_ext in '' $ac_executable_extensions; do
4597  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4598    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4599    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4600    break 2
4601  fi
4602done
4603  done
4604IFS=$as_save_IFS
4605
4606  ;;
4607esac
4608fi
4609ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4610if test -n "$ac_pt_PKG_CONFIG"; then
4611  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4612printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4613else
4614  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4615printf "%s\n" "no" >&6; }
4616fi
4617
4618  if test "x$ac_pt_PKG_CONFIG" = x; then
4619    PKG_CONFIG=""
4620  else
4621    case $cross_compiling:$ac_tool_warned in
4622yes:)
4623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4624printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4625ac_tool_warned=yes ;;
4626esac
4627    PKG_CONFIG=$ac_pt_PKG_CONFIG
4628  fi
4629else
4630  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4631fi
4632
4633fi
4634if test -n "$PKG_CONFIG"; then
4635	_pkg_min_version=0.9.0
4636	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4637printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4638	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4639		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4640printf "%s\n" "yes" >&6; }
4641	else
4642		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4643printf "%s\n" "no" >&6; }
4644		PKG_CONFIG=""
4645	fi
4646fi
4647
4648
4649  # Make sure we can run config.sub.
4650$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4651  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4652
4653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4654printf %s "checking build system type... " >&6; }
4655if test ${ac_cv_build+y}
4656then :
4657  printf %s "(cached) " >&6
4658else $as_nop
4659  ac_build_alias=$build_alias
4660test "x$ac_build_alias" = x &&
4661  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4662test "x$ac_build_alias" = x &&
4663  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4664ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4665  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4666
4667fi
4668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4669printf "%s\n" "$ac_cv_build" >&6; }
4670case $ac_cv_build in
4671*-*-*) ;;
4672*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4673esac
4674build=$ac_cv_build
4675ac_save_IFS=$IFS; IFS='-'
4676set x $ac_cv_build
4677shift
4678build_cpu=$1
4679build_vendor=$2
4680shift; shift
4681# Remember, the first character of IFS is used to create $*,
4682# except with old shells:
4683build_os=$*
4684IFS=$ac_save_IFS
4685case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4686
4687
4688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4689printf %s "checking host system type... " >&6; }
4690if test ${ac_cv_host+y}
4691then :
4692  printf %s "(cached) " >&6
4693else $as_nop
4694  if test "x$host_alias" = x; then
4695  ac_cv_host=$ac_cv_build
4696else
4697  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4698    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4699fi
4700
4701fi
4702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4703printf "%s\n" "$ac_cv_host" >&6; }
4704case $ac_cv_host in
4705*-*-*) ;;
4706*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4707esac
4708host=$ac_cv_host
4709ac_save_IFS=$IFS; IFS='-'
4710set x $ac_cv_host
4711shift
4712host_cpu=$1
4713host_vendor=$2
4714shift; shift
4715# Remember, the first character of IFS is used to create $*,
4716# except with old shells:
4717host_os=$*
4718IFS=$ac_save_IFS
4719case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4720
4721
4722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4723printf %s "checking for a sed that does not truncate output... " >&6; }
4724if test ${ac_cv_path_SED+y}
4725then :
4726  printf %s "(cached) " >&6
4727else $as_nop
4728            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4729     for ac_i in 1 2 3 4 5 6 7; do
4730       ac_script="$ac_script$as_nl$ac_script"
4731     done
4732     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4733     { ac_script=; unset ac_script;}
4734     if test -z "$SED"; then
4735  ac_path_SED_found=false
4736  # Loop through the user's path and test for each of PROGNAME-LIST
4737  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738for as_dir in $PATH
4739do
4740  IFS=$as_save_IFS
4741  case $as_dir in #(((
4742    '') as_dir=./ ;;
4743    */) ;;
4744    *) as_dir=$as_dir/ ;;
4745  esac
4746    for ac_prog in sed gsed
4747   do
4748    for ac_exec_ext in '' $ac_executable_extensions; do
4749      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4750      as_fn_executable_p "$ac_path_SED" || continue
4751# Check for GNU ac_path_SED and select it if it is found.
4752  # Check for GNU $ac_path_SED
4753case `"$ac_path_SED" --version 2>&1` in
4754*GNU*)
4755  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4756*)
4757  ac_count=0
4758  printf %s 0123456789 >"conftest.in"
4759  while :
4760  do
4761    cat "conftest.in" "conftest.in" >"conftest.tmp"
4762    mv "conftest.tmp" "conftest.in"
4763    cp "conftest.in" "conftest.nl"
4764    printf "%s\n" '' >> "conftest.nl"
4765    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4766    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4767    as_fn_arith $ac_count + 1 && ac_count=$as_val
4768    if test $ac_count -gt ${ac_path_SED_max-0}; then
4769      # Best one so far, save it but keep looking for a better one
4770      ac_cv_path_SED="$ac_path_SED"
4771      ac_path_SED_max=$ac_count
4772    fi
4773    # 10*(2^10) chars as input seems more than enough
4774    test $ac_count -gt 10 && break
4775  done
4776  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4777esac
4778
4779      $ac_path_SED_found && break 3
4780    done
4781  done
4782  done
4783IFS=$as_save_IFS
4784  if test -z "$ac_cv_path_SED"; then
4785    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4786  fi
4787else
4788  ac_cv_path_SED=$SED
4789fi
4790
4791fi
4792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4793printf "%s\n" "$ac_cv_path_SED" >&6; }
4794 SED="$ac_cv_path_SED"
4795  rm -f conftest.sed
4796
4797
4798
4799
4800
4801
4802# Check whether --enable-selective-werror was given.
4803if test ${enable_selective_werror+y}
4804then :
4805  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4806else $as_nop
4807  SELECTIVE_WERROR=yes
4808fi
4809
4810
4811
4812
4813
4814# -v is too short to test reliably with XORG_TESTSET_CFLAG
4815if test "x$SUNCC" = "xyes"; then
4816    BASE_CFLAGS="-v"
4817else
4818    BASE_CFLAGS=""
4819fi
4820
4821# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835xorg_testset_save_CFLAGS="$CFLAGS"
4836
4837if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4838	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4839	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4840printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4841if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4842then :
4843  printf %s "(cached) " >&6
4844else $as_nop
4845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4846/* end confdefs.h.  */
4847int i;
4848_ACEOF
4849if ac_fn_c_try_compile "$LINENO"
4850then :
4851  xorg_cv_cc_flag_unknown_warning_option=yes
4852else $as_nop
4853  xorg_cv_cc_flag_unknown_warning_option=no
4854fi
4855rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4856fi
4857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4858printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4859	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4860	CFLAGS="$xorg_testset_save_CFLAGS"
4861fi
4862
4863if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4864	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4865		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4866	fi
4867	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4868	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4869printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4870if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4871then :
4872  printf %s "(cached) " >&6
4873else $as_nop
4874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875/* end confdefs.h.  */
4876int i;
4877_ACEOF
4878if ac_fn_c_try_compile "$LINENO"
4879then :
4880  xorg_cv_cc_flag_unused_command_line_argument=yes
4881else $as_nop
4882  xorg_cv_cc_flag_unused_command_line_argument=no
4883fi
4884rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4885fi
4886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4887printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4888	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4889	CFLAGS="$xorg_testset_save_CFLAGS"
4890fi
4891
4892found="no"
4893
4894	if test $found = "no" ; then
4895		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4896			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4897		fi
4898
4899		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4900			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4901		fi
4902
4903		CFLAGS="$CFLAGS -Wall"
4904
4905		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4906printf %s "checking if $CC supports -Wall... " >&6; }
4907		cacheid=xorg_cv_cc_flag__Wall
4908		if eval test \${$cacheid+y}
4909then :
4910  printf %s "(cached) " >&6
4911else $as_nop
4912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4913/* end confdefs.h.  */
4914int i;
4915int
4916main (void)
4917{
4918
4919  ;
4920  return 0;
4921}
4922_ACEOF
4923if ac_fn_c_try_link "$LINENO"
4924then :
4925  eval $cacheid=yes
4926else $as_nop
4927  eval $cacheid=no
4928fi
4929rm -f core conftest.err conftest.$ac_objext conftest.beam \
4930    conftest$ac_exeext conftest.$ac_ext
4931fi
4932
4933
4934		CFLAGS="$xorg_testset_save_CFLAGS"
4935
4936		eval supported=\$$cacheid
4937		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4938printf "%s\n" "$supported" >&6; }
4939		if test "$supported" = "yes" ; then
4940			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4941			found="yes"
4942		fi
4943	fi
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959xorg_testset_save_CFLAGS="$CFLAGS"
4960
4961if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4962	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4963	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4964printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4965if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4966then :
4967  printf %s "(cached) " >&6
4968else $as_nop
4969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4970/* end confdefs.h.  */
4971int i;
4972_ACEOF
4973if ac_fn_c_try_compile "$LINENO"
4974then :
4975  xorg_cv_cc_flag_unknown_warning_option=yes
4976else $as_nop
4977  xorg_cv_cc_flag_unknown_warning_option=no
4978fi
4979rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4980fi
4981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4982printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4983	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4984	CFLAGS="$xorg_testset_save_CFLAGS"
4985fi
4986
4987if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4988	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4989		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4990	fi
4991	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4992	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4993printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4994if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4995then :
4996  printf %s "(cached) " >&6
4997else $as_nop
4998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4999/* end confdefs.h.  */
5000int i;
5001_ACEOF
5002if ac_fn_c_try_compile "$LINENO"
5003then :
5004  xorg_cv_cc_flag_unused_command_line_argument=yes
5005else $as_nop
5006  xorg_cv_cc_flag_unused_command_line_argument=no
5007fi
5008rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5009fi
5010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5011printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5012	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5013	CFLAGS="$xorg_testset_save_CFLAGS"
5014fi
5015
5016found="no"
5017
5018	if test $found = "no" ; then
5019		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5020			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5021		fi
5022
5023		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5024			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5025		fi
5026
5027		CFLAGS="$CFLAGS -Wpointer-arith"
5028
5029		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5030printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5031		cacheid=xorg_cv_cc_flag__Wpointer_arith
5032		if eval test \${$cacheid+y}
5033then :
5034  printf %s "(cached) " >&6
5035else $as_nop
5036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5037/* end confdefs.h.  */
5038int i;
5039int
5040main (void)
5041{
5042
5043  ;
5044  return 0;
5045}
5046_ACEOF
5047if ac_fn_c_try_link "$LINENO"
5048then :
5049  eval $cacheid=yes
5050else $as_nop
5051  eval $cacheid=no
5052fi
5053rm -f core conftest.err conftest.$ac_objext conftest.beam \
5054    conftest$ac_exeext conftest.$ac_ext
5055fi
5056
5057
5058		CFLAGS="$xorg_testset_save_CFLAGS"
5059
5060		eval supported=\$$cacheid
5061		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5062printf "%s\n" "$supported" >&6; }
5063		if test "$supported" = "yes" ; then
5064			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5065			found="yes"
5066		fi
5067	fi
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083xorg_testset_save_CFLAGS="$CFLAGS"
5084
5085if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5086	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5087	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5088printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5089if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5090then :
5091  printf %s "(cached) " >&6
5092else $as_nop
5093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5094/* end confdefs.h.  */
5095int i;
5096_ACEOF
5097if ac_fn_c_try_compile "$LINENO"
5098then :
5099  xorg_cv_cc_flag_unknown_warning_option=yes
5100else $as_nop
5101  xorg_cv_cc_flag_unknown_warning_option=no
5102fi
5103rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5104fi
5105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5106printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5107	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5108	CFLAGS="$xorg_testset_save_CFLAGS"
5109fi
5110
5111if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5112	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5113		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5114	fi
5115	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5116	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5117printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5118if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5119then :
5120  printf %s "(cached) " >&6
5121else $as_nop
5122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123/* end confdefs.h.  */
5124int i;
5125_ACEOF
5126if ac_fn_c_try_compile "$LINENO"
5127then :
5128  xorg_cv_cc_flag_unused_command_line_argument=yes
5129else $as_nop
5130  xorg_cv_cc_flag_unused_command_line_argument=no
5131fi
5132rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5133fi
5134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5135printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5136	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5137	CFLAGS="$xorg_testset_save_CFLAGS"
5138fi
5139
5140found="no"
5141
5142	if test $found = "no" ; then
5143		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5144			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5145		fi
5146
5147		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5148			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5149		fi
5150
5151		CFLAGS="$CFLAGS -Wmissing-declarations"
5152
5153		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5154printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5155		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5156		if eval test \${$cacheid+y}
5157then :
5158  printf %s "(cached) " >&6
5159else $as_nop
5160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161/* end confdefs.h.  */
5162int i;
5163int
5164main (void)
5165{
5166
5167  ;
5168  return 0;
5169}
5170_ACEOF
5171if ac_fn_c_try_link "$LINENO"
5172then :
5173  eval $cacheid=yes
5174else $as_nop
5175  eval $cacheid=no
5176fi
5177rm -f core conftest.err conftest.$ac_objext conftest.beam \
5178    conftest$ac_exeext conftest.$ac_ext
5179fi
5180
5181
5182		CFLAGS="$xorg_testset_save_CFLAGS"
5183
5184		eval supported=\$$cacheid
5185		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5186printf "%s\n" "$supported" >&6; }
5187		if test "$supported" = "yes" ; then
5188			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5189			found="yes"
5190		fi
5191	fi
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207xorg_testset_save_CFLAGS="$CFLAGS"
5208
5209if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5210	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5211	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5212printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5213if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5214then :
5215  printf %s "(cached) " >&6
5216else $as_nop
5217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5218/* end confdefs.h.  */
5219int i;
5220_ACEOF
5221if ac_fn_c_try_compile "$LINENO"
5222then :
5223  xorg_cv_cc_flag_unknown_warning_option=yes
5224else $as_nop
5225  xorg_cv_cc_flag_unknown_warning_option=no
5226fi
5227rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5228fi
5229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5230printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5231	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5232	CFLAGS="$xorg_testset_save_CFLAGS"
5233fi
5234
5235if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5236	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5237		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5238	fi
5239	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5240	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5241printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5242if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5243then :
5244  printf %s "(cached) " >&6
5245else $as_nop
5246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247/* end confdefs.h.  */
5248int i;
5249_ACEOF
5250if ac_fn_c_try_compile "$LINENO"
5251then :
5252  xorg_cv_cc_flag_unused_command_line_argument=yes
5253else $as_nop
5254  xorg_cv_cc_flag_unused_command_line_argument=no
5255fi
5256rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5257fi
5258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5259printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5260	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5261	CFLAGS="$xorg_testset_save_CFLAGS"
5262fi
5263
5264found="no"
5265
5266	if test $found = "no" ; then
5267		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5268			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5269		fi
5270
5271		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5272			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5273		fi
5274
5275		CFLAGS="$CFLAGS -Wformat=2"
5276
5277		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5278printf %s "checking if $CC supports -Wformat=2... " >&6; }
5279		cacheid=xorg_cv_cc_flag__Wformat_2
5280		if eval test \${$cacheid+y}
5281then :
5282  printf %s "(cached) " >&6
5283else $as_nop
5284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285/* end confdefs.h.  */
5286int i;
5287int
5288main (void)
5289{
5290
5291  ;
5292  return 0;
5293}
5294_ACEOF
5295if ac_fn_c_try_link "$LINENO"
5296then :
5297  eval $cacheid=yes
5298else $as_nop
5299  eval $cacheid=no
5300fi
5301rm -f core conftest.err conftest.$ac_objext conftest.beam \
5302    conftest$ac_exeext conftest.$ac_ext
5303fi
5304
5305
5306		CFLAGS="$xorg_testset_save_CFLAGS"
5307
5308		eval supported=\$$cacheid
5309		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5310printf "%s\n" "$supported" >&6; }
5311		if test "$supported" = "yes" ; then
5312			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5313			found="yes"
5314		fi
5315	fi
5316
5317	if test $found = "no" ; then
5318		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5319			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5320		fi
5321
5322		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5323			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5324		fi
5325
5326		CFLAGS="$CFLAGS -Wformat"
5327
5328		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5329printf %s "checking if $CC supports -Wformat... " >&6; }
5330		cacheid=xorg_cv_cc_flag__Wformat
5331		if eval test \${$cacheid+y}
5332then :
5333  printf %s "(cached) " >&6
5334else $as_nop
5335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5336/* end confdefs.h.  */
5337int i;
5338int
5339main (void)
5340{
5341
5342  ;
5343  return 0;
5344}
5345_ACEOF
5346if ac_fn_c_try_link "$LINENO"
5347then :
5348  eval $cacheid=yes
5349else $as_nop
5350  eval $cacheid=no
5351fi
5352rm -f core conftest.err conftest.$ac_objext conftest.beam \
5353    conftest$ac_exeext conftest.$ac_ext
5354fi
5355
5356
5357		CFLAGS="$xorg_testset_save_CFLAGS"
5358
5359		eval supported=\$$cacheid
5360		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5361printf "%s\n" "$supported" >&6; }
5362		if test "$supported" = "yes" ; then
5363			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5364			found="yes"
5365		fi
5366	fi
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384xorg_testset_save_CFLAGS="$CFLAGS"
5385
5386if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5387	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5388	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5389printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5390if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5391then :
5392  printf %s "(cached) " >&6
5393else $as_nop
5394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395/* end confdefs.h.  */
5396int i;
5397_ACEOF
5398if ac_fn_c_try_compile "$LINENO"
5399then :
5400  xorg_cv_cc_flag_unknown_warning_option=yes
5401else $as_nop
5402  xorg_cv_cc_flag_unknown_warning_option=no
5403fi
5404rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5405fi
5406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5407printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5408	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5409	CFLAGS="$xorg_testset_save_CFLAGS"
5410fi
5411
5412if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5413	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5414		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5415	fi
5416	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5417	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5418printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5419if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5420then :
5421  printf %s "(cached) " >&6
5422else $as_nop
5423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5424/* end confdefs.h.  */
5425int i;
5426_ACEOF
5427if ac_fn_c_try_compile "$LINENO"
5428then :
5429  xorg_cv_cc_flag_unused_command_line_argument=yes
5430else $as_nop
5431  xorg_cv_cc_flag_unused_command_line_argument=no
5432fi
5433rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5434fi
5435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5436printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5437	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5438	CFLAGS="$xorg_testset_save_CFLAGS"
5439fi
5440
5441found="no"
5442
5443	if test $found = "no" ; then
5444		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5445			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5446		fi
5447
5448		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5449			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5450		fi
5451
5452		CFLAGS="$CFLAGS -Wstrict-prototypes"
5453
5454		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5455printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5456		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5457		if eval test \${$cacheid+y}
5458then :
5459  printf %s "(cached) " >&6
5460else $as_nop
5461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5462/* end confdefs.h.  */
5463int i;
5464int
5465main (void)
5466{
5467
5468  ;
5469  return 0;
5470}
5471_ACEOF
5472if ac_fn_c_try_link "$LINENO"
5473then :
5474  eval $cacheid=yes
5475else $as_nop
5476  eval $cacheid=no
5477fi
5478rm -f core conftest.err conftest.$ac_objext conftest.beam \
5479    conftest$ac_exeext conftest.$ac_ext
5480fi
5481
5482
5483		CFLAGS="$xorg_testset_save_CFLAGS"
5484
5485		eval supported=\$$cacheid
5486		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5487printf "%s\n" "$supported" >&6; }
5488		if test "$supported" = "yes" ; then
5489			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5490			found="yes"
5491		fi
5492	fi
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508xorg_testset_save_CFLAGS="$CFLAGS"
5509
5510if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5511	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5512	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5513printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5514if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5515then :
5516  printf %s "(cached) " >&6
5517else $as_nop
5518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5519/* end confdefs.h.  */
5520int i;
5521_ACEOF
5522if ac_fn_c_try_compile "$LINENO"
5523then :
5524  xorg_cv_cc_flag_unknown_warning_option=yes
5525else $as_nop
5526  xorg_cv_cc_flag_unknown_warning_option=no
5527fi
5528rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5529fi
5530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5531printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5532	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5533	CFLAGS="$xorg_testset_save_CFLAGS"
5534fi
5535
5536if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5537	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5538		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5539	fi
5540	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5541	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5542printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5543if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5544then :
5545  printf %s "(cached) " >&6
5546else $as_nop
5547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5548/* end confdefs.h.  */
5549int i;
5550_ACEOF
5551if ac_fn_c_try_compile "$LINENO"
5552then :
5553  xorg_cv_cc_flag_unused_command_line_argument=yes
5554else $as_nop
5555  xorg_cv_cc_flag_unused_command_line_argument=no
5556fi
5557rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5558fi
5559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5560printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5561	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5562	CFLAGS="$xorg_testset_save_CFLAGS"
5563fi
5564
5565found="no"
5566
5567	if test $found = "no" ; then
5568		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5569			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5570		fi
5571
5572		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5573			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5574		fi
5575
5576		CFLAGS="$CFLAGS -Wmissing-prototypes"
5577
5578		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5579printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5580		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5581		if eval test \${$cacheid+y}
5582then :
5583  printf %s "(cached) " >&6
5584else $as_nop
5585  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5586/* end confdefs.h.  */
5587int i;
5588int
5589main (void)
5590{
5591
5592  ;
5593  return 0;
5594}
5595_ACEOF
5596if ac_fn_c_try_link "$LINENO"
5597then :
5598  eval $cacheid=yes
5599else $as_nop
5600  eval $cacheid=no
5601fi
5602rm -f core conftest.err conftest.$ac_objext conftest.beam \
5603    conftest$ac_exeext conftest.$ac_ext
5604fi
5605
5606
5607		CFLAGS="$xorg_testset_save_CFLAGS"
5608
5609		eval supported=\$$cacheid
5610		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5611printf "%s\n" "$supported" >&6; }
5612		if test "$supported" = "yes" ; then
5613			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5614			found="yes"
5615		fi
5616	fi
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632xorg_testset_save_CFLAGS="$CFLAGS"
5633
5634if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5635	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5636	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5637printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5638if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5639then :
5640  printf %s "(cached) " >&6
5641else $as_nop
5642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643/* end confdefs.h.  */
5644int i;
5645_ACEOF
5646if ac_fn_c_try_compile "$LINENO"
5647then :
5648  xorg_cv_cc_flag_unknown_warning_option=yes
5649else $as_nop
5650  xorg_cv_cc_flag_unknown_warning_option=no
5651fi
5652rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5653fi
5654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5655printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5656	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5657	CFLAGS="$xorg_testset_save_CFLAGS"
5658fi
5659
5660if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5661	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5662		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5663	fi
5664	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5665	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5666printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5667if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5668then :
5669  printf %s "(cached) " >&6
5670else $as_nop
5671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5672/* end confdefs.h.  */
5673int i;
5674_ACEOF
5675if ac_fn_c_try_compile "$LINENO"
5676then :
5677  xorg_cv_cc_flag_unused_command_line_argument=yes
5678else $as_nop
5679  xorg_cv_cc_flag_unused_command_line_argument=no
5680fi
5681rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5682fi
5683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5684printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5685	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5686	CFLAGS="$xorg_testset_save_CFLAGS"
5687fi
5688
5689found="no"
5690
5691	if test $found = "no" ; then
5692		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5693			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5694		fi
5695
5696		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5697			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5698		fi
5699
5700		CFLAGS="$CFLAGS -Wnested-externs"
5701
5702		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5703printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5704		cacheid=xorg_cv_cc_flag__Wnested_externs
5705		if eval test \${$cacheid+y}
5706then :
5707  printf %s "(cached) " >&6
5708else $as_nop
5709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5710/* end confdefs.h.  */
5711int i;
5712int
5713main (void)
5714{
5715
5716  ;
5717  return 0;
5718}
5719_ACEOF
5720if ac_fn_c_try_link "$LINENO"
5721then :
5722  eval $cacheid=yes
5723else $as_nop
5724  eval $cacheid=no
5725fi
5726rm -f core conftest.err conftest.$ac_objext conftest.beam \
5727    conftest$ac_exeext conftest.$ac_ext
5728fi
5729
5730
5731		CFLAGS="$xorg_testset_save_CFLAGS"
5732
5733		eval supported=\$$cacheid
5734		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5735printf "%s\n" "$supported" >&6; }
5736		if test "$supported" = "yes" ; then
5737			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5738			found="yes"
5739		fi
5740	fi
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756xorg_testset_save_CFLAGS="$CFLAGS"
5757
5758if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5759	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5760	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5761printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5762if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5763then :
5764  printf %s "(cached) " >&6
5765else $as_nop
5766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5767/* end confdefs.h.  */
5768int i;
5769_ACEOF
5770if ac_fn_c_try_compile "$LINENO"
5771then :
5772  xorg_cv_cc_flag_unknown_warning_option=yes
5773else $as_nop
5774  xorg_cv_cc_flag_unknown_warning_option=no
5775fi
5776rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5777fi
5778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5779printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5780	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5781	CFLAGS="$xorg_testset_save_CFLAGS"
5782fi
5783
5784if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5785	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5786		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5787	fi
5788	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5789	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5790printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5791if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5792then :
5793  printf %s "(cached) " >&6
5794else $as_nop
5795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5796/* end confdefs.h.  */
5797int i;
5798_ACEOF
5799if ac_fn_c_try_compile "$LINENO"
5800then :
5801  xorg_cv_cc_flag_unused_command_line_argument=yes
5802else $as_nop
5803  xorg_cv_cc_flag_unused_command_line_argument=no
5804fi
5805rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5806fi
5807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5808printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5809	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5810	CFLAGS="$xorg_testset_save_CFLAGS"
5811fi
5812
5813found="no"
5814
5815	if test $found = "no" ; then
5816		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5817			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5818		fi
5819
5820		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5821			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5822		fi
5823
5824		CFLAGS="$CFLAGS -Wbad-function-cast"
5825
5826		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5827printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5828		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5829		if eval test \${$cacheid+y}
5830then :
5831  printf %s "(cached) " >&6
5832else $as_nop
5833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5834/* end confdefs.h.  */
5835int i;
5836int
5837main (void)
5838{
5839
5840  ;
5841  return 0;
5842}
5843_ACEOF
5844if ac_fn_c_try_link "$LINENO"
5845then :
5846  eval $cacheid=yes
5847else $as_nop
5848  eval $cacheid=no
5849fi
5850rm -f core conftest.err conftest.$ac_objext conftest.beam \
5851    conftest$ac_exeext conftest.$ac_ext
5852fi
5853
5854
5855		CFLAGS="$xorg_testset_save_CFLAGS"
5856
5857		eval supported=\$$cacheid
5858		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5859printf "%s\n" "$supported" >&6; }
5860		if test "$supported" = "yes" ; then
5861			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5862			found="yes"
5863		fi
5864	fi
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880xorg_testset_save_CFLAGS="$CFLAGS"
5881
5882if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5883	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5884	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5885printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5886if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5887then :
5888  printf %s "(cached) " >&6
5889else $as_nop
5890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5891/* end confdefs.h.  */
5892int i;
5893_ACEOF
5894if ac_fn_c_try_compile "$LINENO"
5895then :
5896  xorg_cv_cc_flag_unknown_warning_option=yes
5897else $as_nop
5898  xorg_cv_cc_flag_unknown_warning_option=no
5899fi
5900rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5901fi
5902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5903printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5904	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5905	CFLAGS="$xorg_testset_save_CFLAGS"
5906fi
5907
5908if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5909	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5910		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5911	fi
5912	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5913	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5914printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5915if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5916then :
5917  printf %s "(cached) " >&6
5918else $as_nop
5919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920/* end confdefs.h.  */
5921int i;
5922_ACEOF
5923if ac_fn_c_try_compile "$LINENO"
5924then :
5925  xorg_cv_cc_flag_unused_command_line_argument=yes
5926else $as_nop
5927  xorg_cv_cc_flag_unused_command_line_argument=no
5928fi
5929rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5930fi
5931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5932printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5933	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5934	CFLAGS="$xorg_testset_save_CFLAGS"
5935fi
5936
5937found="no"
5938
5939	if test $found = "no" ; then
5940		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5941			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5942		fi
5943
5944		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5945			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5946		fi
5947
5948		CFLAGS="$CFLAGS -Wold-style-definition"
5949
5950		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5951printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
5952		cacheid=xorg_cv_cc_flag__Wold_style_definition
5953		if eval test \${$cacheid+y}
5954then :
5955  printf %s "(cached) " >&6
5956else $as_nop
5957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5958/* end confdefs.h.  */
5959int i;
5960int
5961main (void)
5962{
5963
5964  ;
5965  return 0;
5966}
5967_ACEOF
5968if ac_fn_c_try_link "$LINENO"
5969then :
5970  eval $cacheid=yes
5971else $as_nop
5972  eval $cacheid=no
5973fi
5974rm -f core conftest.err conftest.$ac_objext conftest.beam \
5975    conftest$ac_exeext conftest.$ac_ext
5976fi
5977
5978
5979		CFLAGS="$xorg_testset_save_CFLAGS"
5980
5981		eval supported=\$$cacheid
5982		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5983printf "%s\n" "$supported" >&6; }
5984		if test "$supported" = "yes" ; then
5985			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5986			found="yes"
5987		fi
5988	fi
5989
5990	if test $found = "no" ; then
5991		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5992			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5993		fi
5994
5995		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5996			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5997		fi
5998
5999		CFLAGS="$CFLAGS -fd"
6000
6001		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6002printf %s "checking if $CC supports -fd... " >&6; }
6003		cacheid=xorg_cv_cc_flag__fd
6004		if eval test \${$cacheid+y}
6005then :
6006  printf %s "(cached) " >&6
6007else $as_nop
6008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6009/* end confdefs.h.  */
6010int i;
6011int
6012main (void)
6013{
6014
6015  ;
6016  return 0;
6017}
6018_ACEOF
6019if ac_fn_c_try_link "$LINENO"
6020then :
6021  eval $cacheid=yes
6022else $as_nop
6023  eval $cacheid=no
6024fi
6025rm -f core conftest.err conftest.$ac_objext conftest.beam \
6026    conftest$ac_exeext conftest.$ac_ext
6027fi
6028
6029
6030		CFLAGS="$xorg_testset_save_CFLAGS"
6031
6032		eval supported=\$$cacheid
6033		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6034printf "%s\n" "$supported" >&6; }
6035		if test "$supported" = "yes" ; then
6036			BASE_CFLAGS="$BASE_CFLAGS -fd"
6037			found="yes"
6038		fi
6039	fi
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055xorg_testset_save_CFLAGS="$CFLAGS"
6056
6057if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6058	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6059	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6060printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6061if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6062then :
6063  printf %s "(cached) " >&6
6064else $as_nop
6065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6066/* end confdefs.h.  */
6067int i;
6068_ACEOF
6069if ac_fn_c_try_compile "$LINENO"
6070then :
6071  xorg_cv_cc_flag_unknown_warning_option=yes
6072else $as_nop
6073  xorg_cv_cc_flag_unknown_warning_option=no
6074fi
6075rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6076fi
6077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6078printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6079	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6080	CFLAGS="$xorg_testset_save_CFLAGS"
6081fi
6082
6083if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6084	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6085		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6086	fi
6087	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6088	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6089printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6090if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6091then :
6092  printf %s "(cached) " >&6
6093else $as_nop
6094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6095/* end confdefs.h.  */
6096int i;
6097_ACEOF
6098if ac_fn_c_try_compile "$LINENO"
6099then :
6100  xorg_cv_cc_flag_unused_command_line_argument=yes
6101else $as_nop
6102  xorg_cv_cc_flag_unused_command_line_argument=no
6103fi
6104rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6105fi
6106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6107printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6108	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6109	CFLAGS="$xorg_testset_save_CFLAGS"
6110fi
6111
6112found="no"
6113
6114	if test $found = "no" ; then
6115		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6116			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6117		fi
6118
6119		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6120			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6121		fi
6122
6123		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6124
6125		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6126printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6127		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6128		if eval test \${$cacheid+y}
6129then :
6130  printf %s "(cached) " >&6
6131else $as_nop
6132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6133/* end confdefs.h.  */
6134int i;
6135int
6136main (void)
6137{
6138
6139  ;
6140  return 0;
6141}
6142_ACEOF
6143if ac_fn_c_try_link "$LINENO"
6144then :
6145  eval $cacheid=yes
6146else $as_nop
6147  eval $cacheid=no
6148fi
6149rm -f core conftest.err conftest.$ac_objext conftest.beam \
6150    conftest$ac_exeext conftest.$ac_ext
6151fi
6152
6153
6154		CFLAGS="$xorg_testset_save_CFLAGS"
6155
6156		eval supported=\$$cacheid
6157		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6158printf "%s\n" "$supported" >&6; }
6159		if test "$supported" = "yes" ; then
6160			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6161			found="yes"
6162		fi
6163	fi
6164
6165
6166
6167
6168
6169# This chunk adds additional warnings that could catch undesired effects.
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183xorg_testset_save_CFLAGS="$CFLAGS"
6184
6185if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6186	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6187	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6188printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6189if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6190then :
6191  printf %s "(cached) " >&6
6192else $as_nop
6193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6194/* end confdefs.h.  */
6195int i;
6196_ACEOF
6197if ac_fn_c_try_compile "$LINENO"
6198then :
6199  xorg_cv_cc_flag_unknown_warning_option=yes
6200else $as_nop
6201  xorg_cv_cc_flag_unknown_warning_option=no
6202fi
6203rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6204fi
6205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6206printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6207	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6208	CFLAGS="$xorg_testset_save_CFLAGS"
6209fi
6210
6211if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6212	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6213		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6214	fi
6215	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6216	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6217printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6218if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6219then :
6220  printf %s "(cached) " >&6
6221else $as_nop
6222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6223/* end confdefs.h.  */
6224int i;
6225_ACEOF
6226if ac_fn_c_try_compile "$LINENO"
6227then :
6228  xorg_cv_cc_flag_unused_command_line_argument=yes
6229else $as_nop
6230  xorg_cv_cc_flag_unused_command_line_argument=no
6231fi
6232rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6233fi
6234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6235printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6236	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6237	CFLAGS="$xorg_testset_save_CFLAGS"
6238fi
6239
6240found="no"
6241
6242	if test $found = "no" ; then
6243		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6244			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6245		fi
6246
6247		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6248			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6249		fi
6250
6251		CFLAGS="$CFLAGS -Wunused"
6252
6253		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6254printf %s "checking if $CC supports -Wunused... " >&6; }
6255		cacheid=xorg_cv_cc_flag__Wunused
6256		if eval test \${$cacheid+y}
6257then :
6258  printf %s "(cached) " >&6
6259else $as_nop
6260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6261/* end confdefs.h.  */
6262int i;
6263int
6264main (void)
6265{
6266
6267  ;
6268  return 0;
6269}
6270_ACEOF
6271if ac_fn_c_try_link "$LINENO"
6272then :
6273  eval $cacheid=yes
6274else $as_nop
6275  eval $cacheid=no
6276fi
6277rm -f core conftest.err conftest.$ac_objext conftest.beam \
6278    conftest$ac_exeext conftest.$ac_ext
6279fi
6280
6281
6282		CFLAGS="$xorg_testset_save_CFLAGS"
6283
6284		eval supported=\$$cacheid
6285		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6286printf "%s\n" "$supported" >&6; }
6287		if test "$supported" = "yes" ; then
6288			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6289			found="yes"
6290		fi
6291	fi
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307xorg_testset_save_CFLAGS="$CFLAGS"
6308
6309if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6310	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6311	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6312printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6313if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6314then :
6315  printf %s "(cached) " >&6
6316else $as_nop
6317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6318/* end confdefs.h.  */
6319int i;
6320_ACEOF
6321if ac_fn_c_try_compile "$LINENO"
6322then :
6323  xorg_cv_cc_flag_unknown_warning_option=yes
6324else $as_nop
6325  xorg_cv_cc_flag_unknown_warning_option=no
6326fi
6327rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6328fi
6329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6330printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6331	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6332	CFLAGS="$xorg_testset_save_CFLAGS"
6333fi
6334
6335if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6336	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6337		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6338	fi
6339	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6340	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6341printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6342if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6343then :
6344  printf %s "(cached) " >&6
6345else $as_nop
6346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6347/* end confdefs.h.  */
6348int i;
6349_ACEOF
6350if ac_fn_c_try_compile "$LINENO"
6351then :
6352  xorg_cv_cc_flag_unused_command_line_argument=yes
6353else $as_nop
6354  xorg_cv_cc_flag_unused_command_line_argument=no
6355fi
6356rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6357fi
6358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6359printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6360	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6361	CFLAGS="$xorg_testset_save_CFLAGS"
6362fi
6363
6364found="no"
6365
6366	if test $found = "no" ; then
6367		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6368			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6369		fi
6370
6371		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6372			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6373		fi
6374
6375		CFLAGS="$CFLAGS -Wuninitialized"
6376
6377		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6378printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6379		cacheid=xorg_cv_cc_flag__Wuninitialized
6380		if eval test \${$cacheid+y}
6381then :
6382  printf %s "(cached) " >&6
6383else $as_nop
6384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6385/* end confdefs.h.  */
6386int i;
6387int
6388main (void)
6389{
6390
6391  ;
6392  return 0;
6393}
6394_ACEOF
6395if ac_fn_c_try_link "$LINENO"
6396then :
6397  eval $cacheid=yes
6398else $as_nop
6399  eval $cacheid=no
6400fi
6401rm -f core conftest.err conftest.$ac_objext conftest.beam \
6402    conftest$ac_exeext conftest.$ac_ext
6403fi
6404
6405
6406		CFLAGS="$xorg_testset_save_CFLAGS"
6407
6408		eval supported=\$$cacheid
6409		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6410printf "%s\n" "$supported" >&6; }
6411		if test "$supported" = "yes" ; then
6412			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6413			found="yes"
6414		fi
6415	fi
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431xorg_testset_save_CFLAGS="$CFLAGS"
6432
6433if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6434	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6435	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6436printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6437if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6438then :
6439  printf %s "(cached) " >&6
6440else $as_nop
6441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442/* end confdefs.h.  */
6443int i;
6444_ACEOF
6445if ac_fn_c_try_compile "$LINENO"
6446then :
6447  xorg_cv_cc_flag_unknown_warning_option=yes
6448else $as_nop
6449  xorg_cv_cc_flag_unknown_warning_option=no
6450fi
6451rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6452fi
6453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6454printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6455	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6456	CFLAGS="$xorg_testset_save_CFLAGS"
6457fi
6458
6459if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6460	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6461		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6462	fi
6463	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6464	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6465printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6466if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6467then :
6468  printf %s "(cached) " >&6
6469else $as_nop
6470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6471/* end confdefs.h.  */
6472int i;
6473_ACEOF
6474if ac_fn_c_try_compile "$LINENO"
6475then :
6476  xorg_cv_cc_flag_unused_command_line_argument=yes
6477else $as_nop
6478  xorg_cv_cc_flag_unused_command_line_argument=no
6479fi
6480rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6481fi
6482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6483printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6484	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6485	CFLAGS="$xorg_testset_save_CFLAGS"
6486fi
6487
6488found="no"
6489
6490	if test $found = "no" ; then
6491		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6492			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6493		fi
6494
6495		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6496			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6497		fi
6498
6499		CFLAGS="$CFLAGS -Wshadow"
6500
6501		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6502printf %s "checking if $CC supports -Wshadow... " >&6; }
6503		cacheid=xorg_cv_cc_flag__Wshadow
6504		if eval test \${$cacheid+y}
6505then :
6506  printf %s "(cached) " >&6
6507else $as_nop
6508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6509/* end confdefs.h.  */
6510int i;
6511int
6512main (void)
6513{
6514
6515  ;
6516  return 0;
6517}
6518_ACEOF
6519if ac_fn_c_try_link "$LINENO"
6520then :
6521  eval $cacheid=yes
6522else $as_nop
6523  eval $cacheid=no
6524fi
6525rm -f core conftest.err conftest.$ac_objext conftest.beam \
6526    conftest$ac_exeext conftest.$ac_ext
6527fi
6528
6529
6530		CFLAGS="$xorg_testset_save_CFLAGS"
6531
6532		eval supported=\$$cacheid
6533		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6534printf "%s\n" "$supported" >&6; }
6535		if test "$supported" = "yes" ; then
6536			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6537			found="yes"
6538		fi
6539	fi
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555xorg_testset_save_CFLAGS="$CFLAGS"
6556
6557if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6558	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6559	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6560printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6561if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6562then :
6563  printf %s "(cached) " >&6
6564else $as_nop
6565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6566/* end confdefs.h.  */
6567int i;
6568_ACEOF
6569if ac_fn_c_try_compile "$LINENO"
6570then :
6571  xorg_cv_cc_flag_unknown_warning_option=yes
6572else $as_nop
6573  xorg_cv_cc_flag_unknown_warning_option=no
6574fi
6575rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6576fi
6577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6578printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6579	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6580	CFLAGS="$xorg_testset_save_CFLAGS"
6581fi
6582
6583if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6584	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6585		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6586	fi
6587	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6588	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6589printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6590if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6591then :
6592  printf %s "(cached) " >&6
6593else $as_nop
6594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6595/* end confdefs.h.  */
6596int i;
6597_ACEOF
6598if ac_fn_c_try_compile "$LINENO"
6599then :
6600  xorg_cv_cc_flag_unused_command_line_argument=yes
6601else $as_nop
6602  xorg_cv_cc_flag_unused_command_line_argument=no
6603fi
6604rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6605fi
6606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6607printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6608	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6609	CFLAGS="$xorg_testset_save_CFLAGS"
6610fi
6611
6612found="no"
6613
6614	if test $found = "no" ; then
6615		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6616			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6617		fi
6618
6619		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6620			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6621		fi
6622
6623		CFLAGS="$CFLAGS -Wmissing-noreturn"
6624
6625		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6626printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6627		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6628		if eval test \${$cacheid+y}
6629then :
6630  printf %s "(cached) " >&6
6631else $as_nop
6632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6633/* end confdefs.h.  */
6634int i;
6635int
6636main (void)
6637{
6638
6639  ;
6640  return 0;
6641}
6642_ACEOF
6643if ac_fn_c_try_link "$LINENO"
6644then :
6645  eval $cacheid=yes
6646else $as_nop
6647  eval $cacheid=no
6648fi
6649rm -f core conftest.err conftest.$ac_objext conftest.beam \
6650    conftest$ac_exeext conftest.$ac_ext
6651fi
6652
6653
6654		CFLAGS="$xorg_testset_save_CFLAGS"
6655
6656		eval supported=\$$cacheid
6657		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6658printf "%s\n" "$supported" >&6; }
6659		if test "$supported" = "yes" ; then
6660			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6661			found="yes"
6662		fi
6663	fi
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679xorg_testset_save_CFLAGS="$CFLAGS"
6680
6681if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6682	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6683	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6684printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6685if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6686then :
6687  printf %s "(cached) " >&6
6688else $as_nop
6689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6690/* end confdefs.h.  */
6691int i;
6692_ACEOF
6693if ac_fn_c_try_compile "$LINENO"
6694then :
6695  xorg_cv_cc_flag_unknown_warning_option=yes
6696else $as_nop
6697  xorg_cv_cc_flag_unknown_warning_option=no
6698fi
6699rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6700fi
6701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6702printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6703	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6704	CFLAGS="$xorg_testset_save_CFLAGS"
6705fi
6706
6707if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6708	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6709		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6710	fi
6711	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6712	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6713printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6714if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6715then :
6716  printf %s "(cached) " >&6
6717else $as_nop
6718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6719/* end confdefs.h.  */
6720int i;
6721_ACEOF
6722if ac_fn_c_try_compile "$LINENO"
6723then :
6724  xorg_cv_cc_flag_unused_command_line_argument=yes
6725else $as_nop
6726  xorg_cv_cc_flag_unused_command_line_argument=no
6727fi
6728rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6729fi
6730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6731printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6732	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6733	CFLAGS="$xorg_testset_save_CFLAGS"
6734fi
6735
6736found="no"
6737
6738	if test $found = "no" ; then
6739		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6740			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6741		fi
6742
6743		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6744			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6745		fi
6746
6747		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6748
6749		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6750printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6751		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6752		if eval test \${$cacheid+y}
6753then :
6754  printf %s "(cached) " >&6
6755else $as_nop
6756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6757/* end confdefs.h.  */
6758int i;
6759int
6760main (void)
6761{
6762
6763  ;
6764  return 0;
6765}
6766_ACEOF
6767if ac_fn_c_try_link "$LINENO"
6768then :
6769  eval $cacheid=yes
6770else $as_nop
6771  eval $cacheid=no
6772fi
6773rm -f core conftest.err conftest.$ac_objext conftest.beam \
6774    conftest$ac_exeext conftest.$ac_ext
6775fi
6776
6777
6778		CFLAGS="$xorg_testset_save_CFLAGS"
6779
6780		eval supported=\$$cacheid
6781		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6782printf "%s\n" "$supported" >&6; }
6783		if test "$supported" = "yes" ; then
6784			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6785			found="yes"
6786		fi
6787	fi
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803xorg_testset_save_CFLAGS="$CFLAGS"
6804
6805if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6806	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6807	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6808printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6809if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6810then :
6811  printf %s "(cached) " >&6
6812else $as_nop
6813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6814/* end confdefs.h.  */
6815int i;
6816_ACEOF
6817if ac_fn_c_try_compile "$LINENO"
6818then :
6819  xorg_cv_cc_flag_unknown_warning_option=yes
6820else $as_nop
6821  xorg_cv_cc_flag_unknown_warning_option=no
6822fi
6823rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6824fi
6825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6826printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6827	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6828	CFLAGS="$xorg_testset_save_CFLAGS"
6829fi
6830
6831if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6832	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6833		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6834	fi
6835	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6836	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6837printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6838if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6839then :
6840  printf %s "(cached) " >&6
6841else $as_nop
6842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6843/* end confdefs.h.  */
6844int i;
6845_ACEOF
6846if ac_fn_c_try_compile "$LINENO"
6847then :
6848  xorg_cv_cc_flag_unused_command_line_argument=yes
6849else $as_nop
6850  xorg_cv_cc_flag_unused_command_line_argument=no
6851fi
6852rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6853fi
6854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6855printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6856	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6857	CFLAGS="$xorg_testset_save_CFLAGS"
6858fi
6859
6860found="no"
6861
6862	if test $found = "no" ; then
6863		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6864			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6865		fi
6866
6867		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6868			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6869		fi
6870
6871		CFLAGS="$CFLAGS -Wredundant-decls"
6872
6873		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6874printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
6875		cacheid=xorg_cv_cc_flag__Wredundant_decls
6876		if eval test \${$cacheid+y}
6877then :
6878  printf %s "(cached) " >&6
6879else $as_nop
6880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6881/* end confdefs.h.  */
6882int i;
6883int
6884main (void)
6885{
6886
6887  ;
6888  return 0;
6889}
6890_ACEOF
6891if ac_fn_c_try_link "$LINENO"
6892then :
6893  eval $cacheid=yes
6894else $as_nop
6895  eval $cacheid=no
6896fi
6897rm -f core conftest.err conftest.$ac_objext conftest.beam \
6898    conftest$ac_exeext conftest.$ac_ext
6899fi
6900
6901
6902		CFLAGS="$xorg_testset_save_CFLAGS"
6903
6904		eval supported=\$$cacheid
6905		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6906printf "%s\n" "$supported" >&6; }
6907		if test "$supported" = "yes" ; then
6908			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6909			found="yes"
6910		fi
6911	fi
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927xorg_testset_save_CFLAGS="$CFLAGS"
6928
6929if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6930	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6931	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6932printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6933if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6934then :
6935  printf %s "(cached) " >&6
6936else $as_nop
6937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6938/* end confdefs.h.  */
6939int i;
6940_ACEOF
6941if ac_fn_c_try_compile "$LINENO"
6942then :
6943  xorg_cv_cc_flag_unknown_warning_option=yes
6944else $as_nop
6945  xorg_cv_cc_flag_unknown_warning_option=no
6946fi
6947rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6948fi
6949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6950printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6951	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6952	CFLAGS="$xorg_testset_save_CFLAGS"
6953fi
6954
6955if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6956	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6957		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6958	fi
6959	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6960	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6961printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6962if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6963then :
6964  printf %s "(cached) " >&6
6965else $as_nop
6966  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6967/* end confdefs.h.  */
6968int i;
6969_ACEOF
6970if ac_fn_c_try_compile "$LINENO"
6971then :
6972  xorg_cv_cc_flag_unused_command_line_argument=yes
6973else $as_nop
6974  xorg_cv_cc_flag_unused_command_line_argument=no
6975fi
6976rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6977fi
6978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6979printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6980	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6981	CFLAGS="$xorg_testset_save_CFLAGS"
6982fi
6983
6984found="no"
6985
6986	if test $found = "no" ; then
6987		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6988			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6989		fi
6990
6991		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6992			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6993		fi
6994
6995		CFLAGS="$CFLAGS -Wlogical-op"
6996
6997		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6998printf %s "checking if $CC supports -Wlogical-op... " >&6; }
6999		cacheid=xorg_cv_cc_flag__Wlogical_op
7000		if eval test \${$cacheid+y}
7001then :
7002  printf %s "(cached) " >&6
7003else $as_nop
7004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7005/* end confdefs.h.  */
7006int i;
7007int
7008main (void)
7009{
7010
7011  ;
7012  return 0;
7013}
7014_ACEOF
7015if ac_fn_c_try_link "$LINENO"
7016then :
7017  eval $cacheid=yes
7018else $as_nop
7019  eval $cacheid=no
7020fi
7021rm -f core conftest.err conftest.$ac_objext conftest.beam \
7022    conftest$ac_exeext conftest.$ac_ext
7023fi
7024
7025
7026		CFLAGS="$xorg_testset_save_CFLAGS"
7027
7028		eval supported=\$$cacheid
7029		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7030printf "%s\n" "$supported" >&6; }
7031		if test "$supported" = "yes" ; then
7032			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7033			found="yes"
7034		fi
7035	fi
7036
7037
7038
7039# These are currently disabled because they are noisy.  They will be enabled
7040# in the future once the codebase is sufficiently modernized to silence
7041# them.  For now, I don't want them to drown out the other warnings.
7042# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7043# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7044# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7045
7046# Turn some warnings into errors, so we don't accidently get successful builds
7047# when there are problems that should be fixed.
7048
7049if test "x$SELECTIVE_WERROR" = "xyes" ; then
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063xorg_testset_save_CFLAGS="$CFLAGS"
7064
7065if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7066	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7067	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7068printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7069if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7070then :
7071  printf %s "(cached) " >&6
7072else $as_nop
7073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7074/* end confdefs.h.  */
7075int i;
7076_ACEOF
7077if ac_fn_c_try_compile "$LINENO"
7078then :
7079  xorg_cv_cc_flag_unknown_warning_option=yes
7080else $as_nop
7081  xorg_cv_cc_flag_unknown_warning_option=no
7082fi
7083rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7084fi
7085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7086printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7087	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7088	CFLAGS="$xorg_testset_save_CFLAGS"
7089fi
7090
7091if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7092	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7093		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7094	fi
7095	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7096	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7097printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7098if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7099then :
7100  printf %s "(cached) " >&6
7101else $as_nop
7102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7103/* end confdefs.h.  */
7104int i;
7105_ACEOF
7106if ac_fn_c_try_compile "$LINENO"
7107then :
7108  xorg_cv_cc_flag_unused_command_line_argument=yes
7109else $as_nop
7110  xorg_cv_cc_flag_unused_command_line_argument=no
7111fi
7112rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7113fi
7114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7115printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7116	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7117	CFLAGS="$xorg_testset_save_CFLAGS"
7118fi
7119
7120found="no"
7121
7122	if test $found = "no" ; then
7123		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7124			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7125		fi
7126
7127		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7128			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7129		fi
7130
7131		CFLAGS="$CFLAGS -Werror=implicit"
7132
7133		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7134printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7135		cacheid=xorg_cv_cc_flag__Werror_implicit
7136		if eval test \${$cacheid+y}
7137then :
7138  printf %s "(cached) " >&6
7139else $as_nop
7140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7141/* end confdefs.h.  */
7142int i;
7143int
7144main (void)
7145{
7146
7147  ;
7148  return 0;
7149}
7150_ACEOF
7151if ac_fn_c_try_link "$LINENO"
7152then :
7153  eval $cacheid=yes
7154else $as_nop
7155  eval $cacheid=no
7156fi
7157rm -f core conftest.err conftest.$ac_objext conftest.beam \
7158    conftest$ac_exeext conftest.$ac_ext
7159fi
7160
7161
7162		CFLAGS="$xorg_testset_save_CFLAGS"
7163
7164		eval supported=\$$cacheid
7165		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7166printf "%s\n" "$supported" >&6; }
7167		if test "$supported" = "yes" ; then
7168			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7169			found="yes"
7170		fi
7171	fi
7172
7173	if test $found = "no" ; then
7174		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7175			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7176		fi
7177
7178		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7179			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7180		fi
7181
7182		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7183
7184		{ 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
7185printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7186		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7187		if eval test \${$cacheid+y}
7188then :
7189  printf %s "(cached) " >&6
7190else $as_nop
7191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7192/* end confdefs.h.  */
7193int i;
7194int
7195main (void)
7196{
7197
7198  ;
7199  return 0;
7200}
7201_ACEOF
7202if ac_fn_c_try_link "$LINENO"
7203then :
7204  eval $cacheid=yes
7205else $as_nop
7206  eval $cacheid=no
7207fi
7208rm -f core conftest.err conftest.$ac_objext conftest.beam \
7209    conftest$ac_exeext conftest.$ac_ext
7210fi
7211
7212
7213		CFLAGS="$xorg_testset_save_CFLAGS"
7214
7215		eval supported=\$$cacheid
7216		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7217printf "%s\n" "$supported" >&6; }
7218		if test "$supported" = "yes" ; then
7219			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7220			found="yes"
7221		fi
7222	fi
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238xorg_testset_save_CFLAGS="$CFLAGS"
7239
7240if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7241	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7242	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7243printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7244if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7245then :
7246  printf %s "(cached) " >&6
7247else $as_nop
7248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7249/* end confdefs.h.  */
7250int i;
7251_ACEOF
7252if ac_fn_c_try_compile "$LINENO"
7253then :
7254  xorg_cv_cc_flag_unknown_warning_option=yes
7255else $as_nop
7256  xorg_cv_cc_flag_unknown_warning_option=no
7257fi
7258rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7259fi
7260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7261printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7262	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7263	CFLAGS="$xorg_testset_save_CFLAGS"
7264fi
7265
7266if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7267	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7268		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7269	fi
7270	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7271	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7272printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7273if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7274then :
7275  printf %s "(cached) " >&6
7276else $as_nop
7277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7278/* end confdefs.h.  */
7279int i;
7280_ACEOF
7281if ac_fn_c_try_compile "$LINENO"
7282then :
7283  xorg_cv_cc_flag_unused_command_line_argument=yes
7284else $as_nop
7285  xorg_cv_cc_flag_unused_command_line_argument=no
7286fi
7287rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7288fi
7289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7290printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7291	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7292	CFLAGS="$xorg_testset_save_CFLAGS"
7293fi
7294
7295found="no"
7296
7297	if test $found = "no" ; then
7298		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7299			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7300		fi
7301
7302		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7303			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7304		fi
7305
7306		CFLAGS="$CFLAGS -Werror=nonnull"
7307
7308		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7309printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7310		cacheid=xorg_cv_cc_flag__Werror_nonnull
7311		if eval test \${$cacheid+y}
7312then :
7313  printf %s "(cached) " >&6
7314else $as_nop
7315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7316/* end confdefs.h.  */
7317int i;
7318int
7319main (void)
7320{
7321
7322  ;
7323  return 0;
7324}
7325_ACEOF
7326if ac_fn_c_try_link "$LINENO"
7327then :
7328  eval $cacheid=yes
7329else $as_nop
7330  eval $cacheid=no
7331fi
7332rm -f core conftest.err conftest.$ac_objext conftest.beam \
7333    conftest$ac_exeext conftest.$ac_ext
7334fi
7335
7336
7337		CFLAGS="$xorg_testset_save_CFLAGS"
7338
7339		eval supported=\$$cacheid
7340		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7341printf "%s\n" "$supported" >&6; }
7342		if test "$supported" = "yes" ; then
7343			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7344			found="yes"
7345		fi
7346	fi
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362xorg_testset_save_CFLAGS="$CFLAGS"
7363
7364if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7365	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7366	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7367printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7368if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7369then :
7370  printf %s "(cached) " >&6
7371else $as_nop
7372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7373/* end confdefs.h.  */
7374int i;
7375_ACEOF
7376if ac_fn_c_try_compile "$LINENO"
7377then :
7378  xorg_cv_cc_flag_unknown_warning_option=yes
7379else $as_nop
7380  xorg_cv_cc_flag_unknown_warning_option=no
7381fi
7382rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7383fi
7384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7385printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7386	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7387	CFLAGS="$xorg_testset_save_CFLAGS"
7388fi
7389
7390if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7391	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7392		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7393	fi
7394	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7395	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7396printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7397if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7398then :
7399  printf %s "(cached) " >&6
7400else $as_nop
7401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7402/* end confdefs.h.  */
7403int i;
7404_ACEOF
7405if ac_fn_c_try_compile "$LINENO"
7406then :
7407  xorg_cv_cc_flag_unused_command_line_argument=yes
7408else $as_nop
7409  xorg_cv_cc_flag_unused_command_line_argument=no
7410fi
7411rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7412fi
7413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7414printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7415	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7416	CFLAGS="$xorg_testset_save_CFLAGS"
7417fi
7418
7419found="no"
7420
7421	if test $found = "no" ; then
7422		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7423			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7424		fi
7425
7426		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7427			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7428		fi
7429
7430		CFLAGS="$CFLAGS -Werror=init-self"
7431
7432		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7433printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7434		cacheid=xorg_cv_cc_flag__Werror_init_self
7435		if eval test \${$cacheid+y}
7436then :
7437  printf %s "(cached) " >&6
7438else $as_nop
7439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7440/* end confdefs.h.  */
7441int i;
7442int
7443main (void)
7444{
7445
7446  ;
7447  return 0;
7448}
7449_ACEOF
7450if ac_fn_c_try_link "$LINENO"
7451then :
7452  eval $cacheid=yes
7453else $as_nop
7454  eval $cacheid=no
7455fi
7456rm -f core conftest.err conftest.$ac_objext conftest.beam \
7457    conftest$ac_exeext conftest.$ac_ext
7458fi
7459
7460
7461		CFLAGS="$xorg_testset_save_CFLAGS"
7462
7463		eval supported=\$$cacheid
7464		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7465printf "%s\n" "$supported" >&6; }
7466		if test "$supported" = "yes" ; then
7467			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7468			found="yes"
7469		fi
7470	fi
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486xorg_testset_save_CFLAGS="$CFLAGS"
7487
7488if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7489	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7490	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7491printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7492if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7493then :
7494  printf %s "(cached) " >&6
7495else $as_nop
7496  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7497/* end confdefs.h.  */
7498int i;
7499_ACEOF
7500if ac_fn_c_try_compile "$LINENO"
7501then :
7502  xorg_cv_cc_flag_unknown_warning_option=yes
7503else $as_nop
7504  xorg_cv_cc_flag_unknown_warning_option=no
7505fi
7506rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7507fi
7508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7509printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7510	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7511	CFLAGS="$xorg_testset_save_CFLAGS"
7512fi
7513
7514if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7515	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7516		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7517	fi
7518	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7519	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7520printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7521if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7522then :
7523  printf %s "(cached) " >&6
7524else $as_nop
7525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7526/* end confdefs.h.  */
7527int i;
7528_ACEOF
7529if ac_fn_c_try_compile "$LINENO"
7530then :
7531  xorg_cv_cc_flag_unused_command_line_argument=yes
7532else $as_nop
7533  xorg_cv_cc_flag_unused_command_line_argument=no
7534fi
7535rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7536fi
7537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7538printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7539	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7540	CFLAGS="$xorg_testset_save_CFLAGS"
7541fi
7542
7543found="no"
7544
7545	if test $found = "no" ; then
7546		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7547			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7548		fi
7549
7550		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7551			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7552		fi
7553
7554		CFLAGS="$CFLAGS -Werror=main"
7555
7556		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7557printf %s "checking if $CC supports -Werror=main... " >&6; }
7558		cacheid=xorg_cv_cc_flag__Werror_main
7559		if eval test \${$cacheid+y}
7560then :
7561  printf %s "(cached) " >&6
7562else $as_nop
7563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7564/* end confdefs.h.  */
7565int i;
7566int
7567main (void)
7568{
7569
7570  ;
7571  return 0;
7572}
7573_ACEOF
7574if ac_fn_c_try_link "$LINENO"
7575then :
7576  eval $cacheid=yes
7577else $as_nop
7578  eval $cacheid=no
7579fi
7580rm -f core conftest.err conftest.$ac_objext conftest.beam \
7581    conftest$ac_exeext conftest.$ac_ext
7582fi
7583
7584
7585		CFLAGS="$xorg_testset_save_CFLAGS"
7586
7587		eval supported=\$$cacheid
7588		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7589printf "%s\n" "$supported" >&6; }
7590		if test "$supported" = "yes" ; then
7591			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7592			found="yes"
7593		fi
7594	fi
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610xorg_testset_save_CFLAGS="$CFLAGS"
7611
7612if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7613	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7614	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7615printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7616if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7617then :
7618  printf %s "(cached) " >&6
7619else $as_nop
7620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7621/* end confdefs.h.  */
7622int i;
7623_ACEOF
7624if ac_fn_c_try_compile "$LINENO"
7625then :
7626  xorg_cv_cc_flag_unknown_warning_option=yes
7627else $as_nop
7628  xorg_cv_cc_flag_unknown_warning_option=no
7629fi
7630rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7631fi
7632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7633printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7634	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7635	CFLAGS="$xorg_testset_save_CFLAGS"
7636fi
7637
7638if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7639	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7640		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7641	fi
7642	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7643	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7644printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7645if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7646then :
7647  printf %s "(cached) " >&6
7648else $as_nop
7649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7650/* end confdefs.h.  */
7651int i;
7652_ACEOF
7653if ac_fn_c_try_compile "$LINENO"
7654then :
7655  xorg_cv_cc_flag_unused_command_line_argument=yes
7656else $as_nop
7657  xorg_cv_cc_flag_unused_command_line_argument=no
7658fi
7659rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7660fi
7661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7662printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7663	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7664	CFLAGS="$xorg_testset_save_CFLAGS"
7665fi
7666
7667found="no"
7668
7669	if test $found = "no" ; then
7670		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7671			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7672		fi
7673
7674		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7675			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7676		fi
7677
7678		CFLAGS="$CFLAGS -Werror=missing-braces"
7679
7680		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7681printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7682		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7683		if eval test \${$cacheid+y}
7684then :
7685  printf %s "(cached) " >&6
7686else $as_nop
7687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7688/* end confdefs.h.  */
7689int i;
7690int
7691main (void)
7692{
7693
7694  ;
7695  return 0;
7696}
7697_ACEOF
7698if ac_fn_c_try_link "$LINENO"
7699then :
7700  eval $cacheid=yes
7701else $as_nop
7702  eval $cacheid=no
7703fi
7704rm -f core conftest.err conftest.$ac_objext conftest.beam \
7705    conftest$ac_exeext conftest.$ac_ext
7706fi
7707
7708
7709		CFLAGS="$xorg_testset_save_CFLAGS"
7710
7711		eval supported=\$$cacheid
7712		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7713printf "%s\n" "$supported" >&6; }
7714		if test "$supported" = "yes" ; then
7715			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7716			found="yes"
7717		fi
7718	fi
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734xorg_testset_save_CFLAGS="$CFLAGS"
7735
7736if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7737	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7738	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7739printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7740if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7741then :
7742  printf %s "(cached) " >&6
7743else $as_nop
7744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7745/* end confdefs.h.  */
7746int i;
7747_ACEOF
7748if ac_fn_c_try_compile "$LINENO"
7749then :
7750  xorg_cv_cc_flag_unknown_warning_option=yes
7751else $as_nop
7752  xorg_cv_cc_flag_unknown_warning_option=no
7753fi
7754rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7755fi
7756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7757printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7758	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7759	CFLAGS="$xorg_testset_save_CFLAGS"
7760fi
7761
7762if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7763	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7764		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7765	fi
7766	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7767	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7768printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7769if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7770then :
7771  printf %s "(cached) " >&6
7772else $as_nop
7773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7774/* end confdefs.h.  */
7775int i;
7776_ACEOF
7777if ac_fn_c_try_compile "$LINENO"
7778then :
7779  xorg_cv_cc_flag_unused_command_line_argument=yes
7780else $as_nop
7781  xorg_cv_cc_flag_unused_command_line_argument=no
7782fi
7783rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7784fi
7785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7786printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7787	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7788	CFLAGS="$xorg_testset_save_CFLAGS"
7789fi
7790
7791found="no"
7792
7793	if test $found = "no" ; then
7794		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7795			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7796		fi
7797
7798		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7799			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7800		fi
7801
7802		CFLAGS="$CFLAGS -Werror=sequence-point"
7803
7804		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7805printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7806		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7807		if eval test \${$cacheid+y}
7808then :
7809  printf %s "(cached) " >&6
7810else $as_nop
7811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7812/* end confdefs.h.  */
7813int i;
7814int
7815main (void)
7816{
7817
7818  ;
7819  return 0;
7820}
7821_ACEOF
7822if ac_fn_c_try_link "$LINENO"
7823then :
7824  eval $cacheid=yes
7825else $as_nop
7826  eval $cacheid=no
7827fi
7828rm -f core conftest.err conftest.$ac_objext conftest.beam \
7829    conftest$ac_exeext conftest.$ac_ext
7830fi
7831
7832
7833		CFLAGS="$xorg_testset_save_CFLAGS"
7834
7835		eval supported=\$$cacheid
7836		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7837printf "%s\n" "$supported" >&6; }
7838		if test "$supported" = "yes" ; then
7839			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7840			found="yes"
7841		fi
7842	fi
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858xorg_testset_save_CFLAGS="$CFLAGS"
7859
7860if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7861	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7862	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7863printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7864if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7865then :
7866  printf %s "(cached) " >&6
7867else $as_nop
7868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7869/* end confdefs.h.  */
7870int i;
7871_ACEOF
7872if ac_fn_c_try_compile "$LINENO"
7873then :
7874  xorg_cv_cc_flag_unknown_warning_option=yes
7875else $as_nop
7876  xorg_cv_cc_flag_unknown_warning_option=no
7877fi
7878rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7879fi
7880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7881printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7882	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7883	CFLAGS="$xorg_testset_save_CFLAGS"
7884fi
7885
7886if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7887	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7888		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7889	fi
7890	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7891	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7892printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7893if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7894then :
7895  printf %s "(cached) " >&6
7896else $as_nop
7897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7898/* end confdefs.h.  */
7899int i;
7900_ACEOF
7901if ac_fn_c_try_compile "$LINENO"
7902then :
7903  xorg_cv_cc_flag_unused_command_line_argument=yes
7904else $as_nop
7905  xorg_cv_cc_flag_unused_command_line_argument=no
7906fi
7907rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7908fi
7909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7910printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7911	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7912	CFLAGS="$xorg_testset_save_CFLAGS"
7913fi
7914
7915found="no"
7916
7917	if test $found = "no" ; then
7918		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7919			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7920		fi
7921
7922		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7923			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7924		fi
7925
7926		CFLAGS="$CFLAGS -Werror=return-type"
7927
7928		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7929printf %s "checking if $CC supports -Werror=return-type... " >&6; }
7930		cacheid=xorg_cv_cc_flag__Werror_return_type
7931		if eval test \${$cacheid+y}
7932then :
7933  printf %s "(cached) " >&6
7934else $as_nop
7935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7936/* end confdefs.h.  */
7937int i;
7938int
7939main (void)
7940{
7941
7942  ;
7943  return 0;
7944}
7945_ACEOF
7946if ac_fn_c_try_link "$LINENO"
7947then :
7948  eval $cacheid=yes
7949else $as_nop
7950  eval $cacheid=no
7951fi
7952rm -f core conftest.err conftest.$ac_objext conftest.beam \
7953    conftest$ac_exeext conftest.$ac_ext
7954fi
7955
7956
7957		CFLAGS="$xorg_testset_save_CFLAGS"
7958
7959		eval supported=\$$cacheid
7960		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7961printf "%s\n" "$supported" >&6; }
7962		if test "$supported" = "yes" ; then
7963			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7964			found="yes"
7965		fi
7966	fi
7967
7968	if test $found = "no" ; then
7969		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7970			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7971		fi
7972
7973		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7974			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7975		fi
7976
7977		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7978
7979		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7980printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7981		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7982		if eval test \${$cacheid+y}
7983then :
7984  printf %s "(cached) " >&6
7985else $as_nop
7986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7987/* end confdefs.h.  */
7988int i;
7989int
7990main (void)
7991{
7992
7993  ;
7994  return 0;
7995}
7996_ACEOF
7997if ac_fn_c_try_link "$LINENO"
7998then :
7999  eval $cacheid=yes
8000else $as_nop
8001  eval $cacheid=no
8002fi
8003rm -f core conftest.err conftest.$ac_objext conftest.beam \
8004    conftest$ac_exeext conftest.$ac_ext
8005fi
8006
8007
8008		CFLAGS="$xorg_testset_save_CFLAGS"
8009
8010		eval supported=\$$cacheid
8011		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8012printf "%s\n" "$supported" >&6; }
8013		if test "$supported" = "yes" ; then
8014			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8015			found="yes"
8016		fi
8017	fi
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033xorg_testset_save_CFLAGS="$CFLAGS"
8034
8035if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8036	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8037	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8038printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8039if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8040then :
8041  printf %s "(cached) " >&6
8042else $as_nop
8043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8044/* end confdefs.h.  */
8045int i;
8046_ACEOF
8047if ac_fn_c_try_compile "$LINENO"
8048then :
8049  xorg_cv_cc_flag_unknown_warning_option=yes
8050else $as_nop
8051  xorg_cv_cc_flag_unknown_warning_option=no
8052fi
8053rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8054fi
8055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8056printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8057	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8058	CFLAGS="$xorg_testset_save_CFLAGS"
8059fi
8060
8061if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8062	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8063		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8064	fi
8065	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8066	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8067printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8068if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8069then :
8070  printf %s "(cached) " >&6
8071else $as_nop
8072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8073/* end confdefs.h.  */
8074int i;
8075_ACEOF
8076if ac_fn_c_try_compile "$LINENO"
8077then :
8078  xorg_cv_cc_flag_unused_command_line_argument=yes
8079else $as_nop
8080  xorg_cv_cc_flag_unused_command_line_argument=no
8081fi
8082rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8083fi
8084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8085printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8086	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8087	CFLAGS="$xorg_testset_save_CFLAGS"
8088fi
8089
8090found="no"
8091
8092	if test $found = "no" ; then
8093		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8094			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8095		fi
8096
8097		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8098			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8099		fi
8100
8101		CFLAGS="$CFLAGS -Werror=trigraphs"
8102
8103		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8104printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8105		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8106		if eval test \${$cacheid+y}
8107then :
8108  printf %s "(cached) " >&6
8109else $as_nop
8110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111/* end confdefs.h.  */
8112int i;
8113int
8114main (void)
8115{
8116
8117  ;
8118  return 0;
8119}
8120_ACEOF
8121if ac_fn_c_try_link "$LINENO"
8122then :
8123  eval $cacheid=yes
8124else $as_nop
8125  eval $cacheid=no
8126fi
8127rm -f core conftest.err conftest.$ac_objext conftest.beam \
8128    conftest$ac_exeext conftest.$ac_ext
8129fi
8130
8131
8132		CFLAGS="$xorg_testset_save_CFLAGS"
8133
8134		eval supported=\$$cacheid
8135		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8136printf "%s\n" "$supported" >&6; }
8137		if test "$supported" = "yes" ; then
8138			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8139			found="yes"
8140		fi
8141	fi
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157xorg_testset_save_CFLAGS="$CFLAGS"
8158
8159if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8160	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8161	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8162printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8163if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8164then :
8165  printf %s "(cached) " >&6
8166else $as_nop
8167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8168/* end confdefs.h.  */
8169int i;
8170_ACEOF
8171if ac_fn_c_try_compile "$LINENO"
8172then :
8173  xorg_cv_cc_flag_unknown_warning_option=yes
8174else $as_nop
8175  xorg_cv_cc_flag_unknown_warning_option=no
8176fi
8177rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8178fi
8179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8180printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8181	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8182	CFLAGS="$xorg_testset_save_CFLAGS"
8183fi
8184
8185if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8186	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8187		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8188	fi
8189	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8190	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8191printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8192if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8193then :
8194  printf %s "(cached) " >&6
8195else $as_nop
8196  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8197/* end confdefs.h.  */
8198int i;
8199_ACEOF
8200if ac_fn_c_try_compile "$LINENO"
8201then :
8202  xorg_cv_cc_flag_unused_command_line_argument=yes
8203else $as_nop
8204  xorg_cv_cc_flag_unused_command_line_argument=no
8205fi
8206rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8207fi
8208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8209printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8210	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8211	CFLAGS="$xorg_testset_save_CFLAGS"
8212fi
8213
8214found="no"
8215
8216	if test $found = "no" ; then
8217		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8218			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8219		fi
8220
8221		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8222			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8223		fi
8224
8225		CFLAGS="$CFLAGS -Werror=array-bounds"
8226
8227		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8228printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8229		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8230		if eval test \${$cacheid+y}
8231then :
8232  printf %s "(cached) " >&6
8233else $as_nop
8234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8235/* end confdefs.h.  */
8236int i;
8237int
8238main (void)
8239{
8240
8241  ;
8242  return 0;
8243}
8244_ACEOF
8245if ac_fn_c_try_link "$LINENO"
8246then :
8247  eval $cacheid=yes
8248else $as_nop
8249  eval $cacheid=no
8250fi
8251rm -f core conftest.err conftest.$ac_objext conftest.beam \
8252    conftest$ac_exeext conftest.$ac_ext
8253fi
8254
8255
8256		CFLAGS="$xorg_testset_save_CFLAGS"
8257
8258		eval supported=\$$cacheid
8259		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8260printf "%s\n" "$supported" >&6; }
8261		if test "$supported" = "yes" ; then
8262			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8263			found="yes"
8264		fi
8265	fi
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281xorg_testset_save_CFLAGS="$CFLAGS"
8282
8283if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8284	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8285	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8286printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8287if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8288then :
8289  printf %s "(cached) " >&6
8290else $as_nop
8291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8292/* end confdefs.h.  */
8293int i;
8294_ACEOF
8295if ac_fn_c_try_compile "$LINENO"
8296then :
8297  xorg_cv_cc_flag_unknown_warning_option=yes
8298else $as_nop
8299  xorg_cv_cc_flag_unknown_warning_option=no
8300fi
8301rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8302fi
8303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8304printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8305	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8306	CFLAGS="$xorg_testset_save_CFLAGS"
8307fi
8308
8309if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8310	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8311		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8312	fi
8313	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8314	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8315printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8316if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8317then :
8318  printf %s "(cached) " >&6
8319else $as_nop
8320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8321/* end confdefs.h.  */
8322int i;
8323_ACEOF
8324if ac_fn_c_try_compile "$LINENO"
8325then :
8326  xorg_cv_cc_flag_unused_command_line_argument=yes
8327else $as_nop
8328  xorg_cv_cc_flag_unused_command_line_argument=no
8329fi
8330rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8331fi
8332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8333printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8334	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8335	CFLAGS="$xorg_testset_save_CFLAGS"
8336fi
8337
8338found="no"
8339
8340	if test $found = "no" ; then
8341		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8342			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8343		fi
8344
8345		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8346			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8347		fi
8348
8349		CFLAGS="$CFLAGS -Werror=write-strings"
8350
8351		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8352printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8353		cacheid=xorg_cv_cc_flag__Werror_write_strings
8354		if eval test \${$cacheid+y}
8355then :
8356  printf %s "(cached) " >&6
8357else $as_nop
8358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8359/* end confdefs.h.  */
8360int i;
8361int
8362main (void)
8363{
8364
8365  ;
8366  return 0;
8367}
8368_ACEOF
8369if ac_fn_c_try_link "$LINENO"
8370then :
8371  eval $cacheid=yes
8372else $as_nop
8373  eval $cacheid=no
8374fi
8375rm -f core conftest.err conftest.$ac_objext conftest.beam \
8376    conftest$ac_exeext conftest.$ac_ext
8377fi
8378
8379
8380		CFLAGS="$xorg_testset_save_CFLAGS"
8381
8382		eval supported=\$$cacheid
8383		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8384printf "%s\n" "$supported" >&6; }
8385		if test "$supported" = "yes" ; then
8386			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8387			found="yes"
8388		fi
8389	fi
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405xorg_testset_save_CFLAGS="$CFLAGS"
8406
8407if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8408	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8409	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8410printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8411if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8412then :
8413  printf %s "(cached) " >&6
8414else $as_nop
8415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8416/* end confdefs.h.  */
8417int i;
8418_ACEOF
8419if ac_fn_c_try_compile "$LINENO"
8420then :
8421  xorg_cv_cc_flag_unknown_warning_option=yes
8422else $as_nop
8423  xorg_cv_cc_flag_unknown_warning_option=no
8424fi
8425rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8426fi
8427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8428printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8429	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8430	CFLAGS="$xorg_testset_save_CFLAGS"
8431fi
8432
8433if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8434	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8435		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8436	fi
8437	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8438	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8439printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8440if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8441then :
8442  printf %s "(cached) " >&6
8443else $as_nop
8444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8445/* end confdefs.h.  */
8446int i;
8447_ACEOF
8448if ac_fn_c_try_compile "$LINENO"
8449then :
8450  xorg_cv_cc_flag_unused_command_line_argument=yes
8451else $as_nop
8452  xorg_cv_cc_flag_unused_command_line_argument=no
8453fi
8454rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8455fi
8456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8457printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8458	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8459	CFLAGS="$xorg_testset_save_CFLAGS"
8460fi
8461
8462found="no"
8463
8464	if test $found = "no" ; then
8465		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8466			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8467		fi
8468
8469		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8470			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8471		fi
8472
8473		CFLAGS="$CFLAGS -Werror=address"
8474
8475		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8476printf %s "checking if $CC supports -Werror=address... " >&6; }
8477		cacheid=xorg_cv_cc_flag__Werror_address
8478		if eval test \${$cacheid+y}
8479then :
8480  printf %s "(cached) " >&6
8481else $as_nop
8482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8483/* end confdefs.h.  */
8484int i;
8485int
8486main (void)
8487{
8488
8489  ;
8490  return 0;
8491}
8492_ACEOF
8493if ac_fn_c_try_link "$LINENO"
8494then :
8495  eval $cacheid=yes
8496else $as_nop
8497  eval $cacheid=no
8498fi
8499rm -f core conftest.err conftest.$ac_objext conftest.beam \
8500    conftest$ac_exeext conftest.$ac_ext
8501fi
8502
8503
8504		CFLAGS="$xorg_testset_save_CFLAGS"
8505
8506		eval supported=\$$cacheid
8507		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8508printf "%s\n" "$supported" >&6; }
8509		if test "$supported" = "yes" ; then
8510			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8511			found="yes"
8512		fi
8513	fi
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529xorg_testset_save_CFLAGS="$CFLAGS"
8530
8531if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8532	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8533	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8534printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8535if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8536then :
8537  printf %s "(cached) " >&6
8538else $as_nop
8539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8540/* end confdefs.h.  */
8541int i;
8542_ACEOF
8543if ac_fn_c_try_compile "$LINENO"
8544then :
8545  xorg_cv_cc_flag_unknown_warning_option=yes
8546else $as_nop
8547  xorg_cv_cc_flag_unknown_warning_option=no
8548fi
8549rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8550fi
8551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8552printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8553	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8554	CFLAGS="$xorg_testset_save_CFLAGS"
8555fi
8556
8557if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8558	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8559		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8560	fi
8561	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8562	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8563printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8564if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8565then :
8566  printf %s "(cached) " >&6
8567else $as_nop
8568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8569/* end confdefs.h.  */
8570int i;
8571_ACEOF
8572if ac_fn_c_try_compile "$LINENO"
8573then :
8574  xorg_cv_cc_flag_unused_command_line_argument=yes
8575else $as_nop
8576  xorg_cv_cc_flag_unused_command_line_argument=no
8577fi
8578rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8579fi
8580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8581printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8582	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8583	CFLAGS="$xorg_testset_save_CFLAGS"
8584fi
8585
8586found="no"
8587
8588	if test $found = "no" ; then
8589		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8590			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8591		fi
8592
8593		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8594			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8595		fi
8596
8597		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8598
8599		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8600printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8601		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8602		if eval test \${$cacheid+y}
8603then :
8604  printf %s "(cached) " >&6
8605else $as_nop
8606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8607/* end confdefs.h.  */
8608int i;
8609int
8610main (void)
8611{
8612
8613  ;
8614  return 0;
8615}
8616_ACEOF
8617if ac_fn_c_try_link "$LINENO"
8618then :
8619  eval $cacheid=yes
8620else $as_nop
8621  eval $cacheid=no
8622fi
8623rm -f core conftest.err conftest.$ac_objext conftest.beam \
8624    conftest$ac_exeext conftest.$ac_ext
8625fi
8626
8627
8628		CFLAGS="$xorg_testset_save_CFLAGS"
8629
8630		eval supported=\$$cacheid
8631		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8632printf "%s\n" "$supported" >&6; }
8633		if test "$supported" = "yes" ; then
8634			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8635			found="yes"
8636		fi
8637	fi
8638
8639	if test $found = "no" ; then
8640		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8641			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8642		fi
8643
8644		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8645			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8646		fi
8647
8648		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8649
8650		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8651printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8652		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8653		if eval test \${$cacheid+y}
8654then :
8655  printf %s "(cached) " >&6
8656else $as_nop
8657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8658/* end confdefs.h.  */
8659int i;
8660int
8661main (void)
8662{
8663
8664  ;
8665  return 0;
8666}
8667_ACEOF
8668if ac_fn_c_try_link "$LINENO"
8669then :
8670  eval $cacheid=yes
8671else $as_nop
8672  eval $cacheid=no
8673fi
8674rm -f core conftest.err conftest.$ac_objext conftest.beam \
8675    conftest$ac_exeext conftest.$ac_ext
8676fi
8677
8678
8679		CFLAGS="$xorg_testset_save_CFLAGS"
8680
8681		eval supported=\$$cacheid
8682		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8683printf "%s\n" "$supported" >&6; }
8684		if test "$supported" = "yes" ; then
8685			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8686			found="yes"
8687		fi
8688	fi
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704xorg_testset_save_CFLAGS="$CFLAGS"
8705
8706if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8707	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8708	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8709printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8710if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8711then :
8712  printf %s "(cached) " >&6
8713else $as_nop
8714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8715/* end confdefs.h.  */
8716int i;
8717_ACEOF
8718if ac_fn_c_try_compile "$LINENO"
8719then :
8720  xorg_cv_cc_flag_unknown_warning_option=yes
8721else $as_nop
8722  xorg_cv_cc_flag_unknown_warning_option=no
8723fi
8724rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8725fi
8726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8727printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8728	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8729	CFLAGS="$xorg_testset_save_CFLAGS"
8730fi
8731
8732if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8733	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8734		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8735	fi
8736	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8737	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8738printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8739if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8740then :
8741  printf %s "(cached) " >&6
8742else $as_nop
8743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8744/* end confdefs.h.  */
8745int i;
8746_ACEOF
8747if ac_fn_c_try_compile "$LINENO"
8748then :
8749  xorg_cv_cc_flag_unused_command_line_argument=yes
8750else $as_nop
8751  xorg_cv_cc_flag_unused_command_line_argument=no
8752fi
8753rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8754fi
8755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8756printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8757	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8758	CFLAGS="$xorg_testset_save_CFLAGS"
8759fi
8760
8761found="no"
8762
8763	if test $found = "no" ; then
8764		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8765			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8766		fi
8767
8768		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8769			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8770		fi
8771
8772		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8773
8774		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8775printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8776		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8777		if eval test \${$cacheid+y}
8778then :
8779  printf %s "(cached) " >&6
8780else $as_nop
8781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8782/* end confdefs.h.  */
8783int i;
8784int
8785main (void)
8786{
8787
8788  ;
8789  return 0;
8790}
8791_ACEOF
8792if ac_fn_c_try_link "$LINENO"
8793then :
8794  eval $cacheid=yes
8795else $as_nop
8796  eval $cacheid=no
8797fi
8798rm -f core conftest.err conftest.$ac_objext conftest.beam \
8799    conftest$ac_exeext conftest.$ac_ext
8800fi
8801
8802
8803		CFLAGS="$xorg_testset_save_CFLAGS"
8804
8805		eval supported=\$$cacheid
8806		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8807printf "%s\n" "$supported" >&6; }
8808		if test "$supported" = "yes" ; then
8809			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8810			found="yes"
8811		fi
8812	fi
8813
8814 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8815else
8816{ 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
8817printf "%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;}
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831xorg_testset_save_CFLAGS="$CFLAGS"
8832
8833if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8834	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8835	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8836printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8837if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8838then :
8839  printf %s "(cached) " >&6
8840else $as_nop
8841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8842/* end confdefs.h.  */
8843int i;
8844_ACEOF
8845if ac_fn_c_try_compile "$LINENO"
8846then :
8847  xorg_cv_cc_flag_unknown_warning_option=yes
8848else $as_nop
8849  xorg_cv_cc_flag_unknown_warning_option=no
8850fi
8851rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8852fi
8853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8854printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8855	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8856	CFLAGS="$xorg_testset_save_CFLAGS"
8857fi
8858
8859if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8860	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8861		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8862	fi
8863	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8864	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8865printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8866if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8867then :
8868  printf %s "(cached) " >&6
8869else $as_nop
8870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8871/* end confdefs.h.  */
8872int i;
8873_ACEOF
8874if ac_fn_c_try_compile "$LINENO"
8875then :
8876  xorg_cv_cc_flag_unused_command_line_argument=yes
8877else $as_nop
8878  xorg_cv_cc_flag_unused_command_line_argument=no
8879fi
8880rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8881fi
8882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8883printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8884	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8885	CFLAGS="$xorg_testset_save_CFLAGS"
8886fi
8887
8888found="no"
8889
8890	if test $found = "no" ; then
8891		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8892			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8893		fi
8894
8895		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8896			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8897		fi
8898
8899		CFLAGS="$CFLAGS -Wimplicit"
8900
8901		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8902printf %s "checking if $CC supports -Wimplicit... " >&6; }
8903		cacheid=xorg_cv_cc_flag__Wimplicit
8904		if eval test \${$cacheid+y}
8905then :
8906  printf %s "(cached) " >&6
8907else $as_nop
8908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8909/* end confdefs.h.  */
8910int i;
8911int
8912main (void)
8913{
8914
8915  ;
8916  return 0;
8917}
8918_ACEOF
8919if ac_fn_c_try_link "$LINENO"
8920then :
8921  eval $cacheid=yes
8922else $as_nop
8923  eval $cacheid=no
8924fi
8925rm -f core conftest.err conftest.$ac_objext conftest.beam \
8926    conftest$ac_exeext conftest.$ac_ext
8927fi
8928
8929
8930		CFLAGS="$xorg_testset_save_CFLAGS"
8931
8932		eval supported=\$$cacheid
8933		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8934printf "%s\n" "$supported" >&6; }
8935		if test "$supported" = "yes" ; then
8936			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8937			found="yes"
8938		fi
8939	fi
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955xorg_testset_save_CFLAGS="$CFLAGS"
8956
8957if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8958	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8959	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8960printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8961if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8962then :
8963  printf %s "(cached) " >&6
8964else $as_nop
8965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8966/* end confdefs.h.  */
8967int i;
8968_ACEOF
8969if ac_fn_c_try_compile "$LINENO"
8970then :
8971  xorg_cv_cc_flag_unknown_warning_option=yes
8972else $as_nop
8973  xorg_cv_cc_flag_unknown_warning_option=no
8974fi
8975rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8976fi
8977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8978printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8979	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8980	CFLAGS="$xorg_testset_save_CFLAGS"
8981fi
8982
8983if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8984	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8985		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8986	fi
8987	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8988	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8989printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8990if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8991then :
8992  printf %s "(cached) " >&6
8993else $as_nop
8994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8995/* end confdefs.h.  */
8996int i;
8997_ACEOF
8998if ac_fn_c_try_compile "$LINENO"
8999then :
9000  xorg_cv_cc_flag_unused_command_line_argument=yes
9001else $as_nop
9002  xorg_cv_cc_flag_unused_command_line_argument=no
9003fi
9004rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9005fi
9006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9007printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9008	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9009	CFLAGS="$xorg_testset_save_CFLAGS"
9010fi
9011
9012found="no"
9013
9014	if test $found = "no" ; then
9015		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9016			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9017		fi
9018
9019		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9020			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9021		fi
9022
9023		CFLAGS="$CFLAGS -Wnonnull"
9024
9025		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9026printf %s "checking if $CC supports -Wnonnull... " >&6; }
9027		cacheid=xorg_cv_cc_flag__Wnonnull
9028		if eval test \${$cacheid+y}
9029then :
9030  printf %s "(cached) " >&6
9031else $as_nop
9032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9033/* end confdefs.h.  */
9034int i;
9035int
9036main (void)
9037{
9038
9039  ;
9040  return 0;
9041}
9042_ACEOF
9043if ac_fn_c_try_link "$LINENO"
9044then :
9045  eval $cacheid=yes
9046else $as_nop
9047  eval $cacheid=no
9048fi
9049rm -f core conftest.err conftest.$ac_objext conftest.beam \
9050    conftest$ac_exeext conftest.$ac_ext
9051fi
9052
9053
9054		CFLAGS="$xorg_testset_save_CFLAGS"
9055
9056		eval supported=\$$cacheid
9057		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9058printf "%s\n" "$supported" >&6; }
9059		if test "$supported" = "yes" ; then
9060			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9061			found="yes"
9062		fi
9063	fi
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079xorg_testset_save_CFLAGS="$CFLAGS"
9080
9081if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9082	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9083	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9084printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9085if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9086then :
9087  printf %s "(cached) " >&6
9088else $as_nop
9089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9090/* end confdefs.h.  */
9091int i;
9092_ACEOF
9093if ac_fn_c_try_compile "$LINENO"
9094then :
9095  xorg_cv_cc_flag_unknown_warning_option=yes
9096else $as_nop
9097  xorg_cv_cc_flag_unknown_warning_option=no
9098fi
9099rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9100fi
9101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9102printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9103	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9104	CFLAGS="$xorg_testset_save_CFLAGS"
9105fi
9106
9107if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9108	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9109		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9110	fi
9111	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9112	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9113printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9114if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9115then :
9116  printf %s "(cached) " >&6
9117else $as_nop
9118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9119/* end confdefs.h.  */
9120int i;
9121_ACEOF
9122if ac_fn_c_try_compile "$LINENO"
9123then :
9124  xorg_cv_cc_flag_unused_command_line_argument=yes
9125else $as_nop
9126  xorg_cv_cc_flag_unused_command_line_argument=no
9127fi
9128rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9129fi
9130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9131printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9132	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9133	CFLAGS="$xorg_testset_save_CFLAGS"
9134fi
9135
9136found="no"
9137
9138	if test $found = "no" ; then
9139		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9140			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9141		fi
9142
9143		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9144			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9145		fi
9146
9147		CFLAGS="$CFLAGS -Winit-self"
9148
9149		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9150printf %s "checking if $CC supports -Winit-self... " >&6; }
9151		cacheid=xorg_cv_cc_flag__Winit_self
9152		if eval test \${$cacheid+y}
9153then :
9154  printf %s "(cached) " >&6
9155else $as_nop
9156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9157/* end confdefs.h.  */
9158int i;
9159int
9160main (void)
9161{
9162
9163  ;
9164  return 0;
9165}
9166_ACEOF
9167if ac_fn_c_try_link "$LINENO"
9168then :
9169  eval $cacheid=yes
9170else $as_nop
9171  eval $cacheid=no
9172fi
9173rm -f core conftest.err conftest.$ac_objext conftest.beam \
9174    conftest$ac_exeext conftest.$ac_ext
9175fi
9176
9177
9178		CFLAGS="$xorg_testset_save_CFLAGS"
9179
9180		eval supported=\$$cacheid
9181		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9182printf "%s\n" "$supported" >&6; }
9183		if test "$supported" = "yes" ; then
9184			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9185			found="yes"
9186		fi
9187	fi
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203xorg_testset_save_CFLAGS="$CFLAGS"
9204
9205if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9206	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9207	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9208printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9209if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9210then :
9211  printf %s "(cached) " >&6
9212else $as_nop
9213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9214/* end confdefs.h.  */
9215int i;
9216_ACEOF
9217if ac_fn_c_try_compile "$LINENO"
9218then :
9219  xorg_cv_cc_flag_unknown_warning_option=yes
9220else $as_nop
9221  xorg_cv_cc_flag_unknown_warning_option=no
9222fi
9223rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9224fi
9225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9226printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9227	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9228	CFLAGS="$xorg_testset_save_CFLAGS"
9229fi
9230
9231if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9232	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9233		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9234	fi
9235	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9236	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9237printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9238if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9239then :
9240  printf %s "(cached) " >&6
9241else $as_nop
9242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9243/* end confdefs.h.  */
9244int i;
9245_ACEOF
9246if ac_fn_c_try_compile "$LINENO"
9247then :
9248  xorg_cv_cc_flag_unused_command_line_argument=yes
9249else $as_nop
9250  xorg_cv_cc_flag_unused_command_line_argument=no
9251fi
9252rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9253fi
9254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9255printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9256	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9257	CFLAGS="$xorg_testset_save_CFLAGS"
9258fi
9259
9260found="no"
9261
9262	if test $found = "no" ; then
9263		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9264			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9265		fi
9266
9267		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9268			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9269		fi
9270
9271		CFLAGS="$CFLAGS -Wmain"
9272
9273		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9274printf %s "checking if $CC supports -Wmain... " >&6; }
9275		cacheid=xorg_cv_cc_flag__Wmain
9276		if eval test \${$cacheid+y}
9277then :
9278  printf %s "(cached) " >&6
9279else $as_nop
9280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9281/* end confdefs.h.  */
9282int i;
9283int
9284main (void)
9285{
9286
9287  ;
9288  return 0;
9289}
9290_ACEOF
9291if ac_fn_c_try_link "$LINENO"
9292then :
9293  eval $cacheid=yes
9294else $as_nop
9295  eval $cacheid=no
9296fi
9297rm -f core conftest.err conftest.$ac_objext conftest.beam \
9298    conftest$ac_exeext conftest.$ac_ext
9299fi
9300
9301
9302		CFLAGS="$xorg_testset_save_CFLAGS"
9303
9304		eval supported=\$$cacheid
9305		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9306printf "%s\n" "$supported" >&6; }
9307		if test "$supported" = "yes" ; then
9308			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9309			found="yes"
9310		fi
9311	fi
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327xorg_testset_save_CFLAGS="$CFLAGS"
9328
9329if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9330	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9331	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9332printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9333if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9334then :
9335  printf %s "(cached) " >&6
9336else $as_nop
9337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9338/* end confdefs.h.  */
9339int i;
9340_ACEOF
9341if ac_fn_c_try_compile "$LINENO"
9342then :
9343  xorg_cv_cc_flag_unknown_warning_option=yes
9344else $as_nop
9345  xorg_cv_cc_flag_unknown_warning_option=no
9346fi
9347rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9348fi
9349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9350printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9351	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9352	CFLAGS="$xorg_testset_save_CFLAGS"
9353fi
9354
9355if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9356	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9357		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9358	fi
9359	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9360	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9361printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9362if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9363then :
9364  printf %s "(cached) " >&6
9365else $as_nop
9366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9367/* end confdefs.h.  */
9368int i;
9369_ACEOF
9370if ac_fn_c_try_compile "$LINENO"
9371then :
9372  xorg_cv_cc_flag_unused_command_line_argument=yes
9373else $as_nop
9374  xorg_cv_cc_flag_unused_command_line_argument=no
9375fi
9376rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9377fi
9378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9379printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9380	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9381	CFLAGS="$xorg_testset_save_CFLAGS"
9382fi
9383
9384found="no"
9385
9386	if test $found = "no" ; then
9387		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9388			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9389		fi
9390
9391		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9392			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9393		fi
9394
9395		CFLAGS="$CFLAGS -Wmissing-braces"
9396
9397		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9398printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9399		cacheid=xorg_cv_cc_flag__Wmissing_braces
9400		if eval test \${$cacheid+y}
9401then :
9402  printf %s "(cached) " >&6
9403else $as_nop
9404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9405/* end confdefs.h.  */
9406int i;
9407int
9408main (void)
9409{
9410
9411  ;
9412  return 0;
9413}
9414_ACEOF
9415if ac_fn_c_try_link "$LINENO"
9416then :
9417  eval $cacheid=yes
9418else $as_nop
9419  eval $cacheid=no
9420fi
9421rm -f core conftest.err conftest.$ac_objext conftest.beam \
9422    conftest$ac_exeext conftest.$ac_ext
9423fi
9424
9425
9426		CFLAGS="$xorg_testset_save_CFLAGS"
9427
9428		eval supported=\$$cacheid
9429		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9430printf "%s\n" "$supported" >&6; }
9431		if test "$supported" = "yes" ; then
9432			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9433			found="yes"
9434		fi
9435	fi
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451xorg_testset_save_CFLAGS="$CFLAGS"
9452
9453if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9454	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9455	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9456printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9457if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9458then :
9459  printf %s "(cached) " >&6
9460else $as_nop
9461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9462/* end confdefs.h.  */
9463int i;
9464_ACEOF
9465if ac_fn_c_try_compile "$LINENO"
9466then :
9467  xorg_cv_cc_flag_unknown_warning_option=yes
9468else $as_nop
9469  xorg_cv_cc_flag_unknown_warning_option=no
9470fi
9471rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9472fi
9473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9474printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9475	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9476	CFLAGS="$xorg_testset_save_CFLAGS"
9477fi
9478
9479if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9480	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9481		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9482	fi
9483	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9484	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9485printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9486if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9487then :
9488  printf %s "(cached) " >&6
9489else $as_nop
9490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9491/* end confdefs.h.  */
9492int i;
9493_ACEOF
9494if ac_fn_c_try_compile "$LINENO"
9495then :
9496  xorg_cv_cc_flag_unused_command_line_argument=yes
9497else $as_nop
9498  xorg_cv_cc_flag_unused_command_line_argument=no
9499fi
9500rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9501fi
9502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9503printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9504	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9505	CFLAGS="$xorg_testset_save_CFLAGS"
9506fi
9507
9508found="no"
9509
9510	if test $found = "no" ; then
9511		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9512			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9513		fi
9514
9515		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9516			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9517		fi
9518
9519		CFLAGS="$CFLAGS -Wsequence-point"
9520
9521		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9522printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9523		cacheid=xorg_cv_cc_flag__Wsequence_point
9524		if eval test \${$cacheid+y}
9525then :
9526  printf %s "(cached) " >&6
9527else $as_nop
9528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9529/* end confdefs.h.  */
9530int i;
9531int
9532main (void)
9533{
9534
9535  ;
9536  return 0;
9537}
9538_ACEOF
9539if ac_fn_c_try_link "$LINENO"
9540then :
9541  eval $cacheid=yes
9542else $as_nop
9543  eval $cacheid=no
9544fi
9545rm -f core conftest.err conftest.$ac_objext conftest.beam \
9546    conftest$ac_exeext conftest.$ac_ext
9547fi
9548
9549
9550		CFLAGS="$xorg_testset_save_CFLAGS"
9551
9552		eval supported=\$$cacheid
9553		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9554printf "%s\n" "$supported" >&6; }
9555		if test "$supported" = "yes" ; then
9556			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9557			found="yes"
9558		fi
9559	fi
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575xorg_testset_save_CFLAGS="$CFLAGS"
9576
9577if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9578	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9579	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9580printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9581if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9582then :
9583  printf %s "(cached) " >&6
9584else $as_nop
9585  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9586/* end confdefs.h.  */
9587int i;
9588_ACEOF
9589if ac_fn_c_try_compile "$LINENO"
9590then :
9591  xorg_cv_cc_flag_unknown_warning_option=yes
9592else $as_nop
9593  xorg_cv_cc_flag_unknown_warning_option=no
9594fi
9595rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9596fi
9597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9598printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9599	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9600	CFLAGS="$xorg_testset_save_CFLAGS"
9601fi
9602
9603if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9604	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9605		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9606	fi
9607	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9608	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9609printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9610if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9611then :
9612  printf %s "(cached) " >&6
9613else $as_nop
9614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9615/* end confdefs.h.  */
9616int i;
9617_ACEOF
9618if ac_fn_c_try_compile "$LINENO"
9619then :
9620  xorg_cv_cc_flag_unused_command_line_argument=yes
9621else $as_nop
9622  xorg_cv_cc_flag_unused_command_line_argument=no
9623fi
9624rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9625fi
9626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9627printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9628	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9629	CFLAGS="$xorg_testset_save_CFLAGS"
9630fi
9631
9632found="no"
9633
9634	if test $found = "no" ; then
9635		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9636			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9637		fi
9638
9639		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9640			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9641		fi
9642
9643		CFLAGS="$CFLAGS -Wreturn-type"
9644
9645		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9646printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9647		cacheid=xorg_cv_cc_flag__Wreturn_type
9648		if eval test \${$cacheid+y}
9649then :
9650  printf %s "(cached) " >&6
9651else $as_nop
9652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9653/* end confdefs.h.  */
9654int i;
9655int
9656main (void)
9657{
9658
9659  ;
9660  return 0;
9661}
9662_ACEOF
9663if ac_fn_c_try_link "$LINENO"
9664then :
9665  eval $cacheid=yes
9666else $as_nop
9667  eval $cacheid=no
9668fi
9669rm -f core conftest.err conftest.$ac_objext conftest.beam \
9670    conftest$ac_exeext conftest.$ac_ext
9671fi
9672
9673
9674		CFLAGS="$xorg_testset_save_CFLAGS"
9675
9676		eval supported=\$$cacheid
9677		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9678printf "%s\n" "$supported" >&6; }
9679		if test "$supported" = "yes" ; then
9680			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9681			found="yes"
9682		fi
9683	fi
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699xorg_testset_save_CFLAGS="$CFLAGS"
9700
9701if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9702	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9703	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9704printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9705if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9706then :
9707  printf %s "(cached) " >&6
9708else $as_nop
9709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9710/* end confdefs.h.  */
9711int i;
9712_ACEOF
9713if ac_fn_c_try_compile "$LINENO"
9714then :
9715  xorg_cv_cc_flag_unknown_warning_option=yes
9716else $as_nop
9717  xorg_cv_cc_flag_unknown_warning_option=no
9718fi
9719rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9720fi
9721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9722printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9723	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9724	CFLAGS="$xorg_testset_save_CFLAGS"
9725fi
9726
9727if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9728	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9729		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9730	fi
9731	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9732	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9733printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9734if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9735then :
9736  printf %s "(cached) " >&6
9737else $as_nop
9738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9739/* end confdefs.h.  */
9740int i;
9741_ACEOF
9742if ac_fn_c_try_compile "$LINENO"
9743then :
9744  xorg_cv_cc_flag_unused_command_line_argument=yes
9745else $as_nop
9746  xorg_cv_cc_flag_unused_command_line_argument=no
9747fi
9748rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9749fi
9750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9751printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9752	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9753	CFLAGS="$xorg_testset_save_CFLAGS"
9754fi
9755
9756found="no"
9757
9758	if test $found = "no" ; then
9759		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9760			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9761		fi
9762
9763		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9764			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9765		fi
9766
9767		CFLAGS="$CFLAGS -Wtrigraphs"
9768
9769		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9770printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9771		cacheid=xorg_cv_cc_flag__Wtrigraphs
9772		if eval test \${$cacheid+y}
9773then :
9774  printf %s "(cached) " >&6
9775else $as_nop
9776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9777/* end confdefs.h.  */
9778int i;
9779int
9780main (void)
9781{
9782
9783  ;
9784  return 0;
9785}
9786_ACEOF
9787if ac_fn_c_try_link "$LINENO"
9788then :
9789  eval $cacheid=yes
9790else $as_nop
9791  eval $cacheid=no
9792fi
9793rm -f core conftest.err conftest.$ac_objext conftest.beam \
9794    conftest$ac_exeext conftest.$ac_ext
9795fi
9796
9797
9798		CFLAGS="$xorg_testset_save_CFLAGS"
9799
9800		eval supported=\$$cacheid
9801		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9802printf "%s\n" "$supported" >&6; }
9803		if test "$supported" = "yes" ; then
9804			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9805			found="yes"
9806		fi
9807	fi
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823xorg_testset_save_CFLAGS="$CFLAGS"
9824
9825if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9826	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9827	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9828printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9829if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9830then :
9831  printf %s "(cached) " >&6
9832else $as_nop
9833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9834/* end confdefs.h.  */
9835int i;
9836_ACEOF
9837if ac_fn_c_try_compile "$LINENO"
9838then :
9839  xorg_cv_cc_flag_unknown_warning_option=yes
9840else $as_nop
9841  xorg_cv_cc_flag_unknown_warning_option=no
9842fi
9843rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9844fi
9845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9846printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9847	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9848	CFLAGS="$xorg_testset_save_CFLAGS"
9849fi
9850
9851if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9852	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9853		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9854	fi
9855	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9856	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9857printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9858if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9859then :
9860  printf %s "(cached) " >&6
9861else $as_nop
9862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9863/* end confdefs.h.  */
9864int i;
9865_ACEOF
9866if ac_fn_c_try_compile "$LINENO"
9867then :
9868  xorg_cv_cc_flag_unused_command_line_argument=yes
9869else $as_nop
9870  xorg_cv_cc_flag_unused_command_line_argument=no
9871fi
9872rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9873fi
9874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9875printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9876	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9877	CFLAGS="$xorg_testset_save_CFLAGS"
9878fi
9879
9880found="no"
9881
9882	if test $found = "no" ; then
9883		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9884			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9885		fi
9886
9887		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9888			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9889		fi
9890
9891		CFLAGS="$CFLAGS -Warray-bounds"
9892
9893		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9894printf %s "checking if $CC supports -Warray-bounds... " >&6; }
9895		cacheid=xorg_cv_cc_flag__Warray_bounds
9896		if eval test \${$cacheid+y}
9897then :
9898  printf %s "(cached) " >&6
9899else $as_nop
9900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9901/* end confdefs.h.  */
9902int i;
9903int
9904main (void)
9905{
9906
9907  ;
9908  return 0;
9909}
9910_ACEOF
9911if ac_fn_c_try_link "$LINENO"
9912then :
9913  eval $cacheid=yes
9914else $as_nop
9915  eval $cacheid=no
9916fi
9917rm -f core conftest.err conftest.$ac_objext conftest.beam \
9918    conftest$ac_exeext conftest.$ac_ext
9919fi
9920
9921
9922		CFLAGS="$xorg_testset_save_CFLAGS"
9923
9924		eval supported=\$$cacheid
9925		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9926printf "%s\n" "$supported" >&6; }
9927		if test "$supported" = "yes" ; then
9928			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9929			found="yes"
9930		fi
9931	fi
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947xorg_testset_save_CFLAGS="$CFLAGS"
9948
9949if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9950	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9951	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9952printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9953if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9954then :
9955  printf %s "(cached) " >&6
9956else $as_nop
9957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9958/* end confdefs.h.  */
9959int i;
9960_ACEOF
9961if ac_fn_c_try_compile "$LINENO"
9962then :
9963  xorg_cv_cc_flag_unknown_warning_option=yes
9964else $as_nop
9965  xorg_cv_cc_flag_unknown_warning_option=no
9966fi
9967rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9968fi
9969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9970printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9971	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9972	CFLAGS="$xorg_testset_save_CFLAGS"
9973fi
9974
9975if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9976	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9977		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9978	fi
9979	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9980	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9981printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9982if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9983then :
9984  printf %s "(cached) " >&6
9985else $as_nop
9986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9987/* end confdefs.h.  */
9988int i;
9989_ACEOF
9990if ac_fn_c_try_compile "$LINENO"
9991then :
9992  xorg_cv_cc_flag_unused_command_line_argument=yes
9993else $as_nop
9994  xorg_cv_cc_flag_unused_command_line_argument=no
9995fi
9996rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9997fi
9998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9999printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10000	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10001	CFLAGS="$xorg_testset_save_CFLAGS"
10002fi
10003
10004found="no"
10005
10006	if test $found = "no" ; then
10007		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10008			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10009		fi
10010
10011		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10012			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10013		fi
10014
10015		CFLAGS="$CFLAGS -Wwrite-strings"
10016
10017		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10018printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10019		cacheid=xorg_cv_cc_flag__Wwrite_strings
10020		if eval test \${$cacheid+y}
10021then :
10022  printf %s "(cached) " >&6
10023else $as_nop
10024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10025/* end confdefs.h.  */
10026int i;
10027int
10028main (void)
10029{
10030
10031  ;
10032  return 0;
10033}
10034_ACEOF
10035if ac_fn_c_try_link "$LINENO"
10036then :
10037  eval $cacheid=yes
10038else $as_nop
10039  eval $cacheid=no
10040fi
10041rm -f core conftest.err conftest.$ac_objext conftest.beam \
10042    conftest$ac_exeext conftest.$ac_ext
10043fi
10044
10045
10046		CFLAGS="$xorg_testset_save_CFLAGS"
10047
10048		eval supported=\$$cacheid
10049		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10050printf "%s\n" "$supported" >&6; }
10051		if test "$supported" = "yes" ; then
10052			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10053			found="yes"
10054		fi
10055	fi
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071xorg_testset_save_CFLAGS="$CFLAGS"
10072
10073if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10074	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10075	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10076printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10077if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10078then :
10079  printf %s "(cached) " >&6
10080else $as_nop
10081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10082/* end confdefs.h.  */
10083int i;
10084_ACEOF
10085if ac_fn_c_try_compile "$LINENO"
10086then :
10087  xorg_cv_cc_flag_unknown_warning_option=yes
10088else $as_nop
10089  xorg_cv_cc_flag_unknown_warning_option=no
10090fi
10091rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10092fi
10093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10094printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10095	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10096	CFLAGS="$xorg_testset_save_CFLAGS"
10097fi
10098
10099if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10100	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10101		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10102	fi
10103	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10104	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10105printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10106if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10107then :
10108  printf %s "(cached) " >&6
10109else $as_nop
10110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10111/* end confdefs.h.  */
10112int i;
10113_ACEOF
10114if ac_fn_c_try_compile "$LINENO"
10115then :
10116  xorg_cv_cc_flag_unused_command_line_argument=yes
10117else $as_nop
10118  xorg_cv_cc_flag_unused_command_line_argument=no
10119fi
10120rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10121fi
10122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10123printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10124	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10125	CFLAGS="$xorg_testset_save_CFLAGS"
10126fi
10127
10128found="no"
10129
10130	if test $found = "no" ; then
10131		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10132			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10133		fi
10134
10135		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10136			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10137		fi
10138
10139		CFLAGS="$CFLAGS -Waddress"
10140
10141		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10142printf %s "checking if $CC supports -Waddress... " >&6; }
10143		cacheid=xorg_cv_cc_flag__Waddress
10144		if eval test \${$cacheid+y}
10145then :
10146  printf %s "(cached) " >&6
10147else $as_nop
10148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10149/* end confdefs.h.  */
10150int i;
10151int
10152main (void)
10153{
10154
10155  ;
10156  return 0;
10157}
10158_ACEOF
10159if ac_fn_c_try_link "$LINENO"
10160then :
10161  eval $cacheid=yes
10162else $as_nop
10163  eval $cacheid=no
10164fi
10165rm -f core conftest.err conftest.$ac_objext conftest.beam \
10166    conftest$ac_exeext conftest.$ac_ext
10167fi
10168
10169
10170		CFLAGS="$xorg_testset_save_CFLAGS"
10171
10172		eval supported=\$$cacheid
10173		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10174printf "%s\n" "$supported" >&6; }
10175		if test "$supported" = "yes" ; then
10176			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10177			found="yes"
10178		fi
10179	fi
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195xorg_testset_save_CFLAGS="$CFLAGS"
10196
10197if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10198	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10199	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10200printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10201if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10202then :
10203  printf %s "(cached) " >&6
10204else $as_nop
10205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10206/* end confdefs.h.  */
10207int i;
10208_ACEOF
10209if ac_fn_c_try_compile "$LINENO"
10210then :
10211  xorg_cv_cc_flag_unknown_warning_option=yes
10212else $as_nop
10213  xorg_cv_cc_flag_unknown_warning_option=no
10214fi
10215rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10216fi
10217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10218printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10219	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10220	CFLAGS="$xorg_testset_save_CFLAGS"
10221fi
10222
10223if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10224	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10225		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10226	fi
10227	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10228	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10229printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10230if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10231then :
10232  printf %s "(cached) " >&6
10233else $as_nop
10234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10235/* end confdefs.h.  */
10236int i;
10237_ACEOF
10238if ac_fn_c_try_compile "$LINENO"
10239then :
10240  xorg_cv_cc_flag_unused_command_line_argument=yes
10241else $as_nop
10242  xorg_cv_cc_flag_unused_command_line_argument=no
10243fi
10244rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10245fi
10246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10247printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10248	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10249	CFLAGS="$xorg_testset_save_CFLAGS"
10250fi
10251
10252found="no"
10253
10254	if test $found = "no" ; then
10255		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10256			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10257		fi
10258
10259		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10260			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10261		fi
10262
10263		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10264
10265		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10266printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10267		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10268		if eval test \${$cacheid+y}
10269then :
10270  printf %s "(cached) " >&6
10271else $as_nop
10272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10273/* end confdefs.h.  */
10274int i;
10275int
10276main (void)
10277{
10278
10279  ;
10280  return 0;
10281}
10282_ACEOF
10283if ac_fn_c_try_link "$LINENO"
10284then :
10285  eval $cacheid=yes
10286else $as_nop
10287  eval $cacheid=no
10288fi
10289rm -f core conftest.err conftest.$ac_objext conftest.beam \
10290    conftest$ac_exeext conftest.$ac_ext
10291fi
10292
10293
10294		CFLAGS="$xorg_testset_save_CFLAGS"
10295
10296		eval supported=\$$cacheid
10297		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10298printf "%s\n" "$supported" >&6; }
10299		if test "$supported" = "yes" ; then
10300			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10301			found="yes"
10302		fi
10303	fi
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319xorg_testset_save_CFLAGS="$CFLAGS"
10320
10321if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10322	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10323	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10324printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10325if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10326then :
10327  printf %s "(cached) " >&6
10328else $as_nop
10329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10330/* end confdefs.h.  */
10331int i;
10332_ACEOF
10333if ac_fn_c_try_compile "$LINENO"
10334then :
10335  xorg_cv_cc_flag_unknown_warning_option=yes
10336else $as_nop
10337  xorg_cv_cc_flag_unknown_warning_option=no
10338fi
10339rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10340fi
10341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10342printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10343	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10344	CFLAGS="$xorg_testset_save_CFLAGS"
10345fi
10346
10347if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10348	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10349		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10350	fi
10351	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10352	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10353printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10354if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10355then :
10356  printf %s "(cached) " >&6
10357else $as_nop
10358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10359/* end confdefs.h.  */
10360int i;
10361_ACEOF
10362if ac_fn_c_try_compile "$LINENO"
10363then :
10364  xorg_cv_cc_flag_unused_command_line_argument=yes
10365else $as_nop
10366  xorg_cv_cc_flag_unused_command_line_argument=no
10367fi
10368rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10369fi
10370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10371printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10372	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10373	CFLAGS="$xorg_testset_save_CFLAGS"
10374fi
10375
10376found="no"
10377
10378	if test $found = "no" ; then
10379		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10380			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10381		fi
10382
10383		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10384			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10385		fi
10386
10387		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10388
10389		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10390printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10391		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10392		if eval test \${$cacheid+y}
10393then :
10394  printf %s "(cached) " >&6
10395else $as_nop
10396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10397/* end confdefs.h.  */
10398int i;
10399int
10400main (void)
10401{
10402
10403  ;
10404  return 0;
10405}
10406_ACEOF
10407if ac_fn_c_try_link "$LINENO"
10408then :
10409  eval $cacheid=yes
10410else $as_nop
10411  eval $cacheid=no
10412fi
10413rm -f core conftest.err conftest.$ac_objext conftest.beam \
10414    conftest$ac_exeext conftest.$ac_ext
10415fi
10416
10417
10418		CFLAGS="$xorg_testset_save_CFLAGS"
10419
10420		eval supported=\$$cacheid
10421		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10422printf "%s\n" "$supported" >&6; }
10423		if test "$supported" = "yes" ; then
10424			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10425			found="yes"
10426		fi
10427	fi
10428
10429
10430fi
10431
10432
10433
10434
10435
10436
10437
10438		CWARNFLAGS="$BASE_CFLAGS"
10439		if  test "x$GCC" = xyes ; then
10440		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10441		fi
10442
10443
10444
10445
10446
10447
10448
10449
10450# Check whether --enable-strict-compilation was given.
10451if test ${enable_strict_compilation+y}
10452then :
10453  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10454else $as_nop
10455  STRICT_COMPILE=no
10456fi
10457
10458
10459
10460
10461
10462
10463STRICT_CFLAGS=""
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477xorg_testset_save_CFLAGS="$CFLAGS"
10478
10479if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10480	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10481	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10482printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10483if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10484then :
10485  printf %s "(cached) " >&6
10486else $as_nop
10487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10488/* end confdefs.h.  */
10489int i;
10490_ACEOF
10491if ac_fn_c_try_compile "$LINENO"
10492then :
10493  xorg_cv_cc_flag_unknown_warning_option=yes
10494else $as_nop
10495  xorg_cv_cc_flag_unknown_warning_option=no
10496fi
10497rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10498fi
10499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10500printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10501	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10502	CFLAGS="$xorg_testset_save_CFLAGS"
10503fi
10504
10505if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10506	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10507		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10508	fi
10509	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10510	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10511printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10512if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10513then :
10514  printf %s "(cached) " >&6
10515else $as_nop
10516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10517/* end confdefs.h.  */
10518int i;
10519_ACEOF
10520if ac_fn_c_try_compile "$LINENO"
10521then :
10522  xorg_cv_cc_flag_unused_command_line_argument=yes
10523else $as_nop
10524  xorg_cv_cc_flag_unused_command_line_argument=no
10525fi
10526rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10527fi
10528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10529printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10530	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10531	CFLAGS="$xorg_testset_save_CFLAGS"
10532fi
10533
10534found="no"
10535
10536	if test $found = "no" ; then
10537		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10538			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10539		fi
10540
10541		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10542			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10543		fi
10544
10545		CFLAGS="$CFLAGS -pedantic"
10546
10547		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10548printf %s "checking if $CC supports -pedantic... " >&6; }
10549		cacheid=xorg_cv_cc_flag__pedantic
10550		if eval test \${$cacheid+y}
10551then :
10552  printf %s "(cached) " >&6
10553else $as_nop
10554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10555/* end confdefs.h.  */
10556int i;
10557int
10558main (void)
10559{
10560
10561  ;
10562  return 0;
10563}
10564_ACEOF
10565if ac_fn_c_try_link "$LINENO"
10566then :
10567  eval $cacheid=yes
10568else $as_nop
10569  eval $cacheid=no
10570fi
10571rm -f core conftest.err conftest.$ac_objext conftest.beam \
10572    conftest$ac_exeext conftest.$ac_ext
10573fi
10574
10575
10576		CFLAGS="$xorg_testset_save_CFLAGS"
10577
10578		eval supported=\$$cacheid
10579		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10580printf "%s\n" "$supported" >&6; }
10581		if test "$supported" = "yes" ; then
10582			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10583			found="yes"
10584		fi
10585	fi
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601xorg_testset_save_CFLAGS="$CFLAGS"
10602
10603if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10604	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10605	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10606printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10607if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10608then :
10609  printf %s "(cached) " >&6
10610else $as_nop
10611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10612/* end confdefs.h.  */
10613int i;
10614_ACEOF
10615if ac_fn_c_try_compile "$LINENO"
10616then :
10617  xorg_cv_cc_flag_unknown_warning_option=yes
10618else $as_nop
10619  xorg_cv_cc_flag_unknown_warning_option=no
10620fi
10621rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10622fi
10623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10624printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10625	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10626	CFLAGS="$xorg_testset_save_CFLAGS"
10627fi
10628
10629if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10630	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10631		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10632	fi
10633	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10634	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10635printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10636if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10637then :
10638  printf %s "(cached) " >&6
10639else $as_nop
10640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10641/* end confdefs.h.  */
10642int i;
10643_ACEOF
10644if ac_fn_c_try_compile "$LINENO"
10645then :
10646  xorg_cv_cc_flag_unused_command_line_argument=yes
10647else $as_nop
10648  xorg_cv_cc_flag_unused_command_line_argument=no
10649fi
10650rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10651fi
10652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10653printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10654	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10655	CFLAGS="$xorg_testset_save_CFLAGS"
10656fi
10657
10658found="no"
10659
10660	if test $found = "no" ; then
10661		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10662			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10663		fi
10664
10665		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10666			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10667		fi
10668
10669		CFLAGS="$CFLAGS -Werror"
10670
10671		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10672printf %s "checking if $CC supports -Werror... " >&6; }
10673		cacheid=xorg_cv_cc_flag__Werror
10674		if eval test \${$cacheid+y}
10675then :
10676  printf %s "(cached) " >&6
10677else $as_nop
10678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10679/* end confdefs.h.  */
10680int i;
10681int
10682main (void)
10683{
10684
10685  ;
10686  return 0;
10687}
10688_ACEOF
10689if ac_fn_c_try_link "$LINENO"
10690then :
10691  eval $cacheid=yes
10692else $as_nop
10693  eval $cacheid=no
10694fi
10695rm -f core conftest.err conftest.$ac_objext conftest.beam \
10696    conftest$ac_exeext conftest.$ac_ext
10697fi
10698
10699
10700		CFLAGS="$xorg_testset_save_CFLAGS"
10701
10702		eval supported=\$$cacheid
10703		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10704printf "%s\n" "$supported" >&6; }
10705		if test "$supported" = "yes" ; then
10706			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10707			found="yes"
10708		fi
10709	fi
10710
10711	if test $found = "no" ; then
10712		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10713			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10714		fi
10715
10716		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10717			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10718		fi
10719
10720		CFLAGS="$CFLAGS -errwarn"
10721
10722		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10723printf %s "checking if $CC supports -errwarn... " >&6; }
10724		cacheid=xorg_cv_cc_flag__errwarn
10725		if eval test \${$cacheid+y}
10726then :
10727  printf %s "(cached) " >&6
10728else $as_nop
10729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10730/* end confdefs.h.  */
10731int i;
10732int
10733main (void)
10734{
10735
10736  ;
10737  return 0;
10738}
10739_ACEOF
10740if ac_fn_c_try_link "$LINENO"
10741then :
10742  eval $cacheid=yes
10743else $as_nop
10744  eval $cacheid=no
10745fi
10746rm -f core conftest.err conftest.$ac_objext conftest.beam \
10747    conftest$ac_exeext conftest.$ac_ext
10748fi
10749
10750
10751		CFLAGS="$xorg_testset_save_CFLAGS"
10752
10753		eval supported=\$$cacheid
10754		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10755printf "%s\n" "$supported" >&6; }
10756		if test "$supported" = "yes" ; then
10757			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10758			found="yes"
10759		fi
10760	fi
10761
10762
10763
10764# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10765# activate it with -Werror, so we add it here explicitly.
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779xorg_testset_save_CFLAGS="$CFLAGS"
10780
10781if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10782	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10783	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10784printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10785if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10786then :
10787  printf %s "(cached) " >&6
10788else $as_nop
10789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10790/* end confdefs.h.  */
10791int i;
10792_ACEOF
10793if ac_fn_c_try_compile "$LINENO"
10794then :
10795  xorg_cv_cc_flag_unknown_warning_option=yes
10796else $as_nop
10797  xorg_cv_cc_flag_unknown_warning_option=no
10798fi
10799rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10800fi
10801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10802printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10803	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10804	CFLAGS="$xorg_testset_save_CFLAGS"
10805fi
10806
10807if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10808	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10809		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10810	fi
10811	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10812	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10813printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10814if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10815then :
10816  printf %s "(cached) " >&6
10817else $as_nop
10818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10819/* end confdefs.h.  */
10820int i;
10821_ACEOF
10822if ac_fn_c_try_compile "$LINENO"
10823then :
10824  xorg_cv_cc_flag_unused_command_line_argument=yes
10825else $as_nop
10826  xorg_cv_cc_flag_unused_command_line_argument=no
10827fi
10828rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10829fi
10830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10831printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10832	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10833	CFLAGS="$xorg_testset_save_CFLAGS"
10834fi
10835
10836found="no"
10837
10838	if test $found = "no" ; then
10839		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10840			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10841		fi
10842
10843		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10844			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10845		fi
10846
10847		CFLAGS="$CFLAGS -Werror=attributes"
10848
10849		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10850printf %s "checking if $CC supports -Werror=attributes... " >&6; }
10851		cacheid=xorg_cv_cc_flag__Werror_attributes
10852		if eval test \${$cacheid+y}
10853then :
10854  printf %s "(cached) " >&6
10855else $as_nop
10856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10857/* end confdefs.h.  */
10858int i;
10859int
10860main (void)
10861{
10862
10863  ;
10864  return 0;
10865}
10866_ACEOF
10867if ac_fn_c_try_link "$LINENO"
10868then :
10869  eval $cacheid=yes
10870else $as_nop
10871  eval $cacheid=no
10872fi
10873rm -f core conftest.err conftest.$ac_objext conftest.beam \
10874    conftest$ac_exeext conftest.$ac_ext
10875fi
10876
10877
10878		CFLAGS="$xorg_testset_save_CFLAGS"
10879
10880		eval supported=\$$cacheid
10881		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10882printf "%s\n" "$supported" >&6; }
10883		if test "$supported" = "yes" ; then
10884			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10885			found="yes"
10886		fi
10887	fi
10888
10889
10890
10891if test "x$STRICT_COMPILE" = "xyes"; then
10892    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10893    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10894fi
10895
10896
10897
10898
10899
10900
10901cat >>confdefs.h <<_ACEOF
10902#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10903_ACEOF
10904
10905	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10906	if test "x$PVM" = "x"; then
10907		PVM="0"
10908	fi
10909
10910printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
10911
10912	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10913	if test "x$PVP" = "x"; then
10914		PVP="0"
10915	fi
10916
10917printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
10918
10919
10920
10921CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10922mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10923|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10924touch \$(top_srcdir)/ChangeLog; \
10925echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10926
10927
10928
10929
10930macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10931INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10932mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10933|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
10934touch \$(top_srcdir)/INSTALL; \
10935echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
10936
10937
10938
10939
10940
10941
10942case $host_os in
10943    solaris*)
10944        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
10945        # check for a man page file found in later versions that use
10946        # traditional section numbers instead
10947        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
10948printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
10949if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
10950then :
10951  printf %s "(cached) " >&6
10952else $as_nop
10953  test "$cross_compiling" = yes &&
10954  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10955if test -r "/usr/share/man/man7/attributes.7"; then
10956  ac_cv_file__usr_share_man_man7_attributes_7=yes
10957else
10958  ac_cv_file__usr_share_man_man7_attributes_7=no
10959fi
10960fi
10961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
10962printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
10963if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
10964then :
10965  SYSV_MAN_SECTIONS=false
10966else $as_nop
10967  SYSV_MAN_SECTIONS=true
10968fi
10969
10970        ;;
10971    *) SYSV_MAN_SECTIONS=false ;;
10972esac
10973
10974if test x$APP_MAN_SUFFIX = x    ; then
10975    APP_MAN_SUFFIX=1
10976fi
10977if test x$APP_MAN_DIR = x    ; then
10978    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10979fi
10980
10981if test x$LIB_MAN_SUFFIX = x    ; then
10982    LIB_MAN_SUFFIX=3
10983fi
10984if test x$LIB_MAN_DIR = x    ; then
10985    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10986fi
10987
10988if test x$FILE_MAN_SUFFIX = x    ; then
10989    case $SYSV_MAN_SECTIONS in
10990	true)				FILE_MAN_SUFFIX=4  ;;
10991	*)				FILE_MAN_SUFFIX=5  ;;
10992    esac
10993fi
10994if test x$FILE_MAN_DIR = x    ; then
10995    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10996fi
10997
10998if test x$MISC_MAN_SUFFIX = x    ; then
10999    case $SYSV_MAN_SECTIONS in
11000	true)				MISC_MAN_SUFFIX=5  ;;
11001	*)				MISC_MAN_SUFFIX=7  ;;
11002    esac
11003fi
11004if test x$MISC_MAN_DIR = x    ; then
11005    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11006fi
11007
11008if test x$DRIVER_MAN_SUFFIX = x    ; then
11009    case $SYSV_MAN_SECTIONS in
11010	true)				DRIVER_MAN_SUFFIX=7  ;;
11011	*)				DRIVER_MAN_SUFFIX=4  ;;
11012    esac
11013fi
11014if test x$DRIVER_MAN_DIR = x    ; then
11015    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11016fi
11017
11018if test x$ADMIN_MAN_SUFFIX = x    ; then
11019    case $SYSV_MAN_SECTIONS in
11020	true)				ADMIN_MAN_SUFFIX=1m ;;
11021	*)				ADMIN_MAN_SUFFIX=8  ;;
11022    esac
11023fi
11024if test x$ADMIN_MAN_DIR = x    ; then
11025    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11026fi
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042XORG_MAN_PAGE="X Version 11"
11043
11044MAN_SUBSTS="\
11045	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11046	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11047	-e 's|__xservername__|Xorg|g' \
11048	-e 's|__xconfigfile__|xorg.conf|g' \
11049	-e 's|__projectroot__|\$(prefix)|g' \
11050	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11051	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11052	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11053	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11054	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11055	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11056	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11057
11058
11059
11060# Check whether --enable-silent-rules was given.
11061if test ${enable_silent_rules+y}
11062then :
11063  enableval=$enable_silent_rules;
11064fi
11065
11066case $enable_silent_rules in # (((
11067  yes) AM_DEFAULT_VERBOSITY=0;;
11068   no) AM_DEFAULT_VERBOSITY=1;;
11069    *) AM_DEFAULT_VERBOSITY=0;;
11070esac
11071am_make=${MAKE-make}
11072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11073printf %s "checking whether $am_make supports nested variables... " >&6; }
11074if test ${am_cv_make_support_nested_variables+y}
11075then :
11076  printf %s "(cached) " >&6
11077else $as_nop
11078  if printf "%s\n" 'TRUE=$(BAR$(V))
11079BAR0=false
11080BAR1=true
11081V=1
11082am__doit:
11083	@$(TRUE)
11084.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11085  am_cv_make_support_nested_variables=yes
11086else
11087  am_cv_make_support_nested_variables=no
11088fi
11089fi
11090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11091printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11092if test $am_cv_make_support_nested_variables = yes; then
11093    AM_V='$(V)'
11094  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11095else
11096  AM_V=$AM_DEFAULT_VERBOSITY
11097  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11098fi
11099AM_BACKSLASH='\'
11100
11101
11102
11103# Optional dependencies
11104
11105# Check whether --with-xkb was given.
11106if test ${with_xkb+y}
11107then :
11108  withval=$with_xkb; use_xkb="$withval"
11109else $as_nop
11110  use_xkb="yes"
11111fi
11112
11113if test x$use_xkb != xno ; then
11114	XKBMODULE="xkbfile"
11115
11116printf "%s\n" "#define XKB 1" >>confdefs.h
11117
11118fi
11119
11120# Checks for pkg-config packages
11121
11122pkg_failed=no
11123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OCLOCK" >&5
11124printf %s "checking for OCLOCK... " >&6; }
11125
11126if test -n "$OCLOCK_CFLAGS"; then
11127    pkg_cv_OCLOCK_CFLAGS="$OCLOCK_CFLAGS"
11128 elif test -n "$PKG_CONFIG"; then
11129    if test -n "$PKG_CONFIG" && \
11130    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmu xext xt \${XKBMODULE}\""; } >&5
11131  ($PKG_CONFIG --exists --print-errors "x11 xmu xext xt ${XKBMODULE}") 2>&5
11132  ac_status=$?
11133  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11134  test $ac_status = 0; }; then
11135  pkg_cv_OCLOCK_CFLAGS=`$PKG_CONFIG --cflags "x11 xmu xext xt ${XKBMODULE}" 2>/dev/null`
11136		      test "x$?" != "x0" && pkg_failed=yes
11137else
11138  pkg_failed=yes
11139fi
11140 else
11141    pkg_failed=untried
11142fi
11143if test -n "$OCLOCK_LIBS"; then
11144    pkg_cv_OCLOCK_LIBS="$OCLOCK_LIBS"
11145 elif test -n "$PKG_CONFIG"; then
11146    if test -n "$PKG_CONFIG" && \
11147    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmu xext xt \${XKBMODULE}\""; } >&5
11148  ($PKG_CONFIG --exists --print-errors "x11 xmu xext xt ${XKBMODULE}") 2>&5
11149  ac_status=$?
11150  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11151  test $ac_status = 0; }; then
11152  pkg_cv_OCLOCK_LIBS=`$PKG_CONFIG --libs "x11 xmu xext xt ${XKBMODULE}" 2>/dev/null`
11153		      test "x$?" != "x0" && pkg_failed=yes
11154else
11155  pkg_failed=yes
11156fi
11157 else
11158    pkg_failed=untried
11159fi
11160
11161
11162
11163if test $pkg_failed = yes; then
11164   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11165printf "%s\n" "no" >&6; }
11166
11167if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11168        _pkg_short_errors_supported=yes
11169else
11170        _pkg_short_errors_supported=no
11171fi
11172        if test $_pkg_short_errors_supported = yes; then
11173	        OCLOCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xmu xext xt ${XKBMODULE}" 2>&1`
11174        else
11175	        OCLOCK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xmu xext xt ${XKBMODULE}" 2>&1`
11176        fi
11177	# Put the nasty error message in config.log where it belongs
11178	echo "$OCLOCK_PKG_ERRORS" >&5
11179
11180	as_fn_error $? "Package requirements (x11 xmu xext xt ${XKBMODULE}) were not met:
11181
11182$OCLOCK_PKG_ERRORS
11183
11184Consider adjusting the PKG_CONFIG_PATH environment variable if you
11185installed software in a non-standard prefix.
11186
11187Alternatively, you may set the environment variables OCLOCK_CFLAGS
11188and OCLOCK_LIBS to avoid the need to call pkg-config.
11189See the pkg-config man page for more details." "$LINENO" 5
11190elif test $pkg_failed = untried; then
11191     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11192printf "%s\n" "no" >&6; }
11193	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11194printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11195as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11196is in your PATH or set the PKG_CONFIG environment variable to the full
11197path to pkg-config.
11198
11199Alternatively, you may set the environment variables OCLOCK_CFLAGS
11200and OCLOCK_LIBS to avoid the need to call pkg-config.
11201See the pkg-config man page for more details.
11202
11203To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11204See \`config.log' for more details" "$LINENO" 5; }
11205else
11206	OCLOCK_CFLAGS=$pkg_cv_OCLOCK_CFLAGS
11207	OCLOCK_LIBS=$pkg_cv_OCLOCK_LIBS
11208        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11209printf "%s\n" "yes" >&6; }
11210
11211fi
11212
11213xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
11214
11215# Check whether --with-appdefaultdir was given.
11216if test ${with_appdefaultdir+y}
11217then :
11218  withval=$with_appdefaultdir; appdefaultdir="$withval"
11219else $as_nop
11220  appdefaultdir="${xt_appdefaultdir}"
11221fi
11222
11223
11224
11225
11226ac_config_files="$ac_config_files Makefile man/Makefile"
11227
11228cat >confcache <<\_ACEOF
11229# This file is a shell script that caches the results of configure
11230# tests run on this system so they can be shared between configure
11231# scripts and configure runs, see configure's option --config-cache.
11232# It is not useful on other systems.  If it contains results you don't
11233# want to keep, you may remove or edit it.
11234#
11235# config.status only pays attention to the cache file if you give it
11236# the --recheck option to rerun configure.
11237#
11238# `ac_cv_env_foo' variables (set or unset) will be overridden when
11239# loading this file, other *unset* `ac_cv_foo' will be assigned the
11240# following values.
11241
11242_ACEOF
11243
11244# The following way of writing the cache mishandles newlines in values,
11245# but we know of no workaround that is simple, portable, and efficient.
11246# So, we kill variables containing newlines.
11247# Ultrix sh set writes to stderr and can't be redirected directly,
11248# and sets the high bit in the cache file unless we assign to the vars.
11249(
11250  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11251    eval ac_val=\$$ac_var
11252    case $ac_val in #(
11253    *${as_nl}*)
11254      case $ac_var in #(
11255      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11256printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11257      esac
11258      case $ac_var in #(
11259      _ | IFS | as_nl) ;; #(
11260      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11261      *) { eval $ac_var=; unset $ac_var;} ;;
11262      esac ;;
11263    esac
11264  done
11265
11266  (set) 2>&1 |
11267    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11268    *${as_nl}ac_space=\ *)
11269      # `set' does not quote correctly, so add quotes: double-quote
11270      # substitution turns \\\\ into \\, and sed turns \\ into \.
11271      sed -n \
11272	"s/'/'\\\\''/g;
11273	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11274      ;; #(
11275    *)
11276      # `set' quotes correctly as required by POSIX, so do not add quotes.
11277      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11278      ;;
11279    esac |
11280    sort
11281) |
11282  sed '
11283     /^ac_cv_env_/b end
11284     t clear
11285     :clear
11286     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11287     t end
11288     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11289     :end' >>confcache
11290if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11291  if test -w "$cache_file"; then
11292    if test "x$cache_file" != "x/dev/null"; then
11293      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11294printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11295      if test ! -f "$cache_file" || test -h "$cache_file"; then
11296	cat confcache >"$cache_file"
11297      else
11298        case $cache_file in #(
11299        */* | ?:*)
11300	  mv -f confcache "$cache_file"$$ &&
11301	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11302        *)
11303	  mv -f confcache "$cache_file" ;;
11304	esac
11305      fi
11306    fi
11307  else
11308    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11309printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11310  fi
11311fi
11312rm -f confcache
11313
11314test "x$prefix" = xNONE && prefix=$ac_default_prefix
11315# Let make expand exec_prefix.
11316test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11317
11318DEFS=-DHAVE_CONFIG_H
11319
11320ac_libobjs=
11321ac_ltlibobjs=
11322U=
11323for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11324  # 1. Remove the extension, and $U if already installed.
11325  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11326  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11327  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11328  #    will be set to the directory where LIBOBJS objects are built.
11329  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11330  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11331done
11332LIBOBJS=$ac_libobjs
11333
11334LTLIBOBJS=$ac_ltlibobjs
11335
11336
11337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11338printf %s "checking that generated files are newer than configure... " >&6; }
11339   if test -n "$am_sleep_pid"; then
11340     # Hide warnings about reused PIDs.
11341     wait $am_sleep_pid 2>/dev/null
11342   fi
11343   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11344printf "%s\n" "done" >&6; }
11345 if test -n "$EXEEXT"; then
11346  am__EXEEXT_TRUE=
11347  am__EXEEXT_FALSE='#'
11348else
11349  am__EXEEXT_TRUE='#'
11350  am__EXEEXT_FALSE=
11351fi
11352
11353if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11354  as_fn_error $? "conditional \"AMDEP\" was never defined.
11355Usually this means the macro was only invoked conditionally." "$LINENO" 5
11356fi
11357if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11358  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11359Usually this means the macro was only invoked conditionally." "$LINENO" 5
11360fi
11361
11362: "${CONFIG_STATUS=./config.status}"
11363ac_write_fail=0
11364ac_clean_files_save=$ac_clean_files
11365ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11367printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11368as_write_fail=0
11369cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11370#! $SHELL
11371# Generated by $as_me.
11372# Run this file to recreate the current configuration.
11373# Compiler output produced by configure, useful for debugging
11374# configure, is in config.log if it exists.
11375
11376debug=false
11377ac_cs_recheck=false
11378ac_cs_silent=false
11379
11380SHELL=\${CONFIG_SHELL-$SHELL}
11381export SHELL
11382_ASEOF
11383cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11384## -------------------- ##
11385## M4sh Initialization. ##
11386## -------------------- ##
11387
11388# Be more Bourne compatible
11389DUALCASE=1; export DUALCASE # for MKS sh
11390as_nop=:
11391if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11392then :
11393  emulate sh
11394  NULLCMD=:
11395  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11396  # is contrary to our usage.  Disable this feature.
11397  alias -g '${1+"$@"}'='"$@"'
11398  setopt NO_GLOB_SUBST
11399else $as_nop
11400  case `(set -o) 2>/dev/null` in #(
11401  *posix*) :
11402    set -o posix ;; #(
11403  *) :
11404     ;;
11405esac
11406fi
11407
11408
11409
11410# Reset variables that may have inherited troublesome values from
11411# the environment.
11412
11413# IFS needs to be set, to space, tab, and newline, in precisely that order.
11414# (If _AS_PATH_WALK were called with IFS unset, it would have the
11415# side effect of setting IFS to empty, thus disabling word splitting.)
11416# Quoting is to prevent editors from complaining about space-tab.
11417as_nl='
11418'
11419export as_nl
11420IFS=" ""	$as_nl"
11421
11422PS1='$ '
11423PS2='> '
11424PS4='+ '
11425
11426# Ensure predictable behavior from utilities with locale-dependent output.
11427LC_ALL=C
11428export LC_ALL
11429LANGUAGE=C
11430export LANGUAGE
11431
11432# We cannot yet rely on "unset" to work, but we need these variables
11433# to be unset--not just set to an empty or harmless value--now, to
11434# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
11435# also avoids known problems related to "unset" and subshell syntax
11436# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11437for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11438do eval test \${$as_var+y} \
11439  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11440done
11441
11442# Ensure that fds 0, 1, and 2 are open.
11443if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11444if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11445if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
11446
11447# The user is always right.
11448if ${PATH_SEPARATOR+false} :; then
11449  PATH_SEPARATOR=:
11450  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11451    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11452      PATH_SEPARATOR=';'
11453  }
11454fi
11455
11456
11457# Find who we are.  Look in the path if we contain no directory separator.
11458as_myself=
11459case $0 in #((
11460  *[\\/]* ) as_myself=$0 ;;
11461  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11462for as_dir in $PATH
11463do
11464  IFS=$as_save_IFS
11465  case $as_dir in #(((
11466    '') as_dir=./ ;;
11467    */) ;;
11468    *) as_dir=$as_dir/ ;;
11469  esac
11470    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11471  done
11472IFS=$as_save_IFS
11473
11474     ;;
11475esac
11476# We did not find ourselves, most probably we were run as `sh COMMAND'
11477# in which case we are not to be found in the path.
11478if test "x$as_myself" = x; then
11479  as_myself=$0
11480fi
11481if test ! -f "$as_myself"; then
11482  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11483  exit 1
11484fi
11485
11486
11487
11488# as_fn_error STATUS ERROR [LINENO LOG_FD]
11489# ----------------------------------------
11490# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11491# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11492# script with STATUS, using 1 if that was 0.
11493as_fn_error ()
11494{
11495  as_status=$1; test $as_status -eq 0 && as_status=1
11496  if test "$4"; then
11497    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11498    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11499  fi
11500  printf "%s\n" "$as_me: error: $2" >&2
11501  as_fn_exit $as_status
11502} # as_fn_error
11503
11504
11505
11506# as_fn_set_status STATUS
11507# -----------------------
11508# Set $? to STATUS, without forking.
11509as_fn_set_status ()
11510{
11511  return $1
11512} # as_fn_set_status
11513
11514# as_fn_exit STATUS
11515# -----------------
11516# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11517as_fn_exit ()
11518{
11519  set +e
11520  as_fn_set_status $1
11521  exit $1
11522} # as_fn_exit
11523
11524# as_fn_unset VAR
11525# ---------------
11526# Portably unset VAR.
11527as_fn_unset ()
11528{
11529  { eval $1=; unset $1;}
11530}
11531as_unset=as_fn_unset
11532
11533# as_fn_append VAR VALUE
11534# ----------------------
11535# Append the text in VALUE to the end of the definition contained in VAR. Take
11536# advantage of any shell optimizations that allow amortized linear growth over
11537# repeated appends, instead of the typical quadratic growth present in naive
11538# implementations.
11539if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11540then :
11541  eval 'as_fn_append ()
11542  {
11543    eval $1+=\$2
11544  }'
11545else $as_nop
11546  as_fn_append ()
11547  {
11548    eval $1=\$$1\$2
11549  }
11550fi # as_fn_append
11551
11552# as_fn_arith ARG...
11553# ------------------
11554# Perform arithmetic evaluation on the ARGs, and store the result in the
11555# global $as_val. Take advantage of shells that can avoid forks. The arguments
11556# must be portable across $(()) and expr.
11557if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11558then :
11559  eval 'as_fn_arith ()
11560  {
11561    as_val=$(( $* ))
11562  }'
11563else $as_nop
11564  as_fn_arith ()
11565  {
11566    as_val=`expr "$@" || test $? -eq 1`
11567  }
11568fi # as_fn_arith
11569
11570
11571if expr a : '\(a\)' >/dev/null 2>&1 &&
11572   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11573  as_expr=expr
11574else
11575  as_expr=false
11576fi
11577
11578if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11579  as_basename=basename
11580else
11581  as_basename=false
11582fi
11583
11584if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11585  as_dirname=dirname
11586else
11587  as_dirname=false
11588fi
11589
11590as_me=`$as_basename -- "$0" ||
11591$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11592	 X"$0" : 'X\(//\)$' \| \
11593	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11594printf "%s\n" X/"$0" |
11595    sed '/^.*\/\([^/][^/]*\)\/*$/{
11596	    s//\1/
11597	    q
11598	  }
11599	  /^X\/\(\/\/\)$/{
11600	    s//\1/
11601	    q
11602	  }
11603	  /^X\/\(\/\).*/{
11604	    s//\1/
11605	    q
11606	  }
11607	  s/.*/./; q'`
11608
11609# Avoid depending upon Character Ranges.
11610as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11611as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11612as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11613as_cr_digits='0123456789'
11614as_cr_alnum=$as_cr_Letters$as_cr_digits
11615
11616
11617# Determine whether it's possible to make 'echo' print without a newline.
11618# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11619# for compatibility with existing Makefiles.
11620ECHO_C= ECHO_N= ECHO_T=
11621case `echo -n x` in #(((((
11622-n*)
11623  case `echo 'xy\c'` in
11624  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11625  xy)  ECHO_C='\c';;
11626  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11627       ECHO_T='	';;
11628  esac;;
11629*)
11630  ECHO_N='-n';;
11631esac
11632
11633# For backward compatibility with old third-party macros, we provide
11634# the shell variables $as_echo and $as_echo_n.  New code should use
11635# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11636as_echo='printf %s\n'
11637as_echo_n='printf %s'
11638
11639rm -f conf$$ conf$$.exe conf$$.file
11640if test -d conf$$.dir; then
11641  rm -f conf$$.dir/conf$$.file
11642else
11643  rm -f conf$$.dir
11644  mkdir conf$$.dir 2>/dev/null
11645fi
11646if (echo >conf$$.file) 2>/dev/null; then
11647  if ln -s conf$$.file conf$$ 2>/dev/null; then
11648    as_ln_s='ln -s'
11649    # ... but there are two gotchas:
11650    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11651    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11652    # In both cases, we have to default to `cp -pR'.
11653    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11654      as_ln_s='cp -pR'
11655  elif ln conf$$.file conf$$ 2>/dev/null; then
11656    as_ln_s=ln
11657  else
11658    as_ln_s='cp -pR'
11659  fi
11660else
11661  as_ln_s='cp -pR'
11662fi
11663rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11664rmdir conf$$.dir 2>/dev/null
11665
11666
11667# as_fn_mkdir_p
11668# -------------
11669# Create "$as_dir" as a directory, including parents if necessary.
11670as_fn_mkdir_p ()
11671{
11672
11673  case $as_dir in #(
11674  -*) as_dir=./$as_dir;;
11675  esac
11676  test -d "$as_dir" || eval $as_mkdir_p || {
11677    as_dirs=
11678    while :; do
11679      case $as_dir in #(
11680      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11681      *) as_qdir=$as_dir;;
11682      esac
11683      as_dirs="'$as_qdir' $as_dirs"
11684      as_dir=`$as_dirname -- "$as_dir" ||
11685$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11686	 X"$as_dir" : 'X\(//\)[^/]' \| \
11687	 X"$as_dir" : 'X\(//\)$' \| \
11688	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11689printf "%s\n" X"$as_dir" |
11690    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11691	    s//\1/
11692	    q
11693	  }
11694	  /^X\(\/\/\)[^/].*/{
11695	    s//\1/
11696	    q
11697	  }
11698	  /^X\(\/\/\)$/{
11699	    s//\1/
11700	    q
11701	  }
11702	  /^X\(\/\).*/{
11703	    s//\1/
11704	    q
11705	  }
11706	  s/.*/./; q'`
11707      test -d "$as_dir" && break
11708    done
11709    test -z "$as_dirs" || eval "mkdir $as_dirs"
11710  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11711
11712
11713} # as_fn_mkdir_p
11714if mkdir -p . 2>/dev/null; then
11715  as_mkdir_p='mkdir -p "$as_dir"'
11716else
11717  test -d ./-p && rmdir ./-p
11718  as_mkdir_p=false
11719fi
11720
11721
11722# as_fn_executable_p FILE
11723# -----------------------
11724# Test if FILE is an executable regular file.
11725as_fn_executable_p ()
11726{
11727  test -f "$1" && test -x "$1"
11728} # as_fn_executable_p
11729as_test_x='test -x'
11730as_executable_p=as_fn_executable_p
11731
11732# Sed expression to map a string onto a valid CPP name.
11733as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11734
11735# Sed expression to map a string onto a valid variable name.
11736as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11737
11738
11739exec 6>&1
11740## ----------------------------------- ##
11741## Main body of $CONFIG_STATUS script. ##
11742## ----------------------------------- ##
11743_ASEOF
11744test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11745
11746cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11747# Save the log message, to keep $0 and so on meaningful, and to
11748# report actual input values of CONFIG_FILES etc. instead of their
11749# values after options handling.
11750ac_log="
11751This file was extended by oclock $as_me 1.0.5, which was
11752generated by GNU Autoconf 2.71.  Invocation command line was
11753
11754  CONFIG_FILES    = $CONFIG_FILES
11755  CONFIG_HEADERS  = $CONFIG_HEADERS
11756  CONFIG_LINKS    = $CONFIG_LINKS
11757  CONFIG_COMMANDS = $CONFIG_COMMANDS
11758  $ $0 $@
11759
11760on `(hostname || uname -n) 2>/dev/null | sed 1q`
11761"
11762
11763_ACEOF
11764
11765case $ac_config_files in *"
11766"*) set x $ac_config_files; shift; ac_config_files=$*;;
11767esac
11768
11769case $ac_config_headers in *"
11770"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11771esac
11772
11773
11774cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11775# Files that config.status was made for.
11776config_files="$ac_config_files"
11777config_headers="$ac_config_headers"
11778config_commands="$ac_config_commands"
11779
11780_ACEOF
11781
11782cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11783ac_cs_usage="\
11784\`$as_me' instantiates files and other configuration actions
11785from templates according to the current configuration.  Unless the files
11786and actions are specified as TAGs, all are instantiated by default.
11787
11788Usage: $0 [OPTION]... [TAG]...
11789
11790  -h, --help       print this help, then exit
11791  -V, --version    print version number and configuration settings, then exit
11792      --config     print configuration, then exit
11793  -q, --quiet, --silent
11794                   do not print progress messages
11795  -d, --debug      don't remove temporary files
11796      --recheck    update $as_me by reconfiguring in the same conditions
11797      --file=FILE[:TEMPLATE]
11798                   instantiate the configuration file FILE
11799      --header=FILE[:TEMPLATE]
11800                   instantiate the configuration header FILE
11801
11802Configuration files:
11803$config_files
11804
11805Configuration headers:
11806$config_headers
11807
11808Configuration commands:
11809$config_commands
11810
11811Report bugs to <https://gitlab.freedesktop.org/xorg/app/oclock/-/issues>."
11812
11813_ACEOF
11814ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
11815ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
11816cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11817ac_cs_config='$ac_cs_config_escaped'
11818ac_cs_version="\\
11819oclock config.status 1.0.5
11820configured by $0, generated by GNU Autoconf 2.71,
11821  with options \\"\$ac_cs_config\\"
11822
11823Copyright (C) 2021 Free Software Foundation, Inc.
11824This config.status script is free software; the Free Software Foundation
11825gives unlimited permission to copy, distribute and modify it."
11826
11827ac_pwd='$ac_pwd'
11828srcdir='$srcdir'
11829INSTALL='$INSTALL'
11830MKDIR_P='$MKDIR_P'
11831AWK='$AWK'
11832test -n "\$AWK" || AWK=awk
11833_ACEOF
11834
11835cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11836# The default lists apply if the user does not specify any file.
11837ac_need_defaults=:
11838while test $# != 0
11839do
11840  case $1 in
11841  --*=?*)
11842    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11843    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11844    ac_shift=:
11845    ;;
11846  --*=)
11847    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11848    ac_optarg=
11849    ac_shift=:
11850    ;;
11851  *)
11852    ac_option=$1
11853    ac_optarg=$2
11854    ac_shift=shift
11855    ;;
11856  esac
11857
11858  case $ac_option in
11859  # Handling of the options.
11860  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11861    ac_cs_recheck=: ;;
11862  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11863    printf "%s\n" "$ac_cs_version"; exit ;;
11864  --config | --confi | --conf | --con | --co | --c )
11865    printf "%s\n" "$ac_cs_config"; exit ;;
11866  --debug | --debu | --deb | --de | --d | -d )
11867    debug=: ;;
11868  --file | --fil | --fi | --f )
11869    $ac_shift
11870    case $ac_optarg in
11871    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11872    '') as_fn_error $? "missing file argument" ;;
11873    esac
11874    as_fn_append CONFIG_FILES " '$ac_optarg'"
11875    ac_need_defaults=false;;
11876  --header | --heade | --head | --hea )
11877    $ac_shift
11878    case $ac_optarg in
11879    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11880    esac
11881    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11882    ac_need_defaults=false;;
11883  --he | --h)
11884    # Conflict between --help and --header
11885    as_fn_error $? "ambiguous option: \`$1'
11886Try \`$0 --help' for more information.";;
11887  --help | --hel | -h )
11888    printf "%s\n" "$ac_cs_usage"; exit ;;
11889  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11890  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11891    ac_cs_silent=: ;;
11892
11893  # This is an error.
11894  -*) as_fn_error $? "unrecognized option: \`$1'
11895Try \`$0 --help' for more information." ;;
11896
11897  *) as_fn_append ac_config_targets " $1"
11898     ac_need_defaults=false ;;
11899
11900  esac
11901  shift
11902done
11903
11904ac_configure_extra_args=
11905
11906if $ac_cs_silent; then
11907  exec 6>/dev/null
11908  ac_configure_extra_args="$ac_configure_extra_args --silent"
11909fi
11910
11911_ACEOF
11912cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11913if \$ac_cs_recheck; then
11914  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11915  shift
11916  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
11917  CONFIG_SHELL='$SHELL'
11918  export CONFIG_SHELL
11919  exec "\$@"
11920fi
11921
11922_ACEOF
11923cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11924exec 5>>config.log
11925{
11926  echo
11927  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11928## Running $as_me. ##
11929_ASBOX
11930  printf "%s\n" "$ac_log"
11931} >&5
11932
11933_ACEOF
11934cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11935#
11936# INIT-COMMANDS
11937#
11938AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
11939
11940_ACEOF
11941
11942cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11943
11944# Handling of arguments.
11945for ac_config_target in $ac_config_targets
11946do
11947  case $ac_config_target in
11948    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11949    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11950    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11951    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11952
11953  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11954  esac
11955done
11956
11957
11958# If the user did not use the arguments to specify the items to instantiate,
11959# then the envvar interface is used.  Set only those that are not.
11960# We use the long form for the default assignment because of an extremely
11961# bizarre bug on SunOS 4.1.3.
11962if $ac_need_defaults; then
11963  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
11964  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
11965  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
11966fi
11967
11968# Have a temporary directory for convenience.  Make it in the build tree
11969# simply because there is no reason against having it here, and in addition,
11970# creating and moving files from /tmp can sometimes cause problems.
11971# Hook for its removal unless debugging.
11972# Note that there is a small window in which the directory will not be cleaned:
11973# after its creation but before its name has been assigned to `$tmp'.
11974$debug ||
11975{
11976  tmp= ac_tmp=
11977  trap 'exit_status=$?
11978  : "${ac_tmp:=$tmp}"
11979  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11980' 0
11981  trap 'as_fn_exit 1' 1 2 13 15
11982}
11983# Create a (secure) tmp directory for tmp files.
11984
11985{
11986  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11987  test -d "$tmp"
11988}  ||
11989{
11990  tmp=./conf$$-$RANDOM
11991  (umask 077 && mkdir "$tmp")
11992} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11993ac_tmp=$tmp
11994
11995# Set up the scripts for CONFIG_FILES section.
11996# No need to generate them if there are no CONFIG_FILES.
11997# This happens for instance with `./config.status config.h'.
11998if test -n "$CONFIG_FILES"; then
11999
12000
12001ac_cr=`echo X | tr X '\015'`
12002# On cygwin, bash can eat \r inside `` if the user requested igncr.
12003# But we know of no other shell where ac_cr would be empty at this
12004# point, so we can use a bashism as a fallback.
12005if test "x$ac_cr" = x; then
12006  eval ac_cr=\$\'\\r\'
12007fi
12008ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12009if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12010  ac_cs_awk_cr='\\r'
12011else
12012  ac_cs_awk_cr=$ac_cr
12013fi
12014
12015echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12016_ACEOF
12017
12018
12019{
12020  echo "cat >conf$$subs.awk <<_ACEOF" &&
12021  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12022  echo "_ACEOF"
12023} >conf$$subs.sh ||
12024  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12025ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12026ac_delim='%!_!# '
12027for ac_last_try in false false false false false :; do
12028  . ./conf$$subs.sh ||
12029    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12030
12031  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12032  if test $ac_delim_n = $ac_delim_num; then
12033    break
12034  elif $ac_last_try; then
12035    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12036  else
12037    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12038  fi
12039done
12040rm -f conf$$subs.sh
12041
12042cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12043cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12044_ACEOF
12045sed -n '
12046h
12047s/^/S["/; s/!.*/"]=/
12048p
12049g
12050s/^[^!]*!//
12051:repl
12052t repl
12053s/'"$ac_delim"'$//
12054t delim
12055:nl
12056h
12057s/\(.\{148\}\)..*/\1/
12058t more1
12059s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12060p
12061n
12062b repl
12063:more1
12064s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12065p
12066g
12067s/.\{148\}//
12068t nl
12069:delim
12070h
12071s/\(.\{148\}\)..*/\1/
12072t more2
12073s/["\\]/\\&/g; s/^/"/; s/$/"/
12074p
12075b
12076:more2
12077s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12078p
12079g
12080s/.\{148\}//
12081t delim
12082' <conf$$subs.awk | sed '
12083/^[^""]/{
12084  N
12085  s/\n//
12086}
12087' >>$CONFIG_STATUS || ac_write_fail=1
12088rm -f conf$$subs.awk
12089cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12090_ACAWK
12091cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12092  for (key in S) S_is_set[key] = 1
12093  FS = ""
12094
12095}
12096{
12097  line = $ 0
12098  nfields = split(line, field, "@")
12099  substed = 0
12100  len = length(field[1])
12101  for (i = 2; i < nfields; i++) {
12102    key = field[i]
12103    keylen = length(key)
12104    if (S_is_set[key]) {
12105      value = S[key]
12106      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12107      len += length(value) + length(field[++i])
12108      substed = 1
12109    } else
12110      len += 1 + keylen
12111  }
12112
12113  print line
12114}
12115
12116_ACAWK
12117_ACEOF
12118cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12119if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12120  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12121else
12122  cat
12123fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12124  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12125_ACEOF
12126
12127# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12128# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12129# trailing colons and then remove the whole line if VPATH becomes empty
12130# (actually we leave an empty line to preserve line numbers).
12131if test "x$srcdir" = x.; then
12132  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12133h
12134s///
12135s/^/:/
12136s/[	 ]*$/:/
12137s/:\$(srcdir):/:/g
12138s/:\${srcdir}:/:/g
12139s/:@srcdir@:/:/g
12140s/^:*//
12141s/:*$//
12142x
12143s/\(=[	 ]*\).*/\1/
12144G
12145s/\n//
12146s/^[^=]*=[	 ]*$//
12147}'
12148fi
12149
12150cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12151fi # test -n "$CONFIG_FILES"
12152
12153# Set up the scripts for CONFIG_HEADERS section.
12154# No need to generate them if there are no CONFIG_HEADERS.
12155# This happens for instance with `./config.status Makefile'.
12156if test -n "$CONFIG_HEADERS"; then
12157cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12158BEGIN {
12159_ACEOF
12160
12161# Transform confdefs.h into an awk script `defines.awk', embedded as
12162# here-document in config.status, that substitutes the proper values into
12163# config.h.in to produce config.h.
12164
12165# Create a delimiter string that does not exist in confdefs.h, to ease
12166# handling of long lines.
12167ac_delim='%!_!# '
12168for ac_last_try in false false :; do
12169  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12170  if test -z "$ac_tt"; then
12171    break
12172  elif $ac_last_try; then
12173    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12174  else
12175    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12176  fi
12177done
12178
12179# For the awk script, D is an array of macro values keyed by name,
12180# likewise P contains macro parameters if any.  Preserve backslash
12181# newline sequences.
12182
12183ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12184sed -n '
12185s/.\{148\}/&'"$ac_delim"'/g
12186t rset
12187:rset
12188s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12189t def
12190d
12191:def
12192s/\\$//
12193t bsnl
12194s/["\\]/\\&/g
12195s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12196D["\1"]=" \3"/p
12197s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12198d
12199:bsnl
12200s/["\\]/\\&/g
12201s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12202D["\1"]=" \3\\\\\\n"\\/p
12203t cont
12204s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12205t cont
12206d
12207:cont
12208n
12209s/.\{148\}/&'"$ac_delim"'/g
12210t clear
12211:clear
12212s/\\$//
12213t bsnlc
12214s/["\\]/\\&/g; s/^/"/; s/$/"/p
12215d
12216:bsnlc
12217s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12218b cont
12219' <confdefs.h | sed '
12220s/'"$ac_delim"'/"\\\
12221"/g' >>$CONFIG_STATUS || ac_write_fail=1
12222
12223cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12224  for (key in D) D_is_set[key] = 1
12225  FS = ""
12226}
12227/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12228  line = \$ 0
12229  split(line, arg, " ")
12230  if (arg[1] == "#") {
12231    defundef = arg[2]
12232    mac1 = arg[3]
12233  } else {
12234    defundef = substr(arg[1], 2)
12235    mac1 = arg[2]
12236  }
12237  split(mac1, mac2, "(") #)
12238  macro = mac2[1]
12239  prefix = substr(line, 1, index(line, defundef) - 1)
12240  if (D_is_set[macro]) {
12241    # Preserve the white space surrounding the "#".
12242    print prefix "define", macro P[macro] D[macro]
12243    next
12244  } else {
12245    # Replace #undef with comments.  This is necessary, for example,
12246    # in the case of _POSIX_SOURCE, which is predefined and required
12247    # on some systems where configure will not decide to define it.
12248    if (defundef == "undef") {
12249      print "/*", prefix defundef, macro, "*/"
12250      next
12251    }
12252  }
12253}
12254{ print }
12255_ACAWK
12256_ACEOF
12257cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12258  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12259fi # test -n "$CONFIG_HEADERS"
12260
12261
12262eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12263shift
12264for ac_tag
12265do
12266  case $ac_tag in
12267  :[FHLC]) ac_mode=$ac_tag; continue;;
12268  esac
12269  case $ac_mode$ac_tag in
12270  :[FHL]*:*);;
12271  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12272  :[FH]-) ac_tag=-:-;;
12273  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12274  esac
12275  ac_save_IFS=$IFS
12276  IFS=:
12277  set x $ac_tag
12278  IFS=$ac_save_IFS
12279  shift
12280  ac_file=$1
12281  shift
12282
12283  case $ac_mode in
12284  :L) ac_source=$1;;
12285  :[FH])
12286    ac_file_inputs=
12287    for ac_f
12288    do
12289      case $ac_f in
12290      -) ac_f="$ac_tmp/stdin";;
12291      *) # Look for the file first in the build tree, then in the source tree
12292	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12293	 # because $ac_f cannot contain `:'.
12294	 test -f "$ac_f" ||
12295	   case $ac_f in
12296	   [\\/$]*) false;;
12297	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12298	   esac ||
12299	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12300      esac
12301      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12302      as_fn_append ac_file_inputs " '$ac_f'"
12303    done
12304
12305    # Let's still pretend it is `configure' which instantiates (i.e., don't
12306    # use $as_me), people would be surprised to read:
12307    #    /* config.h.  Generated by config.status.  */
12308    configure_input='Generated from '`
12309	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12310	`' by configure.'
12311    if test x"$ac_file" != x-; then
12312      configure_input="$ac_file.  $configure_input"
12313      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12314printf "%s\n" "$as_me: creating $ac_file" >&6;}
12315    fi
12316    # Neutralize special characters interpreted by sed in replacement strings.
12317    case $configure_input in #(
12318    *\&* | *\|* | *\\* )
12319       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12320       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12321    *) ac_sed_conf_input=$configure_input;;
12322    esac
12323
12324    case $ac_tag in
12325    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12326      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12327    esac
12328    ;;
12329  esac
12330
12331  ac_dir=`$as_dirname -- "$ac_file" ||
12332$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12333	 X"$ac_file" : 'X\(//\)[^/]' \| \
12334	 X"$ac_file" : 'X\(//\)$' \| \
12335	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12336printf "%s\n" X"$ac_file" |
12337    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12338	    s//\1/
12339	    q
12340	  }
12341	  /^X\(\/\/\)[^/].*/{
12342	    s//\1/
12343	    q
12344	  }
12345	  /^X\(\/\/\)$/{
12346	    s//\1/
12347	    q
12348	  }
12349	  /^X\(\/\).*/{
12350	    s//\1/
12351	    q
12352	  }
12353	  s/.*/./; q'`
12354  as_dir="$ac_dir"; as_fn_mkdir_p
12355  ac_builddir=.
12356
12357case "$ac_dir" in
12358.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12359*)
12360  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12361  # A ".." for each directory in $ac_dir_suffix.
12362  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12363  case $ac_top_builddir_sub in
12364  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12365  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12366  esac ;;
12367esac
12368ac_abs_top_builddir=$ac_pwd
12369ac_abs_builddir=$ac_pwd$ac_dir_suffix
12370# for backward compatibility:
12371ac_top_builddir=$ac_top_build_prefix
12372
12373case $srcdir in
12374  .)  # We are building in place.
12375    ac_srcdir=.
12376    ac_top_srcdir=$ac_top_builddir_sub
12377    ac_abs_top_srcdir=$ac_pwd ;;
12378  [\\/]* | ?:[\\/]* )  # Absolute name.
12379    ac_srcdir=$srcdir$ac_dir_suffix;
12380    ac_top_srcdir=$srcdir
12381    ac_abs_top_srcdir=$srcdir ;;
12382  *) # Relative name.
12383    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12384    ac_top_srcdir=$ac_top_build_prefix$srcdir
12385    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12386esac
12387ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12388
12389
12390  case $ac_mode in
12391  :F)
12392  #
12393  # CONFIG_FILE
12394  #
12395
12396  case $INSTALL in
12397  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12398  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12399  esac
12400  ac_MKDIR_P=$MKDIR_P
12401  case $MKDIR_P in
12402  [\\/$]* | ?:[\\/]* ) ;;
12403  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12404  esac
12405_ACEOF
12406
12407cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12408# If the template does not know about datarootdir, expand it.
12409# FIXME: This hack should be removed a few years after 2.60.
12410ac_datarootdir_hack=; ac_datarootdir_seen=
12411ac_sed_dataroot='
12412/datarootdir/ {
12413  p
12414  q
12415}
12416/@datadir@/p
12417/@docdir@/p
12418/@infodir@/p
12419/@localedir@/p
12420/@mandir@/p'
12421case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12422*datarootdir*) ac_datarootdir_seen=yes;;
12423*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12424  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12425printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12426_ACEOF
12427cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12428  ac_datarootdir_hack='
12429  s&@datadir@&$datadir&g
12430  s&@docdir@&$docdir&g
12431  s&@infodir@&$infodir&g
12432  s&@localedir@&$localedir&g
12433  s&@mandir@&$mandir&g
12434  s&\\\${datarootdir}&$datarootdir&g' ;;
12435esac
12436_ACEOF
12437
12438# Neutralize VPATH when `$srcdir' = `.'.
12439# Shell code in configure.ac might set extrasub.
12440# FIXME: do we really want to maintain this feature?
12441cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12442ac_sed_extra="$ac_vpsub
12443$extrasub
12444_ACEOF
12445cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12446:t
12447/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12448s|@configure_input@|$ac_sed_conf_input|;t t
12449s&@top_builddir@&$ac_top_builddir_sub&;t t
12450s&@top_build_prefix@&$ac_top_build_prefix&;t t
12451s&@srcdir@&$ac_srcdir&;t t
12452s&@abs_srcdir@&$ac_abs_srcdir&;t t
12453s&@top_srcdir@&$ac_top_srcdir&;t t
12454s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12455s&@builddir@&$ac_builddir&;t t
12456s&@abs_builddir@&$ac_abs_builddir&;t t
12457s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12458s&@INSTALL@&$ac_INSTALL&;t t
12459s&@MKDIR_P@&$ac_MKDIR_P&;t t
12460$ac_datarootdir_hack
12461"
12462eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12463  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12464
12465test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12466  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12467  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12468      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12469  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12470which seems to be undefined.  Please make sure it is defined" >&5
12471printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12472which seems to be undefined.  Please make sure it is defined" >&2;}
12473
12474  rm -f "$ac_tmp/stdin"
12475  case $ac_file in
12476  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12477  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12478  esac \
12479  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12480 ;;
12481  :H)
12482  #
12483  # CONFIG_HEADER
12484  #
12485  if test x"$ac_file" != x-; then
12486    {
12487      printf "%s\n" "/* $configure_input  */" >&1 \
12488      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12489    } >"$ac_tmp/config.h" \
12490      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12491    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12492      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12493printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12494    else
12495      rm -f "$ac_file"
12496      mv "$ac_tmp/config.h" "$ac_file" \
12497	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12498    fi
12499  else
12500    printf "%s\n" "/* $configure_input  */" >&1 \
12501      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12502      || as_fn_error $? "could not create -" "$LINENO" 5
12503  fi
12504# Compute "$ac_file"'s index in $config_headers.
12505_am_arg="$ac_file"
12506_am_stamp_count=1
12507for _am_header in $config_headers :; do
12508  case $_am_header in
12509    $_am_arg | $_am_arg:* )
12510      break ;;
12511    * )
12512      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12513  esac
12514done
12515echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12516$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12517	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12518	 X"$_am_arg" : 'X\(//\)$' \| \
12519	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12520printf "%s\n" X"$_am_arg" |
12521    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12522	    s//\1/
12523	    q
12524	  }
12525	  /^X\(\/\/\)[^/].*/{
12526	    s//\1/
12527	    q
12528	  }
12529	  /^X\(\/\/\)$/{
12530	    s//\1/
12531	    q
12532	  }
12533	  /^X\(\/\).*/{
12534	    s//\1/
12535	    q
12536	  }
12537	  s/.*/./; q'`/stamp-h$_am_stamp_count
12538 ;;
12539
12540  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12541printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12542 ;;
12543  esac
12544
12545
12546  case $ac_file$ac_mode in
12547    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12548  # Older Autoconf quotes --file arguments for eval, but not when files
12549  # are listed without --file.  Let's play safe and only enable the eval
12550  # if we detect the quoting.
12551  # TODO: see whether this extra hack can be removed once we start
12552  # requiring Autoconf 2.70 or later.
12553  case $CONFIG_FILES in #(
12554  *\'*) :
12555    eval set x "$CONFIG_FILES" ;; #(
12556  *) :
12557    set x $CONFIG_FILES ;; #(
12558  *) :
12559     ;;
12560esac
12561  shift
12562  # Used to flag and report bootstrapping failures.
12563  am_rc=0
12564  for am_mf
12565  do
12566    # Strip MF so we end up with the name of the file.
12567    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12568    # Check whether this is an Automake generated Makefile which includes
12569    # dependency-tracking related rules and includes.
12570    # Grep'ing the whole file directly is not great: AIX grep has a line
12571    # limit of 2048, but all sed's we know have understand at least 4000.
12572    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12573      || continue
12574    am_dirpart=`$as_dirname -- "$am_mf" ||
12575$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12576	 X"$am_mf" : 'X\(//\)[^/]' \| \
12577	 X"$am_mf" : 'X\(//\)$' \| \
12578	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12579printf "%s\n" X"$am_mf" |
12580    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12581	    s//\1/
12582	    q
12583	  }
12584	  /^X\(\/\/\)[^/].*/{
12585	    s//\1/
12586	    q
12587	  }
12588	  /^X\(\/\/\)$/{
12589	    s//\1/
12590	    q
12591	  }
12592	  /^X\(\/\).*/{
12593	    s//\1/
12594	    q
12595	  }
12596	  s/.*/./; q'`
12597    am_filepart=`$as_basename -- "$am_mf" ||
12598$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12599	 X"$am_mf" : 'X\(//\)$' \| \
12600	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12601printf "%s\n" X/"$am_mf" |
12602    sed '/^.*\/\([^/][^/]*\)\/*$/{
12603	    s//\1/
12604	    q
12605	  }
12606	  /^X\/\(\/\/\)$/{
12607	    s//\1/
12608	    q
12609	  }
12610	  /^X\/\(\/\).*/{
12611	    s//\1/
12612	    q
12613	  }
12614	  s/.*/./; q'`
12615    { echo "$as_me:$LINENO: cd "$am_dirpart" \
12616      && sed -e '/# am--include-marker/d' "$am_filepart" \
12617        | $MAKE -f - am--depfiles" >&5
12618   (cd "$am_dirpart" \
12619      && sed -e '/# am--include-marker/d' "$am_filepart" \
12620        | $MAKE -f - am--depfiles) >&5 2>&5
12621   ac_status=$?
12622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623   (exit $ac_status); } || am_rc=$?
12624  done
12625  if test $am_rc -ne 0; then
12626    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12627printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12628as_fn_error $? "Something went wrong bootstrapping makefile fragments
12629    for automatic dependency tracking.  If GNU make was not used, consider
12630    re-running the configure script with MAKE=\"gmake\" (or whatever is
12631    necessary).  You can also try re-running configure with the
12632    '--disable-dependency-tracking' option to at least be able to build
12633    the package (albeit without support for automatic dependency tracking).
12634See \`config.log' for more details" "$LINENO" 5; }
12635  fi
12636  { am_dirpart=; unset am_dirpart;}
12637  { am_filepart=; unset am_filepart;}
12638  { am_mf=; unset am_mf;}
12639  { am_rc=; unset am_rc;}
12640  rm -f conftest-deps.mk
12641}
12642 ;;
12643
12644  esac
12645done # for ac_tag
12646
12647
12648as_fn_exit 0
12649_ACEOF
12650ac_clean_files=$ac_clean_files_save
12651
12652test $ac_write_fail = 0 ||
12653  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12654
12655
12656# configure is writing to config.log, and then calls config.status.
12657# config.status does its own redirection, appending to config.log.
12658# Unfortunately, on DOS this fails, as config.log is still kept open
12659# by configure, so config.status won't be able to write to it; its
12660# output is simply discarded.  So we exec the FD to /dev/null,
12661# effectively closing config.log, so it can be properly (re)opened and
12662# appended to by config.status.  When coming back to configure, we
12663# need to make the FD available again.
12664if test "$no_create" != yes; then
12665  ac_cs_success=:
12666  ac_config_status_args=
12667  test "$silent" = yes &&
12668    ac_config_status_args="$ac_config_status_args --quiet"
12669  exec 5>/dev/null
12670  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12671  exec 5>>config.log
12672  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12673  # would make configure fail if this is the last instruction.
12674  $ac_cs_success || as_fn_exit 1
12675fi
12676if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12677  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12678printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12679fi
12680
12681
12682