configure revision 3d13e800
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for encodings 1.0.6.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/font/encodings/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/font/encodings/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='encodings'
614PACKAGE_TARNAME='encodings'
615PACKAGE_VERSION='1.0.6'
616PACKAGE_STRING='encodings 1.0.6'
617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/font/encodings/issues'
618PACKAGE_URL=''
619
620# Factoring default headers for most tests.
621ac_includes_default="\
622#include <stddef.h>
623#ifdef HAVE_STDIO_H
624# include <stdio.h>
625#endif
626#ifdef HAVE_STDLIB_H
627# include <stdlib.h>
628#endif
629#ifdef HAVE_STRING_H
630# include <string.h>
631#endif
632#ifdef HAVE_INTTYPES_H
633# include <inttypes.h>
634#endif
635#ifdef HAVE_STDINT_H
636# include <stdint.h>
637#endif
638#ifdef HAVE_STRINGS_H
639# include <strings.h>
640#endif
641#ifdef HAVE_SYS_TYPES_H
642# include <sys/types.h>
643#endif
644#ifdef HAVE_SYS_STAT_H
645# include <sys/stat.h>
646#endif
647#ifdef HAVE_UNISTD_H
648# include <unistd.h>
649#endif"
650
651ac_header_c_list=
652ac_subst_vars='am__EXEEXT_FALSE
653am__EXEEXT_TRUE
654LTLIBOBJS
655LIBOBJS
656ENCODINGSDIR
657FONTROOTDIR
658GZIP
659GZIP_LARGE_FALSE
660GZIP_LARGE_TRUE
661GZIP_SMALL_FALSE
662GZIP_SMALL_TRUE
663MKFONTSCALE
664MAN_SUBSTS
665XORG_MAN_PAGE
666ADMIN_MAN_DIR
667DRIVER_MAN_DIR
668MISC_MAN_DIR
669FILE_MAN_DIR
670LIB_MAN_DIR
671APP_MAN_DIR
672ADMIN_MAN_SUFFIX
673DRIVER_MAN_SUFFIX
674MISC_MAN_SUFFIX
675FILE_MAN_SUFFIX
676LIB_MAN_SUFFIX
677APP_MAN_SUFFIX
678SED
679host_os
680host_vendor
681host_cpu
682host
683build_os
684build_vendor
685build_cpu
686build
687INSTALL_CMD
688PKG_CONFIG_LIBDIR
689PKG_CONFIG_PATH
690PKG_CONFIG
691CHANGELOG_CMD
692STRICT_CFLAGS
693CWARNFLAGS
694BASE_CFLAGS
695am__fastdepCC_FALSE
696am__fastdepCC_TRUE
697CCDEPMODE
698am__nodep
699AMDEPBACKSLASH
700AMDEP_FALSE
701AMDEP_TRUE
702am__include
703DEPDIR
704OBJEXT
705EXEEXT
706ac_ct_CC
707CPPFLAGS
708LDFLAGS
709CFLAGS
710CC
711AM_BACKSLASH
712AM_DEFAULT_VERBOSITY
713AM_DEFAULT_V
714AM_V
715CSCOPE
716ETAGS
717CTAGS
718am__untar
719am__tar
720AMTAR
721am__leading_dot
722SET_MAKE
723AWK
724mkdir_p
725MKDIR_P
726INSTALL_STRIP_PROGRAM
727STRIP
728install_sh
729MAKEINFO
730AUTOHEADER
731AUTOMAKE
732AUTOCONF
733ACLOCAL
734VERSION
735PACKAGE
736CYGPATH_W
737am__isrc
738INSTALL_DATA
739INSTALL_SCRIPT
740INSTALL_PROGRAM
741target_alias
742host_alias
743build_alias
744LIBS
745ECHO_T
746ECHO_N
747ECHO_C
748DEFS
749mandir
750localedir
751libdir
752psdir
753pdfdir
754dvidir
755htmldir
756infodir
757docdir
758oldincludedir
759includedir
760runstatedir
761localstatedir
762sharedstatedir
763sysconfdir
764datadir
765datarootdir
766libexecdir
767sbindir
768bindir
769program_transform_name
770prefix
771exec_prefix
772PACKAGE_URL
773PACKAGE_BUGREPORT
774PACKAGE_STRING
775PACKAGE_VERSION
776PACKAGE_TARNAME
777PACKAGE_NAME
778PATH_SEPARATOR
779SHELL
780am__quote'
781ac_subst_files=''
782ac_user_opts='
783enable_option_checking
784enable_silent_rules
785enable_dependency_tracking
786enable_selective_werror
787enable_strict_compilation
788enable_gzip_small_encodings
789enable_gzip_large_encodings
790with_fontrootdir
791with_encodingsdir
792'
793      ac_precious_vars='build_alias
794host_alias
795target_alias
796CC
797CFLAGS
798LDFLAGS
799LIBS
800CPPFLAGS
801PKG_CONFIG
802PKG_CONFIG_PATH
803PKG_CONFIG_LIBDIR'
804
805
806# Initialize some variables set by options.
807ac_init_help=
808ac_init_version=false
809ac_unrecognized_opts=
810ac_unrecognized_sep=
811# The variables have the same names as the options, with
812# dashes changed to underlines.
813cache_file=/dev/null
814exec_prefix=NONE
815no_create=
816no_recursion=
817prefix=NONE
818program_prefix=NONE
819program_suffix=NONE
820program_transform_name=s,x,x,
821silent=
822site=
823srcdir=
824verbose=
825x_includes=NONE
826x_libraries=NONE
827
828# Installation directory options.
829# These are left unexpanded so users can "make install exec_prefix=/foo"
830# and all the variables that are supposed to be based on exec_prefix
831# by default will actually change.
832# Use braces instead of parens because sh, perl, etc. also accept them.
833# (The list follows the same order as the GNU Coding Standards.)
834bindir='${exec_prefix}/bin'
835sbindir='${exec_prefix}/sbin'
836libexecdir='${exec_prefix}/libexec'
837datarootdir='${prefix}/share'
838datadir='${datarootdir}'
839sysconfdir='${prefix}/etc'
840sharedstatedir='${prefix}/com'
841localstatedir='${prefix}/var'
842runstatedir='${localstatedir}/run'
843includedir='${prefix}/include'
844oldincludedir='/usr/include'
845docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
846infodir='${datarootdir}/info'
847htmldir='${docdir}'
848dvidir='${docdir}'
849pdfdir='${docdir}'
850psdir='${docdir}'
851libdir='${exec_prefix}/lib'
852localedir='${datarootdir}/locale'
853mandir='${datarootdir}/man'
854
855ac_prev=
856ac_dashdash=
857for ac_option
858do
859  # If the previous option needs an argument, assign it.
860  if test -n "$ac_prev"; then
861    eval $ac_prev=\$ac_option
862    ac_prev=
863    continue
864  fi
865
866  case $ac_option in
867  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
868  *=)   ac_optarg= ;;
869  *)    ac_optarg=yes ;;
870  esac
871
872  case $ac_dashdash$ac_option in
873  --)
874    ac_dashdash=yes ;;
875
876  -bindir | --bindir | --bindi | --bind | --bin | --bi)
877    ac_prev=bindir ;;
878  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
879    bindir=$ac_optarg ;;
880
881  -build | --build | --buil | --bui | --bu)
882    ac_prev=build_alias ;;
883  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
884    build_alias=$ac_optarg ;;
885
886  -cache-file | --cache-file | --cache-fil | --cache-fi \
887  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
888    ac_prev=cache_file ;;
889  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
890  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
891    cache_file=$ac_optarg ;;
892
893  --config-cache | -C)
894    cache_file=config.cache ;;
895
896  -datadir | --datadir | --datadi | --datad)
897    ac_prev=datadir ;;
898  -datadir=* | --datadir=* | --datadi=* | --datad=*)
899    datadir=$ac_optarg ;;
900
901  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
902  | --dataroo | --dataro | --datar)
903    ac_prev=datarootdir ;;
904  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
905  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
906    datarootdir=$ac_optarg ;;
907
908  -disable-* | --disable-*)
909    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
910    # Reject names that are not valid shell variable names.
911    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912      as_fn_error $? "invalid feature name: \`$ac_useropt'"
913    ac_useropt_orig=$ac_useropt
914    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
915    case $ac_user_opts in
916      *"
917"enable_$ac_useropt"
918"*) ;;
919      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
920	 ac_unrecognized_sep=', ';;
921    esac
922    eval enable_$ac_useropt=no ;;
923
924  -docdir | --docdir | --docdi | --doc | --do)
925    ac_prev=docdir ;;
926  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
927    docdir=$ac_optarg ;;
928
929  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
930    ac_prev=dvidir ;;
931  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
932    dvidir=$ac_optarg ;;
933
934  -enable-* | --enable-*)
935    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
936    # Reject names that are not valid shell variable names.
937    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938      as_fn_error $? "invalid feature name: \`$ac_useropt'"
939    ac_useropt_orig=$ac_useropt
940    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
941    case $ac_user_opts in
942      *"
943"enable_$ac_useropt"
944"*) ;;
945      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
946	 ac_unrecognized_sep=', ';;
947    esac
948    eval enable_$ac_useropt=\$ac_optarg ;;
949
950  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952  | --exec | --exe | --ex)
953    ac_prev=exec_prefix ;;
954  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956  | --exec=* | --exe=* | --ex=*)
957    exec_prefix=$ac_optarg ;;
958
959  -gas | --gas | --ga | --g)
960    # Obsolete; use --with-gas.
961    with_gas=yes ;;
962
963  -help | --help | --hel | --he | -h)
964    ac_init_help=long ;;
965  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966    ac_init_help=recursive ;;
967  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968    ac_init_help=short ;;
969
970  -host | --host | --hos | --ho)
971    ac_prev=host_alias ;;
972  -host=* | --host=* | --hos=* | --ho=*)
973    host_alias=$ac_optarg ;;
974
975  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976    ac_prev=htmldir ;;
977  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978  | --ht=*)
979    htmldir=$ac_optarg ;;
980
981  -includedir | --includedir | --includedi | --included | --include \
982  | --includ | --inclu | --incl | --inc)
983    ac_prev=includedir ;;
984  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985  | --includ=* | --inclu=* | --incl=* | --inc=*)
986    includedir=$ac_optarg ;;
987
988  -infodir | --infodir | --infodi | --infod | --info | --inf)
989    ac_prev=infodir ;;
990  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991    infodir=$ac_optarg ;;
992
993  -libdir | --libdir | --libdi | --libd)
994    ac_prev=libdir ;;
995  -libdir=* | --libdir=* | --libdi=* | --libd=*)
996    libdir=$ac_optarg ;;
997
998  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999  | --libexe | --libex | --libe)
1000    ac_prev=libexecdir ;;
1001  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002  | --libexe=* | --libex=* | --libe=*)
1003    libexecdir=$ac_optarg ;;
1004
1005  -localedir | --localedir | --localedi | --localed | --locale)
1006    ac_prev=localedir ;;
1007  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008    localedir=$ac_optarg ;;
1009
1010  -localstatedir | --localstatedir | --localstatedi | --localstated \
1011  | --localstate | --localstat | --localsta | --localst | --locals)
1012    ac_prev=localstatedir ;;
1013  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015    localstatedir=$ac_optarg ;;
1016
1017  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018    ac_prev=mandir ;;
1019  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020    mandir=$ac_optarg ;;
1021
1022  -nfp | --nfp | --nf)
1023    # Obsolete; use --without-fp.
1024    with_fp=no ;;
1025
1026  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027  | --no-cr | --no-c | -n)
1028    no_create=yes ;;
1029
1030  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032    no_recursion=yes ;;
1033
1034  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036  | --oldin | --oldi | --old | --ol | --o)
1037    ac_prev=oldincludedir ;;
1038  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041    oldincludedir=$ac_optarg ;;
1042
1043  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044    ac_prev=prefix ;;
1045  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046    prefix=$ac_optarg ;;
1047
1048  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049  | --program-pre | --program-pr | --program-p)
1050    ac_prev=program_prefix ;;
1051  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053    program_prefix=$ac_optarg ;;
1054
1055  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056  | --program-suf | --program-su | --program-s)
1057    ac_prev=program_suffix ;;
1058  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060    program_suffix=$ac_optarg ;;
1061
1062  -program-transform-name | --program-transform-name \
1063  | --program-transform-nam | --program-transform-na \
1064  | --program-transform-n | --program-transform- \
1065  | --program-transform | --program-transfor \
1066  | --program-transfo | --program-transf \
1067  | --program-trans | --program-tran \
1068  | --progr-tra | --program-tr | --program-t)
1069    ac_prev=program_transform_name ;;
1070  -program-transform-name=* | --program-transform-name=* \
1071  | --program-transform-nam=* | --program-transform-na=* \
1072  | --program-transform-n=* | --program-transform-=* \
1073  | --program-transform=* | --program-transfor=* \
1074  | --program-transfo=* | --program-transf=* \
1075  | --program-trans=* | --program-tran=* \
1076  | --progr-tra=* | --program-tr=* | --program-t=*)
1077    program_transform_name=$ac_optarg ;;
1078
1079  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080    ac_prev=pdfdir ;;
1081  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082    pdfdir=$ac_optarg ;;
1083
1084  -psdir | --psdir | --psdi | --psd | --ps)
1085    ac_prev=psdir ;;
1086  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087    psdir=$ac_optarg ;;
1088
1089  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090  | -silent | --silent | --silen | --sile | --sil)
1091    silent=yes ;;
1092
1093  -runstatedir | --runstatedir | --runstatedi | --runstated \
1094  | --runstate | --runstat | --runsta | --runst | --runs \
1095  | --run | --ru | --r)
1096    ac_prev=runstatedir ;;
1097  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1098  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1099  | --run=* | --ru=* | --r=*)
1100    runstatedir=$ac_optarg ;;
1101
1102  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103    ac_prev=sbindir ;;
1104  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105  | --sbi=* | --sb=*)
1106    sbindir=$ac_optarg ;;
1107
1108  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110  | --sharedst | --shareds | --shared | --share | --shar \
1111  | --sha | --sh)
1112    ac_prev=sharedstatedir ;;
1113  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116  | --sha=* | --sh=*)
1117    sharedstatedir=$ac_optarg ;;
1118
1119  -site | --site | --sit)
1120    ac_prev=site ;;
1121  -site=* | --site=* | --sit=*)
1122    site=$ac_optarg ;;
1123
1124  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125    ac_prev=srcdir ;;
1126  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127    srcdir=$ac_optarg ;;
1128
1129  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130  | --syscon | --sysco | --sysc | --sys | --sy)
1131    ac_prev=sysconfdir ;;
1132  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134    sysconfdir=$ac_optarg ;;
1135
1136  -target | --target | --targe | --targ | --tar | --ta | --t)
1137    ac_prev=target_alias ;;
1138  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139    target_alias=$ac_optarg ;;
1140
1141  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142    verbose=yes ;;
1143
1144  -version | --version | --versio | --versi | --vers | -V)
1145    ac_init_version=: ;;
1146
1147  -with-* | --with-*)
1148    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149    # Reject names that are not valid shell variable names.
1150    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151      as_fn_error $? "invalid package name: \`$ac_useropt'"
1152    ac_useropt_orig=$ac_useropt
1153    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1154    case $ac_user_opts in
1155      *"
1156"with_$ac_useropt"
1157"*) ;;
1158      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1159	 ac_unrecognized_sep=', ';;
1160    esac
1161    eval with_$ac_useropt=\$ac_optarg ;;
1162
1163  -without-* | --without-*)
1164    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1165    # Reject names that are not valid shell variable names.
1166    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167      as_fn_error $? "invalid package name: \`$ac_useropt'"
1168    ac_useropt_orig=$ac_useropt
1169    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1170    case $ac_user_opts in
1171      *"
1172"with_$ac_useropt"
1173"*) ;;
1174      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1175	 ac_unrecognized_sep=', ';;
1176    esac
1177    eval with_$ac_useropt=no ;;
1178
1179  --x)
1180    # Obsolete; use --with-x.
1181    with_x=yes ;;
1182
1183  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1184  | --x-incl | --x-inc | --x-in | --x-i)
1185    ac_prev=x_includes ;;
1186  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1187  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1188    x_includes=$ac_optarg ;;
1189
1190  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1191  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1192    ac_prev=x_libraries ;;
1193  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1194  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1195    x_libraries=$ac_optarg ;;
1196
1197  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1198Try \`$0 --help' for more information"
1199    ;;
1200
1201  *=*)
1202    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1203    # Reject names that are not valid shell variable names.
1204    case $ac_envvar in #(
1205      '' | [0-9]* | *[!_$as_cr_alnum]* )
1206      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1207    esac
1208    eval $ac_envvar=\$ac_optarg
1209    export $ac_envvar ;;
1210
1211  *)
1212    # FIXME: should be removed in autoconf 3.0.
1213    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1214    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1216    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1217    ;;
1218
1219  esac
1220done
1221
1222if test -n "$ac_prev"; then
1223  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1224  as_fn_error $? "missing argument to $ac_option"
1225fi
1226
1227if test -n "$ac_unrecognized_opts"; then
1228  case $enable_option_checking in
1229    no) ;;
1230    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1231    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1232  esac
1233fi
1234
1235# Check all directory arguments for consistency.
1236for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1237		datadir sysconfdir sharedstatedir localstatedir includedir \
1238		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1239		libdir localedir mandir runstatedir
1240do
1241  eval ac_val=\$$ac_var
1242  # Remove trailing slashes.
1243  case $ac_val in
1244    */ )
1245      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1246      eval $ac_var=\$ac_val;;
1247  esac
1248  # Be sure to have absolute directory names.
1249  case $ac_val in
1250    [\\/$]* | ?:[\\/]* )  continue;;
1251    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1252  esac
1253  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1254done
1255
1256# There might be people who depend on the old broken behavior: `$host'
1257# used to hold the argument of --host etc.
1258# FIXME: To remove some day.
1259build=$build_alias
1260host=$host_alias
1261target=$target_alias
1262
1263# FIXME: To remove some day.
1264if test "x$host_alias" != x; then
1265  if test "x$build_alias" = x; then
1266    cross_compiling=maybe
1267  elif test "x$build_alias" != "x$host_alias"; then
1268    cross_compiling=yes
1269  fi
1270fi
1271
1272ac_tool_prefix=
1273test -n "$host_alias" && ac_tool_prefix=$host_alias-
1274
1275test "$silent" = yes && exec 6>/dev/null
1276
1277
1278ac_pwd=`pwd` && test -n "$ac_pwd" &&
1279ac_ls_di=`ls -di .` &&
1280ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1281  as_fn_error $? "working directory cannot be determined"
1282test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1283  as_fn_error $? "pwd does not report name of working directory"
1284
1285
1286# Find the source files, if location was not specified.
1287if test -z "$srcdir"; then
1288  ac_srcdir_defaulted=yes
1289  # Try the directory containing this script, then the parent directory.
1290  ac_confdir=`$as_dirname -- "$as_myself" ||
1291$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292	 X"$as_myself" : 'X\(//\)[^/]' \| \
1293	 X"$as_myself" : 'X\(//\)$' \| \
1294	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1295printf "%s\n" X"$as_myself" |
1296    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297	    s//\1/
1298	    q
1299	  }
1300	  /^X\(\/\/\)[^/].*/{
1301	    s//\1/
1302	    q
1303	  }
1304	  /^X\(\/\/\)$/{
1305	    s//\1/
1306	    q
1307	  }
1308	  /^X\(\/\).*/{
1309	    s//\1/
1310	    q
1311	  }
1312	  s/.*/./; q'`
1313  srcdir=$ac_confdir
1314  if test ! -r "$srcdir/$ac_unique_file"; then
1315    srcdir=..
1316  fi
1317else
1318  ac_srcdir_defaulted=no
1319fi
1320if test ! -r "$srcdir/$ac_unique_file"; then
1321  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1322  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1323fi
1324ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1325ac_abs_confdir=`(
1326	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1327	pwd)`
1328# When building in place, set srcdir=.
1329if test "$ac_abs_confdir" = "$ac_pwd"; then
1330  srcdir=.
1331fi
1332# Remove unnecessary trailing slashes from srcdir.
1333# Double slashes in file names in object file debugging info
1334# mess up M-x gdb in Emacs.
1335case $srcdir in
1336*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1337esac
1338for ac_var in $ac_precious_vars; do
1339  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1340  eval ac_env_${ac_var}_value=\$${ac_var}
1341  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1342  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1343done
1344
1345#
1346# Report the --help message.
1347#
1348if test "$ac_init_help" = "long"; then
1349  # Omit some internal or obsolete options to make the list less imposing.
1350  # This message is too long to be a string in the A/UX 3.1 sh.
1351  cat <<_ACEOF
1352\`configure' configures encodings 1.0.6 to adapt to many kinds of systems.
1353
1354Usage: $0 [OPTION]... [VAR=VALUE]...
1355
1356To assign environment variables (e.g., CC, CFLAGS...), specify them as
1357VAR=VALUE.  See below for descriptions of some of the useful variables.
1358
1359Defaults for the options are specified in brackets.
1360
1361Configuration:
1362  -h, --help              display this help and exit
1363      --help=short        display options specific to this package
1364      --help=recursive    display the short help of all the included packages
1365  -V, --version           display version information and exit
1366  -q, --quiet, --silent   do not print \`checking ...' messages
1367      --cache-file=FILE   cache test results in FILE [disabled]
1368  -C, --config-cache      alias for \`--cache-file=config.cache'
1369  -n, --no-create         do not create output files
1370      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1371
1372Installation directories:
1373  --prefix=PREFIX         install architecture-independent files in PREFIX
1374                          [$ac_default_prefix]
1375  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1376                          [PREFIX]
1377
1378By default, \`make install' will install all the files in
1379\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1380an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1381for instance \`--prefix=\$HOME'.
1382
1383For better control, use the options below.
1384
1385Fine tuning of the installation directories:
1386  --bindir=DIR            user executables [EPREFIX/bin]
1387  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1388  --libexecdir=DIR        program executables [EPREFIX/libexec]
1389  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1390  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1391  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1392  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1393  --libdir=DIR            object code libraries [EPREFIX/lib]
1394  --includedir=DIR        C header files [PREFIX/include]
1395  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1396  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1397  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1398  --infodir=DIR           info documentation [DATAROOTDIR/info]
1399  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1400  --mandir=DIR            man documentation [DATAROOTDIR/man]
1401  --docdir=DIR            documentation root [DATAROOTDIR/doc/encodings]
1402  --htmldir=DIR           html documentation [DOCDIR]
1403  --dvidir=DIR            dvi documentation [DOCDIR]
1404  --pdfdir=DIR            pdf documentation [DOCDIR]
1405  --psdir=DIR             ps documentation [DOCDIR]
1406_ACEOF
1407
1408  cat <<\_ACEOF
1409
1410Program names:
1411  --program-prefix=PREFIX            prepend PREFIX to installed program names
1412  --program-suffix=SUFFIX            append SUFFIX to installed program names
1413  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1414
1415System types:
1416  --build=BUILD     configure for building on BUILD [guessed]
1417  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1418_ACEOF
1419fi
1420
1421if test -n "$ac_init_help"; then
1422  case $ac_init_help in
1423     short | recursive ) echo "Configuration of encodings 1.0.6:";;
1424   esac
1425  cat <<\_ACEOF
1426
1427Optional Features:
1428  --disable-option-checking  ignore unrecognized --enable/--with options
1429  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1430  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1431  --enable-silent-rules   less verbose build output (undo: "make V=1")
1432  --disable-silent-rules  verbose build output (undo: "make V=0")
1433  --enable-dependency-tracking
1434                          do not reject slow dependency extractors
1435  --disable-dependency-tracking
1436                          speeds up one-time build
1437  --disable-selective-werror
1438                          Turn off selective compiler errors. (default:
1439                          enabled)
1440  --enable-strict-compilation
1441                          Enable all warnings from compiler and make them
1442                          errors (default: disabled)
1443  --disable-gzip-small-encodings
1444                          Disable compression of small encoding files
1445  --disable-gzip-large-encodings
1446                          Disable compression of large encoding files
1447
1448Optional Packages:
1449  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1450  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1451  --with-fontrootdir=DIR  Path to root directory for font files
1452  --with-encodingsdir=DIR Path to encodings files [FONTROOTDIR/encodings]
1453
1454Some influential environment variables:
1455  CC          C compiler command
1456  CFLAGS      C compiler flags
1457  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1458              nonstandard directory <lib dir>
1459  LIBS        libraries to pass to the linker, e.g. -l<library>
1460  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1461              you have headers in a nonstandard directory <include dir>
1462  PKG_CONFIG  path to pkg-config utility
1463  PKG_CONFIG_PATH
1464              directories to add to pkg-config's search path
1465  PKG_CONFIG_LIBDIR
1466              path overriding pkg-config's built-in search path
1467
1468Use these variables to override the choices made by `configure' or to help
1469it to find libraries and programs with nonstandard names/locations.
1470
1471Report bugs to <https://gitlab.freedesktop.org/xorg/font/encodings/issues>.
1472_ACEOF
1473ac_status=$?
1474fi
1475
1476if test "$ac_init_help" = "recursive"; then
1477  # If there are subdirs, report their specific --help.
1478  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1479    test -d "$ac_dir" ||
1480      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1481      continue
1482    ac_builddir=.
1483
1484case "$ac_dir" in
1485.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486*)
1487  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1488  # A ".." for each directory in $ac_dir_suffix.
1489  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1490  case $ac_top_builddir_sub in
1491  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1493  esac ;;
1494esac
1495ac_abs_top_builddir=$ac_pwd
1496ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497# for backward compatibility:
1498ac_top_builddir=$ac_top_build_prefix
1499
1500case $srcdir in
1501  .)  # We are building in place.
1502    ac_srcdir=.
1503    ac_top_srcdir=$ac_top_builddir_sub
1504    ac_abs_top_srcdir=$ac_pwd ;;
1505  [\\/]* | ?:[\\/]* )  # Absolute name.
1506    ac_srcdir=$srcdir$ac_dir_suffix;
1507    ac_top_srcdir=$srcdir
1508    ac_abs_top_srcdir=$srcdir ;;
1509  *) # Relative name.
1510    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511    ac_top_srcdir=$ac_top_build_prefix$srcdir
1512    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1513esac
1514ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1515
1516    cd "$ac_dir" || { ac_status=$?; continue; }
1517    # Check for configure.gnu first; this name is used for a wrapper for
1518    # Metaconfig's "Configure" on case-insensitive file systems.
1519    if test -f "$ac_srcdir/configure.gnu"; then
1520      echo &&
1521      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1522    elif test -f "$ac_srcdir/configure"; then
1523      echo &&
1524      $SHELL "$ac_srcdir/configure" --help=recursive
1525    else
1526      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1527    fi || ac_status=$?
1528    cd "$ac_pwd" || { ac_status=$?; break; }
1529  done
1530fi
1531
1532test -n "$ac_init_help" && exit $ac_status
1533if $ac_init_version; then
1534  cat <<\_ACEOF
1535encodings configure 1.0.6
1536generated by GNU Autoconf 2.71
1537
1538Copyright (C) 2021 Free Software Foundation, Inc.
1539This configure script is free software; the Free Software Foundation
1540gives unlimited permission to copy, distribute and modify it.
1541_ACEOF
1542  exit
1543fi
1544
1545## ------------------------ ##
1546## Autoconf initialization. ##
1547## ------------------------ ##
1548
1549# ac_fn_c_try_compile LINENO
1550# --------------------------
1551# Try to compile conftest.$ac_ext, and return whether this succeeded.
1552ac_fn_c_try_compile ()
1553{
1554  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1555  rm -f conftest.$ac_objext conftest.beam
1556  if { { ac_try="$ac_compile"
1557case "(($ac_try" in
1558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1559  *) ac_try_echo=$ac_try;;
1560esac
1561eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1562printf "%s\n" "$ac_try_echo"; } >&5
1563  (eval "$ac_compile") 2>conftest.err
1564  ac_status=$?
1565  if test -s conftest.err; then
1566    grep -v '^ *+' conftest.err >conftest.er1
1567    cat conftest.er1 >&5
1568    mv -f conftest.er1 conftest.err
1569  fi
1570  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1571  test $ac_status = 0; } && {
1572	 test -z "$ac_c_werror_flag" ||
1573	 test ! -s conftest.err
1574       } && test -s conftest.$ac_objext
1575then :
1576  ac_retval=0
1577else $as_nop
1578  printf "%s\n" "$as_me: failed program was:" >&5
1579sed 's/^/| /' conftest.$ac_ext >&5
1580
1581	ac_retval=1
1582fi
1583  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1584  as_fn_set_status $ac_retval
1585
1586} # ac_fn_c_try_compile
1587
1588# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1589# ------------------------------------------------------------------
1590# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1591# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1592ac_fn_check_decl ()
1593{
1594  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595  as_decl_name=`echo $2|sed 's/ *(.*//'`
1596  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1597printf %s "checking whether $as_decl_name is declared... " >&6; }
1598if eval test \${$3+y}
1599then :
1600  printf %s "(cached) " >&6
1601else $as_nop
1602  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1603  eval ac_save_FLAGS=\$$6
1604  as_fn_append $6 " $5"
1605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1606/* end confdefs.h.  */
1607$4
1608int
1609main (void)
1610{
1611#ifndef $as_decl_name
1612#ifdef __cplusplus
1613  (void) $as_decl_use;
1614#else
1615  (void) $as_decl_name;
1616#endif
1617#endif
1618
1619  ;
1620  return 0;
1621}
1622_ACEOF
1623if ac_fn_c_try_compile "$LINENO"
1624then :
1625  eval "$3=yes"
1626else $as_nop
1627  eval "$3=no"
1628fi
1629rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1630  eval $6=\$ac_save_FLAGS
1631
1632fi
1633eval ac_res=\$$3
1634	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1635printf "%s\n" "$ac_res" >&6; }
1636  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637
1638} # ac_fn_check_decl
1639
1640# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1641# -------------------------------------------------------
1642# Tests whether HEADER exists and can be compiled using the include files in
1643# INCLUDES, setting the cache variable VAR accordingly.
1644ac_fn_c_check_header_compile ()
1645{
1646  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1648printf %s "checking for $2... " >&6; }
1649if eval test \${$3+y}
1650then :
1651  printf %s "(cached) " >&6
1652else $as_nop
1653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1654/* end confdefs.h.  */
1655$4
1656#include <$2>
1657_ACEOF
1658if ac_fn_c_try_compile "$LINENO"
1659then :
1660  eval "$3=yes"
1661else $as_nop
1662  eval "$3=no"
1663fi
1664rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1665fi
1666eval ac_res=\$$3
1667	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1668printf "%s\n" "$ac_res" >&6; }
1669  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670
1671} # ac_fn_c_check_header_compile
1672
1673# ac_fn_c_try_link LINENO
1674# -----------------------
1675# Try to link conftest.$ac_ext, and return whether this succeeded.
1676ac_fn_c_try_link ()
1677{
1678  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1680  if { { ac_try="$ac_link"
1681case "(($ac_try" in
1682  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683  *) ac_try_echo=$ac_try;;
1684esac
1685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686printf "%s\n" "$ac_try_echo"; } >&5
1687  (eval "$ac_link") 2>conftest.err
1688  ac_status=$?
1689  if test -s conftest.err; then
1690    grep -v '^ *+' conftest.err >conftest.er1
1691    cat conftest.er1 >&5
1692    mv -f conftest.er1 conftest.err
1693  fi
1694  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695  test $ac_status = 0; } && {
1696	 test -z "$ac_c_werror_flag" ||
1697	 test ! -s conftest.err
1698       } && test -s conftest$ac_exeext && {
1699	 test "$cross_compiling" = yes ||
1700	 test -x conftest$ac_exeext
1701       }
1702then :
1703  ac_retval=0
1704else $as_nop
1705  printf "%s\n" "$as_me: failed program was:" >&5
1706sed 's/^/| /' conftest.$ac_ext >&5
1707
1708	ac_retval=1
1709fi
1710  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1711  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1712  # interfere with the next link command; also delete a directory that is
1713  # left behind by Apple's compiler.  We do this before executing the actions.
1714  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1715  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716  as_fn_set_status $ac_retval
1717
1718} # ac_fn_c_try_link
1719ac_configure_args_raw=
1720for ac_arg
1721do
1722  case $ac_arg in
1723  *\'*)
1724    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1725  esac
1726  as_fn_append ac_configure_args_raw " '$ac_arg'"
1727done
1728
1729case $ac_configure_args_raw in
1730  *$as_nl*)
1731    ac_safe_unquote= ;;
1732  *)
1733    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1734    ac_unsafe_a="$ac_unsafe_z#~"
1735    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1736    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1737esac
1738
1739cat >config.log <<_ACEOF
1740This file contains any messages produced by compilers while
1741running configure, to aid debugging if configure makes a mistake.
1742
1743It was created by encodings $as_me 1.0.6, which was
1744generated by GNU Autoconf 2.71.  Invocation command line was
1745
1746  $ $0$ac_configure_args_raw
1747
1748_ACEOF
1749exec 5>>config.log
1750{
1751cat <<_ASUNAME
1752## --------- ##
1753## Platform. ##
1754## --------- ##
1755
1756hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1757uname -m = `(uname -m) 2>/dev/null || echo unknown`
1758uname -r = `(uname -r) 2>/dev/null || echo unknown`
1759uname -s = `(uname -s) 2>/dev/null || echo unknown`
1760uname -v = `(uname -v) 2>/dev/null || echo unknown`
1761
1762/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1763/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1764
1765/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1766/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1767/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1768/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1769/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1770/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1771/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1772
1773_ASUNAME
1774
1775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1776for as_dir in $PATH
1777do
1778  IFS=$as_save_IFS
1779  case $as_dir in #(((
1780    '') as_dir=./ ;;
1781    */) ;;
1782    *) as_dir=$as_dir/ ;;
1783  esac
1784    printf "%s\n" "PATH: $as_dir"
1785  done
1786IFS=$as_save_IFS
1787
1788} >&5
1789
1790cat >&5 <<_ACEOF
1791
1792
1793## ----------- ##
1794## Core tests. ##
1795## ----------- ##
1796
1797_ACEOF
1798
1799
1800# Keep a trace of the command line.
1801# Strip out --no-create and --no-recursion so they do not pile up.
1802# Strip out --silent because we don't want to record it for future runs.
1803# Also quote any args containing shell meta-characters.
1804# Make two passes to allow for proper duplicate-argument suppression.
1805ac_configure_args=
1806ac_configure_args0=
1807ac_configure_args1=
1808ac_must_keep_next=false
1809for ac_pass in 1 2
1810do
1811  for ac_arg
1812  do
1813    case $ac_arg in
1814    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1815    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1816    | -silent | --silent | --silen | --sile | --sil)
1817      continue ;;
1818    *\'*)
1819      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1820    esac
1821    case $ac_pass in
1822    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1823    2)
1824      as_fn_append ac_configure_args1 " '$ac_arg'"
1825      if test $ac_must_keep_next = true; then
1826	ac_must_keep_next=false # Got value, back to normal.
1827      else
1828	case $ac_arg in
1829	  *=* | --config-cache | -C | -disable-* | --disable-* \
1830	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1831	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1832	  | -with-* | --with-* | -without-* | --without-* | --x)
1833	    case "$ac_configure_args0 " in
1834	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1835	    esac
1836	    ;;
1837	  -* ) ac_must_keep_next=true ;;
1838	esac
1839      fi
1840      as_fn_append ac_configure_args " '$ac_arg'"
1841      ;;
1842    esac
1843  done
1844done
1845{ ac_configure_args0=; unset ac_configure_args0;}
1846{ ac_configure_args1=; unset ac_configure_args1;}
1847
1848# When interrupted or exit'd, cleanup temporary files, and complete
1849# config.log.  We remove comments because anyway the quotes in there
1850# would cause problems or look ugly.
1851# WARNING: Use '\'' to represent an apostrophe within the trap.
1852# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1853trap 'exit_status=$?
1854  # Sanitize IFS.
1855  IFS=" ""	$as_nl"
1856  # Save into config.log some information that might help in debugging.
1857  {
1858    echo
1859
1860    printf "%s\n" "## ---------------- ##
1861## Cache variables. ##
1862## ---------------- ##"
1863    echo
1864    # The following way of writing the cache mishandles newlines in values,
1865(
1866  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1867    eval ac_val=\$$ac_var
1868    case $ac_val in #(
1869    *${as_nl}*)
1870      case $ac_var in #(
1871      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1872printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1873      esac
1874      case $ac_var in #(
1875      _ | IFS | as_nl) ;; #(
1876      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1877      *) { eval $ac_var=; unset $ac_var;} ;;
1878      esac ;;
1879    esac
1880  done
1881  (set) 2>&1 |
1882    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1883    *${as_nl}ac_space=\ *)
1884      sed -n \
1885	"s/'\''/'\''\\\\'\'''\''/g;
1886	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1887      ;; #(
1888    *)
1889      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1890      ;;
1891    esac |
1892    sort
1893)
1894    echo
1895
1896    printf "%s\n" "## ----------------- ##
1897## Output variables. ##
1898## ----------------- ##"
1899    echo
1900    for ac_var in $ac_subst_vars
1901    do
1902      eval ac_val=\$$ac_var
1903      case $ac_val in
1904      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1905      esac
1906      printf "%s\n" "$ac_var='\''$ac_val'\''"
1907    done | sort
1908    echo
1909
1910    if test -n "$ac_subst_files"; then
1911      printf "%s\n" "## ------------------- ##
1912## File substitutions. ##
1913## ------------------- ##"
1914      echo
1915      for ac_var in $ac_subst_files
1916      do
1917	eval ac_val=\$$ac_var
1918	case $ac_val in
1919	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1920	esac
1921	printf "%s\n" "$ac_var='\''$ac_val'\''"
1922      done | sort
1923      echo
1924    fi
1925
1926    if test -s confdefs.h; then
1927      printf "%s\n" "## ----------- ##
1928## confdefs.h. ##
1929## ----------- ##"
1930      echo
1931      cat confdefs.h
1932      echo
1933    fi
1934    test "$ac_signal" != 0 &&
1935      printf "%s\n" "$as_me: caught signal $ac_signal"
1936    printf "%s\n" "$as_me: exit $exit_status"
1937  } >&5
1938  rm -f core *.core core.conftest.* &&
1939    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1940    exit $exit_status
1941' 0
1942for ac_signal in 1 2 13 15; do
1943  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1944done
1945ac_signal=0
1946
1947# confdefs.h avoids OS command line length limits that DEFS can exceed.
1948rm -f -r conftest* confdefs.h
1949
1950printf "%s\n" "/* confdefs.h */" > confdefs.h
1951
1952# Predefined preprocessor variables.
1953
1954printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1955
1956printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1957
1958printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1959
1960printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1961
1962printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1963
1964printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1965
1966
1967# Let the site file select an alternate cache file if it wants to.
1968# Prefer an explicitly selected file to automatically selected ones.
1969if test -n "$CONFIG_SITE"; then
1970  ac_site_files="$CONFIG_SITE"
1971elif test "x$prefix" != xNONE; then
1972  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1973else
1974  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1975fi
1976
1977for ac_site_file in $ac_site_files
1978do
1979  case $ac_site_file in #(
1980  */*) :
1981     ;; #(
1982  *) :
1983    ac_site_file=./$ac_site_file ;;
1984esac
1985  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1986    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1987printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1988    sed 's/^/| /' "$ac_site_file" >&5
1989    . "$ac_site_file" \
1990      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1991printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1992as_fn_error $? "failed to load site script $ac_site_file
1993See \`config.log' for more details" "$LINENO" 5; }
1994  fi
1995done
1996
1997if test -r "$cache_file"; then
1998  # Some versions of bash will fail to source /dev/null (special files
1999  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2000  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2001    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2002printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2003    case $cache_file in
2004      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2005      *)                      . "./$cache_file";;
2006    esac
2007  fi
2008else
2009  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2010printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2011  >$cache_file
2012fi
2013
2014# Test code for whether the C compiler supports C89 (global declarations)
2015ac_c_conftest_c89_globals='
2016/* Does the compiler advertise C89 conformance?
2017   Do not test the value of __STDC__, because some compilers set it to 0
2018   while being otherwise adequately conformant. */
2019#if !defined __STDC__
2020# error "Compiler does not advertise C89 conformance"
2021#endif
2022
2023#include <stddef.h>
2024#include <stdarg.h>
2025struct stat;
2026/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2027struct buf { int x; };
2028struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2029static char *e (p, i)
2030     char **p;
2031     int i;
2032{
2033  return p[i];
2034}
2035static char *f (char * (*g) (char **, int), char **p, ...)
2036{
2037  char *s;
2038  va_list v;
2039  va_start (v,p);
2040  s = g (p, va_arg (v,int));
2041  va_end (v);
2042  return s;
2043}
2044
2045/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2046   function prototypes and stuff, but not \xHH hex character constants.
2047   These do not provoke an error unfortunately, instead are silently treated
2048   as an "x".  The following induces an error, until -std is added to get
2049   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2050   array size at least.  It is necessary to write \x00 == 0 to get something
2051   that is true only with -std.  */
2052int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2053
2054/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2055   inside strings and character constants.  */
2056#define FOO(x) '\''x'\''
2057int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2058
2059int test (int i, double x);
2060struct s1 {int (*f) (int a);};
2061struct s2 {int (*f) (double a);};
2062int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2063               int, int);'
2064
2065# Test code for whether the C compiler supports C89 (body of main).
2066ac_c_conftest_c89_main='
2067ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2068'
2069
2070# Test code for whether the C compiler supports C99 (global declarations)
2071ac_c_conftest_c99_globals='
2072// Does the compiler advertise C99 conformance?
2073#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2074# error "Compiler does not advertise C99 conformance"
2075#endif
2076
2077#include <stdbool.h>
2078extern int puts (const char *);
2079extern int printf (const char *, ...);
2080extern int dprintf (int, const char *, ...);
2081extern void *malloc (size_t);
2082
2083// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2084// dprintf is used instead of fprintf to avoid needing to declare
2085// FILE and stderr.
2086#define debug(...) dprintf (2, __VA_ARGS__)
2087#define showlist(...) puts (#__VA_ARGS__)
2088#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2089static void
2090test_varargs_macros (void)
2091{
2092  int x = 1234;
2093  int y = 5678;
2094  debug ("Flag");
2095  debug ("X = %d\n", x);
2096  showlist (The first, second, and third items.);
2097  report (x>y, "x is %d but y is %d", x, y);
2098}
2099
2100// Check long long types.
2101#define BIG64 18446744073709551615ull
2102#define BIG32 4294967295ul
2103#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2104#if !BIG_OK
2105  #error "your preprocessor is broken"
2106#endif
2107#if BIG_OK
2108#else
2109  #error "your preprocessor is broken"
2110#endif
2111static long long int bignum = -9223372036854775807LL;
2112static unsigned long long int ubignum = BIG64;
2113
2114struct incomplete_array
2115{
2116  int datasize;
2117  double data[];
2118};
2119
2120struct named_init {
2121  int number;
2122  const wchar_t *name;
2123  double average;
2124};
2125
2126typedef const char *ccp;
2127
2128static inline int
2129test_restrict (ccp restrict text)
2130{
2131  // See if C++-style comments work.
2132  // Iterate through items via the restricted pointer.
2133  // Also check for declarations in for loops.
2134  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2135    continue;
2136  return 0;
2137}
2138
2139// Check varargs and va_copy.
2140static bool
2141test_varargs (const char *format, ...)
2142{
2143  va_list args;
2144  va_start (args, format);
2145  va_list args_copy;
2146  va_copy (args_copy, args);
2147
2148  const char *str = "";
2149  int number = 0;
2150  float fnumber = 0;
2151
2152  while (*format)
2153    {
2154      switch (*format++)
2155	{
2156	case '\''s'\'': // string
2157	  str = va_arg (args_copy, const char *);
2158	  break;
2159	case '\''d'\'': // int
2160	  number = va_arg (args_copy, int);
2161	  break;
2162	case '\''f'\'': // float
2163	  fnumber = va_arg (args_copy, double);
2164	  break;
2165	default:
2166	  break;
2167	}
2168    }
2169  va_end (args_copy);
2170  va_end (args);
2171
2172  return *str && number && fnumber;
2173}
2174'
2175
2176# Test code for whether the C compiler supports C99 (body of main).
2177ac_c_conftest_c99_main='
2178  // Check bool.
2179  _Bool success = false;
2180  success |= (argc != 0);
2181
2182  // Check restrict.
2183  if (test_restrict ("String literal") == 0)
2184    success = true;
2185  char *restrict newvar = "Another string";
2186
2187  // Check varargs.
2188  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2189  test_varargs_macros ();
2190
2191  // Check flexible array members.
2192  struct incomplete_array *ia =
2193    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2194  ia->datasize = 10;
2195  for (int i = 0; i < ia->datasize; ++i)
2196    ia->data[i] = i * 1.234;
2197
2198  // Check named initializers.
2199  struct named_init ni = {
2200    .number = 34,
2201    .name = L"Test wide string",
2202    .average = 543.34343,
2203  };
2204
2205  ni.number = 58;
2206
2207  int dynamic_array[ni.number];
2208  dynamic_array[0] = argv[0][0];
2209  dynamic_array[ni.number - 1] = 543;
2210
2211  // work around unused variable warnings
2212  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2213	 || dynamic_array[ni.number - 1] != 543);
2214'
2215
2216# Test code for whether the C compiler supports C11 (global declarations)
2217ac_c_conftest_c11_globals='
2218// Does the compiler advertise C11 conformance?
2219#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2220# error "Compiler does not advertise C11 conformance"
2221#endif
2222
2223// Check _Alignas.
2224char _Alignas (double) aligned_as_double;
2225char _Alignas (0) no_special_alignment;
2226extern char aligned_as_int;
2227char _Alignas (0) _Alignas (int) aligned_as_int;
2228
2229// Check _Alignof.
2230enum
2231{
2232  int_alignment = _Alignof (int),
2233  int_array_alignment = _Alignof (int[100]),
2234  char_alignment = _Alignof (char)
2235};
2236_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2237
2238// Check _Noreturn.
2239int _Noreturn does_not_return (void) { for (;;) continue; }
2240
2241// Check _Static_assert.
2242struct test_static_assert
2243{
2244  int x;
2245  _Static_assert (sizeof (int) <= sizeof (long int),
2246                  "_Static_assert does not work in struct");
2247  long int y;
2248};
2249
2250// Check UTF-8 literals.
2251#define u8 syntax error!
2252char const utf8_literal[] = u8"happens to be ASCII" "another string";
2253
2254// Check duplicate typedefs.
2255typedef long *long_ptr;
2256typedef long int *long_ptr;
2257typedef long_ptr long_ptr;
2258
2259// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2260struct anonymous
2261{
2262  union {
2263    struct { int i; int j; };
2264    struct { int k; long int l; } w;
2265  };
2266  int m;
2267} v1;
2268'
2269
2270# Test code for whether the C compiler supports C11 (body of main).
2271ac_c_conftest_c11_main='
2272  _Static_assert ((offsetof (struct anonymous, i)
2273		   == offsetof (struct anonymous, w.k)),
2274		  "Anonymous union alignment botch");
2275  v1.i = 2;
2276  v1.w.k = 5;
2277  ok |= v1.i != 5;
2278'
2279
2280# Test code for whether the C compiler supports C11 (complete).
2281ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2282${ac_c_conftest_c99_globals}
2283${ac_c_conftest_c11_globals}
2284
2285int
2286main (int argc, char **argv)
2287{
2288  int ok = 0;
2289  ${ac_c_conftest_c89_main}
2290  ${ac_c_conftest_c99_main}
2291  ${ac_c_conftest_c11_main}
2292  return ok;
2293}
2294"
2295
2296# Test code for whether the C compiler supports C99 (complete).
2297ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2298${ac_c_conftest_c99_globals}
2299
2300int
2301main (int argc, char **argv)
2302{
2303  int ok = 0;
2304  ${ac_c_conftest_c89_main}
2305  ${ac_c_conftest_c99_main}
2306  return ok;
2307}
2308"
2309
2310# Test code for whether the C compiler supports C89 (complete).
2311ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2312
2313int
2314main (int argc, char **argv)
2315{
2316  int ok = 0;
2317  ${ac_c_conftest_c89_main}
2318  return ok;
2319}
2320"
2321
2322as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2323as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2324as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2325as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2326as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2327as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2328as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2329as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2330as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2331
2332# Auxiliary files required by this configure script.
2333ac_aux_files="config.guess config.sub compile missing install-sh"
2334
2335# Locations in which to look for auxiliary files.
2336ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2337
2338# Search for a directory containing all of the required auxiliary files,
2339# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2340# If we don't find one directory that contains all the files we need,
2341# we report the set of missing files from the *first* directory in
2342# $ac_aux_dir_candidates and give up.
2343ac_missing_aux_files=""
2344ac_first_candidate=:
2345printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347as_found=false
2348for as_dir in $ac_aux_dir_candidates
2349do
2350  IFS=$as_save_IFS
2351  case $as_dir in #(((
2352    '') as_dir=./ ;;
2353    */) ;;
2354    *) as_dir=$as_dir/ ;;
2355  esac
2356  as_found=:
2357
2358  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2359  ac_aux_dir_found=yes
2360  ac_install_sh=
2361  for ac_aux in $ac_aux_files
2362  do
2363    # As a special case, if "install-sh" is required, that requirement
2364    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2365    # and $ac_install_sh is set appropriately for whichever one is found.
2366    if test x"$ac_aux" = x"install-sh"
2367    then
2368      if test -f "${as_dir}install-sh"; then
2369        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2370        ac_install_sh="${as_dir}install-sh -c"
2371      elif test -f "${as_dir}install.sh"; then
2372        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2373        ac_install_sh="${as_dir}install.sh -c"
2374      elif test -f "${as_dir}shtool"; then
2375        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2376        ac_install_sh="${as_dir}shtool install -c"
2377      else
2378        ac_aux_dir_found=no
2379        if $ac_first_candidate; then
2380          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2381        else
2382          break
2383        fi
2384      fi
2385    else
2386      if test -f "${as_dir}${ac_aux}"; then
2387        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2388      else
2389        ac_aux_dir_found=no
2390        if $ac_first_candidate; then
2391          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2392        else
2393          break
2394        fi
2395      fi
2396    fi
2397  done
2398  if test "$ac_aux_dir_found" = yes; then
2399    ac_aux_dir="$as_dir"
2400    break
2401  fi
2402  ac_first_candidate=false
2403
2404  as_found=false
2405done
2406IFS=$as_save_IFS
2407if $as_found
2408then :
2409
2410else $as_nop
2411  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2412fi
2413
2414
2415# These three variables are undocumented and unsupported,
2416# and are intended to be withdrawn in a future Autoconf release.
2417# They can cause serious problems if a builder's source tree is in a directory
2418# whose full name contains unusual characters.
2419if test -f "${ac_aux_dir}config.guess"; then
2420  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2421fi
2422if test -f "${ac_aux_dir}config.sub"; then
2423  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2424fi
2425if test -f "$ac_aux_dir/configure"; then
2426  ac_configure="$SHELL ${ac_aux_dir}configure"
2427fi
2428
2429# Check that the precious variables saved in the cache have kept the same
2430# value.
2431ac_cache_corrupted=false
2432for ac_var in $ac_precious_vars; do
2433  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2434  eval ac_new_set=\$ac_env_${ac_var}_set
2435  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2436  eval ac_new_val=\$ac_env_${ac_var}_value
2437  case $ac_old_set,$ac_new_set in
2438    set,)
2439      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2440printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2441      ac_cache_corrupted=: ;;
2442    ,set)
2443      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2444printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2445      ac_cache_corrupted=: ;;
2446    ,);;
2447    *)
2448      if test "x$ac_old_val" != "x$ac_new_val"; then
2449	# differences in whitespace do not lead to failure.
2450	ac_old_val_w=`echo x $ac_old_val`
2451	ac_new_val_w=`echo x $ac_new_val`
2452	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2453	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2454printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2455	  ac_cache_corrupted=:
2456	else
2457	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2458printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2459	  eval $ac_var=\$ac_old_val
2460	fi
2461	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2462printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2463	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2464printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2465      fi;;
2466  esac
2467  # Pass precious variables to config.status.
2468  if test "$ac_new_set" = set; then
2469    case $ac_new_val in
2470    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2471    *) ac_arg=$ac_var=$ac_new_val ;;
2472    esac
2473    case " $ac_configure_args " in
2474      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2475      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2476    esac
2477  fi
2478done
2479if $ac_cache_corrupted; then
2480  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2481printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2482  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2483printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2484  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2485	    and start over" "$LINENO" 5
2486fi
2487## -------------------- ##
2488## Main body of script. ##
2489## -------------------- ##
2490
2491ac_ext=c
2492ac_cpp='$CPP $CPPFLAGS'
2493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2495ac_compiler_gnu=$ac_cv_c_compiler_gnu
2496
2497
2498am__api_version='1.16'
2499
2500
2501
2502  # Find a good install program.  We prefer a C program (faster),
2503# so one script is as good as another.  But avoid the broken or
2504# incompatible versions:
2505# SysV /etc/install, /usr/sbin/install
2506# SunOS /usr/etc/install
2507# IRIX /sbin/install
2508# AIX /bin/install
2509# AmigaOS /C/install, which installs bootblocks on floppy discs
2510# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2511# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2512# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2513# OS/2's system install, which has a completely different semantic
2514# ./install, which can be erroneously created by make from ./install.sh.
2515# Reject install programs that cannot install multiple files.
2516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2517printf %s "checking for a BSD-compatible install... " >&6; }
2518if test -z "$INSTALL"; then
2519if test ${ac_cv_path_install+y}
2520then :
2521  printf %s "(cached) " >&6
2522else $as_nop
2523  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524for as_dir in $PATH
2525do
2526  IFS=$as_save_IFS
2527  case $as_dir in #(((
2528    '') as_dir=./ ;;
2529    */) ;;
2530    *) as_dir=$as_dir/ ;;
2531  esac
2532    # Account for fact that we put trailing slashes in our PATH walk.
2533case $as_dir in #((
2534  ./ | /[cC]/* | \
2535  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2536  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2537  /usr/ucb/* ) ;;
2538  *)
2539    # OSF1 and SCO ODT 3.0 have their own names for install.
2540    # Don't use installbsd from OSF since it installs stuff as root
2541    # by default.
2542    for ac_prog in ginstall scoinst install; do
2543      for ac_exec_ext in '' $ac_executable_extensions; do
2544	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2545	  if test $ac_prog = install &&
2546	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2547	    # AIX install.  It has an incompatible calling convention.
2548	    :
2549	  elif test $ac_prog = install &&
2550	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2551	    # program-specific install script used by HP pwplus--don't use.
2552	    :
2553	  else
2554	    rm -rf conftest.one conftest.two conftest.dir
2555	    echo one > conftest.one
2556	    echo two > conftest.two
2557	    mkdir conftest.dir
2558	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2559	      test -s conftest.one && test -s conftest.two &&
2560	      test -s conftest.dir/conftest.one &&
2561	      test -s conftest.dir/conftest.two
2562	    then
2563	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2564	      break 3
2565	    fi
2566	  fi
2567	fi
2568      done
2569    done
2570    ;;
2571esac
2572
2573  done
2574IFS=$as_save_IFS
2575
2576rm -rf conftest.one conftest.two conftest.dir
2577
2578fi
2579  if test ${ac_cv_path_install+y}; then
2580    INSTALL=$ac_cv_path_install
2581  else
2582    # As a last resort, use the slow shell script.  Don't cache a
2583    # value for INSTALL within a source directory, because that will
2584    # break other packages using the cache if that directory is
2585    # removed, or if the value is a relative name.
2586    INSTALL=$ac_install_sh
2587  fi
2588fi
2589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2590printf "%s\n" "$INSTALL" >&6; }
2591
2592# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2593# It thinks the first close brace ends the variable substitution.
2594test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2595
2596test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2597
2598test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2599
2600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2601printf %s "checking whether build environment is sane... " >&6; }
2602# Reject unsafe characters in $srcdir or the absolute working directory
2603# name.  Accept space and tab only in the latter.
2604am_lf='
2605'
2606case `pwd` in
2607  *[\\\"\#\$\&\'\`$am_lf]*)
2608    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2609esac
2610case $srcdir in
2611  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2612    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2613esac
2614
2615# Do 'set' in a subshell so we don't clobber the current shell's
2616# arguments.  Must try -L first in case configure is actually a
2617# symlink; some systems play weird games with the mod time of symlinks
2618# (eg FreeBSD returns the mod time of the symlink's containing
2619# directory).
2620if (
2621   am_has_slept=no
2622   for am_try in 1 2; do
2623     echo "timestamp, slept: $am_has_slept" > conftest.file
2624     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2625     if test "$*" = "X"; then
2626	# -L didn't work.
2627	set X `ls -t "$srcdir/configure" conftest.file`
2628     fi
2629     if test "$*" != "X $srcdir/configure conftest.file" \
2630	&& test "$*" != "X conftest.file $srcdir/configure"; then
2631
2632	# If neither matched, then we have a broken ls.  This can happen
2633	# if, for instance, CONFIG_SHELL is bash and it inherits a
2634	# broken ls alias from the environment.  This has actually
2635	# happened.  Such a system could not be considered "sane".
2636	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2637  alias in your environment" "$LINENO" 5
2638     fi
2639     if test "$2" = conftest.file || test $am_try -eq 2; then
2640       break
2641     fi
2642     # Just in case.
2643     sleep 1
2644     am_has_slept=yes
2645   done
2646   test "$2" = conftest.file
2647   )
2648then
2649   # Ok.
2650   :
2651else
2652   as_fn_error $? "newly created file is older than distributed files!
2653Check your system clock" "$LINENO" 5
2654fi
2655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2656printf "%s\n" "yes" >&6; }
2657# If we didn't sleep, we still need to ensure time stamps of config.status and
2658# generated files are strictly newer.
2659am_sleep_pid=
2660if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2661  ( sleep 1 ) &
2662  am_sleep_pid=$!
2663fi
2664
2665rm -f conftest.file
2666
2667test "$program_prefix" != NONE &&
2668  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2669# Use a double $ so make ignores it.
2670test "$program_suffix" != NONE &&
2671  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2672# Double any \ or $.
2673# By default was `s,x,x', remove it if useless.
2674ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2675program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2676
2677
2678# Expand $ac_aux_dir to an absolute path.
2679am_aux_dir=`cd "$ac_aux_dir" && pwd`
2680
2681
2682  if test x"${MISSING+set}" != xset; then
2683  MISSING="\${SHELL} '$am_aux_dir/missing'"
2684fi
2685# Use eval to expand $SHELL
2686if eval "$MISSING --is-lightweight"; then
2687  am_missing_run="$MISSING "
2688else
2689  am_missing_run=
2690  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2691printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2692fi
2693
2694if test x"${install_sh+set}" != xset; then
2695  case $am_aux_dir in
2696  *\ * | *\	*)
2697    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2698  *)
2699    install_sh="\${SHELL} $am_aux_dir/install-sh"
2700  esac
2701fi
2702
2703# Installed binaries are usually stripped using 'strip' when the user
2704# run "make install-strip".  However 'strip' might not be the right
2705# tool to use in cross-compilation environments, therefore Automake
2706# will honor the 'STRIP' environment variable to overrule this program.
2707if test "$cross_compiling" != no; then
2708  if test -n "$ac_tool_prefix"; then
2709  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2710set dummy ${ac_tool_prefix}strip; ac_word=$2
2711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2712printf %s "checking for $ac_word... " >&6; }
2713if test ${ac_cv_prog_STRIP+y}
2714then :
2715  printf %s "(cached) " >&6
2716else $as_nop
2717  if test -n "$STRIP"; then
2718  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2719else
2720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721for as_dir in $PATH
2722do
2723  IFS=$as_save_IFS
2724  case $as_dir in #(((
2725    '') as_dir=./ ;;
2726    */) ;;
2727    *) as_dir=$as_dir/ ;;
2728  esac
2729    for ac_exec_ext in '' $ac_executable_extensions; do
2730  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2731    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2732    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2733    break 2
2734  fi
2735done
2736  done
2737IFS=$as_save_IFS
2738
2739fi
2740fi
2741STRIP=$ac_cv_prog_STRIP
2742if test -n "$STRIP"; then
2743  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2744printf "%s\n" "$STRIP" >&6; }
2745else
2746  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2747printf "%s\n" "no" >&6; }
2748fi
2749
2750
2751fi
2752if test -z "$ac_cv_prog_STRIP"; then
2753  ac_ct_STRIP=$STRIP
2754  # Extract the first word of "strip", so it can be a program name with args.
2755set dummy strip; ac_word=$2
2756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2757printf %s "checking for $ac_word... " >&6; }
2758if test ${ac_cv_prog_ac_ct_STRIP+y}
2759then :
2760  printf %s "(cached) " >&6
2761else $as_nop
2762  if test -n "$ac_ct_STRIP"; then
2763  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2764else
2765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766for as_dir in $PATH
2767do
2768  IFS=$as_save_IFS
2769  case $as_dir in #(((
2770    '') as_dir=./ ;;
2771    */) ;;
2772    *) as_dir=$as_dir/ ;;
2773  esac
2774    for ac_exec_ext in '' $ac_executable_extensions; do
2775  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2776    ac_cv_prog_ac_ct_STRIP="strip"
2777    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2778    break 2
2779  fi
2780done
2781  done
2782IFS=$as_save_IFS
2783
2784fi
2785fi
2786ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2787if test -n "$ac_ct_STRIP"; then
2788  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2789printf "%s\n" "$ac_ct_STRIP" >&6; }
2790else
2791  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2792printf "%s\n" "no" >&6; }
2793fi
2794
2795  if test "x$ac_ct_STRIP" = x; then
2796    STRIP=":"
2797  else
2798    case $cross_compiling:$ac_tool_warned in
2799yes:)
2800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2801printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2802ac_tool_warned=yes ;;
2803esac
2804    STRIP=$ac_ct_STRIP
2805  fi
2806else
2807  STRIP="$ac_cv_prog_STRIP"
2808fi
2809
2810fi
2811INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2812
2813
2814  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2815printf %s "checking for a race-free mkdir -p... " >&6; }
2816if test -z "$MKDIR_P"; then
2817  if test ${ac_cv_path_mkdir+y}
2818then :
2819  printf %s "(cached) " >&6
2820else $as_nop
2821  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2823do
2824  IFS=$as_save_IFS
2825  case $as_dir in #(((
2826    '') as_dir=./ ;;
2827    */) ;;
2828    *) as_dir=$as_dir/ ;;
2829  esac
2830    for ac_prog in mkdir gmkdir; do
2831	 for ac_exec_ext in '' $ac_executable_extensions; do
2832	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2833	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2834	     'mkdir ('*'coreutils) '* | \
2835	     'BusyBox '* | \
2836	     'mkdir (fileutils) '4.1*)
2837	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2838	       break 3;;
2839	   esac
2840	 done
2841       done
2842  done
2843IFS=$as_save_IFS
2844
2845fi
2846
2847  test -d ./--version && rmdir ./--version
2848  if test ${ac_cv_path_mkdir+y}; then
2849    MKDIR_P="$ac_cv_path_mkdir -p"
2850  else
2851    # As a last resort, use the slow shell script.  Don't cache a
2852    # value for MKDIR_P within a source directory, because that will
2853    # break other packages using the cache if that directory is
2854    # removed, or if the value is a relative name.
2855    MKDIR_P="$ac_install_sh -d"
2856  fi
2857fi
2858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2859printf "%s\n" "$MKDIR_P" >&6; }
2860
2861for ac_prog in gawk mawk nawk awk
2862do
2863  # Extract the first word of "$ac_prog", so it can be a program name with args.
2864set dummy $ac_prog; ac_word=$2
2865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2866printf %s "checking for $ac_word... " >&6; }
2867if test ${ac_cv_prog_AWK+y}
2868then :
2869  printf %s "(cached) " >&6
2870else $as_nop
2871  if test -n "$AWK"; then
2872  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2873else
2874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875for as_dir in $PATH
2876do
2877  IFS=$as_save_IFS
2878  case $as_dir in #(((
2879    '') as_dir=./ ;;
2880    */) ;;
2881    *) as_dir=$as_dir/ ;;
2882  esac
2883    for ac_exec_ext in '' $ac_executable_extensions; do
2884  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2885    ac_cv_prog_AWK="$ac_prog"
2886    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2887    break 2
2888  fi
2889done
2890  done
2891IFS=$as_save_IFS
2892
2893fi
2894fi
2895AWK=$ac_cv_prog_AWK
2896if test -n "$AWK"; then
2897  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2898printf "%s\n" "$AWK" >&6; }
2899else
2900  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901printf "%s\n" "no" >&6; }
2902fi
2903
2904
2905  test -n "$AWK" && break
2906done
2907
2908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2909printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2910set x ${MAKE-make}
2911ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2912if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2913then :
2914  printf %s "(cached) " >&6
2915else $as_nop
2916  cat >conftest.make <<\_ACEOF
2917SHELL = /bin/sh
2918all:
2919	@echo '@@@%%%=$(MAKE)=@@@%%%'
2920_ACEOF
2921# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2922case `${MAKE-make} -f conftest.make 2>/dev/null` in
2923  *@@@%%%=?*=@@@%%%*)
2924    eval ac_cv_prog_make_${ac_make}_set=yes;;
2925  *)
2926    eval ac_cv_prog_make_${ac_make}_set=no;;
2927esac
2928rm -f conftest.make
2929fi
2930if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2931  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2932printf "%s\n" "yes" >&6; }
2933  SET_MAKE=
2934else
2935  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936printf "%s\n" "no" >&6; }
2937  SET_MAKE="MAKE=${MAKE-make}"
2938fi
2939
2940rm -rf .tst 2>/dev/null
2941mkdir .tst 2>/dev/null
2942if test -d .tst; then
2943  am__leading_dot=.
2944else
2945  am__leading_dot=_
2946fi
2947rmdir .tst 2>/dev/null
2948
2949# Check whether --enable-silent-rules was given.
2950if test ${enable_silent_rules+y}
2951then :
2952  enableval=$enable_silent_rules;
2953fi
2954
2955case $enable_silent_rules in # (((
2956  yes) AM_DEFAULT_VERBOSITY=0;;
2957   no) AM_DEFAULT_VERBOSITY=1;;
2958    *) AM_DEFAULT_VERBOSITY=1;;
2959esac
2960am_make=${MAKE-make}
2961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2962printf %s "checking whether $am_make supports nested variables... " >&6; }
2963if test ${am_cv_make_support_nested_variables+y}
2964then :
2965  printf %s "(cached) " >&6
2966else $as_nop
2967  if printf "%s\n" 'TRUE=$(BAR$(V))
2968BAR0=false
2969BAR1=true
2970V=1
2971am__doit:
2972	@$(TRUE)
2973.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2974  am_cv_make_support_nested_variables=yes
2975else
2976  am_cv_make_support_nested_variables=no
2977fi
2978fi
2979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2980printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
2981if test $am_cv_make_support_nested_variables = yes; then
2982    AM_V='$(V)'
2983  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2984else
2985  AM_V=$AM_DEFAULT_VERBOSITY
2986  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2987fi
2988AM_BACKSLASH='\'
2989
2990if test "`cd $srcdir && pwd`" != "`pwd`"; then
2991  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2992  # is not polluted with repeated "-I."
2993  am__isrc=' -I$(srcdir)'
2994  # test to see if srcdir already configured
2995  if test -f $srcdir/config.status; then
2996    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2997  fi
2998fi
2999
3000# test whether we have cygpath
3001if test -z "$CYGPATH_W"; then
3002  if (cygpath --version) >/dev/null 2>/dev/null; then
3003    CYGPATH_W='cygpath -w'
3004  else
3005    CYGPATH_W=echo
3006  fi
3007fi
3008
3009
3010# Define the identity of the package.
3011 PACKAGE='encodings'
3012 VERSION='1.0.6'
3013
3014
3015printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3016
3017
3018printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3019
3020# Some tools Automake needs.
3021
3022ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3023
3024
3025AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3026
3027
3028AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3029
3030
3031AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3032
3033
3034MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3035
3036# For better backward compatibility.  To be removed once Automake 1.9.x
3037# dies out for good.  For more background, see:
3038# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3039# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3040mkdir_p='$(MKDIR_P)'
3041
3042# We need awk for the "check" target (and possibly the TAP driver).  The
3043# system "awk" is bad on some platforms.
3044# Always define AMTAR for backward compatibility.  Yes, it's still used
3045# in the wild :-(  We should find a proper way to deprecate it ...
3046AMTAR='$${TAR-tar}'
3047
3048
3049# We'll loop over all known methods to create a tar archive until one works.
3050_am_tools='gnutar  pax cpio none'
3051
3052am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3053
3054
3055
3056
3057
3058# Variables for tags utilities; see am/tags.am
3059if test -z "$CTAGS"; then
3060  CTAGS=ctags
3061fi
3062
3063if test -z "$ETAGS"; then
3064  ETAGS=etags
3065fi
3066
3067if test -z "$CSCOPE"; then
3068  CSCOPE=cscope
3069fi
3070
3071
3072
3073# POSIX will say in a future version that running "rm -f" with no argument
3074# is OK; and we want to be able to make that assumption in our Makefile
3075# recipes.  So use an aggressive probe to check that the usage we want is
3076# actually supported "in the wild" to an acceptable degree.
3077# See automake bug#10828.
3078# To make any issue more visible, cause the running configure to be aborted
3079# by default if the 'rm' program in use doesn't match our expectations; the
3080# user can still override this though.
3081if rm -f && rm -fr && rm -rf; then : OK; else
3082  cat >&2 <<'END'
3083Oops!
3084
3085Your 'rm' program seems unable to run without file operands specified
3086on the command line, even when the '-f' option is present.  This is contrary
3087to the behaviour of most rm programs out there, and not conforming with
3088the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3089
3090Please tell bug-automake@gnu.org about your system, including the value
3091of your $PATH and any error possibly output before this message.  This
3092can help us improve future automake versions.
3093
3094END
3095  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3096    echo 'Configuration will proceed anyway, since you have set the' >&2
3097    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3098    echo >&2
3099  else
3100    cat >&2 <<'END'
3101Aborting the configuration process, to ensure you take notice of the issue.
3102
3103You can download and install GNU coreutils to get an 'rm' implementation
3104that behaves properly: <https://www.gnu.org/software/coreutils/>.
3105
3106If you want to complete the configuration process using your problematic
3107'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3108to "yes", and re-run configure.
3109
3110END
3111    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3112  fi
3113fi
3114
3115
3116# Require xorg-macros: XORG_DEFAULT_OPTIONS
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137DEPDIR="${am__leading_dot}deps"
3138
3139ac_config_commands="$ac_config_commands depfiles"
3140
3141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3142printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3143cat > confinc.mk << 'END'
3144am__doit:
3145	@echo this is the am__doit target >confinc.out
3146.PHONY: am__doit
3147END
3148am__include="#"
3149am__quote=
3150# BSD make does it like this.
3151echo '.include "confinc.mk" # ignored' > confmf.BSD
3152# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3153echo 'include confinc.mk # ignored' > confmf.GNU
3154_am_result=no
3155for s in GNU BSD; do
3156  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3157   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3158   ac_status=$?
3159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160   (exit $ac_status); }
3161  case $?:`cat confinc.out 2>/dev/null` in #(
3162  '0:this is the am__doit target') :
3163    case $s in #(
3164  BSD) :
3165    am__include='.include' am__quote='"' ;; #(
3166  *) :
3167    am__include='include' am__quote='' ;;
3168esac ;; #(
3169  *) :
3170     ;;
3171esac
3172  if test "$am__include" != "#"; then
3173    _am_result="yes ($s style)"
3174    break
3175  fi
3176done
3177rm -f confinc.* confmf.*
3178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3179printf "%s\n" "${_am_result}" >&6; }
3180
3181# Check whether --enable-dependency-tracking was given.
3182if test ${enable_dependency_tracking+y}
3183then :
3184  enableval=$enable_dependency_tracking;
3185fi
3186
3187if test "x$enable_dependency_tracking" != xno; then
3188  am_depcomp="$ac_aux_dir/depcomp"
3189  AMDEPBACKSLASH='\'
3190  am__nodep='_no'
3191fi
3192 if test "x$enable_dependency_tracking" != xno; then
3193  AMDEP_TRUE=
3194  AMDEP_FALSE='#'
3195else
3196  AMDEP_TRUE='#'
3197  AMDEP_FALSE=
3198fi
3199
3200
3201ac_ext=c
3202ac_cpp='$CPP $CPPFLAGS'
3203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3205ac_compiler_gnu=$ac_cv_c_compiler_gnu
3206if test -n "$ac_tool_prefix"; then
3207  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3208set dummy ${ac_tool_prefix}gcc; ac_word=$2
3209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210printf %s "checking for $ac_word... " >&6; }
3211if test ${ac_cv_prog_CC+y}
3212then :
3213  printf %s "(cached) " >&6
3214else $as_nop
3215  if test -n "$CC"; then
3216  ac_cv_prog_CC="$CC" # Let the user override the test.
3217else
3218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219for as_dir in $PATH
3220do
3221  IFS=$as_save_IFS
3222  case $as_dir in #(((
3223    '') as_dir=./ ;;
3224    */) ;;
3225    *) as_dir=$as_dir/ ;;
3226  esac
3227    for ac_exec_ext in '' $ac_executable_extensions; do
3228  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3229    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3230    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3231    break 2
3232  fi
3233done
3234  done
3235IFS=$as_save_IFS
3236
3237fi
3238fi
3239CC=$ac_cv_prog_CC
3240if test -n "$CC"; then
3241  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3242printf "%s\n" "$CC" >&6; }
3243else
3244  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245printf "%s\n" "no" >&6; }
3246fi
3247
3248
3249fi
3250if test -z "$ac_cv_prog_CC"; then
3251  ac_ct_CC=$CC
3252  # Extract the first word of "gcc", so it can be a program name with args.
3253set dummy gcc; ac_word=$2
3254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3255printf %s "checking for $ac_word... " >&6; }
3256if test ${ac_cv_prog_ac_ct_CC+y}
3257then :
3258  printf %s "(cached) " >&6
3259else $as_nop
3260  if test -n "$ac_ct_CC"; then
3261  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3262else
3263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264for as_dir in $PATH
3265do
3266  IFS=$as_save_IFS
3267  case $as_dir in #(((
3268    '') as_dir=./ ;;
3269    */) ;;
3270    *) as_dir=$as_dir/ ;;
3271  esac
3272    for ac_exec_ext in '' $ac_executable_extensions; do
3273  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3274    ac_cv_prog_ac_ct_CC="gcc"
3275    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3276    break 2
3277  fi
3278done
3279  done
3280IFS=$as_save_IFS
3281
3282fi
3283fi
3284ac_ct_CC=$ac_cv_prog_ac_ct_CC
3285if test -n "$ac_ct_CC"; then
3286  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3287printf "%s\n" "$ac_ct_CC" >&6; }
3288else
3289  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290printf "%s\n" "no" >&6; }
3291fi
3292
3293  if test "x$ac_ct_CC" = x; then
3294    CC=""
3295  else
3296    case $cross_compiling:$ac_tool_warned in
3297yes:)
3298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3299printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3300ac_tool_warned=yes ;;
3301esac
3302    CC=$ac_ct_CC
3303  fi
3304else
3305  CC="$ac_cv_prog_CC"
3306fi
3307
3308if test -z "$CC"; then
3309          if test -n "$ac_tool_prefix"; then
3310    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3311set dummy ${ac_tool_prefix}cc; ac_word=$2
3312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3313printf %s "checking for $ac_word... " >&6; }
3314if test ${ac_cv_prog_CC+y}
3315then :
3316  printf %s "(cached) " >&6
3317else $as_nop
3318  if test -n "$CC"; then
3319  ac_cv_prog_CC="$CC" # Let the user override the test.
3320else
3321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322for as_dir in $PATH
3323do
3324  IFS=$as_save_IFS
3325  case $as_dir in #(((
3326    '') as_dir=./ ;;
3327    */) ;;
3328    *) as_dir=$as_dir/ ;;
3329  esac
3330    for ac_exec_ext in '' $ac_executable_extensions; do
3331  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3332    ac_cv_prog_CC="${ac_tool_prefix}cc"
3333    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3334    break 2
3335  fi
3336done
3337  done
3338IFS=$as_save_IFS
3339
3340fi
3341fi
3342CC=$ac_cv_prog_CC
3343if test -n "$CC"; then
3344  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3345printf "%s\n" "$CC" >&6; }
3346else
3347  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348printf "%s\n" "no" >&6; }
3349fi
3350
3351
3352  fi
3353fi
3354if test -z "$CC"; then
3355  # Extract the first word of "cc", so it can be a program name with args.
3356set dummy cc; ac_word=$2
3357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3358printf %s "checking for $ac_word... " >&6; }
3359if test ${ac_cv_prog_CC+y}
3360then :
3361  printf %s "(cached) " >&6
3362else $as_nop
3363  if test -n "$CC"; then
3364  ac_cv_prog_CC="$CC" # Let the user override the test.
3365else
3366  ac_prog_rejected=no
3367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368for as_dir in $PATH
3369do
3370  IFS=$as_save_IFS
3371  case $as_dir in #(((
3372    '') as_dir=./ ;;
3373    */) ;;
3374    *) as_dir=$as_dir/ ;;
3375  esac
3376    for ac_exec_ext in '' $ac_executable_extensions; do
3377  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3378    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3379       ac_prog_rejected=yes
3380       continue
3381     fi
3382    ac_cv_prog_CC="cc"
3383    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3384    break 2
3385  fi
3386done
3387  done
3388IFS=$as_save_IFS
3389
3390if test $ac_prog_rejected = yes; then
3391  # We found a bogon in the path, so make sure we never use it.
3392  set dummy $ac_cv_prog_CC
3393  shift
3394  if test $# != 0; then
3395    # We chose a different compiler from the bogus one.
3396    # However, it has the same basename, so the bogon will be chosen
3397    # first if we set CC to just the basename; use the full file name.
3398    shift
3399    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3400  fi
3401fi
3402fi
3403fi
3404CC=$ac_cv_prog_CC
3405if test -n "$CC"; then
3406  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3407printf "%s\n" "$CC" >&6; }
3408else
3409  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3410printf "%s\n" "no" >&6; }
3411fi
3412
3413
3414fi
3415if test -z "$CC"; then
3416  if test -n "$ac_tool_prefix"; then
3417  for ac_prog in cl.exe
3418  do
3419    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3420set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3422printf %s "checking for $ac_word... " >&6; }
3423if test ${ac_cv_prog_CC+y}
3424then :
3425  printf %s "(cached) " >&6
3426else $as_nop
3427  if test -n "$CC"; then
3428  ac_cv_prog_CC="$CC" # Let the user override the test.
3429else
3430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431for as_dir in $PATH
3432do
3433  IFS=$as_save_IFS
3434  case $as_dir in #(((
3435    '') as_dir=./ ;;
3436    */) ;;
3437    *) as_dir=$as_dir/ ;;
3438  esac
3439    for ac_exec_ext in '' $ac_executable_extensions; do
3440  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3441    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3442    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3443    break 2
3444  fi
3445done
3446  done
3447IFS=$as_save_IFS
3448
3449fi
3450fi
3451CC=$ac_cv_prog_CC
3452if test -n "$CC"; then
3453  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3454printf "%s\n" "$CC" >&6; }
3455else
3456  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3457printf "%s\n" "no" >&6; }
3458fi
3459
3460
3461    test -n "$CC" && break
3462  done
3463fi
3464if test -z "$CC"; then
3465  ac_ct_CC=$CC
3466  for ac_prog in cl.exe
3467do
3468  # Extract the first word of "$ac_prog", so it can be a program name with args.
3469set dummy $ac_prog; ac_word=$2
3470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3471printf %s "checking for $ac_word... " >&6; }
3472if test ${ac_cv_prog_ac_ct_CC+y}
3473then :
3474  printf %s "(cached) " >&6
3475else $as_nop
3476  if test -n "$ac_ct_CC"; then
3477  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3478else
3479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480for as_dir in $PATH
3481do
3482  IFS=$as_save_IFS
3483  case $as_dir in #(((
3484    '') as_dir=./ ;;
3485    */) ;;
3486    *) as_dir=$as_dir/ ;;
3487  esac
3488    for ac_exec_ext in '' $ac_executable_extensions; do
3489  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3490    ac_cv_prog_ac_ct_CC="$ac_prog"
3491    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3492    break 2
3493  fi
3494done
3495  done
3496IFS=$as_save_IFS
3497
3498fi
3499fi
3500ac_ct_CC=$ac_cv_prog_ac_ct_CC
3501if test -n "$ac_ct_CC"; then
3502  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3503printf "%s\n" "$ac_ct_CC" >&6; }
3504else
3505  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506printf "%s\n" "no" >&6; }
3507fi
3508
3509
3510  test -n "$ac_ct_CC" && break
3511done
3512
3513  if test "x$ac_ct_CC" = x; then
3514    CC=""
3515  else
3516    case $cross_compiling:$ac_tool_warned in
3517yes:)
3518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3519printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3520ac_tool_warned=yes ;;
3521esac
3522    CC=$ac_ct_CC
3523  fi
3524fi
3525
3526fi
3527if test -z "$CC"; then
3528  if test -n "$ac_tool_prefix"; then
3529  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3530set dummy ${ac_tool_prefix}clang; ac_word=$2
3531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3532printf %s "checking for $ac_word... " >&6; }
3533if test ${ac_cv_prog_CC+y}
3534then :
3535  printf %s "(cached) " >&6
3536else $as_nop
3537  if test -n "$CC"; then
3538  ac_cv_prog_CC="$CC" # Let the user override the test.
3539else
3540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541for as_dir in $PATH
3542do
3543  IFS=$as_save_IFS
3544  case $as_dir in #(((
3545    '') as_dir=./ ;;
3546    */) ;;
3547    *) as_dir=$as_dir/ ;;
3548  esac
3549    for ac_exec_ext in '' $ac_executable_extensions; do
3550  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3551    ac_cv_prog_CC="${ac_tool_prefix}clang"
3552    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3553    break 2
3554  fi
3555done
3556  done
3557IFS=$as_save_IFS
3558
3559fi
3560fi
3561CC=$ac_cv_prog_CC
3562if test -n "$CC"; then
3563  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3564printf "%s\n" "$CC" >&6; }
3565else
3566  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567printf "%s\n" "no" >&6; }
3568fi
3569
3570
3571fi
3572if test -z "$ac_cv_prog_CC"; then
3573  ac_ct_CC=$CC
3574  # Extract the first word of "clang", so it can be a program name with args.
3575set dummy clang; ac_word=$2
3576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3577printf %s "checking for $ac_word... " >&6; }
3578if test ${ac_cv_prog_ac_ct_CC+y}
3579then :
3580  printf %s "(cached) " >&6
3581else $as_nop
3582  if test -n "$ac_ct_CC"; then
3583  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3584else
3585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586for as_dir in $PATH
3587do
3588  IFS=$as_save_IFS
3589  case $as_dir in #(((
3590    '') as_dir=./ ;;
3591    */) ;;
3592    *) as_dir=$as_dir/ ;;
3593  esac
3594    for ac_exec_ext in '' $ac_executable_extensions; do
3595  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3596    ac_cv_prog_ac_ct_CC="clang"
3597    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3598    break 2
3599  fi
3600done
3601  done
3602IFS=$as_save_IFS
3603
3604fi
3605fi
3606ac_ct_CC=$ac_cv_prog_ac_ct_CC
3607if test -n "$ac_ct_CC"; then
3608  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3609printf "%s\n" "$ac_ct_CC" >&6; }
3610else
3611  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3612printf "%s\n" "no" >&6; }
3613fi
3614
3615  if test "x$ac_ct_CC" = x; then
3616    CC=""
3617  else
3618    case $cross_compiling:$ac_tool_warned in
3619yes:)
3620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3621printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3622ac_tool_warned=yes ;;
3623esac
3624    CC=$ac_ct_CC
3625  fi
3626else
3627  CC="$ac_cv_prog_CC"
3628fi
3629
3630fi
3631
3632
3633test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3634printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3635as_fn_error $? "no acceptable C compiler found in \$PATH
3636See \`config.log' for more details" "$LINENO" 5; }
3637
3638# Provide some information about the compiler.
3639printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3640set X $ac_compile
3641ac_compiler=$2
3642for ac_option in --version -v -V -qversion -version; do
3643  { { ac_try="$ac_compiler $ac_option >&5"
3644case "(($ac_try" in
3645  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3646  *) ac_try_echo=$ac_try;;
3647esac
3648eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3649printf "%s\n" "$ac_try_echo"; } >&5
3650  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3651  ac_status=$?
3652  if test -s conftest.err; then
3653    sed '10a\
3654... rest of stderr output deleted ...
3655         10q' conftest.err >conftest.er1
3656    cat conftest.er1 >&5
3657  fi
3658  rm -f conftest.er1 conftest.err
3659  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3660  test $ac_status = 0; }
3661done
3662
3663cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664/* end confdefs.h.  */
3665
3666int
3667main (void)
3668{
3669
3670  ;
3671  return 0;
3672}
3673_ACEOF
3674ac_clean_files_save=$ac_clean_files
3675ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3676# Try to create an executable without -o first, disregard a.out.
3677# It will help us diagnose broken compilers, and finding out an intuition
3678# of exeext.
3679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3680printf %s "checking whether the C compiler works... " >&6; }
3681ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3682
3683# The possible output files:
3684ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3685
3686ac_rmfiles=
3687for ac_file in $ac_files
3688do
3689  case $ac_file in
3690    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3691    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3692  esac
3693done
3694rm -f $ac_rmfiles
3695
3696if { { ac_try="$ac_link_default"
3697case "(($ac_try" in
3698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699  *) ac_try_echo=$ac_try;;
3700esac
3701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3702printf "%s\n" "$ac_try_echo"; } >&5
3703  (eval "$ac_link_default") 2>&5
3704  ac_status=$?
3705  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3706  test $ac_status = 0; }
3707then :
3708  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3709# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3710# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3711# so that the user can short-circuit this test for compilers unknown to
3712# Autoconf.
3713for ac_file in $ac_files ''
3714do
3715  test -f "$ac_file" || continue
3716  case $ac_file in
3717    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3718	;;
3719    [ab].out )
3720	# We found the default executable, but exeext='' is most
3721	# certainly right.
3722	break;;
3723    *.* )
3724	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3725	then :; else
3726	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3727	fi
3728	# We set ac_cv_exeext here because the later test for it is not
3729	# safe: cross compilers may not add the suffix if given an `-o'
3730	# argument, so we may need to know it at that point already.
3731	# Even if this section looks crufty: it has the advantage of
3732	# actually working.
3733	break;;
3734    * )
3735	break;;
3736  esac
3737done
3738test "$ac_cv_exeext" = no && ac_cv_exeext=
3739
3740else $as_nop
3741  ac_file=''
3742fi
3743if test -z "$ac_file"
3744then :
3745  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3746printf "%s\n" "no" >&6; }
3747printf "%s\n" "$as_me: failed program was:" >&5
3748sed 's/^/| /' conftest.$ac_ext >&5
3749
3750{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3751printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3752as_fn_error 77 "C compiler cannot create executables
3753See \`config.log' for more details" "$LINENO" 5; }
3754else $as_nop
3755  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3756printf "%s\n" "yes" >&6; }
3757fi
3758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3759printf %s "checking for C compiler default output file name... " >&6; }
3760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3761printf "%s\n" "$ac_file" >&6; }
3762ac_exeext=$ac_cv_exeext
3763
3764rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3765ac_clean_files=$ac_clean_files_save
3766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3767printf %s "checking for suffix of executables... " >&6; }
3768if { { ac_try="$ac_link"
3769case "(($ac_try" in
3770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3771  *) ac_try_echo=$ac_try;;
3772esac
3773eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3774printf "%s\n" "$ac_try_echo"; } >&5
3775  (eval "$ac_link") 2>&5
3776  ac_status=$?
3777  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3778  test $ac_status = 0; }
3779then :
3780  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3781# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3782# work properly (i.e., refer to `conftest.exe'), while it won't with
3783# `rm'.
3784for ac_file in conftest.exe conftest conftest.*; do
3785  test -f "$ac_file" || continue
3786  case $ac_file in
3787    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3788    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3789	  break;;
3790    * ) break;;
3791  esac
3792done
3793else $as_nop
3794  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3795printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3796as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3797See \`config.log' for more details" "$LINENO" 5; }
3798fi
3799rm -f conftest conftest$ac_cv_exeext
3800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3801printf "%s\n" "$ac_cv_exeext" >&6; }
3802
3803rm -f conftest.$ac_ext
3804EXEEXT=$ac_cv_exeext
3805ac_exeext=$EXEEXT
3806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807/* end confdefs.h.  */
3808#include <stdio.h>
3809int
3810main (void)
3811{
3812FILE *f = fopen ("conftest.out", "w");
3813 return ferror (f) || fclose (f) != 0;
3814
3815  ;
3816  return 0;
3817}
3818_ACEOF
3819ac_clean_files="$ac_clean_files conftest.out"
3820# Check that the compiler produces executables we can run.  If not, either
3821# the compiler is broken, or we cross compile.
3822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3823printf %s "checking whether we are cross compiling... " >&6; }
3824if test "$cross_compiling" != yes; then
3825  { { ac_try="$ac_link"
3826case "(($ac_try" in
3827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828  *) ac_try_echo=$ac_try;;
3829esac
3830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3831printf "%s\n" "$ac_try_echo"; } >&5
3832  (eval "$ac_link") 2>&5
3833  ac_status=$?
3834  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3835  test $ac_status = 0; }
3836  if { ac_try='./conftest$ac_cv_exeext'
3837  { { case "(($ac_try" in
3838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3839  *) ac_try_echo=$ac_try;;
3840esac
3841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3842printf "%s\n" "$ac_try_echo"; } >&5
3843  (eval "$ac_try") 2>&5
3844  ac_status=$?
3845  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3846  test $ac_status = 0; }; }; then
3847    cross_compiling=no
3848  else
3849    if test "$cross_compiling" = maybe; then
3850	cross_compiling=yes
3851    else
3852	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3853printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3854as_fn_error 77 "cannot run C compiled programs.
3855If you meant to cross compile, use \`--host'.
3856See \`config.log' for more details" "$LINENO" 5; }
3857    fi
3858  fi
3859fi
3860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3861printf "%s\n" "$cross_compiling" >&6; }
3862
3863rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3864ac_clean_files=$ac_clean_files_save
3865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3866printf %s "checking for suffix of object files... " >&6; }
3867if test ${ac_cv_objext+y}
3868then :
3869  printf %s "(cached) " >&6
3870else $as_nop
3871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3872/* end confdefs.h.  */
3873
3874int
3875main (void)
3876{
3877
3878  ;
3879  return 0;
3880}
3881_ACEOF
3882rm -f conftest.o conftest.obj
3883if { { ac_try="$ac_compile"
3884case "(($ac_try" in
3885  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886  *) ac_try_echo=$ac_try;;
3887esac
3888eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3889printf "%s\n" "$ac_try_echo"; } >&5
3890  (eval "$ac_compile") 2>&5
3891  ac_status=$?
3892  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3893  test $ac_status = 0; }
3894then :
3895  for ac_file in conftest.o conftest.obj conftest.*; do
3896  test -f "$ac_file" || continue;
3897  case $ac_file in
3898    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3899    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3900       break;;
3901  esac
3902done
3903else $as_nop
3904  printf "%s\n" "$as_me: failed program was:" >&5
3905sed 's/^/| /' conftest.$ac_ext >&5
3906
3907{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3908printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3909as_fn_error $? "cannot compute suffix of object files: cannot compile
3910See \`config.log' for more details" "$LINENO" 5; }
3911fi
3912rm -f conftest.$ac_cv_objext conftest.$ac_ext
3913fi
3914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3915printf "%s\n" "$ac_cv_objext" >&6; }
3916OBJEXT=$ac_cv_objext
3917ac_objext=$OBJEXT
3918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3919printf %s "checking whether the compiler supports GNU C... " >&6; }
3920if test ${ac_cv_c_compiler_gnu+y}
3921then :
3922  printf %s "(cached) " >&6
3923else $as_nop
3924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925/* end confdefs.h.  */
3926
3927int
3928main (void)
3929{
3930#ifndef __GNUC__
3931       choke me
3932#endif
3933
3934  ;
3935  return 0;
3936}
3937_ACEOF
3938if ac_fn_c_try_compile "$LINENO"
3939then :
3940  ac_compiler_gnu=yes
3941else $as_nop
3942  ac_compiler_gnu=no
3943fi
3944rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3945ac_cv_c_compiler_gnu=$ac_compiler_gnu
3946
3947fi
3948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3949printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3950ac_compiler_gnu=$ac_cv_c_compiler_gnu
3951
3952if test $ac_compiler_gnu = yes; then
3953  GCC=yes
3954else
3955  GCC=
3956fi
3957ac_test_CFLAGS=${CFLAGS+y}
3958ac_save_CFLAGS=$CFLAGS
3959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3960printf %s "checking whether $CC accepts -g... " >&6; }
3961if test ${ac_cv_prog_cc_g+y}
3962then :
3963  printf %s "(cached) " >&6
3964else $as_nop
3965  ac_save_c_werror_flag=$ac_c_werror_flag
3966   ac_c_werror_flag=yes
3967   ac_cv_prog_cc_g=no
3968   CFLAGS="-g"
3969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970/* end confdefs.h.  */
3971
3972int
3973main (void)
3974{
3975
3976  ;
3977  return 0;
3978}
3979_ACEOF
3980if ac_fn_c_try_compile "$LINENO"
3981then :
3982  ac_cv_prog_cc_g=yes
3983else $as_nop
3984  CFLAGS=""
3985      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986/* end confdefs.h.  */
3987
3988int
3989main (void)
3990{
3991
3992  ;
3993  return 0;
3994}
3995_ACEOF
3996if ac_fn_c_try_compile "$LINENO"
3997then :
3998
3999else $as_nop
4000  ac_c_werror_flag=$ac_save_c_werror_flag
4001	 CFLAGS="-g"
4002	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003/* end confdefs.h.  */
4004
4005int
4006main (void)
4007{
4008
4009  ;
4010  return 0;
4011}
4012_ACEOF
4013if ac_fn_c_try_compile "$LINENO"
4014then :
4015  ac_cv_prog_cc_g=yes
4016fi
4017rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4018fi
4019rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4020fi
4021rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4022   ac_c_werror_flag=$ac_save_c_werror_flag
4023fi
4024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4025printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4026if test $ac_test_CFLAGS; then
4027  CFLAGS=$ac_save_CFLAGS
4028elif test $ac_cv_prog_cc_g = yes; then
4029  if test "$GCC" = yes; then
4030    CFLAGS="-g -O2"
4031  else
4032    CFLAGS="-g"
4033  fi
4034else
4035  if test "$GCC" = yes; then
4036    CFLAGS="-O2"
4037  else
4038    CFLAGS=
4039  fi
4040fi
4041ac_prog_cc_stdc=no
4042if test x$ac_prog_cc_stdc = xno
4043then :
4044  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4045printf %s "checking for $CC option to enable C11 features... " >&6; }
4046if test ${ac_cv_prog_cc_c11+y}
4047then :
4048  printf %s "(cached) " >&6
4049else $as_nop
4050  ac_cv_prog_cc_c11=no
4051ac_save_CC=$CC
4052cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053/* end confdefs.h.  */
4054$ac_c_conftest_c11_program
4055_ACEOF
4056for ac_arg in '' -std=gnu11
4057do
4058  CC="$ac_save_CC $ac_arg"
4059  if ac_fn_c_try_compile "$LINENO"
4060then :
4061  ac_cv_prog_cc_c11=$ac_arg
4062fi
4063rm -f core conftest.err conftest.$ac_objext conftest.beam
4064  test "x$ac_cv_prog_cc_c11" != "xno" && break
4065done
4066rm -f conftest.$ac_ext
4067CC=$ac_save_CC
4068fi
4069
4070if test "x$ac_cv_prog_cc_c11" = xno
4071then :
4072  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4073printf "%s\n" "unsupported" >&6; }
4074else $as_nop
4075  if test "x$ac_cv_prog_cc_c11" = x
4076then :
4077  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4078printf "%s\n" "none needed" >&6; }
4079else $as_nop
4080  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4081printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4082     CC="$CC $ac_cv_prog_cc_c11"
4083fi
4084  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4085  ac_prog_cc_stdc=c11
4086fi
4087fi
4088if test x$ac_prog_cc_stdc = xno
4089then :
4090  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4091printf %s "checking for $CC option to enable C99 features... " >&6; }
4092if test ${ac_cv_prog_cc_c99+y}
4093then :
4094  printf %s "(cached) " >&6
4095else $as_nop
4096  ac_cv_prog_cc_c99=no
4097ac_save_CC=$CC
4098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099/* end confdefs.h.  */
4100$ac_c_conftest_c99_program
4101_ACEOF
4102for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4103do
4104  CC="$ac_save_CC $ac_arg"
4105  if ac_fn_c_try_compile "$LINENO"
4106then :
4107  ac_cv_prog_cc_c99=$ac_arg
4108fi
4109rm -f core conftest.err conftest.$ac_objext conftest.beam
4110  test "x$ac_cv_prog_cc_c99" != "xno" && break
4111done
4112rm -f conftest.$ac_ext
4113CC=$ac_save_CC
4114fi
4115
4116if test "x$ac_cv_prog_cc_c99" = xno
4117then :
4118  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4119printf "%s\n" "unsupported" >&6; }
4120else $as_nop
4121  if test "x$ac_cv_prog_cc_c99" = x
4122then :
4123  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4124printf "%s\n" "none needed" >&6; }
4125else $as_nop
4126  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4127printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4128     CC="$CC $ac_cv_prog_cc_c99"
4129fi
4130  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4131  ac_prog_cc_stdc=c99
4132fi
4133fi
4134if test x$ac_prog_cc_stdc = xno
4135then :
4136  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4137printf %s "checking for $CC option to enable C89 features... " >&6; }
4138if test ${ac_cv_prog_cc_c89+y}
4139then :
4140  printf %s "(cached) " >&6
4141else $as_nop
4142  ac_cv_prog_cc_c89=no
4143ac_save_CC=$CC
4144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145/* end confdefs.h.  */
4146$ac_c_conftest_c89_program
4147_ACEOF
4148for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4149do
4150  CC="$ac_save_CC $ac_arg"
4151  if ac_fn_c_try_compile "$LINENO"
4152then :
4153  ac_cv_prog_cc_c89=$ac_arg
4154fi
4155rm -f core conftest.err conftest.$ac_objext conftest.beam
4156  test "x$ac_cv_prog_cc_c89" != "xno" && break
4157done
4158rm -f conftest.$ac_ext
4159CC=$ac_save_CC
4160fi
4161
4162if test "x$ac_cv_prog_cc_c89" = xno
4163then :
4164  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4165printf "%s\n" "unsupported" >&6; }
4166else $as_nop
4167  if test "x$ac_cv_prog_cc_c89" = x
4168then :
4169  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4170printf "%s\n" "none needed" >&6; }
4171else $as_nop
4172  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4173printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4174     CC="$CC $ac_cv_prog_cc_c89"
4175fi
4176  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4177  ac_prog_cc_stdc=c89
4178fi
4179fi
4180
4181ac_ext=c
4182ac_cpp='$CPP $CPPFLAGS'
4183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4185ac_compiler_gnu=$ac_cv_c_compiler_gnu
4186
4187
4188  ac_ext=c
4189ac_cpp='$CPP $CPPFLAGS'
4190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4192ac_compiler_gnu=$ac_cv_c_compiler_gnu
4193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4194printf %s "checking whether $CC understands -c and -o together... " >&6; }
4195if test ${am_cv_prog_cc_c_o+y}
4196then :
4197  printf %s "(cached) " >&6
4198else $as_nop
4199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200/* end confdefs.h.  */
4201
4202int
4203main (void)
4204{
4205
4206  ;
4207  return 0;
4208}
4209_ACEOF
4210  # Make sure it works both with $CC and with simple cc.
4211  # Following AC_PROG_CC_C_O, we do the test twice because some
4212  # compilers refuse to overwrite an existing .o file with -o,
4213  # though they will create one.
4214  am_cv_prog_cc_c_o=yes
4215  for am_i in 1 2; do
4216    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4217   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4218   ac_status=$?
4219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220   (exit $ac_status); } \
4221         && test -f conftest2.$ac_objext; then
4222      : OK
4223    else
4224      am_cv_prog_cc_c_o=no
4225      break
4226    fi
4227  done
4228  rm -f core conftest*
4229  unset am_i
4230fi
4231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4232printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4233if test "$am_cv_prog_cc_c_o" != yes; then
4234   # Losing compiler, so override with the script.
4235   # FIXME: It is wrong to rewrite CC.
4236   # But if we don't then we get into trouble of one sort or another.
4237   # A longer-term fix would be to have automake use am__CC in this case,
4238   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4239   CC="$am_aux_dir/compile $CC"
4240fi
4241ac_ext=c
4242ac_cpp='$CPP $CPPFLAGS'
4243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4245ac_compiler_gnu=$ac_cv_c_compiler_gnu
4246
4247
4248depcc="$CC"   am_compiler_list=
4249
4250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4251printf %s "checking dependency style of $depcc... " >&6; }
4252if test ${am_cv_CC_dependencies_compiler_type+y}
4253then :
4254  printf %s "(cached) " >&6
4255else $as_nop
4256  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4257  # We make a subdir and do the tests there.  Otherwise we can end up
4258  # making bogus files that we don't know about and never remove.  For
4259  # instance it was reported that on HP-UX the gcc test will end up
4260  # making a dummy file named 'D' -- because '-MD' means "put the output
4261  # in D".
4262  rm -rf conftest.dir
4263  mkdir conftest.dir
4264  # Copy depcomp to subdir because otherwise we won't find it if we're
4265  # using a relative directory.
4266  cp "$am_depcomp" conftest.dir
4267  cd conftest.dir
4268  # We will build objects and dependencies in a subdirectory because
4269  # it helps to detect inapplicable dependency modes.  For instance
4270  # both Tru64's cc and ICC support -MD to output dependencies as a
4271  # side effect of compilation, but ICC will put the dependencies in
4272  # the current directory while Tru64 will put them in the object
4273  # directory.
4274  mkdir sub
4275
4276  am_cv_CC_dependencies_compiler_type=none
4277  if test "$am_compiler_list" = ""; then
4278     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4279  fi
4280  am__universal=false
4281  case " $depcc " in #(
4282     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4283     esac
4284
4285  for depmode in $am_compiler_list; do
4286    # Setup a source with many dependencies, because some compilers
4287    # like to wrap large dependency lists on column 80 (with \), and
4288    # we should not choose a depcomp mode which is confused by this.
4289    #
4290    # We need to recreate these files for each test, as the compiler may
4291    # overwrite some of them when testing with obscure command lines.
4292    # This happens at least with the AIX C compiler.
4293    : > sub/conftest.c
4294    for i in 1 2 3 4 5 6; do
4295      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4296      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4297      # Solaris 10 /bin/sh.
4298      echo '/* dummy */' > sub/conftst$i.h
4299    done
4300    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4301
4302    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4303    # mode.  It turns out that the SunPro C++ compiler does not properly
4304    # handle '-M -o', and we need to detect this.  Also, some Intel
4305    # versions had trouble with output in subdirs.
4306    am__obj=sub/conftest.${OBJEXT-o}
4307    am__minus_obj="-o $am__obj"
4308    case $depmode in
4309    gcc)
4310      # This depmode causes a compiler race in universal mode.
4311      test "$am__universal" = false || continue
4312      ;;
4313    nosideeffect)
4314      # After this tag, mechanisms are not by side-effect, so they'll
4315      # only be used when explicitly requested.
4316      if test "x$enable_dependency_tracking" = xyes; then
4317	continue
4318      else
4319	break
4320      fi
4321      ;;
4322    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4323      # This compiler won't grok '-c -o', but also, the minuso test has
4324      # not run yet.  These depmodes are late enough in the game, and
4325      # so weak that their functioning should not be impacted.
4326      am__obj=conftest.${OBJEXT-o}
4327      am__minus_obj=
4328      ;;
4329    none) break ;;
4330    esac
4331    if depmode=$depmode \
4332       source=sub/conftest.c object=$am__obj \
4333       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4334       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4335         >/dev/null 2>conftest.err &&
4336       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4337       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4338       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4339       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4340      # icc doesn't choke on unknown options, it will just issue warnings
4341      # or remarks (even with -Werror).  So we grep stderr for any message
4342      # that says an option was ignored or not supported.
4343      # When given -MP, icc 7.0 and 7.1 complain thusly:
4344      #   icc: Command line warning: ignoring option '-M'; no argument required
4345      # The diagnosis changed in icc 8.0:
4346      #   icc: Command line remark: option '-MP' not supported
4347      if (grep 'ignoring option' conftest.err ||
4348          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4349        am_cv_CC_dependencies_compiler_type=$depmode
4350        break
4351      fi
4352    fi
4353  done
4354
4355  cd ..
4356  rm -rf conftest.dir
4357else
4358  am_cv_CC_dependencies_compiler_type=none
4359fi
4360
4361fi
4362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4363printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4364CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4365
4366 if
4367  test "x$enable_dependency_tracking" != xno \
4368  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4369  am__fastdepCC_TRUE=
4370  am__fastdepCC_FALSE='#'
4371else
4372  am__fastdepCC_TRUE='#'
4373  am__fastdepCC_FALSE=
4374fi
4375
4376
4377
4378
4379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4380printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4381if test ${ac_cv_c_undeclared_builtin_options+y}
4382then :
4383  printf %s "(cached) " >&6
4384else $as_nop
4385  ac_save_CFLAGS=$CFLAGS
4386   ac_cv_c_undeclared_builtin_options='cannot detect'
4387   for ac_arg in '' -fno-builtin; do
4388     CFLAGS="$ac_save_CFLAGS $ac_arg"
4389     # This test program should *not* compile successfully.
4390     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391/* end confdefs.h.  */
4392
4393int
4394main (void)
4395{
4396(void) strchr;
4397  ;
4398  return 0;
4399}
4400_ACEOF
4401if ac_fn_c_try_compile "$LINENO"
4402then :
4403
4404else $as_nop
4405  # This test program should compile successfully.
4406        # No library function is consistently available on
4407        # freestanding implementations, so test against a dummy
4408        # declaration.  Include always-available headers on the
4409        # off chance that they somehow elicit warnings.
4410        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4411/* end confdefs.h.  */
4412#include <float.h>
4413#include <limits.h>
4414#include <stdarg.h>
4415#include <stddef.h>
4416extern void ac_decl (int, char *);
4417
4418int
4419main (void)
4420{
4421(void) ac_decl (0, (char *) 0);
4422  (void) ac_decl;
4423
4424  ;
4425  return 0;
4426}
4427_ACEOF
4428if ac_fn_c_try_compile "$LINENO"
4429then :
4430  if test x"$ac_arg" = x
4431then :
4432  ac_cv_c_undeclared_builtin_options='none needed'
4433else $as_nop
4434  ac_cv_c_undeclared_builtin_options=$ac_arg
4435fi
4436          break
4437fi
4438rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4439fi
4440rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4441    done
4442    CFLAGS=$ac_save_CFLAGS
4443
4444fi
4445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4446printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4447  case $ac_cv_c_undeclared_builtin_options in #(
4448  'cannot detect') :
4449    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4450printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4451as_fn_error $? "cannot make $CC report undeclared builtins
4452See \`config.log' for more details" "$LINENO" 5; } ;; #(
4453  'none needed') :
4454    ac_c_undeclared_builtin_options='' ;; #(
4455  *) :
4456    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4457esac
4458
4459ac_header= ac_cache=
4460for ac_item in $ac_header_c_list
4461do
4462  if test $ac_cache; then
4463    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4464    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4465      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4466    fi
4467    ac_header= ac_cache=
4468  elif test $ac_header; then
4469    ac_cache=$ac_item
4470  else
4471    ac_header=$ac_item
4472  fi
4473done
4474
4475
4476
4477
4478
4479
4480
4481
4482if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4483then :
4484
4485printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4486
4487fi
4488
4489
4490
4491
4492ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4493if test "x$ac_cv_have_decl___clang__" = xyes
4494then :
4495  CLANGCC="yes"
4496else $as_nop
4497  CLANGCC="no"
4498fi
4499ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4500if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4501then :
4502  INTELCC="yes"
4503else $as_nop
4504  INTELCC="no"
4505fi
4506ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4507if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4508then :
4509  SUNCC="yes"
4510else $as_nop
4511  SUNCC="no"
4512fi
4513
4514
4515
4516
4517
4518
4519
4520
4521if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4522	if test -n "$ac_tool_prefix"; then
4523  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4524set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4526printf %s "checking for $ac_word... " >&6; }
4527if test ${ac_cv_path_PKG_CONFIG+y}
4528then :
4529  printf %s "(cached) " >&6
4530else $as_nop
4531  case $PKG_CONFIG in
4532  [\\/]* | ?:[\\/]*)
4533  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4534  ;;
4535  *)
4536  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537for as_dir in $PATH
4538do
4539  IFS=$as_save_IFS
4540  case $as_dir in #(((
4541    '') as_dir=./ ;;
4542    */) ;;
4543    *) as_dir=$as_dir/ ;;
4544  esac
4545    for ac_exec_ext in '' $ac_executable_extensions; do
4546  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4547    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4548    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4549    break 2
4550  fi
4551done
4552  done
4553IFS=$as_save_IFS
4554
4555  ;;
4556esac
4557fi
4558PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4559if test -n "$PKG_CONFIG"; then
4560  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4561printf "%s\n" "$PKG_CONFIG" >&6; }
4562else
4563  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4564printf "%s\n" "no" >&6; }
4565fi
4566
4567
4568fi
4569if test -z "$ac_cv_path_PKG_CONFIG"; then
4570  ac_pt_PKG_CONFIG=$PKG_CONFIG
4571  # Extract the first word of "pkg-config", so it can be a program name with args.
4572set dummy pkg-config; ac_word=$2
4573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4574printf %s "checking for $ac_word... " >&6; }
4575if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4576then :
4577  printf %s "(cached) " >&6
4578else $as_nop
4579  case $ac_pt_PKG_CONFIG in
4580  [\\/]* | ?:[\\/]*)
4581  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4582  ;;
4583  *)
4584  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585for as_dir in $PATH
4586do
4587  IFS=$as_save_IFS
4588  case $as_dir in #(((
4589    '') as_dir=./ ;;
4590    */) ;;
4591    *) as_dir=$as_dir/ ;;
4592  esac
4593    for ac_exec_ext in '' $ac_executable_extensions; do
4594  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4595    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4596    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4597    break 2
4598  fi
4599done
4600  done
4601IFS=$as_save_IFS
4602
4603  ;;
4604esac
4605fi
4606ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4607if test -n "$ac_pt_PKG_CONFIG"; then
4608  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4609printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4610else
4611  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4612printf "%s\n" "no" >&6; }
4613fi
4614
4615  if test "x$ac_pt_PKG_CONFIG" = x; then
4616    PKG_CONFIG=""
4617  else
4618    case $cross_compiling:$ac_tool_warned in
4619yes:)
4620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4621printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4622ac_tool_warned=yes ;;
4623esac
4624    PKG_CONFIG=$ac_pt_PKG_CONFIG
4625  fi
4626else
4627  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4628fi
4629
4630fi
4631if test -n "$PKG_CONFIG"; then
4632	_pkg_min_version=0.9.0
4633	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4634printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4635	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4636		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4637printf "%s\n" "yes" >&6; }
4638	else
4639		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4640printf "%s\n" "no" >&6; }
4641		PKG_CONFIG=""
4642	fi
4643fi
4644
4645
4646  # Make sure we can run config.sub.
4647$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4648  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4649
4650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4651printf %s "checking build system type... " >&6; }
4652if test ${ac_cv_build+y}
4653then :
4654  printf %s "(cached) " >&6
4655else $as_nop
4656  ac_build_alias=$build_alias
4657test "x$ac_build_alias" = x &&
4658  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4659test "x$ac_build_alias" = x &&
4660  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4661ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4662  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4663
4664fi
4665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4666printf "%s\n" "$ac_cv_build" >&6; }
4667case $ac_cv_build in
4668*-*-*) ;;
4669*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4670esac
4671build=$ac_cv_build
4672ac_save_IFS=$IFS; IFS='-'
4673set x $ac_cv_build
4674shift
4675build_cpu=$1
4676build_vendor=$2
4677shift; shift
4678# Remember, the first character of IFS is used to create $*,
4679# except with old shells:
4680build_os=$*
4681IFS=$ac_save_IFS
4682case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4683
4684
4685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4686printf %s "checking host system type... " >&6; }
4687if test ${ac_cv_host+y}
4688then :
4689  printf %s "(cached) " >&6
4690else $as_nop
4691  if test "x$host_alias" = x; then
4692  ac_cv_host=$ac_cv_build
4693else
4694  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4695    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4696fi
4697
4698fi
4699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4700printf "%s\n" "$ac_cv_host" >&6; }
4701case $ac_cv_host in
4702*-*-*) ;;
4703*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4704esac
4705host=$ac_cv_host
4706ac_save_IFS=$IFS; IFS='-'
4707set x $ac_cv_host
4708shift
4709host_cpu=$1
4710host_vendor=$2
4711shift; shift
4712# Remember, the first character of IFS is used to create $*,
4713# except with old shells:
4714host_os=$*
4715IFS=$ac_save_IFS
4716case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4717
4718
4719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4720printf %s "checking for a sed that does not truncate output... " >&6; }
4721if test ${ac_cv_path_SED+y}
4722then :
4723  printf %s "(cached) " >&6
4724else $as_nop
4725            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4726     for ac_i in 1 2 3 4 5 6 7; do
4727       ac_script="$ac_script$as_nl$ac_script"
4728     done
4729     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4730     { ac_script=; unset ac_script;}
4731     if test -z "$SED"; then
4732  ac_path_SED_found=false
4733  # Loop through the user's path and test for each of PROGNAME-LIST
4734  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735for as_dir in $PATH
4736do
4737  IFS=$as_save_IFS
4738  case $as_dir in #(((
4739    '') as_dir=./ ;;
4740    */) ;;
4741    *) as_dir=$as_dir/ ;;
4742  esac
4743    for ac_prog in sed gsed
4744   do
4745    for ac_exec_ext in '' $ac_executable_extensions; do
4746      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4747      as_fn_executable_p "$ac_path_SED" || continue
4748# Check for GNU ac_path_SED and select it if it is found.
4749  # Check for GNU $ac_path_SED
4750case `"$ac_path_SED" --version 2>&1` in
4751*GNU*)
4752  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4753*)
4754  ac_count=0
4755  printf %s 0123456789 >"conftest.in"
4756  while :
4757  do
4758    cat "conftest.in" "conftest.in" >"conftest.tmp"
4759    mv "conftest.tmp" "conftest.in"
4760    cp "conftest.in" "conftest.nl"
4761    printf "%s\n" '' >> "conftest.nl"
4762    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4763    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4764    as_fn_arith $ac_count + 1 && ac_count=$as_val
4765    if test $ac_count -gt ${ac_path_SED_max-0}; then
4766      # Best one so far, save it but keep looking for a better one
4767      ac_cv_path_SED="$ac_path_SED"
4768      ac_path_SED_max=$ac_count
4769    fi
4770    # 10*(2^10) chars as input seems more than enough
4771    test $ac_count -gt 10 && break
4772  done
4773  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4774esac
4775
4776      $ac_path_SED_found && break 3
4777    done
4778  done
4779  done
4780IFS=$as_save_IFS
4781  if test -z "$ac_cv_path_SED"; then
4782    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4783  fi
4784else
4785  ac_cv_path_SED=$SED
4786fi
4787
4788fi
4789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4790printf "%s\n" "$ac_cv_path_SED" >&6; }
4791 SED="$ac_cv_path_SED"
4792  rm -f conftest.sed
4793
4794
4795
4796
4797
4798
4799# Check whether --enable-selective-werror was given.
4800if test ${enable_selective_werror+y}
4801then :
4802  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4803else $as_nop
4804  SELECTIVE_WERROR=yes
4805fi
4806
4807
4808
4809
4810
4811# -v is too short to test reliably with XORG_TESTSET_CFLAG
4812if test "x$SUNCC" = "xyes"; then
4813    BASE_CFLAGS="-v"
4814else
4815    BASE_CFLAGS=""
4816fi
4817
4818# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832xorg_testset_save_CFLAGS="$CFLAGS"
4833
4834if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4835	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4836	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4837printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4838if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4839then :
4840  printf %s "(cached) " >&6
4841else $as_nop
4842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4843/* end confdefs.h.  */
4844int i;
4845_ACEOF
4846if ac_fn_c_try_compile "$LINENO"
4847then :
4848  xorg_cv_cc_flag_unknown_warning_option=yes
4849else $as_nop
4850  xorg_cv_cc_flag_unknown_warning_option=no
4851fi
4852rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4853fi
4854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4855printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4856	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4857	CFLAGS="$xorg_testset_save_CFLAGS"
4858fi
4859
4860if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4861	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4862		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4863	fi
4864	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4865	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4866printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4867if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4868then :
4869  printf %s "(cached) " >&6
4870else $as_nop
4871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4872/* end confdefs.h.  */
4873int i;
4874_ACEOF
4875if ac_fn_c_try_compile "$LINENO"
4876then :
4877  xorg_cv_cc_flag_unused_command_line_argument=yes
4878else $as_nop
4879  xorg_cv_cc_flag_unused_command_line_argument=no
4880fi
4881rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4882fi
4883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4884printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4885	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4886	CFLAGS="$xorg_testset_save_CFLAGS"
4887fi
4888
4889found="no"
4890
4891	if test $found = "no" ; then
4892		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4893			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4894		fi
4895
4896		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4897			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4898		fi
4899
4900		CFLAGS="$CFLAGS -Wall"
4901
4902		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4903printf %s "checking if $CC supports -Wall... " >&6; }
4904		cacheid=xorg_cv_cc_flag__Wall
4905		if eval test \${$cacheid+y}
4906then :
4907  printf %s "(cached) " >&6
4908else $as_nop
4909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4910/* end confdefs.h.  */
4911int i;
4912int
4913main (void)
4914{
4915
4916  ;
4917  return 0;
4918}
4919_ACEOF
4920if ac_fn_c_try_link "$LINENO"
4921then :
4922  eval $cacheid=yes
4923else $as_nop
4924  eval $cacheid=no
4925fi
4926rm -f core conftest.err conftest.$ac_objext conftest.beam \
4927    conftest$ac_exeext conftest.$ac_ext
4928fi
4929
4930
4931		CFLAGS="$xorg_testset_save_CFLAGS"
4932
4933		eval supported=\$$cacheid
4934		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4935printf "%s\n" "$supported" >&6; }
4936		if test "$supported" = "yes" ; then
4937			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4938			found="yes"
4939		fi
4940	fi
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956xorg_testset_save_CFLAGS="$CFLAGS"
4957
4958if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4959	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4960	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4961printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4962if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4963then :
4964  printf %s "(cached) " >&6
4965else $as_nop
4966  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4967/* end confdefs.h.  */
4968int i;
4969_ACEOF
4970if ac_fn_c_try_compile "$LINENO"
4971then :
4972  xorg_cv_cc_flag_unknown_warning_option=yes
4973else $as_nop
4974  xorg_cv_cc_flag_unknown_warning_option=no
4975fi
4976rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4977fi
4978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4979printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4980	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4981	CFLAGS="$xorg_testset_save_CFLAGS"
4982fi
4983
4984if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4985	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4986		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4987	fi
4988	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4989	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4990printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4991if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4992then :
4993  printf %s "(cached) " >&6
4994else $as_nop
4995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4996/* end confdefs.h.  */
4997int i;
4998_ACEOF
4999if ac_fn_c_try_compile "$LINENO"
5000then :
5001  xorg_cv_cc_flag_unused_command_line_argument=yes
5002else $as_nop
5003  xorg_cv_cc_flag_unused_command_line_argument=no
5004fi
5005rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5006fi
5007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5008printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5009	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5010	CFLAGS="$xorg_testset_save_CFLAGS"
5011fi
5012
5013found="no"
5014
5015	if test $found = "no" ; then
5016		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5017			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5018		fi
5019
5020		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5021			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5022		fi
5023
5024		CFLAGS="$CFLAGS -Wpointer-arith"
5025
5026		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5027printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5028		cacheid=xorg_cv_cc_flag__Wpointer_arith
5029		if eval test \${$cacheid+y}
5030then :
5031  printf %s "(cached) " >&6
5032else $as_nop
5033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5034/* end confdefs.h.  */
5035int i;
5036int
5037main (void)
5038{
5039
5040  ;
5041  return 0;
5042}
5043_ACEOF
5044if ac_fn_c_try_link "$LINENO"
5045then :
5046  eval $cacheid=yes
5047else $as_nop
5048  eval $cacheid=no
5049fi
5050rm -f core conftest.err conftest.$ac_objext conftest.beam \
5051    conftest$ac_exeext conftest.$ac_ext
5052fi
5053
5054
5055		CFLAGS="$xorg_testset_save_CFLAGS"
5056
5057		eval supported=\$$cacheid
5058		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5059printf "%s\n" "$supported" >&6; }
5060		if test "$supported" = "yes" ; then
5061			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5062			found="yes"
5063		fi
5064	fi
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080xorg_testset_save_CFLAGS="$CFLAGS"
5081
5082if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5083	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5084	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5085printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5086if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5087then :
5088  printf %s "(cached) " >&6
5089else $as_nop
5090  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5091/* end confdefs.h.  */
5092int i;
5093_ACEOF
5094if ac_fn_c_try_compile "$LINENO"
5095then :
5096  xorg_cv_cc_flag_unknown_warning_option=yes
5097else $as_nop
5098  xorg_cv_cc_flag_unknown_warning_option=no
5099fi
5100rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5101fi
5102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5103printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5104	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5105	CFLAGS="$xorg_testset_save_CFLAGS"
5106fi
5107
5108if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5109	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5110		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5111	fi
5112	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5113	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5114printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5115if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5116then :
5117  printf %s "(cached) " >&6
5118else $as_nop
5119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120/* end confdefs.h.  */
5121int i;
5122_ACEOF
5123if ac_fn_c_try_compile "$LINENO"
5124then :
5125  xorg_cv_cc_flag_unused_command_line_argument=yes
5126else $as_nop
5127  xorg_cv_cc_flag_unused_command_line_argument=no
5128fi
5129rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5130fi
5131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5132printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5133	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5134	CFLAGS="$xorg_testset_save_CFLAGS"
5135fi
5136
5137found="no"
5138
5139	if test $found = "no" ; then
5140		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5141			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5142		fi
5143
5144		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5145			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5146		fi
5147
5148		CFLAGS="$CFLAGS -Wmissing-declarations"
5149
5150		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5151printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5152		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5153		if eval test \${$cacheid+y}
5154then :
5155  printf %s "(cached) " >&6
5156else $as_nop
5157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5158/* end confdefs.h.  */
5159int i;
5160int
5161main (void)
5162{
5163
5164  ;
5165  return 0;
5166}
5167_ACEOF
5168if ac_fn_c_try_link "$LINENO"
5169then :
5170  eval $cacheid=yes
5171else $as_nop
5172  eval $cacheid=no
5173fi
5174rm -f core conftest.err conftest.$ac_objext conftest.beam \
5175    conftest$ac_exeext conftest.$ac_ext
5176fi
5177
5178
5179		CFLAGS="$xorg_testset_save_CFLAGS"
5180
5181		eval supported=\$$cacheid
5182		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5183printf "%s\n" "$supported" >&6; }
5184		if test "$supported" = "yes" ; then
5185			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5186			found="yes"
5187		fi
5188	fi
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204xorg_testset_save_CFLAGS="$CFLAGS"
5205
5206if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5207	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5208	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5209printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5210if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5211then :
5212  printf %s "(cached) " >&6
5213else $as_nop
5214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215/* end confdefs.h.  */
5216int i;
5217_ACEOF
5218if ac_fn_c_try_compile "$LINENO"
5219then :
5220  xorg_cv_cc_flag_unknown_warning_option=yes
5221else $as_nop
5222  xorg_cv_cc_flag_unknown_warning_option=no
5223fi
5224rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5225fi
5226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5227printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5228	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5229	CFLAGS="$xorg_testset_save_CFLAGS"
5230fi
5231
5232if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5233	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5234		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5235	fi
5236	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5237	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5238printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5239if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5240then :
5241  printf %s "(cached) " >&6
5242else $as_nop
5243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244/* end confdefs.h.  */
5245int i;
5246_ACEOF
5247if ac_fn_c_try_compile "$LINENO"
5248then :
5249  xorg_cv_cc_flag_unused_command_line_argument=yes
5250else $as_nop
5251  xorg_cv_cc_flag_unused_command_line_argument=no
5252fi
5253rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5254fi
5255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5256printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5257	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5258	CFLAGS="$xorg_testset_save_CFLAGS"
5259fi
5260
5261found="no"
5262
5263	if test $found = "no" ; then
5264		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5265			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5266		fi
5267
5268		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5269			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5270		fi
5271
5272		CFLAGS="$CFLAGS -Wformat=2"
5273
5274		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5275printf %s "checking if $CC supports -Wformat=2... " >&6; }
5276		cacheid=xorg_cv_cc_flag__Wformat_2
5277		if eval test \${$cacheid+y}
5278then :
5279  printf %s "(cached) " >&6
5280else $as_nop
5281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5282/* end confdefs.h.  */
5283int i;
5284int
5285main (void)
5286{
5287
5288  ;
5289  return 0;
5290}
5291_ACEOF
5292if ac_fn_c_try_link "$LINENO"
5293then :
5294  eval $cacheid=yes
5295else $as_nop
5296  eval $cacheid=no
5297fi
5298rm -f core conftest.err conftest.$ac_objext conftest.beam \
5299    conftest$ac_exeext conftest.$ac_ext
5300fi
5301
5302
5303		CFLAGS="$xorg_testset_save_CFLAGS"
5304
5305		eval supported=\$$cacheid
5306		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5307printf "%s\n" "$supported" >&6; }
5308		if test "$supported" = "yes" ; then
5309			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5310			found="yes"
5311		fi
5312	fi
5313
5314	if test $found = "no" ; then
5315		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5316			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5317		fi
5318
5319		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5320			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5321		fi
5322
5323		CFLAGS="$CFLAGS -Wformat"
5324
5325		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5326printf %s "checking if $CC supports -Wformat... " >&6; }
5327		cacheid=xorg_cv_cc_flag__Wformat
5328		if eval test \${$cacheid+y}
5329then :
5330  printf %s "(cached) " >&6
5331else $as_nop
5332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333/* end confdefs.h.  */
5334int i;
5335int
5336main (void)
5337{
5338
5339  ;
5340  return 0;
5341}
5342_ACEOF
5343if ac_fn_c_try_link "$LINENO"
5344then :
5345  eval $cacheid=yes
5346else $as_nop
5347  eval $cacheid=no
5348fi
5349rm -f core conftest.err conftest.$ac_objext conftest.beam \
5350    conftest$ac_exeext conftest.$ac_ext
5351fi
5352
5353
5354		CFLAGS="$xorg_testset_save_CFLAGS"
5355
5356		eval supported=\$$cacheid
5357		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5358printf "%s\n" "$supported" >&6; }
5359		if test "$supported" = "yes" ; then
5360			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5361			found="yes"
5362		fi
5363	fi
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381xorg_testset_save_CFLAGS="$CFLAGS"
5382
5383if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5384	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5385	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5386printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5387if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5388then :
5389  printf %s "(cached) " >&6
5390else $as_nop
5391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392/* end confdefs.h.  */
5393int i;
5394_ACEOF
5395if ac_fn_c_try_compile "$LINENO"
5396then :
5397  xorg_cv_cc_flag_unknown_warning_option=yes
5398else $as_nop
5399  xorg_cv_cc_flag_unknown_warning_option=no
5400fi
5401rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5402fi
5403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5404printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5405	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5406	CFLAGS="$xorg_testset_save_CFLAGS"
5407fi
5408
5409if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5410	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5411		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5412	fi
5413	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5414	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5415printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5416if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5417then :
5418  printf %s "(cached) " >&6
5419else $as_nop
5420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421/* end confdefs.h.  */
5422int i;
5423_ACEOF
5424if ac_fn_c_try_compile "$LINENO"
5425then :
5426  xorg_cv_cc_flag_unused_command_line_argument=yes
5427else $as_nop
5428  xorg_cv_cc_flag_unused_command_line_argument=no
5429fi
5430rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5431fi
5432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5433printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5434	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5435	CFLAGS="$xorg_testset_save_CFLAGS"
5436fi
5437
5438found="no"
5439
5440	if test $found = "no" ; then
5441		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5442			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5443		fi
5444
5445		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5446			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5447		fi
5448
5449		CFLAGS="$CFLAGS -Wstrict-prototypes"
5450
5451		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5452printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5453		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5454		if eval test \${$cacheid+y}
5455then :
5456  printf %s "(cached) " >&6
5457else $as_nop
5458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5459/* end confdefs.h.  */
5460int i;
5461int
5462main (void)
5463{
5464
5465  ;
5466  return 0;
5467}
5468_ACEOF
5469if ac_fn_c_try_link "$LINENO"
5470then :
5471  eval $cacheid=yes
5472else $as_nop
5473  eval $cacheid=no
5474fi
5475rm -f core conftest.err conftest.$ac_objext conftest.beam \
5476    conftest$ac_exeext conftest.$ac_ext
5477fi
5478
5479
5480		CFLAGS="$xorg_testset_save_CFLAGS"
5481
5482		eval supported=\$$cacheid
5483		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5484printf "%s\n" "$supported" >&6; }
5485		if test "$supported" = "yes" ; then
5486			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5487			found="yes"
5488		fi
5489	fi
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505xorg_testset_save_CFLAGS="$CFLAGS"
5506
5507if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5508	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5509	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5510printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5511if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5512then :
5513  printf %s "(cached) " >&6
5514else $as_nop
5515  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5516/* end confdefs.h.  */
5517int i;
5518_ACEOF
5519if ac_fn_c_try_compile "$LINENO"
5520then :
5521  xorg_cv_cc_flag_unknown_warning_option=yes
5522else $as_nop
5523  xorg_cv_cc_flag_unknown_warning_option=no
5524fi
5525rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5526fi
5527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5528printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5529	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5530	CFLAGS="$xorg_testset_save_CFLAGS"
5531fi
5532
5533if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5534	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5535		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5536	fi
5537	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5538	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5539printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5540if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5541then :
5542  printf %s "(cached) " >&6
5543else $as_nop
5544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5545/* end confdefs.h.  */
5546int i;
5547_ACEOF
5548if ac_fn_c_try_compile "$LINENO"
5549then :
5550  xorg_cv_cc_flag_unused_command_line_argument=yes
5551else $as_nop
5552  xorg_cv_cc_flag_unused_command_line_argument=no
5553fi
5554rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5555fi
5556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5557printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5558	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5559	CFLAGS="$xorg_testset_save_CFLAGS"
5560fi
5561
5562found="no"
5563
5564	if test $found = "no" ; then
5565		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5566			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5567		fi
5568
5569		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5570			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5571		fi
5572
5573		CFLAGS="$CFLAGS -Wmissing-prototypes"
5574
5575		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5576printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5577		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5578		if eval test \${$cacheid+y}
5579then :
5580  printf %s "(cached) " >&6
5581else $as_nop
5582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583/* end confdefs.h.  */
5584int i;
5585int
5586main (void)
5587{
5588
5589  ;
5590  return 0;
5591}
5592_ACEOF
5593if ac_fn_c_try_link "$LINENO"
5594then :
5595  eval $cacheid=yes
5596else $as_nop
5597  eval $cacheid=no
5598fi
5599rm -f core conftest.err conftest.$ac_objext conftest.beam \
5600    conftest$ac_exeext conftest.$ac_ext
5601fi
5602
5603
5604		CFLAGS="$xorg_testset_save_CFLAGS"
5605
5606		eval supported=\$$cacheid
5607		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5608printf "%s\n" "$supported" >&6; }
5609		if test "$supported" = "yes" ; then
5610			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5611			found="yes"
5612		fi
5613	fi
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629xorg_testset_save_CFLAGS="$CFLAGS"
5630
5631if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5632	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5633	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5634printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5635if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5636then :
5637  printf %s "(cached) " >&6
5638else $as_nop
5639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5640/* end confdefs.h.  */
5641int i;
5642_ACEOF
5643if ac_fn_c_try_compile "$LINENO"
5644then :
5645  xorg_cv_cc_flag_unknown_warning_option=yes
5646else $as_nop
5647  xorg_cv_cc_flag_unknown_warning_option=no
5648fi
5649rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5650fi
5651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5652printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5653	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5654	CFLAGS="$xorg_testset_save_CFLAGS"
5655fi
5656
5657if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5658	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5659		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5660	fi
5661	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5662	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5663printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5664if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5665then :
5666  printf %s "(cached) " >&6
5667else $as_nop
5668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5669/* end confdefs.h.  */
5670int i;
5671_ACEOF
5672if ac_fn_c_try_compile "$LINENO"
5673then :
5674  xorg_cv_cc_flag_unused_command_line_argument=yes
5675else $as_nop
5676  xorg_cv_cc_flag_unused_command_line_argument=no
5677fi
5678rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5679fi
5680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5681printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5682	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5683	CFLAGS="$xorg_testset_save_CFLAGS"
5684fi
5685
5686found="no"
5687
5688	if test $found = "no" ; then
5689		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5690			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5691		fi
5692
5693		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5694			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5695		fi
5696
5697		CFLAGS="$CFLAGS -Wnested-externs"
5698
5699		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5700printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5701		cacheid=xorg_cv_cc_flag__Wnested_externs
5702		if eval test \${$cacheid+y}
5703then :
5704  printf %s "(cached) " >&6
5705else $as_nop
5706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707/* end confdefs.h.  */
5708int i;
5709int
5710main (void)
5711{
5712
5713  ;
5714  return 0;
5715}
5716_ACEOF
5717if ac_fn_c_try_link "$LINENO"
5718then :
5719  eval $cacheid=yes
5720else $as_nop
5721  eval $cacheid=no
5722fi
5723rm -f core conftest.err conftest.$ac_objext conftest.beam \
5724    conftest$ac_exeext conftest.$ac_ext
5725fi
5726
5727
5728		CFLAGS="$xorg_testset_save_CFLAGS"
5729
5730		eval supported=\$$cacheid
5731		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5732printf "%s\n" "$supported" >&6; }
5733		if test "$supported" = "yes" ; then
5734			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5735			found="yes"
5736		fi
5737	fi
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753xorg_testset_save_CFLAGS="$CFLAGS"
5754
5755if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5756	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5757	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5758printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5759if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5760then :
5761  printf %s "(cached) " >&6
5762else $as_nop
5763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5764/* end confdefs.h.  */
5765int i;
5766_ACEOF
5767if ac_fn_c_try_compile "$LINENO"
5768then :
5769  xorg_cv_cc_flag_unknown_warning_option=yes
5770else $as_nop
5771  xorg_cv_cc_flag_unknown_warning_option=no
5772fi
5773rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5774fi
5775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5776printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5777	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5778	CFLAGS="$xorg_testset_save_CFLAGS"
5779fi
5780
5781if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5782	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5783		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5784	fi
5785	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5786	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5787printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5788if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5789then :
5790  printf %s "(cached) " >&6
5791else $as_nop
5792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5793/* end confdefs.h.  */
5794int i;
5795_ACEOF
5796if ac_fn_c_try_compile "$LINENO"
5797then :
5798  xorg_cv_cc_flag_unused_command_line_argument=yes
5799else $as_nop
5800  xorg_cv_cc_flag_unused_command_line_argument=no
5801fi
5802rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5803fi
5804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5805printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5806	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5807	CFLAGS="$xorg_testset_save_CFLAGS"
5808fi
5809
5810found="no"
5811
5812	if test $found = "no" ; then
5813		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5814			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5815		fi
5816
5817		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5818			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5819		fi
5820
5821		CFLAGS="$CFLAGS -Wbad-function-cast"
5822
5823		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5824printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5825		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5826		if eval test \${$cacheid+y}
5827then :
5828  printf %s "(cached) " >&6
5829else $as_nop
5830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5831/* end confdefs.h.  */
5832int i;
5833int
5834main (void)
5835{
5836
5837  ;
5838  return 0;
5839}
5840_ACEOF
5841if ac_fn_c_try_link "$LINENO"
5842then :
5843  eval $cacheid=yes
5844else $as_nop
5845  eval $cacheid=no
5846fi
5847rm -f core conftest.err conftest.$ac_objext conftest.beam \
5848    conftest$ac_exeext conftest.$ac_ext
5849fi
5850
5851
5852		CFLAGS="$xorg_testset_save_CFLAGS"
5853
5854		eval supported=\$$cacheid
5855		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5856printf "%s\n" "$supported" >&6; }
5857		if test "$supported" = "yes" ; then
5858			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5859			found="yes"
5860		fi
5861	fi
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877xorg_testset_save_CFLAGS="$CFLAGS"
5878
5879if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5880	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5881	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5882printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5883if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5884then :
5885  printf %s "(cached) " >&6
5886else $as_nop
5887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5888/* end confdefs.h.  */
5889int i;
5890_ACEOF
5891if ac_fn_c_try_compile "$LINENO"
5892then :
5893  xorg_cv_cc_flag_unknown_warning_option=yes
5894else $as_nop
5895  xorg_cv_cc_flag_unknown_warning_option=no
5896fi
5897rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5898fi
5899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5900printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5901	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5902	CFLAGS="$xorg_testset_save_CFLAGS"
5903fi
5904
5905if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5906	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5907		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5908	fi
5909	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5910	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5911printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5912if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5913then :
5914  printf %s "(cached) " >&6
5915else $as_nop
5916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5917/* end confdefs.h.  */
5918int i;
5919_ACEOF
5920if ac_fn_c_try_compile "$LINENO"
5921then :
5922  xorg_cv_cc_flag_unused_command_line_argument=yes
5923else $as_nop
5924  xorg_cv_cc_flag_unused_command_line_argument=no
5925fi
5926rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5927fi
5928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5929printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5930	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5931	CFLAGS="$xorg_testset_save_CFLAGS"
5932fi
5933
5934found="no"
5935
5936	if test $found = "no" ; then
5937		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5938			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5939		fi
5940
5941		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5942			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5943		fi
5944
5945		CFLAGS="$CFLAGS -Wold-style-definition"
5946
5947		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5948printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
5949		cacheid=xorg_cv_cc_flag__Wold_style_definition
5950		if eval test \${$cacheid+y}
5951then :
5952  printf %s "(cached) " >&6
5953else $as_nop
5954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5955/* end confdefs.h.  */
5956int i;
5957int
5958main (void)
5959{
5960
5961  ;
5962  return 0;
5963}
5964_ACEOF
5965if ac_fn_c_try_link "$LINENO"
5966then :
5967  eval $cacheid=yes
5968else $as_nop
5969  eval $cacheid=no
5970fi
5971rm -f core conftest.err conftest.$ac_objext conftest.beam \
5972    conftest$ac_exeext conftest.$ac_ext
5973fi
5974
5975
5976		CFLAGS="$xorg_testset_save_CFLAGS"
5977
5978		eval supported=\$$cacheid
5979		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5980printf "%s\n" "$supported" >&6; }
5981		if test "$supported" = "yes" ; then
5982			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5983			found="yes"
5984		fi
5985	fi
5986
5987	if test $found = "no" ; then
5988		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5989			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5990		fi
5991
5992		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5993			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5994		fi
5995
5996		CFLAGS="$CFLAGS -fd"
5997
5998		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5999printf %s "checking if $CC supports -fd... " >&6; }
6000		cacheid=xorg_cv_cc_flag__fd
6001		if eval test \${$cacheid+y}
6002then :
6003  printf %s "(cached) " >&6
6004else $as_nop
6005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6006/* end confdefs.h.  */
6007int i;
6008int
6009main (void)
6010{
6011
6012  ;
6013  return 0;
6014}
6015_ACEOF
6016if ac_fn_c_try_link "$LINENO"
6017then :
6018  eval $cacheid=yes
6019else $as_nop
6020  eval $cacheid=no
6021fi
6022rm -f core conftest.err conftest.$ac_objext conftest.beam \
6023    conftest$ac_exeext conftest.$ac_ext
6024fi
6025
6026
6027		CFLAGS="$xorg_testset_save_CFLAGS"
6028
6029		eval supported=\$$cacheid
6030		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6031printf "%s\n" "$supported" >&6; }
6032		if test "$supported" = "yes" ; then
6033			BASE_CFLAGS="$BASE_CFLAGS -fd"
6034			found="yes"
6035		fi
6036	fi
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052xorg_testset_save_CFLAGS="$CFLAGS"
6053
6054if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6055	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6056	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6057printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6058if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6059then :
6060  printf %s "(cached) " >&6
6061else $as_nop
6062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6063/* end confdefs.h.  */
6064int i;
6065_ACEOF
6066if ac_fn_c_try_compile "$LINENO"
6067then :
6068  xorg_cv_cc_flag_unknown_warning_option=yes
6069else $as_nop
6070  xorg_cv_cc_flag_unknown_warning_option=no
6071fi
6072rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6073fi
6074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6075printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6076	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6077	CFLAGS="$xorg_testset_save_CFLAGS"
6078fi
6079
6080if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6081	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6082		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6083	fi
6084	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6085	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6086printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6087if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6088then :
6089  printf %s "(cached) " >&6
6090else $as_nop
6091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6092/* end confdefs.h.  */
6093int i;
6094_ACEOF
6095if ac_fn_c_try_compile "$LINENO"
6096then :
6097  xorg_cv_cc_flag_unused_command_line_argument=yes
6098else $as_nop
6099  xorg_cv_cc_flag_unused_command_line_argument=no
6100fi
6101rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6102fi
6103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6104printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6105	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6106	CFLAGS="$xorg_testset_save_CFLAGS"
6107fi
6108
6109found="no"
6110
6111	if test $found = "no" ; then
6112		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6113			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6114		fi
6115
6116		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6117			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6118		fi
6119
6120		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6121
6122		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6123printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6124		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6125		if eval test \${$cacheid+y}
6126then :
6127  printf %s "(cached) " >&6
6128else $as_nop
6129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6130/* end confdefs.h.  */
6131int i;
6132int
6133main (void)
6134{
6135
6136  ;
6137  return 0;
6138}
6139_ACEOF
6140if ac_fn_c_try_link "$LINENO"
6141then :
6142  eval $cacheid=yes
6143else $as_nop
6144  eval $cacheid=no
6145fi
6146rm -f core conftest.err conftest.$ac_objext conftest.beam \
6147    conftest$ac_exeext conftest.$ac_ext
6148fi
6149
6150
6151		CFLAGS="$xorg_testset_save_CFLAGS"
6152
6153		eval supported=\$$cacheid
6154		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6155printf "%s\n" "$supported" >&6; }
6156		if test "$supported" = "yes" ; then
6157			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6158			found="yes"
6159		fi
6160	fi
6161
6162
6163
6164
6165
6166# This chunk adds additional warnings that could catch undesired effects.
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180xorg_testset_save_CFLAGS="$CFLAGS"
6181
6182if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6183	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6184	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6185printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6186if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6187then :
6188  printf %s "(cached) " >&6
6189else $as_nop
6190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191/* end confdefs.h.  */
6192int i;
6193_ACEOF
6194if ac_fn_c_try_compile "$LINENO"
6195then :
6196  xorg_cv_cc_flag_unknown_warning_option=yes
6197else $as_nop
6198  xorg_cv_cc_flag_unknown_warning_option=no
6199fi
6200rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6201fi
6202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6203printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6204	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6205	CFLAGS="$xorg_testset_save_CFLAGS"
6206fi
6207
6208if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6209	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6210		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6211	fi
6212	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6213	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6214printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6215if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6216then :
6217  printf %s "(cached) " >&6
6218else $as_nop
6219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6220/* end confdefs.h.  */
6221int i;
6222_ACEOF
6223if ac_fn_c_try_compile "$LINENO"
6224then :
6225  xorg_cv_cc_flag_unused_command_line_argument=yes
6226else $as_nop
6227  xorg_cv_cc_flag_unused_command_line_argument=no
6228fi
6229rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6230fi
6231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6232printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6233	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6234	CFLAGS="$xorg_testset_save_CFLAGS"
6235fi
6236
6237found="no"
6238
6239	if test $found = "no" ; then
6240		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6241			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6242		fi
6243
6244		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6245			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6246		fi
6247
6248		CFLAGS="$CFLAGS -Wunused"
6249
6250		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6251printf %s "checking if $CC supports -Wunused... " >&6; }
6252		cacheid=xorg_cv_cc_flag__Wunused
6253		if eval test \${$cacheid+y}
6254then :
6255  printf %s "(cached) " >&6
6256else $as_nop
6257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6258/* end confdefs.h.  */
6259int i;
6260int
6261main (void)
6262{
6263
6264  ;
6265  return 0;
6266}
6267_ACEOF
6268if ac_fn_c_try_link "$LINENO"
6269then :
6270  eval $cacheid=yes
6271else $as_nop
6272  eval $cacheid=no
6273fi
6274rm -f core conftest.err conftest.$ac_objext conftest.beam \
6275    conftest$ac_exeext conftest.$ac_ext
6276fi
6277
6278
6279		CFLAGS="$xorg_testset_save_CFLAGS"
6280
6281		eval supported=\$$cacheid
6282		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6283printf "%s\n" "$supported" >&6; }
6284		if test "$supported" = "yes" ; then
6285			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6286			found="yes"
6287		fi
6288	fi
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304xorg_testset_save_CFLAGS="$CFLAGS"
6305
6306if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6307	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6308	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6309printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6310if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6311then :
6312  printf %s "(cached) " >&6
6313else $as_nop
6314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6315/* end confdefs.h.  */
6316int i;
6317_ACEOF
6318if ac_fn_c_try_compile "$LINENO"
6319then :
6320  xorg_cv_cc_flag_unknown_warning_option=yes
6321else $as_nop
6322  xorg_cv_cc_flag_unknown_warning_option=no
6323fi
6324rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6325fi
6326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6327printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6328	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6329	CFLAGS="$xorg_testset_save_CFLAGS"
6330fi
6331
6332if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6333	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6334		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6335	fi
6336	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6337	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6338printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6339if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6340then :
6341  printf %s "(cached) " >&6
6342else $as_nop
6343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6344/* end confdefs.h.  */
6345int i;
6346_ACEOF
6347if ac_fn_c_try_compile "$LINENO"
6348then :
6349  xorg_cv_cc_flag_unused_command_line_argument=yes
6350else $as_nop
6351  xorg_cv_cc_flag_unused_command_line_argument=no
6352fi
6353rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6354fi
6355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6356printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6357	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6358	CFLAGS="$xorg_testset_save_CFLAGS"
6359fi
6360
6361found="no"
6362
6363	if test $found = "no" ; then
6364		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6365			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6366		fi
6367
6368		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6369			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6370		fi
6371
6372		CFLAGS="$CFLAGS -Wuninitialized"
6373
6374		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6375printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6376		cacheid=xorg_cv_cc_flag__Wuninitialized
6377		if eval test \${$cacheid+y}
6378then :
6379  printf %s "(cached) " >&6
6380else $as_nop
6381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6382/* end confdefs.h.  */
6383int i;
6384int
6385main (void)
6386{
6387
6388  ;
6389  return 0;
6390}
6391_ACEOF
6392if ac_fn_c_try_link "$LINENO"
6393then :
6394  eval $cacheid=yes
6395else $as_nop
6396  eval $cacheid=no
6397fi
6398rm -f core conftest.err conftest.$ac_objext conftest.beam \
6399    conftest$ac_exeext conftest.$ac_ext
6400fi
6401
6402
6403		CFLAGS="$xorg_testset_save_CFLAGS"
6404
6405		eval supported=\$$cacheid
6406		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6407printf "%s\n" "$supported" >&6; }
6408		if test "$supported" = "yes" ; then
6409			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6410			found="yes"
6411		fi
6412	fi
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428xorg_testset_save_CFLAGS="$CFLAGS"
6429
6430if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6431	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6432	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6433printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6434if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6435then :
6436  printf %s "(cached) " >&6
6437else $as_nop
6438  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6439/* end confdefs.h.  */
6440int i;
6441_ACEOF
6442if ac_fn_c_try_compile "$LINENO"
6443then :
6444  xorg_cv_cc_flag_unknown_warning_option=yes
6445else $as_nop
6446  xorg_cv_cc_flag_unknown_warning_option=no
6447fi
6448rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6449fi
6450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6451printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6452	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6453	CFLAGS="$xorg_testset_save_CFLAGS"
6454fi
6455
6456if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6457	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6458		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6459	fi
6460	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6461	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6462printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6463if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6464then :
6465  printf %s "(cached) " >&6
6466else $as_nop
6467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6468/* end confdefs.h.  */
6469int i;
6470_ACEOF
6471if ac_fn_c_try_compile "$LINENO"
6472then :
6473  xorg_cv_cc_flag_unused_command_line_argument=yes
6474else $as_nop
6475  xorg_cv_cc_flag_unused_command_line_argument=no
6476fi
6477rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6478fi
6479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6480printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6481	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6482	CFLAGS="$xorg_testset_save_CFLAGS"
6483fi
6484
6485found="no"
6486
6487	if test $found = "no" ; then
6488		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6489			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6490		fi
6491
6492		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6493			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6494		fi
6495
6496		CFLAGS="$CFLAGS -Wshadow"
6497
6498		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6499printf %s "checking if $CC supports -Wshadow... " >&6; }
6500		cacheid=xorg_cv_cc_flag__Wshadow
6501		if eval test \${$cacheid+y}
6502then :
6503  printf %s "(cached) " >&6
6504else $as_nop
6505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6506/* end confdefs.h.  */
6507int i;
6508int
6509main (void)
6510{
6511
6512  ;
6513  return 0;
6514}
6515_ACEOF
6516if ac_fn_c_try_link "$LINENO"
6517then :
6518  eval $cacheid=yes
6519else $as_nop
6520  eval $cacheid=no
6521fi
6522rm -f core conftest.err conftest.$ac_objext conftest.beam \
6523    conftest$ac_exeext conftest.$ac_ext
6524fi
6525
6526
6527		CFLAGS="$xorg_testset_save_CFLAGS"
6528
6529		eval supported=\$$cacheid
6530		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6531printf "%s\n" "$supported" >&6; }
6532		if test "$supported" = "yes" ; then
6533			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6534			found="yes"
6535		fi
6536	fi
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552xorg_testset_save_CFLAGS="$CFLAGS"
6553
6554if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6555	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6556	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6557printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6558if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6559then :
6560  printf %s "(cached) " >&6
6561else $as_nop
6562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6563/* end confdefs.h.  */
6564int i;
6565_ACEOF
6566if ac_fn_c_try_compile "$LINENO"
6567then :
6568  xorg_cv_cc_flag_unknown_warning_option=yes
6569else $as_nop
6570  xorg_cv_cc_flag_unknown_warning_option=no
6571fi
6572rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6573fi
6574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6575printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6576	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6577	CFLAGS="$xorg_testset_save_CFLAGS"
6578fi
6579
6580if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6581	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6582		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6583	fi
6584	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6585	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6586printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6587if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6588then :
6589  printf %s "(cached) " >&6
6590else $as_nop
6591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6592/* end confdefs.h.  */
6593int i;
6594_ACEOF
6595if ac_fn_c_try_compile "$LINENO"
6596then :
6597  xorg_cv_cc_flag_unused_command_line_argument=yes
6598else $as_nop
6599  xorg_cv_cc_flag_unused_command_line_argument=no
6600fi
6601rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6602fi
6603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6604printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6605	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6606	CFLAGS="$xorg_testset_save_CFLAGS"
6607fi
6608
6609found="no"
6610
6611	if test $found = "no" ; then
6612		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6613			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6614		fi
6615
6616		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6617			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6618		fi
6619
6620		CFLAGS="$CFLAGS -Wmissing-noreturn"
6621
6622		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6623printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6624		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6625		if eval test \${$cacheid+y}
6626then :
6627  printf %s "(cached) " >&6
6628else $as_nop
6629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630/* end confdefs.h.  */
6631int i;
6632int
6633main (void)
6634{
6635
6636  ;
6637  return 0;
6638}
6639_ACEOF
6640if ac_fn_c_try_link "$LINENO"
6641then :
6642  eval $cacheid=yes
6643else $as_nop
6644  eval $cacheid=no
6645fi
6646rm -f core conftest.err conftest.$ac_objext conftest.beam \
6647    conftest$ac_exeext conftest.$ac_ext
6648fi
6649
6650
6651		CFLAGS="$xorg_testset_save_CFLAGS"
6652
6653		eval supported=\$$cacheid
6654		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6655printf "%s\n" "$supported" >&6; }
6656		if test "$supported" = "yes" ; then
6657			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6658			found="yes"
6659		fi
6660	fi
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676xorg_testset_save_CFLAGS="$CFLAGS"
6677
6678if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6679	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6680	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6681printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6682if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6683then :
6684  printf %s "(cached) " >&6
6685else $as_nop
6686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6687/* end confdefs.h.  */
6688int i;
6689_ACEOF
6690if ac_fn_c_try_compile "$LINENO"
6691then :
6692  xorg_cv_cc_flag_unknown_warning_option=yes
6693else $as_nop
6694  xorg_cv_cc_flag_unknown_warning_option=no
6695fi
6696rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6697fi
6698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6699printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6700	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6701	CFLAGS="$xorg_testset_save_CFLAGS"
6702fi
6703
6704if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6705	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6706		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6707	fi
6708	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6709	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6710printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6711if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6712then :
6713  printf %s "(cached) " >&6
6714else $as_nop
6715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6716/* end confdefs.h.  */
6717int i;
6718_ACEOF
6719if ac_fn_c_try_compile "$LINENO"
6720then :
6721  xorg_cv_cc_flag_unused_command_line_argument=yes
6722else $as_nop
6723  xorg_cv_cc_flag_unused_command_line_argument=no
6724fi
6725rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6726fi
6727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6728printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6729	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6730	CFLAGS="$xorg_testset_save_CFLAGS"
6731fi
6732
6733found="no"
6734
6735	if test $found = "no" ; then
6736		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6737			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6738		fi
6739
6740		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6741			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6742		fi
6743
6744		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6745
6746		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6747printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6748		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6749		if eval test \${$cacheid+y}
6750then :
6751  printf %s "(cached) " >&6
6752else $as_nop
6753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754/* end confdefs.h.  */
6755int i;
6756int
6757main (void)
6758{
6759
6760  ;
6761  return 0;
6762}
6763_ACEOF
6764if ac_fn_c_try_link "$LINENO"
6765then :
6766  eval $cacheid=yes
6767else $as_nop
6768  eval $cacheid=no
6769fi
6770rm -f core conftest.err conftest.$ac_objext conftest.beam \
6771    conftest$ac_exeext conftest.$ac_ext
6772fi
6773
6774
6775		CFLAGS="$xorg_testset_save_CFLAGS"
6776
6777		eval supported=\$$cacheid
6778		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6779printf "%s\n" "$supported" >&6; }
6780		if test "$supported" = "yes" ; then
6781			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6782			found="yes"
6783		fi
6784	fi
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800xorg_testset_save_CFLAGS="$CFLAGS"
6801
6802if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6803	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6804	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6805printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6806if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6807then :
6808  printf %s "(cached) " >&6
6809else $as_nop
6810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6811/* end confdefs.h.  */
6812int i;
6813_ACEOF
6814if ac_fn_c_try_compile "$LINENO"
6815then :
6816  xorg_cv_cc_flag_unknown_warning_option=yes
6817else $as_nop
6818  xorg_cv_cc_flag_unknown_warning_option=no
6819fi
6820rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6821fi
6822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6823printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6824	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6825	CFLAGS="$xorg_testset_save_CFLAGS"
6826fi
6827
6828if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6829	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6830		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6831	fi
6832	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6833	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6834printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6835if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6836then :
6837  printf %s "(cached) " >&6
6838else $as_nop
6839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6840/* end confdefs.h.  */
6841int i;
6842_ACEOF
6843if ac_fn_c_try_compile "$LINENO"
6844then :
6845  xorg_cv_cc_flag_unused_command_line_argument=yes
6846else $as_nop
6847  xorg_cv_cc_flag_unused_command_line_argument=no
6848fi
6849rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6850fi
6851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6852printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6853	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6854	CFLAGS="$xorg_testset_save_CFLAGS"
6855fi
6856
6857found="no"
6858
6859	if test $found = "no" ; then
6860		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6861			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6862		fi
6863
6864		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6865			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6866		fi
6867
6868		CFLAGS="$CFLAGS -Wredundant-decls"
6869
6870		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6871printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
6872		cacheid=xorg_cv_cc_flag__Wredundant_decls
6873		if eval test \${$cacheid+y}
6874then :
6875  printf %s "(cached) " >&6
6876else $as_nop
6877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6878/* end confdefs.h.  */
6879int i;
6880int
6881main (void)
6882{
6883
6884  ;
6885  return 0;
6886}
6887_ACEOF
6888if ac_fn_c_try_link "$LINENO"
6889then :
6890  eval $cacheid=yes
6891else $as_nop
6892  eval $cacheid=no
6893fi
6894rm -f core conftest.err conftest.$ac_objext conftest.beam \
6895    conftest$ac_exeext conftest.$ac_ext
6896fi
6897
6898
6899		CFLAGS="$xorg_testset_save_CFLAGS"
6900
6901		eval supported=\$$cacheid
6902		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6903printf "%s\n" "$supported" >&6; }
6904		if test "$supported" = "yes" ; then
6905			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6906			found="yes"
6907		fi
6908	fi
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924xorg_testset_save_CFLAGS="$CFLAGS"
6925
6926if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6927	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6928	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6929printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6930if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6931then :
6932  printf %s "(cached) " >&6
6933else $as_nop
6934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6935/* end confdefs.h.  */
6936int i;
6937_ACEOF
6938if ac_fn_c_try_compile "$LINENO"
6939then :
6940  xorg_cv_cc_flag_unknown_warning_option=yes
6941else $as_nop
6942  xorg_cv_cc_flag_unknown_warning_option=no
6943fi
6944rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6945fi
6946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6947printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6948	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6949	CFLAGS="$xorg_testset_save_CFLAGS"
6950fi
6951
6952if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6953	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6954		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6955	fi
6956	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6957	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6958printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6959if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6960then :
6961  printf %s "(cached) " >&6
6962else $as_nop
6963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6964/* end confdefs.h.  */
6965int i;
6966_ACEOF
6967if ac_fn_c_try_compile "$LINENO"
6968then :
6969  xorg_cv_cc_flag_unused_command_line_argument=yes
6970else $as_nop
6971  xorg_cv_cc_flag_unused_command_line_argument=no
6972fi
6973rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6974fi
6975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6976printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6977	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6978	CFLAGS="$xorg_testset_save_CFLAGS"
6979fi
6980
6981found="no"
6982
6983	if test $found = "no" ; then
6984		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6985			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6986		fi
6987
6988		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6989			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6990		fi
6991
6992		CFLAGS="$CFLAGS -Wlogical-op"
6993
6994		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6995printf %s "checking if $CC supports -Wlogical-op... " >&6; }
6996		cacheid=xorg_cv_cc_flag__Wlogical_op
6997		if eval test \${$cacheid+y}
6998then :
6999  printf %s "(cached) " >&6
7000else $as_nop
7001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7002/* end confdefs.h.  */
7003int i;
7004int
7005main (void)
7006{
7007
7008  ;
7009  return 0;
7010}
7011_ACEOF
7012if ac_fn_c_try_link "$LINENO"
7013then :
7014  eval $cacheid=yes
7015else $as_nop
7016  eval $cacheid=no
7017fi
7018rm -f core conftest.err conftest.$ac_objext conftest.beam \
7019    conftest$ac_exeext conftest.$ac_ext
7020fi
7021
7022
7023		CFLAGS="$xorg_testset_save_CFLAGS"
7024
7025		eval supported=\$$cacheid
7026		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7027printf "%s\n" "$supported" >&6; }
7028		if test "$supported" = "yes" ; then
7029			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7030			found="yes"
7031		fi
7032	fi
7033
7034
7035
7036# These are currently disabled because they are noisy.  They will be enabled
7037# in the future once the codebase is sufficiently modernized to silence
7038# them.  For now, I don't want them to drown out the other warnings.
7039# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7040# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7041# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7042
7043# Turn some warnings into errors, so we don't accidently get successful builds
7044# when there are problems that should be fixed.
7045
7046if test "x$SELECTIVE_WERROR" = "xyes" ; then
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060xorg_testset_save_CFLAGS="$CFLAGS"
7061
7062if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7063	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7064	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7065printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7066if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7067then :
7068  printf %s "(cached) " >&6
7069else $as_nop
7070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7071/* end confdefs.h.  */
7072int i;
7073_ACEOF
7074if ac_fn_c_try_compile "$LINENO"
7075then :
7076  xorg_cv_cc_flag_unknown_warning_option=yes
7077else $as_nop
7078  xorg_cv_cc_flag_unknown_warning_option=no
7079fi
7080rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7081fi
7082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7083printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7084	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7085	CFLAGS="$xorg_testset_save_CFLAGS"
7086fi
7087
7088if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7089	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7090		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7091	fi
7092	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7093	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7094printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7095if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7096then :
7097  printf %s "(cached) " >&6
7098else $as_nop
7099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7100/* end confdefs.h.  */
7101int i;
7102_ACEOF
7103if ac_fn_c_try_compile "$LINENO"
7104then :
7105  xorg_cv_cc_flag_unused_command_line_argument=yes
7106else $as_nop
7107  xorg_cv_cc_flag_unused_command_line_argument=no
7108fi
7109rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7110fi
7111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7112printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7113	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7114	CFLAGS="$xorg_testset_save_CFLAGS"
7115fi
7116
7117found="no"
7118
7119	if test $found = "no" ; then
7120		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7121			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7122		fi
7123
7124		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7125			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7126		fi
7127
7128		CFLAGS="$CFLAGS -Werror=implicit"
7129
7130		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7131printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7132		cacheid=xorg_cv_cc_flag__Werror_implicit
7133		if eval test \${$cacheid+y}
7134then :
7135  printf %s "(cached) " >&6
7136else $as_nop
7137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7138/* end confdefs.h.  */
7139int i;
7140int
7141main (void)
7142{
7143
7144  ;
7145  return 0;
7146}
7147_ACEOF
7148if ac_fn_c_try_link "$LINENO"
7149then :
7150  eval $cacheid=yes
7151else $as_nop
7152  eval $cacheid=no
7153fi
7154rm -f core conftest.err conftest.$ac_objext conftest.beam \
7155    conftest$ac_exeext conftest.$ac_ext
7156fi
7157
7158
7159		CFLAGS="$xorg_testset_save_CFLAGS"
7160
7161		eval supported=\$$cacheid
7162		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7163printf "%s\n" "$supported" >&6; }
7164		if test "$supported" = "yes" ; then
7165			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7166			found="yes"
7167		fi
7168	fi
7169
7170	if test $found = "no" ; then
7171		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7172			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7173		fi
7174
7175		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7176			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7177		fi
7178
7179		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7180
7181		{ 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
7182printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7183		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7184		if eval test \${$cacheid+y}
7185then :
7186  printf %s "(cached) " >&6
7187else $as_nop
7188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7189/* end confdefs.h.  */
7190int i;
7191int
7192main (void)
7193{
7194
7195  ;
7196  return 0;
7197}
7198_ACEOF
7199if ac_fn_c_try_link "$LINENO"
7200then :
7201  eval $cacheid=yes
7202else $as_nop
7203  eval $cacheid=no
7204fi
7205rm -f core conftest.err conftest.$ac_objext conftest.beam \
7206    conftest$ac_exeext conftest.$ac_ext
7207fi
7208
7209
7210		CFLAGS="$xorg_testset_save_CFLAGS"
7211
7212		eval supported=\$$cacheid
7213		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7214printf "%s\n" "$supported" >&6; }
7215		if test "$supported" = "yes" ; then
7216			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7217			found="yes"
7218		fi
7219	fi
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235xorg_testset_save_CFLAGS="$CFLAGS"
7236
7237if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7238	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7239	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7240printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7241if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7242then :
7243  printf %s "(cached) " >&6
7244else $as_nop
7245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7246/* end confdefs.h.  */
7247int i;
7248_ACEOF
7249if ac_fn_c_try_compile "$LINENO"
7250then :
7251  xorg_cv_cc_flag_unknown_warning_option=yes
7252else $as_nop
7253  xorg_cv_cc_flag_unknown_warning_option=no
7254fi
7255rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7256fi
7257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7258printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7259	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7260	CFLAGS="$xorg_testset_save_CFLAGS"
7261fi
7262
7263if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7264	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7265		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7266	fi
7267	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7268	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7269printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7270if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7271then :
7272  printf %s "(cached) " >&6
7273else $as_nop
7274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7275/* end confdefs.h.  */
7276int i;
7277_ACEOF
7278if ac_fn_c_try_compile "$LINENO"
7279then :
7280  xorg_cv_cc_flag_unused_command_line_argument=yes
7281else $as_nop
7282  xorg_cv_cc_flag_unused_command_line_argument=no
7283fi
7284rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7285fi
7286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7287printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7288	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7289	CFLAGS="$xorg_testset_save_CFLAGS"
7290fi
7291
7292found="no"
7293
7294	if test $found = "no" ; then
7295		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7296			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7297		fi
7298
7299		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7300			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7301		fi
7302
7303		CFLAGS="$CFLAGS -Werror=nonnull"
7304
7305		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7306printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7307		cacheid=xorg_cv_cc_flag__Werror_nonnull
7308		if eval test \${$cacheid+y}
7309then :
7310  printf %s "(cached) " >&6
7311else $as_nop
7312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7313/* end confdefs.h.  */
7314int i;
7315int
7316main (void)
7317{
7318
7319  ;
7320  return 0;
7321}
7322_ACEOF
7323if ac_fn_c_try_link "$LINENO"
7324then :
7325  eval $cacheid=yes
7326else $as_nop
7327  eval $cacheid=no
7328fi
7329rm -f core conftest.err conftest.$ac_objext conftest.beam \
7330    conftest$ac_exeext conftest.$ac_ext
7331fi
7332
7333
7334		CFLAGS="$xorg_testset_save_CFLAGS"
7335
7336		eval supported=\$$cacheid
7337		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7338printf "%s\n" "$supported" >&6; }
7339		if test "$supported" = "yes" ; then
7340			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7341			found="yes"
7342		fi
7343	fi
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359xorg_testset_save_CFLAGS="$CFLAGS"
7360
7361if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7362	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7363	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7364printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7365if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7366then :
7367  printf %s "(cached) " >&6
7368else $as_nop
7369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7370/* end confdefs.h.  */
7371int i;
7372_ACEOF
7373if ac_fn_c_try_compile "$LINENO"
7374then :
7375  xorg_cv_cc_flag_unknown_warning_option=yes
7376else $as_nop
7377  xorg_cv_cc_flag_unknown_warning_option=no
7378fi
7379rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7380fi
7381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7382printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7383	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7384	CFLAGS="$xorg_testset_save_CFLAGS"
7385fi
7386
7387if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7388	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7389		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7390	fi
7391	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7392	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7393printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7394if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7395then :
7396  printf %s "(cached) " >&6
7397else $as_nop
7398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7399/* end confdefs.h.  */
7400int i;
7401_ACEOF
7402if ac_fn_c_try_compile "$LINENO"
7403then :
7404  xorg_cv_cc_flag_unused_command_line_argument=yes
7405else $as_nop
7406  xorg_cv_cc_flag_unused_command_line_argument=no
7407fi
7408rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7409fi
7410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7411printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7412	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7413	CFLAGS="$xorg_testset_save_CFLAGS"
7414fi
7415
7416found="no"
7417
7418	if test $found = "no" ; then
7419		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7420			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7421		fi
7422
7423		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7424			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7425		fi
7426
7427		CFLAGS="$CFLAGS -Werror=init-self"
7428
7429		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7430printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7431		cacheid=xorg_cv_cc_flag__Werror_init_self
7432		if eval test \${$cacheid+y}
7433then :
7434  printf %s "(cached) " >&6
7435else $as_nop
7436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7437/* end confdefs.h.  */
7438int i;
7439int
7440main (void)
7441{
7442
7443  ;
7444  return 0;
7445}
7446_ACEOF
7447if ac_fn_c_try_link "$LINENO"
7448then :
7449  eval $cacheid=yes
7450else $as_nop
7451  eval $cacheid=no
7452fi
7453rm -f core conftest.err conftest.$ac_objext conftest.beam \
7454    conftest$ac_exeext conftest.$ac_ext
7455fi
7456
7457
7458		CFLAGS="$xorg_testset_save_CFLAGS"
7459
7460		eval supported=\$$cacheid
7461		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7462printf "%s\n" "$supported" >&6; }
7463		if test "$supported" = "yes" ; then
7464			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7465			found="yes"
7466		fi
7467	fi
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483xorg_testset_save_CFLAGS="$CFLAGS"
7484
7485if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7486	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7487	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7488printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7489if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7490then :
7491  printf %s "(cached) " >&6
7492else $as_nop
7493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494/* end confdefs.h.  */
7495int i;
7496_ACEOF
7497if ac_fn_c_try_compile "$LINENO"
7498then :
7499  xorg_cv_cc_flag_unknown_warning_option=yes
7500else $as_nop
7501  xorg_cv_cc_flag_unknown_warning_option=no
7502fi
7503rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7504fi
7505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7506printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7507	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7508	CFLAGS="$xorg_testset_save_CFLAGS"
7509fi
7510
7511if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7512	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7513		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7514	fi
7515	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7516	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7517printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7518if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7519then :
7520  printf %s "(cached) " >&6
7521else $as_nop
7522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523/* end confdefs.h.  */
7524int i;
7525_ACEOF
7526if ac_fn_c_try_compile "$LINENO"
7527then :
7528  xorg_cv_cc_flag_unused_command_line_argument=yes
7529else $as_nop
7530  xorg_cv_cc_flag_unused_command_line_argument=no
7531fi
7532rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7533fi
7534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7535printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7536	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7537	CFLAGS="$xorg_testset_save_CFLAGS"
7538fi
7539
7540found="no"
7541
7542	if test $found = "no" ; then
7543		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7544			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7545		fi
7546
7547		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7548			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7549		fi
7550
7551		CFLAGS="$CFLAGS -Werror=main"
7552
7553		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7554printf %s "checking if $CC supports -Werror=main... " >&6; }
7555		cacheid=xorg_cv_cc_flag__Werror_main
7556		if eval test \${$cacheid+y}
7557then :
7558  printf %s "(cached) " >&6
7559else $as_nop
7560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7561/* end confdefs.h.  */
7562int i;
7563int
7564main (void)
7565{
7566
7567  ;
7568  return 0;
7569}
7570_ACEOF
7571if ac_fn_c_try_link "$LINENO"
7572then :
7573  eval $cacheid=yes
7574else $as_nop
7575  eval $cacheid=no
7576fi
7577rm -f core conftest.err conftest.$ac_objext conftest.beam \
7578    conftest$ac_exeext conftest.$ac_ext
7579fi
7580
7581
7582		CFLAGS="$xorg_testset_save_CFLAGS"
7583
7584		eval supported=\$$cacheid
7585		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7586printf "%s\n" "$supported" >&6; }
7587		if test "$supported" = "yes" ; then
7588			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7589			found="yes"
7590		fi
7591	fi
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607xorg_testset_save_CFLAGS="$CFLAGS"
7608
7609if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7610	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7611	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7612printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7613if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7614then :
7615  printf %s "(cached) " >&6
7616else $as_nop
7617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618/* end confdefs.h.  */
7619int i;
7620_ACEOF
7621if ac_fn_c_try_compile "$LINENO"
7622then :
7623  xorg_cv_cc_flag_unknown_warning_option=yes
7624else $as_nop
7625  xorg_cv_cc_flag_unknown_warning_option=no
7626fi
7627rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7628fi
7629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7630printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7631	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7632	CFLAGS="$xorg_testset_save_CFLAGS"
7633fi
7634
7635if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7636	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7637		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7638	fi
7639	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7640	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7641printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7642if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7643then :
7644  printf %s "(cached) " >&6
7645else $as_nop
7646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7647/* end confdefs.h.  */
7648int i;
7649_ACEOF
7650if ac_fn_c_try_compile "$LINENO"
7651then :
7652  xorg_cv_cc_flag_unused_command_line_argument=yes
7653else $as_nop
7654  xorg_cv_cc_flag_unused_command_line_argument=no
7655fi
7656rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7657fi
7658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7659printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7660	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7661	CFLAGS="$xorg_testset_save_CFLAGS"
7662fi
7663
7664found="no"
7665
7666	if test $found = "no" ; then
7667		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7668			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7669		fi
7670
7671		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7672			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7673		fi
7674
7675		CFLAGS="$CFLAGS -Werror=missing-braces"
7676
7677		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7678printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7679		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7680		if eval test \${$cacheid+y}
7681then :
7682  printf %s "(cached) " >&6
7683else $as_nop
7684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7685/* end confdefs.h.  */
7686int i;
7687int
7688main (void)
7689{
7690
7691  ;
7692  return 0;
7693}
7694_ACEOF
7695if ac_fn_c_try_link "$LINENO"
7696then :
7697  eval $cacheid=yes
7698else $as_nop
7699  eval $cacheid=no
7700fi
7701rm -f core conftest.err conftest.$ac_objext conftest.beam \
7702    conftest$ac_exeext conftest.$ac_ext
7703fi
7704
7705
7706		CFLAGS="$xorg_testset_save_CFLAGS"
7707
7708		eval supported=\$$cacheid
7709		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7710printf "%s\n" "$supported" >&6; }
7711		if test "$supported" = "yes" ; then
7712			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7713			found="yes"
7714		fi
7715	fi
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731xorg_testset_save_CFLAGS="$CFLAGS"
7732
7733if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7734	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7735	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7736printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7737if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7738then :
7739  printf %s "(cached) " >&6
7740else $as_nop
7741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7742/* end confdefs.h.  */
7743int i;
7744_ACEOF
7745if ac_fn_c_try_compile "$LINENO"
7746then :
7747  xorg_cv_cc_flag_unknown_warning_option=yes
7748else $as_nop
7749  xorg_cv_cc_flag_unknown_warning_option=no
7750fi
7751rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7752fi
7753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7754printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7755	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7756	CFLAGS="$xorg_testset_save_CFLAGS"
7757fi
7758
7759if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7760	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7761		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7762	fi
7763	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7764	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7765printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7766if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7767then :
7768  printf %s "(cached) " >&6
7769else $as_nop
7770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7771/* end confdefs.h.  */
7772int i;
7773_ACEOF
7774if ac_fn_c_try_compile "$LINENO"
7775then :
7776  xorg_cv_cc_flag_unused_command_line_argument=yes
7777else $as_nop
7778  xorg_cv_cc_flag_unused_command_line_argument=no
7779fi
7780rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7781fi
7782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7783printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7784	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7785	CFLAGS="$xorg_testset_save_CFLAGS"
7786fi
7787
7788found="no"
7789
7790	if test $found = "no" ; then
7791		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7792			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7793		fi
7794
7795		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7796			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7797		fi
7798
7799		CFLAGS="$CFLAGS -Werror=sequence-point"
7800
7801		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7802printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7803		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7804		if eval test \${$cacheid+y}
7805then :
7806  printf %s "(cached) " >&6
7807else $as_nop
7808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7809/* end confdefs.h.  */
7810int i;
7811int
7812main (void)
7813{
7814
7815  ;
7816  return 0;
7817}
7818_ACEOF
7819if ac_fn_c_try_link "$LINENO"
7820then :
7821  eval $cacheid=yes
7822else $as_nop
7823  eval $cacheid=no
7824fi
7825rm -f core conftest.err conftest.$ac_objext conftest.beam \
7826    conftest$ac_exeext conftest.$ac_ext
7827fi
7828
7829
7830		CFLAGS="$xorg_testset_save_CFLAGS"
7831
7832		eval supported=\$$cacheid
7833		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7834printf "%s\n" "$supported" >&6; }
7835		if test "$supported" = "yes" ; then
7836			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7837			found="yes"
7838		fi
7839	fi
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855xorg_testset_save_CFLAGS="$CFLAGS"
7856
7857if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7858	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7859	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7860printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7861if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7862then :
7863  printf %s "(cached) " >&6
7864else $as_nop
7865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7866/* end confdefs.h.  */
7867int i;
7868_ACEOF
7869if ac_fn_c_try_compile "$LINENO"
7870then :
7871  xorg_cv_cc_flag_unknown_warning_option=yes
7872else $as_nop
7873  xorg_cv_cc_flag_unknown_warning_option=no
7874fi
7875rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7876fi
7877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7878printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7879	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7880	CFLAGS="$xorg_testset_save_CFLAGS"
7881fi
7882
7883if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7884	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7885		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7886	fi
7887	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7888	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7889printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7890if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7891then :
7892  printf %s "(cached) " >&6
7893else $as_nop
7894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7895/* end confdefs.h.  */
7896int i;
7897_ACEOF
7898if ac_fn_c_try_compile "$LINENO"
7899then :
7900  xorg_cv_cc_flag_unused_command_line_argument=yes
7901else $as_nop
7902  xorg_cv_cc_flag_unused_command_line_argument=no
7903fi
7904rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7905fi
7906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7907printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7908	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7909	CFLAGS="$xorg_testset_save_CFLAGS"
7910fi
7911
7912found="no"
7913
7914	if test $found = "no" ; then
7915		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7916			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7917		fi
7918
7919		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7920			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7921		fi
7922
7923		CFLAGS="$CFLAGS -Werror=return-type"
7924
7925		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7926printf %s "checking if $CC supports -Werror=return-type... " >&6; }
7927		cacheid=xorg_cv_cc_flag__Werror_return_type
7928		if eval test \${$cacheid+y}
7929then :
7930  printf %s "(cached) " >&6
7931else $as_nop
7932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7933/* end confdefs.h.  */
7934int i;
7935int
7936main (void)
7937{
7938
7939  ;
7940  return 0;
7941}
7942_ACEOF
7943if ac_fn_c_try_link "$LINENO"
7944then :
7945  eval $cacheid=yes
7946else $as_nop
7947  eval $cacheid=no
7948fi
7949rm -f core conftest.err conftest.$ac_objext conftest.beam \
7950    conftest$ac_exeext conftest.$ac_ext
7951fi
7952
7953
7954		CFLAGS="$xorg_testset_save_CFLAGS"
7955
7956		eval supported=\$$cacheid
7957		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7958printf "%s\n" "$supported" >&6; }
7959		if test "$supported" = "yes" ; then
7960			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7961			found="yes"
7962		fi
7963	fi
7964
7965	if test $found = "no" ; then
7966		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7967			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7968		fi
7969
7970		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7971			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7972		fi
7973
7974		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7975
7976		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7977printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7978		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7979		if eval test \${$cacheid+y}
7980then :
7981  printf %s "(cached) " >&6
7982else $as_nop
7983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7984/* end confdefs.h.  */
7985int i;
7986int
7987main (void)
7988{
7989
7990  ;
7991  return 0;
7992}
7993_ACEOF
7994if ac_fn_c_try_link "$LINENO"
7995then :
7996  eval $cacheid=yes
7997else $as_nop
7998  eval $cacheid=no
7999fi
8000rm -f core conftest.err conftest.$ac_objext conftest.beam \
8001    conftest$ac_exeext conftest.$ac_ext
8002fi
8003
8004
8005		CFLAGS="$xorg_testset_save_CFLAGS"
8006
8007		eval supported=\$$cacheid
8008		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8009printf "%s\n" "$supported" >&6; }
8010		if test "$supported" = "yes" ; then
8011			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8012			found="yes"
8013		fi
8014	fi
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030xorg_testset_save_CFLAGS="$CFLAGS"
8031
8032if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8033	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8034	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8035printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8036if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8037then :
8038  printf %s "(cached) " >&6
8039else $as_nop
8040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8041/* end confdefs.h.  */
8042int i;
8043_ACEOF
8044if ac_fn_c_try_compile "$LINENO"
8045then :
8046  xorg_cv_cc_flag_unknown_warning_option=yes
8047else $as_nop
8048  xorg_cv_cc_flag_unknown_warning_option=no
8049fi
8050rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8051fi
8052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8053printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8054	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8055	CFLAGS="$xorg_testset_save_CFLAGS"
8056fi
8057
8058if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8059	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8060		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8061	fi
8062	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8063	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8064printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8065if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8066then :
8067  printf %s "(cached) " >&6
8068else $as_nop
8069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8070/* end confdefs.h.  */
8071int i;
8072_ACEOF
8073if ac_fn_c_try_compile "$LINENO"
8074then :
8075  xorg_cv_cc_flag_unused_command_line_argument=yes
8076else $as_nop
8077  xorg_cv_cc_flag_unused_command_line_argument=no
8078fi
8079rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8080fi
8081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8082printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8083	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8084	CFLAGS="$xorg_testset_save_CFLAGS"
8085fi
8086
8087found="no"
8088
8089	if test $found = "no" ; then
8090		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8091			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8092		fi
8093
8094		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8095			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8096		fi
8097
8098		CFLAGS="$CFLAGS -Werror=trigraphs"
8099
8100		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8101printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8102		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8103		if eval test \${$cacheid+y}
8104then :
8105  printf %s "(cached) " >&6
8106else $as_nop
8107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8108/* end confdefs.h.  */
8109int i;
8110int
8111main (void)
8112{
8113
8114  ;
8115  return 0;
8116}
8117_ACEOF
8118if ac_fn_c_try_link "$LINENO"
8119then :
8120  eval $cacheid=yes
8121else $as_nop
8122  eval $cacheid=no
8123fi
8124rm -f core conftest.err conftest.$ac_objext conftest.beam \
8125    conftest$ac_exeext conftest.$ac_ext
8126fi
8127
8128
8129		CFLAGS="$xorg_testset_save_CFLAGS"
8130
8131		eval supported=\$$cacheid
8132		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8133printf "%s\n" "$supported" >&6; }
8134		if test "$supported" = "yes" ; then
8135			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8136			found="yes"
8137		fi
8138	fi
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154xorg_testset_save_CFLAGS="$CFLAGS"
8155
8156if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8157	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8158	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8159printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8160if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8161then :
8162  printf %s "(cached) " >&6
8163else $as_nop
8164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165/* end confdefs.h.  */
8166int i;
8167_ACEOF
8168if ac_fn_c_try_compile "$LINENO"
8169then :
8170  xorg_cv_cc_flag_unknown_warning_option=yes
8171else $as_nop
8172  xorg_cv_cc_flag_unknown_warning_option=no
8173fi
8174rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8175fi
8176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8177printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8178	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8179	CFLAGS="$xorg_testset_save_CFLAGS"
8180fi
8181
8182if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8183	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8184		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8185	fi
8186	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8187	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8188printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8189if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8190then :
8191  printf %s "(cached) " >&6
8192else $as_nop
8193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8194/* end confdefs.h.  */
8195int i;
8196_ACEOF
8197if ac_fn_c_try_compile "$LINENO"
8198then :
8199  xorg_cv_cc_flag_unused_command_line_argument=yes
8200else $as_nop
8201  xorg_cv_cc_flag_unused_command_line_argument=no
8202fi
8203rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8204fi
8205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8206printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8207	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8208	CFLAGS="$xorg_testset_save_CFLAGS"
8209fi
8210
8211found="no"
8212
8213	if test $found = "no" ; then
8214		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8215			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8216		fi
8217
8218		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8219			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8220		fi
8221
8222		CFLAGS="$CFLAGS -Werror=array-bounds"
8223
8224		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8225printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8226		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8227		if eval test \${$cacheid+y}
8228then :
8229  printf %s "(cached) " >&6
8230else $as_nop
8231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8232/* end confdefs.h.  */
8233int i;
8234int
8235main (void)
8236{
8237
8238  ;
8239  return 0;
8240}
8241_ACEOF
8242if ac_fn_c_try_link "$LINENO"
8243then :
8244  eval $cacheid=yes
8245else $as_nop
8246  eval $cacheid=no
8247fi
8248rm -f core conftest.err conftest.$ac_objext conftest.beam \
8249    conftest$ac_exeext conftest.$ac_ext
8250fi
8251
8252
8253		CFLAGS="$xorg_testset_save_CFLAGS"
8254
8255		eval supported=\$$cacheid
8256		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8257printf "%s\n" "$supported" >&6; }
8258		if test "$supported" = "yes" ; then
8259			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8260			found="yes"
8261		fi
8262	fi
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278xorg_testset_save_CFLAGS="$CFLAGS"
8279
8280if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8281	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8282	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8283printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8284if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8285then :
8286  printf %s "(cached) " >&6
8287else $as_nop
8288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8289/* end confdefs.h.  */
8290int i;
8291_ACEOF
8292if ac_fn_c_try_compile "$LINENO"
8293then :
8294  xorg_cv_cc_flag_unknown_warning_option=yes
8295else $as_nop
8296  xorg_cv_cc_flag_unknown_warning_option=no
8297fi
8298rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8299fi
8300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8301printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8302	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8303	CFLAGS="$xorg_testset_save_CFLAGS"
8304fi
8305
8306if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8307	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8308		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8309	fi
8310	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8311	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8312printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8313if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8314then :
8315  printf %s "(cached) " >&6
8316else $as_nop
8317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8318/* end confdefs.h.  */
8319int i;
8320_ACEOF
8321if ac_fn_c_try_compile "$LINENO"
8322then :
8323  xorg_cv_cc_flag_unused_command_line_argument=yes
8324else $as_nop
8325  xorg_cv_cc_flag_unused_command_line_argument=no
8326fi
8327rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8328fi
8329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8330printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8331	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8332	CFLAGS="$xorg_testset_save_CFLAGS"
8333fi
8334
8335found="no"
8336
8337	if test $found = "no" ; then
8338		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8339			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8340		fi
8341
8342		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8343			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8344		fi
8345
8346		CFLAGS="$CFLAGS -Werror=write-strings"
8347
8348		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8349printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8350		cacheid=xorg_cv_cc_flag__Werror_write_strings
8351		if eval test \${$cacheid+y}
8352then :
8353  printf %s "(cached) " >&6
8354else $as_nop
8355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8356/* end confdefs.h.  */
8357int i;
8358int
8359main (void)
8360{
8361
8362  ;
8363  return 0;
8364}
8365_ACEOF
8366if ac_fn_c_try_link "$LINENO"
8367then :
8368  eval $cacheid=yes
8369else $as_nop
8370  eval $cacheid=no
8371fi
8372rm -f core conftest.err conftest.$ac_objext conftest.beam \
8373    conftest$ac_exeext conftest.$ac_ext
8374fi
8375
8376
8377		CFLAGS="$xorg_testset_save_CFLAGS"
8378
8379		eval supported=\$$cacheid
8380		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8381printf "%s\n" "$supported" >&6; }
8382		if test "$supported" = "yes" ; then
8383			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8384			found="yes"
8385		fi
8386	fi
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402xorg_testset_save_CFLAGS="$CFLAGS"
8403
8404if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8405	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8406	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8407printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8408if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8409then :
8410  printf %s "(cached) " >&6
8411else $as_nop
8412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8413/* end confdefs.h.  */
8414int i;
8415_ACEOF
8416if ac_fn_c_try_compile "$LINENO"
8417then :
8418  xorg_cv_cc_flag_unknown_warning_option=yes
8419else $as_nop
8420  xorg_cv_cc_flag_unknown_warning_option=no
8421fi
8422rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8423fi
8424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8425printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8426	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8427	CFLAGS="$xorg_testset_save_CFLAGS"
8428fi
8429
8430if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8431	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8432		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8433	fi
8434	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8435	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8436printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8437if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8438then :
8439  printf %s "(cached) " >&6
8440else $as_nop
8441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8442/* end confdefs.h.  */
8443int i;
8444_ACEOF
8445if ac_fn_c_try_compile "$LINENO"
8446then :
8447  xorg_cv_cc_flag_unused_command_line_argument=yes
8448else $as_nop
8449  xorg_cv_cc_flag_unused_command_line_argument=no
8450fi
8451rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8452fi
8453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8454printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8455	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8456	CFLAGS="$xorg_testset_save_CFLAGS"
8457fi
8458
8459found="no"
8460
8461	if test $found = "no" ; then
8462		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8463			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8464		fi
8465
8466		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8467			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8468		fi
8469
8470		CFLAGS="$CFLAGS -Werror=address"
8471
8472		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8473printf %s "checking if $CC supports -Werror=address... " >&6; }
8474		cacheid=xorg_cv_cc_flag__Werror_address
8475		if eval test \${$cacheid+y}
8476then :
8477  printf %s "(cached) " >&6
8478else $as_nop
8479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8480/* end confdefs.h.  */
8481int i;
8482int
8483main (void)
8484{
8485
8486  ;
8487  return 0;
8488}
8489_ACEOF
8490if ac_fn_c_try_link "$LINENO"
8491then :
8492  eval $cacheid=yes
8493else $as_nop
8494  eval $cacheid=no
8495fi
8496rm -f core conftest.err conftest.$ac_objext conftest.beam \
8497    conftest$ac_exeext conftest.$ac_ext
8498fi
8499
8500
8501		CFLAGS="$xorg_testset_save_CFLAGS"
8502
8503		eval supported=\$$cacheid
8504		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8505printf "%s\n" "$supported" >&6; }
8506		if test "$supported" = "yes" ; then
8507			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8508			found="yes"
8509		fi
8510	fi
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526xorg_testset_save_CFLAGS="$CFLAGS"
8527
8528if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8529	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8530	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8531printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8532if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8533then :
8534  printf %s "(cached) " >&6
8535else $as_nop
8536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8537/* end confdefs.h.  */
8538int i;
8539_ACEOF
8540if ac_fn_c_try_compile "$LINENO"
8541then :
8542  xorg_cv_cc_flag_unknown_warning_option=yes
8543else $as_nop
8544  xorg_cv_cc_flag_unknown_warning_option=no
8545fi
8546rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8547fi
8548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8549printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8550	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8551	CFLAGS="$xorg_testset_save_CFLAGS"
8552fi
8553
8554if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8555	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8556		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8557	fi
8558	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8559	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8560printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8561if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8562then :
8563  printf %s "(cached) " >&6
8564else $as_nop
8565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8566/* end confdefs.h.  */
8567int i;
8568_ACEOF
8569if ac_fn_c_try_compile "$LINENO"
8570then :
8571  xorg_cv_cc_flag_unused_command_line_argument=yes
8572else $as_nop
8573  xorg_cv_cc_flag_unused_command_line_argument=no
8574fi
8575rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8576fi
8577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8578printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8579	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8580	CFLAGS="$xorg_testset_save_CFLAGS"
8581fi
8582
8583found="no"
8584
8585	if test $found = "no" ; then
8586		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8587			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8588		fi
8589
8590		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8591			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8592		fi
8593
8594		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8595
8596		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8597printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8598		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8599		if eval test \${$cacheid+y}
8600then :
8601  printf %s "(cached) " >&6
8602else $as_nop
8603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8604/* end confdefs.h.  */
8605int i;
8606int
8607main (void)
8608{
8609
8610  ;
8611  return 0;
8612}
8613_ACEOF
8614if ac_fn_c_try_link "$LINENO"
8615then :
8616  eval $cacheid=yes
8617else $as_nop
8618  eval $cacheid=no
8619fi
8620rm -f core conftest.err conftest.$ac_objext conftest.beam \
8621    conftest$ac_exeext conftest.$ac_ext
8622fi
8623
8624
8625		CFLAGS="$xorg_testset_save_CFLAGS"
8626
8627		eval supported=\$$cacheid
8628		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8629printf "%s\n" "$supported" >&6; }
8630		if test "$supported" = "yes" ; then
8631			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8632			found="yes"
8633		fi
8634	fi
8635
8636	if test $found = "no" ; then
8637		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8638			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8639		fi
8640
8641		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8642			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8643		fi
8644
8645		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8646
8647		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8648printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8649		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8650		if eval test \${$cacheid+y}
8651then :
8652  printf %s "(cached) " >&6
8653else $as_nop
8654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8655/* end confdefs.h.  */
8656int i;
8657int
8658main (void)
8659{
8660
8661  ;
8662  return 0;
8663}
8664_ACEOF
8665if ac_fn_c_try_link "$LINENO"
8666then :
8667  eval $cacheid=yes
8668else $as_nop
8669  eval $cacheid=no
8670fi
8671rm -f core conftest.err conftest.$ac_objext conftest.beam \
8672    conftest$ac_exeext conftest.$ac_ext
8673fi
8674
8675
8676		CFLAGS="$xorg_testset_save_CFLAGS"
8677
8678		eval supported=\$$cacheid
8679		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8680printf "%s\n" "$supported" >&6; }
8681		if test "$supported" = "yes" ; then
8682			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8683			found="yes"
8684		fi
8685	fi
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701xorg_testset_save_CFLAGS="$CFLAGS"
8702
8703if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8704	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8705	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8706printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8707if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8708then :
8709  printf %s "(cached) " >&6
8710else $as_nop
8711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8712/* end confdefs.h.  */
8713int i;
8714_ACEOF
8715if ac_fn_c_try_compile "$LINENO"
8716then :
8717  xorg_cv_cc_flag_unknown_warning_option=yes
8718else $as_nop
8719  xorg_cv_cc_flag_unknown_warning_option=no
8720fi
8721rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8722fi
8723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8724printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8725	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8726	CFLAGS="$xorg_testset_save_CFLAGS"
8727fi
8728
8729if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8730	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8731		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8732	fi
8733	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8734	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8735printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8736if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8737then :
8738  printf %s "(cached) " >&6
8739else $as_nop
8740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8741/* end confdefs.h.  */
8742int i;
8743_ACEOF
8744if ac_fn_c_try_compile "$LINENO"
8745then :
8746  xorg_cv_cc_flag_unused_command_line_argument=yes
8747else $as_nop
8748  xorg_cv_cc_flag_unused_command_line_argument=no
8749fi
8750rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8751fi
8752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8753printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8754	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8755	CFLAGS="$xorg_testset_save_CFLAGS"
8756fi
8757
8758found="no"
8759
8760	if test $found = "no" ; then
8761		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8762			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8763		fi
8764
8765		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8766			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8767		fi
8768
8769		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8770
8771		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8772printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8773		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8774		if eval test \${$cacheid+y}
8775then :
8776  printf %s "(cached) " >&6
8777else $as_nop
8778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8779/* end confdefs.h.  */
8780int i;
8781int
8782main (void)
8783{
8784
8785  ;
8786  return 0;
8787}
8788_ACEOF
8789if ac_fn_c_try_link "$LINENO"
8790then :
8791  eval $cacheid=yes
8792else $as_nop
8793  eval $cacheid=no
8794fi
8795rm -f core conftest.err conftest.$ac_objext conftest.beam \
8796    conftest$ac_exeext conftest.$ac_ext
8797fi
8798
8799
8800		CFLAGS="$xorg_testset_save_CFLAGS"
8801
8802		eval supported=\$$cacheid
8803		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8804printf "%s\n" "$supported" >&6; }
8805		if test "$supported" = "yes" ; then
8806			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8807			found="yes"
8808		fi
8809	fi
8810
8811 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8812else
8813{ 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
8814printf "%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;}
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828xorg_testset_save_CFLAGS="$CFLAGS"
8829
8830if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8831	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8832	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8833printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8834if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8835then :
8836  printf %s "(cached) " >&6
8837else $as_nop
8838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8839/* end confdefs.h.  */
8840int i;
8841_ACEOF
8842if ac_fn_c_try_compile "$LINENO"
8843then :
8844  xorg_cv_cc_flag_unknown_warning_option=yes
8845else $as_nop
8846  xorg_cv_cc_flag_unknown_warning_option=no
8847fi
8848rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8849fi
8850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8851printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8852	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8853	CFLAGS="$xorg_testset_save_CFLAGS"
8854fi
8855
8856if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8857	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8858		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8859	fi
8860	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8861	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8862printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8863if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8864then :
8865  printf %s "(cached) " >&6
8866else $as_nop
8867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8868/* end confdefs.h.  */
8869int i;
8870_ACEOF
8871if ac_fn_c_try_compile "$LINENO"
8872then :
8873  xorg_cv_cc_flag_unused_command_line_argument=yes
8874else $as_nop
8875  xorg_cv_cc_flag_unused_command_line_argument=no
8876fi
8877rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8878fi
8879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8880printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8881	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8882	CFLAGS="$xorg_testset_save_CFLAGS"
8883fi
8884
8885found="no"
8886
8887	if test $found = "no" ; then
8888		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8889			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8890		fi
8891
8892		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8893			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8894		fi
8895
8896		CFLAGS="$CFLAGS -Wimplicit"
8897
8898		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8899printf %s "checking if $CC supports -Wimplicit... " >&6; }
8900		cacheid=xorg_cv_cc_flag__Wimplicit
8901		if eval test \${$cacheid+y}
8902then :
8903  printf %s "(cached) " >&6
8904else $as_nop
8905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8906/* end confdefs.h.  */
8907int i;
8908int
8909main (void)
8910{
8911
8912  ;
8913  return 0;
8914}
8915_ACEOF
8916if ac_fn_c_try_link "$LINENO"
8917then :
8918  eval $cacheid=yes
8919else $as_nop
8920  eval $cacheid=no
8921fi
8922rm -f core conftest.err conftest.$ac_objext conftest.beam \
8923    conftest$ac_exeext conftest.$ac_ext
8924fi
8925
8926
8927		CFLAGS="$xorg_testset_save_CFLAGS"
8928
8929		eval supported=\$$cacheid
8930		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8931printf "%s\n" "$supported" >&6; }
8932		if test "$supported" = "yes" ; then
8933			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8934			found="yes"
8935		fi
8936	fi
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952xorg_testset_save_CFLAGS="$CFLAGS"
8953
8954if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8955	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8956	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8957printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8958if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8959then :
8960  printf %s "(cached) " >&6
8961else $as_nop
8962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8963/* end confdefs.h.  */
8964int i;
8965_ACEOF
8966if ac_fn_c_try_compile "$LINENO"
8967then :
8968  xorg_cv_cc_flag_unknown_warning_option=yes
8969else $as_nop
8970  xorg_cv_cc_flag_unknown_warning_option=no
8971fi
8972rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8973fi
8974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8975printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8976	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8977	CFLAGS="$xorg_testset_save_CFLAGS"
8978fi
8979
8980if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8981	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8982		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8983	fi
8984	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8985	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8986printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8987if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8988then :
8989  printf %s "(cached) " >&6
8990else $as_nop
8991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8992/* end confdefs.h.  */
8993int i;
8994_ACEOF
8995if ac_fn_c_try_compile "$LINENO"
8996then :
8997  xorg_cv_cc_flag_unused_command_line_argument=yes
8998else $as_nop
8999  xorg_cv_cc_flag_unused_command_line_argument=no
9000fi
9001rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9002fi
9003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9004printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9005	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9006	CFLAGS="$xorg_testset_save_CFLAGS"
9007fi
9008
9009found="no"
9010
9011	if test $found = "no" ; then
9012		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9013			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9014		fi
9015
9016		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9017			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9018		fi
9019
9020		CFLAGS="$CFLAGS -Wnonnull"
9021
9022		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9023printf %s "checking if $CC supports -Wnonnull... " >&6; }
9024		cacheid=xorg_cv_cc_flag__Wnonnull
9025		if eval test \${$cacheid+y}
9026then :
9027  printf %s "(cached) " >&6
9028else $as_nop
9029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9030/* end confdefs.h.  */
9031int i;
9032int
9033main (void)
9034{
9035
9036  ;
9037  return 0;
9038}
9039_ACEOF
9040if ac_fn_c_try_link "$LINENO"
9041then :
9042  eval $cacheid=yes
9043else $as_nop
9044  eval $cacheid=no
9045fi
9046rm -f core conftest.err conftest.$ac_objext conftest.beam \
9047    conftest$ac_exeext conftest.$ac_ext
9048fi
9049
9050
9051		CFLAGS="$xorg_testset_save_CFLAGS"
9052
9053		eval supported=\$$cacheid
9054		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9055printf "%s\n" "$supported" >&6; }
9056		if test "$supported" = "yes" ; then
9057			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9058			found="yes"
9059		fi
9060	fi
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076xorg_testset_save_CFLAGS="$CFLAGS"
9077
9078if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9079	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9080	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9081printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9082if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9083then :
9084  printf %s "(cached) " >&6
9085else $as_nop
9086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9087/* end confdefs.h.  */
9088int i;
9089_ACEOF
9090if ac_fn_c_try_compile "$LINENO"
9091then :
9092  xorg_cv_cc_flag_unknown_warning_option=yes
9093else $as_nop
9094  xorg_cv_cc_flag_unknown_warning_option=no
9095fi
9096rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9097fi
9098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9099printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9100	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9101	CFLAGS="$xorg_testset_save_CFLAGS"
9102fi
9103
9104if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9105	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9106		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9107	fi
9108	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9109	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9110printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9111if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9112then :
9113  printf %s "(cached) " >&6
9114else $as_nop
9115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9116/* end confdefs.h.  */
9117int i;
9118_ACEOF
9119if ac_fn_c_try_compile "$LINENO"
9120then :
9121  xorg_cv_cc_flag_unused_command_line_argument=yes
9122else $as_nop
9123  xorg_cv_cc_flag_unused_command_line_argument=no
9124fi
9125rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9126fi
9127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9128printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9129	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9130	CFLAGS="$xorg_testset_save_CFLAGS"
9131fi
9132
9133found="no"
9134
9135	if test $found = "no" ; then
9136		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9137			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9138		fi
9139
9140		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9141			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9142		fi
9143
9144		CFLAGS="$CFLAGS -Winit-self"
9145
9146		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9147printf %s "checking if $CC supports -Winit-self... " >&6; }
9148		cacheid=xorg_cv_cc_flag__Winit_self
9149		if eval test \${$cacheid+y}
9150then :
9151  printf %s "(cached) " >&6
9152else $as_nop
9153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9154/* end confdefs.h.  */
9155int i;
9156int
9157main (void)
9158{
9159
9160  ;
9161  return 0;
9162}
9163_ACEOF
9164if ac_fn_c_try_link "$LINENO"
9165then :
9166  eval $cacheid=yes
9167else $as_nop
9168  eval $cacheid=no
9169fi
9170rm -f core conftest.err conftest.$ac_objext conftest.beam \
9171    conftest$ac_exeext conftest.$ac_ext
9172fi
9173
9174
9175		CFLAGS="$xorg_testset_save_CFLAGS"
9176
9177		eval supported=\$$cacheid
9178		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9179printf "%s\n" "$supported" >&6; }
9180		if test "$supported" = "yes" ; then
9181			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9182			found="yes"
9183		fi
9184	fi
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200xorg_testset_save_CFLAGS="$CFLAGS"
9201
9202if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9203	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9204	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9205printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9206if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9207then :
9208  printf %s "(cached) " >&6
9209else $as_nop
9210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9211/* end confdefs.h.  */
9212int i;
9213_ACEOF
9214if ac_fn_c_try_compile "$LINENO"
9215then :
9216  xorg_cv_cc_flag_unknown_warning_option=yes
9217else $as_nop
9218  xorg_cv_cc_flag_unknown_warning_option=no
9219fi
9220rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9221fi
9222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9223printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9224	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9225	CFLAGS="$xorg_testset_save_CFLAGS"
9226fi
9227
9228if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9229	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9230		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9231	fi
9232	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9233	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9234printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9235if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9236then :
9237  printf %s "(cached) " >&6
9238else $as_nop
9239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9240/* end confdefs.h.  */
9241int i;
9242_ACEOF
9243if ac_fn_c_try_compile "$LINENO"
9244then :
9245  xorg_cv_cc_flag_unused_command_line_argument=yes
9246else $as_nop
9247  xorg_cv_cc_flag_unused_command_line_argument=no
9248fi
9249rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9250fi
9251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9252printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9253	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9254	CFLAGS="$xorg_testset_save_CFLAGS"
9255fi
9256
9257found="no"
9258
9259	if test $found = "no" ; then
9260		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9261			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9262		fi
9263
9264		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9265			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9266		fi
9267
9268		CFLAGS="$CFLAGS -Wmain"
9269
9270		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9271printf %s "checking if $CC supports -Wmain... " >&6; }
9272		cacheid=xorg_cv_cc_flag__Wmain
9273		if eval test \${$cacheid+y}
9274then :
9275  printf %s "(cached) " >&6
9276else $as_nop
9277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9278/* end confdefs.h.  */
9279int i;
9280int
9281main (void)
9282{
9283
9284  ;
9285  return 0;
9286}
9287_ACEOF
9288if ac_fn_c_try_link "$LINENO"
9289then :
9290  eval $cacheid=yes
9291else $as_nop
9292  eval $cacheid=no
9293fi
9294rm -f core conftest.err conftest.$ac_objext conftest.beam \
9295    conftest$ac_exeext conftest.$ac_ext
9296fi
9297
9298
9299		CFLAGS="$xorg_testset_save_CFLAGS"
9300
9301		eval supported=\$$cacheid
9302		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9303printf "%s\n" "$supported" >&6; }
9304		if test "$supported" = "yes" ; then
9305			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9306			found="yes"
9307		fi
9308	fi
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324xorg_testset_save_CFLAGS="$CFLAGS"
9325
9326if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9327	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9328	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9329printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9330if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9331then :
9332  printf %s "(cached) " >&6
9333else $as_nop
9334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9335/* end confdefs.h.  */
9336int i;
9337_ACEOF
9338if ac_fn_c_try_compile "$LINENO"
9339then :
9340  xorg_cv_cc_flag_unknown_warning_option=yes
9341else $as_nop
9342  xorg_cv_cc_flag_unknown_warning_option=no
9343fi
9344rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9345fi
9346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9347printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9348	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9349	CFLAGS="$xorg_testset_save_CFLAGS"
9350fi
9351
9352if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9353	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9354		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9355	fi
9356	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9357	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9358printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9359if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9360then :
9361  printf %s "(cached) " >&6
9362else $as_nop
9363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9364/* end confdefs.h.  */
9365int i;
9366_ACEOF
9367if ac_fn_c_try_compile "$LINENO"
9368then :
9369  xorg_cv_cc_flag_unused_command_line_argument=yes
9370else $as_nop
9371  xorg_cv_cc_flag_unused_command_line_argument=no
9372fi
9373rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9374fi
9375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9376printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9377	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9378	CFLAGS="$xorg_testset_save_CFLAGS"
9379fi
9380
9381found="no"
9382
9383	if test $found = "no" ; then
9384		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9385			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9386		fi
9387
9388		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9389			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9390		fi
9391
9392		CFLAGS="$CFLAGS -Wmissing-braces"
9393
9394		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9395printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9396		cacheid=xorg_cv_cc_flag__Wmissing_braces
9397		if eval test \${$cacheid+y}
9398then :
9399  printf %s "(cached) " >&6
9400else $as_nop
9401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9402/* end confdefs.h.  */
9403int i;
9404int
9405main (void)
9406{
9407
9408  ;
9409  return 0;
9410}
9411_ACEOF
9412if ac_fn_c_try_link "$LINENO"
9413then :
9414  eval $cacheid=yes
9415else $as_nop
9416  eval $cacheid=no
9417fi
9418rm -f core conftest.err conftest.$ac_objext conftest.beam \
9419    conftest$ac_exeext conftest.$ac_ext
9420fi
9421
9422
9423		CFLAGS="$xorg_testset_save_CFLAGS"
9424
9425		eval supported=\$$cacheid
9426		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9427printf "%s\n" "$supported" >&6; }
9428		if test "$supported" = "yes" ; then
9429			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9430			found="yes"
9431		fi
9432	fi
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448xorg_testset_save_CFLAGS="$CFLAGS"
9449
9450if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9451	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9452	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9453printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9454if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9455then :
9456  printf %s "(cached) " >&6
9457else $as_nop
9458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9459/* end confdefs.h.  */
9460int i;
9461_ACEOF
9462if ac_fn_c_try_compile "$LINENO"
9463then :
9464  xorg_cv_cc_flag_unknown_warning_option=yes
9465else $as_nop
9466  xorg_cv_cc_flag_unknown_warning_option=no
9467fi
9468rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9469fi
9470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9471printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9472	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9473	CFLAGS="$xorg_testset_save_CFLAGS"
9474fi
9475
9476if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9477	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9478		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9479	fi
9480	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9481	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9482printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9483if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9484then :
9485  printf %s "(cached) " >&6
9486else $as_nop
9487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9488/* end confdefs.h.  */
9489int i;
9490_ACEOF
9491if ac_fn_c_try_compile "$LINENO"
9492then :
9493  xorg_cv_cc_flag_unused_command_line_argument=yes
9494else $as_nop
9495  xorg_cv_cc_flag_unused_command_line_argument=no
9496fi
9497rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9498fi
9499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9500printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9501	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9502	CFLAGS="$xorg_testset_save_CFLAGS"
9503fi
9504
9505found="no"
9506
9507	if test $found = "no" ; then
9508		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9509			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9510		fi
9511
9512		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9513			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9514		fi
9515
9516		CFLAGS="$CFLAGS -Wsequence-point"
9517
9518		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9519printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9520		cacheid=xorg_cv_cc_flag__Wsequence_point
9521		if eval test \${$cacheid+y}
9522then :
9523  printf %s "(cached) " >&6
9524else $as_nop
9525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9526/* end confdefs.h.  */
9527int i;
9528int
9529main (void)
9530{
9531
9532  ;
9533  return 0;
9534}
9535_ACEOF
9536if ac_fn_c_try_link "$LINENO"
9537then :
9538  eval $cacheid=yes
9539else $as_nop
9540  eval $cacheid=no
9541fi
9542rm -f core conftest.err conftest.$ac_objext conftest.beam \
9543    conftest$ac_exeext conftest.$ac_ext
9544fi
9545
9546
9547		CFLAGS="$xorg_testset_save_CFLAGS"
9548
9549		eval supported=\$$cacheid
9550		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9551printf "%s\n" "$supported" >&6; }
9552		if test "$supported" = "yes" ; then
9553			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9554			found="yes"
9555		fi
9556	fi
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572xorg_testset_save_CFLAGS="$CFLAGS"
9573
9574if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9575	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9576	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9577printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9578if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9579then :
9580  printf %s "(cached) " >&6
9581else $as_nop
9582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9583/* end confdefs.h.  */
9584int i;
9585_ACEOF
9586if ac_fn_c_try_compile "$LINENO"
9587then :
9588  xorg_cv_cc_flag_unknown_warning_option=yes
9589else $as_nop
9590  xorg_cv_cc_flag_unknown_warning_option=no
9591fi
9592rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9593fi
9594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9595printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9596	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9597	CFLAGS="$xorg_testset_save_CFLAGS"
9598fi
9599
9600if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9601	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9602		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9603	fi
9604	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9605	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9606printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9607if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9608then :
9609  printf %s "(cached) " >&6
9610else $as_nop
9611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9612/* end confdefs.h.  */
9613int i;
9614_ACEOF
9615if ac_fn_c_try_compile "$LINENO"
9616then :
9617  xorg_cv_cc_flag_unused_command_line_argument=yes
9618else $as_nop
9619  xorg_cv_cc_flag_unused_command_line_argument=no
9620fi
9621rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9622fi
9623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9624printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9625	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9626	CFLAGS="$xorg_testset_save_CFLAGS"
9627fi
9628
9629found="no"
9630
9631	if test $found = "no" ; then
9632		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9633			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9634		fi
9635
9636		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9637			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9638		fi
9639
9640		CFLAGS="$CFLAGS -Wreturn-type"
9641
9642		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9643printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9644		cacheid=xorg_cv_cc_flag__Wreturn_type
9645		if eval test \${$cacheid+y}
9646then :
9647  printf %s "(cached) " >&6
9648else $as_nop
9649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9650/* end confdefs.h.  */
9651int i;
9652int
9653main (void)
9654{
9655
9656  ;
9657  return 0;
9658}
9659_ACEOF
9660if ac_fn_c_try_link "$LINENO"
9661then :
9662  eval $cacheid=yes
9663else $as_nop
9664  eval $cacheid=no
9665fi
9666rm -f core conftest.err conftest.$ac_objext conftest.beam \
9667    conftest$ac_exeext conftest.$ac_ext
9668fi
9669
9670
9671		CFLAGS="$xorg_testset_save_CFLAGS"
9672
9673		eval supported=\$$cacheid
9674		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9675printf "%s\n" "$supported" >&6; }
9676		if test "$supported" = "yes" ; then
9677			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9678			found="yes"
9679		fi
9680	fi
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696xorg_testset_save_CFLAGS="$CFLAGS"
9697
9698if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9699	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9700	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9701printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9702if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9703then :
9704  printf %s "(cached) " >&6
9705else $as_nop
9706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9707/* end confdefs.h.  */
9708int i;
9709_ACEOF
9710if ac_fn_c_try_compile "$LINENO"
9711then :
9712  xorg_cv_cc_flag_unknown_warning_option=yes
9713else $as_nop
9714  xorg_cv_cc_flag_unknown_warning_option=no
9715fi
9716rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9717fi
9718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9719printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9720	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9721	CFLAGS="$xorg_testset_save_CFLAGS"
9722fi
9723
9724if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9725	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9726		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9727	fi
9728	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9729	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9730printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9731if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9732then :
9733  printf %s "(cached) " >&6
9734else $as_nop
9735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9736/* end confdefs.h.  */
9737int i;
9738_ACEOF
9739if ac_fn_c_try_compile "$LINENO"
9740then :
9741  xorg_cv_cc_flag_unused_command_line_argument=yes
9742else $as_nop
9743  xorg_cv_cc_flag_unused_command_line_argument=no
9744fi
9745rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9746fi
9747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9748printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9749	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9750	CFLAGS="$xorg_testset_save_CFLAGS"
9751fi
9752
9753found="no"
9754
9755	if test $found = "no" ; then
9756		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9757			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9758		fi
9759
9760		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9761			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9762		fi
9763
9764		CFLAGS="$CFLAGS -Wtrigraphs"
9765
9766		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9767printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9768		cacheid=xorg_cv_cc_flag__Wtrigraphs
9769		if eval test \${$cacheid+y}
9770then :
9771  printf %s "(cached) " >&6
9772else $as_nop
9773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9774/* end confdefs.h.  */
9775int i;
9776int
9777main (void)
9778{
9779
9780  ;
9781  return 0;
9782}
9783_ACEOF
9784if ac_fn_c_try_link "$LINENO"
9785then :
9786  eval $cacheid=yes
9787else $as_nop
9788  eval $cacheid=no
9789fi
9790rm -f core conftest.err conftest.$ac_objext conftest.beam \
9791    conftest$ac_exeext conftest.$ac_ext
9792fi
9793
9794
9795		CFLAGS="$xorg_testset_save_CFLAGS"
9796
9797		eval supported=\$$cacheid
9798		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9799printf "%s\n" "$supported" >&6; }
9800		if test "$supported" = "yes" ; then
9801			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9802			found="yes"
9803		fi
9804	fi
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820xorg_testset_save_CFLAGS="$CFLAGS"
9821
9822if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9823	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9824	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9825printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9826if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9827then :
9828  printf %s "(cached) " >&6
9829else $as_nop
9830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9831/* end confdefs.h.  */
9832int i;
9833_ACEOF
9834if ac_fn_c_try_compile "$LINENO"
9835then :
9836  xorg_cv_cc_flag_unknown_warning_option=yes
9837else $as_nop
9838  xorg_cv_cc_flag_unknown_warning_option=no
9839fi
9840rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9841fi
9842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9843printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9844	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9845	CFLAGS="$xorg_testset_save_CFLAGS"
9846fi
9847
9848if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9849	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9850		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9851	fi
9852	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9853	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9854printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9855if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9856then :
9857  printf %s "(cached) " >&6
9858else $as_nop
9859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9860/* end confdefs.h.  */
9861int i;
9862_ACEOF
9863if ac_fn_c_try_compile "$LINENO"
9864then :
9865  xorg_cv_cc_flag_unused_command_line_argument=yes
9866else $as_nop
9867  xorg_cv_cc_flag_unused_command_line_argument=no
9868fi
9869rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9870fi
9871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9872printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9873	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9874	CFLAGS="$xorg_testset_save_CFLAGS"
9875fi
9876
9877found="no"
9878
9879	if test $found = "no" ; then
9880		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9881			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9882		fi
9883
9884		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9885			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9886		fi
9887
9888		CFLAGS="$CFLAGS -Warray-bounds"
9889
9890		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9891printf %s "checking if $CC supports -Warray-bounds... " >&6; }
9892		cacheid=xorg_cv_cc_flag__Warray_bounds
9893		if eval test \${$cacheid+y}
9894then :
9895  printf %s "(cached) " >&6
9896else $as_nop
9897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9898/* end confdefs.h.  */
9899int i;
9900int
9901main (void)
9902{
9903
9904  ;
9905  return 0;
9906}
9907_ACEOF
9908if ac_fn_c_try_link "$LINENO"
9909then :
9910  eval $cacheid=yes
9911else $as_nop
9912  eval $cacheid=no
9913fi
9914rm -f core conftest.err conftest.$ac_objext conftest.beam \
9915    conftest$ac_exeext conftest.$ac_ext
9916fi
9917
9918
9919		CFLAGS="$xorg_testset_save_CFLAGS"
9920
9921		eval supported=\$$cacheid
9922		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9923printf "%s\n" "$supported" >&6; }
9924		if test "$supported" = "yes" ; then
9925			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9926			found="yes"
9927		fi
9928	fi
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944xorg_testset_save_CFLAGS="$CFLAGS"
9945
9946if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9947	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9948	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9949printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9950if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9951then :
9952  printf %s "(cached) " >&6
9953else $as_nop
9954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9955/* end confdefs.h.  */
9956int i;
9957_ACEOF
9958if ac_fn_c_try_compile "$LINENO"
9959then :
9960  xorg_cv_cc_flag_unknown_warning_option=yes
9961else $as_nop
9962  xorg_cv_cc_flag_unknown_warning_option=no
9963fi
9964rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9965fi
9966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9967printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9968	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9969	CFLAGS="$xorg_testset_save_CFLAGS"
9970fi
9971
9972if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9973	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9974		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9975	fi
9976	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9977	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9978printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9979if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9980then :
9981  printf %s "(cached) " >&6
9982else $as_nop
9983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9984/* end confdefs.h.  */
9985int i;
9986_ACEOF
9987if ac_fn_c_try_compile "$LINENO"
9988then :
9989  xorg_cv_cc_flag_unused_command_line_argument=yes
9990else $as_nop
9991  xorg_cv_cc_flag_unused_command_line_argument=no
9992fi
9993rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9994fi
9995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9996printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9997	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9998	CFLAGS="$xorg_testset_save_CFLAGS"
9999fi
10000
10001found="no"
10002
10003	if test $found = "no" ; then
10004		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10005			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10006		fi
10007
10008		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10009			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10010		fi
10011
10012		CFLAGS="$CFLAGS -Wwrite-strings"
10013
10014		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10015printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10016		cacheid=xorg_cv_cc_flag__Wwrite_strings
10017		if eval test \${$cacheid+y}
10018then :
10019  printf %s "(cached) " >&6
10020else $as_nop
10021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10022/* end confdefs.h.  */
10023int i;
10024int
10025main (void)
10026{
10027
10028  ;
10029  return 0;
10030}
10031_ACEOF
10032if ac_fn_c_try_link "$LINENO"
10033then :
10034  eval $cacheid=yes
10035else $as_nop
10036  eval $cacheid=no
10037fi
10038rm -f core conftest.err conftest.$ac_objext conftest.beam \
10039    conftest$ac_exeext conftest.$ac_ext
10040fi
10041
10042
10043		CFLAGS="$xorg_testset_save_CFLAGS"
10044
10045		eval supported=\$$cacheid
10046		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10047printf "%s\n" "$supported" >&6; }
10048		if test "$supported" = "yes" ; then
10049			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10050			found="yes"
10051		fi
10052	fi
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068xorg_testset_save_CFLAGS="$CFLAGS"
10069
10070if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10071	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10072	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10073printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10074if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10075then :
10076  printf %s "(cached) " >&6
10077else $as_nop
10078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10079/* end confdefs.h.  */
10080int i;
10081_ACEOF
10082if ac_fn_c_try_compile "$LINENO"
10083then :
10084  xorg_cv_cc_flag_unknown_warning_option=yes
10085else $as_nop
10086  xorg_cv_cc_flag_unknown_warning_option=no
10087fi
10088rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10089fi
10090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10091printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10092	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10093	CFLAGS="$xorg_testset_save_CFLAGS"
10094fi
10095
10096if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10097	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10098		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10099	fi
10100	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10101	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10102printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10103if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10104then :
10105  printf %s "(cached) " >&6
10106else $as_nop
10107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10108/* end confdefs.h.  */
10109int i;
10110_ACEOF
10111if ac_fn_c_try_compile "$LINENO"
10112then :
10113  xorg_cv_cc_flag_unused_command_line_argument=yes
10114else $as_nop
10115  xorg_cv_cc_flag_unused_command_line_argument=no
10116fi
10117rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10118fi
10119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10120printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10121	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10122	CFLAGS="$xorg_testset_save_CFLAGS"
10123fi
10124
10125found="no"
10126
10127	if test $found = "no" ; then
10128		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10129			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10130		fi
10131
10132		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10133			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10134		fi
10135
10136		CFLAGS="$CFLAGS -Waddress"
10137
10138		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10139printf %s "checking if $CC supports -Waddress... " >&6; }
10140		cacheid=xorg_cv_cc_flag__Waddress
10141		if eval test \${$cacheid+y}
10142then :
10143  printf %s "(cached) " >&6
10144else $as_nop
10145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10146/* end confdefs.h.  */
10147int i;
10148int
10149main (void)
10150{
10151
10152  ;
10153  return 0;
10154}
10155_ACEOF
10156if ac_fn_c_try_link "$LINENO"
10157then :
10158  eval $cacheid=yes
10159else $as_nop
10160  eval $cacheid=no
10161fi
10162rm -f core conftest.err conftest.$ac_objext conftest.beam \
10163    conftest$ac_exeext conftest.$ac_ext
10164fi
10165
10166
10167		CFLAGS="$xorg_testset_save_CFLAGS"
10168
10169		eval supported=\$$cacheid
10170		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10171printf "%s\n" "$supported" >&6; }
10172		if test "$supported" = "yes" ; then
10173			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10174			found="yes"
10175		fi
10176	fi
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192xorg_testset_save_CFLAGS="$CFLAGS"
10193
10194if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10195	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10196	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10197printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10198if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10199then :
10200  printf %s "(cached) " >&6
10201else $as_nop
10202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10203/* end confdefs.h.  */
10204int i;
10205_ACEOF
10206if ac_fn_c_try_compile "$LINENO"
10207then :
10208  xorg_cv_cc_flag_unknown_warning_option=yes
10209else $as_nop
10210  xorg_cv_cc_flag_unknown_warning_option=no
10211fi
10212rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10213fi
10214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10215printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10216	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10217	CFLAGS="$xorg_testset_save_CFLAGS"
10218fi
10219
10220if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10221	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10222		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10223	fi
10224	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10225	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10226printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10227if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10228then :
10229  printf %s "(cached) " >&6
10230else $as_nop
10231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10232/* end confdefs.h.  */
10233int i;
10234_ACEOF
10235if ac_fn_c_try_compile "$LINENO"
10236then :
10237  xorg_cv_cc_flag_unused_command_line_argument=yes
10238else $as_nop
10239  xorg_cv_cc_flag_unused_command_line_argument=no
10240fi
10241rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10242fi
10243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10244printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10245	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10246	CFLAGS="$xorg_testset_save_CFLAGS"
10247fi
10248
10249found="no"
10250
10251	if test $found = "no" ; then
10252		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10253			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10254		fi
10255
10256		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10257			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10258		fi
10259
10260		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10261
10262		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10263printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10264		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10265		if eval test \${$cacheid+y}
10266then :
10267  printf %s "(cached) " >&6
10268else $as_nop
10269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10270/* end confdefs.h.  */
10271int i;
10272int
10273main (void)
10274{
10275
10276  ;
10277  return 0;
10278}
10279_ACEOF
10280if ac_fn_c_try_link "$LINENO"
10281then :
10282  eval $cacheid=yes
10283else $as_nop
10284  eval $cacheid=no
10285fi
10286rm -f core conftest.err conftest.$ac_objext conftest.beam \
10287    conftest$ac_exeext conftest.$ac_ext
10288fi
10289
10290
10291		CFLAGS="$xorg_testset_save_CFLAGS"
10292
10293		eval supported=\$$cacheid
10294		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10295printf "%s\n" "$supported" >&6; }
10296		if test "$supported" = "yes" ; then
10297			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10298			found="yes"
10299		fi
10300	fi
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316xorg_testset_save_CFLAGS="$CFLAGS"
10317
10318if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10319	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10320	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10321printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10322if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10323then :
10324  printf %s "(cached) " >&6
10325else $as_nop
10326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10327/* end confdefs.h.  */
10328int i;
10329_ACEOF
10330if ac_fn_c_try_compile "$LINENO"
10331then :
10332  xorg_cv_cc_flag_unknown_warning_option=yes
10333else $as_nop
10334  xorg_cv_cc_flag_unknown_warning_option=no
10335fi
10336rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10337fi
10338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10339printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10340	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10341	CFLAGS="$xorg_testset_save_CFLAGS"
10342fi
10343
10344if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10345	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10346		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10347	fi
10348	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10349	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10350printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10351if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10352then :
10353  printf %s "(cached) " >&6
10354else $as_nop
10355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10356/* end confdefs.h.  */
10357int i;
10358_ACEOF
10359if ac_fn_c_try_compile "$LINENO"
10360then :
10361  xorg_cv_cc_flag_unused_command_line_argument=yes
10362else $as_nop
10363  xorg_cv_cc_flag_unused_command_line_argument=no
10364fi
10365rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10366fi
10367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10368printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10369	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10370	CFLAGS="$xorg_testset_save_CFLAGS"
10371fi
10372
10373found="no"
10374
10375	if test $found = "no" ; then
10376		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10377			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10378		fi
10379
10380		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10381			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10382		fi
10383
10384		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10385
10386		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10387printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10388		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10389		if eval test \${$cacheid+y}
10390then :
10391  printf %s "(cached) " >&6
10392else $as_nop
10393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10394/* end confdefs.h.  */
10395int i;
10396int
10397main (void)
10398{
10399
10400  ;
10401  return 0;
10402}
10403_ACEOF
10404if ac_fn_c_try_link "$LINENO"
10405then :
10406  eval $cacheid=yes
10407else $as_nop
10408  eval $cacheid=no
10409fi
10410rm -f core conftest.err conftest.$ac_objext conftest.beam \
10411    conftest$ac_exeext conftest.$ac_ext
10412fi
10413
10414
10415		CFLAGS="$xorg_testset_save_CFLAGS"
10416
10417		eval supported=\$$cacheid
10418		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10419printf "%s\n" "$supported" >&6; }
10420		if test "$supported" = "yes" ; then
10421			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10422			found="yes"
10423		fi
10424	fi
10425
10426
10427fi
10428
10429
10430
10431
10432
10433
10434
10435		CWARNFLAGS="$BASE_CFLAGS"
10436		if  test "x$GCC" = xyes ; then
10437		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10438		fi
10439
10440
10441
10442
10443
10444
10445
10446
10447# Check whether --enable-strict-compilation was given.
10448if test ${enable_strict_compilation+y}
10449then :
10450  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10451else $as_nop
10452  STRICT_COMPILE=no
10453fi
10454
10455
10456
10457
10458
10459
10460STRICT_CFLAGS=""
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474xorg_testset_save_CFLAGS="$CFLAGS"
10475
10476if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10477	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10478	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10479printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10480if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10481then :
10482  printf %s "(cached) " >&6
10483else $as_nop
10484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10485/* end confdefs.h.  */
10486int i;
10487_ACEOF
10488if ac_fn_c_try_compile "$LINENO"
10489then :
10490  xorg_cv_cc_flag_unknown_warning_option=yes
10491else $as_nop
10492  xorg_cv_cc_flag_unknown_warning_option=no
10493fi
10494rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10495fi
10496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10497printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10498	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10499	CFLAGS="$xorg_testset_save_CFLAGS"
10500fi
10501
10502if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10503	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10504		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10505	fi
10506	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10507	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10508printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10509if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10510then :
10511  printf %s "(cached) " >&6
10512else $as_nop
10513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10514/* end confdefs.h.  */
10515int i;
10516_ACEOF
10517if ac_fn_c_try_compile "$LINENO"
10518then :
10519  xorg_cv_cc_flag_unused_command_line_argument=yes
10520else $as_nop
10521  xorg_cv_cc_flag_unused_command_line_argument=no
10522fi
10523rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10524fi
10525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10526printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10527	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10528	CFLAGS="$xorg_testset_save_CFLAGS"
10529fi
10530
10531found="no"
10532
10533	if test $found = "no" ; then
10534		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10535			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10536		fi
10537
10538		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10539			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10540		fi
10541
10542		CFLAGS="$CFLAGS -pedantic"
10543
10544		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10545printf %s "checking if $CC supports -pedantic... " >&6; }
10546		cacheid=xorg_cv_cc_flag__pedantic
10547		if eval test \${$cacheid+y}
10548then :
10549  printf %s "(cached) " >&6
10550else $as_nop
10551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10552/* end confdefs.h.  */
10553int i;
10554int
10555main (void)
10556{
10557
10558  ;
10559  return 0;
10560}
10561_ACEOF
10562if ac_fn_c_try_link "$LINENO"
10563then :
10564  eval $cacheid=yes
10565else $as_nop
10566  eval $cacheid=no
10567fi
10568rm -f core conftest.err conftest.$ac_objext conftest.beam \
10569    conftest$ac_exeext conftest.$ac_ext
10570fi
10571
10572
10573		CFLAGS="$xorg_testset_save_CFLAGS"
10574
10575		eval supported=\$$cacheid
10576		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10577printf "%s\n" "$supported" >&6; }
10578		if test "$supported" = "yes" ; then
10579			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10580			found="yes"
10581		fi
10582	fi
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598xorg_testset_save_CFLAGS="$CFLAGS"
10599
10600if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10601	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10602	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10603printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10604if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10605then :
10606  printf %s "(cached) " >&6
10607else $as_nop
10608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10609/* end confdefs.h.  */
10610int i;
10611_ACEOF
10612if ac_fn_c_try_compile "$LINENO"
10613then :
10614  xorg_cv_cc_flag_unknown_warning_option=yes
10615else $as_nop
10616  xorg_cv_cc_flag_unknown_warning_option=no
10617fi
10618rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10619fi
10620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10621printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10622	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10623	CFLAGS="$xorg_testset_save_CFLAGS"
10624fi
10625
10626if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10627	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10628		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10629	fi
10630	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10631	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10632printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10633if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10634then :
10635  printf %s "(cached) " >&6
10636else $as_nop
10637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10638/* end confdefs.h.  */
10639int i;
10640_ACEOF
10641if ac_fn_c_try_compile "$LINENO"
10642then :
10643  xorg_cv_cc_flag_unused_command_line_argument=yes
10644else $as_nop
10645  xorg_cv_cc_flag_unused_command_line_argument=no
10646fi
10647rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10648fi
10649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10650printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10651	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10652	CFLAGS="$xorg_testset_save_CFLAGS"
10653fi
10654
10655found="no"
10656
10657	if test $found = "no" ; then
10658		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10659			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10660		fi
10661
10662		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10663			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10664		fi
10665
10666		CFLAGS="$CFLAGS -Werror"
10667
10668		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10669printf %s "checking if $CC supports -Werror... " >&6; }
10670		cacheid=xorg_cv_cc_flag__Werror
10671		if eval test \${$cacheid+y}
10672then :
10673  printf %s "(cached) " >&6
10674else $as_nop
10675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10676/* end confdefs.h.  */
10677int i;
10678int
10679main (void)
10680{
10681
10682  ;
10683  return 0;
10684}
10685_ACEOF
10686if ac_fn_c_try_link "$LINENO"
10687then :
10688  eval $cacheid=yes
10689else $as_nop
10690  eval $cacheid=no
10691fi
10692rm -f core conftest.err conftest.$ac_objext conftest.beam \
10693    conftest$ac_exeext conftest.$ac_ext
10694fi
10695
10696
10697		CFLAGS="$xorg_testset_save_CFLAGS"
10698
10699		eval supported=\$$cacheid
10700		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10701printf "%s\n" "$supported" >&6; }
10702		if test "$supported" = "yes" ; then
10703			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10704			found="yes"
10705		fi
10706	fi
10707
10708	if test $found = "no" ; then
10709		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10710			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10711		fi
10712
10713		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10714			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10715		fi
10716
10717		CFLAGS="$CFLAGS -errwarn"
10718
10719		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10720printf %s "checking if $CC supports -errwarn... " >&6; }
10721		cacheid=xorg_cv_cc_flag__errwarn
10722		if eval test \${$cacheid+y}
10723then :
10724  printf %s "(cached) " >&6
10725else $as_nop
10726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10727/* end confdefs.h.  */
10728int i;
10729int
10730main (void)
10731{
10732
10733  ;
10734  return 0;
10735}
10736_ACEOF
10737if ac_fn_c_try_link "$LINENO"
10738then :
10739  eval $cacheid=yes
10740else $as_nop
10741  eval $cacheid=no
10742fi
10743rm -f core conftest.err conftest.$ac_objext conftest.beam \
10744    conftest$ac_exeext conftest.$ac_ext
10745fi
10746
10747
10748		CFLAGS="$xorg_testset_save_CFLAGS"
10749
10750		eval supported=\$$cacheid
10751		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10752printf "%s\n" "$supported" >&6; }
10753		if test "$supported" = "yes" ; then
10754			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10755			found="yes"
10756		fi
10757	fi
10758
10759
10760
10761# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10762# activate it with -Werror, so we add it here explicitly.
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776xorg_testset_save_CFLAGS="$CFLAGS"
10777
10778if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10779	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10780	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10781printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10782if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10783then :
10784  printf %s "(cached) " >&6
10785else $as_nop
10786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10787/* end confdefs.h.  */
10788int i;
10789_ACEOF
10790if ac_fn_c_try_compile "$LINENO"
10791then :
10792  xorg_cv_cc_flag_unknown_warning_option=yes
10793else $as_nop
10794  xorg_cv_cc_flag_unknown_warning_option=no
10795fi
10796rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10797fi
10798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10799printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10800	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10801	CFLAGS="$xorg_testset_save_CFLAGS"
10802fi
10803
10804if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10805	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10806		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10807	fi
10808	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10809	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10810printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10811if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10812then :
10813  printf %s "(cached) " >&6
10814else $as_nop
10815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10816/* end confdefs.h.  */
10817int i;
10818_ACEOF
10819if ac_fn_c_try_compile "$LINENO"
10820then :
10821  xorg_cv_cc_flag_unused_command_line_argument=yes
10822else $as_nop
10823  xorg_cv_cc_flag_unused_command_line_argument=no
10824fi
10825rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10826fi
10827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10828printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10829	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10830	CFLAGS="$xorg_testset_save_CFLAGS"
10831fi
10832
10833found="no"
10834
10835	if test $found = "no" ; then
10836		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10837			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10838		fi
10839
10840		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10841			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10842		fi
10843
10844		CFLAGS="$CFLAGS -Werror=attributes"
10845
10846		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10847printf %s "checking if $CC supports -Werror=attributes... " >&6; }
10848		cacheid=xorg_cv_cc_flag__Werror_attributes
10849		if eval test \${$cacheid+y}
10850then :
10851  printf %s "(cached) " >&6
10852else $as_nop
10853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10854/* end confdefs.h.  */
10855int i;
10856int
10857main (void)
10858{
10859
10860  ;
10861  return 0;
10862}
10863_ACEOF
10864if ac_fn_c_try_link "$LINENO"
10865then :
10866  eval $cacheid=yes
10867else $as_nop
10868  eval $cacheid=no
10869fi
10870rm -f core conftest.err conftest.$ac_objext conftest.beam \
10871    conftest$ac_exeext conftest.$ac_ext
10872fi
10873
10874
10875		CFLAGS="$xorg_testset_save_CFLAGS"
10876
10877		eval supported=\$$cacheid
10878		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10879printf "%s\n" "$supported" >&6; }
10880		if test "$supported" = "yes" ; then
10881			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10882			found="yes"
10883		fi
10884	fi
10885
10886
10887
10888if test "x$STRICT_COMPILE" = "xyes"; then
10889    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10890    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10891fi
10892
10893
10894
10895
10896
10897
10898cat >>confdefs.h <<_ACEOF
10899#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10900_ACEOF
10901
10902	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10903	if test "x$PVM" = "x"; then
10904		PVM="0"
10905	fi
10906
10907printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
10908
10909	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10910	if test "x$PVP" = "x"; then
10911		PVP="0"
10912	fi
10913
10914printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
10915
10916
10917
10918CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10919mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10920|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10921touch \$(top_srcdir)/ChangeLog; \
10922echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10923
10924
10925
10926
10927macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10928INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10929mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10930|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
10931touch \$(top_srcdir)/INSTALL; \
10932echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
10933
10934
10935
10936
10937
10938
10939case $host_os in
10940    solaris*)
10941        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
10942        # check for a man page file found in later versions that use
10943        # traditional section numbers instead
10944        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
10945printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
10946if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
10947then :
10948  printf %s "(cached) " >&6
10949else $as_nop
10950  test "$cross_compiling" = yes &&
10951  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10952if test -r "/usr/share/man/man7/attributes.7"; then
10953  ac_cv_file__usr_share_man_man7_attributes_7=yes
10954else
10955  ac_cv_file__usr_share_man_man7_attributes_7=no
10956fi
10957fi
10958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
10959printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
10960if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
10961then :
10962  SYSV_MAN_SECTIONS=false
10963else $as_nop
10964  SYSV_MAN_SECTIONS=true
10965fi
10966
10967        ;;
10968    *) SYSV_MAN_SECTIONS=false ;;
10969esac
10970
10971if test x$APP_MAN_SUFFIX = x    ; then
10972    APP_MAN_SUFFIX=1
10973fi
10974if test x$APP_MAN_DIR = x    ; then
10975    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10976fi
10977
10978if test x$LIB_MAN_SUFFIX = x    ; then
10979    LIB_MAN_SUFFIX=3
10980fi
10981if test x$LIB_MAN_DIR = x    ; then
10982    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10983fi
10984
10985if test x$FILE_MAN_SUFFIX = x    ; then
10986    case $SYSV_MAN_SECTIONS in
10987	true)				FILE_MAN_SUFFIX=4  ;;
10988	*)				FILE_MAN_SUFFIX=5  ;;
10989    esac
10990fi
10991if test x$FILE_MAN_DIR = x    ; then
10992    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10993fi
10994
10995if test x$MISC_MAN_SUFFIX = x    ; then
10996    case $SYSV_MAN_SECTIONS in
10997	true)				MISC_MAN_SUFFIX=5  ;;
10998	*)				MISC_MAN_SUFFIX=7  ;;
10999    esac
11000fi
11001if test x$MISC_MAN_DIR = x    ; then
11002    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11003fi
11004
11005if test x$DRIVER_MAN_SUFFIX = x    ; then
11006    case $SYSV_MAN_SECTIONS in
11007	true)				DRIVER_MAN_SUFFIX=7  ;;
11008	*)				DRIVER_MAN_SUFFIX=4  ;;
11009    esac
11010fi
11011if test x$DRIVER_MAN_DIR = x    ; then
11012    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11013fi
11014
11015if test x$ADMIN_MAN_SUFFIX = x    ; then
11016    case $SYSV_MAN_SECTIONS in
11017	true)				ADMIN_MAN_SUFFIX=1m ;;
11018	*)				ADMIN_MAN_SUFFIX=8  ;;
11019    esac
11020fi
11021if test x$ADMIN_MAN_DIR = x    ; then
11022    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11023fi
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039XORG_MAN_PAGE="X Version 11"
11040
11041MAN_SUBSTS="\
11042	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11043	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11044	-e 's|__xservername__|Xorg|g' \
11045	-e 's|__xconfigfile__|xorg.conf|g' \
11046	-e 's|__projectroot__|\$(prefix)|g' \
11047	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11048	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11049	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11050	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11051	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11052	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11053	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11054
11055
11056
11057# Check whether --enable-silent-rules was given.
11058if test ${enable_silent_rules+y}
11059then :
11060  enableval=$enable_silent_rules;
11061fi
11062
11063case $enable_silent_rules in # (((
11064  yes) AM_DEFAULT_VERBOSITY=0;;
11065   no) AM_DEFAULT_VERBOSITY=1;;
11066    *) AM_DEFAULT_VERBOSITY=0;;
11067esac
11068am_make=${MAKE-make}
11069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11070printf %s "checking whether $am_make supports nested variables... " >&6; }
11071if test ${am_cv_make_support_nested_variables+y}
11072then :
11073  printf %s "(cached) " >&6
11074else $as_nop
11075  if printf "%s\n" 'TRUE=$(BAR$(V))
11076BAR0=false
11077BAR1=true
11078V=1
11079am__doit:
11080	@$(TRUE)
11081.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11082  am_cv_make_support_nested_variables=yes
11083else
11084  am_cv_make_support_nested_variables=no
11085fi
11086fi
11087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11088printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11089if test $am_cv_make_support_nested_variables = yes; then
11090    AM_V='$(V)'
11091  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11092else
11093  AM_V=$AM_DEFAULT_VERBOSITY
11094  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11095fi
11096AM_BACKSLASH='\'
11097
11098
11099
11100
11101
11102# Require X.Org's font util macros 1.2 or later
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115# mkfontscale
11116
11117	# Extract the first word of "mkfontscale", so it can be a program name with args.
11118set dummy mkfontscale; ac_word=$2
11119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11120printf %s "checking for $ac_word... " >&6; }
11121if test ${ac_cv_path_MKFONTSCALE+y}
11122then :
11123  printf %s "(cached) " >&6
11124else $as_nop
11125  case $MKFONTSCALE in
11126  [\\/]* | ?:[\\/]*)
11127  ac_cv_path_MKFONTSCALE="$MKFONTSCALE" # Let the user override the test with a path.
11128  ;;
11129  *)
11130  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11131for as_dir in $PATH
11132do
11133  IFS=$as_save_IFS
11134  case $as_dir in #(((
11135    '') as_dir=./ ;;
11136    */) ;;
11137    *) as_dir=$as_dir/ ;;
11138  esac
11139    for ac_exec_ext in '' $ac_executable_extensions; do
11140  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11141    ac_cv_path_MKFONTSCALE="$as_dir$ac_word$ac_exec_ext"
11142    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11143    break 2
11144  fi
11145done
11146  done
11147IFS=$as_save_IFS
11148
11149  ;;
11150esac
11151fi
11152MKFONTSCALE=$ac_cv_path_MKFONTSCALE
11153if test -n "$MKFONTSCALE"; then
11154  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKFONTSCALE" >&5
11155printf "%s\n" "$MKFONTSCALE" >&6; }
11156else
11157  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11158printf "%s\n" "no" >&6; }
11159fi
11160
11161
11162	if test x"$MKFONTSCALE" = x; then
11163		as_fn_error $? "mkfontscale is required to build $PACKAGE_NAME." "$LINENO" 5
11164	fi
11165
11166
11167# Choose whether or not to compress encodings - default is to compress all
11168
11169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if small encodings should be compressed" >&5
11170printf %s "checking if small encodings should be compressed... " >&6; }
11171# Check whether --enable-gzip-small-encodings was given.
11172if test ${enable_gzip_small_encodings+y}
11173then :
11174  enableval=$enable_gzip_small_encodings; GZIP_SMALL="$enableval"
11175else $as_nop
11176  GZIP_SMALL="yes"
11177fi
11178
11179 if test x$GZIP_SMALL = xyes; then
11180  GZIP_SMALL_TRUE=
11181  GZIP_SMALL_FALSE='#'
11182else
11183  GZIP_SMALL_TRUE='#'
11184  GZIP_SMALL_FALSE=
11185fi
11186
11187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${GZIP_SMALL}" >&5
11188printf "%s\n" "${GZIP_SMALL}" >&6; }
11189
11190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if large encodings should be compressed" >&5
11191printf %s "checking if large encodings should be compressed... " >&6; }
11192# Check whether --enable-gzip-large-encodings was given.
11193if test ${enable_gzip_large_encodings+y}
11194then :
11195  enableval=$enable_gzip_large_encodings; GZIP_LARGE="$enableval"
11196else $as_nop
11197  GZIP_LARGE="yes"
11198fi
11199
11200 if test x$GZIP_LARGE = xyes; then
11201  GZIP_LARGE_TRUE=
11202  GZIP_LARGE_FALSE='#'
11203else
11204  GZIP_LARGE_TRUE='#'
11205  GZIP_LARGE_FALSE=
11206fi
11207
11208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${GZIP_LARGE}" >&5
11209printf "%s\n" "${GZIP_LARGE}" >&6; }
11210
11211# gzip
11212
11213if test x$GZIP_SMALL = xyes -o x$GZIP_LARGE = xyes ; then
11214    # Extract the first word of "gzip", so it can be a program name with args.
11215set dummy gzip; ac_word=$2
11216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11217printf %s "checking for $ac_word... " >&6; }
11218if test ${ac_cv_path_GZIP+y}
11219then :
11220  printf %s "(cached) " >&6
11221else $as_nop
11222  case $GZIP in
11223  [\\/]* | ?:[\\/]*)
11224  ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
11225  ;;
11226  *)
11227  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11228for as_dir in $PATH
11229do
11230  IFS=$as_save_IFS
11231  case $as_dir in #(((
11232    '') as_dir=./ ;;
11233    */) ;;
11234    *) as_dir=$as_dir/ ;;
11235  esac
11236    for ac_exec_ext in '' $ac_executable_extensions; do
11237  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11238    ac_cv_path_GZIP="$as_dir$ac_word$ac_exec_ext"
11239    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11240    break 2
11241  fi
11242done
11243  done
11244IFS=$as_save_IFS
11245
11246  ;;
11247esac
11248fi
11249GZIP=$ac_cv_path_GZIP
11250if test -n "$GZIP"; then
11251  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
11252printf "%s\n" "$GZIP" >&6; }
11253else
11254  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11255printf "%s\n" "no" >&6; }
11256fi
11257
11258
11259    if [ -z $GZIP ]; then
11260	as_fn_error $? "gzip is needed to compress font encodings" "$LINENO" 5
11261    fi
11262fi
11263
11264
11265
11266
11267	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5
11268printf %s "checking for root directory for font files... " >&6; }
11269
11270# Check whether --with-fontrootdir was given.
11271if test ${with_fontrootdir+y}
11272then :
11273  withval=$with_fontrootdir; FONTROOTDIR="$withval"
11274fi
11275
11276	# if --with-fontrootdir not specified...
11277	if test "x${FONTROOTDIR}" = "x"; then
11278		FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil`
11279	fi
11280	# ...and if pkg-config didn't find fontdir in fontutil.pc...
11281	if test "x${FONTROOTDIR}" = "x"; then
11282		FONTROOTDIR="${datadir}/fonts/X11"
11283	fi
11284
11285	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5
11286printf "%s\n" "${FONTROOTDIR}" >&6; }
11287
11288
11289
11290
11291	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for encodings files" >&5
11292printf %s "checking for directory for encodings files... " >&6; }
11293
11294# Check whether --with-encodingsdir was given.
11295if test ${with_encodingsdir+y}
11296then :
11297  withval=$with_encodingsdir; ENCODINGSDIR="${withval}"
11298else $as_nop
11299  ENCODINGSDIR='${FONTROOTDIR}/encodings'
11300fi
11301
11302
11303	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ENCODINGSDIR}" >&5
11304printf "%s\n" "${ENCODINGSDIR}" >&6; }
11305
11306
11307ac_config_files="$ac_config_files Makefile large/Makefile"
11308
11309cat >confcache <<\_ACEOF
11310# This file is a shell script that caches the results of configure
11311# tests run on this system so they can be shared between configure
11312# scripts and configure runs, see configure's option --config-cache.
11313# It is not useful on other systems.  If it contains results you don't
11314# want to keep, you may remove or edit it.
11315#
11316# config.status only pays attention to the cache file if you give it
11317# the --recheck option to rerun configure.
11318#
11319# `ac_cv_env_foo' variables (set or unset) will be overridden when
11320# loading this file, other *unset* `ac_cv_foo' will be assigned the
11321# following values.
11322
11323_ACEOF
11324
11325# The following way of writing the cache mishandles newlines in values,
11326# but we know of no workaround that is simple, portable, and efficient.
11327# So, we kill variables containing newlines.
11328# Ultrix sh set writes to stderr and can't be redirected directly,
11329# and sets the high bit in the cache file unless we assign to the vars.
11330(
11331  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11332    eval ac_val=\$$ac_var
11333    case $ac_val in #(
11334    *${as_nl}*)
11335      case $ac_var in #(
11336      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11337printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11338      esac
11339      case $ac_var in #(
11340      _ | IFS | as_nl) ;; #(
11341      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11342      *) { eval $ac_var=; unset $ac_var;} ;;
11343      esac ;;
11344    esac
11345  done
11346
11347  (set) 2>&1 |
11348    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11349    *${as_nl}ac_space=\ *)
11350      # `set' does not quote correctly, so add quotes: double-quote
11351      # substitution turns \\\\ into \\, and sed turns \\ into \.
11352      sed -n \
11353	"s/'/'\\\\''/g;
11354	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11355      ;; #(
11356    *)
11357      # `set' quotes correctly as required by POSIX, so do not add quotes.
11358      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11359      ;;
11360    esac |
11361    sort
11362) |
11363  sed '
11364     /^ac_cv_env_/b end
11365     t clear
11366     :clear
11367     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11368     t end
11369     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11370     :end' >>confcache
11371if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11372  if test -w "$cache_file"; then
11373    if test "x$cache_file" != "x/dev/null"; then
11374      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11375printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11376      if test ! -f "$cache_file" || test -h "$cache_file"; then
11377	cat confcache >"$cache_file"
11378      else
11379        case $cache_file in #(
11380        */* | ?:*)
11381	  mv -f confcache "$cache_file"$$ &&
11382	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11383        *)
11384	  mv -f confcache "$cache_file" ;;
11385	esac
11386      fi
11387    fi
11388  else
11389    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11390printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11391  fi
11392fi
11393rm -f confcache
11394
11395test "x$prefix" = xNONE && prefix=$ac_default_prefix
11396# Let make expand exec_prefix.
11397test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11398
11399# Transform confdefs.h into DEFS.
11400# Protect against shell expansion while executing Makefile rules.
11401# Protect against Makefile macro expansion.
11402#
11403# If the first sed substitution is executed (which looks for macros that
11404# take arguments), then branch to the quote section.  Otherwise,
11405# look for a macro that doesn't take arguments.
11406ac_script='
11407:mline
11408/\\$/{
11409 N
11410 s,\\\n,,
11411 b mline
11412}
11413t clear
11414:clear
11415s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
11416t quote
11417s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
11418t quote
11419b any
11420:quote
11421s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11422s/\[/\\&/g
11423s/\]/\\&/g
11424s/\$/$$/g
11425H
11426:any
11427${
11428	g
11429	s/^\n//
11430	s/\n/ /g
11431	p
11432}
11433'
11434DEFS=`sed -n "$ac_script" confdefs.h`
11435
11436
11437ac_libobjs=
11438ac_ltlibobjs=
11439U=
11440for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11441  # 1. Remove the extension, and $U if already installed.
11442  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11443  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11444  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11445  #    will be set to the directory where LIBOBJS objects are built.
11446  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11447  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11448done
11449LIBOBJS=$ac_libobjs
11450
11451LTLIBOBJS=$ac_ltlibobjs
11452
11453
11454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11455printf %s "checking that generated files are newer than configure... " >&6; }
11456   if test -n "$am_sleep_pid"; then
11457     # Hide warnings about reused PIDs.
11458     wait $am_sleep_pid 2>/dev/null
11459   fi
11460   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11461printf "%s\n" "done" >&6; }
11462 if test -n "$EXEEXT"; then
11463  am__EXEEXT_TRUE=
11464  am__EXEEXT_FALSE='#'
11465else
11466  am__EXEEXT_TRUE='#'
11467  am__EXEEXT_FALSE=
11468fi
11469
11470if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11471  as_fn_error $? "conditional \"AMDEP\" was never defined.
11472Usually this means the macro was only invoked conditionally." "$LINENO" 5
11473fi
11474if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11475  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11476Usually this means the macro was only invoked conditionally." "$LINENO" 5
11477fi
11478if test -z "${GZIP_SMALL_TRUE}" && test -z "${GZIP_SMALL_FALSE}"; then
11479  as_fn_error $? "conditional \"GZIP_SMALL\" was never defined.
11480Usually this means the macro was only invoked conditionally." "$LINENO" 5
11481fi
11482if test -z "${GZIP_LARGE_TRUE}" && test -z "${GZIP_LARGE_FALSE}"; then
11483  as_fn_error $? "conditional \"GZIP_LARGE\" was never defined.
11484Usually this means the macro was only invoked conditionally." "$LINENO" 5
11485fi
11486
11487: "${CONFIG_STATUS=./config.status}"
11488ac_write_fail=0
11489ac_clean_files_save=$ac_clean_files
11490ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11492printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11493as_write_fail=0
11494cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11495#! $SHELL
11496# Generated by $as_me.
11497# Run this file to recreate the current configuration.
11498# Compiler output produced by configure, useful for debugging
11499# configure, is in config.log if it exists.
11500
11501debug=false
11502ac_cs_recheck=false
11503ac_cs_silent=false
11504
11505SHELL=\${CONFIG_SHELL-$SHELL}
11506export SHELL
11507_ASEOF
11508cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11509## -------------------- ##
11510## M4sh Initialization. ##
11511## -------------------- ##
11512
11513# Be more Bourne compatible
11514DUALCASE=1; export DUALCASE # for MKS sh
11515as_nop=:
11516if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11517then :
11518  emulate sh
11519  NULLCMD=:
11520  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11521  # is contrary to our usage.  Disable this feature.
11522  alias -g '${1+"$@"}'='"$@"'
11523  setopt NO_GLOB_SUBST
11524else $as_nop
11525  case `(set -o) 2>/dev/null` in #(
11526  *posix*) :
11527    set -o posix ;; #(
11528  *) :
11529     ;;
11530esac
11531fi
11532
11533
11534
11535# Reset variables that may have inherited troublesome values from
11536# the environment.
11537
11538# IFS needs to be set, to space, tab, and newline, in precisely that order.
11539# (If _AS_PATH_WALK were called with IFS unset, it would have the
11540# side effect of setting IFS to empty, thus disabling word splitting.)
11541# Quoting is to prevent editors from complaining about space-tab.
11542as_nl='
11543'
11544export as_nl
11545IFS=" ""	$as_nl"
11546
11547PS1='$ '
11548PS2='> '
11549PS4='+ '
11550
11551# Ensure predictable behavior from utilities with locale-dependent output.
11552LC_ALL=C
11553export LC_ALL
11554LANGUAGE=C
11555export LANGUAGE
11556
11557# We cannot yet rely on "unset" to work, but we need these variables
11558# to be unset--not just set to an empty or harmless value--now, to
11559# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
11560# also avoids known problems related to "unset" and subshell syntax
11561# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11562for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11563do eval test \${$as_var+y} \
11564  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11565done
11566
11567# Ensure that fds 0, 1, and 2 are open.
11568if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11569if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11570if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
11571
11572# The user is always right.
11573if ${PATH_SEPARATOR+false} :; then
11574  PATH_SEPARATOR=:
11575  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11576    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11577      PATH_SEPARATOR=';'
11578  }
11579fi
11580
11581
11582# Find who we are.  Look in the path if we contain no directory separator.
11583as_myself=
11584case $0 in #((
11585  *[\\/]* ) as_myself=$0 ;;
11586  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11587for as_dir in $PATH
11588do
11589  IFS=$as_save_IFS
11590  case $as_dir in #(((
11591    '') as_dir=./ ;;
11592    */) ;;
11593    *) as_dir=$as_dir/ ;;
11594  esac
11595    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11596  done
11597IFS=$as_save_IFS
11598
11599     ;;
11600esac
11601# We did not find ourselves, most probably we were run as `sh COMMAND'
11602# in which case we are not to be found in the path.
11603if test "x$as_myself" = x; then
11604  as_myself=$0
11605fi
11606if test ! -f "$as_myself"; then
11607  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11608  exit 1
11609fi
11610
11611
11612
11613# as_fn_error STATUS ERROR [LINENO LOG_FD]
11614# ----------------------------------------
11615# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11616# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11617# script with STATUS, using 1 if that was 0.
11618as_fn_error ()
11619{
11620  as_status=$1; test $as_status -eq 0 && as_status=1
11621  if test "$4"; then
11622    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11623    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11624  fi
11625  printf "%s\n" "$as_me: error: $2" >&2
11626  as_fn_exit $as_status
11627} # as_fn_error
11628
11629
11630
11631# as_fn_set_status STATUS
11632# -----------------------
11633# Set $? to STATUS, without forking.
11634as_fn_set_status ()
11635{
11636  return $1
11637} # as_fn_set_status
11638
11639# as_fn_exit STATUS
11640# -----------------
11641# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11642as_fn_exit ()
11643{
11644  set +e
11645  as_fn_set_status $1
11646  exit $1
11647} # as_fn_exit
11648
11649# as_fn_unset VAR
11650# ---------------
11651# Portably unset VAR.
11652as_fn_unset ()
11653{
11654  { eval $1=; unset $1;}
11655}
11656as_unset=as_fn_unset
11657
11658# as_fn_append VAR VALUE
11659# ----------------------
11660# Append the text in VALUE to the end of the definition contained in VAR. Take
11661# advantage of any shell optimizations that allow amortized linear growth over
11662# repeated appends, instead of the typical quadratic growth present in naive
11663# implementations.
11664if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11665then :
11666  eval 'as_fn_append ()
11667  {
11668    eval $1+=\$2
11669  }'
11670else $as_nop
11671  as_fn_append ()
11672  {
11673    eval $1=\$$1\$2
11674  }
11675fi # as_fn_append
11676
11677# as_fn_arith ARG...
11678# ------------------
11679# Perform arithmetic evaluation on the ARGs, and store the result in the
11680# global $as_val. Take advantage of shells that can avoid forks. The arguments
11681# must be portable across $(()) and expr.
11682if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11683then :
11684  eval 'as_fn_arith ()
11685  {
11686    as_val=$(( $* ))
11687  }'
11688else $as_nop
11689  as_fn_arith ()
11690  {
11691    as_val=`expr "$@" || test $? -eq 1`
11692  }
11693fi # as_fn_arith
11694
11695
11696if expr a : '\(a\)' >/dev/null 2>&1 &&
11697   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11698  as_expr=expr
11699else
11700  as_expr=false
11701fi
11702
11703if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11704  as_basename=basename
11705else
11706  as_basename=false
11707fi
11708
11709if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11710  as_dirname=dirname
11711else
11712  as_dirname=false
11713fi
11714
11715as_me=`$as_basename -- "$0" ||
11716$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11717	 X"$0" : 'X\(//\)$' \| \
11718	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11719printf "%s\n" X/"$0" |
11720    sed '/^.*\/\([^/][^/]*\)\/*$/{
11721	    s//\1/
11722	    q
11723	  }
11724	  /^X\/\(\/\/\)$/{
11725	    s//\1/
11726	    q
11727	  }
11728	  /^X\/\(\/\).*/{
11729	    s//\1/
11730	    q
11731	  }
11732	  s/.*/./; q'`
11733
11734# Avoid depending upon Character Ranges.
11735as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11736as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11737as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11738as_cr_digits='0123456789'
11739as_cr_alnum=$as_cr_Letters$as_cr_digits
11740
11741
11742# Determine whether it's possible to make 'echo' print without a newline.
11743# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11744# for compatibility with existing Makefiles.
11745ECHO_C= ECHO_N= ECHO_T=
11746case `echo -n x` in #(((((
11747-n*)
11748  case `echo 'xy\c'` in
11749  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11750  xy)  ECHO_C='\c';;
11751  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11752       ECHO_T='	';;
11753  esac;;
11754*)
11755  ECHO_N='-n';;
11756esac
11757
11758# For backward compatibility with old third-party macros, we provide
11759# the shell variables $as_echo and $as_echo_n.  New code should use
11760# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11761as_echo='printf %s\n'
11762as_echo_n='printf %s'
11763
11764rm -f conf$$ conf$$.exe conf$$.file
11765if test -d conf$$.dir; then
11766  rm -f conf$$.dir/conf$$.file
11767else
11768  rm -f conf$$.dir
11769  mkdir conf$$.dir 2>/dev/null
11770fi
11771if (echo >conf$$.file) 2>/dev/null; then
11772  if ln -s conf$$.file conf$$ 2>/dev/null; then
11773    as_ln_s='ln -s'
11774    # ... but there are two gotchas:
11775    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11776    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11777    # In both cases, we have to default to `cp -pR'.
11778    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11779      as_ln_s='cp -pR'
11780  elif ln conf$$.file conf$$ 2>/dev/null; then
11781    as_ln_s=ln
11782  else
11783    as_ln_s='cp -pR'
11784  fi
11785else
11786  as_ln_s='cp -pR'
11787fi
11788rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11789rmdir conf$$.dir 2>/dev/null
11790
11791
11792# as_fn_mkdir_p
11793# -------------
11794# Create "$as_dir" as a directory, including parents if necessary.
11795as_fn_mkdir_p ()
11796{
11797
11798  case $as_dir in #(
11799  -*) as_dir=./$as_dir;;
11800  esac
11801  test -d "$as_dir" || eval $as_mkdir_p || {
11802    as_dirs=
11803    while :; do
11804      case $as_dir in #(
11805      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11806      *) as_qdir=$as_dir;;
11807      esac
11808      as_dirs="'$as_qdir' $as_dirs"
11809      as_dir=`$as_dirname -- "$as_dir" ||
11810$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11811	 X"$as_dir" : 'X\(//\)[^/]' \| \
11812	 X"$as_dir" : 'X\(//\)$' \| \
11813	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11814printf "%s\n" X"$as_dir" |
11815    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11816	    s//\1/
11817	    q
11818	  }
11819	  /^X\(\/\/\)[^/].*/{
11820	    s//\1/
11821	    q
11822	  }
11823	  /^X\(\/\/\)$/{
11824	    s//\1/
11825	    q
11826	  }
11827	  /^X\(\/\).*/{
11828	    s//\1/
11829	    q
11830	  }
11831	  s/.*/./; q'`
11832      test -d "$as_dir" && break
11833    done
11834    test -z "$as_dirs" || eval "mkdir $as_dirs"
11835  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11836
11837
11838} # as_fn_mkdir_p
11839if mkdir -p . 2>/dev/null; then
11840  as_mkdir_p='mkdir -p "$as_dir"'
11841else
11842  test -d ./-p && rmdir ./-p
11843  as_mkdir_p=false
11844fi
11845
11846
11847# as_fn_executable_p FILE
11848# -----------------------
11849# Test if FILE is an executable regular file.
11850as_fn_executable_p ()
11851{
11852  test -f "$1" && test -x "$1"
11853} # as_fn_executable_p
11854as_test_x='test -x'
11855as_executable_p=as_fn_executable_p
11856
11857# Sed expression to map a string onto a valid CPP name.
11858as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11859
11860# Sed expression to map a string onto a valid variable name.
11861as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11862
11863
11864exec 6>&1
11865## ----------------------------------- ##
11866## Main body of $CONFIG_STATUS script. ##
11867## ----------------------------------- ##
11868_ASEOF
11869test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11870
11871cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11872# Save the log message, to keep $0 and so on meaningful, and to
11873# report actual input values of CONFIG_FILES etc. instead of their
11874# values after options handling.
11875ac_log="
11876This file was extended by encodings $as_me 1.0.6, which was
11877generated by GNU Autoconf 2.71.  Invocation command line was
11878
11879  CONFIG_FILES    = $CONFIG_FILES
11880  CONFIG_HEADERS  = $CONFIG_HEADERS
11881  CONFIG_LINKS    = $CONFIG_LINKS
11882  CONFIG_COMMANDS = $CONFIG_COMMANDS
11883  $ $0 $@
11884
11885on `(hostname || uname -n) 2>/dev/null | sed 1q`
11886"
11887
11888_ACEOF
11889
11890case $ac_config_files in *"
11891"*) set x $ac_config_files; shift; ac_config_files=$*;;
11892esac
11893
11894
11895
11896cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11897# Files that config.status was made for.
11898config_files="$ac_config_files"
11899config_commands="$ac_config_commands"
11900
11901_ACEOF
11902
11903cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11904ac_cs_usage="\
11905\`$as_me' instantiates files and other configuration actions
11906from templates according to the current configuration.  Unless the files
11907and actions are specified as TAGs, all are instantiated by default.
11908
11909Usage: $0 [OPTION]... [TAG]...
11910
11911  -h, --help       print this help, then exit
11912  -V, --version    print version number and configuration settings, then exit
11913      --config     print configuration, then exit
11914  -q, --quiet, --silent
11915                   do not print progress messages
11916  -d, --debug      don't remove temporary files
11917      --recheck    update $as_me by reconfiguring in the same conditions
11918      --file=FILE[:TEMPLATE]
11919                   instantiate the configuration file FILE
11920
11921Configuration files:
11922$config_files
11923
11924Configuration commands:
11925$config_commands
11926
11927Report bugs to <https://gitlab.freedesktop.org/xorg/font/encodings/issues>."
11928
11929_ACEOF
11930ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
11931ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
11932cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11933ac_cs_config='$ac_cs_config_escaped'
11934ac_cs_version="\\
11935encodings config.status 1.0.6
11936configured by $0, generated by GNU Autoconf 2.71,
11937  with options \\"\$ac_cs_config\\"
11938
11939Copyright (C) 2021 Free Software Foundation, Inc.
11940This config.status script is free software; the Free Software Foundation
11941gives unlimited permission to copy, distribute and modify it."
11942
11943ac_pwd='$ac_pwd'
11944srcdir='$srcdir'
11945INSTALL='$INSTALL'
11946MKDIR_P='$MKDIR_P'
11947AWK='$AWK'
11948test -n "\$AWK" || AWK=awk
11949_ACEOF
11950
11951cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11952# The default lists apply if the user does not specify any file.
11953ac_need_defaults=:
11954while test $# != 0
11955do
11956  case $1 in
11957  --*=?*)
11958    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11959    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11960    ac_shift=:
11961    ;;
11962  --*=)
11963    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11964    ac_optarg=
11965    ac_shift=:
11966    ;;
11967  *)
11968    ac_option=$1
11969    ac_optarg=$2
11970    ac_shift=shift
11971    ;;
11972  esac
11973
11974  case $ac_option in
11975  # Handling of the options.
11976  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11977    ac_cs_recheck=: ;;
11978  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11979    printf "%s\n" "$ac_cs_version"; exit ;;
11980  --config | --confi | --conf | --con | --co | --c )
11981    printf "%s\n" "$ac_cs_config"; exit ;;
11982  --debug | --debu | --deb | --de | --d | -d )
11983    debug=: ;;
11984  --file | --fil | --fi | --f )
11985    $ac_shift
11986    case $ac_optarg in
11987    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11988    '') as_fn_error $? "missing file argument" ;;
11989    esac
11990    as_fn_append CONFIG_FILES " '$ac_optarg'"
11991    ac_need_defaults=false;;
11992  --he | --h |  --help | --hel | -h )
11993    printf "%s\n" "$ac_cs_usage"; exit ;;
11994  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11995  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11996    ac_cs_silent=: ;;
11997
11998  # This is an error.
11999  -*) as_fn_error $? "unrecognized option: \`$1'
12000Try \`$0 --help' for more information." ;;
12001
12002  *) as_fn_append ac_config_targets " $1"
12003     ac_need_defaults=false ;;
12004
12005  esac
12006  shift
12007done
12008
12009ac_configure_extra_args=
12010
12011if $ac_cs_silent; then
12012  exec 6>/dev/null
12013  ac_configure_extra_args="$ac_configure_extra_args --silent"
12014fi
12015
12016_ACEOF
12017cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12018if \$ac_cs_recheck; then
12019  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12020  shift
12021  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12022  CONFIG_SHELL='$SHELL'
12023  export CONFIG_SHELL
12024  exec "\$@"
12025fi
12026
12027_ACEOF
12028cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12029exec 5>>config.log
12030{
12031  echo
12032  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12033## Running $as_me. ##
12034_ASBOX
12035  printf "%s\n" "$ac_log"
12036} >&5
12037
12038_ACEOF
12039cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12040#
12041# INIT-COMMANDS
12042#
12043AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12044
12045_ACEOF
12046
12047cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12048
12049# Handling of arguments.
12050for ac_config_target in $ac_config_targets
12051do
12052  case $ac_config_target in
12053    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12054    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12055    "large/Makefile") CONFIG_FILES="$CONFIG_FILES large/Makefile" ;;
12056
12057  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12058  esac
12059done
12060
12061
12062# If the user did not use the arguments to specify the items to instantiate,
12063# then the envvar interface is used.  Set only those that are not.
12064# We use the long form for the default assignment because of an extremely
12065# bizarre bug on SunOS 4.1.3.
12066if $ac_need_defaults; then
12067  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12068  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12069fi
12070
12071# Have a temporary directory for convenience.  Make it in the build tree
12072# simply because there is no reason against having it here, and in addition,
12073# creating and moving files from /tmp can sometimes cause problems.
12074# Hook for its removal unless debugging.
12075# Note that there is a small window in which the directory will not be cleaned:
12076# after its creation but before its name has been assigned to `$tmp'.
12077$debug ||
12078{
12079  tmp= ac_tmp=
12080  trap 'exit_status=$?
12081  : "${ac_tmp:=$tmp}"
12082  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12083' 0
12084  trap 'as_fn_exit 1' 1 2 13 15
12085}
12086# Create a (secure) tmp directory for tmp files.
12087
12088{
12089  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12090  test -d "$tmp"
12091}  ||
12092{
12093  tmp=./conf$$-$RANDOM
12094  (umask 077 && mkdir "$tmp")
12095} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12096ac_tmp=$tmp
12097
12098# Set up the scripts for CONFIG_FILES section.
12099# No need to generate them if there are no CONFIG_FILES.
12100# This happens for instance with `./config.status config.h'.
12101if test -n "$CONFIG_FILES"; then
12102
12103
12104ac_cr=`echo X | tr X '\015'`
12105# On cygwin, bash can eat \r inside `` if the user requested igncr.
12106# But we know of no other shell where ac_cr would be empty at this
12107# point, so we can use a bashism as a fallback.
12108if test "x$ac_cr" = x; then
12109  eval ac_cr=\$\'\\r\'
12110fi
12111ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12112if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12113  ac_cs_awk_cr='\\r'
12114else
12115  ac_cs_awk_cr=$ac_cr
12116fi
12117
12118echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12119_ACEOF
12120
12121
12122{
12123  echo "cat >conf$$subs.awk <<_ACEOF" &&
12124  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12125  echo "_ACEOF"
12126} >conf$$subs.sh ||
12127  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12128ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12129ac_delim='%!_!# '
12130for ac_last_try in false false false false false :; do
12131  . ./conf$$subs.sh ||
12132    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12133
12134  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12135  if test $ac_delim_n = $ac_delim_num; then
12136    break
12137  elif $ac_last_try; then
12138    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12139  else
12140    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12141  fi
12142done
12143rm -f conf$$subs.sh
12144
12145cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12146cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12147_ACEOF
12148sed -n '
12149h
12150s/^/S["/; s/!.*/"]=/
12151p
12152g
12153s/^[^!]*!//
12154:repl
12155t repl
12156s/'"$ac_delim"'$//
12157t delim
12158:nl
12159h
12160s/\(.\{148\}\)..*/\1/
12161t more1
12162s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12163p
12164n
12165b repl
12166:more1
12167s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12168p
12169g
12170s/.\{148\}//
12171t nl
12172:delim
12173h
12174s/\(.\{148\}\)..*/\1/
12175t more2
12176s/["\\]/\\&/g; s/^/"/; s/$/"/
12177p
12178b
12179:more2
12180s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12181p
12182g
12183s/.\{148\}//
12184t delim
12185' <conf$$subs.awk | sed '
12186/^[^""]/{
12187  N
12188  s/\n//
12189}
12190' >>$CONFIG_STATUS || ac_write_fail=1
12191rm -f conf$$subs.awk
12192cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12193_ACAWK
12194cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12195  for (key in S) S_is_set[key] = 1
12196  FS = ""
12197
12198}
12199{
12200  line = $ 0
12201  nfields = split(line, field, "@")
12202  substed = 0
12203  len = length(field[1])
12204  for (i = 2; i < nfields; i++) {
12205    key = field[i]
12206    keylen = length(key)
12207    if (S_is_set[key]) {
12208      value = S[key]
12209      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12210      len += length(value) + length(field[++i])
12211      substed = 1
12212    } else
12213      len += 1 + keylen
12214  }
12215
12216  print line
12217}
12218
12219_ACAWK
12220_ACEOF
12221cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12222if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12223  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12224else
12225  cat
12226fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12227  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12228_ACEOF
12229
12230# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12231# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12232# trailing colons and then remove the whole line if VPATH becomes empty
12233# (actually we leave an empty line to preserve line numbers).
12234if test "x$srcdir" = x.; then
12235  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12236h
12237s///
12238s/^/:/
12239s/[	 ]*$/:/
12240s/:\$(srcdir):/:/g
12241s/:\${srcdir}:/:/g
12242s/:@srcdir@:/:/g
12243s/^:*//
12244s/:*$//
12245x
12246s/\(=[	 ]*\).*/\1/
12247G
12248s/\n//
12249s/^[^=]*=[	 ]*$//
12250}'
12251fi
12252
12253cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12254fi # test -n "$CONFIG_FILES"
12255
12256
12257eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
12258shift
12259for ac_tag
12260do
12261  case $ac_tag in
12262  :[FHLC]) ac_mode=$ac_tag; continue;;
12263  esac
12264  case $ac_mode$ac_tag in
12265  :[FHL]*:*);;
12266  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12267  :[FH]-) ac_tag=-:-;;
12268  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12269  esac
12270  ac_save_IFS=$IFS
12271  IFS=:
12272  set x $ac_tag
12273  IFS=$ac_save_IFS
12274  shift
12275  ac_file=$1
12276  shift
12277
12278  case $ac_mode in
12279  :L) ac_source=$1;;
12280  :[FH])
12281    ac_file_inputs=
12282    for ac_f
12283    do
12284      case $ac_f in
12285      -) ac_f="$ac_tmp/stdin";;
12286      *) # Look for the file first in the build tree, then in the source tree
12287	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12288	 # because $ac_f cannot contain `:'.
12289	 test -f "$ac_f" ||
12290	   case $ac_f in
12291	   [\\/$]*) false;;
12292	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12293	   esac ||
12294	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12295      esac
12296      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12297      as_fn_append ac_file_inputs " '$ac_f'"
12298    done
12299
12300    # Let's still pretend it is `configure' which instantiates (i.e., don't
12301    # use $as_me), people would be surprised to read:
12302    #    /* config.h.  Generated by config.status.  */
12303    configure_input='Generated from '`
12304	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12305	`' by configure.'
12306    if test x"$ac_file" != x-; then
12307      configure_input="$ac_file.  $configure_input"
12308      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12309printf "%s\n" "$as_me: creating $ac_file" >&6;}
12310    fi
12311    # Neutralize special characters interpreted by sed in replacement strings.
12312    case $configure_input in #(
12313    *\&* | *\|* | *\\* )
12314       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12315       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12316    *) ac_sed_conf_input=$configure_input;;
12317    esac
12318
12319    case $ac_tag in
12320    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12321      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12322    esac
12323    ;;
12324  esac
12325
12326  ac_dir=`$as_dirname -- "$ac_file" ||
12327$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12328	 X"$ac_file" : 'X\(//\)[^/]' \| \
12329	 X"$ac_file" : 'X\(//\)$' \| \
12330	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12331printf "%s\n" X"$ac_file" |
12332    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12333	    s//\1/
12334	    q
12335	  }
12336	  /^X\(\/\/\)[^/].*/{
12337	    s//\1/
12338	    q
12339	  }
12340	  /^X\(\/\/\)$/{
12341	    s//\1/
12342	    q
12343	  }
12344	  /^X\(\/\).*/{
12345	    s//\1/
12346	    q
12347	  }
12348	  s/.*/./; q'`
12349  as_dir="$ac_dir"; as_fn_mkdir_p
12350  ac_builddir=.
12351
12352case "$ac_dir" in
12353.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12354*)
12355  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12356  # A ".." for each directory in $ac_dir_suffix.
12357  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12358  case $ac_top_builddir_sub in
12359  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12360  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12361  esac ;;
12362esac
12363ac_abs_top_builddir=$ac_pwd
12364ac_abs_builddir=$ac_pwd$ac_dir_suffix
12365# for backward compatibility:
12366ac_top_builddir=$ac_top_build_prefix
12367
12368case $srcdir in
12369  .)  # We are building in place.
12370    ac_srcdir=.
12371    ac_top_srcdir=$ac_top_builddir_sub
12372    ac_abs_top_srcdir=$ac_pwd ;;
12373  [\\/]* | ?:[\\/]* )  # Absolute name.
12374    ac_srcdir=$srcdir$ac_dir_suffix;
12375    ac_top_srcdir=$srcdir
12376    ac_abs_top_srcdir=$srcdir ;;
12377  *) # Relative name.
12378    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12379    ac_top_srcdir=$ac_top_build_prefix$srcdir
12380    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12381esac
12382ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12383
12384
12385  case $ac_mode in
12386  :F)
12387  #
12388  # CONFIG_FILE
12389  #
12390
12391  case $INSTALL in
12392  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12393  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12394  esac
12395  ac_MKDIR_P=$MKDIR_P
12396  case $MKDIR_P in
12397  [\\/$]* | ?:[\\/]* ) ;;
12398  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12399  esac
12400_ACEOF
12401
12402cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12403# If the template does not know about datarootdir, expand it.
12404# FIXME: This hack should be removed a few years after 2.60.
12405ac_datarootdir_hack=; ac_datarootdir_seen=
12406ac_sed_dataroot='
12407/datarootdir/ {
12408  p
12409  q
12410}
12411/@datadir@/p
12412/@docdir@/p
12413/@infodir@/p
12414/@localedir@/p
12415/@mandir@/p'
12416case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12417*datarootdir*) ac_datarootdir_seen=yes;;
12418*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12419  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12420printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12421_ACEOF
12422cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12423  ac_datarootdir_hack='
12424  s&@datadir@&$datadir&g
12425  s&@docdir@&$docdir&g
12426  s&@infodir@&$infodir&g
12427  s&@localedir@&$localedir&g
12428  s&@mandir@&$mandir&g
12429  s&\\\${datarootdir}&$datarootdir&g' ;;
12430esac
12431_ACEOF
12432
12433# Neutralize VPATH when `$srcdir' = `.'.
12434# Shell code in configure.ac might set extrasub.
12435# FIXME: do we really want to maintain this feature?
12436cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12437ac_sed_extra="$ac_vpsub
12438$extrasub
12439_ACEOF
12440cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12441:t
12442/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12443s|@configure_input@|$ac_sed_conf_input|;t t
12444s&@top_builddir@&$ac_top_builddir_sub&;t t
12445s&@top_build_prefix@&$ac_top_build_prefix&;t t
12446s&@srcdir@&$ac_srcdir&;t t
12447s&@abs_srcdir@&$ac_abs_srcdir&;t t
12448s&@top_srcdir@&$ac_top_srcdir&;t t
12449s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12450s&@builddir@&$ac_builddir&;t t
12451s&@abs_builddir@&$ac_abs_builddir&;t t
12452s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12453s&@INSTALL@&$ac_INSTALL&;t t
12454s&@MKDIR_P@&$ac_MKDIR_P&;t t
12455$ac_datarootdir_hack
12456"
12457eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12458  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12459
12460test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12461  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12462  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12463      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12464  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12465which seems to be undefined.  Please make sure it is defined" >&5
12466printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12467which seems to be undefined.  Please make sure it is defined" >&2;}
12468
12469  rm -f "$ac_tmp/stdin"
12470  case $ac_file in
12471  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12472  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12473  esac \
12474  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12475 ;;
12476
12477
12478  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12479printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12480 ;;
12481  esac
12482
12483
12484  case $ac_file$ac_mode in
12485    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12486  # Older Autoconf quotes --file arguments for eval, but not when files
12487  # are listed without --file.  Let's play safe and only enable the eval
12488  # if we detect the quoting.
12489  # TODO: see whether this extra hack can be removed once we start
12490  # requiring Autoconf 2.70 or later.
12491  case $CONFIG_FILES in #(
12492  *\'*) :
12493    eval set x "$CONFIG_FILES" ;; #(
12494  *) :
12495    set x $CONFIG_FILES ;; #(
12496  *) :
12497     ;;
12498esac
12499  shift
12500  # Used to flag and report bootstrapping failures.
12501  am_rc=0
12502  for am_mf
12503  do
12504    # Strip MF so we end up with the name of the file.
12505    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12506    # Check whether this is an Automake generated Makefile which includes
12507    # dependency-tracking related rules and includes.
12508    # Grep'ing the whole file directly is not great: AIX grep has a line
12509    # limit of 2048, but all sed's we know have understand at least 4000.
12510    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12511      || continue
12512    am_dirpart=`$as_dirname -- "$am_mf" ||
12513$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12514	 X"$am_mf" : 'X\(//\)[^/]' \| \
12515	 X"$am_mf" : 'X\(//\)$' \| \
12516	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12517printf "%s\n" X"$am_mf" |
12518    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12519	    s//\1/
12520	    q
12521	  }
12522	  /^X\(\/\/\)[^/].*/{
12523	    s//\1/
12524	    q
12525	  }
12526	  /^X\(\/\/\)$/{
12527	    s//\1/
12528	    q
12529	  }
12530	  /^X\(\/\).*/{
12531	    s//\1/
12532	    q
12533	  }
12534	  s/.*/./; q'`
12535    am_filepart=`$as_basename -- "$am_mf" ||
12536$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12537	 X"$am_mf" : 'X\(//\)$' \| \
12538	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12539printf "%s\n" X/"$am_mf" |
12540    sed '/^.*\/\([^/][^/]*\)\/*$/{
12541	    s//\1/
12542	    q
12543	  }
12544	  /^X\/\(\/\/\)$/{
12545	    s//\1/
12546	    q
12547	  }
12548	  /^X\/\(\/\).*/{
12549	    s//\1/
12550	    q
12551	  }
12552	  s/.*/./; q'`
12553    { echo "$as_me:$LINENO: cd "$am_dirpart" \
12554      && sed -e '/# am--include-marker/d' "$am_filepart" \
12555        | $MAKE -f - am--depfiles" >&5
12556   (cd "$am_dirpart" \
12557      && sed -e '/# am--include-marker/d' "$am_filepart" \
12558        | $MAKE -f - am--depfiles) >&5 2>&5
12559   ac_status=$?
12560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561   (exit $ac_status); } || am_rc=$?
12562  done
12563  if test $am_rc -ne 0; then
12564    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12565printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12566as_fn_error $? "Something went wrong bootstrapping makefile fragments
12567    for automatic dependency tracking.  If GNU make was not used, consider
12568    re-running the configure script with MAKE=\"gmake\" (or whatever is
12569    necessary).  You can also try re-running configure with the
12570    '--disable-dependency-tracking' option to at least be able to build
12571    the package (albeit without support for automatic dependency tracking).
12572See \`config.log' for more details" "$LINENO" 5; }
12573  fi
12574  { am_dirpart=; unset am_dirpart;}
12575  { am_filepart=; unset am_filepart;}
12576  { am_mf=; unset am_mf;}
12577  { am_rc=; unset am_rc;}
12578  rm -f conftest-deps.mk
12579}
12580 ;;
12581
12582  esac
12583done # for ac_tag
12584
12585
12586as_fn_exit 0
12587_ACEOF
12588ac_clean_files=$ac_clean_files_save
12589
12590test $ac_write_fail = 0 ||
12591  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12592
12593
12594# configure is writing to config.log, and then calls config.status.
12595# config.status does its own redirection, appending to config.log.
12596# Unfortunately, on DOS this fails, as config.log is still kept open
12597# by configure, so config.status won't be able to write to it; its
12598# output is simply discarded.  So we exec the FD to /dev/null,
12599# effectively closing config.log, so it can be properly (re)opened and
12600# appended to by config.status.  When coming back to configure, we
12601# need to make the FD available again.
12602if test "$no_create" != yes; then
12603  ac_cs_success=:
12604  ac_config_status_args=
12605  test "$silent" = yes &&
12606    ac_config_status_args="$ac_config_status_args --quiet"
12607  exec 5>/dev/null
12608  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12609  exec 5>>config.log
12610  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12611  # would make configure fail if this is the last instruction.
12612  $ac_cs_success || as_fn_exit 1
12613fi
12614if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12615  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12616printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12617fi
12618
12619
12620